@nypl/design-system-react-components 1.0.2 → 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 (282) hide show
  1. package/README.md +0 -2
  2. package/dist/components/Slider/Slider.d.ts +1 -2
  3. package/dist/components/TextInput/TextInput.d.ts +2 -1
  4. package/dist/design-system-react-components.cjs.development.js +33 -10
  5. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  6. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  7. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  8. package/dist/design-system-react-components.esm.js +33 -10
  9. package/dist/design-system-react-components.esm.js.map +1 -1
  10. package/dist/hooks/{tests → __tests__}/useCarouselStyles.test.d.ts +0 -0
  11. package/dist/theme/components/global.d.ts +1 -1
  12. package/dist/theme/components/radio.d.ts +8 -0
  13. package/dist/theme/components/template.d.ts +4 -1
  14. package/package.json +2 -3
  15. package/CHANGELOG.md +0 -1430
  16. package/src/__tests__/fileMock.ts +0 -6
  17. package/src/__tests__/setup.ts +0 -27
  18. package/src/__tests__/utils/utils.test.ts +0 -18
  19. package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +0 -42
  20. package/src/components/Accordion/Accordion.stories.mdx +0 -333
  21. package/src/components/Accordion/Accordion.test.tsx +0 -237
  22. package/src/components/Accordion/Accordion.tsx +0 -137
  23. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +0 -734
  24. package/src/components/Autosuggest/Autosuggest.stories.mdx +0 -75
  25. package/src/components/Autosuggest/Autosuggest.stories.tsx +0 -211
  26. package/src/components/Autosuggest/_Autosuggest.scss +0 -51
  27. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +0 -231
  28. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +0 -144
  29. package/src/components/Breadcrumbs/Breadcrumbs.tsx +0 -98
  30. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +0 -695
  31. package/src/components/Button/Button.stories.mdx +0 -320
  32. package/src/components/Button/Button.test.tsx +0 -184
  33. package/src/components/Button/Button.tsx +0 -95
  34. package/src/components/Button/__snapshots__/Button.test.tsx.snap +0 -106
  35. package/src/components/ButtonGroup/ButtonGroup.stories.mdx +0 -178
  36. package/src/components/ButtonGroup/ButtonGroup.test.tsx +0 -141
  37. package/src/components/ButtonGroup/ButtonGroup.tsx +0 -100
  38. package/src/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap +0 -117
  39. package/src/components/Card/Card.stories.mdx +0 -1041
  40. package/src/components/Card/Card.test.tsx +0 -388
  41. package/src/components/Card/Card.tsx +0 -346
  42. package/src/components/Card/__snapshots__/Card.test.tsx.snap +0 -568
  43. package/src/components/Chakra/Box.stories.mdx +0 -52
  44. package/src/components/Chakra/Center.stories.mdx +0 -96
  45. package/src/components/Chakra/Flex.stories.mdx +0 -111
  46. package/src/components/Chakra/Grid.stories.mdx +0 -89
  47. package/src/components/Chakra/Stack.stories.mdx +0 -109
  48. package/src/components/Checkbox/Checkbox.stories.mdx +0 -243
  49. package/src/components/Checkbox/Checkbox.test.tsx +0 -350
  50. package/src/components/Checkbox/Checkbox.tsx +0 -152
  51. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +0 -661
  52. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +0 -462
  53. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +0 -492
  54. package/src/components/CheckboxGroup/CheckboxGroup.tsx +0 -173
  55. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +0 -1842
  56. package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +0 -163
  57. package/src/components/ComponentWrapper/ComponentWrapper.tsx +0 -76
  58. package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +0 -103
  59. package/src/components/DatePicker/DatePicker.stories.mdx +0 -452
  60. package/src/components/DatePicker/DatePicker.test.tsx +0 -940
  61. package/src/components/DatePicker/DatePicker.tsx +0 -450
  62. package/src/components/DatePicker/_DatePicker.scss +0 -100
  63. package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +0 -908
  64. package/src/components/Fieldset/Fieldset.stories.mdx +0 -96
  65. package/src/components/Fieldset/Fieldset.test.tsx +0 -155
  66. package/src/components/Fieldset/Fieldset.tsx +0 -55
  67. package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +0 -89
  68. package/src/components/Form/Form.stories.mdx +0 -426
  69. package/src/components/Form/Form.test.tsx +0 -234
  70. package/src/components/Form/Form.tsx +0 -124
  71. package/src/components/Form/__snapshots__/Form.test.tsx.snap +0 -115
  72. package/src/components/Grid/SimpleGrid.stories.mdx +0 -336
  73. package/src/components/Grid/SimpleGrid.test.tsx +0 -79
  74. package/src/components/Grid/SimpleGrid.tsx +0 -49
  75. package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +0 -23
  76. package/src/components/Heading/Heading.stories.mdx +0 -187
  77. package/src/components/Heading/Heading.test.tsx +0 -171
  78. package/src/components/Heading/Heading.tsx +0 -104
  79. package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +0 -90
  80. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +0 -172
  81. package/src/components/HelperErrorText/HelperErrorText.test.tsx +0 -114
  82. package/src/components/HelperErrorText/HelperErrorText.tsx +0 -62
  83. package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +0 -93
  84. package/src/components/Hero/Hero.stories.mdx +0 -378
  85. package/src/components/Hero/Hero.test.tsx +0 -611
  86. package/src/components/Hero/Hero.tsx +0 -203
  87. package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +0 -379
  88. package/src/components/HorizontalRule/HorizontalRule.stories.mdx +0 -73
  89. package/src/components/HorizontalRule/HorizontalRule.test.tsx +0 -54
  90. package/src/components/HorizontalRule/HorizontalRule.tsx +0 -27
  91. package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +0 -44
  92. package/src/components/Icons/Icon.stories.mdx +0 -413
  93. package/src/components/Icons/Icon.test.tsx +0 -120
  94. package/src/components/Icons/Icon.tsx +0 -187
  95. package/src/components/Icons/IconSvgs.tsx +0 -64
  96. package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +0 -129
  97. package/src/components/Image/Image.stories.mdx +0 -332
  98. package/src/components/Image/Image.test.tsx +0 -155
  99. package/src/components/Image/Image.tsx +0 -171
  100. package/src/components/Image/__snapshots__/Image.test.tsx.snap +0 -269
  101. package/src/components/Label/Label.stories.mdx +0 -100
  102. package/src/components/Label/Label.test.tsx +0 -116
  103. package/src/components/Label/Label.tsx +0 -55
  104. package/src/components/Label/__snapshots__/Label.test.tsx.snap +0 -45
  105. package/src/components/Link/Link.stories.mdx +0 -249
  106. package/src/components/Link/Link.test.tsx +0 -224
  107. package/src/components/Link/Link.tsx +0 -178
  108. package/src/components/Link/__snapshots__/Link.test.tsx.snap +0 -286
  109. package/src/components/List/List.stories.mdx +0 -393
  110. package/src/components/List/List.test.tsx +0 -265
  111. package/src/components/List/List.tsx +0 -156
  112. package/src/components/List/__snapshots__/List.test.tsx.snap +0 -213
  113. package/src/components/Logo/Logo.stories.mdx +0 -295
  114. package/src/components/Logo/Logo.test.tsx +0 -116
  115. package/src/components/Logo/Logo.tsx +0 -151
  116. package/src/components/Logo/LogoSvgs.tsx +0 -90
  117. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +0 -142
  118. package/src/components/Modal/Modal.stories.mdx +0 -294
  119. package/src/components/Modal/Modal.test.tsx +0 -157
  120. package/src/components/Modal/Modal.tsx +0 -154
  121. package/src/components/Modal/__snapshots__/Modal.test.tsx.snap +0 -25
  122. package/src/components/Notification/Notification.stories.mdx +0 -358
  123. package/src/components/Notification/Notification.test.tsx +0 -279
  124. package/src/components/Notification/Notification.tsx +0 -224
  125. package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +0 -525
  126. package/src/components/Pagination/Pagination.stories.mdx +0 -184
  127. package/src/components/Pagination/Pagination.test.tsx +0 -419
  128. package/src/components/Pagination/Pagination.tsx +0 -269
  129. package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +0 -544
  130. package/src/components/Placeholder/Placeholder.tsx +0 -19
  131. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +0 -360
  132. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +0 -298
  133. package/src/components/ProgressIndicator/ProgressIndicator.tsx +0 -132
  134. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +0 -434
  135. package/src/components/Radio/Radio.stories.mdx +0 -216
  136. package/src/components/Radio/Radio.test.tsx +0 -247
  137. package/src/components/Radio/Radio.tsx +0 -119
  138. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +0 -451
  139. package/src/components/RadioGroup/RadioGroup.stories.mdx +0 -479
  140. package/src/components/RadioGroup/RadioGroup.test.tsx +0 -471
  141. package/src/components/RadioGroup/RadioGroup.tsx +0 -171
  142. package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +0 -1550
  143. package/src/components/SearchBar/SearchBar.stories.mdx +0 -518
  144. package/src/components/SearchBar/SearchBar.test.tsx +0 -435
  145. package/src/components/SearchBar/SearchBar.tsx +0 -210
  146. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +0 -1049
  147. package/src/components/Select/Select.stories.mdx +0 -439
  148. package/src/components/Select/Select.test.tsx +0 -358
  149. package/src/components/Select/Select.tsx +0 -183
  150. package/src/components/Select/__snapshots__/Select.test.tsx.snap +0 -895
  151. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +0 -142
  152. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +0 -116
  153. package/src/components/SkeletonLoader/SkeletonLoader.tsx +0 -123
  154. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +0 -898
  155. package/src/components/SkipNavigation/SkipNavigation.stories.mdx +0 -90
  156. package/src/components/SkipNavigation/SkipNavigation.test.tsx +0 -63
  157. package/src/components/SkipNavigation/SkipNavigation.tsx +0 -51
  158. package/src/components/SkipNavigation/__snapshots__/SkipNavigation.test.tsx.snap +0 -130
  159. package/src/components/Slider/Slider.stories.mdx +0 -628
  160. package/src/components/Slider/Slider.test.tsx +0 -736
  161. package/src/components/Slider/Slider.tsx +0 -322
  162. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +0 -2186
  163. package/src/components/StatusBadge/StatusBadge.stories.mdx +0 -109
  164. package/src/components/StatusBadge/StatusBadge.test.tsx +0 -70
  165. package/src/components/StatusBadge/StatusBadge.tsx +0 -35
  166. package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +0 -47
  167. package/src/components/StructuredContent/StructuredContent.stories.mdx +0 -567
  168. package/src/components/StructuredContent/StructuredContent.test.tsx +0 -435
  169. package/src/components/StructuredContent/StructuredContent.tsx +0 -139
  170. package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +0 -368
  171. package/src/components/StyleGuide/Bidirectionality.stories.mdx +0 -206
  172. package/src/components/StyleGuide/Breakpoints.stories.mdx +0 -55
  173. package/src/components/StyleGuide/Buttons.stories.mdx +0 -194
  174. package/src/components/StyleGuide/ColorCard.tsx +0 -43
  175. package/src/components/StyleGuide/Colors.stories.mdx +0 -201
  176. package/src/components/StyleGuide/DesignTokens.stories.mdx +0 -193
  177. package/src/components/StyleGuide/Forms.stories.mdx +0 -94
  178. package/src/components/StyleGuide/Iconography.stories.mdx +0 -142
  179. package/src/components/StyleGuide/Spacing.stories.mdx +0 -116
  180. package/src/components/StyleGuide/Typography.stories.mdx +0 -419
  181. package/src/components/Table/Table.stories.mdx +0 -272
  182. package/src/components/Table/Table.test.tsx +0 -241
  183. package/src/components/Table/Table.tsx +0 -152
  184. package/src/components/Table/__snapshots__/Table.test.tsx.snap +0 -1703
  185. package/src/components/Tabs/Tabs.stories.mdx +0 -338
  186. package/src/components/Tabs/Tabs.test.tsx +0 -298
  187. package/src/components/Tabs/Tabs.tsx +0 -264
  188. package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +0 -584
  189. package/src/components/Template/Template.stories.mdx +0 -695
  190. package/src/components/Template/Template.test.tsx +0 -309
  191. package/src/components/Template/Template.tsx +0 -326
  192. package/src/components/Template/__snapshots__/Template.test.tsx.snap +0 -342
  193. package/src/components/Text/Text.stories.mdx +0 -103
  194. package/src/components/Text/Text.test.tsx +0 -63
  195. package/src/components/Text/Text.tsx +0 -50
  196. package/src/components/Text/__snapshots__/Text.test.tsx.snap +0 -50
  197. package/src/components/TextInput/TextInput.stories.mdx +0 -268
  198. package/src/components/TextInput/TextInput.test.tsx +0 -451
  199. package/src/components/TextInput/TextInput.tsx +0 -240
  200. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +0 -274
  201. package/src/components/Toggle/Toggle.stories.mdx +0 -237
  202. package/src/components/Toggle/Toggle.test.tsx +0 -170
  203. package/src/components/Toggle/Toggle.tsx +0 -128
  204. package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +0 -470
  205. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +0 -212
  206. package/src/components/VideoPlayer/VideoPlayer.test.tsx +0 -308
  207. package/src/components/VideoPlayer/VideoPlayer.tsx +0 -188
  208. package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +0 -192
  209. package/src/docs/Chakra.stories.mdx +0 -563
  210. package/src/docs/Welcome.stories.mdx +0 -148
  211. package/src/helpers/types.ts +0 -1
  212. package/src/hooks/tests/useCarouselStyles.test.ts +0 -140
  213. package/src/hooks/tests/useNYPLTheme.test.tsx +0 -36
  214. package/src/hooks/useCarouselStyles.stories.mdx +0 -30
  215. package/src/hooks/useCarouselStyles.ts +0 -35
  216. package/src/hooks/useNYPLTheme.stories.mdx +0 -98
  217. package/src/hooks/useNYPLTheme.ts +0 -91
  218. package/src/hooks/useWindowSize.stories.mdx +0 -23
  219. package/src/hooks/useWindowSize.ts +0 -40
  220. package/src/index.ts +0 -136
  221. package/src/resources.scss +0 -6
  222. package/src/styles/base/_01-breakpoints.scss +0 -27
  223. package/src/styles/base/_02-mixins.scss +0 -103
  224. package/src/styles/base/_place-holder.scss +0 -33
  225. package/src/styles/space/_space-inline.scss +0 -79
  226. package/src/styles/space/_space-inset.scss +0 -57
  227. package/src/styles/space/_space-stack.scss +0 -116
  228. package/src/styles.scss +0 -23
  229. package/src/theme/components/accordion.ts +0 -25
  230. package/src/theme/components/breadcrumb.ts +0 -94
  231. package/src/theme/components/button.ts +0 -133
  232. package/src/theme/components/buttonGroup.ts +0 -10
  233. package/src/theme/components/card.ts +0 -237
  234. package/src/theme/components/checkbox.ts +0 -110
  235. package/src/theme/components/checkboxGroup.ts +0 -10
  236. package/src/theme/components/componentWrapper.ts +0 -14
  237. package/src/theme/components/customTable.ts +0 -77
  238. package/src/theme/components/datePicker.ts +0 -17
  239. package/src/theme/components/fieldset.ts +0 -23
  240. package/src/theme/components/global.ts +0 -91
  241. package/src/theme/components/globalMixins.ts +0 -24
  242. package/src/theme/components/heading.ts +0 -79
  243. package/src/theme/components/helperErrorText.ts +0 -14
  244. package/src/theme/components/hero.ts +0 -238
  245. package/src/theme/components/horizontalRule.ts +0 -17
  246. package/src/theme/components/icon.ts +0 -88
  247. package/src/theme/components/image.ts +0 -136
  248. package/src/theme/components/label.ts +0 -15
  249. package/src/theme/components/link.ts +0 -63
  250. package/src/theme/components/list.ts +0 -88
  251. package/src/theme/components/logo.ts +0 -58
  252. package/src/theme/components/notification.ts +0 -132
  253. package/src/theme/components/pagination.ts +0 -17
  254. package/src/theme/components/progressIndicator.ts +0 -67
  255. package/src/theme/components/radio.ts +0 -103
  256. package/src/theme/components/radioGroup.ts +0 -10
  257. package/src/theme/components/searchBar.ts +0 -19
  258. package/src/theme/components/select.ts +0 -72
  259. package/src/theme/components/skeletonLoader.ts +0 -113
  260. package/src/theme/components/skipNavigation.ts +0 -29
  261. package/src/theme/components/slider.ts +0 -95
  262. package/src/theme/components/statusBadge.ts +0 -26
  263. package/src/theme/components/structuredContent.ts +0 -149
  264. package/src/theme/components/tabs.ts +0 -109
  265. package/src/theme/components/template.ts +0 -114
  266. package/src/theme/components/text.ts +0 -38
  267. package/src/theme/components/textInput.ts +0 -65
  268. package/src/theme/components/toggle.ts +0 -109
  269. package/src/theme/components/videoPlayer.ts +0 -47
  270. package/src/theme/foundations/breakpoints.ts +0 -24
  271. package/src/theme/foundations/colors.ts +0 -212
  272. package/src/theme/foundations/global.ts +0 -43
  273. package/src/theme/foundations/radii.ts +0 -7
  274. package/src/theme/foundations/shadows.ts +0 -5
  275. package/src/theme/foundations/spacing.ts +0 -136
  276. package/src/theme/foundations/typography.ts +0 -107
  277. package/src/theme/index.ts +0 -131
  278. package/src/theme/provider.tsx +0 -9
  279. package/src/theme/types.ts +0 -1
  280. package/src/utils/componentCategories.ts +0 -152
  281. package/src/utils/interfaces.ts +0 -5
  282. package/src/utils/utils.ts +0 -84
@@ -1,2186 +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-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
- `;