@nypl/design-system-react-components 0.25.2 → 0.25.6

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