@nypl/design-system-react-components 0.25.13 → 0.26.0

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 (299) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +10 -10
  3. package/dist/components/Accordion/Accordion.d.ts +1 -1
  4. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  5. package/dist/components/Button/Button.d.ts +2 -2
  6. package/dist/components/Card/Card.d.ts +11 -9
  7. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  8. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +5 -4
  9. package/dist/components/ComponentWrapper/ComponentWrapper.d.ts +1 -1
  10. package/dist/components/DatePicker/DatePicker.d.ts +5 -6
  11. package/dist/components/Fieldset/Fieldset.d.ts +5 -6
  12. package/dist/components/Form/Form.d.ts +6 -6
  13. package/dist/components/Grid/GridTypes.d.ts +7 -7
  14. package/dist/components/Grid/SimpleGrid.d.ts +1 -1
  15. package/dist/components/Heading/Heading.d.ts +1 -1
  16. package/dist/components/HelperErrorText/HelperErrorText.d.ts +9 -8
  17. package/dist/components/Hero/Hero.d.ts +2 -1
  18. package/dist/components/HorizontalRule/HorizontalRule.d.ts +2 -10
  19. package/dist/components/Icons/Icon.d.ts +2 -1
  20. package/dist/components/Image/Image.d.ts +2 -2
  21. package/dist/components/Label/Label.d.ts +7 -4
  22. package/dist/components/Link/Link.d.ts +1 -1
  23. package/dist/components/List/List.d.ts +11 -11
  24. package/dist/components/List/ListTypes.d.ts +1 -1
  25. package/dist/components/Logo/Logo.d.ts +2 -1
  26. package/dist/components/Logo/LogoSvgs.d.ts +2 -0
  27. package/dist/components/Logo/LogoTypes.d.ts +2 -0
  28. package/dist/components/Notification/Notification.d.ts +4 -4
  29. package/dist/components/Pagination/Pagination.d.ts +2 -2
  30. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +3 -3
  31. package/dist/components/Radio/Radio.d.ts +4 -6
  32. package/dist/components/RadioGroup/RadioGroup.d.ts +12 -6
  33. package/dist/components/SearchBar/SearchBar.d.ts +4 -4
  34. package/dist/components/Select/Select.d.ts +10 -6
  35. package/dist/components/Select/SelectTypes.d.ts +4 -0
  36. package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +4 -3
  37. package/dist/components/Slider/Slider.d.ts +6 -4
  38. package/dist/components/StatusBadge/StatusBadge.d.ts +5 -1
  39. package/dist/components/StructuredContent/StructuredContent.d.ts +2 -2
  40. package/dist/components/Table/Table.d.ts +1 -1
  41. package/dist/components/Tabs/Tabs.d.ts +4 -3
  42. package/dist/components/Template/Template.d.ts +4 -3
  43. package/dist/components/Text/Text.d.ts +1 -1
  44. package/dist/components/TextInput/TextInput.d.ts +5 -5
  45. package/dist/components/Toggle/Toggle.d.ts +3 -4
  46. package/dist/components/VideoPlayer/VideoPlayer.d.ts +2 -1
  47. package/dist/design-system-react-components.cjs.development.js +1663 -1139
  48. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  49. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  50. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  51. package/dist/design-system-react-components.esm.js +1667 -1143
  52. package/dist/design-system-react-components.esm.js.map +1 -1
  53. package/dist/hooks/useCarouselStyles.d.ts +3 -2
  54. package/dist/hooks/useNYPLTheme.d.ts +12 -0
  55. package/dist/index.d.ts +4 -1
  56. package/dist/styles.css +1 -1
  57. package/dist/theme/components/button.d.ts +10 -2
  58. package/dist/theme/components/card.d.ts +42 -22
  59. package/dist/theme/components/checkbox.d.ts +5 -4
  60. package/dist/theme/components/checkboxGroup.d.ts +1 -1
  61. package/dist/theme/components/componentWrapper.d.ts +2 -2
  62. package/dist/theme/components/customTable.d.ts +84 -1
  63. package/dist/theme/components/fieldset.d.ts +4 -14
  64. package/dist/theme/components/global.d.ts +23 -17
  65. package/dist/theme/components/heading.d.ts +53 -0
  66. package/dist/theme/components/helperErrorText.d.ts +1 -0
  67. package/dist/theme/components/hero.d.ts +20 -14
  68. package/dist/theme/components/label.d.ts +9 -10
  69. package/dist/theme/components/list.d.ts +99 -9
  70. package/dist/theme/components/radio.d.ts +6 -4
  71. package/dist/theme/components/radioGroup.d.ts +1 -1
  72. package/dist/theme/components/select.d.ts +34 -5
  73. package/dist/theme/components/skeletonLoader.d.ts +2 -2
  74. package/dist/theme/components/slider.d.ts +6 -3
  75. package/dist/theme/components/structuredContent.d.ts +197 -0
  76. package/dist/theme/components/textInput.d.ts +18 -6
  77. package/dist/theme/components/toggle.d.ts +7 -4
  78. package/dist/theme/foundations/global.d.ts +2 -0
  79. package/dist/theme/foundations/radii.d.ts +1 -0
  80. package/dist/theme/foundations/spacing.d.ts +46 -43
  81. package/package.json +5 -6
  82. package/src/components/Accordion/Accordion.stories.mdx +9 -9
  83. package/src/components/Accordion/Accordion.test.tsx +21 -0
  84. package/src/components/Accordion/Accordion.tsx +13 -9
  85. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +276 -27
  86. package/src/components/Autosuggest/Autosuggest.stories.mdx +4 -3
  87. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +21 -5
  88. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +52 -31
  89. package/src/components/Breadcrumbs/Breadcrumbs.tsx +8 -7
  90. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +211 -12
  91. package/src/components/Button/Button.stories.mdx +87 -23
  92. package/src/components/Button/Button.test.tsx +25 -0
  93. package/src/components/Button/Button.tsx +18 -7
  94. package/src/components/Button/__snapshots__/Button.test.tsx.snap +27 -7
  95. package/src/components/Card/Card.stories.mdx +287 -194
  96. package/src/components/Card/Card.test.tsx +102 -0
  97. package/src/components/Card/Card.tsx +73 -32
  98. package/src/components/Card/__snapshots__/Card.test.tsx.snap +195 -35
  99. package/src/components/Chakra/Grid.stories.mdx +4 -4
  100. package/src/components/Checkbox/Checkbox.stories.mdx +62 -10
  101. package/src/components/Checkbox/Checkbox.test.tsx +32 -9
  102. package/src/components/Checkbox/Checkbox.tsx +20 -15
  103. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +134 -7
  104. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +65 -17
  105. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +137 -81
  106. package/src/components/CheckboxGroup/CheckboxGroup.tsx +31 -21
  107. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +332 -97
  108. package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +12 -0
  109. package/src/components/ComponentWrapper/ComponentWrapper.tsx +39 -41
  110. package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +47 -34
  111. package/src/components/DatePicker/DatePicker.stories.mdx +63 -27
  112. package/src/components/DatePicker/DatePicker.test.tsx +89 -13
  113. package/src/components/DatePicker/DatePicker.tsx +62 -56
  114. package/src/components/DatePicker/_DatePicker.scss +71 -13
  115. package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +250 -206
  116. package/src/components/Fieldset/Fieldset.stories.mdx +33 -3
  117. package/src/components/Fieldset/Fieldset.test.tsx +58 -28
  118. package/src/components/Fieldset/Fieldset.tsx +35 -30
  119. package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +40 -19
  120. package/src/components/Form/Form.stories.mdx +72 -39
  121. package/src/components/Form/Form.test.tsx +58 -15
  122. package/src/components/Form/Form.tsx +89 -67
  123. package/src/components/Form/__snapshots__/Form.test.tsx.snap +83 -5
  124. package/src/components/Grid/GridTypes.tsx +7 -7
  125. package/src/components/Grid/SimpleGrid.stories.mdx +34 -6
  126. package/src/components/Grid/SimpleGrid.test.tsx +9 -0
  127. package/src/components/Grid/SimpleGrid.tsx +29 -20
  128. package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +16 -1
  129. package/src/components/Heading/Heading.stories.mdx +36 -3
  130. package/src/components/Heading/Heading.test.tsx +10 -0
  131. package/src/components/Heading/Heading.tsx +56 -50
  132. package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +26 -7
  133. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +64 -42
  134. package/src/components/HelperErrorText/HelperErrorText.test.tsx +15 -0
  135. package/src/components/HelperErrorText/HelperErrorText.tsx +40 -35
  136. package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +35 -4
  137. package/src/components/Hero/Hero.stories.mdx +125 -95
  138. package/src/components/Hero/Hero.test.tsx +33 -0
  139. package/src/components/Hero/Hero.tsx +135 -126
  140. package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +89 -17
  141. package/src/components/HorizontalRule/HorizontalRule.stories.mdx +26 -4
  142. package/src/components/HorizontalRule/HorizontalRule.test.tsx +9 -19
  143. package/src/components/HorizontalRule/HorizontalRule.tsx +9 -26
  144. package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +18 -5
  145. package/src/components/Icons/Icon.stories.mdx +31 -6
  146. package/src/components/Icons/Icon.test.tsx +38 -0
  147. package/src/components/Icons/Icon.tsx +93 -76
  148. package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +129 -0
  149. package/src/components/Image/Image.stories.mdx +29 -5
  150. package/src/components/Image/Image.test.tsx +8 -0
  151. package/src/components/Image/Image.tsx +38 -26
  152. package/src/components/Image/__snapshots__/Image.test.tsx.snap +24 -8
  153. package/src/components/Label/Label.stories.mdx +42 -20
  154. package/src/components/Label/Label.test.tsx +42 -17
  155. package/src/components/Label/Label.tsx +22 -13
  156. package/src/components/Label/__snapshots__/Label.test.tsx.snap +19 -15
  157. package/src/components/Link/Link.stories.mdx +25 -1
  158. package/src/components/Link/Link.test.tsx +21 -0
  159. package/src/components/Link/Link.tsx +8 -8
  160. package/src/components/Link/__snapshots__/Link.test.tsx.snap +37 -11
  161. package/src/components/List/List.stories.mdx +75 -40
  162. package/src/components/List/List.test.tsx +67 -19
  163. package/src/components/List/List.tsx +38 -25
  164. package/src/components/List/ListTypes.tsx +1 -1
  165. package/src/components/List/__snapshots__/List.test.tsx.snap +110 -8
  166. package/src/components/Logo/Logo.stories.mdx +30 -6
  167. package/src/components/Logo/Logo.test.tsx +17 -0
  168. package/src/components/Logo/Logo.tsx +18 -6
  169. package/src/components/Logo/LogoSvgs.tsx +4 -0
  170. package/src/components/Logo/LogoTypes.tsx +2 -0
  171. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +73 -2
  172. package/src/components/Modal/Modal.stories.mdx +13 -0
  173. package/src/components/Notification/Notification.stories.mdx +25 -1
  174. package/src/components/Notification/Notification.test.tsx +23 -0
  175. package/src/components/Notification/Notification.tsx +46 -44
  176. package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +158 -29
  177. package/src/components/Pagination/Pagination.stories.mdx +24 -4
  178. package/src/components/Pagination/Pagination.test.tsx +25 -0
  179. package/src/components/Pagination/Pagination.tsx +6 -6
  180. package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +244 -27
  181. package/src/components/Placeholder/Placeholder.tsx +3 -1
  182. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +76 -10
  183. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +81 -11
  184. package/src/components/ProgressIndicator/ProgressIndicator.tsx +17 -9
  185. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +101 -14
  186. package/src/components/Radio/Radio.stories.mdx +64 -12
  187. package/src/components/Radio/Radio.test.tsx +28 -8
  188. package/src/components/Radio/Radio.tsx +66 -63
  189. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +103 -6
  190. package/src/components/RadioGroup/RadioGroup.stories.mdx +224 -89
  191. package/src/components/RadioGroup/RadioGroup.test.tsx +122 -62
  192. package/src/components/RadioGroup/RadioGroup.tsx +106 -100
  193. package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +1236 -1020
  194. package/src/components/SearchBar/SearchBar.stories.mdx +101 -36
  195. package/src/components/SearchBar/{SearchBar.Test.tsx → SearchBar.test.tsx} +46 -4
  196. package/src/components/SearchBar/SearchBar.tsx +17 -8
  197. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +1039 -0
  198. package/src/components/Select/Select.stories.mdx +128 -49
  199. package/src/components/Select/Select.test.tsx +63 -16
  200. package/src/components/Select/Select.tsx +125 -92
  201. package/src/components/Select/SelectTypes.tsx +5 -0
  202. package/src/components/Select/__snapshots__/Select.test.tsx.snap +749 -409
  203. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +42 -10
  204. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +8 -0
  205. package/src/components/SkeletonLoader/SkeletonLoader.tsx +76 -72
  206. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +169 -10
  207. package/src/components/Slider/Slider.stories.mdx +91 -42
  208. package/src/components/Slider/Slider.test.tsx +65 -17
  209. package/src/components/Slider/Slider.tsx +26 -19
  210. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +403 -226
  211. package/src/components/StatusBadge/StatusBadge.stories.mdx +19 -1
  212. package/src/components/StatusBadge/StatusBadge.test.tsx +16 -0
  213. package/src/components/StatusBadge/StatusBadge.tsx +25 -20
  214. package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +22 -3
  215. package/src/components/StructuredContent/StructuredContent.stories.mdx +131 -12
  216. package/src/components/StructuredContent/StructuredContent.test.tsx +34 -0
  217. package/src/components/StructuredContent/StructuredContent.tsx +80 -75
  218. package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +102 -17
  219. package/src/components/StyleGuide/Bidirectionality.stories.mdx +5 -5
  220. package/src/components/StyleGuide/Breakpoints.stories.mdx +6 -6
  221. package/src/components/StyleGuide/Buttons.stories.mdx +2 -12
  222. package/src/components/StyleGuide/ColorCard.tsx +1 -1
  223. package/src/components/StyleGuide/Colors.stories.mdx +1 -2
  224. package/src/components/StyleGuide/DesignTokens.stories.mdx +56 -26
  225. package/src/components/StyleGuide/Forms.stories.mdx +27 -12
  226. package/src/components/StyleGuide/Iconography.stories.mdx +2 -12
  227. package/src/components/StyleGuide/Spacing.stories.mdx +80 -41
  228. package/src/components/StyleGuide/Typography.stories.mdx +30 -21
  229. package/src/components/Table/Table.stories.mdx +38 -11
  230. package/src/components/Table/Table.test.tsx +15 -0
  231. package/src/components/Table/Table.tsx +7 -7
  232. package/src/components/Table/__snapshots__/Table.test.tsx.snap +408 -5
  233. package/src/components/Tabs/Tabs.stories.mdx +52 -3
  234. package/src/components/Tabs/Tabs.test.tsx +16 -0
  235. package/src/components/Tabs/Tabs.tsx +10 -6
  236. package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +394 -5
  237. package/src/components/Template/Template.stories.mdx +47 -43
  238. package/src/components/Template/Template.test.tsx +33 -0
  239. package/src/components/Template/Template.tsx +65 -60
  240. package/src/components/Template/__snapshots__/Template.test.tsx.snap +191 -20
  241. package/src/components/Text/Text.stories.mdx +20 -1
  242. package/src/components/Text/Text.test.tsx +12 -0
  243. package/src/components/Text/Text.tsx +6 -4
  244. package/src/components/Text/__snapshots__/Text.test.tsx.snap +21 -4
  245. package/src/components/TextInput/TextInput.stories.mdx +65 -19
  246. package/src/components/TextInput/TextInput.test.tsx +42 -28
  247. package/src/components/TextInput/TextInput.tsx +121 -113
  248. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +96 -73
  249. package/src/components/Toggle/Toggle.stories.mdx +80 -22
  250. package/src/components/Toggle/Toggle.test.tsx +27 -9
  251. package/src/components/Toggle/Toggle.tsx +22 -18
  252. package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +128 -5
  253. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +52 -4
  254. package/src/components/VideoPlayer/VideoPlayer.test.tsx +23 -0
  255. package/src/components/VideoPlayer/VideoPlayer.tsx +133 -126
  256. package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +81 -39
  257. package/src/docs/Chakra.stories.mdx +50 -9
  258. package/src/docs/Welcome.stories.mdx +160 -41
  259. package/src/hooks/useCarouselStyles.stories.mdx +22 -2
  260. package/src/hooks/useCarouselStyles.ts +3 -2
  261. package/src/hooks/useNYPLTheme.stories.mdx +101 -0
  262. package/src/hooks/useNYPLTheme.ts +30 -6
  263. package/src/hooks/useWindowSize.stories.mdx +23 -0
  264. package/src/index.ts +4 -1
  265. package/src/styles/base/_place-holder.scss +1 -1
  266. package/src/theme/components/button.ts +15 -7
  267. package/src/theme/components/card.ts +30 -19
  268. package/src/theme/components/checkbox.ts +10 -8
  269. package/src/theme/components/checkboxGroup.ts +1 -1
  270. package/src/theme/components/componentWrapper.ts +2 -2
  271. package/src/theme/components/customTable.ts +39 -31
  272. package/src/theme/components/fieldset.ts +1 -2
  273. package/src/theme/components/global.ts +25 -20
  274. package/src/theme/components/heading.ts +1 -1
  275. package/src/theme/components/helperErrorText.ts +1 -0
  276. package/src/theme/components/hero.ts +13 -15
  277. package/src/theme/components/label.ts +4 -3
  278. package/src/theme/components/list.ts +73 -66
  279. package/src/theme/components/notification.ts +2 -2
  280. package/src/theme/components/radio.ts +9 -9
  281. package/src/theme/components/radioGroup.ts +1 -1
  282. package/src/theme/components/select.ts +35 -22
  283. package/src/theme/components/skeletonLoader.ts +3 -3
  284. package/src/theme/components/slider.ts +8 -7
  285. package/src/theme/components/statusBadge.ts +2 -2
  286. package/src/theme/components/structuredContent.ts +66 -1
  287. package/src/theme/components/tabs.ts +2 -2
  288. package/src/theme/components/template.ts +9 -9
  289. package/src/theme/components/textInput.ts +13 -12
  290. package/src/theme/components/toggle.ts +17 -10
  291. package/src/theme/components/videoPlayer.ts +1 -1
  292. package/src/theme/foundations/colors.ts +1 -1
  293. package/src/theme/foundations/radii.ts +1 -0
  294. package/src/theme/foundations/spacing.ts +70 -22
  295. package/src/theme/foundations/typography.ts +2 -2
  296. package/src/utils/componentCategories.ts +1 -2
  297. package/dist/components/SearchBar/SearchBar.Test.d.ts +0 -1
  298. package/dist/helpers/generateUUID.d.ts +0 -1
  299. package/src/helpers/generateUUID.tsx +0 -5
