@recursica/mantine-adapter 0.22.0 → 0.23.0
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.
- package/CHANGELOG.md +11 -0
- package/dist/mantine-adapter.cjs +1 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +1682 -1410
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/DatePicker/DatePicker.d.ts +8 -2
- package/dist/src/components/Slider/Slider.d.ts +24 -2
- package/dist/test.html +1 -0
- package/package.json +2 -2
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/DatePicker/DATEPICKER_IMPLEMENTATION_NOTES.md +16 -0
- package/src/components/DatePicker/DatePicker.module.css +282 -41
- package/src/components/DatePicker/DatePicker.stories.tsx +127 -4
- package/src/components/DatePicker/DatePicker.tsx +166 -5
- package/src/components/FormControlWrapper/FormControlWrapper.module.css +1 -0
- package/src/components/Loader/LOADER_IMPLEMENTATION_NOTES.md +1 -2
- package/src/components/Loader/Loader.module.css +3 -9
- package/src/components/Slider/IMPLEMENTATION_NOTES.md +49 -0
- package/src/components/Slider/Slider.module.css +495 -86
- package/src/components/Slider/Slider.stories.tsx +159 -4
- package/src/components/Slider/Slider.tsx +283 -4
|
@@ -1,89 +1,498 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
3
|
-
* -
|
|
4
|
-
* -
|
|
5
|
-
* -
|
|
2
|
+
* HARDCODED VALUES:
|
|
3
|
+
* - display: flex; align-items: center; width: 100%; (Standard CSS flexbox layouts for bidirectional components)
|
|
4
|
+
* - flex-grow: 1; flex-shrink: 0; (Layout control structures)
|
|
5
|
+
* - transform: translateX(-50%); (Mantine's standard step marks positioning alignment offset)
|
|
6
|
+
* - outline: none; border-style: solid; (Standard focus reset and border outlines)
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
|
-
/*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/*
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/*
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
9
|
+
/* ==========================================
|
|
10
|
+
1. Baseline, Reset & Layout Overrides
|
|
11
|
+
========================================== */
|
|
12
|
+
|
|
13
|
+
/* Stacked Layout Spacing Override */
|
|
14
|
+
.layoutOverride {
|
|
15
|
+
--form-control-margin-bottom: var(
|
|
16
|
+
--recursica_ui-kit_components_slider_variants_layouts_stacked_properties_top-bottom-margin
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Side-by-Side Layout Spacing Override */
|
|
21
|
+
.layoutOverride[data-form-layout="side-by-side"] {
|
|
22
|
+
--form-control-margin-bottom: var(
|
|
23
|
+
--recursica_ui-kit_components_slider_variants_layouts_side-by-side_properties_top-bottom-margin
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sliderContainer {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
width: 100%;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
gap: var(--recursica_ui-kit_components_slider_properties_input-gap);
|
|
33
|
+
color: var(--form-field-text-valued);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sliderTrackWrapper {
|
|
37
|
+
flex-grow: 1;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.iconWrapper {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
width: var(--recursica_ui-kit_components_slider_properties_icon-size);
|
|
49
|
+
height: var(--recursica_ui-kit_components_slider_properties_icon-size);
|
|
50
|
+
color: var(
|
|
51
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_colors_icon-color
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* ==========================================
|
|
56
|
+
2. Slider Tracks, Bars, Thumbs, and Marks
|
|
57
|
+
========================================== */
|
|
58
|
+
|
|
59
|
+
.sliderRoot {
|
|
60
|
+
width: 100%;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sliderTrack {
|
|
65
|
+
height: var(--recursica_ui-kit_components_slider_properties_track-height);
|
|
66
|
+
border-radius: var(
|
|
67
|
+
--recursica_ui-kit_components_slider_properties_track-border-radius
|
|
68
|
+
);
|
|
69
|
+
background-color: var(
|
|
70
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_colors_track
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.sliderBar {
|
|
75
|
+
background-color: var(
|
|
76
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_colors_track-active
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.sliderThumb {
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
width: var(--recursica_ui-kit_components_slider_properties_thumb-size);
|
|
83
|
+
height: var(--recursica_ui-kit_components_slider_properties_thumb-size);
|
|
84
|
+
border-radius: var(
|
|
85
|
+
--recursica_ui-kit_components_slider_properties_thumb-border-radius
|
|
86
|
+
);
|
|
87
|
+
box-shadow: var(
|
|
88
|
+
--recursica_ui-kit_components_slider_properties_thumb-elevation
|
|
89
|
+
);
|
|
90
|
+
background-color: var(
|
|
91
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_colors_thumb
|
|
92
|
+
);
|
|
93
|
+
border: none;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
outline: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.sliderThumb:focus,
|
|
99
|
+
.sliderThumb:focus-visible {
|
|
100
|
+
outline: none;
|
|
101
|
+
background-color: var(
|
|
102
|
+
--recursica_ui-kit_components_slider_variants_states_focus_properties_colors_thumb
|
|
103
|
+
);
|
|
104
|
+
box-shadow: 0 0 0 2px
|
|
105
|
+
var(
|
|
106
|
+
--recursica_ui-kit_components_slider_variants_states_focus_properties_colors_track-active
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.sliderMark {
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
width: var(
|
|
113
|
+
--recursica_ui-kit_components_slider_properties_step-indicator-width
|
|
114
|
+
);
|
|
115
|
+
height: var(
|
|
116
|
+
--recursica_ui-kit_components_slider_properties_step-indicator-width
|
|
117
|
+
);
|
|
118
|
+
border-radius: var(
|
|
119
|
+
--recursica_ui-kit_components_slider_properties_step-indicator-border-radius
|
|
120
|
+
);
|
|
121
|
+
background-color: var(
|
|
122
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_colors_step-indicator-color
|
|
123
|
+
);
|
|
124
|
+
transform: translateX(-50%);
|
|
125
|
+
border: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.sliderMark[data-filled] {
|
|
129
|
+
background-color: var(
|
|
130
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_colors_step-indicator-color-active
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* ==========================================
|
|
135
|
+
3. Min / Max Custom Typography Labels & Floating Active Value
|
|
136
|
+
========================================== */
|
|
137
|
+
|
|
138
|
+
.minMaxGuide {
|
|
139
|
+
font-family: var(
|
|
140
|
+
--recursica_ui-kit_components_slider_properties_min-max-label_font-family
|
|
141
|
+
);
|
|
142
|
+
font-size: var(
|
|
143
|
+
--recursica_ui-kit_components_slider_properties_min-max-label_font-size
|
|
144
|
+
);
|
|
145
|
+
font-style: var(
|
|
146
|
+
--recursica_ui-kit_components_slider_properties_min-max-label_font-style
|
|
147
|
+
);
|
|
148
|
+
font-weight: var(
|
|
149
|
+
--recursica_ui-kit_components_slider_properties_min-max-label_font-weight
|
|
150
|
+
);
|
|
151
|
+
letter-spacing: var(
|
|
152
|
+
--recursica_ui-kit_components_slider_properties_min-max-label_letter-spacing
|
|
153
|
+
);
|
|
154
|
+
line-height: var(
|
|
155
|
+
--recursica_ui-kit_components_slider_properties_min-max-label_line-height
|
|
156
|
+
);
|
|
157
|
+
text-decoration: var(
|
|
158
|
+
--recursica_ui-kit_components_slider_properties_min-max-label_text-decoration
|
|
159
|
+
);
|
|
160
|
+
text-transform: var(
|
|
161
|
+
--recursica_ui-kit_components_slider_properties_min-max-label_text-transform
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/*
|
|
166
|
+
* LAYOUT DECISION: Right-Aligned Floating Current Value Container
|
|
167
|
+
* - Wrapped around the right-side max guide (or icon) as a relative flex context.
|
|
168
|
+
* - This provides the anchor for absolutely positioning the floating current value element
|
|
169
|
+
* above the guide.
|
|
170
|
+
*/
|
|
171
|
+
.rightGuideContainer {
|
|
172
|
+
position: relative;
|
|
173
|
+
display: inline-flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
flex-shrink: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/*
|
|
180
|
+
* LAYOUT DECISION: Floating Active Value Element
|
|
181
|
+
* - Absolutely positioned directly above the max guide and right-aligned (`right: 0`).
|
|
182
|
+
* - Uses a vertical gap matching the global label-to-component gap variable, ensuring
|
|
183
|
+
* that `.currentValue` is placed in perfect horizontal baseline alignment with the
|
|
184
|
+
* left-aligned form label of the component.
|
|
185
|
+
* - Typography maps back to the slider component's read-only value token definitions.
|
|
186
|
+
* - Inherits the container default/disabled/error text colors naturally.
|
|
187
|
+
*/
|
|
188
|
+
.currentValue {
|
|
189
|
+
position: absolute;
|
|
190
|
+
bottom: calc(
|
|
191
|
+
100% +
|
|
192
|
+
var(
|
|
193
|
+
--recursica_ui-kit_globals_form_properties_label-field-gap-vertical,
|
|
194
|
+
8px
|
|
195
|
+
)
|
|
196
|
+
);
|
|
197
|
+
right: 0;
|
|
198
|
+
white-space: nowrap;
|
|
199
|
+
pointer-events: none;
|
|
200
|
+
display: inline-block;
|
|
201
|
+
width: var(--recursica_ui-kit_components_slider_properties_input-width);
|
|
202
|
+
text-align: right;
|
|
203
|
+
|
|
204
|
+
font-family: var(
|
|
205
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_font-family
|
|
206
|
+
);
|
|
207
|
+
font-size: var(
|
|
208
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_font-size
|
|
209
|
+
);
|
|
210
|
+
font-style: var(
|
|
211
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_font-style
|
|
212
|
+
);
|
|
213
|
+
font-weight: var(
|
|
214
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_font-weight
|
|
215
|
+
);
|
|
216
|
+
letter-spacing: var(
|
|
217
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_letter-spacing
|
|
218
|
+
);
|
|
219
|
+
line-height: var(
|
|
220
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_line-height
|
|
221
|
+
);
|
|
222
|
+
text-decoration: var(
|
|
223
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_text-decoration
|
|
224
|
+
);
|
|
225
|
+
text-transform: var(
|
|
226
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_text-transform
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* ==========================================
|
|
231
|
+
4. Numeric Input Field
|
|
232
|
+
========================================== */
|
|
233
|
+
|
|
234
|
+
.inputField {
|
|
235
|
+
box-sizing: border-box;
|
|
236
|
+
flex-shrink: 0;
|
|
237
|
+
width: var(--recursica_ui-kit_components_slider_properties_input-width);
|
|
238
|
+
height: var(--recursica_ui-kit_components_slider_properties_input-height);
|
|
239
|
+
border-radius: var(
|
|
240
|
+
--recursica_ui-kit_components_slider_properties_input-border-radius
|
|
241
|
+
);
|
|
242
|
+
border-style: solid;
|
|
243
|
+
border-width: var(
|
|
244
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_input-border-size
|
|
245
|
+
);
|
|
246
|
+
border-color: var(
|
|
247
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_colors_input-border-color
|
|
248
|
+
);
|
|
249
|
+
background-color: var(
|
|
250
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_colors_input-background
|
|
251
|
+
);
|
|
252
|
+
color: var(
|
|
253
|
+
--recursica_ui-kit_components_slider_variants_states_default_properties_colors_input-text
|
|
254
|
+
);
|
|
255
|
+
|
|
256
|
+
font-family: var(
|
|
257
|
+
--recursica_ui-kit_components_slider_properties_input-text_font-family
|
|
258
|
+
);
|
|
259
|
+
font-size: var(
|
|
260
|
+
--recursica_ui-kit_components_slider_properties_input-text_font-size
|
|
261
|
+
);
|
|
262
|
+
font-style: var(
|
|
263
|
+
--recursica_ui-kit_components_slider_properties_input-text_font-style
|
|
264
|
+
);
|
|
265
|
+
font-weight: var(
|
|
266
|
+
--recursica_ui-kit_components_slider_properties_input-text_font-weight
|
|
267
|
+
);
|
|
268
|
+
letter-spacing: var(
|
|
269
|
+
--recursica_ui-kit_components_slider_properties_input-text_letter-spacing
|
|
270
|
+
);
|
|
271
|
+
line-height: var(
|
|
272
|
+
--recursica_ui-kit_components_slider_properties_input-text_line-height
|
|
273
|
+
);
|
|
274
|
+
text-decoration: var(
|
|
275
|
+
--recursica_ui-kit_components_slider_properties_input-text_text-decoration
|
|
276
|
+
);
|
|
277
|
+
text-transform: var(
|
|
278
|
+
--recursica_ui-kit_components_slider_properties_input-text_text-transform
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
padding-left: var(
|
|
282
|
+
--recursica_ui-kit_components_slider_properties_input-padding-left
|
|
283
|
+
);
|
|
284
|
+
padding-right: var(
|
|
285
|
+
--recursica_ui-kit_components_slider_properties_input-padding-right
|
|
286
|
+
);
|
|
287
|
+
padding-top: var(
|
|
288
|
+
--recursica_ui-kit_components_slider_properties_input-padding-vertical
|
|
289
|
+
);
|
|
290
|
+
padding-bottom: var(
|
|
291
|
+
--recursica_ui-kit_components_slider_properties_input-padding-vertical
|
|
292
|
+
);
|
|
293
|
+
text-align: center;
|
|
294
|
+
transition:
|
|
295
|
+
border-color 0.15s ease,
|
|
296
|
+
background-color 0.15s ease;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.inputField:focus {
|
|
300
|
+
outline: none;
|
|
301
|
+
background-color: var(
|
|
302
|
+
--recursica_ui-kit_components_slider_variants_states_focus_properties_colors_input-background
|
|
303
|
+
);
|
|
304
|
+
border-color: var(
|
|
305
|
+
--recursica_ui-kit_components_slider_variants_states_focus_properties_colors_input-border-color
|
|
306
|
+
);
|
|
307
|
+
color: var(
|
|
308
|
+
--recursica_ui-kit_components_slider_variants_states_focus_properties_colors_input-text
|
|
309
|
+
);
|
|
310
|
+
border-width: var(
|
|
311
|
+
--recursica_ui-kit_components_slider_variants_states_focus_properties_input-border-size
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Chrome, Safari, Edge, Opera: Hide number spin buttons */
|
|
316
|
+
.inputField::-webkit-outer-spin-button,
|
|
317
|
+
.inputField::-webkit-inner-spin-button {
|
|
318
|
+
-webkit-appearance: none;
|
|
319
|
+
margin: 0;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/* Firefox: Hide number spin buttons */
|
|
323
|
+
.inputField[type="number"] {
|
|
324
|
+
-moz-appearance: textfield;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* ==========================================
|
|
328
|
+
5. Custom Read-Only Typography Value
|
|
329
|
+
========================================== */
|
|
330
|
+
|
|
331
|
+
.readOnlyValue {
|
|
332
|
+
font-family: var(
|
|
333
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_font-family
|
|
334
|
+
);
|
|
335
|
+
font-size: var(
|
|
336
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_font-size
|
|
337
|
+
);
|
|
338
|
+
font-style: var(
|
|
339
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_font-style
|
|
340
|
+
);
|
|
341
|
+
font-weight: var(
|
|
342
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_font-weight
|
|
343
|
+
);
|
|
344
|
+
letter-spacing: var(
|
|
345
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_letter-spacing
|
|
346
|
+
);
|
|
347
|
+
line-height: var(
|
|
348
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_line-height
|
|
349
|
+
);
|
|
350
|
+
text-decoration: var(
|
|
351
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_text-decoration
|
|
352
|
+
);
|
|
353
|
+
text-transform: var(
|
|
354
|
+
--recursica_ui-kit_components_slider_properties_read-only-value_text-transform
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/* ==========================================
|
|
359
|
+
6. State-Specific Overrides (Disabled, Error)
|
|
360
|
+
========================================== */
|
|
361
|
+
|
|
362
|
+
/* Disabled state */
|
|
363
|
+
.sliderContainer[data-disabled="true"] .iconWrapper {
|
|
364
|
+
color: var(
|
|
365
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_colors_icon-color
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.sliderContainer[data-disabled="true"] .sliderTrack {
|
|
370
|
+
background-color: var(
|
|
371
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_colors_track
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.sliderContainer[data-disabled="true"] .sliderBar {
|
|
376
|
+
background-color: var(
|
|
377
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_colors_track-active
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.sliderContainer[data-disabled="true"] .sliderThumb {
|
|
382
|
+
background-color: var(
|
|
383
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_colors_thumb
|
|
384
|
+
);
|
|
385
|
+
cursor: not-allowed;
|
|
386
|
+
box-shadow: none;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.sliderContainer[data-disabled="true"] .sliderMark {
|
|
390
|
+
background-color: var(
|
|
391
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_colors_step-indicator-color
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.sliderContainer[data-disabled="true"] .sliderMark[data-filled] {
|
|
396
|
+
background-color: var(
|
|
397
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_colors_step-indicator-color-active
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.sliderContainer[data-disabled="true"] {
|
|
402
|
+
color: var(--form-field-disabled-text);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.inputField:disabled {
|
|
406
|
+
cursor: not-allowed;
|
|
407
|
+
background-color: var(
|
|
408
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_colors_input-background
|
|
409
|
+
);
|
|
410
|
+
border-color: var(
|
|
411
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_colors_input-border-color
|
|
412
|
+
);
|
|
413
|
+
color: var(
|
|
414
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_colors_input-text
|
|
415
|
+
);
|
|
416
|
+
border-width: var(
|
|
417
|
+
--recursica_ui-kit_components_slider_variants_states_disabled_properties_input-border-size
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/* Error state */
|
|
422
|
+
.sliderContainer[data-error="true"] .iconWrapper {
|
|
423
|
+
color: var(
|
|
424
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_colors_icon-color
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.sliderContainer[data-error="true"] .sliderTrack {
|
|
429
|
+
background-color: var(
|
|
430
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_colors_track
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.sliderContainer[data-error="true"] .sliderBar {
|
|
435
|
+
background-color: var(
|
|
436
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_colors_track-active
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.sliderContainer[data-error="true"] .sliderThumb {
|
|
441
|
+
background-color: var(
|
|
442
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_colors_thumb
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.sliderContainer[data-error="true"] .sliderMark {
|
|
447
|
+
background-color: var(
|
|
448
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_colors_step-indicator-color
|
|
449
|
+
);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.sliderContainer[data-error="true"] .sliderMark[data-filled] {
|
|
453
|
+
background-color: var(
|
|
454
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_colors_step-indicator-color-active
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.inputField[data-error="true"] {
|
|
459
|
+
background-color: var(
|
|
460
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_colors_input-background
|
|
461
|
+
);
|
|
462
|
+
border-color: var(
|
|
463
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_colors_input-border-color
|
|
464
|
+
);
|
|
465
|
+
color: var(
|
|
466
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_colors_input-text
|
|
467
|
+
);
|
|
468
|
+
border-width: var(
|
|
469
|
+
--recursica_ui-kit_components_slider_variants_states_error_properties_input-border-size
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* ==========================================
|
|
474
|
+
7. Side-by-Side Layout Overrides
|
|
475
|
+
========================================== */
|
|
476
|
+
|
|
477
|
+
.sliderContainer[data-form-layout="side-by-side"] .rightGuideContainer {
|
|
478
|
+
position: relative;
|
|
479
|
+
display: inline-flex;
|
|
480
|
+
flex-direction: row;
|
|
481
|
+
align-items: center;
|
|
482
|
+
justify-content: flex-end;
|
|
483
|
+
flex-shrink: 0;
|
|
484
|
+
gap: var(--recursica_ui-kit_components_slider_properties_input-gap);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.sliderContainer[data-form-layout="side-by-side"] .currentValue {
|
|
488
|
+
position: static;
|
|
489
|
+
white-space: nowrap;
|
|
490
|
+
pointer-events: none;
|
|
491
|
+
order: 2; /* Positioned to the right of the max label */
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.sliderContainer[data-form-layout="side-by-side"]
|
|
495
|
+
.rightGuideContainer
|
|
496
|
+
.minMaxGuide {
|
|
497
|
+
order: 1; /* Positioned to the left of the current value */
|
|
498
|
+
}
|