@nypl/design-system-react-components 1.0.0 → 1.0.3-beta

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