@@ -2,27 +2,22 @@
2
2
 
3
3
  exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
4
4
  <div
5
- className="css-aq1pyb"
6
- id="basic-form-field}"
5
+ className="css-7ajbp2"
6
+ id="basic-form-field"
7
7
  >
8
8
  <fieldset
9
- className="css-0"
9
+ className="css-13wylk3"
10
10
  id="basic"
11
11
  >
12
12
  <legend>
13
13
  Select the full date you want to visit NYPL
14
- <div
15
- className="css-0"
16
- >
17
- Optional
18
- </div>
19
14
  </legend>
20
15
  <div
21
- className="css-ahcv85"
16
+ className="css-1vpopwd"
22
17
  id="basic-form-row"
23
18
  >
24
19
  <div
25
- className="css-aq1pyb"
20
+ className="css-7ajbp2"
26
21
  id="basic-form-row-grandchild0"
27
22
  >
28
23
  <div
@@ -32,10 +27,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
32
27
  className="react-datepicker__input-container"
33
28
  >
34
29
  <div
35
- className="css-0"
30
+ className="css-1xdhyk6"
36
31
  >
37
32
  <label
38
- className="css-0"
33
+ className="css-1xdhyk6"
39
34
  htmlFor="basic-start"
40
35
  id="basic-start-label"
