@nypl/design-system-react-components 1.0.7 → 1.1.0-rc2

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.
Files changed (59) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +5 -0
  2. package/dist/components/Footer/Footer.d.ts +14 -0
  3. package/dist/components/Footer/footerLinks.d.ts +12 -0
  4. package/dist/components/Form/Form.d.ts +2 -2
  5. package/dist/components/Header/Header.d.ts +20 -0
  6. package/dist/components/Header/components/HeaderLogin.d.ts +13 -0
  7. package/dist/components/Header/components/HeaderLoginButton.d.ts +11 -0
  8. package/dist/components/Header/components/HeaderLowerNav.d.ts +7 -0
  9. package/dist/components/Header/components/HeaderMobileIconNav.d.ts +7 -0
  10. package/dist/components/Header/components/HeaderMobileNav.d.ts +7 -0
  11. package/dist/components/Header/components/HeaderMobileNavButton.d.ts +7 -0
  12. package/dist/components/Header/components/HeaderSearchButton.d.ts +10 -0
  13. package/dist/components/Header/components/HeaderSearchForm.d.ts +10 -0
  14. package/dist/components/Header/components/HeaderSitewideAlerts.d.ts +8 -0
  15. package/dist/components/Header/components/HeaderUpperNav.d.ts +8 -0
  16. package/dist/components/Header/context/headerContext.d.ts +13 -0
  17. package/dist/components/Header/utils/authApiMockResponse.d.ts +49 -0
  18. package/dist/components/Header/utils/encoreCatalogLogOutTimer.d.ts +4 -0
  19. package/dist/components/Header/utils/encoreCatalogLogOutTimer.test.d.ts +1 -0
  20. package/dist/components/Header/utils/googleAnalyticsUtils.d.ts +16 -0
  21. package/dist/components/Header/utils/googleAnalyticsUtils.test.d.ts +1 -0
  22. package/dist/components/Header/utils/headerUtils.d.ts +90 -0
  23. package/dist/components/Header/utils/headerUtils.test.d.ts +1 -0
  24. package/dist/components/Header/utils/sitewideAlertsMocks.d.ts +98 -0
  25. package/dist/components/Image/Image.d.ts +3 -3
  26. package/dist/components/Link/Link.d.ts +1 -0
  27. package/dist/components/StyleGuide/ColorCard.d.ts +22 -18
  28. package/dist/components/Template/Template.d.ts +14 -4
  29. package/dist/components/Tooltip/Tooltip.d.ts +17 -0
  30. package/dist/design-system-react-components.cjs.development.js +4433 -1669
  31. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  32. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  33. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  34. package/dist/design-system-react-components.esm.js +4431 -1670
  35. package/dist/design-system-react-components.esm.js.map +1 -1
  36. package/dist/hooks/useCloseDropDown.d.ts +6 -0
  37. package/dist/hooks/useNYPLTheme.d.ts +1 -0
  38. package/dist/index.d.ts +3 -0
  39. package/dist/styles.css +1 -1
  40. package/dist/theme/components/footer.d.ts +223 -0
  41. package/dist/theme/components/globalMixins.d.ts +24 -4
  42. package/dist/theme/components/header/header.d.ts +66 -0
  43. package/dist/theme/components/header/headerLogin.d.ts +299 -0
  44. package/dist/theme/components/header/headerLoginButton.d.ts +54 -0
  45. package/dist/theme/components/header/headerLowerNav.d.ts +38 -0
  46. package/dist/theme/components/header/headerMobileIconNav.d.ts +23 -0
  47. package/dist/theme/components/header/headerMobileNav.d.ts +79 -0
  48. package/dist/theme/components/header/headerMobileNavButton.d.ts +28 -0
  49. package/dist/theme/components/header/headerSearchButton.d.ts +56 -0
  50. package/dist/theme/components/header/headerSearchForm.d.ts +168 -0
  51. package/dist/theme/components/header/headerSitewideAlerts.d.ts +27 -0
  52. package/dist/theme/components/header/headerUpperNav.d.ts +57 -0
  53. package/dist/theme/components/radio.d.ts +12 -3
  54. package/dist/theme/components/skipNavigation.d.ts +2 -2
  55. package/dist/theme/components/template.d.ts +32 -57
  56. package/dist/theme/components/tooltip.d.ts +13 -0
  57. package/dist/theme/foundations/radii.d.ts +1 -0
  58. package/package.json +6 -1
  59. package/CHANGELOG.md +0 -1527
