@nypl/design-system-react-components 0.23.4 → 0.25.1

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 (307) hide show
  1. package/CHANGELOG.md +98 -1
  2. package/README.md +46 -11
  3. package/dist/components/Accordion/Accordion.d.ts +14 -14
  4. package/dist/components/Autosuggest/Autosuggest.stories.d.ts +1 -0
  5. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +11 -14
  6. package/dist/components/Breadcrumbs/BreadcrumbsTypes.d.ts +6 -0
  7. package/dist/components/Button/Button.d.ts +6 -13
  8. package/dist/components/Button/ButtonTypes.d.ts +5 -3
  9. package/dist/components/Card/Card.d.ts +59 -10
  10. package/dist/components/Card/CardTypes.d.ts +19 -0
  11. package/dist/components/CardEdition/CardEdition.d.ts +21 -0
  12. package/dist/components/{StyleGuide/Colors.stories.d.ts → CardEdition/CardEdition.stories.d.ts} +5 -2
  13. package/dist/components/Checkbox/Checkbox.d.ts +21 -16
  14. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +43 -0
  15. package/dist/components/CheckboxGroup/CheckboxGroupLayoutTypes.d.ts +4 -0
  16. package/dist/components/DatePicker/DatePicker.d.ts +79 -0
  17. package/dist/components/DatePicker/DatePickerTypes.d.ts +5 -0
  18. package/dist/components/Form/Form.d.ts +16 -8
  19. package/dist/components/Form/FormTypes.d.ts +2 -0
  20. package/dist/components/Grid/GridTypes.d.ts +9 -0
  21. package/dist/components/Grid/SimpleGrid.d.ts +14 -0
  22. package/dist/components/Heading/Heading.d.ts +9 -11
  23. package/dist/components/Heading/{HeadingDisplaySizes.d.ts → HeadingTypes.d.ts} +8 -0
  24. package/dist/components/HelperErrorText/HelperErrorText.stories.d.ts +2 -1
  25. package/dist/components/Hero/Hero.d.ts +19 -14
  26. package/dist/components/Hero/HeroTypes.d.ts +10 -5
  27. package/dist/components/Icons/Icon.d.ts +13 -16
  28. package/dist/components/Icons/IconSvgs.d.ts +4 -0
  29. package/dist/components/Icons/IconTypes.d.ts +78 -60
  30. package/dist/components/Image/Image.stories.d.ts +2 -1
  31. package/dist/components/Label/Label.d.ts +10 -26
  32. package/dist/components/Link/Link.d.ts +8 -12
  33. package/dist/components/List/List.stories.d.ts +1 -0
  34. package/dist/components/Radio/Radio.d.ts +30 -24
  35. package/dist/components/RadioGroup/RadioGroup.d.ts +40 -0
  36. package/dist/components/RadioGroup/RadioGroupLayoutTypes.d.ts +4 -0
  37. package/dist/components/SearchBar/SearchBar.d.ts +45 -27
  38. package/dist/components/Select/Select.d.ts +34 -35
  39. package/dist/components/Select/SelectTypes.d.ts +4 -0
  40. package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +1 -1
  41. package/dist/components/SkeletonLoader/SkeletonLoaderTypes.d.ts +2 -2
  42. package/dist/components/StatusBadge/StatusBadge.d.ts +8 -6
  43. package/dist/components/StatusBadge/StatusBadgeTypes.d.ts +5 -0
  44. package/dist/components/Tabs/Tabs.d.ts +25 -0
  45. package/dist/components/Template/Template.d.ts +91 -0
  46. package/dist/components/Text/Text.d.ts +16 -0
  47. package/dist/components/Text/TextTypes.d.ts +6 -0
  48. package/dist/components/TextInput/TextInput.d.ts +37 -30
  49. package/dist/components/TextInput/TextInputTypes.d.ts +5 -0
  50. package/dist/design-system-react-components.cjs.development.js +4102 -917
  51. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  52. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  53. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  54. package/dist/design-system-react-components.esm.js +4023 -920
  55. package/dist/design-system-react-components.esm.js.map +1 -1
  56. package/dist/index.d.ts +23 -5
  57. package/dist/resources.scss +133 -24
  58. package/dist/styles.css +1 -1
  59. package/dist/theme/components/accordion.d.ts +25 -0
  60. package/dist/theme/components/breadcrumb.d.ts +90 -0
  61. package/dist/theme/components/button.d.ts +109 -0
  62. package/dist/theme/components/checkbox.d.ts +91 -0
  63. package/dist/theme/components/customCheckboxGroup.d.ts +18 -0
  64. package/dist/theme/components/customRadioGroup.d.ts +18 -0
  65. package/dist/theme/components/global.d.ts +55 -0
  66. package/dist/theme/components/globalMixins.d.ts +15 -0
  67. package/dist/theme/components/heading.d.ts +110 -0
  68. package/dist/theme/components/hero.d.ts +492 -0
  69. package/dist/theme/components/icon.d.ts +13 -0
  70. package/dist/theme/components/label.d.ts +16 -0
  71. package/dist/theme/components/link.d.ts +45 -0
  72. package/dist/theme/components/radio.d.ts +95 -0
  73. package/dist/theme/components/searchBar.d.ts +20 -0
  74. package/dist/theme/components/select.d.ts +58 -0
  75. package/dist/theme/components/statusBadge.d.ts +25 -0
  76. package/dist/theme/components/tabs.d.ts +85 -0
  77. package/dist/theme/components/template.d.ts +105 -0
  78. package/dist/theme/components/text.d.ts +20 -0
  79. package/dist/theme/components/textInput.d.ts +105 -0
  80. package/dist/theme/foundations/breakpoints.d.ts +23 -0
  81. package/dist/theme/foundations/colors.d.ts +3 -0
  82. package/dist/theme/foundations/global.d.ts +23 -0
  83. package/dist/theme/foundations/shadows.d.ts +4 -0
  84. package/dist/theme/foundations/spacing.d.ts +77 -0
  85. package/dist/theme/foundations/typography.d.ts +8 -0
  86. package/dist/theme/index.d.ts +20 -0
  87. package/dist/theme/provider.d.ts +5 -0
  88. package/dist/theme/types.d.ts +1 -0
  89. package/dist/utils/utils.d.ts +6 -0
  90. package/package.json +9 -2
  91. package/src/components/Accordion/Accordion.stories.mdx +233 -33
  92. package/src/components/Accordion/Accordion.test.tsx +135 -19
  93. package/src/components/Accordion/Accordion.tsx +81 -56
  94. package/src/components/Autosuggest/Autosuggest.stories.mdx +4 -3
  95. package/src/components/Autosuggest/Autosuggest.stories.tsx +1 -1
  96. package/src/components/Autosuggest/_Autosuggest.scss +2 -2
  97. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +57 -56
  98. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +31 -25
  99. package/src/components/Breadcrumbs/Breadcrumbs.tsx +71 -73
  100. package/src/components/Breadcrumbs/BreadcrumbsTypes.tsx +6 -0
  101. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +100 -0
  102. package/src/components/Button/Button.stories.mdx +125 -138
  103. package/src/components/Button/Button.test.tsx +65 -11
  104. package/src/components/Button/Button.tsx +72 -68
  105. package/src/components/Button/ButtonTypes.tsx +4 -2
  106. package/src/components/Button/_Button.scss +7 -92
  107. package/src/components/Button/__snapshots__/Button.test.tsx.snap +58 -3
  108. package/src/components/Card/Card.stories.mdx +694 -0
  109. package/src/components/Card/Card.test.tsx +97 -102
  110. package/src/components/Card/Card.tsx +182 -31
  111. package/src/components/Card/CardTypes.tsx +21 -0
  112. package/src/components/Card/_Card.scss +234 -49
  113. package/src/components/{Card/Card.stories.tsx → CardEdition/CardEdition.stories.tsx} +32 -22
  114. package/src/components/CardEdition/CardEdition.test.tsx +395 -0
  115. package/src/components/CardEdition/CardEdition.tsx +60 -0
  116. package/src/components/CardEdition/_CardEdition.scss +138 -0
  117. package/src/components/Chakra/Box.stories.mdx +57 -0
  118. package/src/components/Chakra/Center.stories.mdx +99 -0
  119. package/src/components/Chakra/Grid.stories.mdx +79 -0
  120. package/src/components/Chakra/Stack.stories.mdx +93 -0
  121. package/src/components/Checkbox/Checkbox.stories.mdx +57 -35
  122. package/src/components/Checkbox/Checkbox.test.tsx +117 -147
  123. package/src/components/Checkbox/Checkbox.tsx +76 -50
  124. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +325 -0
  125. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +249 -0
  126. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +345 -0
  127. package/src/components/CheckboxGroup/CheckboxGroup.tsx +148 -0
  128. package/src/components/CheckboxGroup/CheckboxGroupLayoutTypes.tsx +4 -0
  129. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +1360 -0
  130. package/src/components/DatePicker/DatePicker.stories.mdx +284 -0
  131. package/src/components/DatePicker/DatePicker.test.tsx +657 -0
  132. package/src/components/DatePicker/DatePicker.tsx +396 -0
  133. package/src/components/DatePicker/DatePickerTypes.tsx +5 -0
  134. package/src/components/DatePicker/_DatePicker.scss +76 -0
  135. package/src/components/Form/Form.stories.mdx +130 -27
  136. package/src/components/Form/Form.test.tsx +78 -36
  137. package/src/components/Form/Form.tsx +53 -19
  138. package/src/components/Form/FormTypes.tsx +3 -0
  139. package/src/components/Form/__snapshots__/Form.test.tsx.snap +38 -0
  140. package/src/components/Grid/GridTypes.tsx +9 -0
  141. package/src/components/Grid/SimpleGrid.stories.mdx +275 -0
  142. package/src/components/Grid/SimpleGrid.test.tsx +66 -0
  143. package/src/components/Grid/SimpleGrid.tsx +37 -0
  144. package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +8 -0
  145. package/src/components/Heading/Heading.stories.mdx +63 -33
  146. package/src/components/Heading/Heading.test.tsx +24 -16
  147. package/src/components/Heading/Heading.tsx +54 -38
  148. package/src/components/Heading/{HeadingDisplaySizes.tsx → HeadingTypes.tsx} +9 -0
  149. package/src/components/HelperErrorText/HelperErrorText.stories.tsx +2 -1
  150. package/src/components/HelperErrorText/_HelperErrorText.scss +1 -1
  151. package/src/components/Hero/Hero.stories.mdx +195 -85
  152. package/src/components/Hero/Hero.test.tsx +544 -113
  153. package/src/components/Hero/Hero.tsx +80 -93
  154. package/src/components/Hero/HeroTypes.tsx +17 -5
  155. package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +307 -0
  156. package/src/components/HorizontalRule/HorizontalRule.stories.mdx +6 -1
  157. package/src/components/HorizontalRule/_HorizontalRule.scss +1 -1
  158. package/src/components/Icons/Icon.stories.mdx +89 -74
  159. package/src/components/Icons/Icon.test.tsx +30 -22
  160. package/src/components/Icons/Icon.tsx +63 -61
  161. package/src/components/Icons/IconSvgs.tsx +8 -0
  162. package/src/components/Icons/IconTypes.tsx +80 -60
  163. package/src/components/Image/Image.stories.tsx +2 -1
  164. package/src/components/Input/_Input.scss +2 -2
  165. package/src/components/Label/Label.stories.mdx +77 -0
  166. package/src/components/Label/Label.test.tsx +43 -12
  167. package/src/components/Label/Label.tsx +28 -45
  168. package/src/components/Label/__snapshots__/Label.test.tsx.snap +41 -0
  169. package/src/components/Link/Link.stories.mdx +47 -41
  170. package/src/components/Link/Link.test.tsx +33 -44
  171. package/src/components/Link/Link.tsx +114 -100
  172. package/src/components/List/List.stories.mdx +7 -3
  173. package/src/components/List/List.stories.tsx +14 -9
  174. package/src/components/List/List.test.tsx +12 -8
  175. package/src/components/List/List.tsx +9 -7
  176. package/src/components/List/_List.scss +3 -3
  177. package/src/components/Modal/Modal.stories.mdx +7 -3
  178. package/src/components/Modal/_Modal.scss +1 -1
  179. package/src/components/Notification/Notification.stories.mdx +99 -65
  180. package/src/components/Notification/Notification.test.tsx +3 -16
  181. package/src/components/Notification/Notification.tsx +12 -12
  182. package/src/components/Notification/_Notification.scss +5 -4
  183. package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +1 -1
  184. package/src/components/Pagination/Pagination.stories.mdx +7 -1
  185. package/src/components/Pagination/Pagination.test.tsx +16 -10
  186. package/src/components/Radio/Radio.stories.mdx +57 -46
  187. package/src/components/Radio/Radio.test.tsx +92 -138
  188. package/src/components/Radio/Radio.tsx +70 -69
  189. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +250 -0
  190. package/src/components/RadioGroup/RadioGroup.stories.mdx +247 -0
  191. package/src/components/RadioGroup/RadioGroup.test.tsx +327 -0
  192. package/src/components/RadioGroup/RadioGroup.tsx +154 -0
  193. package/src/components/RadioGroup/RadioGroupLayoutTypes.tsx +4 -0
  194. package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +1101 -0
  195. package/src/components/SearchBar/SearchBar.Test.tsx +151 -16
  196. package/src/components/SearchBar/SearchBar.stories.mdx +196 -224
  197. package/src/components/SearchBar/SearchBar.tsx +151 -46
  198. package/src/components/Select/Select.stories.mdx +193 -168
  199. package/src/components/Select/Select.test.tsx +129 -324
  200. package/src/components/Select/Select.tsx +120 -160
  201. package/src/components/Select/SelectTypes.tsx +4 -0
  202. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +18 -29
  203. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +7 -7
  204. package/src/components/SkeletonLoader/SkeletonLoader.tsx +4 -2
  205. package/src/components/SkeletonLoader/SkeletonLoaderTypes.tsx +2 -2
  206. package/src/components/SkeletonLoader/_SkeletonLoader.scss +3 -3
  207. package/src/components/StatusBadge/StatusBadge.stories.mdx +91 -0
  208. package/src/components/StatusBadge/StatusBadge.test.tsx +35 -7
  209. package/src/components/StatusBadge/StatusBadge.tsx +24 -25
  210. package/src/components/StatusBadge/StatusBadgeTypes.tsx +5 -0
  211. package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +28 -0
  212. package/src/components/StyleGuide/Bidirectionality.stories.mdx +112 -90
  213. package/src/components/StyleGuide/Buttons.stories.mdx +98 -100
  214. package/src/components/StyleGuide/Colors.stories.mdx +336 -0
  215. package/src/components/StyleGuide/Forms.stories.mdx +85 -0
  216. package/src/components/StyleGuide/Iconography.stories.mdx +86 -93
  217. package/src/components/StyleGuide/Spacing.stories.mdx +0 -1
  218. package/src/components/StyleGuide/Typography.stories.mdx +164 -166
  219. package/src/components/StyleGuide/UIDocCard.tsx +4 -4
  220. package/src/components/Tabs/Tabs.stories.mdx +221 -0
  221. package/src/components/Tabs/Tabs.test.tsx +264 -0
  222. package/src/components/Tabs/Tabs.tsx +220 -0
  223. package/src/components/Template/Template.stories.mdx +574 -0
  224. package/src/components/Template/Template.test.tsx +124 -0
  225. package/src/components/Template/Template.tsx +226 -0
  226. package/src/components/Text/Text.stories.mdx +70 -0
  227. package/src/components/Text/Text.test.tsx +63 -0
  228. package/src/components/Text/Text.tsx +55 -0
  229. package/src/components/Text/TextTypes.tsx +6 -0
  230. package/src/components/Text/__snapshots__/Text.test.tsx.snap +33 -0
  231. package/src/components/TextInput/TextInput.stories.mdx +90 -90
  232. package/src/components/TextInput/TextInput.test.tsx +103 -83
  233. package/src/components/TextInput/TextInput.tsx +108 -91
  234. package/src/components/TextInput/TextInputTypes.tsx +6 -0
  235. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +2 -1
  236. package/src/components/VideoPlayer/VideoPlayer.tsx +4 -2
  237. package/src/components/VideoPlayer/_VideoPlayer.scss +1 -1
  238. package/src/docs/Chakra.stories.mdx +341 -0
  239. package/src/docs/Intro.stories.mdx +31 -24
  240. package/src/index.ts +70 -5
  241. package/src/styles/01-colors/_colors-brand.scss +6 -4
  242. package/src/styles/01-colors/_colors-utility.scss +14 -15
  243. package/src/styles/03-space/_space-inline.scss +47 -7
  244. package/src/styles/03-space/_space-inset.scss +33 -5
  245. package/src/styles/03-space/_space-stack.scss +48 -8
  246. package/src/styles/base/_02-breakpoints.scss +5 -4
  247. package/src/styles/base/_04-base.scss +2 -1
  248. package/src/styles/base/_place-holder.scss +1 -1
  249. package/src/styles/base/_typography.scss +1 -29
  250. package/src/styles.scss +22 -25
  251. package/src/theme/components/accordion.ts +30 -0
  252. package/src/theme/components/breadcrumb.ts +77 -0
  253. package/src/theme/components/button.ts +125 -0
  254. package/src/theme/components/checkbox.ts +107 -0
  255. package/src/theme/components/customCheckboxGroup.ts +12 -0
  256. package/src/theme/components/customRadioGroup.ts +12 -0
  257. package/src/theme/components/global.ts +71 -0
  258. package/src/theme/components/globalMixins.ts +16 -0
  259. package/src/theme/components/heading.ts +72 -0
  260. package/src/theme/components/hero.ts +239 -0
  261. package/src/theme/components/icon.ts +79 -0
  262. package/src/theme/components/label.ts +17 -0
  263. package/src/theme/components/link.ts +47 -0
  264. package/src/theme/components/radio.ts +106 -0
  265. package/src/theme/components/searchBar.ts +21 -0
  266. package/src/theme/components/select.ts +50 -0
  267. package/src/theme/components/statusBadge.ts +27 -0
  268. package/src/theme/components/tabs.ts +79 -0
  269. package/src/theme/components/template.ts +114 -0
  270. package/src/theme/components/text.ts +31 -0
  271. package/src/theme/components/textInput.ts +61 -0
  272. package/src/theme/foundations/breakpoints.ts +24 -0
  273. package/src/theme/foundations/colors.ts +208 -0
  274. package/src/theme/foundations/global.ts +26 -0
  275. package/src/theme/foundations/shadows.ts +5 -0
  276. package/src/theme/foundations/spacing.ts +85 -0
  277. package/src/theme/foundations/typography.ts +35 -0
  278. package/src/theme/index.ts +88 -0
  279. package/src/theme/provider.tsx +9 -0
  280. package/src/theme/types.ts +1 -0
  281. package/src/utils/componentCategories.ts +56 -21
  282. package/src/utils/utils.ts +13 -0
  283. package/dist/components/Accordion/Accordion.stories.d.ts +0 -5
  284. package/dist/components/Card/Card.stories.d.ts +0 -27
  285. package/dist/components/Label/Label.stories.d.ts +0 -12
  286. package/dist/components/StatusBadge/StatusBadge.stories.d.ts +0 -8
  287. package/dist/components/Template/Template.stories.d.ts +0 -29
  288. package/src/components/Accordion/Accordion.stories.tsx +0 -65
  289. package/src/components/Accordion/_Accordion.scss +0 -81
  290. package/src/components/Breadcrumbs/_Breadcrumbs.scss +0 -97
  291. package/src/components/Checkbox/_Checkbox.scss +0 -97
  292. package/src/components/Form/_Form.scss +0 -28
  293. package/src/components/Heading/_Heading.scss +0 -163
  294. package/src/components/Hero/_Hero.scss +0 -256
  295. package/src/components/Icons/_Icons.scss +0 -116
  296. package/src/components/Label/Label.stories.tsx +0 -30
  297. package/src/components/Label/_Label.scss +0 -22
  298. package/src/components/Link/_Link.scss +0 -73
  299. package/src/components/Radio/_Radio.scss +0 -84
  300. package/src/components/SearchBar/_SearchBar.scss +0 -16
  301. package/src/components/Select/_Select.scss +0 -82
  302. package/src/components/StatusBadge/StatusBadge.stories.tsx +0 -33
  303. package/src/components/StatusBadge/_StatusBadge.scss +0 -23
  304. package/src/components/StyleGuide/Colors.stories.tsx +0 -288
  305. package/src/components/Template/Template.stories.tsx +0 -85
  306. package/src/components/Template/_Template.scss +0 -63
  307. package/src/components/TextInput/_TextInput.scss +0 -59