41
36
  >
@@ -59,7 +54,7 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
59
54
  </div>
60
55
  </div>
61
56
  <div
62
- className="css-aq1pyb"
57
+ className="css-7ajbp2"
63
58
  id="basic-form-row-grandchild1"
64
59
  >
65
60
  <div
@@ -69,10 +64,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
69
64
  className="react-datepicker__input-container"
70
65
  >
71
66
  <div
72
- className="css-0"
67
+ className="css-1xdhyk6"
73
68
  >
74
69
  <label
75
- className="css-0"
70
+ className="css-1xdhyk6"
76
71
  htmlFor="basic-end"
77
72
  id="basic-end-label"
78
73
  >
@@ -102,27 +97,22 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
102
97
 
103
98
  exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
104
99
  <div
105
- className="css-aq1pyb"
106
- id="no-label-form-field}"
100
+ className="css-7ajbp2"
101
+ id="no-label-form-field"
107
102
  >
108
103
  <fieldset
109
- className="css-0"
104
+ className="css-13wylk3"
110
105
  id="no-label"
111
106
  >
112
107
  <legend>
113
108
  Select the date you want to visit NYPL
114
- <div
115
- className="css-0"
116
- >
117
- Optional
118
- </div>
119
109
  </legend>
120
110
  <div
