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

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 (309) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +171 -135
  3. package/dist/__tests__/mediaMatchMock.d.ts +79 -0
  4. package/dist/components/Card/Card.d.ts +8 -6
  5. package/dist/components/Heading/Heading.d.ts +6 -0
  6. package/dist/components/Icons/Icon.d.ts +1 -1
  7. package/dist/components/Icons/IconSvgs.d.ts +10 -0
  8. package/dist/components/Logo/Logo.d.ts +1 -1
  9. package/dist/components/Logo/LogoSvgs.d.ts +3 -0
  10. package/dist/components/Slider/Slider.d.ts +1 -2
  11. package/dist/components/Table/Table.d.ts +3 -2
  12. package/dist/components/Text/Text.d.ts +6 -0
  13. package/dist/components/TextInput/TextInput.d.ts +2 -1
  14. package/dist/design-system-react-components.cjs.development.js +1700 -878
  15. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  16. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  17. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  18. package/dist/design-system-react-components.esm.js +1672 -881
  19. package/dist/design-system-react-components.esm.js.map +1 -1
  20. package/dist/hooks/{tests → __tests__}/useCarouselStyles.test.d.ts +0 -0
  21. package/dist/hooks/__tests__/useNYPLBreakpoints.test.d.ts +1 -0
  22. package/dist/hooks/useNYPLBreakpoints.d.ts +13 -0
  23. package/dist/index.d.ts +2 -1
  24. package/dist/resources.scss +0 -4
  25. package/dist/styles.css +3 -2
  26. package/dist/theme/components/button.d.ts +7 -2
  27. package/dist/theme/components/checkbox.d.ts +1 -0
  28. package/dist/theme/components/customTable.d.ts +522 -34
  29. package/dist/theme/components/datePicker.d.ts +1 -0
  30. package/dist/theme/components/global.d.ts +5 -2
  31. package/dist/theme/components/heading.d.ts +5 -1
  32. package/dist/theme/components/image.d.ts +18 -0
  33. package/dist/theme/components/radio.d.ts +9 -0
  34. package/dist/theme/components/searchBar.d.ts +6 -0
  35. package/dist/theme/components/select.d.ts +4 -5
  36. package/dist/theme/components/structuredContent.d.ts +117 -17
  37. package/dist/theme/components/template.d.ts +4 -1
  38. package/dist/theme/components/text.d.ts +5 -1
  39. package/dist/theme/components/textInput.d.ts +4 -0
  40. package/dist/theme/components/toggle.d.ts +1 -0
  41. package/dist/theme/provider.d.ts +2 -1
  42. package/package.json +16 -16
  43. package/src/__tests__/fileMock.ts +0 -6
  44. package/src/__tests__/setup.ts +0 -27
  45. package/src/__tests__/utils/utils.test.ts +0 -18
  46. package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +0 -42
  47. package/src/components/Accordion/Accordion.stories.mdx +0 -333
  48. package/src/components/Accordion/Accordion.test.tsx +0 -237
  49. package/src/components/Accordion/Accordion.tsx +0 -137
  50. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +0 -734
  51. package/src/components/Autosuggest/Autosuggest.stories.mdx +0 -75
  52. package/src/components/Autosuggest/Autosuggest.stories.tsx +0 -211
  53. package/src/components/Autosuggest/_Autosuggest.scss +0 -51
  54. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +0 -231
  55. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +0 -144
  56. package/src/components/Breadcrumbs/Breadcrumbs.tsx +0 -98
  57. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +0 -695
  58. package/src/components/Button/Button.stories.mdx +0 -320
  59. package/src/components/Button/Button.test.tsx +0 -184
  60. package/src/components/Button/Button.tsx +0 -95
  61. package/src/components/Button/__snapshots__/Button.test.tsx.snap +0 -106
  62. package/src/components/ButtonGroup/ButtonGroup.stories.mdx +0 -178
  63. package/src/components/ButtonGroup/ButtonGroup.test.tsx +0 -141
  64. package/src/components/ButtonGroup/ButtonGroup.tsx +0 -100
  65. package/src/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap +0 -117
  66. package/src/components/Card/Card.stories.mdx +0 -1041
  67. package/src/components/Card/Card.test.tsx +0 -388
  68. package/src/components/Card/Card.tsx +0 -346
  69. package/src/components/Card/__snapshots__/Card.test.tsx.snap +0 -568
  70. package/src/components/Chakra/Box.stories.mdx +0 -52
  71. package/src/components/Chakra/Center.stories.mdx +0 -96
  72. package/src/components/Chakra/Flex.stories.mdx +0 -111
  73. package/src/components/Chakra/Grid.stories.mdx +0 -89
  74. package/src/components/Chakra/Stack.stories.mdx +0 -109
  75. package/src/components/Checkbox/Checkbox.stories.mdx +0 -243
  76. package/src/components/Checkbox/Checkbox.test.tsx +0 -350
  77. package/src/components/Checkbox/Checkbox.tsx +0 -152
  78. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +0 -661
  79. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +0 -462
  80. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +0 -492
  81. package/src/components/CheckboxGroup/CheckboxGroup.tsx +0 -173
  82. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +0 -1842
  83. package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +0 -163
  84. package/src/components/ComponentWrapper/ComponentWrapper.tsx +0 -76
  85. package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +0 -103
  86. package/src/components/DatePicker/DatePicker.stories.mdx +0 -452
  87. package/src/components/DatePicker/DatePicker.test.tsx +0 -940
  88. package/src/components/DatePicker/DatePicker.tsx +0 -450
  89. package/src/components/DatePicker/_DatePicker.scss +0 -100
  90. package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +0 -908
  91. package/src/components/Fieldset/Fieldset.stories.mdx +0 -96
  92. package/src/components/Fieldset/Fieldset.test.tsx +0 -155
  93. package/src/components/Fieldset/Fieldset.tsx +0 -55
  94. package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +0 -89
  95. package/src/components/Form/Form.stories.mdx +0 -426
  96. package/src/components/Form/Form.test.tsx +0 -234
  97. package/src/components/Form/Form.tsx +0 -124
  98. package/src/components/Form/__snapshots__/Form.test.tsx.snap +0 -115
  99. package/src/components/Grid/SimpleGrid.stories.mdx +0 -336
  100. package/src/components/Grid/SimpleGrid.test.tsx +0 -79
  101. package/src/components/Grid/SimpleGrid.tsx +0 -49
  102. package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +0 -23
  103. package/src/components/Heading/Heading.stories.mdx +0 -187
  104. package/src/components/Heading/Heading.test.tsx +0 -171
  105. package/src/components/Heading/Heading.tsx +0 -104
  106. package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +0 -90
  107. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +0 -172
  108. package/src/components/HelperErrorText/HelperErrorText.test.tsx +0 -114
  109. package/src/components/HelperErrorText/HelperErrorText.tsx +0 -62
  110. package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +0 -93
  111. package/src/components/Hero/Hero.stories.mdx +0 -378
  112. package/src/components/Hero/Hero.test.tsx +0 -611
  113. package/src/components/Hero/Hero.tsx +0 -203
  114. package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +0 -379
  115. package/src/components/HorizontalRule/HorizontalRule.stories.mdx +0 -73
  116. package/src/components/HorizontalRule/HorizontalRule.test.tsx +0 -54
  117. package/src/components/HorizontalRule/HorizontalRule.tsx +0 -27
  118. package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +0 -44
  119. package/src/components/Icons/Icon.stories.mdx +0 -413
  120. package/src/components/Icons/Icon.test.tsx +0 -120
  121. package/src/components/Icons/Icon.tsx +0 -187
  122. package/src/components/Icons/IconSvgs.tsx +0 -64
  123. package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +0 -129
  124. package/src/components/Image/Image.stories.mdx +0 -332
  125. package/src/components/Image/Image.test.tsx +0 -155
  126. package/src/components/Image/Image.tsx +0 -171
  127. package/src/components/Image/__snapshots__/Image.test.tsx.snap +0 -269
  128. package/src/components/Label/Label.stories.mdx +0 -100
  129. package/src/components/Label/Label.test.tsx +0 -116
  130. package/src/components/Label/Label.tsx +0 -55
  131. package/src/components/Label/__snapshots__/Label.test.tsx.snap +0 -45
  132. package/src/components/Link/Link.stories.mdx +0 -249
  133. package/src/components/Link/Link.test.tsx +0 -224
  134. package/src/components/Link/Link.tsx +0 -178
  135. package/src/components/Link/__snapshots__/Link.test.tsx.snap +0 -286
  136. package/src/components/List/List.stories.mdx +0 -393
  137. package/src/components/List/List.test.tsx +0 -265
  138. package/src/components/List/List.tsx +0 -156
  139. package/src/components/List/__snapshots__/List.test.tsx.snap +0 -213
  140. package/src/components/Logo/Logo.stories.mdx +0 -295
  141. package/src/components/Logo/Logo.test.tsx +0 -116
  142. package/src/components/Logo/Logo.tsx +0 -151
  143. package/src/components/Logo/LogoSvgs.tsx +0 -90
  144. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +0 -142
  145. package/src/components/Modal/Modal.stories.mdx +0 -294
  146. package/src/components/Modal/Modal.test.tsx +0 -157
  147. package/src/components/Modal/Modal.tsx +0 -154
  148. package/src/components/Modal/__snapshots__/Modal.test.tsx.snap +0 -25
  149. package/src/components/Notification/Notification.stories.mdx +0 -358
  150. package/src/components/Notification/Notification.test.tsx +0 -279
  151. package/src/components/Notification/Notification.tsx +0 -224
  152. package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +0 -525
  153. package/src/components/Pagination/Pagination.stories.mdx +0 -184
  154. package/src/components/Pagination/Pagination.test.tsx +0 -419
  155. package/src/components/Pagination/Pagination.tsx +0 -269
  156. package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +0 -544
  157. package/src/components/Placeholder/Placeholder.tsx +0 -19
  158. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +0 -360
  159. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +0 -298
  160. package/src/components/ProgressIndicator/ProgressIndicator.tsx +0 -132
  161. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +0 -434
  162. package/src/components/Radio/Radio.stories.mdx +0 -216
  163. package/src/components/Radio/Radio.test.tsx +0 -247
  164. package/src/components/Radio/Radio.tsx +0 -119
  165. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +0 -451
  166. package/src/components/RadioGroup/RadioGroup.stories.mdx +0 -479
  167. package/src/components/RadioGroup/RadioGroup.test.tsx +0 -471
  168. package/src/components/RadioGroup/RadioGroup.tsx +0 -171
  169. package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +0 -1550
  170. package/src/components/SearchBar/SearchBar.stories.mdx +0 -518
  171. package/src/components/SearchBar/SearchBar.test.tsx +0 -435
  172. package/src/components/SearchBar/SearchBar.tsx +0 -210
  173. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +0 -1049
  174. package/src/components/Select/Select.stories.mdx +0 -439
  175. package/src/components/Select/Select.test.tsx +0 -358
  176. package/src/components/Select/Select.tsx +0 -183
  177. package/src/components/Select/__snapshots__/Select.test.tsx.snap +0 -895
  178. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +0 -142
  179. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +0 -116
  180. package/src/components/SkeletonLoader/SkeletonLoader.tsx +0 -123
  181. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +0 -898
  182. package/src/components/SkipNavigation/SkipNavigation.stories.mdx +0 -90
  183. package/src/components/SkipNavigation/SkipNavigation.test.tsx +0 -63
  184. package/src/components/SkipNavigation/SkipNavigation.tsx +0 -51
  185. package/src/components/SkipNavigation/__snapshots__/SkipNavigation.test.tsx.snap +0 -130
  186. package/src/components/Slider/Slider.stories.mdx +0 -628
  187. package/src/components/Slider/Slider.test.tsx +0 -736
  188. package/src/components/Slider/Slider.tsx +0 -322
  189. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +0 -2186
  190. package/src/components/StatusBadge/StatusBadge.stories.mdx +0 -109
  191. package/src/components/StatusBadge/StatusBadge.test.tsx +0 -70
  192. package/src/components/StatusBadge/StatusBadge.tsx +0 -35
  193. package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +0 -47
  194. package/src/components/StructuredContent/StructuredContent.stories.mdx +0 -567
  195. package/src/components/StructuredContent/StructuredContent.test.tsx +0 -435
  196. package/src/components/StructuredContent/StructuredContent.tsx +0 -139
  197. package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +0 -368
  198. package/src/components/StyleGuide/Bidirectionality.stories.mdx +0 -206
  199. package/src/components/StyleGuide/Breakpoints.stories.mdx +0 -55
  200. package/src/components/StyleGuide/Buttons.stories.mdx +0 -194
  201. package/src/components/StyleGuide/ColorCard.tsx +0 -43
  202. package/src/components/StyleGuide/Colors.stories.mdx +0 -201
  203. package/src/components/StyleGuide/DesignTokens.stories.mdx +0 -193
  204. package/src/components/StyleGuide/Forms.stories.mdx +0 -94
  205. package/src/components/StyleGuide/Iconography.stories.mdx +0 -142
  206. package/src/components/StyleGuide/Spacing.stories.mdx +0 -116
  207. package/src/components/StyleGuide/Typography.stories.mdx +0 -419
  208. package/src/components/Table/Table.stories.mdx +0 -272
  209. package/src/components/Table/Table.test.tsx +0 -241
  210. package/src/components/Table/Table.tsx +0 -152
  211. package/src/components/Table/__snapshots__/Table.test.tsx.snap +0 -1703
  212. package/src/components/Tabs/Tabs.stories.mdx +0 -338
  213. package/src/components/Tabs/Tabs.test.tsx +0 -298
  214. package/src/components/Tabs/Tabs.tsx +0 -264
  215. package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +0 -584
  216. package/src/components/Template/Template.stories.mdx +0 -695
  217. package/src/components/Template/Template.test.tsx +0 -309
  218. package/src/components/Template/Template.tsx +0 -326
  219. package/src/components/Template/__snapshots__/Template.test.tsx.snap +0 -342
  220. package/src/components/Text/Text.stories.mdx +0 -103
  221. package/src/components/Text/Text.test.tsx +0 -63
  222. package/src/components/Text/Text.tsx +0 -50
  223. package/src/components/Text/__snapshots__/Text.test.tsx.snap +0 -50
  224. package/src/components/TextInput/TextInput.stories.mdx +0 -268
  225. package/src/components/TextInput/TextInput.test.tsx +0 -451
  226. package/src/components/TextInput/TextInput.tsx +0 -240
  227. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +0 -274
  228. package/src/components/Toggle/Toggle.stories.mdx +0 -237
  229. package/src/components/Toggle/Toggle.test.tsx +0 -170
  230. package/src/components/Toggle/Toggle.tsx +0 -128
  231. package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +0 -470
  232. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +0 -212
  233. package/src/components/VideoPlayer/VideoPlayer.test.tsx +0 -308
  234. package/src/components/VideoPlayer/VideoPlayer.tsx +0 -188
  235. package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +0 -192
  236. package/src/docs/Chakra.stories.mdx +0 -563
  237. package/src/docs/Welcome.stories.mdx +0 -148
  238. package/src/helpers/types.ts +0 -1
  239. package/src/hooks/tests/useCarouselStyles.test.ts +0 -140
  240. package/src/hooks/tests/useNYPLTheme.test.tsx +0 -36
  241. package/src/hooks/useCarouselStyles.stories.mdx +0 -30
  242. package/src/hooks/useCarouselStyles.ts +0 -35
  243. package/src/hooks/useNYPLTheme.stories.mdx +0 -98
  244. package/src/hooks/useNYPLTheme.ts +0 -91
  245. package/src/hooks/useWindowSize.stories.mdx +0 -23
  246. package/src/hooks/useWindowSize.ts +0 -40
  247. package/src/index.ts +0 -136
  248. package/src/resources.scss +0 -6
  249. package/src/styles/base/_01-breakpoints.scss +0 -27
  250. package/src/styles/base/_02-mixins.scss +0 -103
  251. package/src/styles/base/_place-holder.scss +0 -33
  252. package/src/styles/space/_space-inline.scss +0 -79
  253. package/src/styles/space/_space-inset.scss +0 -57
  254. package/src/styles/space/_space-stack.scss +0 -116
  255. package/src/styles.scss +0 -23
  256. package/src/theme/components/accordion.ts +0 -25
  257. package/src/theme/components/breadcrumb.ts +0 -94
  258. package/src/theme/components/button.ts +0 -133
  259. package/src/theme/components/buttonGroup.ts +0 -10
  260. package/src/theme/components/card.ts +0 -237
  261. package/src/theme/components/checkbox.ts +0 -110
  262. package/src/theme/components/checkboxGroup.ts +0 -10
  263. package/src/theme/components/componentWrapper.ts +0 -14
  264. package/src/theme/components/customTable.ts +0 -77
  265. package/src/theme/components/datePicker.ts +0 -17
  266. package/src/theme/components/fieldset.ts +0 -23
  267. package/src/theme/components/global.ts +0 -91
  268. package/src/theme/components/globalMixins.ts +0 -24
  269. package/src/theme/components/heading.ts +0 -79
  270. package/src/theme/components/helperErrorText.ts +0 -14
  271. package/src/theme/components/hero.ts +0 -238
  272. package/src/theme/components/horizontalRule.ts +0 -17
  273. package/src/theme/components/icon.ts +0 -88
  274. package/src/theme/components/image.ts +0 -136
  275. package/src/theme/components/label.ts +0 -15
  276. package/src/theme/components/link.ts +0 -63
  277. package/src/theme/components/list.ts +0 -88
  278. package/src/theme/components/logo.ts +0 -58
  279. package/src/theme/components/notification.ts +0 -132
  280. package/src/theme/components/pagination.ts +0 -17
  281. package/src/theme/components/progressIndicator.ts +0 -67
  282. package/src/theme/components/radio.ts +0 -103
  283. package/src/theme/components/radioGroup.ts +0 -10
  284. package/src/theme/components/searchBar.ts +0 -19
  285. package/src/theme/components/select.ts +0 -72
  286. package/src/theme/components/skeletonLoader.ts +0 -113
  287. package/src/theme/components/skipNavigation.ts +0 -29
  288. package/src/theme/components/slider.ts +0 -95
  289. package/src/theme/components/statusBadge.ts +0 -26
  290. package/src/theme/components/structuredContent.ts +0 -149
  291. package/src/theme/components/tabs.ts +0 -109
  292. package/src/theme/components/template.ts +0 -114
  293. package/src/theme/components/text.ts +0 -38
  294. package/src/theme/components/textInput.ts +0 -65
  295. package/src/theme/components/toggle.ts +0 -109
  296. package/src/theme/components/videoPlayer.ts +0 -47
  297. package/src/theme/foundations/breakpoints.ts +0 -24
  298. package/src/theme/foundations/colors.ts +0 -212
  299. package/src/theme/foundations/global.ts +0 -43
  300. package/src/theme/foundations/radii.ts +0 -7
  301. package/src/theme/foundations/shadows.ts +0 -5
  302. package/src/theme/foundations/spacing.ts +0 -136
  303. package/src/theme/foundations/typography.ts +0 -107
  304. package/src/theme/index.ts +0 -131
  305. package/src/theme/provider.tsx +0 -9
  306. package/src/theme/types.ts +0 -1
  307. package/src/utils/componentCategories.ts +0 -152
  308. package/src/utils/interfaces.ts +0 -5
  309. package/src/utils/utils.ts +0 -84