package/CHANGELOG.md DELETED
@@ -1,1527 +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.0.7 (July 29, 2022)
12
-
13
- ### Updates
14
-
15
- - Updates border color in the `Description` variant of the `List` component.
16
- - Updates how options are passed to the `SearchBar` component for its internal `Select` component.
17
- - Updates how style props are passed to the `Link` component when using with third-party libraries, such as React Router.
18
- - Updates the layout of the `Image` in the `Hero` "secondary" and "fiftyFifty" variants for mobile and desktop.
19
-
20
- ## 1.0.6 (July 21, 2022)
21
-
22
- ### Adds
23
-
24
- - Adds the `isLazy` prop to the `Image` component which is set to `false` by default.
25
-
26
- ### Updates
27
-
28
- - 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.
29
- - `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`.
30
- - 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.
31
- - Updates the `Icon` component to include variants for legacy versions of `Account` (filled and unfilled), `Facebook`, `Instagram`, `Twitter` and `YouTube`.
32
- - Updates the `Icon` component to include variants for `Warning` (filled and oultine).
33
-
34
- ### Removes
35
-
36
- - Removes the packages `@mdx-js/react` and `babel-loader` since they are not needed by Storybook.
37
-
38
- ## 1.0.5 (July 7, 2022)
39
-
40
- ### Adds
41
-
42
- - Exports `ColorCard`.
43
-
44
- ### Updates
45
-
46
- - Updates the `Icon` component to include variants for `actionCheckCircleFilled`, `actionRegistration`, `decorativeEnvelope`, `decorativeLibraryCard` and `decorativeShoppingBag`.
47
- - Updates the docs for the `Colors` Style Guide to include additional data related to contrast and WCAG compliance.
48
- - Updates the `Checkbox` and `Radio` components to use `ui.gray.dark` for the default border color.
49
- - Updates Storybook packages.
50
-
51
- ### Fixes
52
-
53
- - Fixes `useNYPLBreakpoints` hook so it internally controls its own state. This eliminates server/client rendering issues on its initial load.
54
-
55
- ## 1.0.4 (June 23, 2022)
56
-
57
- ### Adds
58
-
59
- - Adds the `useNYPLBreakpoints` hook. This hook internally uses Chakra's `useMediaQuery` hook to get the current responsive media query breakpoint.
60
- - Adds `ui.gray.xx-dark` to the color palette.
61
- - Adds npm packages useful for lazy loading images in the `Image` component.
62
- - Adds text case styles for `Text` component.
63
- - Exports `ColorModeScript`, `cookieStorageManager`, `localStorageManager`, `useColorMode`, and `useColorModeValue` from Chakra UI for consuming application usage.
64
- - Adds a "Color Mode" documentation page in Storybook.
65
- - Adds `ui.white` as default background color to `Checkbox` and `Radio` components.
66
- - Adds text case styles for `Heading` component
67
-
68
- ### Updates
69
-
70
- - Updates the `Logo` component to include a variant for `MLN Color`.
71
- - Updates the `Icon` component to include variants for `Facebook`, `Instagram`, `Tumblr`, `Twitter` and `YouTube`.
72
- - Updates the `Icon` component to include variants for `Building`, `Exit`, `Locator`, `Power` and `Settings`.
73
- - Updates to Storybook version 6.5.
74
- - Explicitly sets the default color mode value to `"light"`.
75
- - Updates how the `styles.scss` and `resources.scss` files are organized and compiled so that they can be imported in any tech stack.
76
- - Updates the docs for the `Table` commponent to remove the example that does not include column headers.
77
- - Updates the `Button`, `Select` and `TextInput` components to use NYPL standard minimum height in mobile viewport.
78
- - Updates the `SearchBar` component to change how the width of the internal `Select` component is handled.
79
-
80
- ### Fixes
81
-
82
- - Fixes the styles for the sub-labels in the `DatePicker` component.
83
-
84
- ## 1.0.3 (June 9, 2022)
85
-
86
- ### Adds
87
-
88
- - Adds prop validation for the `TextInput` "number" type for the `min` and `max` props.
89
- - Adds `min` and `max` prop value validation for the `Slider` component, including in the "range" mode.
90
-
91
- ### Updates
92
-
93
- - Updates the `TemplateAppContainer`'s responsive styles for its sidebar component.
94
- - Updates how the `Radio`'s label is hidden when the `showLabel` prop is set to "false" to fix the "no label" accessibility issue.
95
- - Updates the `Logo` component to include new variants for `NYPL Text Only`.
96
- - Updates the `Card`'s full-click functionality styling for its wrapper element.
97
- - 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.
98
- - Updates hover style to add right border color on hover for `Select` element.
99
- - Updates the `Table` component to be responsive for a mobile viewport.
100
- - Updates the `Table` component to make the `columnHeaders` prop required.
101
-
102
- ### Fixes
103
-
104
- - Fixes the border color for the `Accordion` button.
105
- - Fixes a false warning message logged from the `Table` component.
106
- - Fixes the background color for the `Toggle` button.
107
-
108
- ## 1.0.2 (June 1, 2022)
109
-
110
- ### Adds
111
-
112
- - Adds `noSpace` prop to the `Heading` component.
113
- - Adds validation for equal headers and data column to the `Table` component.
114
- - Adds `className`, `helperTextStyles`, and `showHelperInvalidText` props to the `ComponentWrapper` component.
115
-
116
- ### Updates
117
-
118
- - Updates the `fontSize` and `padding` attributes in the single variant of the `Accordion` component.
119
- - Updates all QA urls from Tugboat QA to Vercel.
120
- - Updates the `Logo` component to include new variants for `Apple App Store`, `Clever Badge` and `Google Play`.
121
- - Pins the Chakra UI "react" and "system" packages to a certain range since Chakra v2 uses React 18 and creates backwards compatibility issues.
122
- - Updates buttons setup as icon only to get the same hover styles as `secondary` button in the `Button` component.
123
- - Updates and refactors the `Checkbox`, `Radio`, `Select`, `Slider`, `TextInput` and `Toggle` components to use the `ComponentWrapper` component for similar DOM structure.
124
- - Updates how `CheckboxGroup` and `RadioGroup` handle `Checkbox` and `Radio` components when `isFullWidth` is true and there is JSX as labels.
125
-
126
- ### Fixes
127
-
128
- - Fixes how `Image`s are rendered with a non-default `aspectRatio` value and with a `caption` value or a `credit` value or both.
129
- - Fixes the extra margin added by the `SkipNavigation` component.
130
- - Updates various component implementations in Storybook documentation pages to remove inadvertent console errors and warnings.
131
- - Fixes sizing in the `Card` component for the "body" and "right" sections when the `isAlignedRightActions` prop is set to `true`.
132
- - Allows `Button`s in the `ButtonGroup` to manage their own `isDisabled` state.
133
- - Fixes how the `onChange` prop is set in `Checkbox` so it only gets called once per rendering.
134
-
135
- ## 1.0.1 (May 31, 2022)
136
-
137
- _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`.
138
-
139
- ## 1.0.0 (May 12, 2022)
140
-
141
- This is the first stable release of the NYPL Reservoir Design System! We've been looking forward to this moment for over two years.
142
-
143
- ### Updates
144
-
145
- - Updates all links throughout the documentation to point to the new production URLs.
146
-
147
- ## 0.28.0 (May 9, 2022)
148
-
149
- ### Adds
150
-
151
- - Adds `max`, `maxLength`, `min`, and `onClick` props to the `TextInput` component.
152
- - 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.
153
- - Adds the `ButtonGroup` component for `Button` layout.
154
-
155
- ### Updates
156
-
157
- - 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.
158
- - Updates how the `id` is passed in the `DatePicker`'s custom `TextInput` component.
159
- - 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`.
160
- - Updates the spacing for caption and credit text from `margin-bottom` to `margin-top` in `Image` component
161
- - Updates how the `DatePicker` and `Slider` components internally use `TextInput`.
162
- - Updates how the `Pagination` component internally uses `Link`.
163
- - Updates how the `Tabs` component internally uses `Button`.
164
- - 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.
165
- - Updates the values for the `name` prop for the `Icon` and `Logo` components.
166
- - Updates the `Table` component to allow JSX elements to be rendered in the data cells.
167
-
168
- ### Removals
169
-
170
- - Removes the `additionalStyles` attributes from the `Breadcrumbs`, `Button`, `Heading`, `HelperErrorText`, `Icon`, `Link`, `List`, `Logo`, `Select`, `TextInput`, and `Toggle` components.
171
- - Removes `getVariant` and `getStorybookEnumValues` helper functions.
172
- - Removes all Typescript enum objects in favor of string literal types.
173
- - Remove the bottom margin attribute that is applied to the parent element for the `Select` component.
174
- - Removes the `attributes` prop from: `Button`, `Link`, and `TextInput` components.
175
-
176
- ## 0.27.0 (April 27, 2022)
177
-
178
- ### Adds
179
-
180
- - 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.
181
- - Adds `@chakra-ui/storybook-addon` so stories automatically pick up the Chakra-based NYPL theme.
182
-
183
- ### Updates
184
-
185
- - Updates React and React DOM to version 17.
186
- - Updates Chakra packages `@chakra-ui/react` and `@chakra-ui/system`.
187
- - Updates the `HelperErrorText` styling to correctly display when used with a `Select` element with a `labelPosition` of inline.
188
-
189
- ### Removals
190
-
191
- - Removes the following packages: `@storybook/addon-queryparams` and `react-router-dom`.
192
-
193
- ## 0.26.1 (April 22, 2022)
194
-
195
- ### Updates
196
-
197
- - Updates storybook URL from /reservoir/v0_26 to /reservoir/v0.
198
-
199
- ### Fixes
200
-
201
- - Adds updated package-lock file to fix bad installations.
202
-
203
- ## 0.26.0 (April 22, 2022)
204
-
205
- ### Adds
206
-
207
- - Exports the `useCarouselStyles` and `useWindowSize` hooks and adds documentation for all hooks in Storybook.
208
- - Adds additional semantic design tokens from `fontWeights` and `fontSizes` to the `useNYPLTheme` hook.
209
- - 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`.
210
- - Adds the `isRequired` prop to the `Label` component.
211
- - Adds the `labelPosition` prop to the `Select` component, so that the label can be styled inline with the select input.
212
- - 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.
213
- - Adds the functionality to pass all valid HTML attributes to a Reservoir component, such as `data-*` props.
214
- - Adds semantic design tokens for `spacing` theme object.
215
- - 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.
216
- - Adds styles to target native HTML basic elements inside the `StructuredContent` component.
217
- - Adds `Reservoir` branding to Storybook.
218
-
219
- ### Changes
220
-
221
- - Updates the hex color value for `ui.gray.light-cool`, `ui.disabled.primary` and `section.blogs.primary`.
222
- - Updates the default background color used in the `Accordion` component.
223
- - Updates the default background color used in the `Hero` component.
224
- - Updates the background color used in the `SkeletonLoader` component.
225
- - Updates the background color used in the `VideoPlayer` component.
226
- - Updates the background colors used in the `Tabs` component.
227
- - Updates the colors for "secondary" and "pill" variants of the `Button` component.
228
- - Updates the color values used in the `disabled` state for the `Checkbox`, `Radio`, `Select`, `Slider`, `TextInput` and `Toggle` components.
229
- - Updates the `Checkbox` component to use "3px" for the border radius.
230
- - Makes the id prop required for all "Form Elements".
231
- - 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)`.
232
- - Renames the `optReqFlag` prop to `showRequiredLabel` in the `CheckboxGroup`, `Fieldset`, `RadioGroup`, and `Slider` components.
233
- - Renames the `showOptReqLabel` prop to `showRequiredLabel` in the `DatePicker`, `Select`, and `TextInput` components.
234
- - Uses the design token "text.caption" variable for the `Notification`'s font size.
235
- - Updates the styling for the `HelperErrorText` to be consistent for all components that use it
236
- - Refactors the `Checkbox`, `CheckboxGroup`, `ComponentWrapper`, `DatePicker`, `Fieldset`, `Label`, `Radio`, `RadioGroup`, `Select`, `Slider`, `TextInput`, and `Toggle` to better use the updated `HelperErrorText` styling.
237
- - Renames the `Card`'s `center` prop to `isCentered` and `border` prop to `isBordered`.
238
- - Renames the `SkeletonLoader` component's `border` prop to `isBordered`.
239
- - 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.
240
- - Updates the `Fieldset` component to render the "Optional"/"Required" text in the `legend` element as pseudo CSS in the `::after` rule.
241
- - Passes the `isRequired` prop in the `RadioGroup` and `CheckboxGroup` to the `Fieldset` wrapper component.
242
- - Updates the `focus` styles for the `Radio`, `Select` and `TextInput` components.
243
- - 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.
244
- - Updates styles for `React Datepicker`'s calendar popup in the `DatePicker` component.
245
- - Updates storybook URL from /storybook-static/ to /reservoir/v0_26.
246
- - Updates all references to "design system" in the Storybook documentation to include "Reservoir" in the name of the design system.
247
- - Updates language on the `Welcome` page.
248
-
249
- ### Removals
250
-
251
- - Removes the default `Optional` text displayed in the `Label` and `Fieldset` components.
252
- - Removes the `optReqFlag` prop in the `Label` component.
253
- - Removes the default autogenerated id for all components, as well as the `uuid` package.
254
- - 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`.
255
-
256
- ### Fixes
257
-
258
- - Fixes how the `Button` component gets rendered inside the `Form` and `FormField` component layout.
259
- - Fixes how the `Select` component is controlled in the `SearchBar` component.
260
-
261
- ## 0.25.13 (April 1, 2022)
262
-
263
- ### Adds
264
-
265
- - 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.
266
- - Adds an `Accessibility Guide` section to Storybook with a "Skip Navigation" page.
267
- - 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.
268
- - Adds an optional key – `accordionType` to the `Accordion`'s `contentData` prop, which allows users to switch the background color of the `Accordion`'s button.
269
- - Created new `LayoutTypes` enum for row and column layouts.
270
- - Adds the value "Default" to the `IconSizes` enum.
271
-
272
- ### Changes
273
-
274
- - Updates Storybook's sidebar categories and documentation.
275
- - Updates the `Image`'s caption font size to "12px" (`text.tag`).
276
- - Updates the `Checkbox`'s and `Radio`'s `labelText` prop to accept strings and JSX Elements.
277
- - Updates the `Toggle`'s internal styling for the default and small sizes.
278
- - Updates the `Accordion` button's background color when expanded, adds a border color when hovered over, and adjusts the padding.
279
- - Updates the `CardImage`'s margin bottom in the row and column layouts for mobile to be the same.
280
- - Updates the `CardImage` to have width 100% on mobile regardless of size.
281
- - Updates all the console warnings with consistent NYPL branding prefix label.
282
- - Renames the `Accordion` prop `contentData` to `accordionData`.
283
- - Renames the `Breadcrumbs` prop `colorVariant` to `breadcrumbsType`.
284
- - Renames the `Card` prop `center` to `isCentered`.
285
- - Updates the `Card` prop `layout` to use the `LayoutTypes` enum instead of `CardLayouts`.
286
- - Updates the `CheckboxGroup` prop `layout` to use the `LayoutTypes` enum instead of `CheckboxGroupLayoutTypes`.
287
- - Renames the `Heading` prop `displaySize` to `size.
288
- - Renames the `HeadingDisplaySizes` enum to `HeadingSizes.
289
- - Renames the `Hero` prop `image` to `imageComponent`.
290
- - Renames the `Image` prop `imageSize` to `size`.
291
- - Renames the `Notification` prop `centered` to `isCentered`.
292
- - Updates the `RadioGroup` prop `layout` to use the `LayoutTypes` enum instead of `RadioGroupLayoutTypes`.
293
- - Internal updates to the `SearchBar` component based on updates from the `Select` and `TextInput` components.
294
- - Renames the `Select` prop `type` to `selectType`.
295
- - Updates the `SkeletonLoader` prop `layout` to use the `LayoutTypes` enum instead of `SkeletonLoaderLayouts`.
296
- - Renames the `StructuredContentImage` prop `imageSize` to `size` (this component is based on the `Image` component).
297
- - Internal updates to the `StructuredContent` component based on updates from the `Image` and `Heading` components.
298
- - Renames the `Tabs` prop `contentData` to `tabsData`.
299
- - Renames the `Text` prop `displaySize` to `size`.
300
- - Renames the `TextInput` prop `variant` to `textInputType`.
301
- - 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.
302
- - Updates the `Hero` prop `image` to `imageAlt` and `imageSrc`. Internally, an `Image` component is created.
303
- - Renames the `Image` component props `imageAspectRatio` to `aspectRatio`, `imageCaption` to `caption`, and `imageCredit` to `credit`.
304
- - 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.
305
- - Renames the `ToggleSizes.tsx` file to `ToggleTypes.tsx`. Updates the values from `Large` and `Small` to `Default` and `Small`.
306
- - Minor update to the logic for the `ProgressIndicator` sizing prop and styles.
307
-
308
- ### Fixes
309
-
310
- - Fixes bug where the Next button in `Pagination` would navigate to the previous page.
311
- - Fixes the alignment of the first link in the `Pagination` component.
312
- - Fixes the `Breadcrumbs`' SVG arrow icon fill color for the "Blogs" variant.
313
- - Fixes the margin right value for list items in the `List` component for the inline style.
314
- - Fixes bug in the `Select` component where the SVG arrow hides when the component is focused.
315
- - Fixes the extra bottom spacing in the `HeroTypes.Campaign` `Hero` variant for the mobile view.
316
- - 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.
317
-
318
- ### Removals
319
-
320
- - Removes the `CardLayouts`, `CheckboxGroupLayoutTypes`, `RadioGroupLayoutTypes`, and `SkeletonLoaderLayouts` enums.
321
- - Removes the `CardTypes.tsx`,` CheckboxGroupLayoutTypes.tsx`, and `RadioGroupLayoutTypes.tsx` files.
322
-
323
- ## 0.25.12 (March 18, 2022)
324
-
325
- ### Adds
326
-
327
- - Adds `Education` section colors to the color palette theme object.
328
- - Adds a `currentPage` prop to the `Pagination` component, a value that updates the selected page programmatically without the user explicitly requesting it.
329
-
330
- ### Changes
331
-
332
- - Removes the margin from the global `.nypl p` CSS rule.
333
- - Updates the top and bottom margin of the `List`'s `Unordered` and `Ordered` types.
334
- - Updates the `Notification`'s icons to be decorative by default.
335
- - Updates the default placeholder value for the `SearchBar`'s `TextInput` component.
336
- - Updates the `SearchBar`'s `textInputProps` prop object to not require the `placeholder` property.
337
- - Updates the `Logo` component to include new variants for `FirstBook` and `Open eBooks`.
338
- - Updates the border and text styles for the `Select` component.
339
- - Updates the `Breadcrumbs` component to inlcude an `Education` color variant.
340
- - Updates the `Icon` component to include the `Education` color values.
341
- - Updates the default font stack to fix a typo that was disabling `sans-serif` in the stack.
342
- - Removes the `.nypl-ds` CSS class from the base SCSS file, from the `TemplateAppContainer` component, from the Storybook configuration, and from the entire repo.
343
- - Moves the base styles from the SCSS global file to the Chakra theme global JS object.
344
- - Updates the label font size for the `Radio` and `Checkbox` components to be "label.default".
345
-
346
- ### Fixes
347
-
348
- - Fixes the styles for the `Slider` to better accomodate the slider thumbs and the width of the container.
349
- - Updates the alignment of the `Notifications`'s dismissible icon.
350
- - Fixes the border and padding from the `fieldset` HTML element by removing it.
351
- - Fixes alignment for long labels in the `Checkbox` and `Radio` components.
352
- - Fixes the line height for long labels in the `Toggle` component.
353
-
354
- ## 0.25.11 (March 3, 2022)
355
-
356
- ### Updates
357
-
358
- - Updates the `Logo` component to include new variants for `BPL`, `Clever`, `LPA`, `MLN`, `QPL`, `Schomburg`, `SimplyE` and `Treasures`.
359
- - Updates font size to "12px" and top margin to "4px" for `HelperErrorText` component.
360
- - Updates font size to "14px" for `TextInput` component.
361
- - 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.
362
- - 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.
363
- - Updates a log message in the `Icon` component to be more descriptive.
364
- - Updates the mobile styles for the image in the `StructuredContent` component.
365
- - Updates the prop type for the "Definition" `List` type so DOM elements can be passed in the definition.
366
-
367
- ### Fixes
368
-
369
- - 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.
370
- - Updates how `TabList` and `TabPanels` are returned in the `Tabs` component so no false log messages are consoled.
371
- - Updates `List` component styling for inline.
372
-
373
- ## 0.25.10 (February 22, 2022)
374
-
375
- ### Adds
376
-
377
- - Exports Chakra's `Flex` and `Spacer` components.
378
- - Adds `TemplateAboveHeader` component in the set of "template" components.
379
- - Adds the `aboveHeader` prop to the `TemplateAppContainer` component to render a `TemplateAboveHeader` component immediately before the `TemplateHeader` component.
380
- - Adds the `additionalStyles` prop to the `Select` component.
381
-
382
- ### Breaking Changes
383
-
384
- - Renames the `Form` component's `"spacing"` prop to `"gap"` to be consistent with the `FormRow` and `FormField` components.
385
- - Renames the `FormSpacing` enum to `FormGaps`.
386
-
387
- ### Changes
388
-
389
- - Passes an `onChange` prop to the `Select` component inside the `SearchBar` through its `selectProps` prop.
390
- - 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.
391
- - Updates the `Form` component to warn developers when a child component in the `FormRow` component _is not_ a `FormField`.
392
- - Adds an `onSubmit` prop to the `Form` component.
393
- - 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.
394
- - Updates the `Fieldset` and `RadioGroup` so the `children` prop is declared through `React.PropsWithChildren` rather than in their respective prop interfaces.
395
- - Adds snapshot tests for the `Accordion` component, as well as `id` props to the components within the `Accordion` so snapshot tests pass.
396
- - Passes an `id` to the `Icon` in the `Select` component.
397
- - Adds snapshot tests for the `Select` component.
398
-
399
- ### Fixes
400
-
401
- - Fixes `id` propagation issues in the `SearchBar` component and its children DS components.
402
- - 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.
403
- - Exports the `FullDateType` interface related to the `DatePicker` component.
404
- - Fixes and removes bad console logs from the `Pagination` and `List` components.
405
- - Fixes auto-generated `id`s in the `Tabs` component.
406
- - Fixes the Figma link for the `Hero` component.
407
- - Fixes `Card` component bug for passing styles to the `CardHeading` correctly.
408
- - Fixes the `Table` component so that a custom header text color of white does not visually hide row headers on a white background.
409
-
410
- ### Updates
411
-
412
- - Updates the following packages: multiple `@storybook/...` packages, `autoprefixer`, `eslint-plugin-storybook`, `husky`, `lint-staged`, `semantic-release-slack-bot`, `storybook-addon-designs`.
413
- - Removed the following packages: `postcss`, `pretty-quick`.
414
- - Added `@chakra-ui/react`, `@chakra-ui/system`, `@emotion/react`, `@emotion/styled`, and `framer-motion` as "peerDependencies".
415
- - Updates the node version in Github Action workflows from Node v12 to Node v14.
416
- - Updates how `/dist/resources.scss` is created through gulp.
417
-
418
- ## 0.25.9 (February 3, 2022)
419
-
420
- ### Adds
421
-
422
- - Adds the `Logo` component.
423
- - Adds the `noBrandButtonType` boolean prop to the `SearchBar` component to render the `NoBrand` `Button` variant style.
424
- - Adds element-specific design tokens for `fontSizes` and `fontWeights`.
425
- - Adds the `StructuredContent` component.
426
- - Adds the `additionalImageStyles` and `additionalFigureStyles` props to the `Image` component to specifically target the `img` element's style and the `figure` HTML elements.
427
- - Adds the `Table` component.
428
-
429
- ### Breaking Changes
430
-
431
- - Completely removes the `CardEdition` and `Input` components and related files and references.
432
- - Removes all references of the `BEM` CSS pattern.
433
- - Removes all references to logos from the `Icon` component.
434
- - Removes passing in text to the `HelperErrorText` component as children. Now, the `text` prop is used to render its text.
435
- - Renames the `SearchBar`'s `helperErrorText` prop to `helperText` to be consistent with other components.
436
-
437
- ### Changes
438
-
439
- - 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.
440
- - Minor change to the `Notification`'s heading component so it adds a proper id to `NotificationHeading`.
441
- - Updates the `Heading` component to use the DS `Link` component rather than Chakra's `Link` component.
442
- - 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.
443
- - Updates the `SearchBar` component to now be implemented with the `ComponentWrapper` component.
444
- - 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.
445
- - Renames `additionalStyles` prop to `additionalWrapperStyles` in the `Image` Component.
446
- - Updates the label text style in the disabled state of the `Toggle` component.
447
- - Updates the `Card` component so it gives a bottom margin to the `Image` component when the `imageAspectRatio` prop is set to `ImageRatios.Original`.
448
- - Updates the `TextInput` component to use a white background for `static`, `error` and `focus` states.
449
- - Updates `Select` component to use a white background for `static`, `error` and `focus` states.
450
- - Updates the `Template` component to use `s` (16px) spacing on the left and right sides of the main content area.
451
- - Updates the `HelperErrorText` component to allow HTML to be passed in as a string or HTML.
452
- - Updates how the `HelperErrorText` component renders text in the following components: `Checkbox`, `CheckboxGroup`, `ComponentWrapper`, `DatePicker`, `Radio`, `RadioGroup`, `SearchBar`, `Select`, `Slider`, `TextInput`, `Toggle`, `VideoPlayer`.
453
- - Updates the `HorizontalRule` component to use "100%" as the default value for the `width` prop.
454
-
455
- ### Fixes
456
-
457
- - Fixes the styling of custom anchor elements when passed as a child in the `Link` component.
458
- - 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.
459
- - Fixes the Storybook `level` prop value for the `Heading` component so it updates the component.
460
- - 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.
461
-
462
- ## 0.25.8 (January 6, 2022)
463
-
464
- ### Adds
465
-
466
- - Adds `embedCode` prop to `VideoPlayer` component.
467
- - Adds export statements for `ProgressIndicatorSizes` and `ProgressIndicatorTypes` enums to `index.ts`.
468
- - Adds `ExtraSmall` and `ExtraExtraSmall` size variants to the `Image` component.
469
- - Adds `ExtraSmall` and `ExtraExtraSmall` size variants for `CardImage` in the `Card` component.
470
- - Adds `AlertNotificationImportant` icon to `Icon` component.
471
- - Adds `Toggle` component.
472
- - Adds `xxxs` (2px) spacing option to DS design tokens.
473
- - Adds `external` variant to `Link` component.
474
-
475
- ### Changes
476
-
477
- - Changes category for `Table` component from `Basic Elements` to `Page Layout`.
478
- - Updates the background color for the `Locations` variant in the `Breadcrumbs` component from `section.locations.secondary` to `section.locations.primary`.
479
- - Updates the `Notification` component to show the `AlertNotificationImportant` icon for the `Standard` variant.
480
- - Reduces the bottom margin on labels and legends for form components from "16px" to "8px", or "s" to "sx" in Chakra-theme variables.
481
- - Updates docs for Chakra `Grid` component to use theme object values rather than CSS variables.
482
- - Updates the spacing in the `Notification` component to improve the alignment of the icon and text elements.
483
- - Updates the `Notification` component to optionally display/hide the `Icon` in the heading or content area.
484
- - Updates the `ComponentWrapper` component to allow the internal `HelperErrorText` component to get set in the invalid state. Also added tests for this component.
485
-
486
- ### Fixes
487
-
488
- - 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.
489
- - Updates the `Select` component's controlled state so that an initial empty `value` prop is acceptable.
490
-
491
- ## 0.25.7 (December 20, 2021)
492
-
493
- ### Fixes
494
-
495
- - Removes `<=12.22` from node engine in `package.json` to reduce installation issues.
496
-
497
- ## 0.25.6 (December 16, 2021)
498
-
499
- ### Adds
500
-
501
- - Adds export statements for `ProgressIndicator` and `Slider` components to `index.ts`.
502
- - Adds `Blogs` variant to `Breadcrumbs` component.
503
- - Adds the `placeholder` prop to the `Select` component.
504
-
505
- ### Changes
506
-
507
- - Adds "(Required)" text to the placeholder in the `SearchBar` component when `isRequired` is true.
508
-
509
- ## 0.25.5 (December 9, 2021)
510
-
511
- ### Fixes
512
-
513
- - 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`.
514
-
515
- ## 0.25.4 (December 9, 2021)
516
-
517
- ### Adds
518
-
519
- - Adds the `ProgressIndicator` component.
520
- - Adds documentation for using `NYPL Design Tokens`.
521
- - Adds the `ActionHelpDefault`, `ActionHelpOutline` and `ActionLaunch` icons to the `Icon` component.
522
- - Adds the DS `Slider` component based on the Chakra `Slider` and `RangeSlider` components.
523
- - Adds the `ButtonTypes.NoBrand` variant to the `Button` component.
524
- - Adds the `additionalStyles` prop to the `Breadcrumbs` component.
525
-
526
- ### Changes
527
-
528
- - Updates the organization of SCSS files by deleting some files and combining others.
529
- - Updates `@chakra-ui/react` to version 1.7.1 and `@chakra-ui/system` to version 1.8.1.
530
- - Updates the `TextInput` component to now have `defaultValue` and `step` props.
531
- - Updates `Latest Version` number for `Image`, `Notification` and `Pagination` components.
532
- - Removes the Storybook "Knobs" addon.
533
- - Updates the margin for labels in the `DatePicker` component when it is in the "date range" state.
534
- - Updates the `DatePicker` component to have proper form spacing when in the "date range" state.
535
- - Updates the `Tabs` component to comply with linting rules -- no functional or visual changes were made.
536
- - Removes the `alignText` prop from the `Notification` component. Storybook was incorrectly displaying `alignText` as an available prop.
537
-
538
- ### Fixes
539
-
540
- - Exports components and variables that were initially missed when they were added: `ColorVariants`, `Fieldset`, `IconAlign`, `StatusBadgeTypes`,
541
- - Fixes `SearchBar` by passing necessary props down to its `TextInput` through the `textInputProps` prop.
542
- - Fixes `DatePicker` component unit tests.
543
- - 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.
544
-
545
- ### Breaking Changes
546
-
547
- - 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.
548
- - Changes the `Button`'s `disabled` prop to `isDisabled`.
549
- - 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.
550
-
551
- ### Deprecates
552
-
553
- - Deprecates the `Input` component. The `Input` component will be removed from the NYPL Design System React Library in the first release of January 2022.
554
- - Deprecates the `CardEdition` component. The `CardEdition` component will be removed from the NYPL Design System React Library in the first release of January 2022.
555
-
556
- ## 0.25.3 (November 18, 2021)
557
-
558
- ### Adds
559
-
560
- - Adds the `ImageRatios`, `ImageSizes`, and `ImageTypes` enums.
561
- - 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.
562
- - 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".
563
- - Adds new file type SVG files to use in the `Icon` component: Audio, Doc, GenericDoc, Image, PDF, Spreadsheet, Video.
564
- - Adds `ActionCheckCircle` SVG file to use in the `Icon` component.
565
-
566
- ### Changes
567
-
568
- - Updates the Github Action for the changelog reminder.
569
- - Updates the `Checkbox` component with an "indeterminate" state through the `isIndeterminate` prop.
570
- - Updates the `CheckboxGroup` component story with an "indeterminate" state example.
571
- - Updates the `CheckboxGroup` and `RadioGroup` components to use the `Fieldset` component.
572
- - Updates the `HelperErrorText` and `TextInput` components with added `additionalStyles` prop.
573
- - Updates the `Button` Style Guide documentation.
574
- - Updates the `Iconography` Style Guide story documentation.
575
- - Updates the `Button` font weight to "regular".
576
-
577
- ### Fixes
578
-
579
- - Fixes nondeterministic unit test in the `DatePicker` component.
580
- - Version of latest `List` component release in its storybook page.
581
- - 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.
582
- - Fixes styling issues for the `Notification` dismissible button.
583
- - Fixes `SearchBar` mobile styling for the `Select`, `TextInput`, and `Button` components.
584
- - Fixes `SearchBar` focus flicker when the `Select` component is selected.
585
-
586
- ### Breaking Changes
587
-
588
- - Updates the `Notification` component to fix the custom icon alignment.
589
- - Adds the `title` prop to the `Icon` component to render a `title` HTML element for accessible SVG icons.
590
- - 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.
591
- - Updates the `errorText` prop to `invalidText` for the `Checkbox` component.
592
- - 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.
593
- - 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`.
594
- - 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.
595
- - 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.
596
- - 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.
597
- - Removes deprecated CSS variables. Now the DS repo only uses the CSS variables exposed by Chakra that contain the `--nypl` prefix.
598
-
599
- ## 0.25.2 (October 28, 2021)
600
-
601
- ### Adds
602
-
603
- - Adds custom `useCarouselStyles` hook for the `Tabs` mobile carousel functionality.
604
- - Adds custom NYPL-theme radii values to use within Chakra, mostly for border radius values.
605
- - Adds the `showHelperInvalidText` prop to form components to control displaying or hiding the content in the `HelperErrorText` component.
606
- - Adds `useNYPLTheme` hook for consuming applications to use NYPL DS values.
607
- - Adds the DS `ComponentWrapper` helper component for internal use.
608
- - Adds `useWindowSize` hook for responsive styles and functionality.
609
- - Adds Chakra Migration Guide for version `0.25.0` and greater.
610
-
611
- ### Changes
612
-
613
- - Updates the CSS vars name prefix to use `nypl`.
614
- - Updates documentation in the README and updates the issue contribution template.
615
- - Updates the following components to use the `showHelperInvalidText` prop: `Checkbox`, `CheckboxGroup`, `DatePicker`, `Radio`, `RadioGroup`, `SearchBar`, `Select`, `TextInput`, `VideoPlayer`.
616
-
617
- ### Breaking Changes
618
-
619
- - 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.
620
- - Composes the DS `HelperErrorText` component with Chakra. BEM related props `modifiers` and `blockname` have been removed. The `isError` prop has been renamed to `isInvalid`.
621
- - Composes the DS `VideoPlayer` component with Chakra. BEM related prop `modifiers` has been removed.
622
- - Composes the DS `HorizontalRule` component with Chakra. BEM related prop `modifiers` has been removed, as well as the `attributes` prop.
623
- - 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.
624
-
625
- ## 0.25.1 (October 14, 2021)
626
-
627
- ### Adds
628
-
629
- - Updates the `Accordion` component to internally use Chakra components.
630
- - Adds DS `SimpleGrid` component composed from Chakra's `Simplegrid` component.
631
- - Adds DS `Text` component composed from Chakra's `Text` component.
632
- - Update the NYPL Colors with updated color names and values.
633
- - Composes the DS `TextInput` component from Chakra's `Input` and `Textarea` components.
634
- - Composes the DS `Select` component from Chakra's `Select` component.
635
- - Composes the DS `Hero` component from Chakra's component.
636
- - Composes the DS `CheckboxGroup` component from Chakra's `CheckboxGroup` component.
637
- - Composes the DS "Template" components (`Template`, `TemplateHeader`, `TemplateBreakout`, `TemplateContent`, `TemplateContentPrimary`, `TemplateContentSidebar`, `TemplateFooter`) from Chakra's `Box` component for page layouts through children components.
638
- - Composes the DS `TemplateAppContainer` component from Chakra's `Box` component for page layouts through props.
639
- - Composes the DS `Link` component with Chakra component and fixes the `Button` type.
640
- - Exports Chakra's `Grid` and `GridItem` components.
641
- - Composes the DS `Label` component with Chakra component and updates the font size.
642
- - Composes the DS `StatusBadge` component from Chakra's component.
643
- - Composes the DS `Forms` component using DS and Chakra components.
644
- - Composes the DS `Icon` component with Chakra's `Icon` component. Added new props for `Icon` sizing, alignment, name, and rotation.
645
- - Composes the DS `SearchBar` component from DS `Select`, `TextInput`, `Button`, and `HelperErrorText` components.
646
- - Composes the DS `Breadcrumbs` component from Chakra's `Breadcumb`, `BreadcrumbItem` and `BreadcrumbLink` components.
647
-
648
- ### Changes
649
-
650
- - Updates spacing values to use NYPL spacing rather than "em"s.
651
- - Updates the `SkeletonLoaderLayouts` enum values from `Horizontal` and `Vertical` to `Row` and `Column`, respectively.
652
- - Updates the `CardLayouts` enum values from `Horizontal` and `Vertical` to `Row` and `Column`, respectively.
653
- - Updates font size of the `legend` element used in `CheckboxGroup`, `DatePicker` and `RadioGroup`.
654
- - Updates the radius values through Chakra's theme object.
655
-
656
- ## 0.25.0 (September 30, 2021)
657
-
658
- ### Breaking Changes
659
-
660
- - Renames `HeadingDisplaySizes.tsx` to `HeadingTypes.tsx`.
661
-
662
- ### Adds
663
-
664
- - Integrates Chakra-UI into the codebase.
665
- - Moved SCSS and CSS variable styles into a custom NYPL theme to extend Chakra's base theme.
666
- - Adds `DSProvider` component to use the NYPL theme in consuming applications.
667
- - Exports Chakra's `Box`, `Center`, `Circle`, `Square`, `Stack`, `HStack`, and `VStack` components.
668
- - Composes the DS `Button` component from Chakra's `Button` component.
669
- - Composes the DS `Heading` component from Chakra's `Heading` component.
670
- - Composes the DS `Tabs` component from Chakra's `Tabs`, `TabList`, `Tab`, `TabPanels`, and `TabPanel` components.
671
- - Composes the DS `Radio` component from Chakra's `Radio` component.
672
- - Composes the DS `RadioGroup` component from Chakra's `RadioGroup` component.
673
- - Composes the DS `Checkbox` component from Chakra's `Checkbox` component.
674
- - Updates the `errorText` prop name to `invalidText`.
675
-
676
- ### Removes
677
-
678
- - Removes the `color-classes` SCSS mixin.
679
-
680
- ### Changes
681
-
682
- - Updates the development preview URL from the Netlify link to the Tugboat QA link.
683
-
684
- ## 0.24.1
685
-
686
- ### Adds
687
-
688
- - Adds `FormSpacing` enum to DS exports.
689
- - Adds `utility_account_filled`, `utility_account_unfilled`, `utility_hamburger` and `utility_search` icons to `Icon` component.
690
-
691
- ### Changes
692
-
693
- - Updates `General Guidelines` for `Buttons Style Guide`.
694
-
695
- ### Fixes
696
-
697
- - Fixes left padding on `Card` when `imageAtEnd` and `border` are both `true`.
698
-
699
- ## 0.24.0
700
-
701
- ### Breaking Changes
702
-
703
- - Renames original `Card` components to be `CardEdition`.
704
-
705
- ### Adds
706
-
707
- - Adds the `DatePicker` component.
708
- - Adds new `Card` component.
709
- - Adds `spacing` prop to `Form` component to allow for spacing variations.
710
- - Adds Style Guide `Forms`
711
-
712
- ### Changes
713
-
714
- - Exports `VideoPlayerAspectRatios`.
715
- - Adds additional props for the `DatePicker` component based on its TAD Addendum section.
716
- - Adds Tugboat QA configuration for PR preview deployments to replace Netlify.
717
- - Updates the `DatePicker`, `TextInput`, `Select`, and `Label` components to pass an optional `showOptReqLabel` prop to conditionally render "Required"/"Optional" in the label text.
718
-
719
- ### Fixes
720
-
721
- - Fixes Accordion FAQ Storybook example rendering bug.
722
-
723
- ## 0.23.4
724
-
725
- ### Adds
726
-
727
- - Adds TSDX as the bootstrapping tool to add opinionated configurations.
728
- - Adds an `/example/` directory through TSDX with an small playground app.
729
- - Snapshot testing through `react-test-renderer` and Jest.
730
- - Typescript documentation file to be use as a development guide.
731
- - Typescript documentation for `enum` variables in the TYPESCRIPT file.
732
- - Adds `SkeletonLoaderLayouts` and `SkeletonLoaderImageRatios` enums to DS exports.
733
- - Adds heading, description and helper text to `VideoPlayer` component.
734
- - Adds `@storybook/addons-jest` plugin to display Jest/React Testing Library unit tests in a Storybook tab.
735
-
736
- ### Changes
737
-
738
- - Updates Style Guide `Spacing`.
739
- - Updates `Hero` component to include `Campaign` variant.
740
- - Updates `Hero` stories to use MDX format.
741
- - Updated warnings for too few or too many option children for the `Select` component.
742
- - Updates the README to include information on the production, development, and "preview" Storybook documentation instances.
743
- - Removes a custom SCSS breakpoint in `_Breadcrumbs.scss` in favor of mobile-first style rules.
744
- - Replaces Mocha, Chai, Sinon, and Enzyme for Jest and React Testing Library for unit testing.
745
- - Replaces webpack with rollup through TSDX.
746
- - Updates npm scripts to use TSDX for internal commands.
747
- - Replaces lodash with own functions.
748
- - Minor updates to Github Actions.
749
- - Adds PostCSS/autoprefixer to Rollup workflow instead of the default scss minifier.
750
-
751
- ### Fixes
752
-
753
- - Fixes the `bem` utility function so that it doesn't crash Storybook whenever the `modifiers` Controls prop option is empty.
754
-
755
- ## 0.23.3
756
-
757
- ### Fixes
758
-
759
- - Removes the `storybook-static` directory from `.gitignore` so that the Github Actions deploy job can work properly.
760
-
761
- ## 0.23.2
762
-
763
- ### Adds
764
-
765
- - Adds `Form` component.
766
- - Adds `Notification` component.
767
- - Adds Style Guide `Buttons`.
768
- - Adds `VideoPlayer` component.
769
- - Adds the ability to render a `textarea` element from the `TextInput` component.
770
-
771
- ### Changes
772
-
773
- - Updates stories for the `List` component to use MDX format.
774
- - Updates stories for the `Pagination` component to use MDX format.
775
- - 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.
776
- - Updates to the contributing documentation, pull request template, and the README.
777
- - Changes `DisplaySizes` to `HeadingDisplaySizes`.
778
- - Changes `Skeleton Loader` to be configurable via props.
779
- - Changes `Button` to use `16px` for left/right padding for buttons with text; icon only buttons still use `8px` left/right padding.
780
- - Changes `TextInput` label text to `font-weight: 500`.
781
-
782
- ## 0.23.1
783
-
784
- ### Adds
785
-
786
- - Adds CSS vars for `font-weight`
787
- - Adds `displaySize` prop to `Heading`
788
- - Adds Style Guide `Iconography`
789
- - Adds new SVGs to be used with the `Icon` component. Among the new SVGs are: Error solid, Error outlined, Speaker Notes.
790
- - 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).
791
- - Adds `helperText` and `errorText` props to `Checkbox`
792
- - Adds `helperText` and `errorText` props to `Radio`
793
- - Adds `errorText`, `helperText`, `labelText`, `required` and `showLabel` props to `Select`
794
-
795
- ### Changes
796
-
797
- - Updates content in Style Guide `Typography`
798
- - Updates content in Style Guide `Breakpoints`
799
- - Changes `Link` story from `.tsx` to `.mdx`.
800
-
801
- ### Deprecates
802
-
803
- - Deprecates `ariaLabel`, `helperTextId`, `isRequired` and `labelId` props in `Select`
804
-
805
- ## 0.23.0
806
-
807
- ### Breaking Changes
808
-
809
- - Removes `breakout` CSS from `Breadcrumbs`. To retain previous behavior, `Breadcrumbs` component should be a child of a `.content-header` element.
810
- - Removes `breakout` CSS from `Hero Secondary`. To retain previous behavior, `Hero` component should be a child of a `.content-header` element.
811
-
812
- ### Adds
813
-
814
- - Adds `HorizontalRule` component
815
- - Adds new `short` class for `Placeholder`
816
- - Adds `Style Guide` category to Storybook sidebar
817
-
818
- ### Changes
819
-
820
- - Changes `Breadcrumbs` story from `.tsx` to `.mdx`
821
- - Changes `Heading` story from `.tsx` to `.mdx`
822
- - Changes suggested DOM structure in `Template` Story
823
-
824
- ## 0.22.2
825
-
826
- ### Changes
827
-
828
- - Adds documentation on layout bidirectionality
829
- - Changes `Pagination` to hide pagination UI when there are 0 or 1 pages.
830
-
831
- ## 0.22.1
832
-
833
- ### Changes
834
-
835
- - Removes `color-classes` and `css-vars` mixins from `_03-mixins.scss`
836
- - Adds `color-classes` and `css-vars` mixins to `styles.scss`
837
- - Changes order of CSS `@import` rules in `styles.scss`
838
- - Adds quotes around `black` and `white` in `$colors` object in `_colors-utility.scss`
839
-
840
- ## 0.22.0
841
-
842
- ### Breaking Changes
843
-
844
- - Removes `--ui-success` CSS variable and adds `--ui-success-primary` and `--ui-success-secondary`
845
- - Removes `checkboxId` prop from `Checkbox` component and employs `id` in its place.
846
- - Removes `defaultChecked` prop from `Checkbox` component.
847
- - Removed `labelOptions` prop from `Checkbox` component and employs `labelText` in its place.
848
-
849
- ### Changes
850
-
851
- - Added: Definition List component.
852
- - Changed: Separate Checkbox into its own component.
853
- - Changed: Separate Radio button into its own component.
854
- - Adds `Tertiary` state to Hero component
855
- - Changes `Brand` and `Utility` color values to match Figma main file
856
- - Changes `Radio` styles to use SASS vars in place of CSS vars
857
- - Adds `TextInput` component to handle email, hidden, number, password, text, textarea, tel and url input types
858
- - Adds default width and padding to `StatusBadge` component.
859
- - Hides pagination when there are 0 or 1 pages.
860
-
861
- ### BugFixes
862
-
863
- - Fixed layout bug for layouts that include a right sidebar column and DOM structure.
864
-
865
- ## 0.21.2
866
-
867
- ### Changes
868
-
869
- - Adds `getPageHref` to `Pagination`
870
-
871
- ## 0.21.1
872
-
873
- ### Changes
874
-
875
- - `Accordion`: Adds `fixed-height` modifier and `defaultOpen` prop
876
- - `List` defaults to grey bullets instead of black
877
- - Adds margins inside the default columns of `Card`
878
-
879
- ### BugFixes
880
-
881
- - Breadcrumbs now show up in light colours
882
- - Template reflow and breakpoints now happen at the same time
883
- - Fixes release github action
884
-
885
- ## 0.21.0
886
-
887
- ### Breaking Changes
888
-
889
- - Removes `statusBadgeText` prop in StatusBadge to allow text to be inside component
890
-
891
- ### Changes
892
-
893
- - Add `method` and `action` to `SearchBar` `<form>`
894
-
895
- ### Bugfixes
896
-
897
- - Add the `attributes` property to the `SearchBar` `<form>`
898
- - Adds focus outline to the `Accordion` component so it appears when it is tabbed.
899
-
900
- ## 0.20.2
901
-
902
- ### Changes
903
-
904
- - Exports mixins in a `resources.scss` file that can be used by consumers.
905
-
906
- ### Bugfixes
907
-
908
- - `Link` with class `button` has white text color
909
-
910
- ## 0.20.1
911
-
912
- ### Bugfixes
913
-
914
- - Fixes `Pagination` when there are fewer than 4 pages
915
- - Adds `StatusBadge` component to `design-system-react-components` package
916
-
917
- ## 0.20.0
918
-
919
- ### Changes
920
-
921
- - `Select`: selectedOption holds the selected value, instead of just the default.
922
- - `Hero`: `Hero.Secondary` now changes background color based on NYPL site section
923
- - `Hero`: All props are now optional
924
- - `Input`: added onChange prop to explicitly allow it to be used as a controlled component
925
- - Uses stricter linters and more Prettier configs.
926
-
927
- ### Breaking Changes
928
-
929
- - Removed `SectionTitle`
930
- - Scopes all element selects to the `.nypl-ds` class
931
-
932
- ## 0.19.1
933
-
934
- ### Breaking Changes
935
-
936
- - Accordion: Accordion input styling affects only direct children
937
- - Checkbox: Allows checkbox to be used as a controlled component or uncontrolled component.
938
-
939
- ## 0.19.0
940
-
941
- ### Breaking Changes
942
-
943
- - Updates `Pagination` component to match new design.
944
-
945
- ## 0.18.7
946
-
947
- ### Changes
948
-
949
- - Adds actual `StatusBadge` component with props for setting levels [RENO-1882](https://jira.nypl.org/browse/RENO-1882)
950
-
951
- ## 0.18.6
952
-
953
- ### Changes
954
-
955
- - 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)
956
-
957
- ## 0.18.5
958
-
959
- ### Changes
960
-
961
- - Converts the Accordion component to open and close through CSS rather than through Javascript.
962
-
963
- ## 0.18.4
964
-
965
- ### Changes
966
-
967
- - Updates the `Input` component to conditionally render an `id` attribute if an `id` prop value is passed to it.
968
-
969
- ## 0.18.3
970
-
971
- ### Changes
972
-
973
- - Add `overflow: hidden` to `.no-scroll` styling on `<body>` for modal to prevent scroll element for content behind modal being displayed
974
-
975
- ## 0.18.2
976
-
977
- ### Changes
978
-
979
- - Updates Accordion sets so that first item in list doesn't have `-1px` top margin
980
-
981
- ## 0.18.1
982
-
983
- ### Breaking Changes
984
-
985
- - 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.
986
-
987
- ### Updates
988
-
989
- - Updates the `Input` component to allow it to render a "hidden" input type.
990
-
991
- ## 0.18.0
992
-
993
- ### Breaking Changes
994
-
995
- - Removes type, color, and line-height declarations from `body` tags and moves them to the `.nypl-ds` namespace
996
-
997
- ## 0.17.4
998
-
999
- ### Changes
1000
-
1001
- - Moves footer outside of `.nypl-ds` namespace on Template story
1002
-
1003
- ## 0.17.3
1004
-
1005
- ### Adds
1006
-
1007
- - `SkeletonLoader` component for loading screens
1008
-
1009
- ## 0.17.2
1010
-
1011
- ### Adds
1012
-
1013
- - `selectedOption` to `Pagination` story
1014
-
1015
- ## 0.17.1
1016
-
1017
- ### Adds
1018
-
1019
- - `FiftyFifty` Hero type styling
1020
-
1021
- ## 0.17.0
1022
-
1023
- ### Breaking Changes
1024
-
1025
- - Sets up the default `font-size` value in the `.nypl-ds` namespace.
1026
-
1027
- ## 0.16.1
1028
-
1029
- ### Adds
1030
-
1031
- - Styling for `Accordion` sets
1032
-
1033
- ### Changes
1034
-
1035
- - `className`s within `Accordion` for content
1036
- - Hover stylings for `Accordion`
1037
-
1038
- ## 0.16.0
1039
-
1040
- ### Breaking Changes
1041
-
1042
- - Removes the padding on the `breakout` mixin
1043
- - Removes the padding on the `wrapper` mixin at the `xl` breakpoint
1044
-
1045
- ## 0.15.1
1046
-
1047
- ### Removes
1048
-
1049
- - `arrow_xsmall` and `search_small` icons
1050
-
1051
- ## 0.15.0
1052
-
1053
- ### Breaking Changes
1054
-
1055
- - Fixes a bug in which content was not centered within `Button` when button was made larger than the text content
1056
-
1057
- ### Removes
1058
-
1059
- - Additional `Button` CSS that was no longer used after Button API refactor in 0.13.0
1060
- - Deprecates `SearchResultItem`
1061
-
1062
- ## 0.14.0
1063
-
1064
- ### Breaking Changes
1065
-
1066
- - `Image` now has an `alt` prop instead of an `altText` prop
1067
- - Removes `isDecorative` property in favor of an empty `alt`
1068
-
1069
- ### Adds
1070
-
1071
- - Adds HTML `<img>` props to the `Image` component
1072
-
1073
- ## 0.13.0
1074
-
1075
- ### Breaking Changes
1076
-
1077
- - Removes all icon props from `Button`. Button now uses `Icon` as a child
1078
- - Removes `ButtonIconPositions`
1079
-
1080
- ### Changes
1081
-
1082
- - Makes `Button`'s `onClick` property optional
1083
-
1084
- ## 0.12.0
1085
-
1086
- ### Breaking Changes
1087
-
1088
- - Moves box-sizing declarations to a `.nypl-ds` namespace. All future "global" CSS settings will move to exist under this namespace.
1089
-
1090
- ### Adds
1091
-
1092
- - Universal focus styling
1093
-
1094
- ## 0.11.5
1095
-
1096
- ### Changes
1097
-
1098
- - Updates the margin on action-links from `xxs` to `xs`
1099
-
1100
- ## 0.11.4
1101
-
1102
- ### Changes
1103
-
1104
- - Removes the `description` tag from the `<span>` element wrapping svg icons (#360)
1105
-
1106
- ## 0.11.3
1107
-
1108
- ### Changes
1109
-
1110
- - `Icon` now accepts children for custom icons
1111
-
1112
- ## 0.11.2
1113
-
1114
- ### Adds
1115
-
1116
- - Status Badge component as stories
1117
-
1118
- ## 0.11.1
1119
-
1120
- ### Changes
1121
-
1122
- - DS bundle is now compiled for es5 instead of es6 to accommodate for IE11 and the arrow functions we're using in DS
1123
-
1124
- ## 0.11.0
1125
-
1126
- ## Breaking Changes
1127
-
1128
- - Removes options from the `Pagination` component
1129
-
1130
- ## 0.10.4
1131
-
1132
- ### Changes
1133
-
1134
- - Updates the `Link` component's `linkType` prop to `type`, implements `React.forwardRef` to use with other libraries, and updates the stories.
1135
-
1136
- ## 0.10.3
1137
-
1138
- ### Changes
1139
-
1140
- - Updates the `Icon` component's `name` prop to allow for `LogoNames` enum types.
1141
-
1142
- ### Adds
1143
-
1144
- - Adds a "negative" NYPL logo to be used on non-white backgrounds.
1145
-
1146
- ## 0.10.2
1147
-
1148
- ### Changes
1149
-
1150
- - Updates the formatting of svg file names to use underscores
1151
-
1152
- ## 0.10.1
1153
-
1154
- ### Changes
1155
-
1156
- - Updates the `Input` element to allow props and attributes to be able to render input elements of type "radio".
1157
-
1158
- ## 0.10.0
1159
-
1160
- ### Removes
1161
-
1162
- - Deprecates `SectionName` in favor of the stories under `Colors—Brand`
1163
-
1164
- ## 0.9.3
1165
-
1166
- ### Adds
1167
-
1168
- - SVGs for NYPL full logo lockup, Queens Public Library Logo, and Brooklyn Public Library Logo
1169
-
1170
- ## 0.9.2
1171
-
1172
- ### Adds
1173
-
1174
- - CSS to style [React Autosuggest](https://github.com/moroshko/react-autosuggest/)
1175
-
1176
- ## 0.9.1
1177
-
1178
- ### Changes
1179
-
1180
- - `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`.
1181
-
1182
- ## 0.9.0
1183
-
1184
- ### Breaking Changes
1185
-
1186
- - Removes `$color-spotlight`, `$color-your-interests`, `$color-support`, and `$color-help`
1187
- - Removes all `$nypl-` prefixed Sass variables
1188
- - `$color-success` is now `--ui-success`.
1189
- - Breakpoint variables are now prefixed with `breakpoint`.
1190
- - Type sizing variables are now prefixed with `font-size`.
1191
- - Typeface variables are now prefixed with `typeface`.
1192
- - 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).
1193
-
1194
- ### Adds
1195
-
1196
- - Exposes color and typography constants as CSS variables
1197
- - Adds Section colors for `--section-research-library-lpa`, `--section-research-library-schomburg`, and `--section-research-library-schwartzman`
1198
-
1199
- ### Removes
1200
-
1201
- - Letterspacing property on all body copy
1202
-
1203
- ## 0.8.0
1204
-
1205
- ### Removes
1206
-
1207
- - `width: 100%` on svgs
1208
-
1209
- ## 0.7.2
1210
-
1211
- ### Adds
1212
-
1213
- - Adds icons for `accessibility_full`, `accessibility_partial`, `clock`, `check`, and `close`
1214
-
1215
- ### Changes
1216
-
1217
- - Updates the `download` icon to Google Material Design's icon.
1218
-
1219
- ## 0.7.1
1220
-
1221
- ### Changes
1222
-
1223
- - Updated the Select component to take in a ref using ForwardRef and also a `name` prop.
1224
-
1225
- ## 0.7.0
1226
-
1227
- ### Breaking Changes
1228
-
1229
- - `FormDropDown` and `Dropdown` are now `Select`
1230
- - `Textfield` has been retired in favor of `Input`
1231
- - `Input` type is now controlled via an enum defined in `InputTypes` instead of a string
1232
- - Changes `referenceId` to `htmlFor` on `Label`
1233
- - Deprecates `DateRangeForm`, `BodyText`, `SearchPromo`, `Container`, and `RNHeaderWithSearch`
1234
- - `Button` now accepts an `onClick` instead of a `callback`
1235
- - In the `ButtonTypes` enum, `Filled` and `Outline` have been changed to `Primary` and `Secondary`, respectively
1236
- - `Accordion` now accepts `accordionLabel` and `labelId` instead of `buttonOpts` properties
1237
- - Removes project-specific styles for now deprecated `EditionCard`
1238
- - Removes project-specific styles of `.search-results-list` and `.form-item--radios`
1239
- - `UnorderedList` is now `List`, with an enum to control whether is it ordered or unordered
1240
- - `Input` `id` is no longer prepended with `input-`
1241
- - `Button` `id` is no longer prepended with `btn-`
1242
- - `SearchBar` no longer has props for `selectChangeHandler`, `selectBlurHandler`, or `searchChangeHandler`.
1243
- - `Input` offers `ariaLabel` and `ariaLabelledby` props in favor of `labelId` and `helperTextId`
1244
- - Removes `headingAttributes?: {}` from `SectionTitle`
1245
-
1246
- ### Adds
1247
-
1248
- - Adds `aria-live` and `aria-atomic` to `HelperErrorText` in its errored state
1249
- - Adds "Optional", "Required", or empty string inside `Label` for forms
1250
- - Adds `IconNames` enum to make `allSVGs` array globally accessible
1251
- - Adds `width: 100%` globally to SVGs
1252
- - `Card` now constrains items in its `image` column to the column width
1253
- - Adds the `forwardRef` implementation to the `Input` component
1254
- - Adds `disabled` prop to `Input` and `Button` components
1255
- - Adds `disabled` styling to `Button.Primary`
1256
- - Adds `className?: string;` as additional props to all components
1257
- - Adds `attributes?: { [key: string]: string }; ` to `Input`, `Button`, `Select`, `Link`, and `Image`
1258
- - Adds `justify-content: center` for `Button` with icon to adjust for mobile
1259
-
1260
- ### Changes
1261
-
1262
- - Fixes bug in former `FormDropdown` (now `Select`) where the select value would not change if `selectedOption` were passed
1263
- - `Link`'s scss now references `$ui-link-primary` instead of `$nypl-blue-regular`
1264
- - Changes `Select`'s SCSS to use the updated styling from Filament Group
1265
- - `Image` is wrapped in `figure` when `imageCaption` or `imageCredit` is passed to `Image`
1266
- - Adds `viewport` properties to any SVG files that were missing it
1267
-
1268
- ### Removes
1269
-
1270
- - Removes `HelperErrorTextOptions`
1271
-
1272
- ## 0.6.0
1273
-
1274
- ### Breaking Changes
1275
-
1276
- - Removes `RNSectionTitle`
1277
-
1278
- ### Changes
1279
-
1280
- - Updates `$nypl-blue-regular` from #0071ce to #0576d3
1281
- - `$nypl-blue-regular` is now extended with `$ui-link-primary`
1282
-
1283
- ## [0.5.0]
1284
-
1285
- ### Breaking Changes
1286
-
1287
- - `EditionCard` is now `Card`
1288
- - Buttons from black by default to blue
1289
-
1290
- ### Adds
1291
-
1292
- - Icon for audiobook
1293
- - Changes the line-height values on some of the heading mixins
1294
-
1295
- ## [0.4.1]
1296
-
1297
- ### Changes
1298
-
1299
- - Makes all IDs optional
1300
-
1301
- ## [0.4.0]
1302
-
1303
- ### Breaking Changes
1304
-
1305
- - Concatenates `BasicLink`, `UnderlineLink`, and `IconLink` into `Link` with `LinkTypes` enum
1306
- - Moves styles into their corresponding component folders
1307
- - Moves base styles into the react-components package
1308
- - Deprecates `@nypl/design-system-styles`
1309
-
1310
- ### Changes
1311
-
1312
- - Moves tests into their corresponding component folders
1313
- - Flattens component structure to export as one package.
1314
- - Exports `Icon`
1315
-
1316
- ## [0.3.7]
1317
-
1318
- - Fixed `dist` script so it clears the folder
1319
- - Added `viewBox` to `arrow` icon
1320
-
1321
- ## [0.3.6]
1322
-
1323
- - added `Template` stories
1324
- - fixed `Accordion` buttons
1325
- - added `viewBox` to `arrow-xsmall` icon
1326
-
1327
- ## [0.3.5]
1328
-
1329
- - Move `Placeholder`, `Modal`, `SectionName` and `Container` from `/00-base` into top-level `/components`
1330
- - Fix Storybook errors for Headings with Bold and Headings with Link.
1331
- - Move `Headings/*` from `/02-molecules` into top-level `/components`
1332
- - Inlined icons inside `react-components`
1333
- - No longer publishing `@nypl/design-system-icons` package
1334
-
1335
- ## [0.3.4]
1336
-
1337
- - Exported `searchValue` and `selectedField` in `RNHeaderWithSearch`
1338
-
1339
- ## [0.3.3]
1340
-
1341
- - Added `blockName` handling to `DateRangeForm`
1342
-
1343
- ## [0.3.1]
1344
-
1345
- - Exports `SectionName` and `Image`
1346
-
1347
- ## [0.3.0]
1348
-
1349
- ### Breaking Changes
1350
-
1351
- - Edition Card no longer accepts strings for links and descriptions
1352
-
1353
- ### Changed
1354
-
1355
- - Added `iconName` as an optional prop in `IconLink`
1356
-
1357
- ## [0.2.1] - 2020-04-23
1358
-
1359
- ### Removed
1360
-
1361
- - `HeaderWithImageRight` component and corresponding story
1362
-
1363
- ## [0.2.0] - 2020-04-13
1364
-
1365
- ### Changed
1366
-
1367
- - 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)
1368
-
1369
- ## [0.1.1]
1370
-
1371
- ### Changed
1372
-
1373
- - `Textfield` id is no longer duplicated
1374
- - `Dropdown` now applies `bem` `blockName`
1375
- - `Pagination` now passes in `blockName` into `Dropdown`
1376
-
1377
- ## [0.1.0]
1378
-
1379
- ### Breaking Changes
1380
-
1381
- - Large classes now have `Opts` inteface that allows for the component to be built over multiple steps. This affects:
1382
- - `HelperErrorText`
1383
- - `Label`
1384
- - `TextField`
1385
- - `Button`
1386
- - Deprecated `SearchResultsList`, `IconLinkList` and `EditionsList` in favor of `UnorderedList`
1387
- - `type` in `Button` now corresponds to html button types. `buttonType` in button corresponds to the visual categories of buttons (eg: `filled`, `outline`)
1388
- - `subtitle` in `SearchResultsItem` changed to `subtitleContent` to take a JSX
1389
- - `Label` and `Button` only accept children when called directly
1390
-
1391
- ### Added:
1392
-
1393
- - `Checkbox`
1394
- - `DateRangeForm`
1395
- - `Input`
1396
- - `Accordion`
1397
- - `UnorderedList`
1398
- - # `Modal`
1399
-
1400
- ## [0.0.17] - 2020-03-17
1401
-
1402
- - Changelog update
1403
-
1404
- ## [0.0.16]
1405
-
1406
- - `HeaderImgRight` accepts elements
1407
-
1408
- ## [0.0.15] - 2020-03-3
1409
-
1410
- ### Changed
1411
-
1412
- - `Button` component accepts content to render from its `content` prop or its `children` prop.
1413
-
1414
- ## [0.0.14] - 2020-02-18
1415
-
1416
- ### Changed
1417
-
1418
- - `EditionCard` `EditionInfo` fields accept elements
1419
- - `EditionCard` `ReadOnline` and `Download` fields accept elements
1420
-
1421
- ### [0.0.14] - 2020-02-18
1422
-
1423
- - added `noLinkElement` to `EditionCard` to receive an element
1424
-
1425
- ## [0.0.11] — 2020-01-23
1426
-
1427
- ### Added
1428
-
1429
- - `EditionsList`
1430
-
1431
- ## [0.0.10] - 2020-01-14
1432
-
1433
- ### Added
1434
-
1435
- - `Dropdown` which controls `FormDropdown` and its corresponding `Label`
1436
- - `Label`
1437
- - `HelperErrorText`
1438
- - `Pagination`
1439
- - `EditionCard` component
1440
- - `SearchResultItem` component that uses `EditionCard`
1441
- - `RN Header With Search`
1442
- - a story for `RN Section Title`, which is just a collection of styles
1443
- - `SearchResultsList` component
1444
-
1445
- ### Changed
1446
-
1447
- - added `iconModifiers` to `Button`
1448
- - `buttonId` in `Button` is now required
1449
- - refactored `FormDropdown` to not include its own `label`
1450
- - `RN Header With Search`
1451
- - a story for `RN Section Title`, which is just a collection of styles
1452
- - `Link` -> `BasicLink` for clarity
1453
- - Bugfixes in `UnderlineLink` and `IconLink`
1454
- - Added stories for `BasicLink`
1455
- - `Link` missing URL error message
1456
- - Consolidated `Heading` and `PageTitle`
1457
- - `Heading` now only takes a single span
1458
- - Added ResearchNow specific `SearchBar` error state
1459
- - A11Y changes for `SearchBar` and `HeaderWithSearch`
1460
- - Added stories for AT-79, AT-264 and AT-3
1461
- - `selectedOption` added to `FormDropdown` stores selected state
1462
-
1463
- ## [0.0.7] - 2020-01-03
1464
-
1465
- ### Added
1466
-
1467
- - 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`.
1468
-
1469
- ## [0.0.6] - 2019-12-31
1470
-
1471
- ### Added
1472
-
1473
- - `Image` for 2:1 ratio
1474
- - `PageTitle`
1475
- - `Header with Image Right`
1476
- - `FormDropdown`
1477
- - `SearchPromo`
1478
-
1479
- ### Changed
1480
-
1481
- - Moved heading-related atoms from `01-atoms/Text` into `01-atoms/Text/Heading`
1482
- - Updated `Searchbar` component to include Parameters
1483
- - Changed `Breadcrumb` export from `Breadcrumbs`
1484
-
1485
- ## [0.0.5] - 2019-12-06
1486
-
1487
- ### Changed
1488
-
1489
- - `Icon` import
1490
-
1491
- ## [0.0.4] - 2019-12-06
1492
-
1493
- ### Added
1494
-
1495
- - `Body text` component for plain-text elements
1496
- - `UnderlineLink` and `IconLink` for links
1497
- - `Icon` component that uses the `design-system-icons` package.
1498
- - `SectionTitle` and `Heading` for heading components
1499
- - `IconLink-List`for the list of subject links
1500
- - `Button` and `TextField` for the searchbar
1501
- - `SearchBar` component
1502
-
1503
- ### Changed
1504
-
1505
- - `Breadcrumb` now shows icon in mobile view
1506
-
1507
- ## [0.0.3] - 2019-11-15
1508
-
1509
- ### Changed
1510
-
1511
- - Changed `Breadcrumb` to `Breadcrumbs` to match Twig
1512
- - Changed the Breadcrumbs props to accept components
1513
-
1514
- ## [0.0.2] - 2019-11-13
1515
-
1516
- ### Added
1517
-
1518
- - Started a change log
1519
- - Added the Breadcrumb React Component
1520
-
1521
- ### Changed
1522
-
1523
- - Changed folder structure to match Twig
1524
-
1525
- ## [0.0.1] - 2019-11-13
1526
-
1527
- - Published as a test