121
- className="css-ahcv85"
111
+ className="css-1vpopwd"
122
112
  id="no-label-form-row"
123
113
  >
124
114
  <div
125
- className="css-aq1pyb"
115
+ className="css-7ajbp2"
126
116
  id="no-label-form-row-grandchild0"
127
117
  >
128
118
  <div
@@ -132,10 +122,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
132
122
  className="react-datepicker__input-container"
133
123
  >
134
124
  <div
135
- className="css-0"
125
+ className="css-1xdhyk6"
136
126
  >
137
127
  <label
138
- className="css-0"
128
+ className="css-1xdhyk6"
139
129
  htmlFor="no-label-start"
140
130
  id="no-label-start-label"
141
131
  >
@@ -159,7 +149,7 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
159
149
  </div>
160
150
  </div>
161
151
  <div
162
- className="css-aq1pyb"
152
+ className="css-7ajbp2"
163
153
  id="no-label-form-row-grandchild1"
164
154
  >
165
155
  <div
@@ -169,10 +159,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
169
159
  className="react-datepicker__input-container"
170
160
  >
171
161
  <div
172
- className="css-0"
162
+ className="css-1xdhyk6"
173
163
  >
174
164
  <label
175
- className="css-0"
165
+ className="css-1xdhyk6"
176
166
  htmlFor="no-label-end"