@@ -1,661 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Checkbox Renders the UI snapshot correctly 1`] = `
4
- <div
5
- className="css-1xdhyk6"
6
- id="inputID-wrapper"
7
- >
8
- <label
9
- className="chakra-checkbox css-scawxr"
10
- onClick={[Function]}
11
- >
12
- <input
13
- aria-disabled={false}
14
- aria-invalid={false}
15
- checked={false}
16
- className="chakra-checkbox__input"
17
- disabled={false}
18
- id="inputID"
19
- name="default"
20
- onBlur={[Function]}
21
- onChange={[Function]}
22
- onFocus={[Function]}
23
- onKeyDown={[Function]}
24
- onKeyUp={[Function]}
25
- required={false}
26
- style={
27
- Object {
28
- "border": "0px",
29
- "clip": "rect(0px, 0px, 0px, 0px)",
30
- "height": "1px",
31
- "margin": "-1px",
32
- "overflow": "hidden",
33
- "padding": "0px",
34
- "position": "absolute",
35
- "whiteSpace": "nowrap",
36
- "width": "1px",
37
- }
38
- }
39
- type="checkbox"
40
- />
41
- <span
42
- aria-hidden={true}
43
- className="chakra-checkbox__control css-dnty2r"
44
- onMouseDown={[Function]}
45
- onMouseEnter={[Function]}
46
- onMouseLeave={[Function]}
47
- onMouseUp={[Function]}
48
- >
49
- <svg
50
- className="chakra-icon css-1vfv7ic"
51
- focusable={false}
52
- viewBox="0 0 24 24"
53
- >
54
- <path
55
- d="M8.795 15.875l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41-10.59 10.58z"
56
- fill="currentColor"
57
- />
58
- </svg>
59
- </span>
60
- <span
61
- className="chakra-checkbox__label css-1oeb2oe"
62
- onMouseDown={[Function]}
63
- onTouchStart={[Function]}
64
- >
65
- Test Label
66
- </span>
67
- </label>
68
- </div>
69
- `;
70
-
71
- exports[`Checkbox Renders the UI snapshot correctly 2`] = `
72
- <div
73
- className="css-1xdhyk6"
74
- id="checkbox-checked-wrapper"
75
- >
76
- <label
77
- className="chakra-checkbox css-scawxr"
78
- data-checked=""
79
- onClick={[Function]}
80
- >
81
- <input
82
- aria-disabled={false}
83
- aria-invalid={false}
84
- checked={true}
85
- className="chakra-checkbox__input"
86
- disabled={false}
87
- id="checkbox-checked"
88
- name="default"
89
- onBlur={[Function]}
90
- onChange={[Function]}
91
- onFocus={[Function]}
92
- onKeyDown={[Function]}
93
- onKeyUp={[Function]}
94
- required={false}
95
- style={
96
- Object {
97
- "border": "0px",
98
- "clip": "rect(0px, 0px, 0px, 0px)",
99
- "height": "1px",
100
- "margin": "-1px",
101
- "overflow": "hidden",
102
- "padding": "0px",
103
- "position": "absolute",
104
- "whiteSpace": "nowrap",
105
- "width": "1px",
106
- }
107
- }
108
- type="checkbox"
109
- />
110
- <span
111
- aria-hidden={true}
112
- className="chakra-checkbox__control css-dnty2r"
113
- data-checked=""
114
- onMouseDown={[Function]}
115
- onMouseEnter={[Function]}
116
- onMouseLeave={[Function]}
117
- onMouseUp={[Function]}
118
- >
119
- <svg
120
- className="chakra-icon css-oi1lnb"
121
- focusable={false}
122
- viewBox="0 0 24 24"
123
- >
124
- <path
125
- d="M8.795 15.875l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41-10.59 10.58z"
126
- fill="currentColor"
127
- />
128
- </svg>
129
- </span>
130
- <span
131
- className="chakra-checkbox__label css-1oeb2oe"
132
- data-checked=""
133
- onMouseDown={[Function]}
134
- onTouchStart={[Function]}
135
- >
136
- Test Label
137
- </span>
138
- </label>
139
- </div>
140
- `;
141
-
142
- exports[`Checkbox Renders the UI snapshot correctly 3`] = `
143
- <div
144
- className="css-1xdhyk6"
145
- id="checkbox-checked-wrapper"
146
- >
147
- <label
148
- className="chakra-checkbox css-scawxr"
149
- data-checked=""
150
- onClick={[Function]}
151
- >
152
- <input
153
- aria-disabled={false}
154
- aria-invalid={false}
155
- checked={true}
156
- className="chakra-checkbox__input"
157
- disabled={false}
158
- id="checkbox-checked"
159
- name="default"
160
- onBlur={[Function]}
161
- onChange={[Function]}
162
- onFocus={[Function]}
163
- onKeyDown={[Function]}
164
- onKeyUp={[Function]}
165
- required={false}
166
- style={
167
- Object {
168
- "border": "0px",
169
- "clip": "rect(0px, 0px, 0px, 0px)",
170
- "height": "1px",
171
- "margin": "-1px",
172
- "overflow": "hidden",
173
- "padding": "0px",
174
- "position": "absolute",
175
- "whiteSpace": "nowrap",
176
- "width": "1px",
177
- }
178
- }
179
- type="checkbox"
180
- />
181
- <span
182
- aria-hidden={true}
183
- className="chakra-checkbox__control css-dnty2r"
184
- data-checked=""
185
- data-indeterminate=""
186
- onMouseDown={[Function]}
187
- onMouseEnter={[Function]}
188
- onMouseLeave={[Function]}
189
- onMouseUp={[Function]}
190
- >
191
- <div
192
- style={
193
- Object {
194
- "alignItems": "center",
195
- "display": "flex",
196
- "height": "100%",
197
- "justifyContent": "center",
198
- "transform": "none",
199
- }
200
- }
201
- >
202
- <svg
203
- className="css-o8vbdw"
204
- style={
205
- Object {
206
- "opacity": 1,
207
- "stroke": "currentColor",
208
- "strokeWidth": 4,
209
- "transform": "none",
210
- }
211
- }
212
- viewBox="0 0 24 24"
213
- >
214
- <line
215
- x1="21"
216
- x2="3"
217
- y1="12"
218
- y2="12"
219
- />
220
- </svg>
221
- </div>
222
- </span>
223
- <span
224
- className="chakra-checkbox__label css-1oeb2oe"
225
- data-checked=""
226
- onMouseDown={[Function]}
227
- onTouchStart={[Function]}
228
- >
229
- Test Label
230
- </span>
231
- </label>
232
- </div>
233
- `;
234
-
235
- exports[`Checkbox Renders the UI snapshot correctly 4`] = `
236
- <div
237
- className="css-1xdhyk6"
238
- id="checkbox-required-wrapper"
239
- >
240
- <label
241
- className="chakra-checkbox css-scawxr"
242
- onClick={[Function]}
243
- >
244
- <input
245
- aria-disabled={false}
246
- aria-invalid={false}
247
- checked={false}
248
- className="chakra-checkbox__input"
249
- disabled={false}
250
- id="checkbox-required"
251
- name="default"
252
- onBlur={[Function]}
253
- onChange={[Function]}
254
- onFocus={[Function]}
255
- onKeyDown={[Function]}
256
- onKeyUp={[Function]}
257
- required={true}
258
- style={
259
- Object {
260
- "border": "0px",
261
- "clip": "rect(0px, 0px, 0px, 0px)",
262
- "height": "1px",
263
- "margin": "-1px",
264
- "overflow": "hidden",
265
- "padding": "0px",
266
- "position": "absolute",
267
- "whiteSpace": "nowrap",
268
- "width": "1px",
269
- }
270
- }
271
- type="checkbox"
272
- />
273
- <span
274
- aria-hidden={true}
275
- className="chakra-checkbox__control css-dnty2r"
276
- onMouseDown={[Function]}
277
- onMouseEnter={[Function]}
278
- onMouseLeave={[Function]}
279
- onMouseUp={[Function]}
280
- >
281
- <svg
282
- className="chakra-icon css-1vfv7ic"
283
- focusable={false}
284
- viewBox="0 0 24 24"
285
- >
286
- <path
287
- d="M8.795 15.875l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41-10.59 10.58z"
288
- fill="currentColor"
289
- />
290
- </svg>
291
- </span>
292
- <span
293
- className="chakra-checkbox__label css-1oeb2oe"
294
- onMouseDown={[Function]}
295
- onTouchStart={[Function]}
296
- >
297
- Test Label
298
- </span>
299
- </label>
300
- </div>
301
- `;
302
-
303
- exports[`Checkbox Renders the UI snapshot correctly 5`] = `
304
- <div
305
- className="css-1xdhyk6"
306
- id="checkbox-invalid-wrapper"
307
- >
308
- <label
309
- className="chakra-checkbox css-scawxr"
310
- data-invalid=""
311
- onClick={[Function]}
312
- >
313
- <input
314
- aria-disabled={false}
315
- aria-invalid={true}
316
- checked={false}
317
- className="chakra-checkbox__input"
318
- disabled={false}
319
- id="checkbox-invalid"
320
- name="default"
321
- onBlur={[Function]}
322
- onChange={[Function]}
323
- onFocus={[Function]}
324
- onKeyDown={[Function]}
325
- onKeyUp={[Function]}
326
- required={false}
327
- style={
328
- Object {
329
- "border": "0px",
330
- "clip": "rect(0px, 0px, 0px, 0px)",
331
- "height": "1px",
332
- "margin": "-1px",
333
- "overflow": "hidden",
334
- "padding": "0px",
335
- "position": "absolute",
336
- "whiteSpace": "nowrap",
337
- "width": "1px",
338
- }
339
- }
340
- type="checkbox"
341
- />
342
- <span
343
- aria-hidden={true}
344
- className="chakra-checkbox__control css-dnty2r"
345
- data-invalid=""
346
- onMouseDown={[Function]}
347
- onMouseEnter={[Function]}
348
- onMouseLeave={[Function]}
349
- onMouseUp={[Function]}
350
- >
351
- <svg
352
- className="chakra-icon css-1vfv7ic"
353
- focusable={false}
354
- viewBox="0 0 24 24"
355
- >
356
- <path
357
- d="M8.795 15.875l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41-10.59 10.58z"
358
- fill="currentColor"
359
- />
360
- </svg>
361
- </span>
362
- <span
363
- className="chakra-checkbox__label css-1oeb2oe"
364
- data-invalid=""
365
- onMouseDown={[Function]}
366
- onTouchStart={[Function]}
367
- >
368
- Test Label
369
- </span>
370
- </label>
371
- </div>
372
- `;
373
-
374
- exports[`Checkbox Renders the UI snapshot correctly 6`] = `
375
- <div
376
- className="css-1xdhyk6"
377
- id="checkbox-disabled-wrapper"
378
- >
379
- <label
380
- className="chakra-checkbox css-scawxr"
381
- data-disabled=""
382
- onClick={[Function]}
383
- >
384
- <input
385
- aria-disabled={true}
386
- aria-invalid={false}
387
- checked={false}
388
- className="chakra-checkbox__input"
389
- disabled={true}
390
- id="checkbox-disabled"
391
- name="default"
392
- onBlur={[Function]}
393
- onChange={[Function]}
394
- onFocus={[Function]}
395
- onKeyDown={[Function]}
396
- onKeyUp={[Function]}
397
- required={false}
398
- style={
399
- Object {
400
- "border": "0px",
401
- "clip": "rect(0px, 0px, 0px, 0px)",
402
- "height": "1px",
403
- "margin": "-1px",
404
- "overflow": "hidden",
405
- "padding": "0px",
406
- "position": "absolute",
407
- "whiteSpace": "nowrap",
408
- "width": "1px",
409
- }
410
- }
411
- type="checkbox"
412
- />
413
- <span
414
- aria-hidden={true}
415
- className="chakra-checkbox__control css-dnty2r"
416
- data-disabled=""
417
- onMouseDown={[Function]}
418
- onMouseEnter={[Function]}
419
- onMouseLeave={[Function]}
420
- onMouseUp={[Function]}
421
- >
422
- <svg
423
- className="chakra-icon css-1vfv7ic"
424
- focusable={false}
425
- viewBox="0 0 24 24"
426
- >
427
- <path
428
- d="M8.795 15.875l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41-10.59 10.58z"
429
- fill="currentColor"
430
- />
431
- </svg>
432
- </span>
433
- <span
434
- className="chakra-checkbox__label css-1oeb2oe"
435
- data-disabled=""
436
- onMouseDown={[Function]}
437
- onTouchStart={[Function]}
438
- >
439
- Test Label
440
- </span>
441
- </label>
442
- </div>
443
- `;
444
-
445
- exports[`Checkbox Renders the UI snapshot correctly 7`] = `
446
- <div
447
- className="css-1xdhyk6"
448
- id="jsxLabel-wrapper"
449
- >
450
- <label
451
- className="chakra-checkbox css-scawxr"
452
- onClick={[Function]}
453
- >
454
- <input
455
- aria-disabled={false}
456
- aria-invalid={false}
457
- checked={false}
458
- className="chakra-checkbox__input"
459
- disabled={false}
460
- id="jsxLabel"
461
- name="default"
462
- onBlur={[Function]}
463
- onChange={[Function]}
464
- onFocus={[Function]}
465
- onKeyDown={[Function]}
466
- onKeyUp={[Function]}
467
- required={false}
468
- style={
469
- Object {
470
- "border": "0px",
471
- "clip": "rect(0px, 0px, 0px, 0px)",
472
- "height": "1px",
473
- "margin": "-1px",
474
- "overflow": "hidden",
475
- "padding": "0px",
476
- "position": "absolute",
477
- "whiteSpace": "nowrap",
478
- "width": "1px",
479
- }
480
- }
481
- type="checkbox"
482
- value="arts"
483
- />
484
- <span
485
- aria-hidden={true}
486
- className="chakra-checkbox__control css-dnty2r"
487
- onMouseDown={[Function]}
488
- onMouseEnter={[Function]}
489
- onMouseLeave={[Function]}
490
- onMouseUp={[Function]}
491
- >
492
- <svg
493
- className="chakra-icon css-1vfv7ic"
494
- focusable={false}
495
- viewBox="0 0 24 24"
496
- >
497
- <path
498
- d="M8.795 15.875l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41-10.59 10.58z"
499
- fill="currentColor"
500
- />
501
- </svg>
502
- </span>
503
- <span
504
- className="chakra-checkbox__label css-1oeb2oe"
505
- onMouseDown={[Function]}
506
- onTouchStart={[Function]}
507
- >
508
- <div
509
- className="css-k008qs"
510
- >
511
- <span>
512
- Arts
513
- </span>
514
- <div
515
- className="css-17xejub"
516
- />
517
- <span>
518
- 4
519
- </span>
520
- </div>
521
- </span>
522
- </label>
523
- </div>
524
- `;
525
-
526
- exports[`Checkbox Renders the UI snapshot correctly 8`] = `
527
- <div
528
- className="css-1xdhyk6"
529
- id="checkbox-chakra-wrapper"
530
- >
531
- <label
532
- className="chakra-checkbox css-wkfjn4"
533
- onClick={[Function]}
534
- >
535
- <input
536
- aria-disabled={false}
537
- aria-invalid={false}
538
- checked={false}
539
- className="chakra-checkbox__input"
540
- disabled={false}
541
- id="checkbox-chakra"
542
- name="default"
543
- onBlur={[Function]}
544
- onChange={[Function]}
545
- onFocus={[Function]}
546
- onKeyDown={[Function]}
547
- onKeyUp={[Function]}
548
- required={false}
549
- style={
550
- Object {
551
- "border": "0px",
552
- "clip": "rect(0px, 0px, 0px, 0px)",
553
- "height": "1px",
554
- "margin": "-1px",
555
- "overflow": "hidden",
556
- "padding": "0px",
557
- "position": "absolute",
558
- "whiteSpace": "nowrap",
559
- "width": "1px",
560
- }
561
- }
562
- type="checkbox"
563
- />
564
- <span
565
- aria-hidden={true}
566
- className="chakra-checkbox__control css-dnty2r"
567
- onMouseDown={[Function]}
568
- onMouseEnter={[Function]}
569
- onMouseLeave={[Function]}
570
- onMouseUp={[Function]}
571
- >
572
- <svg
573
- className="chakra-icon css-1vfv7ic"
574
- focusable={false}
575
- viewBox="0 0 24 24"
576
- >
577
- <path
578
- d="M8.795 15.875l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41-10.59 10.58z"
579
- fill="currentColor"
580
- />
581
- </svg>
582
- </span>
583
- <span
584
- className="chakra-checkbox__label css-1oeb2oe"
585
- onMouseDown={[Function]}
586
- onTouchStart={[Function]}
587
- >
588
- Test Label
589
- </span>
590
- </label>
591
- </div>
592
- `;
593
-
594
- exports[`Checkbox Renders the UI snapshot correctly 9`] = `
595
- <div
596
- className="css-1xdhyk6"
597
- data-testid="testid"
598
- id="checkbox-props-wrapper"
599
- >
600
- <label
601
- className="chakra-checkbox css-scawxr"
602
- onClick={[Function]}
603
- >
604
- <input
605
- aria-disabled={false}
606
- aria-invalid={false}
607
- checked={false}
608
- className="chakra-checkbox__input"
609
- disabled={false}
610
- id="checkbox-props"
611
- name="default"
612
- onBlur={[Function]}
613
- onChange={[Function]}
614
- onFocus={[Function]}
615
- onKeyDown={[Function]}
616
- onKeyUp={[Function]}
617
- required={false}
618
- style={
619
- Object {
620
- "border": "0px",
621
- "clip": "rect(0px, 0px, 0px, 0px)",
622
- "height": "1px",
623
- "margin": "-1px",
624
- "overflow": "hidden",
625
- "padding": "0px",
626
- "position": "absolute",
627
- "whiteSpace": "nowrap",
628
- "width": "1px",
629
- }
630
- }
631
- type="checkbox"
632
- />
633
- <span
634
- aria-hidden={true}
635
- className="chakra-checkbox__control css-dnty2r"
636
- onMouseDown={[Function]}
637
- onMouseEnter={[Function]}
638
- onMouseLeave={[Function]}
639
- onMouseUp={[Function]}
640
- >
641
- <svg
642
- className="chakra-icon css-1vfv7ic"
643
- focusable={false}
644
- viewBox="0 0 24 24"
645
- >
646
- <path
647
- d="M8.795 15.875l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41-10.59 10.58z"
648
- fill="currentColor"
649
- />
650
- </svg>
651
- </span>
652
- <span
653
- className="chakra-checkbox__label css-1oeb2oe"
654
- onMouseDown={[Function]}
655
- onTouchStart={[Function]}
656
- >
657
- Test Label
658
- </span>
659
- </label>
660
- </div>
661
- `;