@nypl/design-system-react-components 0.25.0 → 0.25.4

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