177
167
  id="no-label-end-label"
178
168
  >
@@ -202,27 +192,22 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
202
192
 
203
193
  exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
204
194
  <div
205
- className="css-aq1pyb"
206
- id="custom-format-form-field}"
195
+ className="css-7ajbp2"
196
+ id="custom-format-form-field"
207
197
  >
208
198
  <fieldset
209
- className="css-0"
199
+ className="css-13wylk3"
210
200
  id="custom-format"
211
201
  >
212
202
  <legend>
213
203
  Select the date you want to visit NYPL
214
- <div
215
- className="css-0"
216
- >
217
- Optional
218
- </div>
219
204
  </legend>
220
205
  <div
221
- className="css-ahcv85"
206
+ className="css-1vpopwd"
222
207
  id="custom-format-form-row"
223
208
  >
224
209
  <div
225
- className="css-aq1pyb"
210
+ className="css-7ajbp2"
226
211
  id="custom-format-form-row-grandchild0"
227
212
  >
228
213
  <div
@@ -232,10 +217,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
232
217
  className="react-datepicker__input-container"
233
218
  >
234
219
  <div
235
- className="css-0"
220
+ className="css-1xdhyk6"
236
221
  >
237
222
  <label
238
- className="css-0"
223
+ className="css-1xdhyk6"
239
224
  htmlFor="custom-format-start"
240
225
  id="custom-format-start-label"
241
226
  >
@@ -259,7 +244,7 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
259
244
  </div>
260
245
  </div>
261
246
  <div
262
- className="css-aq1pyb"
247
+ className="css-7ajbp2"
263
248
  id="custom-format-form-row-grandchild1"
264
249
  >
265
250
  <div
@@ -269,10 +254,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
269
254
  className="react-datepicker__input-container"
270
255
  >
271
256
  <div
272
- className="css-0"
257
+ className="css-1xdhyk6"
273
258
  >
274
259
  <label
275
- className="css-0"
260
+ className="css-1xdhyk6"
276
261
  htmlFor="custom-format-end"
277
262
  id="custom-format-end-label"
278
263
  >
@@ -302,27 +287,22 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
302
287
 
303
288
  exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
304
289
  <div
305
- className="css-aq1pyb"
306
- id="invalid-form-field}"
290
+ className="css-7ajbp2"
291
+ id="invalid-form-field"
307
292
  >
308
293
  <fieldset
309
- className="css-0"
294
+ className="css-13wylk3"
310
295
  id="invalid"
311
296
  >
312
297
  <legend>
313
298
  Select the date you want to visit NYPL
314
- <div
315
- className="css-0"
316
- >
317
- Optional
318
- </div>
319
299
  </legend>
320
300
  <div
321
- className="css-ahcv85"
301
+ className="css-1vpopwd"
322
302
  id="invalid-form-row"
323
303
  >
324
304
  <div
325
- className="css-aq1pyb"
305
+ className="css-7ajbp2"
326
306
  id="invalid-form-row-grandchild0"
327
307
  >
328
308
  <div
@@ -332,10 +312,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
332
312
  className="react-datepicker__input-container"
333
313
  >
334
314
  <div
335
- className="css-0"
315
+ className="css-1xdhyk6"
336
316
  >
337
317
  <label
338
- className="css-0"
318
+ className="css-1xdhyk6"
339
319
  htmlFor="invalid-start"
340
320
  id="invalid-start-label"
341
321
  >
@@ -356,28 +336,23 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
356
336
  value="1988-01-02"
357
337
  />
358
338
  <div
