@nypl/design-system-react-components 1.0.1 → 1.0.2

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