@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,2186 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Slider Range Slider renders the UI snapshot correctly 1`] = `
4
+ <div
5
+ className="css-1u8qly9"
6
+ id="defaultRangeSlider-wrapper"
7
+ >
8
+ <label
9
+ className="css-1xdhyk6"
10
+ htmlFor="defaultRangeSlider-textInput-start"
11
+ id="defaultRangeSlider-label"
12
+ >
13
+ Label
14
+ </label>
15
+ <div
16
+ className="css-0"
17
+ >
18
+ <div
19
+ className="css-ho21zx"
20
+ id="defaultRangeSlider-textInput-start-wrapper"
21
+ >
22
+ <input
23
+ aria-label="Label - start value"
24
+ className="chakra-input css-0"
25
+ disabled={false}
26
+ id="defaultRangeSlider-textInput-start"
27
+ max={100}
28
+ min={0}
29
+ onBlur={[Function]}
30
+ onChange={[Function]}
31
+ onFocus={[Function]}
32
+ required={false}
33
+ step={1}
34
+ type="number"
35
+ value="25"
36
+ />
37
+ </div>
38
+ <div
39
+ className="css-0"
40
+ >
41
+ 0
42
+ </div>
43
+ <div
44
+ className="chakra-slider css-0"
45
+ id="slider-root-defaultRangeSlider"
46
+ style={
47
+ Object {
48
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
49
+ "outline": 0,
50
+ "paddingBottom": 0,
51
+ "paddingTop": 0,
52
+ "position": "relative",
53
+ "touchAction": "none",
54
+ "userSelect": "none",
55
+ }
56
+ }
57
+ tabIndex={-1}
58
+ >
59
+ <div
60
+ className="chakra-slider__track css-0"
61
+ data-testid="chakra-range-slider-track"
62
+ id="slider-track-defaultRangeSlider"
63
+ style={
64
+ Object {
65
+ "position": "absolute",
66
+ "top": "50%",
67
+ "transform": "translateY(-50%)",
68
+ "width": "100%",
69
+ }
70
+ }
71
+ >
72
+ <div
73
+ className="chakra-slider__filled-track css-0"
74
+ id="slider-filled-track-defaultRangeSlider"
75
+ style={
76
+ Object {
77
+ "left": "25%",
78
+ "position": "absolute",
79
+ "top": "50%",
80
+ "transform": "translateY(-50%)",
81
+ "width": "50%",
82
+ }
83
+ }
84
+ />
85
+ </div>
86
+ <div
87
+ aria-labelledby="defaultRangeSlider-label"
88
+ aria-orientation="horizontal"
89
+ aria-valuemax={75}
90
+ aria-valuemin={0}
91
+ aria-valuenow={25}
92
+ className="chakra-slider__thumb css-0"
93
+ id="slider-thumb-defaultRangeSlider-0"
94
+ onBlur={[Function]}
95
+ onFocus={[Function]}
96
+ onKeyDown={[Function]}
97
+ role="slider"
98
+ style={
99
+ Object {
100
+ "MozUserSelect": "none",
101
+ "WebkitUserSelect": "none",
102
+ "left": "calc(25% - 0px)",
103
+ "msUserSelect": "none",
104
+ "position": "absolute",
105
+ "touchAction": "none",
106
+ "userSelect": "none",
107
+ }
108
+ }
109
+ tabIndex={0}
110
+ />
111
+ <div
112
+ aria-labelledby="defaultRangeSlider-label"
113
+ aria-orientation="horizontal"
114
+ aria-valuemax={100}
115
+ aria-valuemin={25}
116
+ aria-valuenow={75}
117
+ className="chakra-slider__thumb css-0"
118
+ id="slider-thumb-defaultRangeSlider-1"
119
+ onBlur={[Function]}
120
+ onFocus={[Function]}
121
+ onKeyDown={[Function]}
122
+ role="slider"
123
+ style={
124
+ Object {
125
+ "MozUserSelect": "none",
126
+ "WebkitUserSelect": "none",
127
+ "left": "calc(75% - 0px)",
128
+ "msUserSelect": "none",
129
+ "position": "absolute",
130
+ "touchAction": "none",
131
+ "userSelect": "none",
132
+ }
133
+ }
134
+ tabIndex={0}
135
+ />
136
+ </div>
137
+ <div
138
+ className="css-0"
139
+ >
140
+ 100
141
+ </div>
142
+ <div
143
+ className="css-1f1uedm"
144
+ id="defaultRangeSlider-textInput-end-wrapper"
145
+ >
146
+ <input
147
+ aria-label="Label - end value"
148
+ className="chakra-input css-0"
149
+ disabled={false}
150
+ id="defaultRangeSlider-textInput-end"
151
+ max={100}
152
+ min={0}
153
+ onBlur={[Function]}
154
+ onChange={[Function]}
155
+ onFocus={[Function]}
156
+ required={false}
157
+ step={1}
158
+ type="number"
159
+ value="75"
160
+ />
161
+ </div>
162
+ </div>
163
+ <div
164
+ aria-atomic={true}
165
+ aria-live="off"
166
+ className="css-1xdhyk6"
167
+ dangerouslySetInnerHTML={
168
+ Object {
169
+ "__html": "Component helper text.",
170
+ }
171
+ }
172
+ data-isinvalid={false}
173
+ id="defaultRangeSlider-helperText"
174
+ />
175
+ </div>
176
+ `;
177
+
178
+ exports[`Slider Range Slider renders the UI snapshot correctly 2`] = `
179
+ <div
180
+ className="css-1u8qly9"
181
+ id="errored-wrapper"
182
+ >
183
+ <label
184
+ className="css-1xdhyk6"
185
+ htmlFor="errored-textInput-start"
186
+ id="errored-label"
187
+ >
188
+ Label
189
+ </label>
190
+ <div
191
+ className="css-0"
192
+ >
193
+ <div
194
+ className="css-ho21zx"
195
+ id="errored-textInput-start-wrapper"
196
+ >
197
+ <input
198
+ aria-invalid={true}
199
+ aria-label="Label - start value - There is an error related to this field."
200
+ className="chakra-input css-0"
201
+ disabled={false}
202
+ id="errored-textInput-start"
203
+ max={100}
204
+ min={0}
205
+ onBlur={[Function]}
206
+ onChange={[Function]}
207
+ onFocus={[Function]}
208
+ required={false}
209
+ step={1}
210
+ type="number"
211
+ value="25"
212
+ />
213
+ </div>
214
+ <div
215
+ className="css-0"
216
+ >
217
+ 0
218
+ </div>
219
+ <div
220
+ className="chakra-slider css-0"
221
+ id="slider-root-errored"
222
+ style={
223
+ Object {
224
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
225
+ "outline": 0,
226
+ "paddingBottom": 0,
227
+ "paddingTop": 0,
228
+ "position": "relative",
229
+ "touchAction": "none",
230
+ "userSelect": "none",
231
+ }
232
+ }
233
+ tabIndex={-1}
234
+ >
235
+ <div
236
+ className="chakra-slider__track css-0"
237
+ data-testid="chakra-range-slider-track"
238
+ id="slider-track-errored"
239
+ style={
240
+ Object {
241
+ "position": "absolute",
242
+ "top": "50%",
243
+ "transform": "translateY(-50%)",
244
+ "width": "100%",
245
+ }
246
+ }
247
+ >
248
+ <div
249
+ className="chakra-slider__filled-track css-0"
250
+ id="slider-filled-track-errored"
251
+ style={
252
+ Object {
253
+ "left": "25%",
254
+ "position": "absolute",
255
+ "top": "50%",
256
+ "transform": "translateY(-50%)",
257
+ "width": "50%",
258
+ }
259
+ }
260
+ />
261
+ </div>
262
+ <div
263
+ aria-labelledby="errored-label"
264
+ aria-orientation="horizontal"
265
+ aria-valuemax={75}
266
+ aria-valuemin={0}
267
+ aria-valuenow={25}
268
+ className="chakra-slider__thumb css-0"
269
+ id="slider-thumb-errored-0"
270
+ onBlur={[Function]}
271
+ onFocus={[Function]}
272
+ onKeyDown={[Function]}
273
+ role="slider"
274
+ style={
275
+ Object {
276
+ "MozUserSelect": "none",
277
+ "WebkitUserSelect": "none",
278
+ "left": "calc(25% - 0px)",
279
+ "msUserSelect": "none",
280
+ "position": "absolute",
281
+ "touchAction": "none",
282
+ "userSelect": "none",
283
+ }
284
+ }
285
+ tabIndex={0}
286
+ />
287
+ <div
288
+ aria-labelledby="errored-label"
289
+ aria-orientation="horizontal"
290
+ aria-valuemax={100}
291
+ aria-valuemin={25}
292
+ aria-valuenow={75}
293
+ className="chakra-slider__thumb css-0"
294
+ id="slider-thumb-errored-1"
295
+ onBlur={[Function]}
296
+ onFocus={[Function]}
297
+ onKeyDown={[Function]}
298
+ role="slider"
299
+ style={
300
+ Object {
301
+ "MozUserSelect": "none",
302
+ "WebkitUserSelect": "none",
303
+ "left": "calc(75% - 0px)",
304
+ "msUserSelect": "none",
305
+ "position": "absolute",
306
+ "touchAction": "none",
307
+ "userSelect": "none",
308
+ }
309
+ }
310
+ tabIndex={0}
311
+ />
312
+ </div>
313
+ <div
314
+ className="css-0"
315
+ >
316
+ 100
317
+ </div>
318
+ <div
319
+ className="css-1f1uedm"
320
+ id="errored-textInput-end-wrapper"
321
+ >
322
+ <input
323
+ aria-invalid={true}
324
+ aria-label="Label - end value - There is an error related to this field."
325
+ className="chakra-input css-0"
326
+ disabled={false}
327
+ id="errored-textInput-end"
328
+ max={100}
329
+ min={0}
330
+ onBlur={[Function]}
331
+ onChange={[Function]}
332
+ onFocus={[Function]}
333
+ required={false}
334
+ step={1}
335
+ type="number"
336
+ value="75"
337
+ />
338
+ </div>
339
+ </div>
340
+ <div
341
+ aria-atomic={true}
342
+ aria-live="polite"
343
+ className="css-1xdhyk6"
344
+ dangerouslySetInnerHTML={
345
+ Object {
346
+ "__html": "Component error text :(",
347
+ }
348
+ }
349
+ data-isinvalid={true}
350
+ id="errored-helperText"
351
+ />
352
+ </div>
353
+ `;
354
+
355
+ exports[`Slider Range Slider renders the UI snapshot correctly 3`] = `
356
+ <div
357
+ className="css-1u8qly9"
358
+ id="required-wrapper"
359
+ >
360
+ <label
361
+ className="css-1xdhyk6"
362
+ htmlFor="required-textInput-start"
363
+ id="required-label"
364
+ >
365
+ Label
366
+ <span>
367
+ (Required)
368
+ </span>
369
+ </label>
370
+ <div
371
+ className="css-0"
372
+ >
373
+ <div
374
+ className="css-ho21zx"
375
+ id="required-textInput-start-wrapper"
376
+ >
377
+ <input
378
+ aria-label="Label - start value"
379
+ aria-required={true}
380
+ className="chakra-input css-0"
381
+ disabled={false}
382
+ id="required-textInput-start"
383
+ max={100}
384
+ min={0}
385
+ onBlur={[Function]}
386
+ onChange={[Function]}
387
+ onFocus={[Function]}
388
+ required={true}
389
+ step={1}
390
+ type="number"
391
+ value="25"
392
+ />
393
+ </div>
394
+ <div
395
+ className="css-0"
396
+ >
397
+ 0
398
+ </div>
399
+ <div
400
+ className="chakra-slider css-0"
401
+ id="slider-root-required"
402
+ style={
403
+ Object {
404
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
405
+ "outline": 0,
406
+ "paddingBottom": 0,
407
+ "paddingTop": 0,
408
+ "position": "relative",
409
+ "touchAction": "none",
410
+ "userSelect": "none",
411
+ }
412
+ }
413
+ tabIndex={-1}
414
+ >
415
+ <div
416
+ className="chakra-slider__track css-0"
417
+ data-testid="chakra-range-slider-track"
418
+ id="slider-track-required"
419
+ style={
420
+ Object {
421
+ "position": "absolute",
422
+ "top": "50%",
423
+ "transform": "translateY(-50%)",
424
+ "width": "100%",
425
+ }
426
+ }
427
+ >
428
+ <div
429
+ className="chakra-slider__filled-track css-0"
430
+ id="slider-filled-track-required"
431
+ style={
432
+ Object {
433
+ "left": "25%",
434
+ "position": "absolute",
435
+ "top": "50%",
436
+ "transform": "translateY(-50%)",
437
+ "width": "50%",
438
+ }
439
+ }
440
+ />
441
+ </div>
442
+ <div
443
+ aria-labelledby="required-label"
444
+ aria-orientation="horizontal"
445
+ aria-valuemax={75}
446
+ aria-valuemin={0}
447
+ aria-valuenow={25}
448
+ className="chakra-slider__thumb css-0"
449
+ id="slider-thumb-required-0"
450
+ onBlur={[Function]}
451
+ onFocus={[Function]}
452
+ onKeyDown={[Function]}
453
+ role="slider"
454
+ style={
455
+ Object {
456
+ "MozUserSelect": "none",
457
+ "WebkitUserSelect": "none",
458
+ "left": "calc(25% - 0px)",
459
+ "msUserSelect": "none",
460
+ "position": "absolute",
461
+ "touchAction": "none",
462
+ "userSelect": "none",
463
+ }
464
+ }
465
+ tabIndex={0}
466
+ />
467
+ <div
468
+ aria-labelledby="required-label"
469
+ aria-orientation="horizontal"
470
+ aria-valuemax={100}
471
+ aria-valuemin={25}
472
+ aria-valuenow={75}
473
+ className="chakra-slider__thumb css-0"
474
+ id="slider-thumb-required-1"
475
+ onBlur={[Function]}
476
+ onFocus={[Function]}
477
+ onKeyDown={[Function]}
478
+ role="slider"
479
+ style={
480
+ Object {
481
+ "MozUserSelect": "none",
482
+ "WebkitUserSelect": "none",
483
+ "left": "calc(75% - 0px)",
484
+ "msUserSelect": "none",
485
+ "position": "absolute",
486
+ "touchAction": "none",
487
+ "userSelect": "none",
488
+ }
489
+ }
490
+ tabIndex={0}
491
+ />
492
+ </div>
493
+ <div
494
+ className="css-0"
495
+ >
496
+ 100
497
+ </div>
498
+ <div
499
+ className="css-1f1uedm"
500
+ id="required-textInput-end-wrapper"
501
+ >
502
+ <input
503
+ aria-label="Label - end value"
504
+ aria-required={true}
505
+ className="chakra-input css-0"
506
+ disabled={false}
507
+ id="required-textInput-end"
508
+ max={100}
509
+ min={0}
510
+ onBlur={[Function]}
511
+ onChange={[Function]}
512
+ onFocus={[Function]}
513
+ required={true}
514
+ step={1}
515
+ type="number"
516
+ value="75"
517
+ />
518
+ </div>
519
+ </div>
520
+ <div
521
+ aria-atomic={true}
522
+ aria-live="off"
523
+ className="css-1xdhyk6"
524
+ dangerouslySetInnerHTML={
525
+ Object {
526
+ "__html": "Component helper text.",
527
+ }
528
+ }
529
+ data-isinvalid={false}
530
+ id="required-helperText"
531
+ />
532
+ </div>
533
+ `;
534
+
535
+ exports[`Slider Range Slider renders the UI snapshot correctly 4`] = `
536
+ <div
537
+ className="css-1u8qly9"
538
+ id="disabled-wrapper"
539
+ >
540
+ <label
541
+ className="css-1xdhyk6"
542
+ htmlFor="disabled-textInput-start"
543
+ id="disabled-label"
544
+ >
545
+ Label
546
+ </label>
547
+ <div
548
+ className="css-0"
549
+ >
550
+ <div
551
+ className="css-ho21zx"
552
+ id="disabled-textInput-start-wrapper"
553
+ >
554
+ <input
555
+ aria-label="Label - start value"
556
+ className="chakra-input css-0"
557
+ disabled={true}
558
+ id="disabled-textInput-start"
559
+ max={100}
560
+ min={0}
561
+ onBlur={[Function]}
562
+ onChange={[Function]}
563
+ onFocus={[Function]}
564
+ required={false}
565
+ step={1}
566
+ type="number"
567
+ value="25"
568
+ />
569
+ </div>
570
+ <div
571
+ className="css-0"
572
+ >
573
+ 0
574
+ </div>
575
+ <div
576
+ aria-disabled={true}
577
+ className="chakra-slider css-0"
578
+ id="slider-root-disabled"
579
+ style={
580
+ Object {
581
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
582
+ "outline": 0,
583
+ "paddingBottom": 0,
584
+ "paddingTop": 0,
585
+ "position": "relative",
586
+ "touchAction": "none",
587
+ "userSelect": "none",
588
+ }
589
+ }
590
+ tabIndex={-1}
591
+ >
592
+ <div
593
+ className="chakra-slider__track css-0"
594
+ data-disabled=""
595
+ data-testid="chakra-range-slider-track"
596
+ id="slider-track-disabled"
597
+ style={
598
+ Object {
599
+ "position": "absolute",
600
+ "top": "50%",
601
+ "transform": "translateY(-50%)",
602
+ "width": "100%",
603
+ }
604
+ }
605
+ >
606
+ <div
607
+ className="chakra-slider__filled-track css-0"
608
+ id="slider-filled-track-disabled"
609
+ style={
610
+ Object {
611
+ "left": "25%",
612
+ "position": "absolute",
613
+ "top": "50%",
614
+ "transform": "translateY(-50%)",
615
+ "width": "50%",
616
+ }
617
+ }
618
+ />
619
+ </div>
620
+ <div
621
+ aria-disabled={true}
622
+ aria-labelledby="disabled-label"
623
+ aria-orientation="horizontal"
624
+ aria-valuemax={75}
625
+ aria-valuemin={0}
626
+ aria-valuenow={25}
627
+ className="chakra-slider__thumb css-0"
628
+ id="slider-thumb-disabled-0"
629
+ onBlur={[Function]}
630
+ onFocus={[Function]}
631
+ onKeyDown={[Function]}
632
+ role="slider"
633
+ style={
634
+ Object {
635
+ "MozUserSelect": "none",
636
+ "WebkitUserSelect": "none",
637
+ "left": "calc(25% - 0px)",
638
+ "msUserSelect": "none",
639
+ "position": "absolute",
640
+ "touchAction": "none",
641
+ "userSelect": "none",
642
+ }
643
+ }
644
+ />
645
+ <div
646
+ aria-disabled={true}
647
+ aria-labelledby="disabled-label"
648
+ aria-orientation="horizontal"
649
+ aria-valuemax={100}
650
+ aria-valuemin={25}
651
+ aria-valuenow={75}
652
+ className="chakra-slider__thumb css-0"
653
+ id="slider-thumb-disabled-1"
654
+ onBlur={[Function]}
655
+ onFocus={[Function]}
656
+ onKeyDown={[Function]}
657
+ role="slider"
658
+ style={
659
+ Object {
660
+ "MozUserSelect": "none",
661
+ "WebkitUserSelect": "none",
662
+ "left": "calc(75% - 0px)",
663
+ "msUserSelect": "none",
664
+ "position": "absolute",
665
+ "touchAction": "none",
666
+ "userSelect": "none",
667
+ }
668
+ }
669
+ />
670
+ </div>
671
+ <div
672
+ className="css-0"
673
+ >
674
+ 100
675
+ </div>
676
+ <div
677
+ className="css-1f1uedm"
678
+ id="disabled-textInput-end-wrapper"
679
+ >
680
+ <input
681
+ aria-label="Label - end value"
682
+ className="chakra-input css-0"
683
+ disabled={true}
684
+ id="disabled-textInput-end"
685
+ max={100}
686
+ min={0}
687
+ onBlur={[Function]}
688
+ onChange={[Function]}
689
+ onFocus={[Function]}
690
+ required={false}
691
+ step={1}
692
+ type="number"
693
+ value="75"
694
+ />
695
+ </div>
696
+ </div>
697
+ <div
698
+ aria-atomic={true}
699
+ aria-live="off"
700
+ className="css-1xdhyk6"
701
+ dangerouslySetInnerHTML={
702
+ Object {
703
+ "__html": "Component helper text.",
704
+ }
705
+ }
706
+ data-isinvalid={false}
707
+ id="disabled-helperText"
708
+ />
709
+ </div>
710
+ `;
711
+
712
+ exports[`Slider Range Slider renders the UI snapshot correctly 5`] = `
713
+ <div
714
+ className="css-1u8qly9"
715
+ id="noLabels-wrapper"
716
+ >
717
+ <div
718
+ className="css-0"
719
+ >
720
+ <div
721
+ className="css-ho21zx"
722
+ id="noLabels-textInput-start-wrapper"
723
+ >
724
+ <input
725
+ aria-label="Label - start value"
726
+ className="chakra-input css-0"
727
+ disabled={false}
728
+ id="noLabels-textInput-start"
729
+ max={100}
730
+ min={0}
731
+ onBlur={[Function]}
732
+ onChange={[Function]}
733
+ onFocus={[Function]}
734
+ required={false}
735
+ step={1}
736
+ type="number"
737
+ value="25"
738
+ />
739
+ </div>
740
+ <div
741
+ className="css-0"
742
+ >
743
+ 0
744
+ </div>
745
+ <div
746
+ className="chakra-slider css-0"
747
+ id="slider-root-noLabels"
748
+ style={
749
+ Object {
750
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
751
+ "outline": 0,
752
+ "paddingBottom": 0,
753
+ "paddingTop": 0,
754
+ "position": "relative",
755
+ "touchAction": "none",
756
+ "userSelect": "none",
757
+ }
758
+ }
759
+ tabIndex={-1}
760
+ >
761
+ <div
762
+ className="chakra-slider__track css-0"
763
+ data-testid="chakra-range-slider-track"
764
+ id="slider-track-noLabels"
765
+ style={
766
+ Object {
767
+ "position": "absolute",
768
+ "top": "50%",
769
+ "transform": "translateY(-50%)",
770
+ "width": "100%",
771
+ }
772
+ }
773
+ >
774
+ <div
775
+ className="chakra-slider__filled-track css-0"
776
+ id="slider-filled-track-noLabels"
777
+ style={
778
+ Object {
779
+ "left": "25%",
780
+ "position": "absolute",
781
+ "top": "50%",
782
+ "transform": "translateY(-50%)",
783
+ "width": "50%",
784
+ }
785
+ }
786
+ />
787
+ </div>
788
+ <div
789
+ aria-label="Label - start value"
790
+ aria-orientation="horizontal"
791
+ aria-valuemax={75}
792
+ aria-valuemin={0}
793
+ aria-valuenow={25}
794
+ className="chakra-slider__thumb css-0"
795
+ id="slider-thumb-noLabels-0"
796
+ onBlur={[Function]}
797
+ onFocus={[Function]}
798
+ onKeyDown={[Function]}
799
+ role="slider"
800
+ style={
801
+ Object {
802
+ "MozUserSelect": "none",
803
+ "WebkitUserSelect": "none",
804
+ "left": "calc(25% - 0px)",
805
+ "msUserSelect": "none",
806
+ "position": "absolute",
807
+ "touchAction": "none",
808
+ "userSelect": "none",
809
+ }
810
+ }
811
+ tabIndex={0}
812
+ />
813
+ <div
814
+ aria-label="Label - end value"
815
+ aria-orientation="horizontal"
816
+ aria-valuemax={100}
817
+ aria-valuemin={25}
818
+ aria-valuenow={75}
819
+ className="chakra-slider__thumb css-0"
820
+ id="slider-thumb-noLabels-1"
821
+ onBlur={[Function]}
822
+ onFocus={[Function]}
823
+ onKeyDown={[Function]}
824
+ role="slider"
825
+ style={
826
+ Object {
827
+ "MozUserSelect": "none",
828
+ "WebkitUserSelect": "none",
829
+ "left": "calc(75% - 0px)",
830
+ "msUserSelect": "none",
831
+ "position": "absolute",
832
+ "touchAction": "none",
833
+ "userSelect": "none",
834
+ }
835
+ }
836
+ tabIndex={0}
837
+ />
838
+ </div>
839
+ <div
840
+ className="css-0"
841
+ >
842
+ 100
843
+ </div>
844
+ <div
845
+ className="css-1f1uedm"
846
+ id="noLabels-textInput-end-wrapper"
847
+ >
848
+ <input
849
+ aria-label="Label - end value"
850
+ className="chakra-input css-0"
851
+ disabled={false}
852
+ id="noLabels-textInput-end"
853
+ max={100}
854
+ min={0}
855
+ onBlur={[Function]}
856
+ onChange={[Function]}
857
+ onFocus={[Function]}
858
+ required={false}
859
+ step={1}
860
+ type="number"
861
+ value="75"
862
+ />
863
+ </div>
864
+ </div>
865
+ </div>
866
+ `;
867
+
868
+ exports[`Slider Range Slider renders the UI snapshot correctly 6`] = `
869
+ <div
870
+ className="css-1u8qly9"
871
+ id="noVisibleValues-wrapper"
872
+ >
873
+ <label
874
+ className="css-1xdhyk6"
875
+ htmlFor=""
876
+ id="noVisibleValues-label"
877
+ >
878
+ Label
879
+ </label>
880
+ <div
881
+ className="css-0"
882
+ >
883
+ <div
884
+ className="chakra-slider css-0"
885
+ id="slider-root-noVisibleValues"
886
+ style={
887
+ Object {
888
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
889
+ "outline": 0,
890
+ "paddingBottom": 0,
891
+ "paddingTop": 0,
892
+ "position": "relative",
893
+ "touchAction": "none",
894
+ "userSelect": "none",
895
+ }
896
+ }
897
+ tabIndex={-1}
898
+ >
899
+ <div
900
+ className="chakra-slider__track css-0"
901
+ data-testid="chakra-range-slider-track"
902
+ id="slider-track-noVisibleValues"
903
+ style={
904
+ Object {
905
+ "position": "absolute",
906
+ "top": "50%",
907
+ "transform": "translateY(-50%)",
908
+ "width": "100%",
909
+ }
910
+ }
911
+ >
912
+ <div
913
+ className="chakra-slider__filled-track css-0"
914
+ id="slider-filled-track-noVisibleValues"
915
+ style={
916
+ Object {
917
+ "left": "25%",
918
+ "position": "absolute",
919
+ "top": "50%",
920
+ "transform": "translateY(-50%)",
921
+ "width": "50%",
922
+ }
923
+ }
924
+ />
925
+ </div>
926
+ <div
927
+ aria-labelledby="noVisibleValues-label"
928
+ aria-orientation="horizontal"
929
+ aria-valuemax={75}
930
+ aria-valuemin={0}
931
+ aria-valuenow={25}
932
+ className="chakra-slider__thumb css-0"
933
+ id="slider-thumb-noVisibleValues-0"
934
+ onBlur={[Function]}
935
+ onFocus={[Function]}
936
+ onKeyDown={[Function]}
937
+ role="slider"
938
+ style={
939
+ Object {
940
+ "MozUserSelect": "none",
941
+ "WebkitUserSelect": "none",
942
+ "left": "calc(25% - 0px)",
943
+ "msUserSelect": "none",
944
+ "position": "absolute",
945
+ "touchAction": "none",
946
+ "userSelect": "none",
947
+ }
948
+ }
949
+ tabIndex={0}
950
+ />
951
+ <div
952
+ aria-labelledby="noVisibleValues-label"
953
+ aria-orientation="horizontal"
954
+ aria-valuemax={100}
955
+ aria-valuemin={25}
956
+ aria-valuenow={75}
957
+ className="chakra-slider__thumb css-0"
958
+ id="slider-thumb-noVisibleValues-1"
959
+ onBlur={[Function]}
960
+ onFocus={[Function]}
961
+ onKeyDown={[Function]}
962
+ role="slider"
963
+ style={
964
+ Object {
965
+ "MozUserSelect": "none",
966
+ "WebkitUserSelect": "none",
967
+ "left": "calc(75% - 0px)",
968
+ "msUserSelect": "none",
969
+ "position": "absolute",
970
+ "touchAction": "none",
971
+ "userSelect": "none",
972
+ }
973
+ }
974
+ tabIndex={0}
975
+ />
976
+ </div>
977
+ </div>
978
+ <div
979
+ aria-atomic={true}
980
+ aria-live="off"
981
+ className="css-1xdhyk6"
982
+ dangerouslySetInnerHTML={
983
+ Object {
984
+ "__html": "Component helper text.",
985
+ }
986
+ }
987
+ data-isinvalid={false}
988
+ id="noVisibleValues-helperText"
989
+ />
990
+ </div>
991
+ `;
992
+
993
+ exports[`Slider Range Slider renders the UI snapshot correctly 7`] = `
994
+ <div
995
+ className="css-1u8qly9"
996
+ id="onlySlider-wrapper"
997
+ >
998
+ <div
999
+ className="css-0"
1000
+ >
1001
+ <div
1002
+ className="chakra-slider css-0"
1003
+ id="slider-root-onlySlider"
1004
+ style={
1005
+ Object {
1006
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1007
+ "outline": 0,
1008
+ "paddingBottom": 0,
1009
+ "paddingTop": 0,
1010
+ "position": "relative",
1011
+ "touchAction": "none",
1012
+ "userSelect": "none",
1013
+ }
1014
+ }
1015
+ tabIndex={-1}
1016
+ >
1017
+ <div
1018
+ className="chakra-slider__track css-0"
1019
+ data-testid="chakra-range-slider-track"
1020
+ id="slider-track-onlySlider"
1021
+ style={
1022
+ Object {
1023
+ "position": "absolute",
1024
+ "top": "50%",
1025
+ "transform": "translateY(-50%)",
1026
+ "width": "100%",
1027
+ }
1028
+ }
1029
+ >
1030
+ <div
1031
+ className="chakra-slider__filled-track css-0"
1032
+ id="slider-filled-track-onlySlider"
1033
+ style={
1034
+ Object {
1035
+ "left": "25%",
1036
+ "position": "absolute",
1037
+ "top": "50%",
1038
+ "transform": "translateY(-50%)",
1039
+ "width": "50%",
1040
+ }
1041
+ }
1042
+ />
1043
+ </div>
1044
+ <div
1045
+ aria-label="Label - start value"
1046
+ aria-orientation="horizontal"
1047
+ aria-valuemax={75}
1048
+ aria-valuemin={0}
1049
+ aria-valuenow={25}
1050
+ className="chakra-slider__thumb css-0"
1051
+ id="slider-thumb-onlySlider-0"
1052
+ onBlur={[Function]}
1053
+ onFocus={[Function]}
1054
+ onKeyDown={[Function]}
1055
+ role="slider"
1056
+ style={
1057
+ Object {
1058
+ "MozUserSelect": "none",
1059
+ "WebkitUserSelect": "none",
1060
+ "left": "calc(25% - 0px)",
1061
+ "msUserSelect": "none",
1062
+ "position": "absolute",
1063
+ "touchAction": "none",
1064
+ "userSelect": "none",
1065
+ }
1066
+ }
1067
+ tabIndex={0}
1068
+ />
1069
+ <div
1070
+ aria-label="Label - end value"
1071
+ aria-orientation="horizontal"
1072
+ aria-valuemax={100}
1073
+ aria-valuemin={25}
1074
+ aria-valuenow={75}
1075
+ className="chakra-slider__thumb css-0"
1076
+ id="slider-thumb-onlySlider-1"
1077
+ onBlur={[Function]}
1078
+ onFocus={[Function]}
1079
+ onKeyDown={[Function]}
1080
+ role="slider"
1081
+ style={
1082
+ Object {
1083
+ "MozUserSelect": "none",
1084
+ "WebkitUserSelect": "none",
1085
+ "left": "calc(75% - 0px)",
1086
+ "msUserSelect": "none",
1087
+ "position": "absolute",
1088
+ "touchAction": "none",
1089
+ "userSelect": "none",
1090
+ }
1091
+ }
1092
+ tabIndex={0}
1093
+ />
1094
+ </div>
1095
+ </div>
1096
+ </div>
1097
+ `;
1098
+
1099
+ exports[`Slider Single Slider renders the UI snapshot correctly 1`] = `
1100
+ <div
1101
+ className="css-1u8qly9"
1102
+ id="defaultSlider-wrapper"
1103
+ >
1104
+ <label
1105
+ className="css-1xdhyk6"
1106
+ htmlFor="defaultSlider-textInput-end"
1107
+ id="defaultSlider-label"
1108
+ >
1109
+ Label
1110
+ </label>
1111
+ <div
1112
+ className="css-0"
1113
+ >
1114
+ <div
1115
+ className="css-0"
1116
+ >
1117
+ 0
1118
+ </div>
1119
+ <div
1120
+ className="chakra-slider css-0"
1121
+ style={
1122
+ Object {
1123
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1124
+ "outline": 0,
1125
+ "paddingBottom": 0,
1126
+ "paddingTop": 0,
1127
+ "position": "relative",
1128
+ "touchAction": "none",
1129
+ "userSelect": "none",
1130
+ }
1131
+ }
1132
+ tabIndex={-1}
1133
+ >
1134
+ <div
1135
+ className="chakra-slider__track css-0"
1136
+ id="slider-track-defaultSlider"
1137
+ style={
1138
+ Object {
1139
+ "position": "absolute",
1140
+ "top": "50%",
1141
+ "transform": "translateY(-50%)",
1142
+ "width": "100%",
1143
+ }
1144
+ }
1145
+ >
1146
+ <div
1147
+ className="chakra-slider__filled-track css-0"
1148
+ style={
1149
+ Object {
1150
+ "left": "0%",
1151
+ "position": "absolute",
1152
+ "top": "50%",
1153
+ "transform": "translateY(-50%)",
1154
+ "width": "50%",
1155
+ }
1156
+ }
1157
+ />
1158
+ </div>
1159
+ <div
1160
+ aria-labelledby="defaultSlider-label"
1161
+ aria-orientation="horizontal"
1162
+ aria-valuemax={100}
1163
+ aria-valuemin={0}
1164
+ aria-valuenow={50}
1165
+ className="chakra-slider__thumb css-0"
1166
+ id="slider-thumb-defaultSlider"
1167
+ onBlur={[Function]}
1168
+ onFocus={[Function]}
1169
+ onKeyDown={[Function]}
1170
+ role="slider"
1171
+ style={
1172
+ Object {
1173
+ "MozUserSelect": "none",
1174
+ "WebkitUserSelect": "none",
1175
+ "left": "calc(50% - 0px)",
1176
+ "msUserSelect": "none",
1177
+ "position": "absolute",
1178
+ "touchAction": "none",
1179
+ "userSelect": "none",
1180
+ }
1181
+ }
1182
+ tabIndex={0}
1183
+ />
1184
+ <input
1185
+ type="hidden"
1186
+ value={50}
1187
+ />
1188
+ </div>
1189
+ <div
1190
+ className="css-0"
1191
+ >
1192
+ 100
1193
+ </div>
1194
+ <div
1195
+ className="css-1f1uedm"
1196
+ id="defaultSlider-textInput-end-wrapper"
1197
+ >
1198
+ <input
1199
+ aria-label="Label"
1200
+ className="chakra-input css-0"
1201
+ disabled={false}
1202
+ id="defaultSlider-textInput-end"
1203
+ max={100}
1204
+ min={0}
1205
+ onBlur={[Function]}
1206
+ onChange={[Function]}
1207
+ onFocus={[Function]}
1208
+ required={false}
1209
+ step={1}
1210
+ type="number"
1211
+ value="50"
1212
+ />
1213
+ </div>
1214
+ </div>
1215
+ <div
1216
+ aria-atomic={true}
1217
+ aria-live="off"
1218
+ className="css-1xdhyk6"
1219
+ dangerouslySetInnerHTML={
1220
+ Object {
1221
+ "__html": "Component helper text.",
1222
+ }
1223
+ }
1224
+ data-isinvalid={false}
1225
+ id="defaultSlider-helperText"
1226
+ />
1227
+ </div>
1228
+ `;
1229
+
1230
+ exports[`Slider Single Slider renders the UI snapshot correctly 2`] = `
1231
+ <div
1232
+ className="css-1u8qly9"
1233
+ id="errored-wrapper"
1234
+ >
1235
+ <label
1236
+ className="css-1xdhyk6"
1237
+ htmlFor="errored-textInput-end"
1238
+ id="errored-label"
1239
+ >
1240
+ Label
1241
+ </label>
1242
+ <div
1243
+ className="css-0"
1244
+ >
1245
+ <div
1246
+ className="css-0"
1247
+ >
1248
+ 0
1249
+ </div>
1250
+ <div
1251
+ className="chakra-slider css-0"
1252
+ style={
1253
+ Object {
1254
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1255
+ "outline": 0,
1256
+ "paddingBottom": 0,
1257
+ "paddingTop": 0,
1258
+ "position": "relative",
1259
+ "touchAction": "none",
1260
+ "userSelect": "none",
1261
+ }
1262
+ }
1263
+ tabIndex={-1}
1264
+ >
1265
+ <div
1266
+ className="chakra-slider__track css-0"
1267
+ id="slider-track-errored"
1268
+ style={
1269
+ Object {
1270
+ "position": "absolute",
1271
+ "top": "50%",
1272
+ "transform": "translateY(-50%)",
1273
+ "width": "100%",
1274
+ }
1275
+ }
1276
+ >
1277
+ <div
1278
+ className="chakra-slider__filled-track css-0"
1279
+ style={
1280
+ Object {
1281
+ "left": "0%",
1282
+ "position": "absolute",
1283
+ "top": "50%",
1284
+ "transform": "translateY(-50%)",
1285
+ "width": "50%",
1286
+ }
1287
+ }
1288
+ />
1289
+ </div>
1290
+ <div
1291
+ aria-labelledby="errored-label"
1292
+ aria-orientation="horizontal"
1293
+ aria-valuemax={100}
1294
+ aria-valuemin={0}
1295
+ aria-valuenow={50}
1296
+ className="chakra-slider__thumb css-0"
1297
+ id="slider-thumb-errored"
1298
+ onBlur={[Function]}
1299
+ onFocus={[Function]}
1300
+ onKeyDown={[Function]}
1301
+ role="slider"
1302
+ style={
1303
+ Object {
1304
+ "MozUserSelect": "none",
1305
+ "WebkitUserSelect": "none",
1306
+ "left": "calc(50% - 0px)",
1307
+ "msUserSelect": "none",
1308
+ "position": "absolute",
1309
+ "touchAction": "none",
1310
+ "userSelect": "none",
1311
+ }
1312
+ }
1313
+ tabIndex={0}
1314
+ />
1315
+ <input
1316
+ type="hidden"
1317
+ value={50}
1318
+ />
1319
+ </div>
1320
+ <div
1321
+ className="css-0"
1322
+ >
1323
+ 100
1324
+ </div>
1325
+ <div
1326
+ className="css-1f1uedm"
1327
+ id="errored-textInput-end-wrapper"
1328
+ >
1329
+ <input
1330
+ aria-invalid={true}
1331
+ aria-label="Label - There is an error related to this field."
1332
+ className="chakra-input css-0"
1333
+ disabled={false}
1334
+ id="errored-textInput-end"
1335
+ max={100}
1336
+ min={0}
1337
+ onBlur={[Function]}
1338
+ onChange={[Function]}
1339
+ onFocus={[Function]}
1340
+ required={false}
1341
+ step={1}
1342
+ type="number"
1343
+ value="50"
1344
+ />
1345
+ </div>
1346
+ </div>
1347
+ <div
1348
+ aria-atomic={true}
1349
+ aria-live="polite"
1350
+ className="css-1xdhyk6"
1351
+ dangerouslySetInnerHTML={
1352
+ Object {
1353
+ "__html": "Component error text :(",
1354
+ }
1355
+ }
1356
+ data-isinvalid={true}
1357
+ id="errored-helperText"
1358
+ />
1359
+ </div>
1360
+ `;
1361
+
1362
+ exports[`Slider Single Slider renders the UI snapshot correctly 3`] = `
1363
+ <div
1364
+ className="css-1u8qly9"
1365
+ id="required-wrapper"
1366
+ >
1367
+ <label
1368
+ className="css-1xdhyk6"
1369
+ htmlFor="required-textInput-end"
1370
+ id="required-label"
1371
+ >
1372
+ Label
1373
+ <span>
1374
+ (Required)
1375
+ </span>
1376
+ </label>
1377
+ <div
1378
+ className="css-0"
1379
+ >
1380
+ <div
1381
+ className="css-0"
1382
+ >
1383
+ 0
1384
+ </div>
1385
+ <div
1386
+ className="chakra-slider css-0"
1387
+ style={
1388
+ Object {
1389
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1390
+ "outline": 0,
1391
+ "paddingBottom": 0,
1392
+ "paddingTop": 0,
1393
+ "position": "relative",
1394
+ "touchAction": "none",
1395
+ "userSelect": "none",
1396
+ }
1397
+ }
1398
+ tabIndex={-1}
1399
+ >
1400
+ <div
1401
+ className="chakra-slider__track css-0"
1402
+ id="slider-track-required"
1403
+ style={
1404
+ Object {
1405
+ "position": "absolute",
1406
+ "top": "50%",
1407
+ "transform": "translateY(-50%)",
1408
+ "width": "100%",
1409
+ }
1410
+ }
1411
+ >
1412
+ <div
1413
+ className="chakra-slider__filled-track css-0"
1414
+ style={
1415
+ Object {
1416
+ "left": "0%",
1417
+ "position": "absolute",
1418
+ "top": "50%",
1419
+ "transform": "translateY(-50%)",
1420
+ "width": "50%",
1421
+ }
1422
+ }
1423
+ />
1424
+ </div>
1425
+ <div
1426
+ aria-labelledby="required-label"
1427
+ aria-orientation="horizontal"
1428
+ aria-valuemax={100}
1429
+ aria-valuemin={0}
1430
+ aria-valuenow={50}
1431
+ className="chakra-slider__thumb css-0"
1432
+ id="slider-thumb-required"
1433
+ onBlur={[Function]}
1434
+ onFocus={[Function]}
1435
+ onKeyDown={[Function]}
1436
+ role="slider"
1437
+ style={
1438
+ Object {
1439
+ "MozUserSelect": "none",
1440
+ "WebkitUserSelect": "none",
1441
+ "left": "calc(50% - 0px)",
1442
+ "msUserSelect": "none",
1443
+ "position": "absolute",
1444
+ "touchAction": "none",
1445
+ "userSelect": "none",
1446
+ }
1447
+ }
1448
+ tabIndex={0}
1449
+ />
1450
+ <input
1451
+ type="hidden"
1452
+ value={50}
1453
+ />
1454
+ </div>
1455
+ <div
1456
+ className="css-0"
1457
+ >
1458
+ 100
1459
+ </div>
1460
+ <div
1461
+ className="css-1f1uedm"
1462
+ id="required-textInput-end-wrapper"
1463
+ >
1464
+ <input
1465
+ aria-label="Label"
1466
+ aria-required={true}
1467
+ className="chakra-input css-0"
1468
+ disabled={false}
1469
+ id="required-textInput-end"
1470
+ max={100}
1471
+ min={0}
1472
+ onBlur={[Function]}
1473
+ onChange={[Function]}
1474
+ onFocus={[Function]}
1475
+ required={true}
1476
+ step={1}
1477
+ type="number"
1478
+ value="50"
1479
+ />
1480
+ </div>
1481
+ </div>
1482
+ <div
1483
+ aria-atomic={true}
1484
+ aria-live="off"
1485
+ className="css-1xdhyk6"
1486
+ dangerouslySetInnerHTML={
1487
+ Object {
1488
+ "__html": "Component helper text.",
1489
+ }
1490
+ }
1491
+ data-isinvalid={false}
1492
+ id="required-helperText"
1493
+ />
1494
+ </div>
1495
+ `;
1496
+
1497
+ exports[`Slider Single Slider renders the UI snapshot correctly 4`] = `
1498
+ <div
1499
+ className="css-1u8qly9"
1500
+ id="disabled-wrapper"
1501
+ >
1502
+ <label
1503
+ className="css-1xdhyk6"
1504
+ htmlFor="disabled-textInput-end"
1505
+ id="disabled-label"
1506
+ >
1507
+ Label
1508
+ </label>
1509
+ <div
1510
+ className="css-0"
1511
+ >
1512
+ <div
1513
+ className="css-0"
1514
+ >
1515
+ 0
1516
+ </div>
1517
+ <div
1518
+ aria-disabled={true}
1519
+ className="chakra-slider css-0"
1520
+ style={
1521
+ Object {
1522
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1523
+ "outline": 0,
1524
+ "paddingBottom": 0,
1525
+ "paddingTop": 0,
1526
+ "position": "relative",
1527
+ "touchAction": "none",
1528
+ "userSelect": "none",
1529
+ }
1530
+ }
1531
+ tabIndex={-1}
1532
+ >
1533
+ <div
1534
+ className="chakra-slider__track css-0"
1535
+ data-disabled=""
1536
+ id="slider-track-disabled"
1537
+ style={
1538
+ Object {
1539
+ "position": "absolute",
1540
+ "top": "50%",
1541
+ "transform": "translateY(-50%)",
1542
+ "width": "100%",
1543
+ }
1544
+ }
1545
+ >
1546
+ <div
1547
+ className="chakra-slider__filled-track css-0"
1548
+ style={
1549
+ Object {
1550
+ "left": "0%",
1551
+ "position": "absolute",
1552
+ "top": "50%",
1553
+ "transform": "translateY(-50%)",
1554
+ "width": "50%",
1555
+ }
1556
+ }
1557
+ />
1558
+ </div>
1559
+ <div
1560
+ aria-disabled={true}
1561
+ aria-labelledby="disabled-label"
1562
+ aria-orientation="horizontal"
1563
+ aria-valuemax={100}
1564
+ aria-valuemin={0}
1565
+ aria-valuenow={50}
1566
+ className="chakra-slider__thumb css-0"
1567
+ id="slider-thumb-disabled"
1568
+ onBlur={[Function]}
1569
+ onFocus={[Function]}
1570
+ onKeyDown={[Function]}
1571
+ role="slider"
1572
+ style={
1573
+ Object {
1574
+ "MozUserSelect": "none",
1575
+ "WebkitUserSelect": "none",
1576
+ "left": "calc(50% - 0px)",
1577
+ "msUserSelect": "none",
1578
+ "position": "absolute",
1579
+ "touchAction": "none",
1580
+ "userSelect": "none",
1581
+ }
1582
+ }
1583
+ />
1584
+ <input
1585
+ type="hidden"
1586
+ value={50}
1587
+ />
1588
+ </div>
1589
+ <div
1590
+ className="css-0"
1591
+ >
1592
+ 100
1593
+ </div>
1594
+ <div
1595
+ className="css-1f1uedm"
1596
+ id="disabled-textInput-end-wrapper"
1597
+ >
1598
+ <input
1599
+ aria-label="Label"
1600
+ className="chakra-input css-0"
1601
+ disabled={true}
1602
+ id="disabled-textInput-end"
1603
+ max={100}
1604
+ min={0}
1605
+ onBlur={[Function]}
1606
+ onChange={[Function]}
1607
+ onFocus={[Function]}
1608
+ required={false}
1609
+ step={1}
1610
+ type="number"
1611
+ value="50"
1612
+ />
1613
+ </div>
1614
+ </div>
1615
+ <div
1616
+ aria-atomic={true}
1617
+ aria-live="off"
1618
+ className="css-1xdhyk6"
1619
+ dangerouslySetInnerHTML={
1620
+ Object {
1621
+ "__html": "Component helper text.",
1622
+ }
1623
+ }
1624
+ data-isinvalid={false}
1625
+ id="disabled-helperText"
1626
+ />
1627
+ </div>
1628
+ `;
1629
+
1630
+ exports[`Slider Single Slider renders the UI snapshot correctly 5`] = `
1631
+ <div
1632
+ className="css-1u8qly9"
1633
+ id="noLabels-wrapper"
1634
+ >
1635
+ <div
1636
+ className="css-0"
1637
+ >
1638
+ <div
1639
+ className="css-0"
1640
+ >
1641
+ 0
1642
+ </div>
1643
+ <div
1644
+ className="chakra-slider css-0"
1645
+ style={
1646
+ Object {
1647
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1648
+ "outline": 0,
1649
+ "paddingBottom": 0,
1650
+ "paddingTop": 0,
1651
+ "position": "relative",
1652
+ "touchAction": "none",
1653
+ "userSelect": "none",
1654
+ }
1655
+ }
1656
+ tabIndex={-1}
1657
+ >
1658
+ <div
1659
+ className="chakra-slider__track css-0"
1660
+ id="slider-track-noLabels"
1661
+ style={
1662
+ Object {
1663
+ "position": "absolute",
1664
+ "top": "50%",
1665
+ "transform": "translateY(-50%)",
1666
+ "width": "100%",
1667
+ }
1668
+ }
1669
+ >
1670
+ <div
1671
+ className="chakra-slider__filled-track css-0"
1672
+ style={
1673
+ Object {
1674
+ "left": "0%",
1675
+ "position": "absolute",
1676
+ "top": "50%",
1677
+ "transform": "translateY(-50%)",
1678
+ "width": "50%",
1679
+ }
1680
+ }
1681
+ />
1682
+ </div>
1683
+ <div
1684
+ aria-label="Label"
1685
+ aria-orientation="horizontal"
1686
+ aria-valuemax={100}
1687
+ aria-valuemin={0}
1688
+ aria-valuenow={50}
1689
+ className="chakra-slider__thumb css-0"
1690
+ id="slider-thumb-noLabels"
1691
+ onBlur={[Function]}
1692
+ onFocus={[Function]}
1693
+ onKeyDown={[Function]}
1694
+ role="slider"
1695
+ style={
1696
+ Object {
1697
+ "MozUserSelect": "none",
1698
+ "WebkitUserSelect": "none",
1699
+ "left": "calc(50% - 0px)",
1700
+ "msUserSelect": "none",
1701
+ "position": "absolute",
1702
+ "touchAction": "none",
1703
+ "userSelect": "none",
1704
+ }
1705
+ }
1706
+ tabIndex={0}
1707
+ />
1708
+ <input
1709
+ type="hidden"
1710
+ value={50}
1711
+ />
1712
+ </div>
1713
+ <div
1714
+ className="css-0"
1715
+ >
1716
+ 100
1717
+ </div>
1718
+ <div
1719
+ className="css-1f1uedm"
1720
+ id="noLabels-textInput-end-wrapper"
1721
+ >
1722
+ <input
1723
+ aria-label="Label"
1724
+ className="chakra-input css-0"
1725
+ disabled={false}
1726
+ id="noLabels-textInput-end"
1727
+ max={100}
1728
+ min={0}
1729
+ onBlur={[Function]}
1730
+ onChange={[Function]}
1731
+ onFocus={[Function]}
1732
+ required={false}
1733
+ step={1}
1734
+ type="number"
1735
+ value="50"
1736
+ />
1737
+ </div>
1738
+ </div>
1739
+ </div>
1740
+ `;
1741
+
1742
+ exports[`Slider Single Slider renders the UI snapshot correctly 6`] = `
1743
+ <div
1744
+ className="css-1u8qly9"
1745
+ id="noVisibleValues-wrapper"
1746
+ >
1747
+ <label
1748
+ className="css-1xdhyk6"
1749
+ htmlFor=""
1750
+ id="noVisibleValues-label"
1751
+ >
1752
+ Label
1753
+ </label>
1754
+ <div
1755
+ className="css-0"
1756
+ >
1757
+ <div
1758
+ className="chakra-slider css-0"
1759
+ style={
1760
+ Object {
1761
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1762
+ "outline": 0,
1763
+ "paddingBottom": 0,
1764
+ "paddingTop": 0,
1765
+ "position": "relative",
1766
+ "touchAction": "none",
1767
+ "userSelect": "none",
1768
+ }
1769
+ }
1770
+ tabIndex={-1}
1771
+ >
1772
+ <div
1773
+ className="chakra-slider__track css-0"
1774
+ id="slider-track-noVisibleValues"
1775
+ style={
1776
+ Object {
1777
+ "position": "absolute",
1778
+ "top": "50%",
1779
+ "transform": "translateY(-50%)",
1780
+ "width": "100%",
1781
+ }
1782
+ }
1783
+ >
1784
+ <div
1785
+ className="chakra-slider__filled-track css-0"
1786
+ style={
1787
+ Object {
1788
+ "left": "0%",
1789
+ "position": "absolute",
1790
+ "top": "50%",
1791
+ "transform": "translateY(-50%)",
1792
+ "width": "50%",
1793
+ }
1794
+ }
1795
+ />
1796
+ </div>
1797
+ <div
1798
+ aria-labelledby="noVisibleValues-label"
1799
+ aria-orientation="horizontal"
1800
+ aria-valuemax={100}
1801
+ aria-valuemin={0}
1802
+ aria-valuenow={50}
1803
+ className="chakra-slider__thumb css-0"
1804
+ id="slider-thumb-noVisibleValues"
1805
+ onBlur={[Function]}
1806
+ onFocus={[Function]}
1807
+ onKeyDown={[Function]}
1808
+ role="slider"
1809
+ style={
1810
+ Object {
1811
+ "MozUserSelect": "none",
1812
+ "WebkitUserSelect": "none",
1813
+ "left": "calc(50% - 0px)",
1814
+ "msUserSelect": "none",
1815
+ "position": "absolute",
1816
+ "touchAction": "none",
1817
+ "userSelect": "none",
1818
+ }
1819
+ }
1820
+ tabIndex={0}
1821
+ />
1822
+ <input
1823
+ type="hidden"
1824
+ value={50}
1825
+ />
1826
+ </div>
1827
+ </div>
1828
+ <div
1829
+ aria-atomic={true}
1830
+ aria-live="off"
1831
+ className="css-1xdhyk6"
1832
+ dangerouslySetInnerHTML={
1833
+ Object {
1834
+ "__html": "Component helper text.",
1835
+ }
1836
+ }
1837
+ data-isinvalid={false}
1838
+ id="noVisibleValues-helperText"
1839
+ />
1840
+ </div>
1841
+ `;
1842
+
1843
+ exports[`Slider Single Slider renders the UI snapshot correctly 7`] = `
1844
+ <div
1845
+ className="css-1u8qly9"
1846
+ id="onlySlider-wrapper"
1847
+ >
1848
+ <div
1849
+ className="css-0"
1850
+ >
1851
+ <div
1852
+ className="chakra-slider css-0"
1853
+ style={
1854
+ Object {
1855
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1856
+ "outline": 0,
1857
+ "paddingBottom": 0,
1858
+ "paddingTop": 0,
1859
+ "position": "relative",
1860
+ "touchAction": "none",
1861
+ "userSelect": "none",
1862
+ }
1863
+ }
1864
+ tabIndex={-1}
1865
+ >
1866
+ <div
1867
+ className="chakra-slider__track css-0"
1868
+ id="slider-track-onlySlider"
1869
+ style={
1870
+ Object {
1871
+ "position": "absolute",
1872
+ "top": "50%",
1873
+ "transform": "translateY(-50%)",
1874
+ "width": "100%",
1875
+ }
1876
+ }
1877
+ >
1878
+ <div
1879
+ className="chakra-slider__filled-track css-0"
1880
+ style={
1881
+ Object {
1882
+ "left": "0%",
1883
+ "position": "absolute",
1884
+ "top": "50%",
1885
+ "transform": "translateY(-50%)",
1886
+ "width": "50%",
1887
+ }
1888
+ }
1889
+ />
1890
+ </div>
1891
+ <div
1892
+ aria-label="Label"
1893
+ aria-orientation="horizontal"
1894
+ aria-valuemax={100}
1895
+ aria-valuemin={0}
1896
+ aria-valuenow={50}
1897
+ className="chakra-slider__thumb css-0"
1898
+ id="slider-thumb-onlySlider"
1899
+ onBlur={[Function]}
1900
+ onFocus={[Function]}
1901
+ onKeyDown={[Function]}
1902
+ role="slider"
1903
+ style={
1904
+ Object {
1905
+ "MozUserSelect": "none",
1906
+ "WebkitUserSelect": "none",
1907
+ "left": "calc(50% - 0px)",
1908
+ "msUserSelect": "none",
1909
+ "position": "absolute",
1910
+ "touchAction": "none",
1911
+ "userSelect": "none",
1912
+ }
1913
+ }
1914
+ tabIndex={0}
1915
+ />
1916
+ <input
1917
+ type="hidden"
1918
+ value={50}
1919
+ />
1920
+ </div>
1921
+ </div>
1922
+ </div>
1923
+ `;
1924
+
1925
+ exports[`Slider Single Slider renders the UI snapshot correctly 8`] = `
1926
+ <div
1927
+ className="css-1y4kn3e"
1928
+ id="chakra-wrapper"
1929
+ >
1930
+ <label
1931
+ className="css-1xdhyk6"
1932
+ htmlFor="chakra-textInput-end"
1933
+ id="chakra-label"
1934
+ >
1935
+ Label
1936
+ </label>
1937
+ <div
1938
+ className="css-0"
1939
+ >
1940
+ <div
1941
+ className="css-0"
1942
+ >
1943
+ 0
1944
+ </div>
1945
+ <div
1946
+ className="chakra-slider css-0"
1947
+ style={
1948
+ Object {
1949
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1950
+ "outline": 0,
1951
+ "paddingBottom": 0,
1952
+ "paddingTop": 0,
1953
+ "position": "relative",
1954
+ "touchAction": "none",
1955
+ "userSelect": "none",
1956
+ }
1957
+ }
1958
+ tabIndex={-1}
1959
+ >
1960
+ <div
1961
+ className="chakra-slider__track css-0"
1962
+ id="slider-track-chakra"
1963
+ style={
1964
+ Object {
1965
+ "position": "absolute",
1966
+ "top": "50%",
1967
+ "transform": "translateY(-50%)",
1968
+ "width": "100%",
1969
+ }
1970
+ }
1971
+ >
1972
+ <div
1973
+ className="chakra-slider__filled-track css-0"
1974
+ style={
1975
+ Object {
1976
+ "left": "0%",
1977
+ "position": "absolute",
1978
+ "top": "50%",
1979
+ "transform": "translateY(-50%)",
1980
+ "width": "50%",
1981
+ }
1982
+ }
1983
+ />
1984
+ </div>
1985
+ <div
1986
+ aria-labelledby="chakra-label"
1987
+ aria-orientation="horizontal"
1988
+ aria-valuemax={100}
1989
+ aria-valuemin={0}
1990
+ aria-valuenow={50}
1991
+ className="chakra-slider__thumb css-0"
1992
+ id="slider-thumb-chakra"
1993
+ onBlur={[Function]}
1994
+ onFocus={[Function]}
1995
+ onKeyDown={[Function]}
1996
+ role="slider"
1997
+ style={
1998
+ Object {
1999
+ "MozUserSelect": "none",
2000
+ "WebkitUserSelect": "none",
2001
+ "left": "calc(50% - 0px)",
2002
+ "msUserSelect": "none",
2003
+ "position": "absolute",
2004
+ "touchAction": "none",
2005
+ "userSelect": "none",
2006
+ }
2007
+ }
2008
+ tabIndex={0}
2009
+ />
2010
+ <input
2011
+ type="hidden"
2012
+ value={50}
2013
+ />
2014
+ </div>
2015
+ <div
2016
+ className="css-0"
2017
+ >
2018
+ 100
2019
+ </div>
2020
+ <div
2021
+ className="css-1f1uedm"
2022
+ id="chakra-textInput-end-wrapper"
2023
+ >
2024
+ <input
2025
+ aria-label="Label"
2026
+ className="chakra-input css-0"
2027
+ disabled={false}
2028
+ id="chakra-textInput-end"
2029
+ max={100}
2030
+ min={0}
2031
+ onBlur={[Function]}
2032
+ onChange={[Function]}
2033
+ onFocus={[Function]}
2034
+ required={false}
2035
+ step={1}
2036
+ type="number"
2037
+ value="50"
2038
+ />
2039
+ </div>
2040
+ </div>
2041
+ <div
2042
+ aria-atomic={true}
2043
+ aria-live="off"
2044
+ className="css-1xdhyk6"
2045
+ dangerouslySetInnerHTML={
2046
+ Object {
2047
+ "__html": "Component helper text.",
2048
+ }
2049
+ }
2050
+ data-isinvalid={false}
2051
+ id="chakra-helperText"
2052
+ />
2053
+ </div>
2054
+ `;
2055
+
2056
+ exports[`Slider Single Slider renders the UI snapshot correctly 9`] = `
2057
+ <div
2058
+ className="css-1u8qly9"
2059
+ data-testid="props"
2060
+ id="props-wrapper"
2061
+ >
2062
+ <label
2063
+ className="css-1xdhyk6"
2064
+ htmlFor="props-textInput-end"
2065
+ id="props-label"
2066
+ >
2067
+ Label
2068
+ </label>
2069
+ <div
2070
+ className="css-0"
2071
+ >
2072
+ <div
2073
+ className="css-0"
2074
+ >
2075
+ 0
2076
+ </div>
2077
+ <div
2078
+ className="chakra-slider css-0"
2079
+ style={
2080
+ Object {
2081
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
2082
+ "outline": 0,
2083
+ "paddingBottom": 0,
2084
+ "paddingTop": 0,
2085
+ "position": "relative",
2086
+ "touchAction": "none",
2087
+ "userSelect": "none",
2088
+ }
2089
+ }
2090
+ tabIndex={-1}
2091
+ >
2092
+ <div
2093
+ className="chakra-slider__track css-0"
2094
+ id="slider-track-props"
2095
+ style={
2096
+ Object {
2097
+ "position": "absolute",
2098
+ "top": "50%",
2099
+ "transform": "translateY(-50%)",
2100
+ "width": "100%",
2101
+ }
2102
+ }
2103
+ >
2104
+ <div
2105
+ className="chakra-slider__filled-track css-0"
2106
+ style={
2107
+ Object {
2108
+ "left": "0%",
2109
+ "position": "absolute",
2110
+ "top": "50%",
2111
+ "transform": "translateY(-50%)",
2112
+ "width": "50%",
2113
+ }
2114
+ }
2115
+ />
2116
+ </div>
2117
+ <div
2118
+ aria-labelledby="props-label"
2119
+ aria-orientation="horizontal"
2120
+ aria-valuemax={100}
2121
+ aria-valuemin={0}
2122
+ aria-valuenow={50}
2123
+ className="chakra-slider__thumb css-0"
2124
+ id="slider-thumb-props"
2125
+ onBlur={[Function]}
2126
+ onFocus={[Function]}
2127
+ onKeyDown={[Function]}
2128
+ role="slider"
2129
+ style={
2130
+ Object {
2131
+ "MozUserSelect": "none",
2132
+ "WebkitUserSelect": "none",
2133
+ "left": "calc(50% - 0px)",
2134
+ "msUserSelect": "none",
2135
+ "position": "absolute",
2136
+ "touchAction": "none",
2137
+ "userSelect": "none",
2138
+ }
2139
+ }
2140
+ tabIndex={0}
2141
+ />
2142
+ <input
2143
+ type="hidden"
2144
+ value={50}
2145
+ />
2146
+ </div>
2147
+ <div
2148
+ className="css-0"
2149
+ >
2150
+ 100
2151
+ </div>
2152
+ <div
2153
+ className="css-1f1uedm"
2154
+ id="props-textInput-end-wrapper"
2155
+ >
2156
+ <input
2157
+ aria-label="Label"
2158
+ className="chakra-input css-0"
2159
+ disabled={false}
2160
+ id="props-textInput-end"
2161
+ max={100}
2162
+ min={0}
2163
+ onBlur={[Function]}
2164
+ onChange={[Function]}
2165
+ onFocus={[Function]}
2166
+ required={false}
2167
+ step={1}
2168
+ type="number"
2169
+ value="50"
2170
+ />
2171
+ </div>
2172
+ </div>
2173
+ <div
2174
+ aria-atomic={true}
2175
+ aria-live="off"
2176
+ className="css-1xdhyk6"
2177
+ dangerouslySetInnerHTML={
2178
+ Object {
2179
+ "__html": "Component helper text.",
2180
+ }
2181
+ }
2182
+ data-isinvalid={false}
2183
+ id="props-helperText"
2184
+ />
2185
+ </div>
2186
+ `;