359
- aria-disabled={false}
360
- className="css-0"
361
- >
362
- <div
363
- aria-atomic={true}
364
- aria-live="polite"
365
- className=" css-0"
366
- dangerouslySetInnerHTML={
367
- Object {
368
- "__html": "Please select a valid date.",
369
- }
339
+ aria-atomic={true}
340
+ aria-live="polite"
341
+ className="css-1xdhyk6"
342
+ dangerouslySetInnerHTML={
343
+ Object {
344
+ "__html": "Please select a valid date.",
370
345
  }
371
- data-isinvalid={true}
372
- id="invalid-start-helperText"
373
- />
374
- </div>
346
+ }
347
+ data-isinvalid={true}
348
+ id="invalid-start-helperText"
349
+ />
375
350
  </div>
376
351
  </div>
377
352
  </div>
378
353
  </div>
379
354
  <div
380
- className="css-aq1pyb"
355
+ className="css-7ajbp2"
381
356
  id="invalid-form-row-grandchild1"
382
357
  >
383
358
  <div
@@ -387,10 +362,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
387
362
  className="react-datepicker__input-container"
388
363
  >
389
364
  <div
390
- className="css-0"
365
+ className="css-1xdhyk6"
391
366
  >
392
367
  <label
393
- className="css-0"
368
+ className="css-1xdhyk6"
394
369
  htmlFor="invalid-end"
395
370
  id="invalid-end-label"
396
371
  >
@@ -411,70 +386,56 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
411
386
  value="1988-02-02"
412
387
  />
413
388
  <div
414
- aria-disabled={false}
415
- className="css-0"
416
- >
417
- <div
418
- aria-atomic={true}
419
- aria-live="polite"
420
- className=" css-0"
421
- dangerouslySetInnerHTML={
422
- Object {
423
- "__html": "Please select a valid date.",
424
- }
389
+ aria-atomic={true}
390
+ aria-live="polite"
391
+ className="css-1xdhyk6"
392
+ dangerouslySetInnerHTML={
393
+ Object {
394
+ "__html": "Please select a valid date.",
425
395
  }
426
- data-isinvalid={true}
427
- id="invalid-end-helperText"
428
- />
429
- </div>
396
+ }
397
+ data-isinvalid={true}
398
+ id="invalid-end-helperText"
399
+ />
430
400
  </div>
431
401
  </div>
432
402
  </div>
433
403
  </div>
434
404
  </div>
435
405
  <div
436
- className="css-fjhuh4"
437
- >
438
- <div
439
- aria-atomic={true}
440
- aria-live="off"
441
- className=" css-0"
442
- dangerouslySetInnerHTML={
443
- Object {
444
- "__html": "Note that the Library may be closed on Sundays.",
445
- }
406
+ aria-atomic={true}
407
+ aria-live="off"
408
+ className="css-1xdhyk6"
409
+ dangerouslySetInnerHTML={
410
+ Object {
411
+ "__html": "Note that the Library may be closed on Sundays.",
446
412
  }
447
- data-isinvalid={false}
448
- id="invalid-helper-text"
449
- />
450
- </div>
413
+ }
414
+ data-isinvalid={false}
415
+ id="invalid-helper-text"
416
+ />
451
417
  </fieldset>
452
418
  </div>
453
419
  `;
454
420
 
455
421
  exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
456
422
  <div
457
- className="css-aq1pyb"
458
- id="disabled-form-field}"
423
+ className="css-7ajbp2"
424
+ id="disabled-form-field"
459
425
  >
460
426
  <fieldset
461
- className="css-0"
427
+ className="css-13wylk3"
462
428
  id="disabled"
463
429
  >
464
430
  <legend>
465
431
  Select the date you want to visit NYPL
466
- <div
467
- className="css-0"
468
- >
469
- Optional
470
- </div>
471
432
  </legend>
472
433
  <div
473
- className="css-ahcv85"
434
+ className="css-1vpopwd"
474
435
  id="disabled-form-row"
475
436
  >
476
437
  <div
477
- className="css-aq1pyb"
438
+ className="css-7ajbp2"
478
439
  id="disabled-form-row-grandchild0"
479
440
  >
480
441
  <div
@@ -484,10 +445,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
484
445
  className="react-datepicker__input-container"
485
446
  >
486
447
  <div
487
- className="css-0"
448
+ className="css-1xdhyk6"
488
449
  >
489
450
  <label
490
- className="css-0"
451
+ className="css-1xdhyk6"
491
452
  htmlFor="disabled-start"
492
453
  id="disabled-start-label"
493
454
  >
@@ -511,7 +472,7 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
511
472
  </div>
512
473
  </div>
513
474
  <div
514
- className="css-aq1pyb"
475
+ className="css-7ajbp2"
515
476
  id="disabled-form-row-grandchild1"
516
477
  >
517
478
  <div
@@ -521,10 +482,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
521
482
  className="react-datepicker__input-container"
522
483
  >
523
484
  <div
524
- className="css-0"
485
+ className="css-1xdhyk6"
525
486
  >
526
487
  <label
527
- className="css-0"
488
+ className="css-1xdhyk6"
528
489
  htmlFor="disabled-end"
529
490
  id="disabled-end-label"
530
491
  >
@@ -549,32 +510,28 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
549
510
  </div>
550
511
  </div>
551
512
  <div
552
- className="css-fjhuh4"
553
- >
554
- <div
555
- aria-atomic={true}
556
- aria-live="off"
557
- className=" css-0"
558
- dangerouslySetInnerHTML={
559
- Object {
560
- "__html": "Note that the Library may be closed on Sundays.",
561
- }
513
+ aria-atomic={true}
514
+ aria-live="off"
515
+ className="css-1xdhyk6"
516
+ dangerouslySetInnerHTML={
517
+ Object {
518
+ "__html": "Note that the Library may be closed on Sundays.",
562
519
  }
563
- data-isinvalid={false}
564
- id="disabled-helper-text"
565
- />
566
- </div>
520
+ }
521
+ data-isinvalid={false}
522
+ id="disabled-helper-text"
523
+ />
567
524
  </fieldset>
568
525
  </div>
569
526
  `;
570
527
 
571
528
  exports[`DatePicker Single input renders the UI snapshot correctly 1`] = `
572
529
  <div
573
- className="css-aq1pyb"
574
- id="basic-form-field}"
530
+ className="css-7ajbp2"
531
+ id="basic-form-field"
575
532
  >
576
533
  <div
577
- className="css-aq1pyb"
534
+ className="css-7ajbp2"
578
535
  id="basic-start-form"
579
536
  >
580
537
  <div
@@ -584,19 +541,14 @@ exports[`DatePicker Single input renders the UI snapshot correctly 1`] = `
584
541
  className="react-datepicker__input-container"
585
542
  >
586
543
  <div
587
- className="css-0"
544
+ className="css-1xdhyk6"
588
545
  >
589
546
  <label
590
- className="css-0"
547
+ className="css-1xdhyk6"
591
548
  htmlFor="basic-start"
592
549
  id="basic-start-label"
593
550
  >
594
551
  Select the full date you want to visit NYPL
595
- <div
596
- className="css-0"
597
- >
598
- Optional
599
- </div>
600
552
  </label>
601
553
  <input
602
554
  className="chakra-input css-0"
@@ -620,11 +572,11 @@ exports[`DatePicker Single input renders the UI snapshot correctly 1`] = `
620
572
 
621
573
  exports[`DatePicker Single input renders the UI snapshot correctly 2`] = `
622
574
  <div
623
- className="css-aq1pyb"
624
- id="no-label-form-field}"
575
+ className="css-7ajbp2"
576
+ id="no-label-form-field"
625
577
  >
626
578
  <div
627
- className="css-aq1pyb"
579
+ className="css-7ajbp2"
628
580
  id="no-label-start-form"
629
581
  >
630
582
  <div
@@ -634,7 +586,7 @@ exports[`DatePicker Single input renders the UI snapshot correctly 2`] = `
634
586
  className="react-datepicker__input-container"
635
587
  >
636
588
  <div
637
- className="css-0"
589
+ className="css-1xdhyk6"
638
590
  >
639
591
  <input
640
592
  aria-label="Select the date you want to visit NYPL"
@@ -659,11 +611,11 @@ exports[`DatePicker Single input renders the UI snapshot correctly 2`] = `
659
611
 
660
612
  exports[`DatePicker Single input renders the UI snapshot correctly 3`] = `
661
613
  <div
662
- className="css-aq1pyb"
663
- id="custom-format-form-field}"
614
+ className="css-7ajbp2"
615
+ id="custom-format-form-field"
664
616
  >
665
617
  <div
666
- className="css-aq1pyb"
618
+ className="css-7ajbp2"
667
619
  id="custom-format-start-form"
668
620
  >
669
621
  <div
@@ -673,19 +625,14 @@ exports[`DatePicker Single input renders the UI snapshot correctly 3`] = `
673
625
  className="react-datepicker__input-container"
674
626
  >
675
627
  <div
676
- className="css-0"
628
+ className="css-1xdhyk6"
677
629
  >
678
630
  <label
679
- className="css-0"
631
+ className="css-1xdhyk6"
680
632
  htmlFor="custom-format-start"
681
633
  id="custom-format-start-label"
682
634
  >
683
635
  Select the date you want to visit NYPL
684
- <div
685
- className="css-0"
686
- >
687
- Optional
688
- </div>
689
636
  </label>
690
637
  <input
691
638
  className="chakra-input css-0"
@@ -709,11 +656,11 @@ exports[`DatePicker Single input renders the UI snapshot correctly 3`] = `
709
656
 
710
657
  exports[`DatePicker Single input renders the UI snapshot correctly 4`] = `
711
658
  <div
712
- className="css-aq1pyb"
713
- id="invalid-form-field}"
659
+ className="css-7ajbp2"
660
+ id="invalid-form-field"
714
661
  >
715
662
  <div
716
- className="css-aq1pyb"
663
+ className="css-7ajbp2"
717
664
  id="invalid-start-form"
718
665
  >
719
666
  <div
@@ -723,19 +670,14 @@ exports[`DatePicker Single input renders the UI snapshot correctly 4`] = `
723
670
  className="react-datepicker__input-container"
724
671
  >
725
672
  <div
726
- className="css-0"
673
+ className="css-1xdhyk6"
727
674
  >
728
675
  <label
729
- className="css-0"
676
+ className="css-1xdhyk6"
730
677
  htmlFor="invalid-start"
731
678
  id="invalid-start-label"
732
679
  >
733
680
  Select the date you want to visit NYPL
734
- <div
735
- className="css-0"
736
- >
737
- Optional
738
- </div>
739
681
  </label>
740
682
  <input
741
683
  aria-describedby="invalid-start-helperText"
@@ -753,22 +695,17 @@ exports[`DatePicker Single input renders the UI snapshot correctly 4`] = `
753
695
  value="1988-01-02"
754
696
  />
755
697
  <div
756
- aria-disabled={false}
757
- className="css-0"
758
- >
759
- <div
760
- aria-atomic={true}
761
- aria-live="polite"
762
- className=" css-0"
763
- dangerouslySetInnerHTML={
764
- Object {
765
- "__html": "Please select a valid date.",
766
- }
698
+ aria-atomic={true}
699
+ aria-live="polite"
700
+ className="css-1xdhyk6"
701
+ dangerouslySetInnerHTML={
702
+ Object {
703
+ "__html": "Please select a valid date.",
767
704
  }
768
- data-isinvalid={true}
769
- id="invalid-start-helperText"
770
- />
771
- </div>
705
+ }
706
+ data-isinvalid={true}
707
+ id="invalid-start-helperText"
708
+ />
772
709
  </div>
773
710
  </div>
774
711
  </div>
@@ -778,11 +715,11 @@ exports[`DatePicker Single input renders the UI snapshot correctly 4`] = `
778
715
 
779
716
  exports[`DatePicker Single input renders the UI snapshot correctly 5`] = `
780
717
  <div
781
- className="css-aq1pyb"
782
- id="disabled-form-field}"
718
+ className="css-7ajbp2"
719
+ id="disabled-form-field"
783
720
  >
784
721
  <div
785
- className="css-aq1pyb"
722
+ className="css-7ajbp2"
786
723
  id="disabled-start-form"
787
724
  >
788
725
  <div
@@ -792,19 +729,14 @@ exports[`DatePicker Single input renders the UI snapshot correctly 5`] = `
792
729
  className="react-datepicker__input-container"
793
730
  >
794
731
  <div
795
- className="css-0"
732
+ className="css-1xdhyk6"
796
733
  >
797
734
  <label
798
- className="css-0"
735
+ className="css-1xdhyk6"
799
736
  htmlFor="disabled-start"
800
737
  id="disabled-start-label"
801
738
  >
802
739
  Select the date you want to visit NYPL
803
- <div
804
- className="css-0"
805
- >
806
- Optional
807
- </div>
808
740
  </label>
809
741
  <input
810
742
  aria-describedby="disabled-start-helperText"
@@ -821,22 +753,134 @@ exports[`DatePicker Single input renders the UI snapshot correctly 5`] = `
821
753
  value="1988-01-02"
822
754
  />
823
755
  <div
824
- aria-disabled={true}
825
- className="css-0"
756
+ aria-atomic={true}
757
+ aria-live="off"
758
+ className="css-1xdhyk6"
759
+ dangerouslySetInnerHTML={
760
+ Object {
761
+ "__html": "Note that the Library may be closed on Sundays.",
762
+ }
763
+ }
764
+ data-isinvalid={false}
765
+ id="disabled-start-helperText"
766
+ />
767
+ </div>
768
+ </div>
769
+ </div>
770
+ </div>
771
+ </div>
772
+ `;
773
+
774
+ exports[`DatePicker Single input renders the UI snapshot correctly 6`] = `
775
+ <div
776
+ className="css-1h2oq49"
777
+ id="chakra-form-field"
778
+ >
779
+ <div
780
+ className="css-7ajbp2"
781
+ id="chakra-start-form"
782
+ >
783
+ <div
784
+ className="react-datepicker-wrapper"
785
+ >
786
+ <div
787
+ className="react-datepicker__input-container"
788
+ >
789
+ <div
790
+ className="css-1xdhyk6"
791
+ >
792
+ <label
793
+ className="css-1xdhyk6"
794
+ htmlFor="chakra-start"
795
+ id="chakra-start-label"
826
796
  >
827
- <div
828
- aria-atomic={true}
829
- aria-live="off"
830
- className=" css-0"
831
- dangerouslySetInnerHTML={
832
- Object {
833
- "__html": "Note that the Library may be closed on Sundays.",
834
- }
797
+ Select the date you want to visit NYPL
798
+ </label>
799
+ <input
800
+ aria-describedby="chakra-start-helperText"
801
+ className="chakra-input css-0"
802
+ disabled={false}
803
+ id="chakra-start"
804
+ onBlur={[Function]}
805
+ onChange={[Function]}
806
+ onClick={[Function]}
807
+ onFocus={[Function]}
808
+ required={false}
809
+ step={null}
810
+ type="text"
811
+ value="1988-01-02"
812
+ />
813
+ <div
814
+ aria-atomic={true}
815
+ aria-live="off"
816
+ className="css-1xdhyk6"
817
+ dangerouslySetInnerHTML={
818
+ Object {
819
+ "__html": "Note that the Library may be closed on Sundays.",
835
820
  }
836
- data-isinvalid={false}
837
- id="disabled-start-helperText"
838
- />
839
- </div>
821
+ }
822
+ data-isinvalid={false}
823
+ id="chakra-start-helperText"
824
+ />
825
+ </div>
826
+ </div>
827
+ </div>
828
+ </div>
829
+ </div>
830
+ `;
831
+
832
+ exports[`DatePicker Single input renders the UI snapshot correctly 7`] = `
833
+ <div
834
+ className="css-7ajbp2"
835
+ data-testid="datepicker"
836
+ id="props-form-field"
837
+ >
838
+ <div
839
+ className="css-7ajbp2"
840
+ id="props-start-form"
841
+ >
842
+ <div
843
+ className="react-datepicker-wrapper"
844
+ >
845
+ <div
846
+ className="react-datepicker__input-container"
847
+ >
848
+ <div
849
+ className="css-1xdhyk6"
850
+ >
851
+ <label
852
+ className="css-1xdhyk6"
853
+ htmlFor="props-start"
854
+ id="props-start-label"
855
+ >
856
+ Select the date you want to visit NYPL
857
+ </label>
858
+ <input
859
+ aria-describedby="props-start-helperText"
860
+ className="chakra-input css-0"
861
+ disabled={false}
862
+ id="props-start"
863
+ onBlur={[Function]}
864
+ onChange={[Function]}
865
+ onClick={[Function]}
866
+ onFocus={[Function]}
867
+ required={false}
868
+ step={null}
869
+ type="text"
870
+ value="1988-01-02"
871
+ />
872
+ <div
873
+ aria-atomic={true}
874
+ aria-live="off"
875
+ className="css-1xdhyk6"
876
+ dangerouslySetInnerHTML={
877
+ Object {
878
+ "__html": "Note that the Library may be closed on Sundays.",
879
+ }
880
+ }
881
+ data-isinvalid={false}
882
+ id="props-start-helperText"
883
+ />
840
884
  </div>
841
885
  </div>
842
886
  </div>