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

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