@@ -0,0 +1,1360 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Checkbox renders the UI snapshot correctly 1`] = `
4
+ <fieldset
5
+ className="css-0"
6
+ id="checkbox-group-column"
7
+ >
8
+ <legend
9
+ className=""
10
+ >
11
+ <span>
12
+ column
13
+ </span>
14
+ <span
15
+ className="css-0"
16
+ >
17
+ Optional
18
+ </span>
19
+ </legend>
20
+ <div
21
+ aria-label={null}
22
+ className="chakra-stack css-1wdv1uh"
23
+ data-testid="checkbox-group"
24
+ id="column"
25
+ >
26
+ <label
27
+ className="chakra-checkbox css-1uiwwan"
28
+ onClick={[Function]}
29
+ >
30
+ <input
31
+ aria-disabled={false}
32
+ aria-invalid={false}
33
+ checked={false}
34
+ className="chakra-checkbox__input"
35
+ disabled={false}
36
+ id="column-0"
37
+ name="column"
38
+ onBlur={[Function]}
39
+ onChange={[Function]}
40
+ onFocus={[Function]}
41
+ onKeyDown={[Function]}
42
+ onKeyUp={[Function]}
43
+ required={false}
44
+ style={
45
+ Object {
46
+ "border": "0px",
47
+ "clip": "rect(0px, 0px, 0px, 0px)",
48
+ "height": "1px",
49
+ "margin": "-1px",
50
+ "overflow": "hidden",
51
+ "padding": "0px",
52
+ "position": "absolute",
53
+ "whiteSpace": "nowrap",
54
+ "width": "1px",
55
+ }
56
+ }
57
+ type="checkbox"
58
+ value="2"
59
+ />
60
+ <span
61
+ aria-hidden={true}
62
+ className="chakra-checkbox__control css-dnty2r"
63
+ onMouseDown={[Function]}
64
+ onMouseEnter={[Function]}
65
+ onMouseLeave={[Function]}
66
+ onMouseUp={[Function]}
67
+ >
68
+ <svg
69
+ className="chakra-icon css-1vfv7ic"
70
+ focusable={false}
71
+ viewBox="0 0 24 24"
72
+ >
73
+ <path
74
+ 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"
75
+ fill="currentColor"
76
+ />
77
+ </svg>
78
+ </span>
79
+ <span
80
+ className="chakra-checkbox__label css-1oeb2oe"
81
+ onMouseDown={[Function]}
82
+ onTouchStart={[Function]}
83
+ >
84
+ Checkbox 2
85
+ </span>
86
+ </label>
87
+ <label
88
+ className="chakra-checkbox css-1uiwwan"
89
+ onClick={[Function]}
90
+ >
91
+ <input
92
+ aria-disabled={false}
93
+ aria-invalid={false}
94
+ checked={false}
95
+ className="chakra-checkbox__input"
96
+ disabled={false}
97
+ id="column-1"
98
+ name="column"
99
+ onBlur={[Function]}
100
+ onChange={[Function]}
101
+ onFocus={[Function]}
102
+ onKeyDown={[Function]}
103
+ onKeyUp={[Function]}
104
+ required={false}
105
+ style={
106
+ Object {
107
+ "border": "0px",
108
+ "clip": "rect(0px, 0px, 0px, 0px)",
109
+ "height": "1px",
110
+ "margin": "-1px",
111
+ "overflow": "hidden",
112
+ "padding": "0px",
113
+ "position": "absolute",
114
+ "whiteSpace": "nowrap",
115
+ "width": "1px",
116
+ }
117
+ }
118
+ type="checkbox"
119
+ value="3"
120
+ />
121
+ <span
122
+ aria-hidden={true}
123
+ className="chakra-checkbox__control css-dnty2r"
124
+ onMouseDown={[Function]}
125
+ onMouseEnter={[Function]}
126
+ onMouseLeave={[Function]}
127
+ onMouseUp={[Function]}
128
+ >
129
+ <svg
130
+ className="chakra-icon css-1vfv7ic"
131
+ focusable={false}
132
+ viewBox="0 0 24 24"
133
+ >
134
+ <path
135
+ 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"
136
+ fill="currentColor"
137
+ />
138
+ </svg>
139
+ </span>
140
+ <span
141
+ className="chakra-checkbox__label css-1oeb2oe"
142
+ onMouseDown={[Function]}
143
+ onTouchStart={[Function]}
144
+ >
145
+ Checkbox 3
146
+ </span>
147
+ </label>
148
+ </div>
149
+ </fieldset>
150
+ `;
151
+
152
+ exports[`Checkbox renders the UI snapshot correctly 2`] = `
153
+ <fieldset
154
+ className="css-0"
155
+ id="checkbox-group-row"
156
+ >
157
+ <legend
158
+ className=""
159
+ >
160
+ <span>
161
+ row
162
+ </span>
163
+ <span
164
+ className="css-0"
165
+ >
166
+ Optional
167
+ </span>
168
+ </legend>
169
+ <div
170
+ aria-label={null}
171
+ className="chakra-stack css-1objuxj"
172
+ data-testid="checkbox-group"
173
+ id="row"
174
+ >
175
+ <label
176
+ className="chakra-checkbox css-1uiwwan"
177
+ onClick={[Function]}
178
+ >
179
+ <input
180
+ aria-disabled={false}
181
+ aria-invalid={false}
182
+ checked={false}
183
+ className="chakra-checkbox__input"
184
+ disabled={false}
185
+ id="row-0"
186
+ name="row"
187
+ onBlur={[Function]}
188
+ onChange={[Function]}
189
+ onFocus={[Function]}
190
+ onKeyDown={[Function]}
191
+ onKeyUp={[Function]}
192
+ required={false}
193
+ style={
194
+ Object {
195
+ "border": "0px",
196
+ "clip": "rect(0px, 0px, 0px, 0px)",
197
+ "height": "1px",
198
+ "margin": "-1px",
199
+ "overflow": "hidden",
200
+ "padding": "0px",
201
+ "position": "absolute",
202
+ "whiteSpace": "nowrap",
203
+ "width": "1px",
204
+ }
205
+ }
206
+ type="checkbox"
207
+ value="2"
208
+ />
209
+ <span
210
+ aria-hidden={true}
211
+ className="chakra-checkbox__control css-dnty2r"
212
+ onMouseDown={[Function]}
213
+ onMouseEnter={[Function]}
214
+ onMouseLeave={[Function]}
215
+ onMouseUp={[Function]}
216
+ >
217
+ <svg
218
+ className="chakra-icon css-1vfv7ic"
219
+ focusable={false}
220
+ viewBox="0 0 24 24"
221
+ >
222
+ <path
223
+ 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"
224
+ fill="currentColor"
225
+ />
226
+ </svg>
227
+ </span>
228
+ <span
229
+ className="chakra-checkbox__label css-1oeb2oe"
230
+ onMouseDown={[Function]}
231
+ onTouchStart={[Function]}
232
+ >
233
+ Checkbox 2
234
+ </span>
235
+ </label>
236
+ <label
237
+ className="chakra-checkbox css-1uiwwan"
238
+ onClick={[Function]}
239
+ >
240
+ <input
241
+ aria-disabled={false}
242
+ aria-invalid={false}
243
+ checked={false}
244
+ className="chakra-checkbox__input"
245
+ disabled={false}
246
+ id="row-1"
247
+ name="row"
248
+ onBlur={[Function]}
249
+ onChange={[Function]}
250
+ onFocus={[Function]}
251
+ onKeyDown={[Function]}
252
+ onKeyUp={[Function]}
253
+ required={false}
254
+ style={
255
+ Object {
256
+ "border": "0px",
257
+ "clip": "rect(0px, 0px, 0px, 0px)",
258
+ "height": "1px",
259
+ "margin": "-1px",
260
+ "overflow": "hidden",
261
+ "padding": "0px",
262
+ "position": "absolute",
263
+ "whiteSpace": "nowrap",
264
+ "width": "1px",
265
+ }
266
+ }
267
+ type="checkbox"
268
+ value="3"
269
+ />
270
+ <span
271
+ aria-hidden={true}
272
+ className="chakra-checkbox__control css-dnty2r"
273
+ onMouseDown={[Function]}
274
+ onMouseEnter={[Function]}
275
+ onMouseLeave={[Function]}
276
+ onMouseUp={[Function]}
277
+ >
278
+ <svg
279
+ className="chakra-icon css-1vfv7ic"
280
+ focusable={false}
281
+ viewBox="0 0 24 24"
282
+ >
283
+ <path
284
+ 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"
285
+ fill="currentColor"
286
+ />
287
+ </svg>
288
+ </span>
289
+ <span
290
+ className="chakra-checkbox__label css-1oeb2oe"
291
+ onMouseDown={[Function]}
292
+ onTouchStart={[Function]}
293
+ >
294
+ Checkbox 3
295
+ </span>
296
+ </label>
297
+ </div>
298
+ </fieldset>
299
+ `;
300
+
301
+ exports[`Checkbox renders the UI snapshot correctly 3`] = `
302
+ <fieldset
303
+ className="css-0"
304
+ id="checkbox-group-noLabel"
305
+ >
306
+ <legend
307
+ className="sr-only"
308
+ >
309
+ <span>
310
+ no label
311
+ </span>
312
+ <span
313
+ className="css-0"
314
+ >
315
+ Optional
316
+ </span>
317
+ </legend>
318
+ <div
319
+ aria-label="no label"
320
+ className="chakra-stack css-1wdv1uh"
321
+ data-testid="checkbox-group"
322
+ id="noLabel"
323
+ >
324
+ <label
325
+ className="chakra-checkbox css-1uiwwan"
326
+ onClick={[Function]}
327
+ >
328
+ <input
329
+ aria-disabled={false}
330
+ aria-invalid={false}
331
+ checked={false}
332
+ className="chakra-checkbox__input"
333
+ disabled={false}
334
+ id="noLabel-0"
335
+ name="noLabel"
336
+ onBlur={[Function]}
337
+ onChange={[Function]}
338
+ onFocus={[Function]}
339
+ onKeyDown={[Function]}
340
+ onKeyUp={[Function]}
341
+ required={false}
342
+ style={
343
+ Object {
344
+ "border": "0px",
345
+ "clip": "rect(0px, 0px, 0px, 0px)",
346
+ "height": "1px",
347
+ "margin": "-1px",
348
+ "overflow": "hidden",
349
+ "padding": "0px",
350
+ "position": "absolute",
351
+ "whiteSpace": "nowrap",
352
+ "width": "1px",
353
+ }
354
+ }
355
+ type="checkbox"
356
+ value="2"
357
+ />
358
+ <span
359
+ aria-hidden={true}
360
+ className="chakra-checkbox__control css-dnty2r"
361
+ onMouseDown={[Function]}
362
+ onMouseEnter={[Function]}
363
+ onMouseLeave={[Function]}
364
+ onMouseUp={[Function]}
365
+ >
366
+ <svg
367
+ className="chakra-icon css-1vfv7ic"
368
+ focusable={false}
369
+ viewBox="0 0 24 24"
370
+ >
371
+ <path
372
+ 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"
373
+ fill="currentColor"
374
+ />
375
+ </svg>
376
+ </span>
377
+ <span
378
+ className="chakra-checkbox__label css-1oeb2oe"
379
+ onMouseDown={[Function]}
380
+ onTouchStart={[Function]}
381
+ >
382
+ Checkbox 2
383
+ </span>
384
+ </label>
385
+ <label
386
+ className="chakra-checkbox css-1uiwwan"
387
+ onClick={[Function]}
388
+ >
389
+ <input
390
+ aria-disabled={false}
391
+ aria-invalid={false}
392
+ checked={false}
393
+ className="chakra-checkbox__input"
394
+ disabled={false}
395
+ id="noLabel-1"
396
+ name="noLabel"
397
+ onBlur={[Function]}
398
+ onChange={[Function]}
399
+ onFocus={[Function]}
400
+ onKeyDown={[Function]}
401
+ onKeyUp={[Function]}
402
+ required={false}
403
+ style={
404
+ Object {
405
+ "border": "0px",
406
+ "clip": "rect(0px, 0px, 0px, 0px)",
407
+ "height": "1px",
408
+ "margin": "-1px",
409
+ "overflow": "hidden",
410
+ "padding": "0px",
411
+ "position": "absolute",
412
+ "whiteSpace": "nowrap",
413
+ "width": "1px",
414
+ }
415
+ }
416
+ type="checkbox"
417
+ value="3"
418
+ />
419
+ <span
420
+ aria-hidden={true}
421
+ className="chakra-checkbox__control css-dnty2r"
422
+ onMouseDown={[Function]}
423
+ onMouseEnter={[Function]}
424
+ onMouseLeave={[Function]}
425
+ onMouseUp={[Function]}
426
+ >
427
+ <svg
428
+ className="chakra-icon css-1vfv7ic"
429
+ focusable={false}
430
+ viewBox="0 0 24 24"
431
+ >
432
+ <path
433
+ 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"
434
+ fill="currentColor"
435
+ />
436
+ </svg>
437
+ </span>
438
+ <span
439
+ className="chakra-checkbox__label css-1oeb2oe"
440
+ onMouseDown={[Function]}
441
+ onTouchStart={[Function]}
442
+ >
443
+ Checkbox 3
444
+ </span>
445
+ </label>
446
+ </div>
447
+ </fieldset>
448
+ `;
449
+
450
+ exports[`Checkbox renders the UI snapshot correctly 4`] = `
451
+ <fieldset
452
+ className="css-0"
453
+ id="checkbox-group-helperText"
454
+ >
455
+ <legend
456
+ className=""
457
+ >
458
+ <span>
459
+ helperText
460
+ </span>
461
+ <span
462
+ className="css-0"
463
+ >
464
+ Optional
465
+ </span>
466
+ </legend>
467
+ <div
468
+ aria-label={null}
469
+ className="chakra-stack css-1wdv1uh"
470
+ data-testid="checkbox-group"
471
+ id="helperText"
472
+ >
473
+ <label
474
+ className="chakra-checkbox css-1uiwwan"
475
+ onClick={[Function]}
476
+ >
477
+ <input
478
+ aria-disabled={false}
479
+ aria-invalid={false}
480
+ checked={false}
481
+ className="chakra-checkbox__input"
482
+ disabled={false}
483
+ id="helperText-0"
484
+ name="helperText"
485
+ onBlur={[Function]}
486
+ onChange={[Function]}
487
+ onFocus={[Function]}
488
+ onKeyDown={[Function]}
489
+ onKeyUp={[Function]}
490
+ required={false}
491
+ style={
492
+ Object {
493
+ "border": "0px",
494
+ "clip": "rect(0px, 0px, 0px, 0px)",
495
+ "height": "1px",
496
+ "margin": "-1px",
497
+ "overflow": "hidden",
498
+ "padding": "0px",
499
+ "position": "absolute",
500
+ "whiteSpace": "nowrap",
501
+ "width": "1px",
502
+ }
503
+ }
504
+ type="checkbox"
505
+ value="2"
506
+ />
507
+ <span
508
+ aria-hidden={true}
509
+ className="chakra-checkbox__control css-dnty2r"
510
+ onMouseDown={[Function]}
511
+ onMouseEnter={[Function]}
512
+ onMouseLeave={[Function]}
513
+ onMouseUp={[Function]}
514
+ >
515
+ <svg
516
+ className="chakra-icon css-1vfv7ic"
517
+ focusable={false}
518
+ viewBox="0 0 24 24"
519
+ >
520
+ <path
521
+ 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"
522
+ fill="currentColor"
523
+ />
524
+ </svg>
525
+ </span>
526
+ <span
527
+ className="chakra-checkbox__label css-1oeb2oe"
528
+ onMouseDown={[Function]}
529
+ onTouchStart={[Function]}
530
+ >
531
+ Checkbox 2
532
+ </span>
533
+ </label>
534
+ <label
535
+ className="chakra-checkbox css-1uiwwan"
536
+ onClick={[Function]}
537
+ >
538
+ <input
539
+ aria-disabled={false}
540
+ aria-invalid={false}
541
+ checked={false}
542
+ className="chakra-checkbox__input"
543
+ disabled={false}
544
+ id="helperText-1"
545
+ name="helperText"
546
+ onBlur={[Function]}
547
+ onChange={[Function]}
548
+ onFocus={[Function]}
549
+ onKeyDown={[Function]}
550
+ onKeyUp={[Function]}
551
+ required={false}
552
+ style={
553
+ Object {
554
+ "border": "0px",
555
+ "clip": "rect(0px, 0px, 0px, 0px)",
556
+ "height": "1px",
557
+ "margin": "-1px",
558
+ "overflow": "hidden",
559
+ "padding": "0px",
560
+ "position": "absolute",
561
+ "whiteSpace": "nowrap",
562
+ "width": "1px",
563
+ }
564
+ }
565
+ type="checkbox"
566
+ value="3"
567
+ />
568
+ <span
569
+ aria-hidden={true}
570
+ className="chakra-checkbox__control css-dnty2r"
571
+ onMouseDown={[Function]}
572
+ onMouseEnter={[Function]}
573
+ onMouseLeave={[Function]}
574
+ onMouseUp={[Function]}
575
+ >
576
+ <svg
577
+ className="chakra-icon css-1vfv7ic"
578
+ focusable={false}
579
+ viewBox="0 0 24 24"
580
+ >
581
+ <path
582
+ 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"
583
+ fill="currentColor"
584
+ />
585
+ </svg>
586
+ </span>
587
+ <span
588
+ className="chakra-checkbox__label css-1oeb2oe"
589
+ onMouseDown={[Function]}
590
+ onTouchStart={[Function]}
591
+ >
592
+ Checkbox 3
593
+ </span>
594
+ </label>
595
+ </div>
596
+ <div
597
+ className="css-0"
598
+ >
599
+ <div
600
+ aria-atomic={true}
601
+ aria-live="off"
602
+ className="helper-text"
603
+ >
604
+ helper text
605
+ </div>
606
+ </div>
607
+ </fieldset>
608
+ `;
609
+
610
+ exports[`Checkbox renders the UI snapshot correctly 5`] = `
611
+ <fieldset
612
+ className="css-0"
613
+ id="checkbox-group-invalidText"
614
+ >
615
+ <legend
616
+ className=""
617
+ >
618
+ <span>
619
+ invalidText
620
+ </span>
621
+ <span
622
+ className="css-0"
623
+ >
624
+ Optional
625
+ </span>
626
+ </legend>
627
+ <div
628
+ aria-label={null}
629
+ className="chakra-stack css-1wdv1uh"
630
+ data-testid="checkbox-group"
631
+ id="invalidText"
632
+ >
633
+ <label
634
+ className="chakra-checkbox css-1uiwwan"
635
+ onClick={[Function]}
636
+ >
637
+ <input
638
+ aria-disabled={false}
639
+ aria-invalid={false}
640
+ checked={false}
641
+ className="chakra-checkbox__input"
642
+ disabled={false}
643
+ id="invalidText-0"
644
+ name="invalidText"
645
+ onBlur={[Function]}
646
+ onChange={[Function]}
647
+ onFocus={[Function]}
648
+ onKeyDown={[Function]}
649
+ onKeyUp={[Function]}
650
+ required={false}
651
+ style={
652
+ Object {
653
+ "border": "0px",
654
+ "clip": "rect(0px, 0px, 0px, 0px)",
655
+ "height": "1px",
656
+ "margin": "-1px",
657
+ "overflow": "hidden",
658
+ "padding": "0px",
659
+ "position": "absolute",
660
+ "whiteSpace": "nowrap",
661
+ "width": "1px",
662
+ }
663
+ }
664
+ type="checkbox"
665
+ value="2"
666
+ />
667
+ <span
668
+ aria-hidden={true}
669
+ className="chakra-checkbox__control css-dnty2r"
670
+ onMouseDown={[Function]}
671
+ onMouseEnter={[Function]}
672
+ onMouseLeave={[Function]}
673
+ onMouseUp={[Function]}
674
+ >
675
+ <svg
676
+ className="chakra-icon css-1vfv7ic"
677
+ focusable={false}
678
+ viewBox="0 0 24 24"
679
+ >
680
+ <path
681
+ 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"
682
+ fill="currentColor"
683
+ />
684
+ </svg>
685
+ </span>
686
+ <span
687
+ className="chakra-checkbox__label css-1oeb2oe"
688
+ onMouseDown={[Function]}
689
+ onTouchStart={[Function]}
690
+ >
691
+ Checkbox 2
692
+ </span>
693
+ </label>
694
+ <label
695
+ className="chakra-checkbox css-1uiwwan"
696
+ onClick={[Function]}
697
+ >
698
+ <input
699
+ aria-disabled={false}
700
+ aria-invalid={false}
701
+ checked={false}
702
+ className="chakra-checkbox__input"
703
+ disabled={false}
704
+ id="invalidText-1"
705
+ name="invalidText"
706
+ onBlur={[Function]}
707
+ onChange={[Function]}
708
+ onFocus={[Function]}
709
+ onKeyDown={[Function]}
710
+ onKeyUp={[Function]}
711
+ required={false}
712
+ style={
713
+ Object {
714
+ "border": "0px",
715
+ "clip": "rect(0px, 0px, 0px, 0px)",
716
+ "height": "1px",
717
+ "margin": "-1px",
718
+ "overflow": "hidden",
719
+ "padding": "0px",
720
+ "position": "absolute",
721
+ "whiteSpace": "nowrap",
722
+ "width": "1px",
723
+ }
724
+ }
725
+ type="checkbox"
726
+ value="3"
727
+ />
728
+ <span
729
+ aria-hidden={true}
730
+ className="chakra-checkbox__control css-dnty2r"
731
+ onMouseDown={[Function]}
732
+ onMouseEnter={[Function]}
733
+ onMouseLeave={[Function]}
734
+ onMouseUp={[Function]}
735
+ >
736
+ <svg
737
+ className="chakra-icon css-1vfv7ic"
738
+ focusable={false}
739
+ viewBox="0 0 24 24"
740
+ >
741
+ <path
742
+ 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"
743
+ fill="currentColor"
744
+ />
745
+ </svg>
746
+ </span>
747
+ <span
748
+ className="chakra-checkbox__label css-1oeb2oe"
749
+ onMouseDown={[Function]}
750
+ onTouchStart={[Function]}
751
+ >
752
+ Checkbox 3
753
+ </span>
754
+ </label>
755
+ </div>
756
+ </fieldset>
757
+ `;
758
+
759
+ exports[`Checkbox renders the UI snapshot correctly 6`] = `
760
+ <fieldset
761
+ className="css-0"
762
+ id="checkbox-group-optReq"
763
+ >
764
+ <legend
765
+ className=""
766
+ >
767
+ <span>
768
+ no optional or required label
769
+ </span>
770
+ </legend>
771
+ <div
772
+ aria-label={null}
773
+ className="chakra-stack css-1wdv1uh"
774
+ data-testid="checkbox-group"
775
+ id="optReq"
776
+ >
777
+ <label
778
+ className="chakra-checkbox css-1uiwwan"
779
+ onClick={[Function]}
780
+ >
781
+ <input
782
+ aria-disabled={false}
783
+ aria-invalid={false}
784
+ checked={false}
785
+ className="chakra-checkbox__input"
786
+ disabled={false}
787
+ id="optReq-0"
788
+ name="optReq"
789
+ onBlur={[Function]}
790
+ onChange={[Function]}
791
+ onFocus={[Function]}
792
+ onKeyDown={[Function]}
793
+ onKeyUp={[Function]}
794
+ required={false}
795
+ style={
796
+ Object {
797
+ "border": "0px",
798
+ "clip": "rect(0px, 0px, 0px, 0px)",
799
+ "height": "1px",
800
+ "margin": "-1px",
801
+ "overflow": "hidden",
802
+ "padding": "0px",
803
+ "position": "absolute",
804
+ "whiteSpace": "nowrap",
805
+ "width": "1px",
806
+ }
807
+ }
808
+ type="checkbox"
809
+ value="2"
810
+ />
811
+ <span
812
+ aria-hidden={true}
813
+ className="chakra-checkbox__control css-dnty2r"
814
+ onMouseDown={[Function]}
815
+ onMouseEnter={[Function]}
816
+ onMouseLeave={[Function]}
817
+ onMouseUp={[Function]}
818
+ >
819
+ <svg
820
+ className="chakra-icon css-1vfv7ic"
821
+ focusable={false}
822
+ viewBox="0 0 24 24"
823
+ >
824
+ <path
825
+ 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"
826
+ fill="currentColor"
827
+ />
828
+ </svg>
829
+ </span>
830
+ <span
831
+ className="chakra-checkbox__label css-1oeb2oe"
832
+ onMouseDown={[Function]}
833
+ onTouchStart={[Function]}
834
+ >
835
+ Checkbox 2
836
+ </span>
837
+ </label>
838
+ <label
839
+ className="chakra-checkbox css-1uiwwan"
840
+ onClick={[Function]}
841
+ >
842
+ <input
843
+ aria-disabled={false}
844
+ aria-invalid={false}
845
+ checked={false}
846
+ className="chakra-checkbox__input"
847
+ disabled={false}
848
+ id="optReq-1"
849
+ name="optReq"
850
+ onBlur={[Function]}
851
+ onChange={[Function]}
852
+ onFocus={[Function]}
853
+ onKeyDown={[Function]}
854
+ onKeyUp={[Function]}
855
+ required={false}
856
+ style={
857
+ Object {
858
+ "border": "0px",
859
+ "clip": "rect(0px, 0px, 0px, 0px)",
860
+ "height": "1px",
861
+ "margin": "-1px",
862
+ "overflow": "hidden",
863
+ "padding": "0px",
864
+ "position": "absolute",
865
+ "whiteSpace": "nowrap",
866
+ "width": "1px",
867
+ }
868
+ }
869
+ type="checkbox"
870
+ value="3"
871
+ />
872
+ <span
873
+ aria-hidden={true}
874
+ className="chakra-checkbox__control css-dnty2r"
875
+ onMouseDown={[Function]}
876
+ onMouseEnter={[Function]}
877
+ onMouseLeave={[Function]}
878
+ onMouseUp={[Function]}
879
+ >
880
+ <svg
881
+ className="chakra-icon css-1vfv7ic"
882
+ focusable={false}
883
+ viewBox="0 0 24 24"
884
+ >
885
+ <path
886
+ 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"
887
+ fill="currentColor"
888
+ />
889
+ </svg>
890
+ </span>
891
+ <span
892
+ className="chakra-checkbox__label css-1oeb2oe"
893
+ onMouseDown={[Function]}
894
+ onTouchStart={[Function]}
895
+ >
896
+ Checkbox 3
897
+ </span>
898
+ </label>
899
+ </div>
900
+ </fieldset>
901
+ `;
902
+
903
+ exports[`Checkbox renders the UI snapshot correctly 7`] = `
904
+ <fieldset
905
+ className="css-0"
906
+ id="checkbox-group-required"
907
+ >
908
+ <legend
909
+ className=""
910
+ >
911
+ <span>
912
+ required
913
+ </span>
914
+ <span
915
+ className="css-0"
916
+ >
917
+ Required
918
+ </span>
919
+ </legend>
920
+ <div
921
+ aria-label={null}
922
+ className="chakra-stack css-1wdv1uh"
923
+ data-testid="checkbox-group"
924
+ id="required"
925
+ >
926
+ <label
927
+ className="chakra-checkbox css-1uiwwan"
928
+ onClick={[Function]}
929
+ >
930
+ <input
931
+ aria-disabled={false}
932
+ aria-invalid={false}
933
+ checked={false}
934
+ className="chakra-checkbox__input"
935
+ disabled={false}
936
+ id="required-0"
937
+ name="required"
938
+ onBlur={[Function]}
939
+ onChange={[Function]}
940
+ onFocus={[Function]}
941
+ onKeyDown={[Function]}
942
+ onKeyUp={[Function]}
943
+ required={true}
944
+ style={
945
+ Object {
946
+ "border": "0px",
947
+ "clip": "rect(0px, 0px, 0px, 0px)",
948
+ "height": "1px",
949
+ "margin": "-1px",
950
+ "overflow": "hidden",
951
+ "padding": "0px",
952
+ "position": "absolute",
953
+ "whiteSpace": "nowrap",
954
+ "width": "1px",
955
+ }
956
+ }
957
+ type="checkbox"
958
+ value="2"
959
+ />
960
+ <span
961
+ aria-hidden={true}
962
+ className="chakra-checkbox__control css-dnty2r"
963
+ onMouseDown={[Function]}
964
+ onMouseEnter={[Function]}
965
+ onMouseLeave={[Function]}
966
+ onMouseUp={[Function]}
967
+ >
968
+ <svg
969
+ className="chakra-icon css-1vfv7ic"
970
+ focusable={false}
971
+ viewBox="0 0 24 24"
972
+ >
973
+ <path
974
+ 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"
975
+ fill="currentColor"
976
+ />
977
+ </svg>
978
+ </span>
979
+ <span
980
+ className="chakra-checkbox__label css-1oeb2oe"
981
+ onMouseDown={[Function]}
982
+ onTouchStart={[Function]}
983
+ >
984
+ Checkbox 2
985
+ </span>
986
+ </label>
987
+ <label
988
+ className="chakra-checkbox css-1uiwwan"
989
+ onClick={[Function]}
990
+ >
991
+ <input
992
+ aria-disabled={false}
993
+ aria-invalid={false}
994
+ checked={false}
995
+ className="chakra-checkbox__input"
996
+ disabled={false}
997
+ id="required-1"
998
+ name="required"
999
+ onBlur={[Function]}
1000
+ onChange={[Function]}
1001
+ onFocus={[Function]}
1002
+ onKeyDown={[Function]}
1003
+ onKeyUp={[Function]}
1004
+ required={true}
1005
+ style={
1006
+ Object {
1007
+ "border": "0px",
1008
+ "clip": "rect(0px, 0px, 0px, 0px)",
1009
+ "height": "1px",
1010
+ "margin": "-1px",
1011
+ "overflow": "hidden",
1012
+ "padding": "0px",
1013
+ "position": "absolute",
1014
+ "whiteSpace": "nowrap",
1015
+ "width": "1px",
1016
+ }
1017
+ }
1018
+ type="checkbox"
1019
+ value="3"
1020
+ />
1021
+ <span
1022
+ aria-hidden={true}
1023
+ className="chakra-checkbox__control css-dnty2r"
1024
+ onMouseDown={[Function]}
1025
+ onMouseEnter={[Function]}
1026
+ onMouseLeave={[Function]}
1027
+ onMouseUp={[Function]}
1028
+ >
1029
+ <svg
1030
+ className="chakra-icon css-1vfv7ic"
1031
+ focusable={false}
1032
+ viewBox="0 0 24 24"
1033
+ >
1034
+ <path
1035
+ 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"
1036
+ fill="currentColor"
1037
+ />
1038
+ </svg>
1039
+ </span>
1040
+ <span
1041
+ className="chakra-checkbox__label css-1oeb2oe"
1042
+ onMouseDown={[Function]}
1043
+ onTouchStart={[Function]}
1044
+ >
1045
+ Checkbox 3
1046
+ </span>
1047
+ </label>
1048
+ </div>
1049
+ </fieldset>
1050
+ `;
1051
+
1052
+ exports[`Checkbox renders the UI snapshot correctly 8`] = `
1053
+ <fieldset
1054
+ className="css-0"
1055
+ id="checkbox-group-invalid"
1056
+ >
1057
+ <legend
1058
+ className=""
1059
+ >
1060
+ <span>
1061
+ invalid
1062
+ </span>
1063
+ <span
1064
+ className="css-0"
1065
+ >
1066
+ Optional
1067
+ </span>
1068
+ </legend>
1069
+ <div
1070
+ aria-label={null}
1071
+ className="chakra-stack css-1wdv1uh"
1072
+ data-testid="checkbox-group"
1073
+ id="invalid"
1074
+ >
1075
+ <label
1076
+ className="chakra-checkbox css-1uiwwan"
1077
+ data-invalid=""
1078
+ onClick={[Function]}
1079
+ >
1080
+ <input
1081
+ aria-disabled={false}
1082
+ aria-invalid={true}
1083
+ checked={false}
1084
+ className="chakra-checkbox__input"
1085
+ disabled={false}
1086
+ id="invalid-0"
1087
+ name="invalid"
1088
+ onBlur={[Function]}
1089
+ onChange={[Function]}
1090
+ onFocus={[Function]}
1091
+ onKeyDown={[Function]}
1092
+ onKeyUp={[Function]}
1093
+ required={false}
1094
+ style={
1095
+ Object {
1096
+ "border": "0px",
1097
+ "clip": "rect(0px, 0px, 0px, 0px)",
1098
+ "height": "1px",
1099
+ "margin": "-1px",
1100
+ "overflow": "hidden",
1101
+ "padding": "0px",
1102
+ "position": "absolute",
1103
+ "whiteSpace": "nowrap",
1104
+ "width": "1px",
1105
+ }
1106
+ }
1107
+ type="checkbox"
1108
+ value="2"
1109
+ />
1110
+ <span
1111
+ aria-hidden={true}
1112
+ className="chakra-checkbox__control css-dnty2r"
1113
+ data-invalid=""
1114
+ onMouseDown={[Function]}
1115
+ onMouseEnter={[Function]}
1116
+ onMouseLeave={[Function]}
1117
+ onMouseUp={[Function]}
1118
+ >
1119
+ <svg
1120
+ className="chakra-icon css-1vfv7ic"
1121
+ focusable={false}
1122
+ viewBox="0 0 24 24"
1123
+ >
1124
+ <path
1125
+ 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"
1126
+ fill="currentColor"
1127
+ />
1128
+ </svg>
1129
+ </span>
1130
+ <span
1131
+ className="chakra-checkbox__label css-1oeb2oe"
1132
+ data-invalid=""
1133
+ onMouseDown={[Function]}
1134
+ onTouchStart={[Function]}
1135
+ >
1136
+ Checkbox 2
1137
+ </span>
1138
+ </label>
1139
+ <label
1140
+ className="chakra-checkbox css-1uiwwan"
1141
+ data-invalid=""
1142
+ onClick={[Function]}
1143
+ >
1144
+ <input
1145
+ aria-disabled={false}
1146
+ aria-invalid={true}
1147
+ checked={false}
1148
+ className="chakra-checkbox__input"
1149
+ disabled={false}
1150
+ id="invalid-1"
1151
+ name="invalid"
1152
+ onBlur={[Function]}
1153
+ onChange={[Function]}
1154
+ onFocus={[Function]}
1155
+ onKeyDown={[Function]}
1156
+ onKeyUp={[Function]}
1157
+ required={false}
1158
+ style={
1159
+ Object {
1160
+ "border": "0px",
1161
+ "clip": "rect(0px, 0px, 0px, 0px)",
1162
+ "height": "1px",
1163
+ "margin": "-1px",
1164
+ "overflow": "hidden",
1165
+ "padding": "0px",
1166
+ "position": "absolute",
1167
+ "whiteSpace": "nowrap",
1168
+ "width": "1px",
1169
+ }
1170
+ }
1171
+ type="checkbox"
1172
+ value="3"
1173
+ />
1174
+ <span
1175
+ aria-hidden={true}
1176
+ className="chakra-checkbox__control css-dnty2r"
1177
+ data-invalid=""
1178
+ onMouseDown={[Function]}
1179
+ onMouseEnter={[Function]}
1180
+ onMouseLeave={[Function]}
1181
+ onMouseUp={[Function]}
1182
+ >
1183
+ <svg
1184
+ className="chakra-icon css-1vfv7ic"
1185
+ focusable={false}
1186
+ viewBox="0 0 24 24"
1187
+ >
1188
+ <path
1189
+ 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"
1190
+ fill="currentColor"
1191
+ />
1192
+ </svg>
1193
+ </span>
1194
+ <span
1195
+ className="chakra-checkbox__label css-1oeb2oe"
1196
+ data-invalid=""
1197
+ onMouseDown={[Function]}
1198
+ onTouchStart={[Function]}
1199
+ >
1200
+ Checkbox 3
1201
+ </span>
1202
+ </label>
1203
+ </div>
1204
+ </fieldset>
1205
+ `;
1206
+
1207
+ exports[`Checkbox renders the UI snapshot correctly 9`] = `
1208
+ <fieldset
1209
+ className="css-0"
1210
+ id="checkbox-group-disabled"
1211
+ >
1212
+ <legend
1213
+ className=""
1214
+ >
1215
+ <span>
1216
+ disabled
1217
+ </span>
1218
+ <span
1219
+ className="css-0"
1220
+ >
1221
+ Optional
1222
+ </span>
1223
+ </legend>
1224
+ <div
1225
+ aria-label={null}
1226
+ className="chakra-stack css-1wdv1uh"
1227
+ data-testid="checkbox-group"
1228
+ id="disabled"
1229
+ >
1230
+ <label
1231
+ className="chakra-checkbox css-1uiwwan"
1232
+ data-disabled=""
1233
+ onClick={[Function]}
1234
+ >
1235
+ <input
1236
+ aria-disabled={true}
1237
+ aria-invalid={false}
1238
+ checked={false}
1239
+ className="chakra-checkbox__input"
1240
+ disabled={true}
1241
+ id="disabled-0"
1242
+ name="disabled"
1243
+ onBlur={[Function]}
1244
+ onChange={[Function]}
1245
+ onFocus={[Function]}
1246
+ onKeyDown={[Function]}
1247
+ onKeyUp={[Function]}
1248
+ required={false}
1249
+ style={
1250
+ Object {
1251
+ "border": "0px",
1252
+ "clip": "rect(0px, 0px, 0px, 0px)",
1253
+ "height": "1px",
1254
+ "margin": "-1px",
1255
+ "overflow": "hidden",
1256
+ "padding": "0px",
1257
+ "position": "absolute",
1258
+ "whiteSpace": "nowrap",
1259
+ "width": "1px",
1260
+ }
1261
+ }
1262
+ type="checkbox"
1263
+ value="2"
1264
+ />
1265
+ <span
1266
+ aria-hidden={true}
1267
+ className="chakra-checkbox__control css-dnty2r"
1268
+ data-disabled=""
1269
+ onMouseDown={[Function]}
1270
+ onMouseEnter={[Function]}
1271
+ onMouseLeave={[Function]}
1272
+ onMouseUp={[Function]}
1273
+ >
1274
+ <svg
1275
+ className="chakra-icon css-1vfv7ic"
1276
+ focusable={false}
1277
+ viewBox="0 0 24 24"
1278
+ >
1279
+ <path
1280
+ 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"
1281
+ fill="currentColor"
1282
+ />
1283
+ </svg>
1284
+ </span>
1285
+ <span
1286
+ className="chakra-checkbox__label css-1oeb2oe"
1287
+ data-disabled=""
1288
+ onMouseDown={[Function]}
1289
+ onTouchStart={[Function]}
1290
+ >
1291
+ Checkbox 2
1292
+ </span>
1293
+ </label>
1294
+ <label
1295
+ className="chakra-checkbox css-1uiwwan"
1296
+ data-disabled=""
1297
+ onClick={[Function]}
1298
+ >
1299
+ <input
1300
+ aria-disabled={true}
1301
+ aria-invalid={false}
1302
+ checked={false}
1303
+ className="chakra-checkbox__input"
1304
+ disabled={true}
1305
+ id="disabled-1"
1306
+ name="disabled"
1307
+ onBlur={[Function]}
1308
+ onChange={[Function]}
1309
+ onFocus={[Function]}
1310
+ onKeyDown={[Function]}
1311
+ onKeyUp={[Function]}
1312
+ required={false}
1313
+ style={
1314
+ Object {
1315
+ "border": "0px",
1316
+ "clip": "rect(0px, 0px, 0px, 0px)",
1317
+ "height": "1px",
1318
+ "margin": "-1px",
1319
+ "overflow": "hidden",
1320
+ "padding": "0px",
1321
+ "position": "absolute",
1322
+ "whiteSpace": "nowrap",
1323
+ "width": "1px",
1324
+ }
1325
+ }
1326
+ type="checkbox"
1327
+ value="3"
1328
+ />
1329
+ <span
1330
+ aria-hidden={true}
1331
+ className="chakra-checkbox__control css-dnty2r"
1332
+ data-disabled=""
1333
+ onMouseDown={[Function]}
1334
+ onMouseEnter={[Function]}
1335
+ onMouseLeave={[Function]}
1336
+ onMouseUp={[Function]}
1337
+ >
1338
+ <svg
1339
+ className="chakra-icon css-1vfv7ic"
1340
+ focusable={false}
1341
+ viewBox="0 0 24 24"
1342
+ >
1343
+ <path
1344
+ 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"
1345
+ fill="currentColor"
1346
+ />
1347
+ </svg>
1348
+ </span>
1349
+ <span
1350
+ className="chakra-checkbox__label css-1oeb2oe"
1351
+ data-disabled=""
1352
+ onMouseDown={[Function]}
1353
+ onTouchStart={[Function]}
1354
+ >
1355
+ Checkbox 3
1356
+ </span>
1357
+ </label>
1358
+ </div>
1359
+ </fieldset>
1360
+ `;