Releases: NYPL/nypl-design-system
Releases · NYPL/nypl-design-system
v3.5.4
v3.5.3
Adds
- Adds the
useFormatNumber
hook.
Updates
- Updates the
Pagination
component to handle 4 digit page counts. - Updates the
Heading
component to addline-height
styles for mobile. - Updates the
Breadcrumbs
component to make link text screen readable on mobile breakpoints. - Updates the
MultiSelect
component to adjust the text and size styles for the search input field.
v3.5.2
Adds
- Adds the
Filtering
subsection to theStyle Guide
.
Updates
- Updates the
Form
component to remove thearia-label
. The previous value of"form"
was redundant and not required. - Updates the
RadioGroup
component to replace thefieldset
andlegend
wrappers with a div and span for the title. The main div wrapper around theRadio
components already has arole="radiogroup"
values which makes thefieldset
redundant. - Updates the
Pagination
component to apply new visual styles.
Fixes
- Fixes the infinite loop in the
Image
component caused when there is nofallbackSrc
prop value.
v3.5.1
Adds
- Adds
jest-transformer-svg
to mock SVGs more accurately in our tests
Fixes
- Fixes
TextInput
's conflicting internal and external ref values for the clearable button focus management.
v3.5.0
Adds
- Adds the
"SubNav"
component. - Adds the
useScrollFadeStyles
hook.
Updates
- Updates the
MultiSelect
component to additemCount
as a data property to theitems
prop to render the item count for an option.
Fixes
- Fixes issue where focus indicator was being cut off in places in the
Template
component.
v3.4.4
Adds
- Fixes a styling issue in the
Header
's list to make it stricter.
v3.4.3
Adds
- Adds the NYPL Header as a DS component as a temporary solution for a specific application. It's only meant to be used internally and teams are still encouraged to use the
nypl-header-app
.
v3.4.2
Adds
- Adds the
"contentFilterRelease"
option to theIcon
component. - Adds the
"socialX"
option to theIcon
component. - Adds the
heading7
andheading8
to the font size design tokens. - Adds the
heading7
andheading8
options for thesize
prop in theHeading
component.
Updates
- Updates Storybook and related dependencies to version 8.3.6.
- Updates the
Link
component to prevent line breaks. - Updates the
SocialMediaLinks
component to support the"socialX"
icon.
Fixes
- Fixes spacing issues and dark mode color styles in the
Table
component.
v3.4.1
Adds
- Adds the
"decorativeBookBroken"
option (for error pages) to theIcon
component. - Adds the
"xxxxlarge"
and"xxxxxlarge"
size options for theIcon
component. - Adds the
"2xlarge"
,"3xlarge"
,"4xlarge"
, and"5xlarge"
sustainable size options for theIcon
component.
Updates
- Updates
Select
in theSearchBar
component to allow long option titles before truncation. - Updates the
ProgressIndicator
component to add thelabelPlacement
prop to allow for custom placement of a label for circular indicators. - Updates image props in the
Hero
component to allow custom image components. - Updates Vite from
5.2.8
to5.2.14
to fix a security vulnerability.
Removes
- Removes unused dependencies, two of which were causing npm vulnerabilities.
v3.4.0
Updates
- Updates invalid text in the
SearchBar
component to include "There was a problem. " prefix. - Updates the
MultiSelect
component to add interaction tests. - Increases the z-index of the
FeedbackBox
'sDrawer
component so it displays above all other elements on a page. - Updates the
Table
component to add theisScrollable
prop to enable horizontal scrolling. - Updates the
Table
component to add thecolumnStyles
prop to allow for custom column styles (i.e. width, text alignment, etc.). - Updates the
Table
component to add thetableTextSize
prop to set the size of the text within the table. - Updates the
Table
component to add thetitleText
andshowTitleText
props to control the<caption>
element andaria-label
attribute. - Updates the styles for the
Template
component to better accommodate the horizontal scrolling in theTable
component.