@nypl/design-system-react-components 1.0.0 → 1.0.3-beta

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