@nypl/design-system-react-components 1.5.1 → 1.6.0-vite-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -39
- package/dist/design-system-react-components.cjs +279 -0
- package/dist/design-system-react-components.js +42759 -0
- package/dist/{components → src/components}/Accordion/Accordion.d.ts +29 -29
- package/dist/{components → src/components}/AlphabetFilter/AlphabetFilter.d.ts +23 -23
- package/dist/{components → src/components}/AudioPlayer/AudioPlayer.d.ts +43 -43
- package/dist/{components → src/components}/Breadcrumbs/Breadcrumbs.d.ts +18 -18
- package/dist/{components → src/components}/Button/Button.d.ts +30 -30
- package/dist/{components → src/components}/ButtonGroup/ButtonGroup.d.ts +24 -24
- package/dist/{components → src/components}/Card/Card.d.ts +55 -55
- package/dist/{components → src/components}/Checkbox/Checkbox.d.ts +47 -47
- package/dist/{components → src/components}/CheckboxGroup/CheckboxGroup.d.ts +51 -51
- package/dist/{components → src/components}/ComponentWrapper/ComponentWrapper.d.ts +31 -31
- package/dist/{components → src/components}/DatePicker/DatePicker.d.ts +81 -81
- package/dist/{components → src/components}/FeedbackBox/FeedbackBox.d.ts +63 -63
- package/dist/{components → src/components}/FeedbackBox/useFeedbackBoxReducer.d.ts +19 -19
- package/dist/{components → src/components}/Fieldset/Fieldset.d.ts +24 -24
- package/dist/{components → src/components}/FilterBar/FilterBar.d.ts +61 -111
- package/dist/{components → src/components}/Footer/Footer.d.ts +14 -14
- package/dist/{components → src/components}/Footer/footerLinks.d.ts +12 -12
- package/dist/{components → src/components}/Form/Form.d.ts +31 -31
- package/dist/{components → src/components}/Grid/SimpleGrid.d.ts +19 -19
- package/dist/{components → src/components}/Header/Header.d.ts +22 -22
- package/dist/{components → src/components}/Header/components/HeaderLogin.d.ts +12 -12
- package/dist/{components → src/components}/Header/components/HeaderLoginButton.d.ts +11 -11
- package/dist/{components → src/components}/Header/components/HeaderLowerNav.d.ts +7 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileIconNav.d.ts +7 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileNav.d.ts +7 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileNavButton.d.ts +7 -7
- package/dist/{components → src/components}/Header/components/HeaderSearchButton.d.ts +10 -10
- package/dist/{components → src/components}/Header/components/HeaderSearchForm.d.ts +11 -11
- package/dist/{components → src/components}/Header/components/HeaderSitewideAlerts.d.ts +8 -8
- package/dist/{components → src/components}/Header/components/HeaderUpperNav.d.ts +8 -8
- package/dist/{components → src/components}/Header/context/headerContext.d.ts +13 -13
- package/dist/{components → src/components}/Header/utils/googleAnalyticsUtils.d.ts +16 -16
- package/dist/{components → src/components}/Header/utils/headerUtils.d.ts +94 -94
- package/dist/{components → src/components}/Heading/Heading.d.ts +35 -35
- package/dist/{components → src/components}/HelperErrorText/HelperErrorText.d.ts +34 -34
- package/dist/{components → src/components}/Hero/Hero.d.ts +42 -42
- package/dist/{components → src/components}/HorizontalRule/HorizontalRule.d.ts +11 -11
- package/dist/{components → src/components}/Icons/Icon.d.ts +41 -41
- package/dist/{components → src/components}/Icons/IconColors.d.ts +3 -3
- package/dist/{components → src/components}/Icons/IconNames.d.ts +3 -3
- package/dist/{components → src/components}/Icons/IconSvgs.d.ts +56 -56
- package/dist/{components → src/components}/Image/Image.d.ts +65 -65
- package/dist/{components → src/components}/Label/Label.d.ts +25 -25
- package/dist/{components → src/components}/Link/Link.d.ts +21 -21
- package/dist/{components → src/components}/List/List.d.ts +42 -42
- package/dist/{components → src/components}/Logo/Logo.d.ts +28 -28
- package/dist/{components → src/components}/Logo/LogoSvgs.d.ts +54 -52
- package/dist/{components → src/components}/Modal/Modal.d.ts +35 -35
- package/dist/{components → src/components}/MultiSelect/MultiSelect.d.ts +60 -78
- package/dist/{components → src/components}/MultiSelect/MultiSelectDialog.d.ts +8 -8
- package/dist/{components → src/components}/MultiSelect/MultiSelectListbox.d.ts +9 -9
- package/dist/{components → src/components}/MultiSelect/MultiSelectMenuButton.d.ts +27 -27
- package/dist/{components → src/components}/MultiSelectGroup/MultiSelectGroup.d.ts +26 -26
- package/dist/{components → src/components}/Notification/Notification.d.ts +51 -51
- package/dist/{components → src/components}/Pagination/Pagination.d.ts +27 -27
- package/dist/{components → src/components}/ProgressIndicator/ProgressIndicator.d.ts +30 -30
- package/dist/{components → src/components}/Radio/Radio.d.ts +43 -43
- package/dist/{components → src/components}/RadioGroup/RadioGroup.d.ts +51 -51
- package/dist/{components → src/components}/SearchBar/SearchBar.d.ts +58 -58
- package/dist/{components → src/components}/Select/Select.d.ts +57 -57
- package/dist/{components → src/components}/SkeletonLoader/SkeletonLoader.d.ts +41 -41
- package/dist/{components → src/components}/SkipNavigation/SkipNavigation.d.ts +19 -19
- package/dist/{components → src/components}/Slider/Slider.d.ts +65 -65
- package/dist/{components → src/components}/StatusBadge/StatusBadge.d.ts +18 -18
- package/dist/{components → src/components}/StructuredContent/StructuredContent.d.ts +30 -30
- package/dist/{components → src/components}/StyleGuide/ColorCard.d.ts +46 -46
- package/dist/{components → src/components}/StyledList/StyledList.d.ts +25 -25
- package/dist/{components → src/components}/Table/Table.d.ts +32 -32
- package/dist/{components → src/components}/Tabs/Tabs.d.ts +28 -28
- package/dist/{components → src/components}/TagSet/TagSet.d.ts +33 -32
- package/dist/{components → src/components}/TagSet/TagSetExplore.d.ts +27 -27
- package/dist/{components → src/components}/TagSet/TagSetFilter.d.ts +26 -26
- package/dist/{components → src/components}/Template/Template.d.ts +140 -140
- package/dist/{components → src/components}/Text/Text.d.ts +24 -24
- package/dist/{components → src/components}/TextInput/TextInput.d.ts +88 -88
- package/dist/{components → src/components}/Toggle/Toggle.d.ts +42 -42
- package/dist/{components → src/components}/Tooltip/Tooltip.d.ts +17 -17
- package/dist/{components → src/components}/VideoPlayer/VideoPlayer.d.ts +40 -40
- package/dist/src/helpers/types.d.ts +1 -0
- package/dist/{hooks → src/hooks}/useCarouselStyles.d.ts +17 -17
- package/dist/{hooks → src/hooks}/useCloseDropDown.d.ts +7 -6
- package/dist/{hooks → src/hooks}/useFilterBar.d.ts +21 -21
- package/dist/{hooks → src/hooks}/useMultiSelect.d.ts +15 -15
- package/dist/{hooks → src/hooks}/useNYPLBreakpoints.d.ts +13 -13
- package/dist/{hooks → src/hooks}/useNYPLTheme.d.ts +67 -67
- package/dist/{hooks → src/hooks}/useStateWithDependencies.d.ts +5 -5
- package/dist/{hooks → src/hooks}/useWindowSize.d.ts +10 -10
- package/dist/src/index.d.ts +90 -0
- package/dist/{theme → src/theme}/components/accordion.d.ts +34 -34
- package/dist/{theme → src/theme}/components/alphabetFilter.d.ts +33 -33
- package/dist/{theme → src/theme}/components/audioPlayer.d.ts +16 -16
- package/dist/{theme → src/theme}/components/breadcrumb.d.ts +151 -138
- package/dist/{theme → src/theme}/components/button.d.ts +113 -113
- package/dist/{theme → src/theme}/components/buttonGroup.d.ts +11 -11
- package/dist/{theme → src/theme}/components/card.d.ts +421 -421
- package/dist/{theme → src/theme}/components/checkbox.d.ts +178 -178
- package/dist/{theme → src/theme}/components/checkboxGroup.d.ts +14 -14
- package/dist/{theme → src/theme}/components/componentWrapper.d.ts +12 -12
- package/dist/{theme → src/theme}/components/customTable.d.ts +733 -733
- package/dist/{theme → src/theme}/components/datePicker.d.ts +17 -17
- package/dist/{theme → src/theme}/components/feedbackBox.d.ts +92 -85
- package/dist/{theme → src/theme}/components/fieldset.d.ts +23 -23
- package/dist/{theme → src/theme}/components/filterBar.d.ts +46 -46
- package/dist/{theme → src/theme}/components/footer.d.ts +244 -241
- package/dist/{theme → src/theme}/components/global.d.ts +140 -140
- package/dist/{theme → src/theme}/components/globalMixins.d.ts +40 -40
- package/dist/{theme → src/theme}/components/header/header.d.ts +72 -72
- package/dist/{theme → src/theme}/components/header/headerLogin.d.ts +327 -327
- package/dist/{theme → src/theme}/components/header/headerLoginButton.d.ts +69 -69
- package/dist/{theme → src/theme}/components/header/headerLowerNav.d.ts +70 -70
- package/dist/{theme → src/theme}/components/header/headerMobileIconNav.d.ts +28 -28
- package/dist/{theme → src/theme}/components/header/headerMobileNav.d.ts +86 -86
- package/dist/{theme → src/theme}/components/header/headerMobileNavButton.d.ts +34 -34
- package/dist/{theme → src/theme}/components/header/headerSearchButton.d.ts +83 -83
- package/dist/{theme → src/theme}/components/header/headerSearchForm.d.ts +183 -183
- package/dist/{theme → src/theme}/components/header/headerSitewideAlerts.d.ts +42 -42
- package/dist/{theme → src/theme}/components/header/headerUpperNav.d.ts +72 -72
- package/dist/{theme → src/theme}/components/heading.d.ts +173 -173
- package/dist/{theme → src/theme}/components/helperErrorText.d.ts +15 -15
- package/dist/{theme → src/theme}/components/hero.d.ts +628 -628
- package/dist/{theme → src/theme}/components/horizontalRule.d.ts +18 -18
- package/dist/{theme → src/theme}/components/icon.d.ts +62251 -62251
- package/dist/{theme → src/theme}/components/image.d.ts +662 -662
- package/dist/{theme → src/theme}/components/label.d.ts +21 -21
- package/dist/{theme → src/theme}/components/link.d.ts +106 -106
- package/dist/{theme → src/theme}/components/list.d.ts +228 -228
- package/dist/{theme → src/theme}/components/logo.d.ts +477 -477
- package/dist/{theme → src/theme}/components/modal.d.ts +21 -21
- package/dist/{theme → src/theme}/components/multiSelect.d.ts +29 -29
- package/dist/{theme → src/theme}/components/multiSelectMenuButton.d.ts +95 -95
- package/dist/{theme → src/theme}/components/notification.d.ts +136 -136
- package/dist/{theme → src/theme}/components/pagination.d.ts +16 -16
- package/dist/{theme → src/theme}/components/progressIndicator.d.ts +68 -68
- package/dist/{theme → src/theme}/components/radio.d.ts +202 -202
- package/dist/{theme → src/theme}/components/radioGroup.d.ts +14 -14
- package/dist/{theme → src/theme}/components/searchBar.d.ts +34 -34
- package/dist/{theme → src/theme}/components/select.d.ts +125 -125
- package/dist/{theme → src/theme}/components/skeletonLoader.d.ts +105 -105
- package/dist/{theme → src/theme}/components/skipNavigation.d.ts +28 -28
- package/dist/{theme → src/theme}/components/slider.d.ts +78 -78
- package/dist/{theme → src/theme}/components/statusBadge.d.ts +37 -37
- package/dist/{theme → src/theme}/components/structuredContent.d.ts +385 -385
- package/dist/{theme → src/theme}/components/styledList.d.ts +51 -51
- package/dist/{theme → src/theme}/components/tabs.d.ts +172 -172
- package/dist/{theme → src/theme}/components/tagSet.d.ts +154 -154
- package/dist/{theme → src/theme}/components/template.d.ts +86 -86
- package/dist/{theme → src/theme}/components/text.d.ts +30 -30
- package/dist/{theme → src/theme}/components/textInput.d.ts +349 -349
- package/dist/{theme → src/theme}/components/toggle.d.ts +129 -129
- package/dist/{theme → src/theme}/components/tooltip.d.ts +19 -19
- package/dist/{theme → src/theme}/components/videoPlayer.d.ts +47 -47
- package/dist/{theme → src/theme}/foundations/breakpoints.d.ts +23 -23
- package/dist/{theme → src/theme}/foundations/colors.d.ts +3 -3
- package/dist/{theme → src/theme}/foundations/global.d.ts +68 -68
- package/dist/{theme → src/theme}/foundations/radii.d.ts +11 -11
- package/dist/{theme → src/theme}/foundations/shadows.d.ts +4 -4
- package/dist/{theme → src/theme}/foundations/spacing.d.ts +96 -96
- package/dist/{theme → src/theme}/foundations/typography.d.ts +8 -8
- package/dist/{theme → src/theme}/index.d.ts +20 -20
- package/dist/{theme → src/theme}/provider.d.ts +4 -4
- package/dist/src/theme/types.d.ts +1 -0
- package/dist/{utils → src/utils}/interfaces.d.ts +5 -5
- package/dist/{utils → src/utils}/utils.d.ts +39 -39
- package/dist/style.css +1 -0
- package/package.json +52 -61
- package/CHANGELOG.md +0 -1861
- package/dist/__tests__/fileMock.d.ts +0 -4
- package/dist/__tests__/mediaMatchMock.d.ts +0 -79
- package/dist/__tests__/setup.d.ts +0 -2
- package/dist/__tests__/utils/utils.test.d.ts +0 -1
- package/dist/components/Autosuggest/Autosuggest.stories.d.ts +0 -4
- package/dist/components/FilterBar/FilterBar.stories.d.ts +0 -7
- package/dist/components/Header/utils/authApiMockResponse.d.ts +0 -49
- package/dist/components/Header/utils/encoreCatalogLogOutTimer.d.ts +0 -4
- package/dist/components/Header/utils/encoreCatalogLogOutTimer.test.d.ts +0 -1
- package/dist/components/Header/utils/googleAnalyticsUtils.test.d.ts +0 -1
- package/dist/components/Header/utils/headerUtils.test.d.ts +0 -1
- package/dist/components/Header/utils/sitewideAlertsMocks.d.ts +0 -98
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -4
- package/dist/components/MultiSelectGroup/MultiSelectGroup.stories.d.ts +0 -4
- package/dist/components/Placeholder/Placeholder.d.ts +0 -10
- package/dist/design-system-react-components.cjs.development.js +0 -17917
- package/dist/design-system-react-components.cjs.development.js.map +0 -1
- package/dist/design-system-react-components.cjs.production.min.js +0 -2
- package/dist/design-system-react-components.cjs.production.min.js.map +0 -1
- package/dist/design-system-react-components.esm.js +0 -17716
- package/dist/design-system-react-components.esm.js.map +0 -1
- package/dist/helpers/types.d.ts +0 -1
- package/dist/hooks/__tests__/useCarouselStyles.test.d.ts +0 -1
- package/dist/hooks/__tests__/useFilterBar.test.d.ts +0 -1
- package/dist/hooks/__tests__/useMultiSelect.test.d.ts +0 -1
- package/dist/hooks/__tests__/useNYPLBreakpoints.test.d.ts +0 -1
- package/dist/index.d.ts +0 -65
- package/dist/index.js +0 -8
- package/dist/resources.scss +0 -382
- package/dist/styles.css +0 -4
- package/dist/theme/types.d.ts +0 -1
- package/dist/utils/componentCategories.d.ts +0 -1
package/CHANGELOG.md
DELETED
|
@@ -1,1861 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
6
|
-
Currently, this repo is in Prerelease. When it is released, this project will adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
7
|
-
========
|
|
8
|
-
|
|
9
|
-
## Prerelease
|
|
10
|
-
|
|
11
|
-
## 1.5.1 (March 23, 2023)
|
|
12
|
-
|
|
13
|
-
### Updates
|
|
14
|
-
|
|
15
|
-
- Updates the `Button` component to use a transparent background for the default state of the "secondary" variant.
|
|
16
|
-
- Updates the `Hero` component so that the height of the image in the "campaign" and "fiftyFifty" variants will grow and shrink based on the text content.
|
|
17
|
-
- Updates the `SearchBar` component to include `defaultValue` as a prop in `textInputProps`.
|
|
18
|
-
|
|
19
|
-
### Removes
|
|
20
|
-
|
|
21
|
-
- Removes the `Color Mode` docs page from Storybook due to the addition of the `Supporting Dark Mode` docs page.
|
|
22
|
-
|
|
23
|
-
### Fixes
|
|
24
|
-
|
|
25
|
-
- Removes the `Slider` component's internal state update function (`setCurrentValue`) from Chakra's own `RangeSlider` component's `onChangeEnd` prop function. This fixes an issue where both Chakra's `onChange` and `onChangeEnd` prop functions were being called regardless of whether they were passed to the DS `Slider` component or not. Since Chakra's `onChange` function will always be called, the internal state function is kept. This ensures that there is no multiple calls or loop of state update calls when using keyboard controls to change the range slider's value.
|
|
26
|
-
|
|
27
|
-
## 1.5.0 (March 16, 2023)
|
|
28
|
-
|
|
29
|
-
### Adds
|
|
30
|
-
|
|
31
|
-
- Adds `brand` as a `breadcrumbsType` to the `Breadcrumbs` component.
|
|
32
|
-
- Adds `dark` color mode support for `background-color` and `color` global styles.
|
|
33
|
-
- Adds `dark` color mode support for the `HelperErrorText` and `StatusBadge` components.
|
|
34
|
-
- Adds `dark` color mode support for the `Button`, `Checkbox`, `DatePicker`, `ProgressIndicator`, `Radio`, `SearchBar`, `Select`, `Slider` and `Toggle` components.
|
|
35
|
-
- Adds `dark` color mode support for the `Card` and `Hero` components.
|
|
36
|
-
- Adds `dark` color mode support for the `Heading` and `List` components.
|
|
37
|
-
- Adds `dark` color mode support for the `Footer`, `Header`, `HorizontalRule` and `Table` components.
|
|
38
|
-
- Adds `dark` color mode support for the `Notification`, `ProgressIndicator`, and `SkeletonLoader` components.
|
|
39
|
-
- Adds `dark` color mode support for the `Breadcrumbs`, `Link Types`, and `Pagination` components.
|
|
40
|
-
- Adds `dark` color mode support for the `Accordion`, `Modal`, `Tabs`, and `Tooltip` components.
|
|
41
|
-
- Adds `dark` color mode support for the `AlphabetFilter`, `AudioPlayer`, and `TagSet` components.
|
|
42
|
-
- Adds `dark` color mode support for the `FeedbackBox` and `StyledList` components.
|
|
43
|
-
- Adds `dark` color mode support for the `FilterBar` and `MultiSelect` components.
|
|
44
|
-
- Adds `Supporting Dark Mode` under the `Development Guide`.
|
|
45
|
-
|
|
46
|
-
### Updates
|
|
47
|
-
|
|
48
|
-
- Updates background color values available in Storybook.
|
|
49
|
-
- Updates the hex value for `dark.ui.error.primary`.
|
|
50
|
-
- Updates the `Design Tokens Style Guide` to include more detailed information about the available tokens.
|
|
51
|
-
|
|
52
|
-
### Deprecates
|
|
53
|
-
|
|
54
|
-
- Deprecates the `darkMode` prop in the `ProgressIndicator` component.
|
|
55
|
-
|
|
56
|
-
## 1.4.2 (March 2, 2023)
|
|
57
|
-
|
|
58
|
-
### Updates
|
|
59
|
-
|
|
60
|
-
- Updates the `Logo` component to include "black" and "white" variants for `Digital Collections`.
|
|
61
|
-
|
|
62
|
-
### Fixes
|
|
63
|
-
|
|
64
|
-
- Updates the `Slider` component's `currentValue` state to use the `useStateWithDependencies` hook.
|
|
65
|
-
|
|
66
|
-
## 1.4.1 (February 9, 2023)
|
|
67
|
-
|
|
68
|
-
### Adds
|
|
69
|
-
|
|
70
|
-
- Adds the `pattern` prop to the `TextInput` component.
|
|
71
|
-
- Adds documentation page "Dynamic Content" to the `Accessibility Guide`.
|
|
72
|
-
- Adds the `isRenderedText` prop to the `HelperErrorText` component.
|
|
73
|
-
|
|
74
|
-
### Updates
|
|
75
|
-
|
|
76
|
-
- Adds a third radio button to the `Header` component, separating search options between the Circulating Catalog, Research Catalog, and the NYPL.org website.
|
|
77
|
-
- Temporarily removes the "log in" state from the `Header` component, the feature to read auth cookies, and the patron's name when logged in, and the log out link.
|
|
78
|
-
- Truncate breadcrumb text if beyond 40 characters then add ellipsis at the end. If the breadcrumb text is truncated, the DS `Tooltip` component is used to display the full text in a tooltip when the text is hovered.
|
|
79
|
-
- Updates the `SearchBar`'s `textInputProps` prop to include the following props to pass to the `TextInput` component: `isClearableCallback`, `max`, `maxLength`, `min`, and `pattern`.
|
|
80
|
-
- Updates how the `CheckboxGroup`, `ComponentWrapper`, `DatePicker`, and `RadioGroup` components internally render the `HelperErrorText` component. The update in the `ComponentWrapper` component affects the `AudioPlayer`, `Checkbox`, `Radio`, `SearchBar`, `Select`, `Slider`, `TextInput`, `Toggle`, and `VideoPlayer` DS components, each of which render helper or error text.
|
|
81
|
-
- Updates the `MultiSelect` component so it closes when the "escape" key is pressed.
|
|
82
|
-
- Updates where the focus is set in the `MultiSelect` "dialog" variant after the "Apply" button is clicked.
|
|
83
|
-
- Updates where the focus is set in the `MultiSelect` component after the selected items count button is clicked.
|
|
84
|
-
|
|
85
|
-
## 1.4.0 (January 26, 2023)
|
|
86
|
-
|
|
87
|
-
### Adds
|
|
88
|
-
|
|
89
|
-
- Adds the `MultiSelect`, `MultiSelectGroup`, `FilterBar` component.
|
|
90
|
-
- Adds the `useMultiSelect`, `useFilterBar` hook.
|
|
91
|
-
- Adds the `onChangeEnd` prop in the `Slider` component.
|
|
92
|
-
- Adds `autocomplete` attribute to `TextInput`s with type `"tel"`, `"email"`,
|
|
93
|
-
and `"url"`.
|
|
94
|
-
- Adds docs for `Links` and `Repetitive Actions` to the `Accessibility Guide`.
|
|
95
|
-
|
|
96
|
-
### Updates
|
|
97
|
-
|
|
98
|
-
- Updates the hex value for `ui.gray.xx-dark`, `ui.gray.xxx-dark`,
|
|
99
|
-
`ui.gray.xxxx-dark`, `dark.ui.bg.page`, `dark.ui.bg.hover`, `dark.ui.bg.active`,
|
|
100
|
-
`dark.ui.disabled.secondary`, `dark.ui.error.primary`, `dark.ui.error.secondary`,
|
|
101
|
-
`dark.ui.focus`, `dark.ui.link.primary`, `dark.ui.link.secondary`,
|
|
102
|
-
`dark.ui.status.primary`, `dark.ui.status.secondary`, `dark.ui.success.primary`,
|
|
103
|
-
`dark.ui.success.secondary`, `dark.ui.warning.primary`
|
|
104
|
-
and `dark.ui.warning.secondary`.
|
|
105
|
-
- Updates the layout of the category `RadioGroup` to `column` for the mobile
|
|
106
|
-
view of the `FeedbackBox` component.
|
|
107
|
-
- Updates the background color for the `"iconOnly"` and `"text"` variants of
|
|
108
|
-
the `Button` component.
|
|
109
|
-
- Updates the DOM in the header of the `FeedbackBox` component to improve
|
|
110
|
-
accessibility.
|
|
111
|
-
- Updates the `Link` component to include descriptive text for screen readers
|
|
112
|
-
in the component's `"external"` variant.
|
|
113
|
-
- Updates the `HelperErrorText` component to set the `ariaLive` default value
|
|
114
|
-
to `"polite"`.
|
|
115
|
-
- Updates the `Accessibility` details for the `Notification` component.
|
|
116
|
-
- Better docs for the `onSubmit` prop in the `FeedbackBox` component.
|
|
117
|
-
|
|
118
|
-
### Fixes
|
|
119
|
-
|
|
120
|
-
- Fixes spacing and alignment issues in the `FeedbackBox` component.
|
|
121
|
-
- Fixes the width of the Privacy Policy link in the `FeedbackBox` component.
|
|
122
|
-
- Fixes issue where `aria-describedby` attribute was not being added to
|
|
123
|
-
some `TextInput`s.
|
|
124
|
-
|
|
125
|
-
### Removes
|
|
126
|
-
|
|
127
|
-
- Removes the `Link` component warning about the deprecated `button` variant.
|
|
128
|
-
This change is temporary and will be reverted once teams are able to update
|
|
129
|
-
their `Link`s appropriately.
|
|
130
|
-
- Removes the `arial-label` attribute from the `CheckboxGroup` and `RadioGroup`
|
|
131
|
-
components for improved accessibility. Using the attribute is redundant with
|
|
132
|
-
the existing "screen reader only" `<legend>` element.
|
|
133
|
-
|
|
134
|
-
## 1.3.1 (December 15, 2022)
|
|
135
|
-
|
|
136
|
-
### Adds
|
|
137
|
-
|
|
138
|
-
- Adds the optional `isClearableCallback` prop to the `TextInput` component. This prop works with the `isClearable` prop and the passed function is invoked when the "clear" button is clicked. This is most helpful for controlled `TextInput` component implementations.
|
|
139
|
-
|
|
140
|
-
### Updates
|
|
141
|
-
|
|
142
|
-
- Updates the background color for the `hover` state in the `secondary` variant of the `Button` component.
|
|
143
|
-
|
|
144
|
-
### Fixes
|
|
145
|
-
|
|
146
|
-
- Fixes the z-index value of the SVG icon in the `Select` component so it does not render above other elements on a consuming application's page.
|
|
147
|
-
|
|
148
|
-
## 1.3.0 (December 8, 2022)
|
|
149
|
-
|
|
150
|
-
This release is exactly the same as the `1.3.0-rc` release candidate published on December 2, 2022. The `rc` release was reviewed and validated.
|
|
151
|
-
|
|
152
|
-
## 1.3.0-rc (Release Candidate December 2, 2022)
|
|
153
|
-
|
|
154
|
-
### Adds
|
|
155
|
-
|
|
156
|
-
- Adds additional color options to `Icon` component.
|
|
157
|
-
- Adds reusable iconColors and iconNames arrays/types for DRYer, easier-to-update code.
|
|
158
|
-
- Adds the following color options to the color theme object: `ui.bg.page`, `ui.typography.inverse.body`, `ui.typography.inverse.heading`, `dark.ui.typography.inverse.body`, and `dark.ui.typography.inverse.heading`.
|
|
159
|
-
- Adds the `StyledList` component.
|
|
160
|
-
- Adds the `FeedbackBox` component, `useFeedbackBox` component hook, and `useStateWithDependencies` helper hook.
|
|
161
|
-
|
|
162
|
-
### Updates
|
|
163
|
-
|
|
164
|
-
- Updates the data displayed on the Colors Style Guide to expand the contrast details for the `ui` and `dark.ui` color.
|
|
165
|
-
- Updates the `md` breakpoint to `"37.5em"`, which is equal to `"600px"`.
|
|
166
|
-
|
|
167
|
-
### Fixes
|
|
168
|
-
|
|
169
|
-
- Adds Node environment variable to npm script that Vercel uses to build the site. This patches an error from webpack not building correctly.
|
|
170
|
-
|
|
171
|
-
## 1.2.2 (November 10, 2022)
|
|
172
|
-
|
|
173
|
-
### Adds
|
|
174
|
-
|
|
175
|
-
- Adds an `isClearable` prop to the `TextInput` component. When set to `true`, a close `Button` component will render on top of the input element. Once clicked, any text value in the input field will be cleared and focus will return to the input element.
|
|
176
|
-
- Adds the `isClearable` property to the `textInputProps` prop object in the `SearchBar` component. This allows the `isClearable` prop to be passed to the `TextInput` component to render the close `Button` component.
|
|
177
|
-
|
|
178
|
-
### Updates
|
|
179
|
-
|
|
180
|
-
- Updates the `Icon` and `Logo` documentation to include size values in px.
|
|
181
|
-
- Updates the spacing within the `tertiary` variant of the `Hero` component.
|
|
182
|
-
- Updates the `Buttons Style Guide` to extend the information about button sizes.
|
|
183
|
-
- Updates the `viewport` options in Storybook to align with the Reservoir breakpoints.
|
|
184
|
-
|
|
185
|
-
### Fixes
|
|
186
|
-
|
|
187
|
-
- Fixes an invalid TOC link on the `Card` component Storybook page.
|
|
188
|
-
- Fixes the sizing of the `errorFilled` and `errorOutline` icons in the `Icon` component.
|
|
189
|
-
- Adds new props to Chakra's `ToolTip` to more forcefully close the DS `ToolTip`. New props include `closeDelay`, `closeOnClick`, `closeOnEsc`, and `closeOnMouseDown`.
|
|
190
|
-
|
|
191
|
-
### Removes
|
|
192
|
-
|
|
193
|
-
- Removes the `Button` component warning about the deprecated `link` variant. This change is temporary and will be reverted once teams are able to update their `Button`s appropriately.
|
|
194
|
-
|
|
195
|
-
## 1.2.1 (October 27, 2022)
|
|
196
|
-
|
|
197
|
-
### Adds
|
|
198
|
-
|
|
199
|
-
- Adds the `"buttonPrimary"`, `"buttonSecondary"`, `"buttonPill"`, `"buttonCallout"`, `"buttonNoBrand"`, `"buttonDisabled"` variants for the the `Link` component, set through the `type` prop.
|
|
200
|
-
|
|
201
|
-
### Deprecates
|
|
202
|
-
|
|
203
|
-
- Deprecates the `"button"` `type` variant for the `Link` component. Use any of the new `"buttonX"` variants instead.
|
|
204
|
-
|
|
205
|
-
### Updates
|
|
206
|
-
|
|
207
|
-
- Updates the `AlphabetFilter` component by adding `aria-label=“Filter by letter"` attribute
|
|
208
|
-
and removing the `role` attribute on the `<nav>` element.
|
|
209
|
-
- Updates `AlphabetFilter` border color for the `active letter` indicator from
|
|
210
|
-
`ui.gray.medium` to `ui.gray.dark`.
|
|
211
|
-
- Updates background styles for `Hero` component's `primary` and `campaign` variants.
|
|
212
|
-
- Updates the hover styles for the `Checkbox` and `Radio` components.
|
|
213
|
-
- Improves `TagSet` `"filter"` type accessibility by adding an `aria-label` that includes `"click to remove filter"`, when `isDismissible` is true.
|
|
214
|
-
|
|
215
|
-
### Fixes
|
|
216
|
-
|
|
217
|
-
- Updates Storybook npm packages to fix copying documentation and table of contents heading linking.
|
|
218
|
-
|
|
219
|
-
## 1.2.0 (October 17, 2022)
|
|
220
|
-
|
|
221
|
-
### Adds
|
|
222
|
-
|
|
223
|
-
- Adds a variant for `NYCDOE` to the `Logo` component.
|
|
224
|
-
- Adds the `TagSet` component.
|
|
225
|
-
- Adds the `AlphabetFilter` component.
|
|
226
|
-
- Adds the `AudioPlayer` component.
|
|
227
|
-
- Adds the `requiredLabelText` prop to the `TextInput` and `Label` component.
|
|
228
|
-
This allows customizing the "(Required)" text for other languages.
|
|
229
|
-
|
|
230
|
-
### Updates
|
|
231
|
-
|
|
232
|
-
- Updates the `hamburger` SVG for the `Icon` component to allow for color assignments.
|
|
233
|
-
- Updates `ComponentWrapper` prop `descriptionText` type to `string | JSX.Element`.
|
|
234
|
-
|
|
235
|
-
## 1.1.2 (September 29, 2022)
|
|
236
|
-
|
|
237
|
-
### Adds
|
|
238
|
-
|
|
239
|
-
- Adds the `size` prop to the `Button` component. The accepted values are "small",
|
|
240
|
-
"medium", and "large". The default size value is "medium".
|
|
241
|
-
- Adds the `value` prop to the `Slider` component to programmatically update the
|
|
242
|
-
values of the `Slider` component.
|
|
243
|
-
- Adds the `value` prop to the `CheckboxGroup` component to programmatically
|
|
244
|
-
update the values of the `Checkbox`es within it.
|
|
245
|
-
|
|
246
|
-
### Updates
|
|
247
|
-
|
|
248
|
-
- Updates the colors for the `secondary` and `iconOnly` variants of the `Button` component.
|
|
249
|
-
- Updates the `Tooltip` component to remove the dropshadow effect.
|
|
250
|
-
- Updates whether the content inside of an `Accordion` is always rendered through the `isAlwaysRendered` prop.
|
|
251
|
-
- Updates the spacing of the icon and text in the `Notification` component.
|
|
252
|
-
- Updates the padding and placement of the links in the `Footer` component.
|
|
253
|
-
- Updates how content in the `Table` component is aligned.
|
|
254
|
-
- Updates the `Button` styles in the `Header`, `Notification`, `SearchBar`, and
|
|
255
|
-
`Tabs` components based on the new `size` prop.
|
|
256
|
-
- Updates the `content` prop of the `Tooltip` component to accept number values.
|
|
257
|
-
|
|
258
|
-
### Removals
|
|
259
|
-
|
|
260
|
-
- Removed the `data-testid` attribute from the `Button` component.
|
|
261
|
-
|
|
262
|
-
## 1.1.1 (September 19, 2022)
|
|
263
|
-
|
|
264
|
-
### Adds
|
|
265
|
-
|
|
266
|
-
- Adds the `text` variant in the `Button` component.
|
|
267
|
-
|
|
268
|
-
### Fixes
|
|
269
|
-
|
|
270
|
-
- Fixes a bug where the `defaultValue` for a `TextInput` component was not being passed correctly to the Chakra input element.
|
|
271
|
-
|
|
272
|
-
### Deprecates
|
|
273
|
-
|
|
274
|
-
- Deprecates the `link` variant in the `Button` component.
|
|
275
|
-
|
|
276
|
-
## 1.1.0 (August 30, 2022)
|
|
277
|
-
|
|
278
|
-
This release is exactly the same as the `1.1.0-rc5` release candidate which was published and reviewed. Minor bug fixes, listed below, were made.
|
|
279
|
-
|
|
280
|
-
### Fixes
|
|
281
|
-
|
|
282
|
-
- Fixes how the "footer" area is rendered in the `TemplateAppContainer`.
|
|
283
|
-
- Fixes ARIA labels in the `Footer`.
|
|
284
|
-
|
|
285
|
-
## 1.1.0-rc5 (Release Candidate August 14, 2022)
|
|
286
|
-
|
|
287
|
-
### Header Feature
|
|
288
|
-
|
|
289
|
-
- Adds static `Header` component with login dropdown (functionality to be added later).
|
|
290
|
-
- Implements focus lock in `Login` component in the `Header`'s internal `Login` component.
|
|
291
|
-
- Adds the `SkipNavigation` to the `Header` component.
|
|
292
|
-
- Adds the `SitewideAlerts` component used internally in the `Header` component. This component dynamically fetches and renders NYPL sitewide alerts.
|
|
293
|
-
- Adds login functionality, which includes reading cookie values with new package, js-cookie, making an API call for patron details, and showing a different UI to logged in users.
|
|
294
|
-
- Adds refresh login functionality, which is used when a cookie's accessToken has expired and the server responds to a request for patron details with a 401. It attempts to refresh the token and, if successful, refetches the patron's details.
|
|
295
|
-
- Adds the desktop search form to the `Header` component with the `SearchButton` and `SearchForm` components.
|
|
296
|
-
- Refactors `SearchButton` and `SearchForm` to implement the mobile search form.
|
|
297
|
-
- Adds the mobile navigation menu for the `Header` component with `MobileNav` and `MobileNavButton` components.
|
|
298
|
-
- Adds the mobile login menu for the `Header` component.
|
|
299
|
-
- Adds React context for the `Header`'s patron state data through `HeaderContext` and `HeaderProvider`.
|
|
300
|
-
- Better namespacing for Header-only components.
|
|
301
|
-
- Sets Header Auth links for production and development environments.
|
|
302
|
-
- Adds the `EncoreCatalogLogOutTimer` function to keep track of the patron's current site and when they should be logged out of Encore/Catalog after a timeout period.
|
|
303
|
-
- Uses legacy SVG icons for parity with the existing `Header` component.
|
|
304
|
-
|
|
305
|
-
### Adds
|
|
306
|
-
|
|
307
|
-
- Adds `Tooltip` component.
|
|
308
|
-
- Adds the basic `Footer` React component and documentation. Uses "legacy" SVG icons in the `Footer` component for social media icons.
|
|
309
|
-
- Adds @chakra-ui/focus-lock packages to dependencies and peerDependencies.
|
|
310
|
-
- Adds the `useCloseDropDown` hook to manage closing dropdown-like components through clicks outside of it and by pressing the escape key.
|
|
311
|
-
- Adds the `react-ga` package to send Google Analytics events in the `Header` component.
|
|
312
|
-
|
|
313
|
-
### Updates
|
|
314
|
-
|
|
315
|
-
- Updates the `onClick` event type for the `Pagination` links `onClick` function.
|
|
316
|
-
- Updates the `Link` component's `onClick` event type.
|
|
317
|
-
- Makes small, clarifying update to `Color Mode` story in Storybook.
|
|
318
|
-
|
|
319
|
-
### Fixes
|
|
320
|
-
|
|
321
|
-
- Fixes the styling for the `Image` component in the `Hero` "secondary" variant.
|
|
322
|
-
|
|
323
|
-
## 1.0.8 (August 11, 2022)
|
|
324
|
-
|
|
325
|
-
### Adds
|
|
326
|
-
|
|
327
|
-
- Adds new color values under ui:
|
|
328
|
-
- `bg.default`, `bg.hover`, `bg.active`, `border.default`, `border.hover`, `typography.heading`, and `typography.body`.
|
|
329
|
-
- Adds new colors values under ui.gray:
|
|
330
|
-
- `xxxx-dark` and `xxx-dark`.
|
|
331
|
-
- Adds UI fills colors for dark mode in the codebase and also exported in the `useNYPLTheme` hook.
|
|
332
|
-
- Adds an optional `panelMaxHeight` prop to the `Accordion` component that determines the height of the panel and displays a scrollbar if content exceeds it.
|
|
333
|
-
|
|
334
|
-
### Updates
|
|
335
|
-
|
|
336
|
-
- Updates color value for `xx-dark`.
|
|
337
|
-
- Updates the style of the TOC on the `Style Guide` pages to match the style of the TOC on the component pages.
|
|
338
|
-
- Updates the `Template` components to use CSS grid instead of flexbox.
|
|
339
|
-
- Updates the `Template` documentation with the new pattern for using individual `Template` components that go above the main `TemplateContent` component.
|
|
340
|
-
- Updates the `Placeholder` component's CSS to better display in the `Template` components.
|
|
341
|
-
- Updates how HTML attributes are passed down in the `Image` component to the HTML `img` element.
|
|
342
|
-
- Updates the `Accordion` so that its panel content only renders when the `Accordion` is open.
|
|
343
|
-
|
|
344
|
-
## 1.0.7 (July 29, 2022)
|
|
345
|
-
|
|
346
|
-
### Updates
|
|
347
|
-
|
|
348
|
-
- Updates border color in the `Description` variant of the `List` component.
|
|
349
|
-
- Updates how options are passed to the `SearchBar` component for its internal `Select` component.
|
|
350
|
-
- Updates how style props are passed to the `Link` component when using with third-party libraries, such as React Router.
|
|
351
|
-
- Updates the layout of the `Image` in the `Hero` "secondary" and "fiftyFifty" variants for mobile and desktop.
|
|
352
|
-
|
|
353
|
-
## 1.0.6 (July 21, 2022)
|
|
354
|
-
|
|
355
|
-
### Adds
|
|
356
|
-
|
|
357
|
-
- Adds the `isLazy` prop to the `Image` component which is set to `false` by default.
|
|
358
|
-
|
|
359
|
-
### Updates
|
|
360
|
-
|
|
361
|
-
- Updates the following components to use React's `forwardRef` wrapper function to pass along refs to the correct DOM element. This is for third-party packages and components such as Chakra's `Tooltip` to work correctly.
|
|
362
|
-
- `Accordion`, `Breadcrumbs`, `Button`, `ButtonGroup`, `Card`, `ComponentWrapper`, `FieldSet`, `Form`, `SimpleGrid`, `Heading`, `HelperErrorText`, `Hero`, `HorizontalRule`, `Icon`, `Image`, `Label`, `List`, `Logo`, `Modal`, `Notification`, `Pagination`, `ProgressIndicator`, `SearchBar`, `SkeletonLoader`, `SkipNavigation`, `Slider`, `StatusBadge`, `StructuredContent`, `Table`, `Tabs`, `Template`, `TemplateAppContainer`, `Text`, `VideoPlayer`.
|
|
363
|
-
- Updates `padding-left` and `padding-right` style properties to `padding-start` and `padding-end`, respectively. Updates `margin-left` and `margin-right` style properties to `margin-start` and `margin-end`, respectively. These changes apply to inline CSS, shorthand Chakra style prop syntax, and Chakra theme file syntax. Note that `margin-start/end` and `padding-start/end` get converted to `margin-inline-start/end` and `padding-inline-start/end` respectively by Chakra UI.
|
|
364
|
-
- Updates the `Icon` component to include variants for legacy versions of `Account` (filled and unfilled), `Facebook`, `Instagram`, `Twitter` and `YouTube`.
|
|
365
|
-
- Updates the `Icon` component to include variants for `Warning` (filled and oultine).
|
|
366
|
-
|
|
367
|
-
### Removes
|
|
368
|
-
|
|
369
|
-
- Removes the packages `@mdx-js/react` and `babel-loader` since they are not needed by Storybook.
|
|
370
|
-
|
|
371
|
-
## 1.0.5 (July 7, 2022)
|
|
372
|
-
|
|
373
|
-
### Adds
|
|
374
|
-
|
|
375
|
-
- Exports `ColorCard`.
|
|
376
|
-
|
|
377
|
-
### Updates
|
|
378
|
-
|
|
379
|
-
- Updates the `Icon` component to include variants for `actionCheckCircleFilled`, `actionRegistration`, `decorativeEnvelope`, `decorativeLibraryCard` and `decorativeShoppingBag`.
|
|
380
|
-
- Updates the docs for the `Colors` Style Guide to include additional data related to contrast and WCAG compliance.
|
|
381
|
-
- Updates the `Checkbox` and `Radio` components to use `ui.gray.dark` for the default border color.
|
|
382
|
-
- Updates Storybook packages.
|
|
383
|
-
|
|
384
|
-
### Fixes
|
|
385
|
-
|
|
386
|
-
- Fixes `useNYPLBreakpoints` hook so it internally controls its own state. This eliminates server/client rendering issues on its initial load.
|
|
387
|
-
|
|
388
|
-
## 1.0.4 (June 23, 2022)
|
|
389
|
-
|
|
390
|
-
### Adds
|
|
391
|
-
|
|
392
|
-
- Adds the `useNYPLBreakpoints` hook. This hook internally uses Chakra's `useMediaQuery` hook to get the current responsive media query breakpoint.
|
|
393
|
-
- Adds `ui.gray.xx-dark` to the color palette.
|
|
394
|
-
- Adds npm packages useful for lazy loading images in the `Image` component.
|
|
395
|
-
- Adds text case styles for `Text` component.
|
|
396
|
-
- Exports `ColorModeScript`, `cookieStorageManager`, `localStorageManager`, `useColorMode`, and `useColorModeValue` from Chakra UI for consuming application usage.
|
|
397
|
-
- Adds a "Color Mode" documentation page in Storybook.
|
|
398
|
-
- Adds `ui.white` as default background color to `Checkbox` and `Radio` components.
|
|
399
|
-
- Adds text case styles for `Heading` component
|
|
400
|
-
|
|
401
|
-
### Updates
|
|
402
|
-
|
|
403
|
-
- Updates the `Logo` component to include a variant for `MLN Color`.
|
|
404
|
-
- Updates the `Icon` component to include variants for `Facebook`, `Instagram`, `Tumblr`, `Twitter` and `YouTube`.
|
|
405
|
-
- Updates the `Icon` component to include variants for `Building`, `Exit`, `Locator`, `Power` and `Settings`.
|
|
406
|
-
- Updates to Storybook version 6.5.
|
|
407
|
-
- Explicitly sets the default color mode value to `"light"`.
|
|
408
|
-
- Updates how the `styles.scss` and `resources.scss` files are organized and compiled so that they can be imported in any tech stack.
|
|
409
|
-
- Updates the docs for the `Table` commponent to remove the example that does not include column headers.
|
|
410
|
-
- Updates the `Button`, `Select` and `TextInput` components to use NYPL standard minimum height in mobile viewport.
|
|
411
|
-
- Updates the `SearchBar` component to change how the width of the internal `Select` component is handled.
|
|
412
|
-
|
|
413
|
-
### Fixes
|
|
414
|
-
|
|
415
|
-
- Fixes the styles for the sub-labels in the `DatePicker` component.
|
|
416
|
-
|
|
417
|
-
## 1.0.3 (June 9, 2022)
|
|
418
|
-
|
|
419
|
-
### Adds
|
|
420
|
-
|
|
421
|
-
- Adds prop validation for the `TextInput` "number" type for the `min` and `max` props.
|
|
422
|
-
- Adds `min` and `max` prop value validation for the `Slider` component, including in the "range" mode.
|
|
423
|
-
|
|
424
|
-
### Updates
|
|
425
|
-
|
|
426
|
-
- Updates the `TemplateAppContainer`'s responsive styles for its sidebar component.
|
|
427
|
-
- Updates how the `Radio`'s label is hidden when the `showLabel` prop is set to "false" to fix the "no label" accessibility issue.
|
|
428
|
-
- Updates the `Logo` component to include new variants for `NYPL Text Only`.
|
|
429
|
-
- Updates the `Card`'s full-click functionality styling for its wrapper element.
|
|
430
|
-
- Updates how the `Card`'s `Image` component is displayed in the mobile view; sizes and aspect ratios are maintained instead of always displaying as 100% width.
|
|
431
|
-
- Updates hover style to add right border color on hover for `Select` element.
|
|
432
|
-
- Updates the `Table` component to be responsive for a mobile viewport.
|
|
433
|
-
- Updates the `Table` component to make the `columnHeaders` prop required.
|
|
434
|
-
|
|
435
|
-
### Fixes
|
|
436
|
-
|
|
437
|
-
- Fixes the border color for the `Accordion` button.
|
|
438
|
-
- Fixes a false warning message logged from the `Table` component.
|
|
439
|
-
- Fixes the background color for the `Toggle` button.
|
|
440
|
-
|
|
441
|
-
## 1.0.2 (June 1, 2022)
|
|
442
|
-
|
|
443
|
-
### Adds
|
|
444
|
-
|
|
445
|
-
- Adds `noSpace` prop to the `Heading` component.
|
|
446
|
-
- Adds validation for equal headers and data column to the `Table` component.
|
|
447
|
-
- Adds `className`, `helperTextStyles`, and `showHelperInvalidText` props to the `ComponentWrapper` component.
|
|
448
|
-
|
|
449
|
-
### Updates
|
|
450
|
-
|
|
451
|
-
- Updates the `fontSize` and `padding` attributes in the single variant of the `Accordion` component.
|
|
452
|
-
- Updates all QA urls from Tugboat QA to Vercel.
|
|
453
|
-
- Updates the `Logo` component to include new variants for `Apple App Store`, `Clever Badge` and `Google Play`.
|
|
454
|
-
- Pins the Chakra UI "react" and "system" packages to a certain range since Chakra v2 uses React 18 and creates backwards compatibility issues.
|
|
455
|
-
- Updates buttons setup as icon only to get the same hover styles as `secondary` button in the `Button` component.
|
|
456
|
-
- Updates and refactors the `Checkbox`, `Radio`, `Select`, `Slider`, `TextInput` and `Toggle` components to use the `ComponentWrapper` component for similar DOM structure.
|
|
457
|
-
- Updates how `CheckboxGroup` and `RadioGroup` handle `Checkbox` and `Radio` components when `isFullWidth` is true and there is JSX as labels.
|
|
458
|
-
|
|
459
|
-
### Fixes
|
|
460
|
-
|
|
461
|
-
- Fixes how `Image`s are rendered with a non-default `aspectRatio` value and with a `caption` value or a `credit` value or both.
|
|
462
|
-
- Fixes the extra margin added by the `SkipNavigation` component.
|
|
463
|
-
- Updates various component implementations in Storybook documentation pages to remove inadvertent console errors and warnings.
|
|
464
|
-
- Fixes sizing in the `Card` component for the "body" and "right" sections when the `isAlignedRightActions` prop is set to `true`.
|
|
465
|
-
- Allows `Button`s in the `ButtonGroup` to manage their own `isDisabled` state.
|
|
466
|
-
- Fixes how the `onChange` prop is set in `Checkbox` so it only gets called once per rendering.
|
|
467
|
-
|
|
468
|
-
## 1.0.1 (May 31, 2022)
|
|
469
|
-
|
|
470
|
-
_NOTE_: This version number was previously released in 2019 and is marked as deprecated in npm. The next version bump from `1.0.0` is `1.0.2`.
|
|
471
|
-
|
|
472
|
-
## 1.0.0 (May 12, 2022)
|
|
473
|
-
|
|
474
|
-
This is the first stable release of the NYPL Reservoir Design System! We've been looking forward to this moment for over two years.
|
|
475
|
-
|
|
476
|
-
### Updates
|
|
477
|
-
|
|
478
|
-
- Updates all links throughout the documentation to point to the new production URLs.
|
|
479
|
-
|
|
480
|
-
## 0.28.0 (May 9, 2022)
|
|
481
|
-
|
|
482
|
-
### Adds
|
|
483
|
-
|
|
484
|
-
- Adds `max`, `maxLength`, `min`, and `onClick` props to the `TextInput` component.
|
|
485
|
-
- Adds the `SkipNavigation` component and adds this component inside the `TemplateAppContainer` component. The `SkipNavigation` component renders accessible links to the main content of a page and accessibility information on NYPL.org.
|
|
486
|
-
- Adds the `ButtonGroup` component for `Button` layout.
|
|
487
|
-
|
|
488
|
-
### Updates
|
|
489
|
-
|
|
490
|
-
- Updates how styles are passed down to internal components in `Card`, `Checkbox`, `CheckboxGroup`, `ComponentWrapper`, `DatePicker`, `Hero`, `Notification`, `Pagination`, `Radio`, `RadioGroup`, `SearchBar`, and `Slider`. This is based on removing the `additionalStyles` prop and passing down styles to the `__css` prop.
|
|
491
|
-
- Updates how the `id` is passed in the `DatePicker`'s custom `TextInput` component.
|
|
492
|
-
- Updates how some prop values are passed. Instead of using a Typescript enum object, a Typescript type with the string literal values is used. This still restricts the accepted values for certain props. The enum to string literal type conversion includes the following variables: `AccordionType`, `BreadcrumbsTypes`, `ButtonTypes`, `DatePickerTypes`, `FormGaps` (deleted), `GridGaps`, `HeadingSizes`, `HeadingLevels`, `HeroTypes`, `IconAlign`, `IconTypes`, `IconRotationTypes`, `IconColors`, `IconSizes`, `IconNames`, `LinkTypes`, `ListTypes`, `LogoColors`, `LogoSizes`, `LogoNames`, `NotificationTypes`, `SelectTypes`, `LabelPositions`, `SkeletonLoaderImageRatios`, `StatusBadgeTypes`, `StructuredContentImagePosition`, `TextSizes`, `TextInputTypes`, `TextInputFormats`, `TextInputVariants`, `ToggleSizes`, `VideoPlayerTypes`, `VideoPlayerAspectRatios`, and `LayoutTypes`.
|
|
493
|
-
- Updates the spacing for caption and credit text from `margin-bottom` to `margin-top` in `Image` component
|
|
494
|
-
- Updates how the `DatePicker` and `Slider` components internally use `TextInput`.
|
|
495
|
-
- Updates how the `Pagination` component internally uses `Link`.
|
|
496
|
-
- Updates how the `Tabs` component internally uses `Button`.
|
|
497
|
-
- Updates how images are passed to the `Hero` component. Instead of `imageAlt` and `imageSrc` props, now an object must be passed to the `imageProps` prop.
|
|
498
|
-
- Updates the values for the `name` prop for the `Icon` and `Logo` components.
|
|
499
|
-
- Updates the `Table` component to allow JSX elements to be rendered in the data cells.
|
|
500
|
-
|
|
501
|
-
### Removals
|
|
502
|
-
|
|
503
|
-
- Removes the `additionalStyles` attributes from the `Breadcrumbs`, `Button`, `Heading`, `HelperErrorText`, `Icon`, `Link`, `List`, `Logo`, `Select`, `TextInput`, and `Toggle` components.
|
|
504
|
-
- Removes `getVariant` and `getStorybookEnumValues` helper functions.
|
|
505
|
-
- Removes all Typescript enum objects in favor of string literal types.
|
|
506
|
-
- Remove the bottom margin attribute that is applied to the parent element for the `Select` component.
|
|
507
|
-
- Removes the `attributes` prop from: `Button`, `Link`, and `TextInput` components.
|
|
508
|
-
|
|
509
|
-
## 0.27.0 (April 27, 2022)
|
|
510
|
-
|
|
511
|
-
### Adds
|
|
512
|
-
|
|
513
|
-
- Adds two patterns for rendering the updated `Modal` component. This is still an ongoing work-in-progress as the `Modal` gets finalized but it is now using Chakra under-the-hood.
|
|
514
|
-
- Adds `@chakra-ui/storybook-addon` so stories automatically pick up the Chakra-based NYPL theme.
|
|
515
|
-
|
|
516
|
-
### Updates
|
|
517
|
-
|
|
518
|
-
- Updates React and React DOM to version 17.
|
|
519
|
-
- Updates Chakra packages `@chakra-ui/react` and `@chakra-ui/system`.
|
|
520
|
-
- Updates the `HelperErrorText` styling to correctly display when used with a `Select` element with a `labelPosition` of inline.
|
|
521
|
-
|
|
522
|
-
### Removals
|
|
523
|
-
|
|
524
|
-
- Removes the following packages: `@storybook/addon-queryparams` and `react-router-dom`.
|
|
525
|
-
|
|
526
|
-
## 0.26.1 (April 22, 2022)
|
|
527
|
-
|
|
528
|
-
### Updates
|
|
529
|
-
|
|
530
|
-
- Updates storybook URL from /reservoir/v0_26 to /reservoir/v0.]
|
|
531
|
-
- Updates the `Header`'s bottom navigation links to be underlined and red when hovered.
|
|
532
|
-
|
|
533
|
-
### Fixes
|
|
534
|
-
|
|
535
|
-
- Adds updated package-lock file to fix bad installations.
|
|
536
|
-
|
|
537
|
-
## 0.26.0 (April 22, 2022)
|
|
538
|
-
|
|
539
|
-
### Adds
|
|
540
|
-
|
|
541
|
-
- Exports the `useCarouselStyles` and `useWindowSize` hooks and adds documentation for all hooks in Storybook.
|
|
542
|
-
- Adds additional semantic design tokens from `fontWeights` and `fontSizes` to the `useNYPLTheme` hook.
|
|
543
|
-
- Adds a warning if a required `id` prop is not passed to one of the "Form Elements": `Button`, `Checkbox`, `CheckboxGroup`, `DatePicker`, `Fieldset`, `Form`, `Label`, `ProgressIndicator`, `Radio`, `RadioGroup`, `SearchBar`, `Select`, `Slider`, `TextInput`, `Toggle`.
|
|
544
|
-
- Adds the `isRequired` prop to the `Label` component.
|
|
545
|
-
- Adds the `labelPosition` prop to the `Select` component, so that the label can be styled inline with the select input.
|
|
546
|
-
- Adds Chakra's "Style Props" functionality to every Reservoir component. For composed components, such as the `SearchBar` component, these style props are passed to wrapper element. This update also updates the snapshot tests for every component.
|
|
547
|
-
- Adds the functionality to pass all valid HTML attributes to a Reservoir component, such as `data-*` props.
|
|
548
|
-
- Adds semantic design tokens for `spacing` theme object.
|
|
549
|
-
- Adds the `isAlignedRightActions` prop to the `Card` component to render `CardActions` components to the right of the main content area. This only works for the `Card`'s row layout.
|
|
550
|
-
- Adds styles to target native HTML basic elements inside the `StructuredContent` component.
|
|
551
|
-
- Adds `Reservoir` branding to Storybook.
|
|
552
|
-
|
|
553
|
-
### Changes
|
|
554
|
-
|
|
555
|
-
- Updates the hex color value for `ui.gray.light-cool`, `ui.disabled.primary` and `section.blogs.primary`.
|
|
556
|
-
- Updates the default background color used in the `Accordion` component.
|
|
557
|
-
- Updates the default background color used in the `Hero` component.
|
|
558
|
-
- Updates the background color used in the `SkeletonLoader` component.
|
|
559
|
-
- Updates the background color used in the `VideoPlayer` component.
|
|
560
|
-
- Updates the background colors used in the `Tabs` component.
|
|
561
|
-
- Updates the colors for "secondary" and "pill" variants of the `Button` component.
|
|
562
|
-
- Updates the color values used in the `disabled` state for the `Checkbox`, `Radio`, `Select`, `Slider`, `TextInput` and `Toggle` components.
|
|
563
|
-
- Updates the `Checkbox` component to use "3px" for the border radius.
|
|
564
|
-
- Makes the id prop required for all "Form Elements".
|
|
565
|
-
- Updates how the `Required` text in the `Label` and `Fieldset` components is displayed. Instead of floating to the right of the label and legend elements, it is now displayed inlined as `(Required)`.
|
|
566
|
-
- Renames the `optReqFlag` prop to `showRequiredLabel` in the `CheckboxGroup`, `Fieldset`, `RadioGroup`, and `Slider` components.
|
|
567
|
-
- Renames the `showOptReqLabel` prop to `showRequiredLabel` in the `DatePicker`, `Select`, and `TextInput` components.
|
|
568
|
-
- Uses the design token "text.caption" variable for the `Notification`'s font size.
|
|
569
|
-
- Updates the styling for the `HelperErrorText` to be consistent for all components that use it
|
|
570
|
-
- Refactors the `Checkbox`, `CheckboxGroup`, `ComponentWrapper`, `DatePicker`, `Fieldset`, `Label`, `Radio`, `RadioGroup`, `Select`, `Slider`, `TextInput`, and `Toggle` to better use the updated `HelperErrorText` styling.
|
|
571
|
-
- Renames the `Card`'s `center` prop to `isCentered` and `border` prop to `isBordered`.
|
|
572
|
-
- Renames the `SkeletonLoader` component's `border` prop to `isBordered`.
|
|
573
|
-
- Refactors the DS `RadioGroup` component so it internally implements Chakra's `RadioGroup` component rather than the `useRadioGroup` hook. The "uncontrolled" version of Chakra's `RadioGroup` is not working and will be investigated in the future. It is recommended to use the controlled component pattern.
|
|
574
|
-
- Updates the `Fieldset` component to render the "Optional"/"Required" text in the `legend` element as pseudo CSS in the `::after` rule.
|
|
575
|
-
- Passes the `isRequired` prop in the `RadioGroup` and `CheckboxGroup` to the `Fieldset` wrapper component.
|
|
576
|
-
- Updates the `focus` styles for the `Radio`, `Select` and `TextInput` components.
|
|
577
|
-
- Updates the references of the `<dl>` element from "Definition" to "Description", as that's the official name in HTML5. This affects the `List` element and its `ListTypes.Description` enum value.
|
|
578
|
-
- Updates styles for `React Datepicker`'s calendar popup in the `DatePicker` component.
|
|
579
|
-
- Updates storybook URL from /storybook-static/ to /reservoir/v0_26.
|
|
580
|
-
- Updates all references to "design system" in the Storybook documentation to include "Reservoir" in the name of the design system.
|
|
581
|
-
- Updates language on the `Welcome` page.
|
|
582
|
-
|
|
583
|
-
### Removals
|
|
584
|
-
|
|
585
|
-
- Removes the default `Optional` text displayed in the `Label` and `Fieldset` components.
|
|
586
|
-
- Removes the `optReqFlag` prop in the `Label` component.
|
|
587
|
-
- Removes the default autogenerated id for all components, as well as the `uuid` package.
|
|
588
|
-
- Removes the `HorizontalRule`'s `height` and `width` props from its prop interface in favor of Chakra's style props; the default values are still set for `height` and `width`.
|
|
589
|
-
|
|
590
|
-
### Fixes
|
|
591
|
-
|
|
592
|
-
- Fixes how the `Button` component gets rendered inside the `Form` and `FormField` component layout.
|
|
593
|
-
- Fixes how the `Select` component is controlled in the `SearchBar` component.
|
|
594
|
-
|
|
595
|
-
## 0.25.13 (April 1, 2022)
|
|
596
|
-
|
|
597
|
-
### Adds
|
|
598
|
-
|
|
599
|
-
- Adds a `contentId` prop to the `TemplateAppContainer` component and adds an `id` prop to the `TemplateContent` component. The default value of these `id`s are both set to "mainContent" and it will render as an attribute on the `main` HTML element. This is used as the target for the skip navigation link in consuming applications.
|
|
600
|
-
- Adds an `Accessibility Guide` section to Storybook with a "Skip Navigation" page.
|
|
601
|
-
- Adds the `isFullWidth` prop to the `CheckboxGroup` and `RadioGroup` components. This sets the wrapper element to be full width for labels that need to span its container.
|
|
602
|
-
- Adds an optional key – `accordionType` to the `Accordion`'s `contentData` prop, which allows users to switch the background color of the `Accordion`'s button.
|
|
603
|
-
- Created new `LayoutTypes` enum for row and column layouts.
|
|
604
|
-
- Adds the value "Default" to the `IconSizes` enum.
|
|
605
|
-
|
|
606
|
-
### Changes
|
|
607
|
-
|
|
608
|
-
- Updates Storybook's sidebar categories and documentation.
|
|
609
|
-
- Updates the `Image`'s caption font size to "12px" (`text.tag`).
|
|
610
|
-
- Updates the `Checkbox`'s and `Radio`'s `labelText` prop to accept strings and JSX Elements.
|
|
611
|
-
- Updates the `Toggle`'s internal styling for the default and small sizes.
|
|
612
|
-
- Updates the `Accordion` button's background color when expanded, adds a border color when hovered over, and adjusts the padding.
|
|
613
|
-
- Updates the `CardImage`'s margin bottom in the row and column layouts for mobile to be the same.
|
|
614
|
-
- Updates the `CardImage` to have width 100% on mobile regardless of size.
|
|
615
|
-
- Updates all the console warnings with consistent NYPL branding prefix label.
|
|
616
|
-
- Renames the `Accordion` prop `contentData` to `accordionData`.
|
|
617
|
-
- Renames the `Breadcrumbs` prop `colorVariant` to `breadcrumbsType`.
|
|
618
|
-
- Renames the `Card` prop `center` to `isCentered`.
|
|
619
|
-
- Updates the `Card` prop `layout` to use the `LayoutTypes` enum instead of `CardLayouts`.
|
|
620
|
-
- Updates the `CheckboxGroup` prop `layout` to use the `LayoutTypes` enum instead of `CheckboxGroupLayoutTypes`.
|
|
621
|
-
- Renames the `Heading` prop `displaySize` to `size.
|
|
622
|
-
- Renames the `HeadingDisplaySizes` enum to `HeadingSizes.
|
|
623
|
-
- Renames the `Hero` prop `image` to `imageComponent`.
|
|
624
|
-
- Renames the `Image` prop `imageSize` to `size`.
|
|
625
|
-
- Renames the `Notification` prop `centered` to `isCentered`.
|
|
626
|
-
- Updates the `RadioGroup` prop `layout` to use the `LayoutTypes` enum instead of `RadioGroupLayoutTypes`.
|
|
627
|
-
- Internal updates to the `SearchBar` component based on updates from the `Select` and `TextInput` components.
|
|
628
|
-
- Renames the `Select` prop `type` to `selectType`.
|
|
629
|
-
- Updates the `SkeletonLoader` prop `layout` to use the `LayoutTypes` enum instead of `SkeletonLoaderLayouts`.
|
|
630
|
-
- Renames the `StructuredContentImage` prop `imageSize` to `size` (this component is based on the `Image` component).
|
|
631
|
-
- Internal updates to the `StructuredContent` component based on updates from the `Image` and `Heading` components.
|
|
632
|
-
- Renames the `Tabs` prop `contentData` to `tabsData`.
|
|
633
|
-
- Renames the `Text` prop `displaySize` to `size`.
|
|
634
|
-
- Renames the `TextInput` prop `variant` to `textInputType`.
|
|
635
|
-
- Updates the `Card` image-related props into one main prop named `imageProps`. This new prop contains the following properties: alt, aspectRatio, caption, component, credit, isAtEnd, size, and src.
|
|
636
|
-
- Updates the `Hero` prop `image` to `imageAlt` and `imageSrc`. Internally, an `Image` component is created.
|
|
637
|
-
- Renames the `Image` component props `imageAspectRatio` to `aspectRatio`, `imageCaption` to `caption`, and `imageCredit` to `credit`.
|
|
638
|
-
- Updates the `StructuredContent` image-related props into one main prop named `imageProps`. This new prop contains the following properties: alt, aspectRatio, caption, component, credit, position, size, and src.
|
|
639
|
-
- Renames the `ToggleSizes.tsx` file to `ToggleTypes.tsx`. Updates the values from `Large` and `Small` to `Default` and `Small`.
|
|
640
|
-
- Minor update to the logic for the `ProgressIndicator` sizing prop and styles.
|
|
641
|
-
|
|
642
|
-
### Fixes
|
|
643
|
-
|
|
644
|
-
- Fixes bug where the Next button in `Pagination` would navigate to the previous page.
|
|
645
|
-
- Fixes the alignment of the first link in the `Pagination` component.
|
|
646
|
-
- Fixes the `Breadcrumbs`' SVG arrow icon fill color for the "Blogs" variant.
|
|
647
|
-
- Fixes the margin right value for list items in the `List` component for the inline style.
|
|
648
|
-
- Fixes bug in the `Select` component where the SVG arrow hides when the component is focused.
|
|
649
|
-
- Fixes the extra bottom spacing in the `HeroTypes.Campaign` `Hero` variant for the mobile view.
|
|
650
|
-
- Fixes the `Slider` component so it doesn't cause a stack overflow client-side issue when updating the slider thumbs through the keyboard arrows. The values are now returned through Chakra's `onChange` callback instead of the `onChangeEnd` callback.
|
|
651
|
-
|
|
652
|
-
### Removals
|
|
653
|
-
|
|
654
|
-
- Removes the `CardLayouts`, `CheckboxGroupLayoutTypes`, `RadioGroupLayoutTypes`, and `SkeletonLoaderLayouts` enums.
|
|
655
|
-
- Removes the `CardTypes.tsx`,` CheckboxGroupLayoutTypes.tsx`, and `RadioGroupLayoutTypes.tsx` files.
|
|
656
|
-
|
|
657
|
-
## 0.25.12 (March 18, 2022)
|
|
658
|
-
|
|
659
|
-
### Adds
|
|
660
|
-
|
|
661
|
-
- Adds `Education` section colors to the color palette theme object.
|
|
662
|
-
- Adds a `currentPage` prop to the `Pagination` component, a value that updates the selected page programmatically without the user explicitly requesting it.
|
|
663
|
-
|
|
664
|
-
### Changes
|
|
665
|
-
|
|
666
|
-
- Removes the margin from the global `.nypl p` CSS rule.
|
|
667
|
-
- Updates the top and bottom margin of the `List`'s `Unordered` and `Ordered` types.
|
|
668
|
-
- Updates the `Notification`'s icons to be decorative by default.
|
|
669
|
-
- Updates the default placeholder value for the `SearchBar`'s `TextInput` component.
|
|
670
|
-
- Updates the `SearchBar`'s `textInputProps` prop object to not require the `placeholder` property.
|
|
671
|
-
- Updates the `Logo` component to include new variants for `FirstBook` and `Open eBooks`.
|
|
672
|
-
- Updates the border and text styles for the `Select` component.
|
|
673
|
-
- Updates the `Breadcrumbs` component to inlcude an `Education` color variant.
|
|
674
|
-
- Updates the `Icon` component to include the `Education` color values.
|
|
675
|
-
- Updates the default font stack to fix a typo that was disabling `sans-serif` in the stack.
|
|
676
|
-
- Removes the `.nypl-ds` CSS class from the base SCSS file, from the `TemplateAppContainer` component, from the Storybook configuration, and from the entire repo.
|
|
677
|
-
- Moves the base styles from the SCSS global file to the Chakra theme global JS object.
|
|
678
|
-
- Updates the label font size for the `Radio` and `Checkbox` components to be "label.default".
|
|
679
|
-
|
|
680
|
-
### Fixes
|
|
681
|
-
|
|
682
|
-
- Fixes the styles for the `Slider` to better accomodate the slider thumbs and the width of the container.
|
|
683
|
-
- Updates the alignment of the `Notifications`'s dismissible icon.
|
|
684
|
-
- Fixes the border and padding from the `fieldset` HTML element by removing it.
|
|
685
|
-
- Fixes alignment for long labels in the `Checkbox` and `Radio` components.
|
|
686
|
-
- Fixes the line height for long labels in the `Toggle` component.
|
|
687
|
-
|
|
688
|
-
## 0.25.11 (March 3, 2022)
|
|
689
|
-
|
|
690
|
-
### Updates
|
|
691
|
-
|
|
692
|
-
- Updates the `Logo` component to include new variants for `BPL`, `Clever`, `LPA`, `MLN`, `QPL`, `Schomburg`, `SimplyE` and `Treasures`.
|
|
693
|
-
- Updates font size to "12px" and top margin to "4px" for `HelperErrorText` component.
|
|
694
|
-
- Updates font size to "14px" for `TextInput` component.
|
|
695
|
-
- Adds an `aria-label` attribute to the `Notification` component to use with its `aside` HTML landmark element. Added an "Accessibility" section in the `Notification` Storybook page to note that this component should not be used within a `header` or `footer` HTML landmark element.
|
|
696
|
-
- Updates the `Notification` component to handle link color inside the content area, better styling for centering and the dismissible variation, and updated background color for the "Announcement" and "Warning" types.
|
|
697
|
-
- Updates a log message in the `Icon` component to be more descriptive.
|
|
698
|
-
- Updates the mobile styles for the image in the `StructuredContent` component.
|
|
699
|
-
- Updates the prop type for the "Definition" `List` type so DOM elements can be passed in the definition.
|
|
700
|
-
|
|
701
|
-
### Fixes
|
|
702
|
-
|
|
703
|
-
- Updates the bottom margin of the `Select` in the `SearchBar` so that the helper text has standard gap between the main form components and itself.
|
|
704
|
-
- Updates how `TabList` and `TabPanels` are returned in the `Tabs` component so no false log messages are consoled.
|
|
705
|
-
- Updates `List` component styling for inline.
|
|
706
|
-
|
|
707
|
-
## 0.25.10 (February 22, 2022)
|
|
708
|
-
|
|
709
|
-
### Adds
|
|
710
|
-
|
|
711
|
-
- Exports Chakra's `Flex` and `Spacer` components.
|
|
712
|
-
- Adds `TemplateAboveHeader` component in the set of "template" components.
|
|
713
|
-
- Adds the `aboveHeader` prop to the `TemplateAppContainer` component to render a `TemplateAboveHeader` component immediately before the `TemplateHeader` component.
|
|
714
|
-
- Adds the `additionalStyles` prop to the `Select` component.
|
|
715
|
-
|
|
716
|
-
### Breaking Changes
|
|
717
|
-
|
|
718
|
-
- Renames the `Form` component's `"spacing"` prop to `"gap"` to be consistent with the `FormRow` and `FormField` components.
|
|
719
|
-
- Renames the `FormSpacing` enum to `FormGaps`.
|
|
720
|
-
|
|
721
|
-
### Changes
|
|
722
|
-
|
|
723
|
-
- Passes an `onChange` prop to the `Select` component inside the `SearchBar` through its `selectProps` prop.
|
|
724
|
-
- Adds snapshot tests for the `Tabs` component and better checks to warn the user that the `Tabs` is missing data if data wasn't passed as props or children.
|
|
725
|
-
- Updates the `Form` component to warn developers when a child component in the `FormRow` component _is not_ a `FormField`.
|
|
726
|
-
- Adds an `onSubmit` prop to the `Form` component.
|
|
727
|
-
- Adds the `renderHeaderElement` prop to the `TemplateAppContainer` component. This prop is used to control whether the `TemplateAppContainer` component should render its own `<header>` HTML element through its `header` prop, or let the user pass in their own component that renders the `<header>` HTML element.
|
|
728
|
-
- Updates the `Fieldset` and `RadioGroup` so the `children` prop is declared through `React.PropsWithChildren` rather than in their respective prop interfaces.
|
|
729
|
-
- Adds snapshot tests for the `Accordion` component, as well as `id` props to the components within the `Accordion` so snapshot tests pass.
|
|
730
|
-
- Passes an `id` to the `Icon` in the `Select` component.
|
|
731
|
-
- Adds snapshot tests for the `Select` component.
|
|
732
|
-
|
|
733
|
-
### Fixes
|
|
734
|
-
|
|
735
|
-
- Fixes `id` propagation issues in the `SearchBar` component and its children DS components.
|
|
736
|
-
- Fixing `Breadcrumbs` related logging issue with a CSS pseudo-selector and setting the `aria-label` to "Breadcrumbs". Adding an accessibility test that should fail when more than one `Breadcrumbs` component is rendered on a page since that landmark should only be rendered once on a web page.
|
|
737
|
-
- Exports the `FullDateType` interface related to the `DatePicker` component.
|
|
738
|
-
- Fixes and removes bad console logs from the `Pagination` and `List` components.
|
|
739
|
-
- Fixes auto-generated `id`s in the `Tabs` component.
|
|
740
|
-
- Fixes the Figma link for the `Hero` component.
|
|
741
|
-
- Fixes `Card` component bug for passing styles to the `CardHeading` correctly.
|
|
742
|
-
- Fixes the `Table` component so that a custom header text color of white does not visually hide row headers on a white background.
|
|
743
|
-
|
|
744
|
-
### Updates
|
|
745
|
-
|
|
746
|
-
- Updates the following packages: multiple `@storybook/...` packages, `autoprefixer`, `eslint-plugin-storybook`, `husky`, `lint-staged`, `semantic-release-slack-bot`, `storybook-addon-designs`.
|
|
747
|
-
- Removed the following packages: `postcss`, `pretty-quick`.
|
|
748
|
-
- Added `@chakra-ui/react`, `@chakra-ui/system`, `@emotion/react`, `@emotion/styled`, and `framer-motion` as "peerDependencies".
|
|
749
|
-
- Updates the node version in Github Action workflows from Node v12 to Node v14.
|
|
750
|
-
- Updates how `/dist/resources.scss` is created through gulp.
|
|
751
|
-
|
|
752
|
-
## 0.25.9 (February 3, 2022)
|
|
753
|
-
|
|
754
|
-
### Adds
|
|
755
|
-
|
|
756
|
-
- Adds the `Logo` component.
|
|
757
|
-
- Adds the `noBrandButtonType` boolean prop to the `SearchBar` component to render the `NoBrand` `Button` variant style.
|
|
758
|
-
- Adds element-specific design tokens for `fontSizes` and `fontWeights`.
|
|
759
|
-
- Adds the `StructuredContent` component.
|
|
760
|
-
- Adds the `additionalImageStyles` and `additionalFigureStyles` props to the `Image` component to specifically target the `img` element's style and the `figure` HTML elements.
|
|
761
|
-
- Adds the `Table` component.
|
|
762
|
-
|
|
763
|
-
### Breaking Changes
|
|
764
|
-
|
|
765
|
-
- Completely removes the `CardEdition` and `Input` components and related files and references.
|
|
766
|
-
- Removes all references of the `BEM` CSS pattern.
|
|
767
|
-
- Removes all references to logos from the `Icon` component.
|
|
768
|
-
- Removes passing in text to the `HelperErrorText` component as children. Now, the `text` prop is used to render its text.
|
|
769
|
-
- Renames the `SearchBar`'s `helperErrorText` prop to `helperText` to be consistent with other components.
|
|
770
|
-
|
|
771
|
-
### Changes
|
|
772
|
-
|
|
773
|
-
- Updates the `Form`, `HorizontalRule`, `Image` component by removing the native HTML attributes as props. This sets the props allowed to the list of props declared in their own files.
|
|
774
|
-
- Minor change to the `Notification`'s heading component so it adds a proper id to `NotificationHeading`.
|
|
775
|
-
- Updates the `Heading` component to use the DS `Link` component rather than Chakra's `Link` component.
|
|
776
|
-
- Updates the style of links rendered in the `Heading` component so they are styled as standard links. The only exception is for links used in the `Card` component for the _full-click functionality_ feature. Otherwise, links in `Card` headings are styled as standard links.
|
|
777
|
-
- Updates the `SearchBar` component to now be implemented with the `ComponentWrapper` component.
|
|
778
|
-
- Removes the `ButtonTypes.SearchBar` variant style for the `Button` component. The style object is now set and passed directly to the `Button` component in the `SearchBar` component through the `additionalStyles` prop.
|
|
779
|
-
- Renames `additionalStyles` prop to `additionalWrapperStyles` in the `Image` Component.
|
|
780
|
-
- Updates the label text style in the disabled state of the `Toggle` component.
|
|
781
|
-
- Updates the `Card` component so it gives a bottom margin to the `Image` component when the `imageAspectRatio` prop is set to `ImageRatios.Original`.
|
|
782
|
-
- Updates the `TextInput` component to use a white background for `static`, `error` and `focus` states.
|
|
783
|
-
- Updates `Select` component to use a white background for `static`, `error` and `focus` states.
|
|
784
|
-
- Updates the `Template` component to use `s` (16px) spacing on the left and right sides of the main content area.
|
|
785
|
-
- Updates the `HelperErrorText` component to allow HTML to be passed in as a string or HTML.
|
|
786
|
-
- Updates how the `HelperErrorText` component renders text in the following components: `Checkbox`, `CheckboxGroup`, `ComponentWrapper`, `DatePicker`, `Radio`, `RadioGroup`, `SearchBar`, `Select`, `Slider`, `TextInput`, `Toggle`, `VideoPlayer`.
|
|
787
|
-
- Updates the `HorizontalRule` component to use "100%" as the default value for the `width` prop.
|
|
788
|
-
|
|
789
|
-
### Fixes
|
|
790
|
-
|
|
791
|
-
- Fixes the styling of custom anchor elements when passed as a child in the `Link` component.
|
|
792
|
-
- Allows the `TemplateAppContainer` and `TemplateFooter` components to use the `renderFooterElement` prop. This is `true` by default so it renders an HTML `footer` element. If a custom footer component that renders its own HTML `<footer>` must be used, then setting `renderFooterElement` to false will not render two nested `footer` elements.
|
|
793
|
-
- Fixes the Storybook `level` prop value for the `Heading` component so it updates the component.
|
|
794
|
-
- Removes wrapper divs around custom image elements used in the `Card` component. Also passes the aspect ratio as `ImageRatios.Original` when the custom image element is passed to the `Card` component.
|
|
795
|
-
|
|
796
|
-
## 0.25.8 (January 6, 2022)
|
|
797
|
-
|
|
798
|
-
### Adds
|
|
799
|
-
|
|
800
|
-
- Adds `embedCode` prop to `VideoPlayer` component.
|
|
801
|
-
- Adds export statements for `ProgressIndicatorSizes` and `ProgressIndicatorTypes` enums to `index.ts`.
|
|
802
|
-
- Adds `ExtraSmall` and `ExtraExtraSmall` size variants to the `Image` component.
|
|
803
|
-
- Adds `ExtraSmall` and `ExtraExtraSmall` size variants for `CardImage` in the `Card` component.
|
|
804
|
-
- Adds `AlertNotificationImportant` icon to `Icon` component.
|
|
805
|
-
- Adds `Toggle` component.
|
|
806
|
-
- Adds `xxxs` (2px) spacing option to DS design tokens.
|
|
807
|
-
- Adds `external` variant to `Link` component.
|
|
808
|
-
|
|
809
|
-
### Changes
|
|
810
|
-
|
|
811
|
-
- Changes category for `Table` component from `Basic Elements` to `Page Layout`.
|
|
812
|
-
- Updates the background color for the `Locations` variant in the `Breadcrumbs` component from `section.locations.secondary` to `section.locations.primary`.
|
|
813
|
-
- Updates the `Notification` component to show the `AlertNotificationImportant` icon for the `Standard` variant.
|
|
814
|
-
- Reduces the bottom margin on labels and legends for form components from "16px" to "8px", or "s" to "sx" in Chakra-theme variables.
|
|
815
|
-
- Updates docs for Chakra `Grid` component to use theme object values rather than CSS variables.
|
|
816
|
-
- Updates the spacing in the `Notification` component to improve the alignment of the icon and text elements.
|
|
817
|
-
- Updates the `Notification` component to optionally display/hide the `Icon` in the heading or content area.
|
|
818
|
-
- Updates the `ComponentWrapper` component to allow the internal `HelperErrorText` component to get set in the invalid state. Also added tests for this component.
|
|
819
|
-
|
|
820
|
-
### Fixes
|
|
821
|
-
|
|
822
|
-
- Fixes two bugs in the `Slider`: (1) unable to call the `onChange` function when it is not passed, and (2) fixing the default array value for the range slider so it mounts properly.
|
|
823
|
-
- Updates the `Select` component's controlled state so that an initial empty `value` prop is acceptable.
|
|
824
|
-
|
|
825
|
-
## 0.25.7 (December 20, 2021)
|
|
826
|
-
|
|
827
|
-
### Fixes
|
|
828
|
-
|
|
829
|
-
- Removes `<=12.22` from node engine in `package.json` to reduce installation issues.
|
|
830
|
-
|
|
831
|
-
## 0.25.6 (December 16, 2021)
|
|
832
|
-
|
|
833
|
-
### Adds
|
|
834
|
-
|
|
835
|
-
- Adds export statements for `ProgressIndicator` and `Slider` components to `index.ts`.
|
|
836
|
-
- Adds `Blogs` variant to `Breadcrumbs` component.
|
|
837
|
-
- Adds the `placeholder` prop to the `Select` component.
|
|
838
|
-
|
|
839
|
-
### Changes
|
|
840
|
-
|
|
841
|
-
- Adds "(Required)" text to the placeholder in the `SearchBar` component when `isRequired` is true.
|
|
842
|
-
|
|
843
|
-
## 0.25.5 (December 9, 2021)
|
|
844
|
-
|
|
845
|
-
### Fixes
|
|
846
|
-
|
|
847
|
-
- Updates the Github Action for the Github Pages deployment to use node 12 instead of the default node 16. This caused issues since we now set the node engine to `<=12.22`.
|
|
848
|
-
|
|
849
|
-
## 0.25.4 (December 9, 2021)
|
|
850
|
-
|
|
851
|
-
### Adds
|
|
852
|
-
|
|
853
|
-
- Adds the `ProgressIndicator` component.
|
|
854
|
-
- Adds documentation for using `NYPL Design Tokens`.
|
|
855
|
-
- Adds the `ActionHelpDefault`, `ActionHelpOutline` and `ActionLaunch` icons to the `Icon` component.
|
|
856
|
-
- Adds the DS `Slider` component based on the Chakra `Slider` and `RangeSlider` components.
|
|
857
|
-
- Adds the `ButtonTypes.NoBrand` variant to the `Button` component.
|
|
858
|
-
- Adds the `additionalStyles` prop to the `Breadcrumbs` component.
|
|
859
|
-
|
|
860
|
-
### Changes
|
|
861
|
-
|
|
862
|
-
- Updates the organization of SCSS files by deleting some files and combining others.
|
|
863
|
-
- Updates `@chakra-ui/react` to version 1.7.1 and `@chakra-ui/system` to version 1.8.1.
|
|
864
|
-
- Updates the `TextInput` component to now have `defaultValue` and `step` props.
|
|
865
|
-
- Updates `Latest Version` number for `Image`, `Notification` and `Pagination` components.
|
|
866
|
-
- Removes the Storybook "Knobs" addon.
|
|
867
|
-
- Updates the margin for labels in the `DatePicker` component when it is in the "date range" state.
|
|
868
|
-
- Updates the `DatePicker` component to have proper form spacing when in the "date range" state.
|
|
869
|
-
- Updates the `Tabs` component to comply with linting rules -- no functional or visual changes were made.
|
|
870
|
-
- Removes the `alignText` prop from the `Notification` component. Storybook was incorrectly displaying `alignText` as an available prop.
|
|
871
|
-
|
|
872
|
-
### Fixes
|
|
873
|
-
|
|
874
|
-
- Exports components and variables that were initially missed when they were added: `ColorVariants`, `Fieldset`, `IconAlign`, `StatusBadgeTypes`,
|
|
875
|
-
- Fixes `SearchBar` by passing necessary props down to its `TextInput` through the `textInputProps` prop.
|
|
876
|
-
- Fixes `DatePicker` component unit tests.
|
|
877
|
-
- Removes the `showLabel` prop from the `SearchBar` component to prevent confusion. Labels for the `Select` and `TextInput` components are never shown but are added through the `aria-label` attribute.
|
|
878
|
-
|
|
879
|
-
### Breaking Changes
|
|
880
|
-
|
|
881
|
-
- Updates the breakpoint CSS variable names by adding the `--nypl` prefix and the SCSS variables by adding the `$nypl` prefix. Updates references throughout the codebase.
|
|
882
|
-
- Changes the `Button`'s `disabled` prop to `isDisabled`.
|
|
883
|
-
- Updates npm packages in `package.json`. Removes `cpy-cli`, `react-uid`, `react-is`, `stylelint` and related packages, and `ts-loader` (already added through TSDX). Updates other packages such as `sass-loader`, `prettier`, `jest`, `jest-axe`, and the majority of Storybook addon packages.
|
|
884
|
-
|
|
885
|
-
### Deprecates
|
|
886
|
-
|
|
887
|
-
- Deprecates the `Input` component. The `Input` component will be removed from the NYPL Design System React Library in the first release of January 2022.
|
|
888
|
-
- Deprecates the `CardEdition` component. The `CardEdition` component will be removed from the NYPL Design System React Library in the first release of January 2022.
|
|
889
|
-
|
|
890
|
-
## 0.25.3 (November 18, 2021)
|
|
891
|
-
|
|
892
|
-
### Adds
|
|
893
|
-
|
|
894
|
-
- Adds the `ImageRatios`, `ImageSizes`, and `ImageTypes` enums.
|
|
895
|
-
- Composes the DS `Fieldset` component with Chakra. This always renders a `legend` element as its first child but it can be optionally hidden from the screen.
|
|
896
|
-
- Adds the ability to make an entire `Card` component clickable with Chakra's `LinkBox` and `LinkOverlay` components. Links in the `CardActions` component can still be accessed in this state by clicking with the mouse or tabbing and pressing "enter".
|
|
897
|
-
- Adds new file type SVG files to use in the `Icon` component: Audio, Doc, GenericDoc, Image, PDF, Spreadsheet, Video.
|
|
898
|
-
- Adds `ActionCheckCircle` SVG file to use in the `Icon` component.
|
|
899
|
-
|
|
900
|
-
### Changes
|
|
901
|
-
|
|
902
|
-
- Updates the Github Action for the changelog reminder.
|
|
903
|
-
- Updates the `Checkbox` component with an "indeterminate" state through the `isIndeterminate` prop.
|
|
904
|
-
- Updates the `CheckboxGroup` component story with an "indeterminate" state example.
|
|
905
|
-
- Updates the `CheckboxGroup` and `RadioGroup` components to use the `Fieldset` component.
|
|
906
|
-
- Updates the `HelperErrorText` and `TextInput` components with added `additionalStyles` prop.
|
|
907
|
-
- Updates the `Button` Style Guide documentation.
|
|
908
|
-
- Updates the `Iconography` Style Guide story documentation.
|
|
909
|
-
- Updates the `Button` font weight to "regular".
|
|
910
|
-
|
|
911
|
-
### Fixes
|
|
912
|
-
|
|
913
|
-
- Fixes nondeterministic unit test in the `DatePicker` component.
|
|
914
|
-
- Version of latest `List` component release in its storybook page.
|
|
915
|
-
- Adds validation to the `height` prop in the `HorizontalRule` so percentage values are not used. If a percentage value is used, the default "2px" value is set.
|
|
916
|
-
- Fixes styling issues for the `Notification` dismissible button.
|
|
917
|
-
- Fixes `SearchBar` mobile styling for the `Select`, `TextInput`, and `Button` components.
|
|
918
|
-
- Fixes `SearchBar` focus flicker when the `Select` component is selected.
|
|
919
|
-
|
|
920
|
-
### Breaking Changes
|
|
921
|
-
|
|
922
|
-
- Updates the `Notification` component to fix the custom icon alignment.
|
|
923
|
-
- Adds the `title` prop to the `Icon` component to render a `title` HTML element for accessible SVG icons.
|
|
924
|
-
- Updates the default font size of the `Button` component to `"-1"` (14px) for all variants except the `Link` variant. Removes the `bem` function from internal use and makes it clearer that the `ButtonGroup` Chakra component is exported in the Design System.
|
|
925
|
-
- Updates the `errorText` prop to `invalidText` for the `Checkbox` component.
|
|
926
|
-
- Composes the DS `Pagination` component with Chakra. Removes the BEM-related props and updates the `currentPage` prop to `initialPage`. The current selected page is now kept in state inside the `Pagination` component and returned to the user through `getPageHref` or `onPageChange`. This also adds better aria attributes to the list inside the `Pagination` component.
|
|
927
|
-
- Composes the DS `Image` component with Chakra styling and updates all `Image` references in other DS components. The `attributes` prop and the BEM related props `blockname` and `modifiers` have been removed. Adds the following new props: `additionalStyles`, `component`, `imageAspectRatio`, `imageSize`, `imageType`.
|
|
928
|
-
- Composes the DS `Card` component with Chakra. BEM related props `modifiers` and `blockname` have been removed. Replaces the `CardImageRatios` with `ImageRatios`. Removes the `CardImageSizes` enum.
|
|
929
|
-
- Composes the DS `DatePicker` component with Chakra. Adds more tests, documentation, and examples. This component now uses the `Fieldset` component for the date range type, and better `Form` components for layout. Prop name changes: `dateRange` is now `isDateRange` and `required` is now `isRequired`. BEM related props `modifiers` and `blockname` have been removed. The "Required"/"Optional" text in the date range legend can now be hidden with the `showOptReqLabel` prop.
|
|
930
|
-
- Composes the DS `SkeletonLoader` with Chakra's `Skeleton` component. BEM related prop `modifiers` has been removed. Chakra's default `Skeleton` styles have been updated with NYPL's theme.
|
|
931
|
-
- Removes deprecated CSS variables. Now the DS repo only uses the CSS variables exposed by Chakra that contain the `--nypl` prefix.
|
|
932
|
-
|
|
933
|
-
## 0.25.2 (October 28, 2021)
|
|
934
|
-
|
|
935
|
-
### Adds
|
|
936
|
-
|
|
937
|
-
- Adds custom `useCarouselStyles` hook for the `Tabs` mobile carousel functionality.
|
|
938
|
-
- Adds custom NYPL-theme radii values to use within Chakra, mostly for border radius values.
|
|
939
|
-
- Adds the `showHelperInvalidText` prop to form components to control displaying or hiding the content in the `HelperErrorText` component.
|
|
940
|
-
- Adds `useNYPLTheme` hook for consuming applications to use NYPL DS values.
|
|
941
|
-
- Adds the DS `ComponentWrapper` helper component for internal use.
|
|
942
|
-
- Adds `useWindowSize` hook for responsive styles and functionality.
|
|
943
|
-
- Adds Chakra Migration Guide for version `0.25.0` and greater.
|
|
944
|
-
|
|
945
|
-
### Changes
|
|
946
|
-
|
|
947
|
-
- Updates the CSS vars name prefix to use `nypl`.
|
|
948
|
-
- Updates documentation in the README and updates the issue contribution template.
|
|
949
|
-
- Updates the following components to use the `showHelperInvalidText` prop: `Checkbox`, `CheckboxGroup`, `DatePicker`, `Radio`, `RadioGroup`, `SearchBar`, `Select`, `TextInput`, `VideoPlayer`.
|
|
950
|
-
|
|
951
|
-
### Breaking Changes
|
|
952
|
-
|
|
953
|
-
- Composes the DS `Notification` component with Chakra components. Removes the `NotificationHeading` and `NotificationContent` components as exports and are only used internally in `Notification`. Instead of children component, `Notification` accepts the heading and content values through the `notificationHeading` and `notificationContent` props, respectively.
|
|
954
|
-
- Composes the DS `HelperErrorText` component with Chakra. BEM related props `modifiers` and `blockname` have been removed. The `isError` prop has been renamed to `isInvalid`.
|
|
955
|
-
- Composes the DS `VideoPlayer` component with Chakra. BEM related prop `modifiers` has been removed.
|
|
956
|
-
- Composes the DS `HorizontalRule` component with Chakra. BEM related prop `modifiers` has been removed, as well as the `attributes` prop.
|
|
957
|
-
- Composes the DS `List` component with Chakra. BEM related props `modifiers` and `blockname` have been removed. The `noStyling` prop is now used for the no list style variant style.
|
|
958
|
-
|
|
959
|
-
## 0.25.1 (October 14, 2021)
|
|
960
|
-
|
|
961
|
-
### Adds
|
|
962
|
-
|
|
963
|
-
- Updates the `Accordion` component to internally use Chakra components.
|
|
964
|
-
- Adds DS `SimpleGrid` component composed from Chakra's `Simplegrid` component.
|
|
965
|
-
- Adds DS `Text` component composed from Chakra's `Text` component.
|
|
966
|
-
- Update the NYPL Colors with updated color names and values.
|
|
967
|
-
- Composes the DS `TextInput` component from Chakra's `Input` and `Textarea` components.
|
|
968
|
-
- Composes the DS `Select` component from Chakra's `Select` component.
|
|
969
|
-
- Composes the DS `Hero` component from Chakra's component.
|
|
970
|
-
- Composes the DS `CheckboxGroup` component from Chakra's `CheckboxGroup` component.
|
|
971
|
-
- Composes the DS "Template" components (`Template`, `TemplateHeader`, `TemplateBreakout`, `TemplateContent`, `TemplateContentPrimary`, `TemplateContentSidebar`, `TemplateFooter`) from Chakra's `Box` component for page layouts through children components.
|
|
972
|
-
- Composes the DS `TemplateAppContainer` component from Chakra's `Box` component for page layouts through props.
|
|
973
|
-
- Composes the DS `Link` component with Chakra component and fixes the `Button` type.
|
|
974
|
-
- Exports Chakra's `Grid` and `GridItem` components.
|
|
975
|
-
- Composes the DS `Label` component with Chakra component and updates the font size.
|
|
976
|
-
- Composes the DS `StatusBadge` component from Chakra's component.
|
|
977
|
-
- Composes the DS `Forms` component using DS and Chakra components.
|
|
978
|
-
- Composes the DS `Icon` component with Chakra's `Icon` component. Added new props for `Icon` sizing, alignment, name, and rotation.
|
|
979
|
-
- Composes the DS `SearchBar` component from DS `Select`, `TextInput`, `Button`, and `HelperErrorText` components.
|
|
980
|
-
- Composes the DS `Breadcrumbs` component from Chakra's `Breadcumb`, `BreadcrumbItem` and `BreadcrumbLink` components.
|
|
981
|
-
|
|
982
|
-
### Changes
|
|
983
|
-
|
|
984
|
-
- Updates spacing values to use NYPL spacing rather than "em"s.
|
|
985
|
-
- Updates the `SkeletonLoaderLayouts` enum values from `Horizontal` and `Vertical` to `Row` and `Column`, respectively.
|
|
986
|
-
- Updates the `CardLayouts` enum values from `Horizontal` and `Vertical` to `Row` and `Column`, respectively.
|
|
987
|
-
- Updates font size of the `legend` element used in `CheckboxGroup`, `DatePicker` and `RadioGroup`.
|
|
988
|
-
- Updates the radius values through Chakra's theme object.
|
|
989
|
-
|
|
990
|
-
## 0.25.0 (September 30, 2021)
|
|
991
|
-
|
|
992
|
-
### Breaking Changes
|
|
993
|
-
|
|
994
|
-
- Renames `HeadingDisplaySizes.tsx` to `HeadingTypes.tsx`.
|
|
995
|
-
|
|
996
|
-
### Adds
|
|
997
|
-
|
|
998
|
-
- Integrates Chakra-UI into the codebase.
|
|
999
|
-
- Moved SCSS and CSS variable styles into a custom NYPL theme to extend Chakra's base theme.
|
|
1000
|
-
- Adds `DSProvider` component to use the NYPL theme in consuming applications.
|
|
1001
|
-
- Exports Chakra's `Box`, `Center`, `Circle`, `Square`, `Stack`, `HStack`, and `VStack` components.
|
|
1002
|
-
- Composes the DS `Button` component from Chakra's `Button` component.
|
|
1003
|
-
- Composes the DS `Heading` component from Chakra's `Heading` component.
|
|
1004
|
-
- Composes the DS `Tabs` component from Chakra's `Tabs`, `TabList`, `Tab`, `TabPanels`, and `TabPanel` components.
|
|
1005
|
-
- Composes the DS `Radio` component from Chakra's `Radio` component.
|
|
1006
|
-
- Composes the DS `RadioGroup` component from Chakra's `RadioGroup` component.
|
|
1007
|
-
- Composes the DS `Checkbox` component from Chakra's `Checkbox` component.
|
|
1008
|
-
- Updates the `errorText` prop name to `invalidText`.
|
|
1009
|
-
|
|
1010
|
-
### Removes
|
|
1011
|
-
|
|
1012
|
-
- Removes the `color-classes` SCSS mixin.
|
|
1013
|
-
|
|
1014
|
-
### Changes
|
|
1015
|
-
|
|
1016
|
-
- Updates the development preview URL from the Netlify link to the Tugboat QA link.
|
|
1017
|
-
|
|
1018
|
-
## 0.24.1
|
|
1019
|
-
|
|
1020
|
-
### Adds
|
|
1021
|
-
|
|
1022
|
-
- Adds `FormSpacing` enum to DS exports.
|
|
1023
|
-
- Adds `utility_account_filled`, `utility_account_unfilled`, `utility_hamburger` and `utility_search` icons to `Icon` component.
|
|
1024
|
-
|
|
1025
|
-
### Changes
|
|
1026
|
-
|
|
1027
|
-
- Updates `General Guidelines` for `Buttons Style Guide`.
|
|
1028
|
-
|
|
1029
|
-
### Fixes
|
|
1030
|
-
|
|
1031
|
-
- Fixes left padding on `Card` when `imageAtEnd` and `border` are both `true`.
|
|
1032
|
-
|
|
1033
|
-
## 0.24.0
|
|
1034
|
-
|
|
1035
|
-
### Breaking Changes
|
|
1036
|
-
|
|
1037
|
-
- Renames original `Card` components to be `CardEdition`.
|
|
1038
|
-
|
|
1039
|
-
### Adds
|
|
1040
|
-
|
|
1041
|
-
- Adds the `DatePicker` component.
|
|
1042
|
-
- Adds new `Card` component.
|
|
1043
|
-
- Adds `spacing` prop to `Form` component to allow for spacing variations.
|
|
1044
|
-
- Adds Style Guide `Forms`
|
|
1045
|
-
|
|
1046
|
-
### Changes
|
|
1047
|
-
|
|
1048
|
-
- Exports `VideoPlayerAspectRatios`.
|
|
1049
|
-
- Adds additional props for the `DatePicker` component based on its TAD Addendum section.
|
|
1050
|
-
- Adds Tugboat QA configuration for PR preview deployments to replace Netlify.
|
|
1051
|
-
- Updates the `DatePicker`, `TextInput`, `Select`, and `Label` components to pass an optional `showOptReqLabel` prop to conditionally render "Required"/"Optional" in the label text.
|
|
1052
|
-
|
|
1053
|
-
### Fixes
|
|
1054
|
-
|
|
1055
|
-
- Fixes Accordion FAQ Storybook example rendering bug.
|
|
1056
|
-
|
|
1057
|
-
## 0.23.4
|
|
1058
|
-
|
|
1059
|
-
### Adds
|
|
1060
|
-
|
|
1061
|
-
- Adds TSDX as the bootstrapping tool to add opinionated configurations.
|
|
1062
|
-
- Adds an `/example/` directory through TSDX with an small playground app.
|
|
1063
|
-
- Snapshot testing through `react-test-renderer` and Jest.
|
|
1064
|
-
- Typescript documentation file to be use as a development guide.
|
|
1065
|
-
- Typescript documentation for `enum` variables in the TYPESCRIPT file.
|
|
1066
|
-
- Adds `SkeletonLoaderLayouts` and `SkeletonLoaderImageRatios` enums to DS exports.
|
|
1067
|
-
- Adds heading, description and helper text to `VideoPlayer` component.
|
|
1068
|
-
- Adds `@storybook/addons-jest` plugin to display Jest/React Testing Library unit tests in a Storybook tab.
|
|
1069
|
-
|
|
1070
|
-
### Changes
|
|
1071
|
-
|
|
1072
|
-
- Updates Style Guide `Spacing`.
|
|
1073
|
-
- Updates `Hero` component to include `Campaign` variant.
|
|
1074
|
-
- Updates `Hero` stories to use MDX format.
|
|
1075
|
-
- Updated warnings for too few or too many option children for the `Select` component.
|
|
1076
|
-
- Updates the README to include information on the production, development, and "preview" Storybook documentation instances.
|
|
1077
|
-
- Removes a custom SCSS breakpoint in `_Breadcrumbs.scss` in favor of mobile-first style rules.
|
|
1078
|
-
- Replaces Mocha, Chai, Sinon, and Enzyme for Jest and React Testing Library for unit testing.
|
|
1079
|
-
- Replaces webpack with rollup through TSDX.
|
|
1080
|
-
- Updates npm scripts to use TSDX for internal commands.
|
|
1081
|
-
- Replaces lodash with own functions.
|
|
1082
|
-
- Minor updates to Github Actions.
|
|
1083
|
-
- Adds PostCSS/autoprefixer to Rollup workflow instead of the default scss minifier.
|
|
1084
|
-
|
|
1085
|
-
### Fixes
|
|
1086
|
-
|
|
1087
|
-
- Fixes the `bem` utility function so that it doesn't crash Storybook whenever the `modifiers` Controls prop option is empty.
|
|
1088
|
-
|
|
1089
|
-
## 0.23.3
|
|
1090
|
-
|
|
1091
|
-
### Fixes
|
|
1092
|
-
|
|
1093
|
-
- Removes the `storybook-static` directory from `.gitignore` so that the Github Actions deploy job can work properly.
|
|
1094
|
-
|
|
1095
|
-
## 0.23.2
|
|
1096
|
-
|
|
1097
|
-
### Adds
|
|
1098
|
-
|
|
1099
|
-
- Adds `Form` component.
|
|
1100
|
-
- Adds `Notification` component.
|
|
1101
|
-
- Adds Style Guide `Buttons`.
|
|
1102
|
-
- Adds `VideoPlayer` component.
|
|
1103
|
-
- Adds the ability to render a `textarea` element from the `TextInput` component.
|
|
1104
|
-
|
|
1105
|
-
### Changes
|
|
1106
|
-
|
|
1107
|
-
- Updates stories for the `List` component to use MDX format.
|
|
1108
|
-
- Updates stories for the `Pagination` component to use MDX format.
|
|
1109
|
-
- Updates how children are rendered in the `List` component. Direct children `li`, `dt`, and `dd` elements can still be passed, but specific data structures can be passed to the `listItems` prop to render the appropriate children element.
|
|
1110
|
-
- Updates to the contributing documentation, pull request template, and the README.
|
|
1111
|
-
- Changes `DisplaySizes` to `HeadingDisplaySizes`.
|
|
1112
|
-
- Changes `Skeleton Loader` to be configurable via props.
|
|
1113
|
-
- Changes `Button` to use `16px` for left/right padding for buttons with text; icon only buttons still use `8px` left/right padding.
|
|
1114
|
-
- Changes `TextInput` label text to `font-weight: 500`.
|
|
1115
|
-
|
|
1116
|
-
## 0.23.1
|
|
1117
|
-
|
|
1118
|
-
### Adds
|
|
1119
|
-
|
|
1120
|
-
- Adds CSS vars for `font-weight`
|
|
1121
|
-
- Adds `displaySize` prop to `Heading`
|
|
1122
|
-
- Adds Style Guide `Iconography`
|
|
1123
|
-
- Adds new SVGs to be used with the `Icon` component. Among the new SVGs are: Error solid, Error outlined, Speaker Notes.
|
|
1124
|
-
- Adds ability to change the color of an SVG icon with classes such as: `ui-black` (default), `ui-white`, `brand-primary` (red), `section-research-secondary` (turquoise).
|
|
1125
|
-
- Adds `helperText` and `errorText` props to `Checkbox`
|
|
1126
|
-
- Adds `helperText` and `errorText` props to `Radio`
|
|
1127
|
-
- Adds `errorText`, `helperText`, `labelText`, `required` and `showLabel` props to `Select`
|
|
1128
|
-
|
|
1129
|
-
### Changes
|
|
1130
|
-
|
|
1131
|
-
- Updates content in Style Guide `Typography`
|
|
1132
|
-
- Updates content in Style Guide `Breakpoints`
|
|
1133
|
-
- Changes `Link` story from `.tsx` to `.mdx`.
|
|
1134
|
-
|
|
1135
|
-
### Deprecates
|
|
1136
|
-
|
|
1137
|
-
- Deprecates `ariaLabel`, `helperTextId`, `isRequired` and `labelId` props in `Select`
|
|
1138
|
-
|
|
1139
|
-
## 0.23.0
|
|
1140
|
-
|
|
1141
|
-
### Breaking Changes
|
|
1142
|
-
|
|
1143
|
-
- Removes `breakout` CSS from `Breadcrumbs`. To retain previous behavior, `Breadcrumbs` component should be a child of a `.content-header` element.
|
|
1144
|
-
- Removes `breakout` CSS from `Hero Secondary`. To retain previous behavior, `Hero` component should be a child of a `.content-header` element.
|
|
1145
|
-
|
|
1146
|
-
### Adds
|
|
1147
|
-
|
|
1148
|
-
- Adds `HorizontalRule` component
|
|
1149
|
-
- Adds new `short` class for `Placeholder`
|
|
1150
|
-
- Adds `Style Guide` category to Storybook sidebar
|
|
1151
|
-
|
|
1152
|
-
### Changes
|
|
1153
|
-
|
|
1154
|
-
- Changes `Breadcrumbs` story from `.tsx` to `.mdx`
|
|
1155
|
-
- Changes `Heading` story from `.tsx` to `.mdx`
|
|
1156
|
-
- Changes suggested DOM structure in `Template` Story
|
|
1157
|
-
|
|
1158
|
-
## 0.22.2
|
|
1159
|
-
|
|
1160
|
-
### Changes
|
|
1161
|
-
|
|
1162
|
-
- Adds documentation on layout bidirectionality
|
|
1163
|
-
- Changes `Pagination` to hide pagination UI when there are 0 or 1 pages.
|
|
1164
|
-
|
|
1165
|
-
## 0.22.1
|
|
1166
|
-
|
|
1167
|
-
### Changes
|
|
1168
|
-
|
|
1169
|
-
- Removes `color-classes` and `css-vars` mixins from `_03-mixins.scss`
|
|
1170
|
-
- Adds `color-classes` and `css-vars` mixins to `styles.scss`
|
|
1171
|
-
- Changes order of CSS `@import` rules in `styles.scss`
|
|
1172
|
-
- Adds quotes around `black` and `white` in `$colors` object in `_colors-utility.scss`
|
|
1173
|
-
|
|
1174
|
-
## 0.22.0
|
|
1175
|
-
|
|
1176
|
-
### Breaking Changes
|
|
1177
|
-
|
|
1178
|
-
- Removes `--ui-success` CSS variable and adds `--ui-success-primary` and `--ui-success-secondary`
|
|
1179
|
-
- Removes `checkboxId` prop from `Checkbox` component and employs `id` in its place.
|
|
1180
|
-
- Removes `defaultChecked` prop from `Checkbox` component.
|
|
1181
|
-
- Removed `labelOptions` prop from `Checkbox` component and employs `labelText` in its place.
|
|
1182
|
-
|
|
1183
|
-
### Changes
|
|
1184
|
-
|
|
1185
|
-
- Added: Definition List component.
|
|
1186
|
-
- Changed: Separate Checkbox into its own component.
|
|
1187
|
-
- Changed: Separate Radio button into its own component.
|
|
1188
|
-
- Adds `Tertiary` state to Hero component
|
|
1189
|
-
- Changes `Brand` and `Utility` color values to match Figma main file
|
|
1190
|
-
- Changes `Radio` styles to use SASS vars in place of CSS vars
|
|
1191
|
-
- Adds `TextInput` component to handle email, hidden, number, password, text, textarea, tel and url input types
|
|
1192
|
-
- Adds default width and padding to `StatusBadge` component.
|
|
1193
|
-
- Hides pagination when there are 0 or 1 pages.
|
|
1194
|
-
|
|
1195
|
-
### BugFixes
|
|
1196
|
-
|
|
1197
|
-
- Fixed layout bug for layouts that include a right sidebar column and DOM structure.
|
|
1198
|
-
|
|
1199
|
-
## 0.21.2
|
|
1200
|
-
|
|
1201
|
-
### Changes
|
|
1202
|
-
|
|
1203
|
-
- Adds `getPageHref` to `Pagination`
|
|
1204
|
-
|
|
1205
|
-
## 0.21.1
|
|
1206
|
-
|
|
1207
|
-
### Changes
|
|
1208
|
-
|
|
1209
|
-
- `Accordion`: Adds `fixed-height` modifier and `defaultOpen` prop
|
|
1210
|
-
- `List` defaults to grey bullets instead of black
|
|
1211
|
-
- Adds margins inside the default columns of `Card`
|
|
1212
|
-
|
|
1213
|
-
### BugFixes
|
|
1214
|
-
|
|
1215
|
-
- Breadcrumbs now show up in light colours
|
|
1216
|
-
- Template reflow and breakpoints now happen at the same time
|
|
1217
|
-
- Fixes release github action
|
|
1218
|
-
|
|
1219
|
-
## 0.21.0
|
|
1220
|
-
|
|
1221
|
-
### Breaking Changes
|
|
1222
|
-
|
|
1223
|
-
- Removes `statusBadgeText` prop in StatusBadge to allow text to be inside component
|
|
1224
|
-
|
|
1225
|
-
### Changes
|
|
1226
|
-
|
|
1227
|
-
- Add `method` and `action` to `SearchBar` `<form>`
|
|
1228
|
-
|
|
1229
|
-
### Bugfixes
|
|
1230
|
-
|
|
1231
|
-
- Add the `attributes` property to the `SearchBar` `<form>`
|
|
1232
|
-
- Adds focus outline to the `Accordion` component so it appears when it is tabbed.
|
|
1233
|
-
|
|
1234
|
-
## 0.20.2
|
|
1235
|
-
|
|
1236
|
-
### Changes
|
|
1237
|
-
|
|
1238
|
-
- Exports mixins in a `resources.scss` file that can be used by consumers.
|
|
1239
|
-
|
|
1240
|
-
### Bugfixes
|
|
1241
|
-
|
|
1242
|
-
- `Link` with class `button` has white text color
|
|
1243
|
-
|
|
1244
|
-
## 0.20.1
|
|
1245
|
-
|
|
1246
|
-
### Bugfixes
|
|
1247
|
-
|
|
1248
|
-
- Fixes `Pagination` when there are fewer than 4 pages
|
|
1249
|
-
- Adds `StatusBadge` component to `design-system-react-components` package
|
|
1250
|
-
|
|
1251
|
-
## 0.20.0
|
|
1252
|
-
|
|
1253
|
-
### Changes
|
|
1254
|
-
|
|
1255
|
-
- `Select`: selectedOption holds the selected value, instead of just the default.
|
|
1256
|
-
- `Hero`: `Hero.Secondary` now changes background color based on NYPL site section
|
|
1257
|
-
- `Hero`: All props are now optional
|
|
1258
|
-
- `Input`: added onChange prop to explicitly allow it to be used as a controlled component
|
|
1259
|
-
- Uses stricter linters and more Prettier configs.
|
|
1260
|
-
|
|
1261
|
-
### Breaking Changes
|
|
1262
|
-
|
|
1263
|
-
- Removed `SectionTitle`
|
|
1264
|
-
- Scopes all element selects to the `.nypl-ds` class
|
|
1265
|
-
|
|
1266
|
-
## 0.19.1
|
|
1267
|
-
|
|
1268
|
-
### Breaking Changes
|
|
1269
|
-
|
|
1270
|
-
- Accordion: Accordion input styling affects only direct children
|
|
1271
|
-
- Checkbox: Allows checkbox to be used as a controlled component or uncontrolled component.
|
|
1272
|
-
|
|
1273
|
-
## 0.19.0
|
|
1274
|
-
|
|
1275
|
-
### Breaking Changes
|
|
1276
|
-
|
|
1277
|
-
- Updates `Pagination` component to match new design.
|
|
1278
|
-
|
|
1279
|
-
## 0.18.7
|
|
1280
|
-
|
|
1281
|
-
### Changes
|
|
1282
|
-
|
|
1283
|
-
- Adds actual `StatusBadge` component with props for setting levels [RENO-1882](https://jira.nypl.org/browse/RENO-1882)
|
|
1284
|
-
|
|
1285
|
-
## 0.18.6
|
|
1286
|
-
|
|
1287
|
-
### Changes
|
|
1288
|
-
|
|
1289
|
-
- Updates `Hero`'s primary option to have a larger top/bottom padding on the inner content via [Reno-1670](https://jira.nypl.org/browse/RENO-1670)
|
|
1290
|
-
|
|
1291
|
-
## 0.18.5
|
|
1292
|
-
|
|
1293
|
-
### Changes
|
|
1294
|
-
|
|
1295
|
-
- Converts the Accordion component to open and close through CSS rather than through Javascript.
|
|
1296
|
-
|
|
1297
|
-
## 0.18.4
|
|
1298
|
-
|
|
1299
|
-
### Changes
|
|
1300
|
-
|
|
1301
|
-
- Updates the `Input` component to conditionally render an `id` attribute if an `id` prop value is passed to it.
|
|
1302
|
-
|
|
1303
|
-
## 0.18.3
|
|
1304
|
-
|
|
1305
|
-
### Changes
|
|
1306
|
-
|
|
1307
|
-
- Add `overflow: hidden` to `.no-scroll` styling on `<body>` for modal to prevent scroll element for content behind modal being displayed
|
|
1308
|
-
|
|
1309
|
-
## 0.18.2
|
|
1310
|
-
|
|
1311
|
-
### Changes
|
|
1312
|
-
|
|
1313
|
-
- Updates Accordion sets so that first item in list doesn't have `-1px` top margin
|
|
1314
|
-
|
|
1315
|
-
## 0.18.1
|
|
1316
|
-
|
|
1317
|
-
### Breaking Changes
|
|
1318
|
-
|
|
1319
|
-
- For `Input` components that use the `.input-group` class, on mobile those input elements are now stacked on top of each other rather than side-to-side.
|
|
1320
|
-
|
|
1321
|
-
### Updates
|
|
1322
|
-
|
|
1323
|
-
- Updates the `Input` component to allow it to render a "hidden" input type.
|
|
1324
|
-
|
|
1325
|
-
## 0.18.0
|
|
1326
|
-
|
|
1327
|
-
### Breaking Changes
|
|
1328
|
-
|
|
1329
|
-
- Removes type, color, and line-height declarations from `body` tags and moves them to the `.nypl-ds` namespace
|
|
1330
|
-
|
|
1331
|
-
## 0.17.4
|
|
1332
|
-
|
|
1333
|
-
### Changes
|
|
1334
|
-
|
|
1335
|
-
- Moves footer outside of `.nypl-ds` namespace on Template story
|
|
1336
|
-
|
|
1337
|
-
## 0.17.3
|
|
1338
|
-
|
|
1339
|
-
### Adds
|
|
1340
|
-
|
|
1341
|
-
- `SkeletonLoader` component for loading screens
|
|
1342
|
-
|
|
1343
|
-
## 0.17.2
|
|
1344
|
-
|
|
1345
|
-
### Adds
|
|
1346
|
-
|
|
1347
|
-
- `selectedOption` to `Pagination` story
|
|
1348
|
-
|
|
1349
|
-
## 0.17.1
|
|
1350
|
-
|
|
1351
|
-
### Adds
|
|
1352
|
-
|
|
1353
|
-
- `FiftyFifty` Hero type styling
|
|
1354
|
-
|
|
1355
|
-
## 0.17.0
|
|
1356
|
-
|
|
1357
|
-
### Breaking Changes
|
|
1358
|
-
|
|
1359
|
-
- Sets up the default `font-size` value in the `.nypl-ds` namespace.
|
|
1360
|
-
|
|
1361
|
-
## 0.16.1
|
|
1362
|
-
|
|
1363
|
-
### Adds
|
|
1364
|
-
|
|
1365
|
-
- Styling for `Accordion` sets
|
|
1366
|
-
|
|
1367
|
-
### Changes
|
|
1368
|
-
|
|
1369
|
-
- `className`s within `Accordion` for content
|
|
1370
|
-
- Hover stylings for `Accordion`
|
|
1371
|
-
|
|
1372
|
-
## 0.16.0
|
|
1373
|
-
|
|
1374
|
-
### Breaking Changes
|
|
1375
|
-
|
|
1376
|
-
- Removes the padding on the `breakout` mixin
|
|
1377
|
-
- Removes the padding on the `wrapper` mixin at the `xl` breakpoint
|
|
1378
|
-
|
|
1379
|
-
## 0.15.1
|
|
1380
|
-
|
|
1381
|
-
### Removes
|
|
1382
|
-
|
|
1383
|
-
- `arrow_xsmall` and `search_small` icons
|
|
1384
|
-
|
|
1385
|
-
## 0.15.0
|
|
1386
|
-
|
|
1387
|
-
### Breaking Changes
|
|
1388
|
-
|
|
1389
|
-
- Fixes a bug in which content was not centered within `Button` when button was made larger than the text content
|
|
1390
|
-
|
|
1391
|
-
### Removes
|
|
1392
|
-
|
|
1393
|
-
- Additional `Button` CSS that was no longer used after Button API refactor in 0.13.0
|
|
1394
|
-
- Deprecates `SearchResultItem`
|
|
1395
|
-
|
|
1396
|
-
## 0.14.0
|
|
1397
|
-
|
|
1398
|
-
### Breaking Changes
|
|
1399
|
-
|
|
1400
|
-
- `Image` now has an `alt` prop instead of an `altText` prop
|
|
1401
|
-
- Removes `isDecorative` property in favor of an empty `alt`
|
|
1402
|
-
|
|
1403
|
-
### Adds
|
|
1404
|
-
|
|
1405
|
-
- Adds HTML `<img>` props to the `Image` component
|
|
1406
|
-
|
|
1407
|
-
## 0.13.0
|
|
1408
|
-
|
|
1409
|
-
### Breaking Changes
|
|
1410
|
-
|
|
1411
|
-
- Removes all icon props from `Button`. Button now uses `Icon` as a child
|
|
1412
|
-
- Removes `ButtonIconPositions`
|
|
1413
|
-
|
|
1414
|
-
### Changes
|
|
1415
|
-
|
|
1416
|
-
- Makes `Button`'s `onClick` property optional
|
|
1417
|
-
|
|
1418
|
-
## 0.12.0
|
|
1419
|
-
|
|
1420
|
-
### Breaking Changes
|
|
1421
|
-
|
|
1422
|
-
- Moves box-sizing declarations to a `.nypl-ds` namespace. All future "global" CSS settings will move to exist under this namespace.
|
|
1423
|
-
|
|
1424
|
-
### Adds
|
|
1425
|
-
|
|
1426
|
-
- Universal focus styling
|
|
1427
|
-
|
|
1428
|
-
## 0.11.5
|
|
1429
|
-
|
|
1430
|
-
### Changes
|
|
1431
|
-
|
|
1432
|
-
- Updates the margin on action-links from `xxs` to `xs`
|
|
1433
|
-
|
|
1434
|
-
## 0.11.4
|
|
1435
|
-
|
|
1436
|
-
### Changes
|
|
1437
|
-
|
|
1438
|
-
- Removes the `description` tag from the `<span>` element wrapping svg icons (#360)
|
|
1439
|
-
|
|
1440
|
-
## 0.11.3
|
|
1441
|
-
|
|
1442
|
-
### Changes
|
|
1443
|
-
|
|
1444
|
-
- `Icon` now accepts children for custom icons
|
|
1445
|
-
|
|
1446
|
-
## 0.11.2
|
|
1447
|
-
|
|
1448
|
-
### Adds
|
|
1449
|
-
|
|
1450
|
-
- Status Badge component as stories
|
|
1451
|
-
|
|
1452
|
-
## 0.11.1
|
|
1453
|
-
|
|
1454
|
-
### Changes
|
|
1455
|
-
|
|
1456
|
-
- DS bundle is now compiled for es5 instead of es6 to accommodate for IE11 and the arrow functions we're using in DS
|
|
1457
|
-
|
|
1458
|
-
## 0.11.0
|
|
1459
|
-
|
|
1460
|
-
## Breaking Changes
|
|
1461
|
-
|
|
1462
|
-
- Removes options from the `Pagination` component
|
|
1463
|
-
|
|
1464
|
-
## 0.10.4
|
|
1465
|
-
|
|
1466
|
-
### Changes
|
|
1467
|
-
|
|
1468
|
-
- Updates the `Link` component's `linkType` prop to `type`, implements `React.forwardRef` to use with other libraries, and updates the stories.
|
|
1469
|
-
|
|
1470
|
-
## 0.10.3
|
|
1471
|
-
|
|
1472
|
-
### Changes
|
|
1473
|
-
|
|
1474
|
-
- Updates the `Icon` component's `name` prop to allow for `LogoNames` enum types.
|
|
1475
|
-
|
|
1476
|
-
### Adds
|
|
1477
|
-
|
|
1478
|
-
- Adds a "negative" NYPL logo to be used on non-white backgrounds.
|
|
1479
|
-
|
|
1480
|
-
## 0.10.2
|
|
1481
|
-
|
|
1482
|
-
### Changes
|
|
1483
|
-
|
|
1484
|
-
- Updates the formatting of svg file names to use underscores
|
|
1485
|
-
|
|
1486
|
-
## 0.10.1
|
|
1487
|
-
|
|
1488
|
-
### Changes
|
|
1489
|
-
|
|
1490
|
-
- Updates the `Input` element to allow props and attributes to be able to render input elements of type "radio".
|
|
1491
|
-
|
|
1492
|
-
## 0.10.0
|
|
1493
|
-
|
|
1494
|
-
### Removes
|
|
1495
|
-
|
|
1496
|
-
- Deprecates `SectionName` in favor of the stories under `Colors—Brand`
|
|
1497
|
-
|
|
1498
|
-
## 0.9.3
|
|
1499
|
-
|
|
1500
|
-
### Adds
|
|
1501
|
-
|
|
1502
|
-
- SVGs for NYPL full logo lockup, Queens Public Library Logo, and Brooklyn Public Library Logo
|
|
1503
|
-
|
|
1504
|
-
## 0.9.2
|
|
1505
|
-
|
|
1506
|
-
### Adds
|
|
1507
|
-
|
|
1508
|
-
- CSS to style [React Autosuggest](https://github.com/moroshko/react-autosuggest/)
|
|
1509
|
-
|
|
1510
|
-
## 0.9.1
|
|
1511
|
-
|
|
1512
|
-
### Changes
|
|
1513
|
-
|
|
1514
|
-
- `Breadcrumbs`'s background color now reflects the app's globally applied section modifier, such as `.nypl--locations`. It recognizes these for `--locations`, `--whats-on`, `--research`, and `--books-and-more`.
|
|
1515
|
-
|
|
1516
|
-
## 0.9.0
|
|
1517
|
-
|
|
1518
|
-
### Breaking Changes
|
|
1519
|
-
|
|
1520
|
-
- Removes `$color-spotlight`, `$color-your-interests`, `$color-support`, and `$color-help`
|
|
1521
|
-
- Removes all `$nypl-` prefixed Sass variables
|
|
1522
|
-
- `$color-success` is now `--ui-success`.
|
|
1523
|
-
- Breakpoint variables are now prefixed with `breakpoint`.
|
|
1524
|
-
- Type sizing variables are now prefixed with `font-size`.
|
|
1525
|
-
- Typeface variables are now prefixed with `typeface`.
|
|
1526
|
-
- Removes `--font-size-1p5`, which was originally added as certain designs call out `20px` for headings and others at `18px`. Figma documentation refers to `18px` only as of [0.1.1](https://www.figma.com/file/qShodlfNCJHb8n03IFyApM/Master?node-id=10975%3A16).
|
|
1527
|
-
|
|
1528
|
-
### Adds
|
|
1529
|
-
|
|
1530
|
-
- Exposes color and typography constants as CSS variables
|
|
1531
|
-
- Adds Section colors for `--section-research-library-lpa`, `--section-research-library-schomburg`, and `--section-research-library-schwartzman`
|
|
1532
|
-
|
|
1533
|
-
### Removes
|
|
1534
|
-
|
|
1535
|
-
- Letterspacing property on all body copy
|
|
1536
|
-
|
|
1537
|
-
## 0.8.0
|
|
1538
|
-
|
|
1539
|
-
### Removes
|
|
1540
|
-
|
|
1541
|
-
- `width: 100%` on svgs
|
|
1542
|
-
|
|
1543
|
-
## 0.7.2
|
|
1544
|
-
|
|
1545
|
-
### Adds
|
|
1546
|
-
|
|
1547
|
-
- Adds icons for `accessibility_full`, `accessibility_partial`, `clock`, `check`, and `close`
|
|
1548
|
-
|
|
1549
|
-
### Changes
|
|
1550
|
-
|
|
1551
|
-
- Updates the `download` icon to Google Material Design's icon.
|
|
1552
|
-
|
|
1553
|
-
## 0.7.1
|
|
1554
|
-
|
|
1555
|
-
### Changes
|
|
1556
|
-
|
|
1557
|
-
- Updated the Select component to take in a ref using ForwardRef and also a `name` prop.
|
|
1558
|
-
|
|
1559
|
-
## 0.7.0
|
|
1560
|
-
|
|
1561
|
-
### Breaking Changes
|
|
1562
|
-
|
|
1563
|
-
- `FormDropDown` and `Dropdown` are now `Select`
|
|
1564
|
-
- `Textfield` has been retired in favor of `Input`
|
|
1565
|
-
- `Input` type is now controlled via an enum defined in `InputTypes` instead of a string
|
|
1566
|
-
- Changes `referenceId` to `htmlFor` on `Label`
|
|
1567
|
-
- Deprecates `DateRangeForm`, `BodyText`, `SearchPromo`, `Container`, and `RNHeaderWithSearch`
|
|
1568
|
-
- `Button` now accepts an `onClick` instead of a `callback`
|
|
1569
|
-
- In the `ButtonTypes` enum, `Filled` and `Outline` have been changed to `Primary` and `Secondary`, respectively
|
|
1570
|
-
- `Accordion` now accepts `accordionLabel` and `labelId` instead of `buttonOpts` properties
|
|
1571
|
-
- Removes project-specific styles for now deprecated `EditionCard`
|
|
1572
|
-
- Removes project-specific styles of `.search-results-list` and `.form-item--radios`
|
|
1573
|
-
- `UnorderedList` is now `List`, with an enum to control whether is it ordered or unordered
|
|
1574
|
-
- `Input` `id` is no longer prepended with `input-`
|
|
1575
|
-
- `Button` `id` is no longer prepended with `btn-`
|
|
1576
|
-
- `SearchBar` no longer has props for `selectChangeHandler`, `selectBlurHandler`, or `searchChangeHandler`.
|
|
1577
|
-
- `Input` offers `ariaLabel` and `ariaLabelledby` props in favor of `labelId` and `helperTextId`
|
|
1578
|
-
- Removes `headingAttributes?: {}` from `SectionTitle`
|
|
1579
|
-
|
|
1580
|
-
### Adds
|
|
1581
|
-
|
|
1582
|
-
- Adds `aria-live` and `aria-atomic` to `HelperErrorText` in its errored state
|
|
1583
|
-
- Adds "Optional", "Required", or empty string inside `Label` for forms
|
|
1584
|
-
- Adds `IconNames` enum to make `allSVGs` array globally accessible
|
|
1585
|
-
- Adds `width: 100%` globally to SVGs
|
|
1586
|
-
- `Card` now constrains items in its `image` column to the column width
|
|
1587
|
-
- Adds the `forwardRef` implementation to the `Input` component
|
|
1588
|
-
- Adds `disabled` prop to `Input` and `Button` components
|
|
1589
|
-
- Adds `disabled` styling to `Button.Primary`
|
|
1590
|
-
- Adds `className?: string;` as additional props to all components
|
|
1591
|
-
- Adds `attributes?: { [key: string]: string }; ` to `Input`, `Button`, `Select`, `Link`, and `Image`
|
|
1592
|
-
- Adds `justify-content: center` for `Button` with icon to adjust for mobile
|
|
1593
|
-
|
|
1594
|
-
### Changes
|
|
1595
|
-
|
|
1596
|
-
- Fixes bug in former `FormDropdown` (now `Select`) where the select value would not change if `selectedOption` were passed
|
|
1597
|
-
- `Link`'s scss now references `$ui-link-primary` instead of `$nypl-blue-regular`
|
|
1598
|
-
- Changes `Select`'s SCSS to use the updated styling from Filament Group
|
|
1599
|
-
- `Image` is wrapped in `figure` when `imageCaption` or `imageCredit` is passed to `Image`
|
|
1600
|
-
- Adds `viewport` properties to any SVG files that were missing it
|
|
1601
|
-
|
|
1602
|
-
### Removes
|
|
1603
|
-
|
|
1604
|
-
- Removes `HelperErrorTextOptions`
|
|
1605
|
-
|
|
1606
|
-
## 0.6.0
|
|
1607
|
-
|
|
1608
|
-
### Breaking Changes
|
|
1609
|
-
|
|
1610
|
-
- Removes `RNSectionTitle`
|
|
1611
|
-
|
|
1612
|
-
### Changes
|
|
1613
|
-
|
|
1614
|
-
- Updates `$nypl-blue-regular` from #0071ce to #0576d3
|
|
1615
|
-
- `$nypl-blue-regular` is now extended with `$ui-link-primary`
|
|
1616
|
-
|
|
1617
|
-
## [0.5.0]
|
|
1618
|
-
|
|
1619
|
-
### Breaking Changes
|
|
1620
|
-
|
|
1621
|
-
- `EditionCard` is now `Card`
|
|
1622
|
-
- Buttons from black by default to blue
|
|
1623
|
-
|
|
1624
|
-
### Adds
|
|
1625
|
-
|
|
1626
|
-
- Icon for audiobook
|
|
1627
|
-
- Changes the line-height values on some of the heading mixins
|
|
1628
|
-
|
|
1629
|
-
## [0.4.1]
|
|
1630
|
-
|
|
1631
|
-
### Changes
|
|
1632
|
-
|
|
1633
|
-
- Makes all IDs optional
|
|
1634
|
-
|
|
1635
|
-
## [0.4.0]
|
|
1636
|
-
|
|
1637
|
-
### Breaking Changes
|
|
1638
|
-
|
|
1639
|
-
- Concatenates `BasicLink`, `UnderlineLink`, and `IconLink` into `Link` with `LinkTypes` enum
|
|
1640
|
-
- Moves styles into their corresponding component folders
|
|
1641
|
-
- Moves base styles into the react-components package
|
|
1642
|
-
- Deprecates `@nypl/design-system-styles`
|
|
1643
|
-
|
|
1644
|
-
### Changes
|
|
1645
|
-
|
|
1646
|
-
- Moves tests into their corresponding component folders
|
|
1647
|
-
- Flattens component structure to export as one package.
|
|
1648
|
-
- Exports `Icon`
|
|
1649
|
-
|
|
1650
|
-
## [0.3.7]
|
|
1651
|
-
|
|
1652
|
-
- Fixed `dist` script so it clears the folder
|
|
1653
|
-
- Added `viewBox` to `arrow` icon
|
|
1654
|
-
|
|
1655
|
-
## [0.3.6]
|
|
1656
|
-
|
|
1657
|
-
- added `Template` stories
|
|
1658
|
-
- fixed `Accordion` buttons
|
|
1659
|
-
- added `viewBox` to `arrow-xsmall` icon
|
|
1660
|
-
|
|
1661
|
-
## [0.3.5]
|
|
1662
|
-
|
|
1663
|
-
- Move `Placeholder`, `Modal`, `SectionName` and `Container` from `/00-base` into top-level `/components`
|
|
1664
|
-
- Fix Storybook errors for Headings with Bold and Headings with Link.
|
|
1665
|
-
- Move `Headings/*` from `/02-molecules` into top-level `/components`
|
|
1666
|
-
- Inlined icons inside `react-components`
|
|
1667
|
-
- No longer publishing `@nypl/design-system-icons` package
|
|
1668
|
-
|
|
1669
|
-
## [0.3.4]
|
|
1670
|
-
|
|
1671
|
-
- Exported `searchValue` and `selectedField` in `RNHeaderWithSearch`
|
|
1672
|
-
|
|
1673
|
-
## [0.3.3]
|
|
1674
|
-
|
|
1675
|
-
- Added `blockName` handling to `DateRangeForm`
|
|
1676
|
-
|
|
1677
|
-
## [0.3.1]
|
|
1678
|
-
|
|
1679
|
-
- Exports `SectionName` and `Image`
|
|
1680
|
-
|
|
1681
|
-
## [0.3.0]
|
|
1682
|
-
|
|
1683
|
-
### Breaking Changes
|
|
1684
|
-
|
|
1685
|
-
- Edition Card no longer accepts strings for links and descriptions
|
|
1686
|
-
|
|
1687
|
-
### Changed
|
|
1688
|
-
|
|
1689
|
-
- Added `iconName` as an optional prop in `IconLink`
|
|
1690
|
-
|
|
1691
|
-
## [0.2.1] - 2020-04-23
|
|
1692
|
-
|
|
1693
|
-
### Removed
|
|
1694
|
-
|
|
1695
|
-
- `HeaderWithImageRight` component and corresponding story
|
|
1696
|
-
|
|
1697
|
-
## [0.2.0] - 2020-04-13
|
|
1698
|
-
|
|
1699
|
-
### Changed
|
|
1700
|
-
|
|
1701
|
-
- Reworks `HeaderWithImageRight` into `Hero`, which accepts values from an enum to display different kinds of heros based on [this documentation page](https://www.figma.com/file/qShodlfNCJHb8n03IFyApM/Master?node-id=10968%3A5314)
|
|
1702
|
-
|
|
1703
|
-
## [0.1.1]
|
|
1704
|
-
|
|
1705
|
-
### Changed
|
|
1706
|
-
|
|
1707
|
-
- `Textfield` id is no longer duplicated
|
|
1708
|
-
- `Dropdown` now applies `bem` `blockName`
|
|
1709
|
-
- `Pagination` now passes in `blockName` into `Dropdown`
|
|
1710
|
-
|
|
1711
|
-
## [0.1.0]
|
|
1712
|
-
|
|
1713
|
-
### Breaking Changes
|
|
1714
|
-
|
|
1715
|
-
- Large classes now have `Opts` inteface that allows for the component to be built over multiple steps. This affects:
|
|
1716
|
-
- `HelperErrorText`
|
|
1717
|
-
- `Label`
|
|
1718
|
-
- `TextField`
|
|
1719
|
-
- `Button`
|
|
1720
|
-
- Deprecated `SearchResultsList`, `IconLinkList` and `EditionsList` in favor of `UnorderedList`
|
|
1721
|
-
- `type` in `Button` now corresponds to html button types. `buttonType` in button corresponds to the visual categories of buttons (eg: `filled`, `outline`)
|
|
1722
|
-
- `subtitle` in `SearchResultsItem` changed to `subtitleContent` to take a JSX
|
|
1723
|
-
- `Label` and `Button` only accept children when called directly
|
|
1724
|
-
|
|
1725
|
-
### Added:
|
|
1726
|
-
|
|
1727
|
-
- `Checkbox`
|
|
1728
|
-
- `DateRangeForm`
|
|
1729
|
-
- `Input`
|
|
1730
|
-
- `Accordion`
|
|
1731
|
-
- `UnorderedList`
|
|
1732
|
-
- # `Modal`
|
|
1733
|
-
|
|
1734
|
-
## [0.0.17] - 2020-03-17
|
|
1735
|
-
|
|
1736
|
-
- Changelog update
|
|
1737
|
-
|
|
1738
|
-
## [0.0.16]
|
|
1739
|
-
|
|
1740
|
-
- `HeaderImgRight` accepts elements
|
|
1741
|
-
|
|
1742
|
-
## [0.0.15] - 2020-03-3
|
|
1743
|
-
|
|
1744
|
-
### Changed
|
|
1745
|
-
|
|
1746
|
-
- `Button` component accepts content to render from its `content` prop or its `children` prop.
|
|
1747
|
-
|
|
1748
|
-
## [0.0.14] - 2020-02-18
|
|
1749
|
-
|
|
1750
|
-
### Changed
|
|
1751
|
-
|
|
1752
|
-
- `EditionCard` `EditionInfo` fields accept elements
|
|
1753
|
-
- `EditionCard` `ReadOnline` and `Download` fields accept elements
|
|
1754
|
-
|
|
1755
|
-
### [0.0.14] - 2020-02-18
|
|
1756
|
-
|
|
1757
|
-
- added `noLinkElement` to `EditionCard` to receive an element
|
|
1758
|
-
|
|
1759
|
-
## [0.0.11] — 2020-01-23
|
|
1760
|
-
|
|
1761
|
-
### Added
|
|
1762
|
-
|
|
1763
|
-
- `EditionsList`
|
|
1764
|
-
|
|
1765
|
-
## [0.0.10] - 2020-01-14
|
|
1766
|
-
|
|
1767
|
-
### Added
|
|
1768
|
-
|
|
1769
|
-
- `Dropdown` which controls `FormDropdown` and its corresponding `Label`
|
|
1770
|
-
- `Label`
|
|
1771
|
-
- `HelperErrorText`
|
|
1772
|
-
- `Pagination`
|
|
1773
|
-
- `EditionCard` component
|
|
1774
|
-
- `SearchResultItem` component that uses `EditionCard`
|
|
1775
|
-
- `RN Header With Search`
|
|
1776
|
-
- a story for `RN Section Title`, which is just a collection of styles
|
|
1777
|
-
- `SearchResultsList` component
|
|
1778
|
-
|
|
1779
|
-
### Changed
|
|
1780
|
-
|
|
1781
|
-
- added `iconModifiers` to `Button`
|
|
1782
|
-
- `buttonId` in `Button` is now required
|
|
1783
|
-
- refactored `FormDropdown` to not include its own `label`
|
|
1784
|
-
- `RN Header With Search`
|
|
1785
|
-
- a story for `RN Section Title`, which is just a collection of styles
|
|
1786
|
-
- `Link` -> `BasicLink` for clarity
|
|
1787
|
-
- Bugfixes in `UnderlineLink` and `IconLink`
|
|
1788
|
-
- Added stories for `BasicLink`
|
|
1789
|
-
- `Link` missing URL error message
|
|
1790
|
-
- Consolidated `Heading` and `PageTitle`
|
|
1791
|
-
- `Heading` now only takes a single span
|
|
1792
|
-
- Added ResearchNow specific `SearchBar` error state
|
|
1793
|
-
- A11Y changes for `SearchBar` and `HeaderWithSearch`
|
|
1794
|
-
- Added stories for AT-79, AT-264 and AT-3
|
|
1795
|
-
- `selectedOption` added to `FormDropdown` stores selected state
|
|
1796
|
-
|
|
1797
|
-
## [0.0.7] - 2020-01-03
|
|
1798
|
-
|
|
1799
|
-
### Added
|
|
1800
|
-
|
|
1801
|
-
- A webpack file in order to build and distribute a compiled version of the react components. Does not replace the /lib folder usage, but the main file is now pointing to `/dist/design-system-react-components.min.js`.
|
|
1802
|
-
|
|
1803
|
-
## [0.0.6] - 2019-12-31
|
|
1804
|
-
|
|
1805
|
-
### Added
|
|
1806
|
-
|
|
1807
|
-
- `Image` for 2:1 ratio
|
|
1808
|
-
- `PageTitle`
|
|
1809
|
-
- `Header with Image Right`
|
|
1810
|
-
- `FormDropdown`
|
|
1811
|
-
- `SearchPromo`
|
|
1812
|
-
|
|
1813
|
-
### Changed
|
|
1814
|
-
|
|
1815
|
-
- Moved heading-related atoms from `01-atoms/Text` into `01-atoms/Text/Heading`
|
|
1816
|
-
- Updated `Searchbar` component to include Parameters
|
|
1817
|
-
- Changed `Breadcrumb` export from `Breadcrumbs`
|
|
1818
|
-
|
|
1819
|
-
## [0.0.5] - 2019-12-06
|
|
1820
|
-
|
|
1821
|
-
### Changed
|
|
1822
|
-
|
|
1823
|
-
- `Icon` import
|
|
1824
|
-
|
|
1825
|
-
## [0.0.4] - 2019-12-06
|
|
1826
|
-
|
|
1827
|
-
### Added
|
|
1828
|
-
|
|
1829
|
-
- `Body text` component for plain-text elements
|
|
1830
|
-
- `UnderlineLink` and `IconLink` for links
|
|
1831
|
-
- `Icon` component that uses the `design-system-icons` package.
|
|
1832
|
-
- `SectionTitle` and `Heading` for heading components
|
|
1833
|
-
- `IconLink-List`for the list of subject links
|
|
1834
|
-
- `Button` and `TextField` for the searchbar
|
|
1835
|
-
- `SearchBar` component
|
|
1836
|
-
|
|
1837
|
-
### Changed
|
|
1838
|
-
|
|
1839
|
-
- `Breadcrumb` now shows icon in mobile view
|
|
1840
|
-
|
|
1841
|
-
## [0.0.3] - 2019-11-15
|
|
1842
|
-
|
|
1843
|
-
### Changed
|
|
1844
|
-
|
|
1845
|
-
- Changed `Breadcrumb` to `Breadcrumbs` to match Twig
|
|
1846
|
-
- Changed the Breadcrumbs props to accept components
|
|
1847
|
-
|
|
1848
|
-
## [0.0.2] - 2019-11-13
|
|
1849
|
-
|
|
1850
|
-
### Added
|
|
1851
|
-
|
|
1852
|
-
- Started a change log
|
|
1853
|
-
- Added the Breadcrumb React Component
|
|
1854
|
-
|
|
1855
|
-
### Changed
|
|
1856
|
-
|
|
1857
|
-
- Changed folder structure to match Twig
|
|
1858
|
-
|
|
1859
|
-
## [0.0.1] - 2019-11-13
|
|
1860
|
-
|
|
1861
|
-
- Published as a test
|