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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) hide show
  1. package/CHANGELOG.md +1428 -3
  2. package/README.md +391 -3
  3. package/dist/__tests__/fileMock.d.ts +4 -0
  4. package/dist/__tests__/setup.d.ts +2 -0
  5. package/{lib/stories/0-Welcome.stories.d.ts → dist/__tests__/utils/utils.test.d.ts} +1 -1
  6. package/dist/components/Accordion/Accordion.d.ts +21 -0
  7. package/dist/components/Autosuggest/Autosuggest.stories.d.ts +4 -0
  8. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
  9. package/dist/components/Button/Button.d.ts +25 -0
  10. package/dist/components/ButtonGroup/ButtonGroup.d.ts +22 -0
  11. package/dist/components/Card/Card.d.ts +49 -0
  12. package/dist/components/Checkbox/Checkbox.d.ts +47 -0
  13. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +49 -0
  14. package/dist/components/ComponentWrapper/ComponentWrapper.d.ts +29 -0
  15. package/dist/components/DatePicker/DatePicker.d.ts +81 -0
  16. package/dist/components/Fieldset/Fieldset.d.ts +22 -0
  17. package/dist/components/Form/Form.d.ts +29 -0
  18. package/dist/components/Grid/SimpleGrid.d.ts +17 -0
  19. package/dist/components/Heading/Heading.d.ts +27 -0
  20. package/dist/components/HelperErrorText/HelperErrorText.d.ts +29 -0
  21. package/dist/components/Hero/Hero.d.ts +40 -0
  22. package/dist/components/HorizontalRule/HorizontalRule.d.ts +11 -0
  23. package/dist/components/Icons/Icon.d.ts +37 -0
  24. package/dist/components/Icons/IconSvgs.d.ts +33 -0
  25. package/dist/components/Image/Image.d.ts +61 -0
  26. package/dist/components/Label/Label.d.ts +20 -0
  27. package/dist/components/Link/Link.d.ts +20 -0
  28. package/dist/components/List/List.d.ts +35 -0
  29. package/dist/components/Logo/Logo.d.ts +26 -0
  30. package/dist/components/Logo/LogoSvgs.d.ts +46 -0
  31. package/dist/components/Modal/Modal.d.ts +33 -0
  32. package/dist/components/Notification/Notification.d.ts +50 -0
  33. package/dist/components/Pagination/Pagination.d.ts +27 -0
  34. package/dist/components/Placeholder/Placeholder.d.ts +10 -0
  35. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +30 -0
  36. package/dist/components/Radio/Radio.d.ts +43 -0
  37. package/dist/components/RadioGroup/RadioGroup.d.ts +51 -0
  38. package/dist/components/SearchBar/SearchBar.d.ts +61 -0
  39. package/dist/components/Select/Select.d.ts +57 -0
  40. package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +39 -0
  41. package/dist/components/SkipNavigation/SkipNavigation.d.ts +17 -0
  42. package/dist/components/Slider/Slider.d.ts +60 -0
  43. package/dist/components/StatusBadge/StatusBadge.d.ts +16 -0
  44. package/dist/components/StructuredContent/StructuredContent.d.ts +28 -0
  45. package/dist/components/StyleGuide/ColorCard.d.ts +12 -0
  46. package/dist/components/Table/Table.d.ts +29 -0
  47. package/dist/components/Tabs/Tabs.d.ts +26 -0
  48. package/dist/components/Template/Template.d.ts +126 -0
  49. package/dist/components/Text/Text.d.ts +16 -0
  50. package/dist/components/TextInput/TextInput.d.ts +78 -0
  51. package/dist/components/Toggle/Toggle.d.ts +42 -0
  52. package/dist/components/VideoPlayer/VideoPlayer.d.ts +38 -0
  53. package/dist/design-system-react-components.cjs.development.js +11305 -0
  54. package/dist/design-system-react-components.cjs.development.js.map +1 -0
  55. package/dist/design-system-react-components.cjs.production.min.js +2 -0
  56. package/dist/design-system-react-components.cjs.production.min.js.map +1 -0
  57. package/dist/design-system-react-components.esm.js +11150 -0
  58. package/dist/design-system-react-components.esm.js.map +1 -0
  59. package/dist/helpers/types.d.ts +1 -0
  60. package/dist/hooks/tests/useCarouselStyles.test.d.ts +1 -0
  61. package/dist/hooks/useCarouselStyles.d.ts +17 -0
  62. package/dist/hooks/useNYPLTheme.d.ts +66 -0
  63. package/dist/hooks/useWindowSize.d.ts +10 -0
  64. package/dist/index.d.ts +48 -0
  65. package/dist/index.js +8 -0
  66. package/dist/resources.scss +386 -0
  67. package/dist/styles.css +3 -0
  68. package/dist/theme/components/accordion.d.ts +20 -0
  69. package/dist/theme/components/breadcrumb.d.ts +105 -0
  70. package/dist/theme/components/button.d.ts +120 -0
  71. package/dist/theme/components/buttonGroup.d.ts +11 -0
  72. package/dist/theme/components/card.d.ts +381 -0
  73. package/dist/theme/components/checkbox.d.ts +95 -0
  74. package/dist/theme/components/checkboxGroup.d.ts +14 -0
  75. package/dist/theme/components/componentWrapper.d.ts +12 -0
  76. package/dist/theme/components/customTable.d.ts +136 -0
  77. package/dist/theme/components/datePicker.d.ts +16 -0
  78. package/dist/theme/components/fieldset.d.ts +20 -0
  79. package/dist/theme/components/global.d.ts +73 -0
  80. package/dist/theme/components/globalMixins.d.ts +23 -0
  81. package/dist/theme/components/heading.d.ts +160 -0
  82. package/dist/theme/components/helperErrorText.d.ts +12 -0
  83. package/dist/theme/components/hero.d.ts +499 -0
  84. package/dist/theme/components/horizontalRule.d.ts +15 -0
  85. package/dist/theme/components/icon.d.ts +47755 -0
  86. package/dist/theme/components/image.d.ts +590 -0
  87. package/dist/theme/components/label.d.ts +18 -0
  88. package/dist/theme/components/link.d.ts +62 -0
  89. package/dist/theme/components/list.d.ts +182 -0
  90. package/dist/theme/components/logo.d.ts +477 -0
  91. package/dist/theme/components/notification.d.ts +95 -0
  92. package/dist/theme/components/pagination.d.ts +16 -0
  93. package/dist/theme/components/progressIndicator.d.ts +52 -0
  94. package/dist/theme/components/radio.d.ts +99 -0
  95. package/dist/theme/components/radioGroup.d.ts +14 -0
  96. package/dist/theme/components/searchBar.d.ts +18 -0
  97. package/dist/theme/components/select.d.ts +87 -0
  98. package/dist/theme/components/skeletonLoader.d.ts +102 -0
  99. package/dist/theme/components/skipNavigation.d.ts +25 -0
  100. package/dist/theme/components/slider.d.ts +59 -0
  101. package/dist/theme/components/statusBadge.d.ts +25 -0
  102. package/dist/theme/components/structuredContent.d.ts +226 -0
  103. package/dist/theme/components/tabs.d.ts +136 -0
  104. package/dist/theme/components/template.d.ts +105 -0
  105. package/dist/theme/components/text.d.ts +26 -0
  106. package/dist/theme/components/textInput.d.ts +124 -0
  107. package/dist/theme/components/toggle.d.ts +92 -0
  108. package/dist/theme/components/videoPlayer.d.ts +40 -0
  109. package/dist/theme/foundations/breakpoints.d.ts +23 -0
  110. package/dist/theme/foundations/colors.d.ts +3 -0
  111. package/dist/theme/foundations/global.d.ts +58 -0
  112. package/dist/theme/foundations/radii.d.ts +6 -0
  113. package/dist/theme/foundations/shadows.d.ts +4 -0
  114. package/dist/theme/foundations/spacing.d.ts +82 -0
  115. package/dist/theme/foundations/typography.d.ts +8 -0
  116. package/dist/theme/index.d.ts +20 -0
  117. package/dist/theme/provider.d.ts +3 -0
  118. package/dist/theme/types.d.ts +1 -0
  119. package/dist/utils/componentCategories.d.ts +1 -0
  120. package/dist/utils/interfaces.d.ts +5 -0
  121. package/dist/utils/utils.d.ts +31 -0
  122. package/package.json +133 -20
  123. package/src/__tests__/fileMock.ts +6 -0
  124. package/src/__tests__/setup.ts +27 -0
  125. package/src/__tests__/utils/utils.test.ts +18 -0
  126. package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +42 -0
  127. package/src/components/Accordion/Accordion.stories.mdx +333 -0
  128. package/src/components/Accordion/Accordion.test.tsx +237 -0
  129. package/src/components/Accordion/Accordion.tsx +137 -0
  130. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +734 -0
  131. package/src/components/Autosuggest/Autosuggest.stories.mdx +75 -0
  132. package/src/components/Autosuggest/Autosuggest.stories.tsx +211 -0
  133. package/src/components/Autosuggest/_Autosuggest.scss +51 -0
  134. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +231 -0
  135. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +144 -0
  136. package/src/components/Breadcrumbs/Breadcrumbs.tsx +98 -0
  137. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +695 -0
  138. package/src/components/Button/Button.stories.mdx +320 -0
  139. package/src/components/Button/Button.test.tsx +184 -0
  140. package/src/components/Button/Button.tsx +95 -0
  141. package/src/components/Button/__snapshots__/Button.test.tsx.snap +106 -0
  142. package/src/components/ButtonGroup/ButtonGroup.stories.mdx +178 -0
  143. package/src/components/ButtonGroup/ButtonGroup.test.tsx +141 -0
  144. package/src/components/ButtonGroup/ButtonGroup.tsx +100 -0
  145. package/src/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap +117 -0
  146. package/src/components/Card/Card.stories.mdx +1041 -0
  147. package/src/components/Card/Card.test.tsx +388 -0
  148. package/src/components/Card/Card.tsx +346 -0
  149. package/src/components/Card/__snapshots__/Card.test.tsx.snap +568 -0
  150. package/src/components/Chakra/Box.stories.mdx +52 -0
  151. package/src/components/Chakra/Center.stories.mdx +96 -0
  152. package/src/components/Chakra/Flex.stories.mdx +111 -0
  153. package/src/components/Chakra/Grid.stories.mdx +89 -0
  154. package/src/components/Chakra/Stack.stories.mdx +109 -0
  155. package/src/components/Checkbox/Checkbox.stories.mdx +243 -0
  156. package/src/components/Checkbox/Checkbox.test.tsx +350 -0
  157. package/src/components/Checkbox/Checkbox.tsx +152 -0
  158. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +661 -0
  159. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +462 -0
  160. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +492 -0
  161. package/src/components/CheckboxGroup/CheckboxGroup.tsx +173 -0
  162. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +1842 -0
  163. package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +163 -0
  164. package/src/components/ComponentWrapper/ComponentWrapper.tsx +76 -0
  165. package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +103 -0
  166. package/src/components/DatePicker/DatePicker.stories.mdx +452 -0
  167. package/src/components/DatePicker/DatePicker.test.tsx +940 -0
  168. package/src/components/DatePicker/DatePicker.tsx +450 -0
  169. package/src/components/DatePicker/_DatePicker.scss +100 -0
  170. package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +908 -0
  171. package/src/components/Fieldset/Fieldset.stories.mdx +96 -0
  172. package/src/components/Fieldset/Fieldset.test.tsx +155 -0
  173. package/src/components/Fieldset/Fieldset.tsx +55 -0
  174. package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +89 -0
  175. package/src/components/Form/Form.stories.mdx +426 -0
  176. package/src/components/Form/Form.test.tsx +234 -0
  177. package/src/components/Form/Form.tsx +124 -0
  178. package/src/components/Form/__snapshots__/Form.test.tsx.snap +115 -0
  179. package/src/components/Grid/SimpleGrid.stories.mdx +336 -0
  180. package/src/components/Grid/SimpleGrid.test.tsx +79 -0
  181. package/src/components/Grid/SimpleGrid.tsx +49 -0
  182. package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +23 -0
  183. package/src/components/Heading/Heading.stories.mdx +187 -0
  184. package/src/components/Heading/Heading.test.tsx +171 -0
  185. package/src/components/Heading/Heading.tsx +104 -0
  186. package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +90 -0
  187. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +172 -0
  188. package/src/components/HelperErrorText/HelperErrorText.test.tsx +114 -0
  189. package/src/components/HelperErrorText/HelperErrorText.tsx +62 -0
  190. package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +93 -0
  191. package/src/components/Hero/Hero.stories.mdx +378 -0
  192. package/src/components/Hero/Hero.test.tsx +611 -0
  193. package/src/components/Hero/Hero.tsx +203 -0
  194. package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +379 -0
  195. package/src/components/HorizontalRule/HorizontalRule.stories.mdx +73 -0
  196. package/src/components/HorizontalRule/HorizontalRule.test.tsx +54 -0
  197. package/src/components/HorizontalRule/HorizontalRule.tsx +27 -0
  198. package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +44 -0
  199. package/src/components/Icons/Icon.stories.mdx +413 -0
  200. package/src/components/Icons/Icon.test.tsx +120 -0
  201. package/src/components/Icons/Icon.tsx +187 -0
  202. package/src/components/Icons/IconSvgs.tsx +64 -0
  203. package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +129 -0
  204. package/src/components/Image/Image.stories.mdx +332 -0
  205. package/src/components/Image/Image.test.tsx +155 -0
  206. package/src/components/Image/Image.tsx +171 -0
  207. package/src/components/Image/__snapshots__/Image.test.tsx.snap +269 -0
  208. package/src/components/Label/Label.stories.mdx +100 -0
  209. package/src/components/Label/Label.test.tsx +116 -0
  210. package/src/components/Label/Label.tsx +55 -0
  211. package/src/components/Label/__snapshots__/Label.test.tsx.snap +45 -0
  212. package/src/components/Link/Link.stories.mdx +249 -0
  213. package/src/components/Link/Link.test.tsx +224 -0
  214. package/src/components/Link/Link.tsx +178 -0
  215. package/src/components/Link/__snapshots__/Link.test.tsx.snap +286 -0
  216. package/src/components/List/List.stories.mdx +393 -0
  217. package/src/components/List/List.test.tsx +265 -0
  218. package/src/components/List/List.tsx +156 -0
  219. package/src/components/List/__snapshots__/List.test.tsx.snap +213 -0
  220. package/src/components/Logo/Logo.stories.mdx +295 -0
  221. package/src/components/Logo/Logo.test.tsx +116 -0
  222. package/src/components/Logo/Logo.tsx +151 -0
  223. package/src/components/Logo/LogoSvgs.tsx +90 -0
  224. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +142 -0
  225. package/src/components/Modal/Modal.stories.mdx +294 -0
  226. package/src/components/Modal/Modal.test.tsx +157 -0
  227. package/src/components/Modal/Modal.tsx +154 -0
  228. package/src/components/Modal/__snapshots__/Modal.test.tsx.snap +25 -0
  229. package/src/components/Notification/Notification.stories.mdx +358 -0
  230. package/src/components/Notification/Notification.test.tsx +279 -0
  231. package/src/components/Notification/Notification.tsx +224 -0
  232. package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +525 -0
  233. package/src/components/Pagination/Pagination.stories.mdx +184 -0
  234. package/src/components/Pagination/Pagination.test.tsx +419 -0
  235. package/src/components/Pagination/Pagination.tsx +269 -0
  236. package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +544 -0
  237. package/src/components/Placeholder/Placeholder.tsx +19 -0
  238. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +360 -0
  239. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +298 -0
  240. package/src/components/ProgressIndicator/ProgressIndicator.tsx +132 -0
  241. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +434 -0
  242. package/src/components/Radio/Radio.stories.mdx +216 -0
  243. package/src/components/Radio/Radio.test.tsx +247 -0
  244. package/src/components/Radio/Radio.tsx +119 -0
  245. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +451 -0
  246. package/src/components/RadioGroup/RadioGroup.stories.mdx +479 -0
  247. package/src/components/RadioGroup/RadioGroup.test.tsx +471 -0
  248. package/src/components/RadioGroup/RadioGroup.tsx +171 -0
  249. package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +1550 -0
  250. package/src/components/SearchBar/SearchBar.stories.mdx +518 -0
  251. package/src/components/SearchBar/SearchBar.test.tsx +435 -0
  252. package/src/components/SearchBar/SearchBar.tsx +210 -0
  253. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +1049 -0
  254. package/src/components/Select/Select.stories.mdx +439 -0
  255. package/src/components/Select/Select.test.tsx +358 -0
  256. package/src/components/Select/Select.tsx +183 -0
  257. package/src/components/Select/__snapshots__/Select.test.tsx.snap +895 -0
  258. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +142 -0
  259. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +116 -0
  260. package/src/components/SkeletonLoader/SkeletonLoader.tsx +123 -0
  261. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +898 -0
  262. package/src/components/SkipNavigation/SkipNavigation.stories.mdx +90 -0
  263. package/src/components/SkipNavigation/SkipNavigation.test.tsx +63 -0
  264. package/src/components/SkipNavigation/SkipNavigation.tsx +51 -0
  265. package/src/components/SkipNavigation/__snapshots__/SkipNavigation.test.tsx.snap +130 -0
  266. package/src/components/Slider/Slider.stories.mdx +628 -0
  267. package/src/components/Slider/Slider.test.tsx +736 -0
  268. package/src/components/Slider/Slider.tsx +322 -0
  269. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +2186 -0
  270. package/src/components/StatusBadge/StatusBadge.stories.mdx +109 -0
  271. package/src/components/StatusBadge/StatusBadge.test.tsx +70 -0
  272. package/src/components/StatusBadge/StatusBadge.tsx +35 -0
  273. package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +47 -0
  274. package/src/components/StructuredContent/StructuredContent.stories.mdx +567 -0
  275. package/src/components/StructuredContent/StructuredContent.test.tsx +435 -0
  276. package/src/components/StructuredContent/StructuredContent.tsx +139 -0
  277. package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +368 -0
  278. package/src/components/StyleGuide/Bidirectionality.stories.mdx +206 -0
  279. package/src/components/StyleGuide/Breakpoints.stories.mdx +55 -0
  280. package/src/components/StyleGuide/Buttons.stories.mdx +194 -0
  281. package/src/components/StyleGuide/ColorCard.tsx +43 -0
  282. package/src/components/StyleGuide/Colors.stories.mdx +201 -0
  283. package/src/components/StyleGuide/DesignTokens.stories.mdx +193 -0
  284. package/src/components/StyleGuide/Forms.stories.mdx +94 -0
  285. package/src/components/StyleGuide/Iconography.stories.mdx +142 -0
  286. package/src/components/StyleGuide/Spacing.stories.mdx +116 -0
  287. package/src/components/StyleGuide/Typography.stories.mdx +419 -0
  288. package/src/components/Table/Table.stories.mdx +272 -0
  289. package/src/components/Table/Table.test.tsx +241 -0
  290. package/src/components/Table/Table.tsx +152 -0
  291. package/src/components/Table/__snapshots__/Table.test.tsx.snap +1703 -0
  292. package/src/components/Tabs/Tabs.stories.mdx +338 -0
  293. package/src/components/Tabs/Tabs.test.tsx +298 -0
  294. package/src/components/Tabs/Tabs.tsx +264 -0
  295. package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +584 -0
  296. package/src/components/Template/Template.stories.mdx +695 -0
  297. package/src/components/Template/Template.test.tsx +309 -0
  298. package/src/components/Template/Template.tsx +326 -0
  299. package/src/components/Template/__snapshots__/Template.test.tsx.snap +342 -0
  300. package/src/components/Text/Text.stories.mdx +103 -0
  301. package/src/components/Text/Text.test.tsx +63 -0
  302. package/src/components/Text/Text.tsx +50 -0
  303. package/src/components/Text/__snapshots__/Text.test.tsx.snap +50 -0
  304. package/src/components/TextInput/TextInput.stories.mdx +268 -0
  305. package/src/components/TextInput/TextInput.test.tsx +451 -0
  306. package/src/components/TextInput/TextInput.tsx +240 -0
  307. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +274 -0
  308. package/src/components/Toggle/Toggle.stories.mdx +237 -0
  309. package/src/components/Toggle/Toggle.test.tsx +170 -0
  310. package/src/components/Toggle/Toggle.tsx +128 -0
  311. package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +470 -0
  312. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +212 -0
  313. package/src/components/VideoPlayer/VideoPlayer.test.tsx +308 -0
  314. package/src/components/VideoPlayer/VideoPlayer.tsx +188 -0
  315. package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +192 -0
  316. package/src/docs/Chakra.stories.mdx +563 -0
  317. package/src/docs/Welcome.stories.mdx +148 -0
  318. package/src/helpers/types.ts +1 -0
  319. package/src/hooks/tests/useCarouselStyles.test.ts +140 -0
  320. package/src/hooks/tests/useNYPLTheme.test.tsx +36 -0
  321. package/src/hooks/useCarouselStyles.stories.mdx +30 -0
  322. package/src/hooks/useCarouselStyles.ts +35 -0
  323. package/src/hooks/useNYPLTheme.stories.mdx +98 -0
  324. package/src/hooks/useNYPLTheme.ts +91 -0
  325. package/src/hooks/useWindowSize.stories.mdx +23 -0
  326. package/src/hooks/useWindowSize.ts +40 -0
  327. package/src/index.ts +136 -0
  328. package/src/resources.scss +6 -0
  329. package/src/styles/base/_01-breakpoints.scss +27 -0
  330. package/src/styles/base/_02-mixins.scss +103 -0
  331. package/src/styles/base/_place-holder.scss +33 -0
  332. package/src/styles/space/_space-inline.scss +79 -0
  333. package/src/styles/space/_space-inset.scss +57 -0
  334. package/src/styles/space/_space-stack.scss +116 -0
  335. package/src/styles.scss +23 -0
  336. package/src/theme/components/accordion.ts +25 -0
  337. package/src/theme/components/breadcrumb.ts +94 -0
  338. package/src/theme/components/button.ts +133 -0
  339. package/src/theme/components/buttonGroup.ts +10 -0
  340. package/src/theme/components/card.ts +237 -0
  341. package/src/theme/components/checkbox.ts +110 -0
  342. package/src/theme/components/checkboxGroup.ts +10 -0
  343. package/src/theme/components/componentWrapper.ts +14 -0
  344. package/src/theme/components/customTable.ts +77 -0
  345. package/src/theme/components/datePicker.ts +17 -0
  346. package/src/theme/components/fieldset.ts +23 -0
  347. package/src/theme/components/global.ts +91 -0
  348. package/src/theme/components/globalMixins.ts +24 -0
  349. package/src/theme/components/heading.ts +79 -0
  350. package/src/theme/components/helperErrorText.ts +14 -0
  351. package/src/theme/components/hero.ts +238 -0
  352. package/src/theme/components/horizontalRule.ts +17 -0
  353. package/src/theme/components/icon.ts +88 -0
  354. package/src/theme/components/image.ts +136 -0
  355. package/src/theme/components/label.ts +15 -0
  356. package/src/theme/components/link.ts +63 -0
  357. package/src/theme/components/list.ts +88 -0
  358. package/src/theme/components/logo.ts +58 -0
  359. package/src/theme/components/notification.ts +132 -0
  360. package/src/theme/components/pagination.ts +17 -0
  361. package/src/theme/components/progressIndicator.ts +67 -0
  362. package/src/theme/components/radio.ts +103 -0
  363. package/src/theme/components/radioGroup.ts +10 -0
  364. package/src/theme/components/searchBar.ts +19 -0
  365. package/src/theme/components/select.ts +72 -0
  366. package/src/theme/components/skeletonLoader.ts +113 -0
  367. package/src/theme/components/skipNavigation.ts +29 -0
  368. package/src/theme/components/slider.ts +95 -0
  369. package/src/theme/components/statusBadge.ts +26 -0
  370. package/src/theme/components/structuredContent.ts +149 -0
  371. package/src/theme/components/tabs.ts +109 -0
  372. package/src/theme/components/template.ts +114 -0
  373. package/src/theme/components/text.ts +38 -0
  374. package/src/theme/components/textInput.ts +65 -0
  375. package/src/theme/components/toggle.ts +109 -0
  376. package/src/theme/components/videoPlayer.ts +47 -0
  377. package/src/theme/foundations/breakpoints.ts +24 -0
  378. package/src/theme/foundations/colors.ts +212 -0
  379. package/src/theme/foundations/global.ts +43 -0
  380. package/src/theme/foundations/radii.ts +7 -0
  381. package/src/theme/foundations/shadows.ts +5 -0
  382. package/src/theme/foundations/spacing.ts +136 -0
  383. package/src/theme/foundations/typography.ts +107 -0
  384. package/src/theme/index.ts +131 -0
  385. package/src/theme/provider.tsx +9 -0
  386. package/src/theme/types.ts +1 -0
  387. package/src/utils/componentCategories.ts +152 -0
  388. package/src/utils/interfaces.ts +5 -0
  389. package/src/utils/utils.ts +84 -0
  390. package/lib/components/Button/Button.d.ts +0 -17
  391. package/lib/components/Button/Button.js +0 -42
  392. package/lib/index.d.ts +0 -1
  393. package/lib/index.js +0 -6
  394. package/lib/stories/0-Welcome.stories.js +0 -19
  395. package/lib/stories/1-Button.stories.d.ts +0 -6
  396. package/lib/stories/1-Button.stories.js +0 -20
