Skip to content

Releases: NYPL/nypl-design-system

v3.5.4

13 Feb 15:58
9849344
Compare
Choose a tag to compare
Version 3.5.4

v3.5.3

30 Jan 16:21
bc2e474
Compare
Choose a tag to compare

Adds

  • Adds the useFormatNumber hook.

Updates

  • Updates the Pagination component to handle 4 digit page counts.
  • Updates the Heading component to add line-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

16 Jan 16:34
6140923
Compare
Choose a tag to compare

Adds

  • Adds the Filtering subsection to the Style Guide.

Updates

  • Updates the Form component to remove the aria-label. The previous value of "form" was redundant and not required.
  • Updates the RadioGroup component to replace the fieldset and legend wrappers with a div and span for the title. The main div wrapper around the Radio components already has a role="radiogroup" values which makes the fieldset redundant.
  • Updates the Pagination component to apply new visual styles.

Fixes

  • Fixes the infinite loop in the Image component caused when there is no fallbackSrc prop value.

v3.5.1

19 Dec 16:28
984d4b1
Compare
Choose a tag to compare

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

05 Dec 18:36
e45152e
Compare
Choose a tag to compare

Adds

  • Adds the "SubNav"component.
  • Adds the useScrollFadeStyles hook.

Updates

  • Updates the MultiSelect component to add itemCount as a data property to the items 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

20 Nov 17:56
1ec9152
Compare
Choose a tag to compare

Adds

  • Fixes a styling issue in the Header's list to make it stricter.

v3.4.3

18 Nov 17:12
f8b79ad
Compare
Choose a tag to compare

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

07 Nov 14:51
d293077
Compare
Choose a tag to compare

Adds

  • Adds the "contentFilterRelease" option to the Icon component.
  • Adds the "socialX" option to the Icon component.
  • Adds the heading7 and heading8 to the font size design tokens.
  • Adds the heading7 and heading8 options for the size prop in the Heading 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

24 Oct 15:41
9f22f22
Compare
Choose a tag to compare

Adds

  • Adds the "decorativeBookBroken" option (for error pages) to the Icon component.
  • Adds the "xxxxlarge" and "xxxxxlarge" size options for the Icon component.
  • Adds the "2xlarge", "3xlarge", "4xlarge", and "5xlarge" sustainable size options for the Icon component.

Updates

  • Updates Select in the SearchBar component to allow long option titles before truncation.
  • Updates the ProgressIndicator component to add the labelPlacement 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 to 5.2.14 to fix a security vulnerability.

Removes

  • Removes unused dependencies, two of which were causing npm vulnerabilities.

v3.4.0

02 Oct 19:57
6e14d21
Compare
Choose a tag to compare

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's Drawer component so it displays above all other elements on a page.
  • Updates the Table component to add the isScrollable prop to enable horizontal scrolling.
  • Updates the Table component to add the columnStyles prop to allow for custom column styles (i.e. width, text alignment, etc.).
  • Updates the Table component to add the tableTextSize prop to set the size of the text within the table.
  • Updates the Table component to add the titleText and showTitleText props to control the <caption> element and aria-label attribute.
  • Updates the styles for the Template component to better accommodate the horizontal scrolling in the Table component.