@@ -0,0 +1,1842 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Checkbox renders the UI snapshot correctly 1`] = `
4
+ <fieldset
5
+ className="css-1u8qly9"
6
+ id="column-checkbox-group"
7
+ >
8
+ <legend>
9
+ column
10
+ </legend>
11
+ <div
12
+ className="chakra-stack css-1wdv1uh"
13
+ data-testid="checkbox-group"
14
+ id="column"
15
+ >
16
+ <div
17
+ className="css-1xdhyk6"
18
+ id="column-0-wrapper"
19
+ >
20
+ <label
21
+ className="chakra-checkbox css-scawxr"
22
+ onClick={[Function]}
23
+ >
24
+ <input
25
+ aria-disabled={false}
26
+ aria-invalid={false}
27
+ checked={false}
28
+ className="chakra-checkbox__input"
29
+ disabled={false}
30
+ id="column-0"
31
+ name="column"
32
+ onBlur={[Function]}
33
+ onChange={[Function]}
34
+ onFocus={[Function]}
35
+ onKeyDown={[Function]}
36
+ onKeyUp={[Function]}
37
+ required={false}
38
+ style={
39
+ Object {
40
+ "border": "0px",
41
+ "clip": "rect(0px, 0px, 0px, 0px)",
42
+ "height": "1px",
43
+ "margin": "-1px",
44
+ "overflow": "hidden",
45
+ "padding": "0px",
46
+ "position": "absolute",
47
+ "whiteSpace": "nowrap",
48
+ "width": "1px",
49
+ }
50
+ }
51
+ type="checkbox"
52
+ value="2"
53
+ />
54
+ <span
55
+ aria-hidden={true}
56
+ className="chakra-checkbox__control css-dnty2r"
57
+ onMouseDown={[Function]}
58
+ onMouseEnter={[Function]}
59
+ onMouseLeave={[Function]}
60
+ onMouseUp={[Function]}
61
+ >
62
+ <svg
63
+ className="chakra-icon css-1vfv7ic"
64
+ focusable={false}
65
+ viewBox="0 0 24 24"
66
+ >
67
+ <path
68
+ 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"
69
+ fill="currentColor"
70
+ />
71
+ </svg>
72
+ </span>
73
+ <span
74
+ className="chakra-checkbox__label css-1oeb2oe"
75
+ onMouseDown={[Function]}
76
+ onTouchStart={[Function]}
77
+ >
78
+ Checkbox 2
79
+ </span>
80
+ </label>
81
+ </div>
82
+ <div
83
+ className="css-1xdhyk6"
84
+ id="column-1-wrapper"
85
+ >
86
+ <label
87
+ className="chakra-checkbox css-scawxr"
88
+ onClick={[Function]}
89
+ >
90
+ <input
91
+ aria-disabled={false}
92
+ aria-invalid={false}
93
+ checked={false}
94
+ className="chakra-checkbox__input"
95
+ disabled={false}
96
+ id="column-1"
97
+ name="column"
98
+ onBlur={[Function]}
99
+ onChange={[Function]}
100
+ onFocus={[Function]}
101
+ onKeyDown={[Function]}
102
+ onKeyUp={[Function]}
103
+ required={false}
104
+ style={
105
+ Object {
106
+ "border": "0px",
107
+ "clip": "rect(0px, 0px, 0px, 0px)",
108
+ "height": "1px",
109
+ "margin": "-1px",
110
+ "overflow": "hidden",
111
+ "padding": "0px",
112
+ "position": "absolute",
113
+ "whiteSpace": "nowrap",
114
+ "width": "1px",
115
+ }
116
+ }
117
+ type="checkbox"
118
+ value="3"
119
+ />
120
+ <span
121
+ aria-hidden={true}
122
+ className="chakra-checkbox__control css-dnty2r"
123
+ onMouseDown={[Function]}
124
+ onMouseEnter={[Function]}
125
+ onMouseLeave={[Function]}
126
+ onMouseUp={[Function]}
127
+ >
128
+ <svg
129
+ className="chakra-icon css-1vfv7ic"
130
+ focusable={false}
131
+ viewBox="0 0 24 24"
132
+ >
133
+ <path
134
+ 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"
135
+ fill="currentColor"
136
+ />
137
+ </svg>
138
+ </span>
139
+ <span
140
+ className="chakra-checkbox__label css-1oeb2oe"
141
+ onMouseDown={[Function]}
142
+ onTouchStart={[Function]}
143
+ >
144
+ Checkbox 3
145
+ </span>
146
+ </label>
147
+ </div>
148
+ </div>
149
+ </fieldset>
150
+ `;
151
+
152
+ exports[`Checkbox renders the UI snapshot correctly 2`] = `
153
+ <fieldset
154
+ className="css-1u8qly9"
155
+ id="row-checkbox-group"
156
+ >
157
+ <legend>
158
+ row
159
+ </legend>
160
+ <div
161
+ className="chakra-stack css-1objuxj"
162
+ data-testid="checkbox-group"
163
+ id="row"
164
+ >
165
+ <div
166
+ className="css-1xdhyk6"
167
+ id="row-0-wrapper"
168
+ >
169
+ <label
170
+ className="chakra-checkbox css-scawxr"
171
+ onClick={[Function]}
172
+ >
173
+ <input
174
+ aria-disabled={false}
175
+ aria-invalid={false}
176
+ checked={false}
177
+ className="chakra-checkbox__input"
178
+ disabled={false}
179
+ id="row-0"
180
+ name="row"
181
+ onBlur={[Function]}
182
+ onChange={[Function]}
183
+ onFocus={[Function]}
184
+ onKeyDown={[Function]}
185
+ onKeyUp={[Function]}
186
+ required={false}
187
+ style={
188
+ Object {
189
+ "border": "0px",
190
+ "clip": "rect(0px, 0px, 0px, 0px)",
191
+ "height": "1px",
192
+ "margin": "-1px",
193
+ "overflow": "hidden",
194
+ "padding": "0px",
195
+ "position": "absolute",
196
+ "whiteSpace": "nowrap",
197
+ "width": "1px",
198
+ }
199
+ }
200
+ type="checkbox"
201
+ value="2"
202
+ />
203
+ <span
204
+ aria-hidden={true}
205
+ className="chakra-checkbox__control css-dnty2r"
206
+ onMouseDown={[Function]}
207
+ onMouseEnter={[Function]}
208
+ onMouseLeave={[Function]}
209
+ onMouseUp={[Function]}
210
+ >
211
+ <svg
212
+ className="chakra-icon css-1vfv7ic"
213
+ focusable={false}
214
+ viewBox="0 0 24 24"
215
+ >
216
+ <path
217
+ 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"
218
+ fill="currentColor"
219
+ />
220
+ </svg>
221
+ </span>
222
+ <span
223
+ className="chakra-checkbox__label css-1oeb2oe"
224
+ onMouseDown={[Function]}
225
+ onTouchStart={[Function]}
226
+ >
227
+ Checkbox 2
228
+ </span>
229
+ </label>
230
+ </div>
231
+ <div
232
+ className="css-1xdhyk6"
233
+ id="row-1-wrapper"
234
+ >
235
+ <label
236
+ className="chakra-checkbox css-scawxr"
237
+ onClick={[Function]}
238
+ >
239
+ <input
240
+ aria-disabled={false}
241
+ aria-invalid={false}
242
+ checked={false}
243
+ className="chakra-checkbox__input"
244
+ disabled={false}
245
+ id="row-1"
246
+ name="row"
247
+ onBlur={[Function]}
248
+ onChange={[Function]}
249
+ onFocus={[Function]}
250
+ onKeyDown={[Function]}
251
+ onKeyUp={[Function]}
252
+ required={false}
253
+ style={
254
+ Object {
255
+ "border": "0px",
256
+ "clip": "rect(0px, 0px, 0px, 0px)",
257
+ "height": "1px",
258
+ "margin": "-1px",
259
+ "overflow": "hidden",
260
+ "padding": "0px",
261
+ "position": "absolute",
262
+ "whiteSpace": "nowrap",
263
+ "width": "1px",
264
+ }
265
+ }
266
+ type="checkbox"
267
+ value="3"
268
+ />
269
+ <span
270
+ aria-hidden={true}
271
+ className="chakra-checkbox__control css-dnty2r"
272
+ onMouseDown={[Function]}
273
+ onMouseEnter={[Function]}
274
+ onMouseLeave={[Function]}
275
+ onMouseUp={[Function]}
276
+ >
277
+ <svg
278
+ className="chakra-icon css-1vfv7ic"
279
+ focusable={false}
280
+ viewBox="0 0 24 24"
281
+ >
282
+ <path
283
+ 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"
284
+ fill="currentColor"
285
+ />
286
+ </svg>
287
+ </span>
288
+ <span
289
+ className="chakra-checkbox__label css-1oeb2oe"
290
+ onMouseDown={[Function]}
291
+ onTouchStart={[Function]}
292
+ >
293
+ Checkbox 3
294
+ </span>
295
+ </label>
296
+ </div>
297
+ </div>
298
+ </fieldset>
299
+ `;
300
+
301
+ exports[`Checkbox renders the UI snapshot correctly 3`] = `
302
+ <fieldset
303
+ className="css-1u8qly9"
304
+ id="noLabel-checkbox-group"
305
+ >
306
+ <legend>
307
+ no label
308
+ </legend>
309
+ <div
310
+ aria-label="no label"
311
+ className="chakra-stack css-1wdv1uh"
312
+ data-testid="checkbox-group"
313
+ id="noLabel"
314
+ >
315
+ <div
316
+ className="css-1xdhyk6"
317
+ id="noLabel-0-wrapper"
318
+ >
319
+ <label
320
+ className="chakra-checkbox css-scawxr"
321
+ onClick={[Function]}
322
+ >
323
+ <input
324
+ aria-disabled={false}
325
+ aria-invalid={false}
326
+ checked={false}
327
+ className="chakra-checkbox__input"
328
+ disabled={false}
329
+ id="noLabel-0"
330
+ name="noLabel"
331
+ onBlur={[Function]}
332
+ onChange={[Function]}
333
+ onFocus={[Function]}
334
+ onKeyDown={[Function]}
335
+ onKeyUp={[Function]}
336
+ required={false}
337
+ style={
338
+ Object {
339
+ "border": "0px",
340
+ "clip": "rect(0px, 0px, 0px, 0px)",
341
+ "height": "1px",
342
+ "margin": "-1px",
343
+ "overflow": "hidden",
344
+ "padding": "0px",
345
+ "position": "absolute",
346
+ "whiteSpace": "nowrap",
347
+ "width": "1px",
348
+ }
349
+ }
350
+ type="checkbox"
351
+ value="2"
352
+ />
353
+ <span
354
+ aria-hidden={true}
355
+ className="chakra-checkbox__control css-dnty2r"
356
+ onMouseDown={[Function]}
357
+ onMouseEnter={[Function]}
358
+ onMouseLeave={[Function]}
359
+ onMouseUp={[Function]}
360
+ >
361
+ <svg
362
+ className="chakra-icon css-1vfv7ic"
363
+ focusable={false}
364
+ viewBox="0 0 24 24"
365
+ >
366
+ <path
367
+ 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"
368
+ fill="currentColor"
369
+ />
370
+ </svg>
371
+ </span>
372
+ <span
373
+ className="chakra-checkbox__label css-1oeb2oe"
374
+ onMouseDown={[Function]}
375
+ onTouchStart={[Function]}
376
+ >
377
+ Checkbox 2
378
+ </span>
379
+ </label>
380
+ </div>
381
+ <div
382
+ className="css-1xdhyk6"
383
+ id="noLabel-1-wrapper"
384
+ >
385
+ <label
386
+ className="chakra-checkbox css-scawxr"
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
+ </div>
448
+ </fieldset>
449
+ `;
450
+
451
+ exports[`Checkbox renders the UI snapshot correctly 4`] = `
452
+ <fieldset
453
+ className="css-1u8qly9"
454
+ id="helperText-checkbox-group"
455
+ >
456
+ <legend>
457
+ helperText
458
+ </legend>
459
+ <div
460
+ className="chakra-stack css-1wdv1uh"
461
+ data-testid="checkbox-group"
462
+ id="helperText"
463
+ >
464
+ <div
465
+ className="css-1xdhyk6"
466
+ id="helperText-0-wrapper"
467
+ >
468
+ <label
469
+ className="chakra-checkbox css-scawxr"
470
+ onClick={[Function]}
471
+ >
472
+ <input
473
+ aria-disabled={false}
474
+ aria-invalid={false}
475
+ checked={false}
476
+ className="chakra-checkbox__input"
477
+ disabled={false}
478
+ id="helperText-0"
479
+ name="helperText"
480
+ onBlur={[Function]}
481
+ onChange={[Function]}
482
+ onFocus={[Function]}
483
+ onKeyDown={[Function]}
484
+ onKeyUp={[Function]}
485
+ required={false}
486
+ style={
487
+ Object {
488
+ "border": "0px",
489
+ "clip": "rect(0px, 0px, 0px, 0px)",
490
+ "height": "1px",
491
+ "margin": "-1px",
492
+ "overflow": "hidden",
493
+ "padding": "0px",
494
+ "position": "absolute",
495
+ "whiteSpace": "nowrap",
496
+ "width": "1px",
497
+ }
498
+ }
499
+ type="checkbox"
500
+ value="2"
501
+ />
502
+ <span
503
+ aria-hidden={true}
504
+ className="chakra-checkbox__control css-dnty2r"
505
+ onMouseDown={[Function]}
506
+ onMouseEnter={[Function]}
507
+ onMouseLeave={[Function]}
508
+ onMouseUp={[Function]}
509
+ >
510
+ <svg
511
+ className="chakra-icon css-1vfv7ic"
512
+ focusable={false}
513
+ viewBox="0 0 24 24"
514
+ >
515
+ <path
516
+ 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"
517
+ fill="currentColor"
518
+ />
519
+ </svg>
520
+ </span>
521
+ <span
522
+ className="chakra-checkbox__label css-1oeb2oe"
523
+ onMouseDown={[Function]}
524
+ onTouchStart={[Function]}
525
+ >
526
+ Checkbox 2
527
+ </span>
528
+ </label>
529
+ </div>
530
+ <div
531
+ className="css-1xdhyk6"
532
+ id="helperText-1-wrapper"
533
+ >
534
+ <label
535
+ className="chakra-checkbox css-scawxr"
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
+ <div
598
+ aria-atomic={true}
599
+ aria-live="off"
600
+ className="css-1xdhyk6"
601
+ dangerouslySetInnerHTML={
602
+ Object {
603
+ "__html": "helper text",
604
+ }
605
+ }
606
+ data-isinvalid={false}
607
+ id="helperText-helperErrorText"
608
+ />
609
+ </fieldset>
610
+ `;
611
+
612
+ exports[`Checkbox renders the UI snapshot correctly 5`] = `
613
+ <fieldset
614
+ className="css-1u8qly9"
615
+ id="invalidText-checkbox-group"
616
+ >
617
+ <legend>
618
+ invalidText
619
+ </legend>
620
+ <div
621
+ className="chakra-stack css-1wdv1uh"
622
+ data-testid="checkbox-group"
623
+ id="invalidText"
624
+ >
625
+ <div
626
+ className="css-1xdhyk6"
627
+ id="invalidText-0-wrapper"
628
+ >
629
+ <label
630
+ className="chakra-checkbox css-scawxr"
631
+ onClick={[Function]}
632
+ >
633
+ <input
634
+ aria-disabled={false}
635
+ aria-invalid={false}
636
+ checked={false}
637
+ className="chakra-checkbox__input"
638
+ disabled={false}
639
+ id="invalidText-0"
640
+ name="invalidText"
641
+ onBlur={[Function]}
642
+ onChange={[Function]}
643
+ onFocus={[Function]}
644
+ onKeyDown={[Function]}
645
+ onKeyUp={[Function]}
646
+ required={false}
647
+ style={
648
+ Object {
649
+ "border": "0px",
650
+ "clip": "rect(0px, 0px, 0px, 0px)",
651
+ "height": "1px",
652
+ "margin": "-1px",
653
+ "overflow": "hidden",
654
+ "padding": "0px",
655
+ "position": "absolute",
656
+ "whiteSpace": "nowrap",
657
+ "width": "1px",
658
+ }
659
+ }
660
+ type="checkbox"
661
+ value="2"
662
+ />
663
+ <span
664
+ aria-hidden={true}
665
+ className="chakra-checkbox__control css-dnty2r"
666
+ onMouseDown={[Function]}
667
+ onMouseEnter={[Function]}
668
+ onMouseLeave={[Function]}
669
+ onMouseUp={[Function]}
670
+ >
671
+ <svg
672
+ className="chakra-icon css-1vfv7ic"
673
+ focusable={false}
674
+ viewBox="0 0 24 24"
675
+ >
676
+ <path
677
+ 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"
678
+ fill="currentColor"
679
+ />
680
+ </svg>
681
+ </span>
682
+ <span
683
+ className="chakra-checkbox__label css-1oeb2oe"
684
+ onMouseDown={[Function]}
685
+ onTouchStart={[Function]}
686
+ >
687
+ Checkbox 2
688
+ </span>
689
+ </label>
690
+ </div>
691
+ <div
692
+ className="css-1xdhyk6"
693
+ id="invalidText-1-wrapper"
694
+ >
695
+ <label
696
+ className="chakra-checkbox css-scawxr"
697
+ onClick={[Function]}
698
+ >
699
+ <input
700
+ aria-disabled={false}
701
+ aria-invalid={false}
702
+ checked={false}
703
+ className="chakra-checkbox__input"
704
+ disabled={false}
705
+ id="invalidText-1"
706
+ name="invalidText"
707
+ onBlur={[Function]}
708
+ onChange={[Function]}
709
+ onFocus={[Function]}
710
+ onKeyDown={[Function]}
711
+ onKeyUp={[Function]}
712
+ required={false}
713
+ style={
714
+ Object {
715
+ "border": "0px",
716
+ "clip": "rect(0px, 0px, 0px, 0px)",
717
+ "height": "1px",
718
+ "margin": "-1px",
719
+ "overflow": "hidden",
720
+ "padding": "0px",
721
+ "position": "absolute",
722
+ "whiteSpace": "nowrap",
723
+ "width": "1px",
724
+ }
725
+ }
726
+ type="checkbox"
727
+ value="3"
728
+ />
729
+ <span
730
+ aria-hidden={true}
731
+ className="chakra-checkbox__control css-dnty2r"
732
+ onMouseDown={[Function]}
733
+ onMouseEnter={[Function]}
734
+ onMouseLeave={[Function]}
735
+ onMouseUp={[Function]}
736
+ >
737
+ <svg
738
+ className="chakra-icon css-1vfv7ic"
739
+ focusable={false}
740
+ viewBox="0 0 24 24"
741
+ >
742
+ <path
743
+ 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"
744
+ fill="currentColor"
745
+ />
746
+ </svg>
747
+ </span>
748
+ <span
749
+ className="chakra-checkbox__label css-1oeb2oe"
750
+ onMouseDown={[Function]}
751
+ onTouchStart={[Function]}
752
+ >
753
+ Checkbox 3
754
+ </span>
755
+ </label>
756
+ </div>
757
+ </div>
758
+ </fieldset>
759
+ `;
760
+
761
+ exports[`Checkbox renders the UI snapshot correctly 6`] = `
762
+ <fieldset
763
+ className="css-1u8qly9"
764
+ id="noRequiredLabel-checkbox-group"
765
+ >
766
+ <legend>
767
+ no optional or required label
768
+ </legend>
769
+ <div
770
+ className="chakra-stack css-1wdv1uh"
771
+ data-testid="checkbox-group"
772
+ id="noRequiredLabel"
773
+ >
774
+ <div
775
+ className="css-1xdhyk6"
776
+ id="noRequiredLabel-0-wrapper"
777
+ >
778
+ <label
779
+ className="chakra-checkbox css-scawxr"
780
+ onClick={[Function]}
781
+ >
782
+ <input
783
+ aria-disabled={false}
784
+ aria-invalid={false}
785
+ checked={false}
786
+ className="chakra-checkbox__input"
787
+ disabled={false}
788
+ id="noRequiredLabel-0"
789
+ name="noRequiredLabel"
790
+ onBlur={[Function]}
791
+ onChange={[Function]}
792
+ onFocus={[Function]}
793
+ onKeyDown={[Function]}
794
+ onKeyUp={[Function]}
795
+ required={true}
796
+ style={
797
+ Object {
798
+ "border": "0px",
799
+ "clip": "rect(0px, 0px, 0px, 0px)",
800
+ "height": "1px",
801
+ "margin": "-1px",
802
+ "overflow": "hidden",
803
+ "padding": "0px",
804
+ "position": "absolute",
805
+ "whiteSpace": "nowrap",
806
+ "width": "1px",
807
+ }
808
+ }
809
+ type="checkbox"
810
+ value="2"
811
+ />
812
+ <span
813
+ aria-hidden={true}
814
+ className="chakra-checkbox__control css-dnty2r"
815
+ onMouseDown={[Function]}
816
+ onMouseEnter={[Function]}
817
+ onMouseLeave={[Function]}
818
+ onMouseUp={[Function]}
819
+ >
820
+ <svg
821
+ className="chakra-icon css-1vfv7ic"
822
+ focusable={false}
823
+ viewBox="0 0 24 24"
824
+ >
825
+ <path
826
+ 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"
827
+ fill="currentColor"
828
+ />
829
+ </svg>
830
+ </span>
831
+ <span
832
+ className="chakra-checkbox__label css-1oeb2oe"
833
+ onMouseDown={[Function]}
834
+ onTouchStart={[Function]}
835
+ >
836
+ Checkbox 2
837
+ </span>
838
+ </label>
839
+ </div>
840
+ <div
841
+ className="css-1xdhyk6"
842
+ id="noRequiredLabel-1-wrapper"
843
+ >
844
+ <label
845
+ className="chakra-checkbox css-scawxr"
846
+ onClick={[Function]}
847
+ >
848
+ <input
849
+ aria-disabled={false}
850
+ aria-invalid={false}
851
+ checked={false}
852
+ className="chakra-checkbox__input"
853
+ disabled={false}
854
+ id="noRequiredLabel-1"
855
+ name="noRequiredLabel"
856
+ onBlur={[Function]}
857
+ onChange={[Function]}
858
+ onFocus={[Function]}
859
+ onKeyDown={[Function]}
860
+ onKeyUp={[Function]}
861
+ required={true}
862
+ style={
863
+ Object {
864
+ "border": "0px",
865
+ "clip": "rect(0px, 0px, 0px, 0px)",
866
+ "height": "1px",
867
+ "margin": "-1px",
868
+ "overflow": "hidden",
869
+ "padding": "0px",
870
+ "position": "absolute",
871
+ "whiteSpace": "nowrap",
872
+ "width": "1px",
873
+ }
874
+ }
875
+ type="checkbox"
876
+ value="3"
877
+ />
878
+ <span
879
+ aria-hidden={true}
880
+ className="chakra-checkbox__control css-dnty2r"
881
+ onMouseDown={[Function]}
882
+ onMouseEnter={[Function]}
883
+ onMouseLeave={[Function]}
884
+ onMouseUp={[Function]}
885
+ >
886
+ <svg
887
+ className="chakra-icon css-1vfv7ic"
888
+ focusable={false}
889
+ viewBox="0 0 24 24"
890
+ >
891
+ <path
892
+ 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"
893
+ fill="currentColor"
894
+ />
895
+ </svg>
896
+ </span>
897
+ <span
898
+ className="chakra-checkbox__label css-1oeb2oe"
899
+ onMouseDown={[Function]}
900
+ onTouchStart={[Function]}
901
+ >
902
+ Checkbox 3
903
+ </span>
904
+ </label>
905
+ </div>
906
+ </div>
907
+ </fieldset>
908
+ `;
909
+
910
+ exports[`Checkbox renders the UI snapshot correctly 7`] = `
911
+ <fieldset
912
+ className="css-1u8qly9"
913
+ id="required-checkbox-group"
914
+ >
915
+ <legend>
916
+ required
917
+ <span>
918
+ (Required)
919
+ </span>
920
+ </legend>
921
+ <div
922
+ className="chakra-stack css-1wdv1uh"
923
+ data-testid="checkbox-group"
924
+ id="required"
925
+ >
926
+ <div
927
+ className="css-1xdhyk6"
928
+ id="required-0-wrapper"
929
+ >
930
+ <label
931
+ className="chakra-checkbox css-scawxr"
932
+ onClick={[Function]}
933
+ >
934
+ <input
935
+ aria-disabled={false}
936
+ aria-invalid={false}
937
+ checked={false}
938
+ className="chakra-checkbox__input"
939
+ disabled={false}
940
+ id="required-0"
941
+ name="required"
942
+ onBlur={[Function]}
943
+ onChange={[Function]}
944
+ onFocus={[Function]}
945
+ onKeyDown={[Function]}
946
+ onKeyUp={[Function]}
947
+ required={true}
948
+ style={
949
+ Object {
950
+ "border": "0px",
951
+ "clip": "rect(0px, 0px, 0px, 0px)",
952
+ "height": "1px",
953
+ "margin": "-1px",
954
+ "overflow": "hidden",
955
+ "padding": "0px",
956
+ "position": "absolute",
957
+ "whiteSpace": "nowrap",
958
+ "width": "1px",
959
+ }
960
+ }
961
+ type="checkbox"
962
+ value="2"
963
+ />
964
+ <span
965
+ aria-hidden={true}
966
+ className="chakra-checkbox__control css-dnty2r"
967
+ onMouseDown={[Function]}
968
+ onMouseEnter={[Function]}
969
+ onMouseLeave={[Function]}
970
+ onMouseUp={[Function]}
971
+ >
972
+ <svg
973
+ className="chakra-icon css-1vfv7ic"
974
+ focusable={false}
975
+ viewBox="0 0 24 24"
976
+ >
977
+ <path
978
+ 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"
979
+ fill="currentColor"
980
+ />
981
+ </svg>
982
+ </span>
983
+ <span
984
+ className="chakra-checkbox__label css-1oeb2oe"
985
+ onMouseDown={[Function]}
986
+ onTouchStart={[Function]}
987
+ >
988
+ Checkbox 2
989
+ </span>
990
+ </label>
991
+ </div>
992
+ <div
993
+ className="css-1xdhyk6"
994
+ id="required-1-wrapper"
995
+ >
996
+ <label
997
+ className="chakra-checkbox css-scawxr"
998
+ onClick={[Function]}
999
+ >
1000
+ <input
1001
+ aria-disabled={false}
1002
+ aria-invalid={false}
1003
+ checked={false}
1004
+ className="chakra-checkbox__input"
1005
+ disabled={false}
1006
+ id="required-1"
1007
+ name="required"
1008
+ onBlur={[Function]}
1009
+ onChange={[Function]}
1010
+ onFocus={[Function]}
1011
+ onKeyDown={[Function]}
1012
+ onKeyUp={[Function]}
1013
+ required={true}
1014
+ style={
1015
+ Object {
1016
+ "border": "0px",
1017
+ "clip": "rect(0px, 0px, 0px, 0px)",
1018
+ "height": "1px",
1019
+ "margin": "-1px",
1020
+ "overflow": "hidden",
1021
+ "padding": "0px",
1022
+ "position": "absolute",
1023
+ "whiteSpace": "nowrap",
1024
+ "width": "1px",
1025
+ }
1026
+ }
1027
+ type="checkbox"
1028
+ value="3"
1029
+ />
1030
+ <span
1031
+ aria-hidden={true}
1032
+ className="chakra-checkbox__control css-dnty2r"
1033
+ onMouseDown={[Function]}
1034
+ onMouseEnter={[Function]}
1035
+ onMouseLeave={[Function]}
1036
+ onMouseUp={[Function]}
1037
+ >
1038
+ <svg
1039
+ className="chakra-icon css-1vfv7ic"
1040
+ focusable={false}
1041
+ viewBox="0 0 24 24"
1042
+ >
1043
+ <path
1044
+ 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"
1045
+ fill="currentColor"
1046
+ />
1047
+ </svg>
1048
+ </span>
1049
+ <span
1050
+ className="chakra-checkbox__label css-1oeb2oe"
1051
+ onMouseDown={[Function]}
1052
+ onTouchStart={[Function]}
1053
+ >
1054
+ Checkbox 3
1055
+ </span>
1056
+ </label>
1057
+ </div>
1058
+ </div>
1059
+ </fieldset>
1060
+ `;
1061
+
1062
+ exports[`Checkbox renders the UI snapshot correctly 8`] = `
1063
+ <fieldset
1064
+ className="css-1u8qly9"
1065
+ id="invalid-checkbox-group"
1066
+ >
1067
+ <legend>
1068
+ invalid
1069
+ </legend>
1070
+ <div
1071
+ className="chakra-stack css-1wdv1uh"
1072
+ data-testid="checkbox-group"
1073
+ id="invalid"
1074
+ >
1075
+ <div
1076
+ className="css-1xdhyk6"
1077
+ id="invalid-0-wrapper"
1078
+ >
1079
+ <label
1080
+ className="chakra-checkbox css-scawxr"
1081
+ data-invalid=""
1082
+ onClick={[Function]}
1083
+ >
1084
+ <input
1085
+ aria-disabled={false}
1086
+ aria-invalid={true}
1087
+ checked={false}
1088
+ className="chakra-checkbox__input"
1089
+ disabled={false}
1090
+ id="invalid-0"
1091
+ name="invalid"
1092
+ onBlur={[Function]}
1093
+ onChange={[Function]}
1094
+ onFocus={[Function]}
1095
+ onKeyDown={[Function]}
1096
+ onKeyUp={[Function]}
1097
+ required={false}
1098
+ style={
1099
+ Object {
1100
+ "border": "0px",
1101
+ "clip": "rect(0px, 0px, 0px, 0px)",
1102
+ "height": "1px",
1103
+ "margin": "-1px",
1104
+ "overflow": "hidden",
1105
+ "padding": "0px",
1106
+ "position": "absolute",
1107
+ "whiteSpace": "nowrap",
1108
+ "width": "1px",
1109
+ }
1110
+ }
1111
+ type="checkbox"
1112
+ value="2"
1113
+ />
1114
+ <span
1115
+ aria-hidden={true}
1116
+ className="chakra-checkbox__control css-dnty2r"
1117
+ data-invalid=""
1118
+ onMouseDown={[Function]}
1119
+ onMouseEnter={[Function]}
1120
+ onMouseLeave={[Function]}
1121
+ onMouseUp={[Function]}
1122
+ >
1123
+ <svg
1124
+ className="chakra-icon css-1vfv7ic"
1125
+ focusable={false}
1126
+ viewBox="0 0 24 24"
1127
+ >
1128
+ <path
1129
+ 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"
1130
+ fill="currentColor"
1131
+ />
1132
+ </svg>
1133
+ </span>
1134
+ <span
1135
+ className="chakra-checkbox__label css-1oeb2oe"
1136
+ data-invalid=""
1137
+ onMouseDown={[Function]}
1138
+ onTouchStart={[Function]}
1139
+ >
1140
+ Checkbox 2
1141
+ </span>
1142
+ </label>
1143
+ </div>
1144
+ <div
1145
+ className="css-1xdhyk6"
1146
+ id="invalid-1-wrapper"
1147
+ >
1148
+ <label
1149
+ className="chakra-checkbox css-scawxr"
1150
+ data-invalid=""
1151
+ onClick={[Function]}
1152
+ >
1153
+ <input
1154
+ aria-disabled={false}
1155
+ aria-invalid={true}
1156
+ checked={false}
1157
+ className="chakra-checkbox__input"
1158
+ disabled={false}
1159
+ id="invalid-1"
1160
+ name="invalid"
1161
+ onBlur={[Function]}
1162
+ onChange={[Function]}
1163
+ onFocus={[Function]}
1164
+ onKeyDown={[Function]}
1165
+ onKeyUp={[Function]}
1166
+ required={false}
1167
+ style={
1168
+ Object {
1169
+ "border": "0px",
1170
+ "clip": "rect(0px, 0px, 0px, 0px)",
1171
+ "height": "1px",
1172
+ "margin": "-1px",
1173
+ "overflow": "hidden",
1174
+ "padding": "0px",
1175
+ "position": "absolute",
1176
+ "whiteSpace": "nowrap",
1177
+ "width": "1px",
1178
+ }
1179
+ }
1180
+ type="checkbox"
1181
+ value="3"
1182
+ />
1183
+ <span
1184
+ aria-hidden={true}
1185
+ className="chakra-checkbox__control css-dnty2r"
1186
+ data-invalid=""
1187
+ onMouseDown={[Function]}
1188
+ onMouseEnter={[Function]}
1189
+ onMouseLeave={[Function]}
1190
+ onMouseUp={[Function]}
1191
+ >
1192
+ <svg
1193
+ className="chakra-icon css-1vfv7ic"
1194
+ focusable={false}
1195
+ viewBox="0 0 24 24"
1196
+ >
1197
+ <path
1198
+ 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"
1199
+ fill="currentColor"
1200
+ />
1201
+ </svg>
1202
+ </span>
1203
+ <span
1204
+ className="chakra-checkbox__label css-1oeb2oe"
1205
+ data-invalid=""
1206
+ onMouseDown={[Function]}
1207
+ onTouchStart={[Function]}
1208
+ >
1209
+ Checkbox 3
1210
+ </span>
1211
+ </label>
1212
+ </div>
1213
+ </div>
1214
+ </fieldset>
1215
+ `;
1216
+
1217
+ exports[`Checkbox renders the UI snapshot correctly 9`] = `
1218
+ <fieldset
1219
+ className="css-1u8qly9"
1220
+ id="disabled-checkbox-group"
1221
+ >
1222
+ <legend>
1223
+ disabled
1224
+ </legend>
1225
+ <div
1226
+ className="chakra-stack css-1wdv1uh"
1227
+ data-testid="checkbox-group"
1228
+ id="disabled"
1229
+ >
1230
+ <div
1231
+ className="css-1xdhyk6"
1232
+ id="disabled-0-wrapper"
1233
+ >
1234
+ <label
1235
+ className="chakra-checkbox css-scawxr"
1236
+ data-disabled=""
1237
+ onClick={[Function]}
1238
+ >
1239
+ <input
1240
+ aria-disabled={true}
1241
+ aria-invalid={false}
1242
+ checked={false}
1243
+ className="chakra-checkbox__input"
1244
+ disabled={true}
1245
+ id="disabled-0"
1246
+ name="disabled"
1247
+ onBlur={[Function]}
1248
+ onChange={[Function]}
1249
+ onFocus={[Function]}
1250
+ onKeyDown={[Function]}
1251
+ onKeyUp={[Function]}
1252
+ required={false}
1253
+ style={
1254
+ Object {
1255
+ "border": "0px",
1256
+ "clip": "rect(0px, 0px, 0px, 0px)",
1257
+ "height": "1px",
1258
+ "margin": "-1px",
1259
+ "overflow": "hidden",
1260
+ "padding": "0px",
1261
+ "position": "absolute",
1262
+ "whiteSpace": "nowrap",
1263
+ "width": "1px",
1264
+ }
1265
+ }
1266
+ type="checkbox"
1267
+ value="2"
1268
+ />
1269
+ <span
1270
+ aria-hidden={true}
1271
+ className="chakra-checkbox__control css-dnty2r"
1272
+ data-disabled=""
1273
+ onMouseDown={[Function]}
1274
+ onMouseEnter={[Function]}
1275
+ onMouseLeave={[Function]}
1276
+ onMouseUp={[Function]}
1277
+ >
1278
+ <svg
1279
+ className="chakra-icon css-1vfv7ic"
1280
+ focusable={false}
1281
+ viewBox="0 0 24 24"
1282
+ >
1283
+ <path
1284
+ 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"
1285
+ fill="currentColor"
1286
+ />
1287
+ </svg>
1288
+ </span>
1289
+ <span
1290
+ className="chakra-checkbox__label css-1oeb2oe"
1291
+ data-disabled=""
1292
+ onMouseDown={[Function]}
1293
+ onTouchStart={[Function]}
1294
+ >
1295
+ Checkbox 2
1296
+ </span>
1297
+ </label>
1298
+ </div>
1299
+ <div
1300
+ className="css-1xdhyk6"
1301
+ id="disabled-1-wrapper"
1302
+ >
1303
+ <label
1304
+ className="chakra-checkbox css-scawxr"
1305
+ data-disabled=""
1306
+ onClick={[Function]}
1307
+ >
1308
+ <input
1309
+ aria-disabled={true}
1310
+ aria-invalid={false}
1311
+ checked={false}
1312
+ className="chakra-checkbox__input"
1313
+ disabled={true}
1314
+ id="disabled-1"
1315
+ name="disabled"
1316
+ onBlur={[Function]}
1317
+ onChange={[Function]}
1318
+ onFocus={[Function]}
1319
+ onKeyDown={[Function]}
1320
+ onKeyUp={[Function]}
1321
+ required={false}
1322
+ style={
1323
+ Object {
1324
+ "border": "0px",
1325
+ "clip": "rect(0px, 0px, 0px, 0px)",
1326
+ "height": "1px",
1327
+ "margin": "-1px",
1328
+ "overflow": "hidden",
1329
+ "padding": "0px",
1330
+ "position": "absolute",
1331
+ "whiteSpace": "nowrap",
1332
+ "width": "1px",
1333
+ }
1334
+ }
1335
+ type="checkbox"
1336
+ value="3"
1337
+ />
1338
+ <span
1339
+ aria-hidden={true}
1340
+ className="chakra-checkbox__control css-dnty2r"
1341
+ data-disabled=""
1342
+ onMouseDown={[Function]}
1343
+ onMouseEnter={[Function]}
1344
+ onMouseLeave={[Function]}
1345
+ onMouseUp={[Function]}
1346
+ >
1347
+ <svg
1348
+ className="chakra-icon css-1vfv7ic"
1349
+ focusable={false}
1350
+ viewBox="0 0 24 24"
1351
+ >
1352
+ <path
1353
+ 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"
1354
+ fill="currentColor"
1355
+ />
1356
+ </svg>
1357
+ </span>
1358
+ <span
1359
+ className="chakra-checkbox__label css-1oeb2oe"
1360
+ data-disabled=""
1361
+ onMouseDown={[Function]}
1362
+ onTouchStart={[Function]}
1363
+ >
1364
+ Checkbox 3
1365
+ </span>
1366
+ </label>
1367
+ </div>
1368
+ </div>
1369
+ </fieldset>
1370
+ `;
1371
+
1372
+ exports[`Checkbox renders the UI snapshot correctly 10`] = `
1373
+ <fieldset
1374
+ className="css-1u8qly9"
1375
+ id="jsxLabels-checkbox-group"
1376
+ >
1377
+ <legend>
1378
+ jsxLabels
1379
+ </legend>
1380
+ <div
1381
+ className="chakra-stack css-1wdv1uh"
1382
+ data-testid="checkbox-group"
1383
+ id="jsxLabels"
1384
+ >
1385
+ <div
1386
+ className="css-1xdhyk6"
1387
+ id="jsxLabels-0-wrapper"
1388
+ >
1389
+ <label
1390
+ className="chakra-checkbox css-scawxr"
1391
+ onClick={[Function]}
1392
+ >
1393
+ <input
1394
+ aria-disabled={false}
1395
+ aria-invalid={false}
1396
+ checked={false}
1397
+ className="chakra-checkbox__input"
1398
+ disabled={false}
1399
+ id="jsxLabels-0"
1400
+ name="jsxLabels"
1401
+ onBlur={[Function]}
1402
+ onChange={[Function]}
1403
+ onFocus={[Function]}
1404
+ onKeyDown={[Function]}
1405
+ onKeyUp={[Function]}
1406
+ required={false}
1407
+ style={
1408
+ Object {
1409
+ "border": "0px",
1410
+ "clip": "rect(0px, 0px, 0px, 0px)",
1411
+ "height": "1px",
1412
+ "margin": "-1px",
1413
+ "overflow": "hidden",
1414
+ "padding": "0px",
1415
+ "position": "absolute",
1416
+ "whiteSpace": "nowrap",
1417
+ "width": "1px",
1418
+ }
1419
+ }
1420
+ type="checkbox"
1421
+ value="arts"
1422
+ />
1423
+ <span
1424
+ aria-hidden={true}
1425
+ className="chakra-checkbox__control css-dnty2r"
1426
+ onMouseDown={[Function]}
1427
+ onMouseEnter={[Function]}
1428
+ onMouseLeave={[Function]}
1429
+ onMouseUp={[Function]}
1430
+ >
1431
+ <svg
1432
+ className="chakra-icon css-1vfv7ic"
1433
+ focusable={false}
1434
+ viewBox="0 0 24 24"
1435
+ >
1436
+ <path
1437
+ 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"
1438
+ fill="currentColor"
1439
+ />
1440
+ </svg>
1441
+ </span>
1442
+ <span
1443
+ className="chakra-checkbox__label css-1oeb2oe"
1444
+ onMouseDown={[Function]}
1445
+ onTouchStart={[Function]}
1446
+ >
1447
+ <div
1448
+ className="css-k008qs"
1449
+ >
1450
+ <span>
1451
+ Arts
1452
+ </span>
1453
+ <div
1454
+ className="css-17xejub"
1455
+ />
1456
+ <span>
1457
+ 4
1458
+ </span>
1459
+ </div>
1460
+ </span>
1461
+ </label>
1462
+ </div>
1463
+ <div
1464
+ className="css-1xdhyk6"
1465
+ id="jsxLabels-1-wrapper"
1466
+ >
1467
+ <label
1468
+ className="chakra-checkbox css-scawxr"
1469
+ onClick={[Function]}
1470
+ >
1471
+ <input
1472
+ aria-disabled={false}
1473
+ aria-invalid={false}
1474
+ checked={false}
1475
+ className="chakra-checkbox__input"
1476
+ disabled={false}
1477
+ id="jsxLabels-1"
1478
+ name="jsxLabels"
1479
+ onBlur={[Function]}
1480
+ onChange={[Function]}
1481
+ onFocus={[Function]}
1482
+ onKeyDown={[Function]}
1483
+ onKeyUp={[Function]}
1484
+ required={false}
1485
+ style={
1486
+ Object {
1487
+ "border": "0px",
1488
+ "clip": "rect(0px, 0px, 0px, 0px)",
1489
+ "height": "1px",
1490
+ "margin": "-1px",
1491
+ "overflow": "hidden",
1492
+ "padding": "0px",
1493
+ "position": "absolute",
1494
+ "whiteSpace": "nowrap",
1495
+ "width": "1px",
1496
+ }
1497
+ }
1498
+ type="checkbox"
1499
+ value="English"
1500
+ />
1501
+ <span
1502
+ aria-hidden={true}
1503
+ className="chakra-checkbox__control css-dnty2r"
1504
+ onMouseDown={[Function]}
1505
+ onMouseEnter={[Function]}
1506
+ onMouseLeave={[Function]}
1507
+ onMouseUp={[Function]}
1508
+ >
1509
+ <svg
1510
+ className="chakra-icon css-1vfv7ic"
1511
+ focusable={false}
1512
+ viewBox="0 0 24 24"
1513
+ >
1514
+ <path
1515
+ 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"
1516
+ fill="currentColor"
1517
+ />
1518
+ </svg>
1519
+ </span>
1520
+ <span
1521
+ className="chakra-checkbox__label css-1oeb2oe"
1522
+ onMouseDown={[Function]}
1523
+ onTouchStart={[Function]}
1524
+ >
1525
+ <div
1526
+ className="css-k008qs"
1527
+ >
1528
+ <span>
1529
+ English
1530
+ </span>
1531
+ <div
1532
+ className="css-17xejub"
1533
+ />
1534
+ <span>
1535
+ 23
1536
+ </span>
1537
+ </div>
1538
+ </span>
1539
+ </label>
1540
+ </div>
1541
+ </div>
1542
+ </fieldset>
1543
+ `;
1544
+
1545
+ exports[`Checkbox renders the UI snapshot correctly 11`] = `
1546
+ <fieldset
1547
+ className="css-2bbtg1"
1548
+ id="chakraProps-checkbox-group"
1549
+ >
1550
+ <legend>
1551
+ chakraProps
1552
+ </legend>
1553
+ <div
1554
+ className="chakra-stack css-1wdv1uh"
1555
+ data-testid="checkbox-group"
1556
+ id="chakraProps"
1557
+ >
1558
+ <div
1559
+ className="css-1xdhyk6"
1560
+ id="chakraProps-0-wrapper"
1561
+ >
1562
+ <label
1563
+ className="chakra-checkbox css-scawxr"
1564
+ onClick={[Function]}
1565
+ >
1566
+ <input
1567
+ aria-disabled={false}
1568
+ aria-invalid={false}
1569
+ checked={false}
1570
+ className="chakra-checkbox__input"
1571
+ disabled={false}
1572
+ id="chakraProps-0"
1573
+ name="chakraProps"
1574
+ onBlur={[Function]}
1575
+ onChange={[Function]}
1576
+ onFocus={[Function]}
1577
+ onKeyDown={[Function]}
1578
+ onKeyUp={[Function]}
1579
+ required={false}
1580
+ style={
1581
+ Object {
1582
+ "border": "0px",
1583
+ "clip": "rect(0px, 0px, 0px, 0px)",
1584
+ "height": "1px",
1585
+ "margin": "-1px",
1586
+ "overflow": "hidden",
1587
+ "padding": "0px",
1588
+ "position": "absolute",
1589
+ "whiteSpace": "nowrap",
1590
+ "width": "1px",
1591
+ }
1592
+ }
1593
+ type="checkbox"
1594
+ value="2"
1595
+ />
1596
+ <span
1597
+ aria-hidden={true}
1598
+ className="chakra-checkbox__control css-dnty2r"
1599
+ onMouseDown={[Function]}
1600
+ onMouseEnter={[Function]}
1601
+ onMouseLeave={[Function]}
1602
+ onMouseUp={[Function]}
1603
+ >
1604
+ <svg
1605
+ className="chakra-icon css-1vfv7ic"
1606
+ focusable={false}
1607
+ viewBox="0 0 24 24"
1608
+ >
1609
+ <path
1610
+ 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"
1611
+ fill="currentColor"
1612
+ />
1613
+ </svg>
1614
+ </span>
1615
+ <span
1616
+ className="chakra-checkbox__label css-1oeb2oe"
1617
+ onMouseDown={[Function]}
1618
+ onTouchStart={[Function]}
1619
+ >
1620
+ Checkbox 2
1621
+ </span>
1622
+ </label>
1623
+ </div>
1624
+ <div
1625
+ className="css-1xdhyk6"
1626
+ id="chakraProps-1-wrapper"
1627
+ >
1628
+ <label
1629
+ className="chakra-checkbox css-scawxr"
1630
+ onClick={[Function]}
1631
+ >
1632
+ <input
1633
+ aria-disabled={false}
1634
+ aria-invalid={false}
1635
+ checked={false}
1636
+ className="chakra-checkbox__input"
1637
+ disabled={false}
1638
+ id="chakraProps-1"
1639
+ name="chakraProps"
1640
+ onBlur={[Function]}
1641
+ onChange={[Function]}
1642
+ onFocus={[Function]}
1643
+ onKeyDown={[Function]}
1644
+ onKeyUp={[Function]}
1645
+ required={false}
1646
+ style={
1647
+ Object {
1648
+ "border": "0px",
1649
+ "clip": "rect(0px, 0px, 0px, 0px)",
1650
+ "height": "1px",
1651
+ "margin": "-1px",
1652
+ "overflow": "hidden",
1653
+ "padding": "0px",
1654
+ "position": "absolute",
1655
+ "whiteSpace": "nowrap",
1656
+ "width": "1px",
1657
+ }
1658
+ }
1659
+ type="checkbox"
1660
+ value="3"
1661
+ />
1662
+ <span
1663
+ aria-hidden={true}
1664
+ className="chakra-checkbox__control css-dnty2r"
1665
+ onMouseDown={[Function]}
1666
+ onMouseEnter={[Function]}
1667
+ onMouseLeave={[Function]}
1668
+ onMouseUp={[Function]}
1669
+ >
1670
+ <svg
1671
+ className="chakra-icon css-1vfv7ic"
1672
+ focusable={false}
1673
+ viewBox="0 0 24 24"
1674
+ >
1675
+ <path
1676
+ 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"
1677
+ fill="currentColor"
1678
+ />
1679
+ </svg>
1680
+ </span>
1681
+ <span
1682
+ className="chakra-checkbox__label css-1oeb2oe"
1683
+ onMouseDown={[Function]}
1684
+ onTouchStart={[Function]}
1685
+ >
1686
+ Checkbox 3
1687
+ </span>
1688
+ </label>
1689
+ </div>
1690
+ </div>
1691
+ </fieldset>
1692
+ `;
1693
+
1694
+ exports[`Checkbox renders the UI snapshot correctly 12`] = `
1695
+ <fieldset
1696
+ className="css-1u8qly9"
1697
+ data-testid="props"
1698
+ id="otherProps-checkbox-group"
1699
+ >
1700
+ <legend>
1701
+ otherProps
1702
+ </legend>
1703
+ <div
1704
+ className="chakra-stack css-1wdv1uh"
1705
+ data-testid="checkbox-group"
1706
+ id="otherProps"
1707
+ >
1708
+ <div
1709
+ className="css-1xdhyk6"
1710
+ id="otherProps-0-wrapper"
1711
+ >
1712
+ <label
1713
+ className="chakra-checkbox css-scawxr"
1714
+ onClick={[Function]}
1715
+ >
1716
+ <input
1717
+ aria-disabled={false}
1718
+ aria-invalid={false}
1719
+ checked={false}
1720
+ className="chakra-checkbox__input"
1721
+ disabled={false}
1722
+ id="otherProps-0"
1723
+ name="otherProps"
1724
+ onBlur={[Function]}
1725
+ onChange={[Function]}
1726
+ onFocus={[Function]}
1727
+ onKeyDown={[Function]}
1728
+ onKeyUp={[Function]}
1729
+ required={false}
1730
+ style={
1731
+ Object {
1732
+ "border": "0px",
1733
+ "clip": "rect(0px, 0px, 0px, 0px)",
1734
+ "height": "1px",
1735
+ "margin": "-1px",
1736
+ "overflow": "hidden",
1737
+ "padding": "0px",
1738
+ "position": "absolute",
1739
+ "whiteSpace": "nowrap",
1740
+ "width": "1px",
1741
+ }
1742
+ }
1743
+ type="checkbox"
1744
+ value="2"
1745
+ />
1746
+ <span
1747
+ aria-hidden={true}
1748
+ className="chakra-checkbox__control css-dnty2r"
1749
+ onMouseDown={[Function]}
1750
+ onMouseEnter={[Function]}
1751
+ onMouseLeave={[Function]}
1752
+ onMouseUp={[Function]}
1753
+ >
1754
+ <svg
1755
+ className="chakra-icon css-1vfv7ic"
1756
+ focusable={false}
1757
+ viewBox="0 0 24 24"
1758
+ >
1759
+ <path
1760
+ 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"
1761
+ fill="currentColor"
1762
+ />
1763
+ </svg>
1764
+ </span>
1765
+ <span
1766
+ className="chakra-checkbox__label css-1oeb2oe"
1767
+ onMouseDown={[Function]}
1768
+ onTouchStart={[Function]}
1769
+ >
1770
+ Checkbox 2
1771
+ </span>
1772
+ </label>
1773
+ </div>
1774
+ <div
1775
+ className="css-1xdhyk6"
1776
+ id="otherProps-1-wrapper"
1777
+ >
1778
+ <label
1779
+ className="chakra-checkbox css-scawxr"
1780
+ onClick={[Function]}
1781
+ >
1782
+ <input
1783
+ aria-disabled={false}
1784
+ aria-invalid={false}
1785
+ checked={false}
1786
+ className="chakra-checkbox__input"
1787
+ disabled={false}
1788
+ id="otherProps-1"
1789
+ name="otherProps"
1790
+ onBlur={[Function]}
1791
+ onChange={[Function]}
1792
+ onFocus={[Function]}
1793
+ onKeyDown={[Function]}
1794
+ onKeyUp={[Function]}
1795
+ required={false}
1796
+ style={
1797
+ Object {
1798
+ "border": "0px",
1799
+ "clip": "rect(0px, 0px, 0px, 0px)",
1800
+ "height": "1px",
1801
+ "margin": "-1px",
1802
+ "overflow": "hidden",
1803
+ "padding": "0px",
1804
+ "position": "absolute",
1805
+ "whiteSpace": "nowrap",
1806
+ "width": "1px",
1807
+ }
1808
+ }
1809
+ type="checkbox"
1810
+ value="3"
1811
+ />
1812
+ <span
1813
+ aria-hidden={true}
1814
+ className="chakra-checkbox__control css-dnty2r"
1815
+ onMouseDown={[Function]}
1816
+ onMouseEnter={[Function]}
1817
+ onMouseLeave={[Function]}
1818
+ onMouseUp={[Function]}
1819
+ >
1820
+ <svg
1821
+ className="chakra-icon css-1vfv7ic"
1822
+ focusable={false}
1823
+ viewBox="0 0 24 24"
1824
+ >
1825
+ <path
1826
+ 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"
1827
+ fill="currentColor"
1828
+ />
1829
+ </svg>
1830
+ </span>
1831
+ <span
1832
+ className="chakra-checkbox__label css-1oeb2oe"
1833
+ onMouseDown={[Function]}
1834
+ onTouchStart={[Function]}
1835
+ >
1836
+ Checkbox 3
1837
+ </span>
1838
+ </label>
1839
+ </div>
1840
+ </div>
1841
+ </fieldset>
1842
+ `;