@maggioli-design-system/mds-input-range 2.1.1 → 2.3.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/dist/cjs/{index-27635fed.js → index-9509a00b.js} +148 -105
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-range.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/floating-controller.js +3 -3
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-input-range/mds-input-range.css +139 -46
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/components/mds-input-range.js +1 -1
- package/dist/documentation.json +2 -2
- package/dist/esm/{index-c0c11860.js → index-476f378c.js} +148 -105
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-input-range.entry.js +2 -2
- package/dist/esm/mds-input-range.js +3 -3
- package/dist/esm-es5/index-476f378c.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.js +1 -1
- package/dist/mds-input-range/mds-input-range.esm.js +1 -1
- package/dist/mds-input-range/mds-input-range.js +1 -1
- package/dist/mds-input-range/p-87f42ab7.js +2 -0
- package/dist/mds-input-range/p-c22c5274.system.entry.js +1 -0
- package/dist/mds-input-range/p-d47766b6.system.js +1 -0
- package/dist/mds-input-range/p-e79d51c6.system.js +2 -0
- package/dist/mds-input-range/p-e838760a.entry.js +1 -0
- package/dist/stats.json +38 -33
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/documentation.json +22 -2
- package/package.json +4 -4
- package/src/common/floating-controller.ts +6 -6
- package/src/common/slot.ts +11 -0
- package/src/common/string.ts +42 -0
- package/src/components/mds-input-range/css/mds-input-range-pref-animation.css +13 -20
- package/src/components/mds-input-range/css/mds-input-range-pref-contrast.css +5 -13
- package/src/components/mds-input-range/css/mds-input-range-pref-theme.css +7 -16
- package/src/components/mds-input-range/mds-input-range.css +1 -4
- package/src/dictionary/keyboard.ts +87 -0
- package/src/fixtures/icons.json +18 -1
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -46
- package/src/tailwind/fouc.css +118 -0
- package/src/tailwind/index.css +4 -0
- package/src/type/keyboard.ts +93 -0
- package/www/build/mds-input-range.esm.js +1 -1
- package/www/build/mds-input-range.js +1 -1
- package/www/build/p-87f42ab7.js +2 -0
- package/www/build/p-c22c5274.system.entry.js +1 -0
- package/www/build/p-d47766b6.system.js +1 -0
- package/www/build/p-e79d51c6.system.js +2 -0
- package/www/build/p-e838760a.entry.js +1 -0
- package/dist/esm-es5/index-c0c11860.js +0 -1
- package/dist/mds-input-range/p-16118dde.system.entry.js +0 -1
- package/dist/mds-input-range/p-71d27af5.system.js +0 -2
- package/dist/mds-input-range/p-7a612415.system.js +0 -1
- package/dist/mds-input-range/p-8951c4d3.entry.js +0 -1
- package/dist/mds-input-range/p-dd7b28fc.js +0 -2
- package/www/build/p-16118dde.system.entry.js +0 -1
- package/www/build/p-71d27af5.system.js +0 -2
- package/www/build/p-7a612415.system.js +0 -1
- package/www/build/p-8951c4d3.entry.js +0 -1
- package/www/build/p-dd7b28fc.js +0 -2
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@tailwind components;
|
|
12
|
-
@tailwind utilities;
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* @prop --mds-input-range-thumb-size: Sets the thumb width and height of the component
|
|
@@ -20,7 +19,6 @@
|
|
|
20
19
|
*/
|
|
21
20
|
|
|
22
21
|
:host {
|
|
23
|
-
|
|
24
22
|
--mds-input-range-thumb-size: 1rem;
|
|
25
23
|
--mds-input-range-thumb-background: rgb(var(--variant-primary-04));
|
|
26
24
|
--mds-input-range-thumb-shadow: 0 0 0 2px rgb(var(--tone-neutral));
|
|
@@ -86,7 +84,6 @@
|
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
.field:focus-visible {
|
|
89
|
-
|
|
90
87
|
--magma-outline-blur: var(--magma-outline-focus);
|
|
91
88
|
|
|
92
89
|
animation-play-state: running;
|
|
@@ -108,7 +105,6 @@
|
|
|
108
105
|
}
|
|
109
106
|
|
|
110
107
|
.field:focus-visible {
|
|
111
|
-
|
|
112
108
|
--magma-outline-blur: var(--magma-outline-focus);
|
|
113
109
|
|
|
114
110
|
animation-play-state: running;
|
|
@@ -182,67 +178,164 @@
|
|
|
182
178
|
cursor: not-allowed;
|
|
183
179
|
}
|
|
184
180
|
|
|
185
|
-
|
|
181
|
+
:host-context(.pref-animation-reduce),
|
|
182
|
+
:host-context(.pref-animation-reduce) .field::-webkit-slider-thumb,
|
|
183
|
+
:host-context(.pref-animation-reduce) .field::-webkit-slider-runnable-track,
|
|
184
|
+
:host-context(.pref-animation-reduce) .track-progress,
|
|
185
|
+
:host-context(.pref-animation-reduce) .track-total {
|
|
186
|
+
transition-duration: 0s;
|
|
187
|
+
}
|
|
186
188
|
|
|
187
|
-
@
|
|
188
|
-
:host,
|
|
189
|
-
.field::-webkit-slider-thumb,
|
|
190
|
-
.field::-webkit-slider-runnable-track,
|
|
191
|
-
.track-progress,
|
|
192
|
-
.track-total {
|
|
189
|
+
@media (prefers-reduced-motion) {
|
|
190
|
+
:host-context(.pref-animation-system),
|
|
191
|
+
:host-context(.pref-animation-system) .field::-webkit-slider-thumb,
|
|
192
|
+
:host-context(.pref-animation-system) .field::-webkit-slider-runnable-track,
|
|
193
|
+
:host-context(.pref-animation-system) .track-progress,
|
|
194
|
+
:host-context(.pref-animation-system) .track-total {
|
|
193
195
|
transition-duration: 0s;
|
|
194
196
|
}
|
|
195
197
|
}
|
|
196
198
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
.field::-webkit-slider-thumb,
|
|
202
|
-
.field::-webkit-slider-runnable-track,
|
|
203
|
-
.track-progress,
|
|
204
|
-
.track-total {
|
|
205
|
-
transition-duration: 0s;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
199
|
+
:host-context(.pref-theme-dark) {
|
|
200
|
+
--mds-input-range-thumb-background: rgb(var(--variant-primary-04));
|
|
201
|
+
--mds-input-range-track-background: rgb(var(--tone-neutral-07));
|
|
202
|
+
--mds-input-range-track-progress-background: rgb(var(--variant-primary-05));
|
|
208
203
|
}
|
|
209
204
|
|
|
210
|
-
@
|
|
211
|
-
|
|
212
|
-
@container style(--magma-pref-theme: dark) {
|
|
213
|
-
:host {
|
|
214
|
-
|
|
205
|
+
@media (prefers-color-scheme: dark) {
|
|
206
|
+
:host-context(.pref-theme-system) {
|
|
215
207
|
--mds-input-range-thumb-background: rgb(var(--variant-primary-04));
|
|
216
208
|
--mds-input-range-track-background: rgb(var(--tone-neutral-07));
|
|
217
209
|
--mds-input-range-track-progress-background: rgb(var(--variant-primary-05));
|
|
218
210
|
}
|
|
219
211
|
}
|
|
220
212
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
@media (prefers-color-scheme: dark) {
|
|
224
|
-
:host {
|
|
225
|
-
|
|
226
|
-
--mds-input-range-thumb-background: rgb(var(--variant-primary-04));
|
|
227
|
-
--mds-input-range-track-background: rgb(var(--tone-neutral-07));
|
|
228
|
-
--mds-input-range-track-progress-background: rgb(var(--variant-primary-05));
|
|
229
|
-
}
|
|
230
|
-
}
|
|
213
|
+
:host-context(.pref-contrast-more) {
|
|
214
|
+
color: rgb(var(--tone-neutral-01));
|
|
231
215
|
}
|
|
232
216
|
|
|
233
|
-
@
|
|
234
|
-
:host {
|
|
217
|
+
@media (prefers-contrast: more) {
|
|
218
|
+
:host-context(.pref-contrast-system) {
|
|
235
219
|
color: rgb(var(--tone-neutral-01));
|
|
236
220
|
}
|
|
237
221
|
}
|
|
238
222
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
223
|
+
:host(:not(:is([hydrated], .hydrated))) {
|
|
224
|
+
animation-duration: 0s;
|
|
225
|
+
border-color: transparent;
|
|
226
|
+
box-shadow: 0 0 0 transparent;
|
|
227
|
+
opacity: 0;
|
|
228
|
+
outline-color: transparent;
|
|
229
|
+
transition-delay: 0s;
|
|
230
|
+
transition-duration: 0s;
|
|
231
|
+
visibility: hidden;
|
|
246
232
|
}
|
|
247
233
|
|
|
234
|
+
/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */
|
|
235
|
+
|
|
236
|
+
mds-accordion:not(:is([hydrated], .hydrated)),
|
|
237
|
+
mds-accordion-item:not(:is([hydrated], .hydrated)),
|
|
238
|
+
mds-accordion-timer:not(:is([hydrated], .hydrated)),
|
|
239
|
+
mds-accordion-timer-item:not(:is([hydrated], .hydrated)),
|
|
240
|
+
mds-author:not(:is([hydrated], .hydrated)),
|
|
241
|
+
mds-avatar:not(:is([hydrated], .hydrated)),
|
|
242
|
+
mds-badge:not(:is([hydrated], .hydrated)),
|
|
243
|
+
mds-banner:not(:is([hydrated], .hydrated)),
|
|
244
|
+
mds-benchmark-bar:not(:is([hydrated], .hydrated)),
|
|
245
|
+
mds-bibliography:not(:is([hydrated], .hydrated)),
|
|
246
|
+
mds-breadcrumb:not(:is([hydrated], .hydrated)),
|
|
247
|
+
mds-breadcrumb-item:not(:is([hydrated], .hydrated)),
|
|
248
|
+
mds-button:not(:is([hydrated], .hydrated)),
|
|
249
|
+
mds-card:not(:is([hydrated], .hydrated)),
|
|
250
|
+
mds-card-content:not(:is([hydrated], .hydrated)),
|
|
251
|
+
mds-card-footer:not(:is([hydrated], .hydrated)),
|
|
252
|
+
mds-card-header:not(:is([hydrated], .hydrated)),
|
|
253
|
+
mds-card-media:not(:is([hydrated], .hydrated)),
|
|
254
|
+
mds-chip:not(:is([hydrated], .hydrated)),
|
|
255
|
+
mds-details:not(:is([hydrated], .hydrated)),
|
|
256
|
+
mds-dropdown:not(:is([hydrated], .hydrated)),
|
|
257
|
+
mds-entity:not(:is([hydrated], .hydrated)),
|
|
258
|
+
mds-file:not(:is([hydrated], .hydrated)),
|
|
259
|
+
mds-file-preview:not(:is([hydrated], .hydrated)),
|
|
260
|
+
mds-filter:not(:is([hydrated], .hydrated)),
|
|
261
|
+
mds-filter-item:not(:is([hydrated], .hydrated)),
|
|
262
|
+
mds-header:not(:is([hydrated], .hydrated)),
|
|
263
|
+
mds-header-bar:not(:is([hydrated], .hydrated)),
|
|
264
|
+
mds-help:not(:is([hydrated], .hydrated)),
|
|
265
|
+
mds-horizontal-scroll:not(:is([hydrated], .hydrated)),
|
|
266
|
+
mds-hr:not(:is([hydrated], .hydrated)),
|
|
267
|
+
mds-icon:not(:is([hydrated], .hydrated)),
|
|
268
|
+
mds-img:not(:is([hydrated], .hydrated)),
|
|
269
|
+
mds-input:not(:is([hydrated], .hydrated)),
|
|
270
|
+
mds-input-field:not(:is([hydrated], .hydrated)),
|
|
271
|
+
mds-input-range:not(:is([hydrated], .hydrated)),
|
|
272
|
+
mds-input-select:not(:is([hydrated], .hydrated)),
|
|
273
|
+
mds-input-switch:not(:is([hydrated], .hydrated)),
|
|
274
|
+
mds-input-tip:not(:is([hydrated], .hydrated)),
|
|
275
|
+
mds-input-tip-item:not(:is([hydrated], .hydrated)),
|
|
276
|
+
mds-input-upload:not(:is([hydrated], .hydrated)),
|
|
277
|
+
mds-keyboard:not(:is([hydrated], .hydrated)),
|
|
278
|
+
mds-keyboard-key:not(:is([hydrated], .hydrated)),
|
|
279
|
+
mds-kpi:not(:is([hydrated], .hydrated)),
|
|
280
|
+
mds-kpi-item:not(:is([hydrated], .hydrated)),
|
|
281
|
+
mds-label:not(:is([hydrated], .hydrated)),
|
|
282
|
+
mds-list:not(:is([hydrated], .hydrated)),
|
|
283
|
+
mds-list-item:not(:is([hydrated], .hydrated)),
|
|
284
|
+
mds-modal:not(:is([hydrated], .hydrated)),
|
|
285
|
+
mds-note:not(:is([hydrated], .hydrated)),
|
|
286
|
+
mds-notification:not(:is([hydrated], .hydrated)),
|
|
287
|
+
mds-paginator:not(:is([hydrated], .hydrated)),
|
|
288
|
+
mds-paginator-item:not(:is([hydrated], .hydrated)),
|
|
289
|
+
mds-pref:not(:is([hydrated], .hydrated)),
|
|
290
|
+
mds-pref-animation:not(:is([hydrated], .hydrated)),
|
|
291
|
+
mds-pref-consumption:not(:is([hydrated], .hydrated)),
|
|
292
|
+
mds-pref-contrast:not(:is([hydrated], .hydrated)),
|
|
293
|
+
mds-pref-language:not(:is([hydrated], .hydrated)),
|
|
294
|
+
mds-pref-language-item:not(:is([hydrated], .hydrated)),
|
|
295
|
+
mds-pref-theme:not(:is([hydrated], .hydrated)),
|
|
296
|
+
mds-price-table:not(:is([hydrated], .hydrated)),
|
|
297
|
+
mds-price-table-features:not(:is([hydrated], .hydrated)),
|
|
298
|
+
mds-price-table-features-cell:not(:is([hydrated], .hydrated)),
|
|
299
|
+
mds-price-table-features-row:not(:is([hydrated], .hydrated)),
|
|
300
|
+
mds-price-table-header:not(:is([hydrated], .hydrated)),
|
|
301
|
+
mds-price-table-list:not(:is([hydrated], .hydrated)),
|
|
302
|
+
mds-price-table-list-item:not(:is([hydrated], .hydrated)),
|
|
303
|
+
mds-progress:not(:is([hydrated], .hydrated)),
|
|
304
|
+
mds-push-notification:not(:is([hydrated], .hydrated)),
|
|
305
|
+
mds-push-notifications:not(:is([hydrated], .hydrated)),
|
|
306
|
+
mds-quote:not(:is([hydrated], .hydrated)),
|
|
307
|
+
mds-separator:not(:is([hydrated], .hydrated)),
|
|
308
|
+
mds-spinner:not(:is([hydrated], .hydrated)),
|
|
309
|
+
mds-stepper-bar:not(:is([hydrated], .hydrated)),
|
|
310
|
+
mds-stepper-bar-item:not(:is([hydrated], .hydrated)),
|
|
311
|
+
mds-tab:not(:is([hydrated], .hydrated)),
|
|
312
|
+
mds-tab-bar:not(:is([hydrated], .hydrated)),
|
|
313
|
+
mds-tab-bar-item:not(:is([hydrated], .hydrated)),
|
|
314
|
+
mds-tab-item:not(:is([hydrated], .hydrated)),
|
|
315
|
+
mds-table:not(:is([hydrated], .hydrated)),
|
|
316
|
+
mds-table-body:not(:is([hydrated], .hydrated)),
|
|
317
|
+
mds-table-cell:not(:is([hydrated], .hydrated)),
|
|
318
|
+
mds-table-footer:not(:is([hydrated], .hydrated)),
|
|
319
|
+
mds-table-header:not(:is([hydrated], .hydrated)),
|
|
320
|
+
mds-table-header-cell:not(:is([hydrated], .hydrated)),
|
|
321
|
+
mds-table-row:not(:is([hydrated], .hydrated)),
|
|
322
|
+
mds-text:not(:is([hydrated], .hydrated)),
|
|
323
|
+
mds-toast:not(:is([hydrated], .hydrated)),
|
|
324
|
+
mds-tooltip:not(:is([hydrated], .hydrated)),
|
|
325
|
+
mds-tree:not(:is([hydrated], .hydrated)),
|
|
326
|
+
mds-tree-item:not(:is([hydrated], .hydrated)),
|
|
327
|
+
mds-url-view:not(:is([hydrated], .hydrated)),
|
|
328
|
+
mds-usage:not(:is([hydrated], .hydrated)),
|
|
329
|
+
mds-video-wall:not(:is([hydrated], .hydrated)),
|
|
330
|
+
mds-zero:not(:is([hydrated], .hydrated))
|
|
331
|
+
{
|
|
332
|
+
animation-duration: 0s;
|
|
333
|
+
border-color: transparent;
|
|
334
|
+
box-shadow: 0 0 0 transparent;
|
|
335
|
+
opacity: 0;
|
|
336
|
+
outline-color: transparent;
|
|
337
|
+
transition-delay: 0s;
|
|
338
|
+
transition-duration: 0s;
|
|
339
|
+
visibility: hidden;
|
|
340
|
+
}
|
|
248
341
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const keyboardKeyNameDictionary = [
|
|
2
|
+
'0',
|
|
3
|
+
'1',
|
|
4
|
+
'2',
|
|
5
|
+
'3',
|
|
6
|
+
'4',
|
|
7
|
+
'5',
|
|
8
|
+
'6',
|
|
9
|
+
'7',
|
|
10
|
+
'8',
|
|
11
|
+
'9',
|
|
12
|
+
'a',
|
|
13
|
+
'alt',
|
|
14
|
+
'altleft',
|
|
15
|
+
'altright',
|
|
16
|
+
'arrowdown',
|
|
17
|
+
'arrowleft',
|
|
18
|
+
'arrowright',
|
|
19
|
+
'arrowup',
|
|
20
|
+
'b',
|
|
21
|
+
'backspace',
|
|
22
|
+
'c',
|
|
23
|
+
'capslock',
|
|
24
|
+
'command',
|
|
25
|
+
'commandleft',
|
|
26
|
+
'commandright',
|
|
27
|
+
'control',
|
|
28
|
+
'controlleft',
|
|
29
|
+
'controlright',
|
|
30
|
+
'd',
|
|
31
|
+
'delete',
|
|
32
|
+
'e',
|
|
33
|
+
'end',
|
|
34
|
+
'enter',
|
|
35
|
+
'escape',
|
|
36
|
+
'f',
|
|
37
|
+
'f1',
|
|
38
|
+
'f10',
|
|
39
|
+
'f11',
|
|
40
|
+
'f12',
|
|
41
|
+
'f2',
|
|
42
|
+
'f3',
|
|
43
|
+
'f4',
|
|
44
|
+
'f5',
|
|
45
|
+
'f6',
|
|
46
|
+
'f7',
|
|
47
|
+
'f8',
|
|
48
|
+
'f9',
|
|
49
|
+
'g',
|
|
50
|
+
'h',
|
|
51
|
+
'home',
|
|
52
|
+
'i',
|
|
53
|
+
'j',
|
|
54
|
+
'k',
|
|
55
|
+
'l',
|
|
56
|
+
'm',
|
|
57
|
+
'n',
|
|
58
|
+
'o',
|
|
59
|
+
'option',
|
|
60
|
+
'optionleft',
|
|
61
|
+
'optionright',
|
|
62
|
+
'p',
|
|
63
|
+
'pagedown',
|
|
64
|
+
'pageup',
|
|
65
|
+
'q',
|
|
66
|
+
'r',
|
|
67
|
+
's',
|
|
68
|
+
'shift',
|
|
69
|
+
'shiftleft',
|
|
70
|
+
'shiftright',
|
|
71
|
+
'space',
|
|
72
|
+
't',
|
|
73
|
+
'tab',
|
|
74
|
+
'u',
|
|
75
|
+
'v',
|
|
76
|
+
'w',
|
|
77
|
+
'windows',
|
|
78
|
+
'windowsleft',
|
|
79
|
+
'windowsright',
|
|
80
|
+
'x',
|
|
81
|
+
'y',
|
|
82
|
+
'z',
|
|
83
|
+
];
|
|
84
|
+
export { keyboardKeyNameDictionary, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const mdsInputRangeCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n\n@keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n\n@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-input-range-thumb-size: Sets the thumb width and height of the component\n * @prop --mds-input-range-thumb-background:\n * @prop --mds-input-range-track-background:\n * @prop --mds-input-range-track-size:\n * @prop --mds-input-range-track-progress-background:\n */\n\n:host {\n\n --mds-input-range-thumb-size: 1rem;\n --mds-input-range-thumb-background: rgb(var(--variant-primary-04));\n --mds-input-range-thumb-shadow: 0 0 0 2px rgb(var(--tone-neutral));\n --mds-input-range-track-background: rgb(var(--tone-neutral-08));\n --mds-input-range-track-size: 0.5rem;\n --mds-input-range-track-progress-background: rgb(var(--variant-primary-03));\n --mds-input-range-thumb-background-disabled: rgb(var(--tone-neutral-06));\n --mds-input-range-track-background-disabled: rgb(var(--tone-neutral-08));\n --mds-input-range-track-progress-background-disabled: rgb(var(--tone-neutral-06));\n gap: 0.25rem;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n display: grid;\n -webkit-transition-property: color;\n transition-property: color;\n}\n\n.header {\n gap: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n.label {\n min-width: 0rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.value {\n margin-left: auto;\n}\n\n.range {\n -ms-flex-align: center;\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-input-range-thumb-size);\n position: relative;\n}\n\n.track {\n width: 100%;\n\n --margin: calc(var(--mds-input-range-track-size) / 2);\n\n -webkit-box-sizing: border-box;\n\n box-sizing: border-box;\n padding: 0 var(--margin);\n position: absolute;\n}\n\n.field {\n -webkit-animation-duration: var(--magma-outline-animation-duration, 1s);\n animation-duration: var(--magma-outline-animation-duration, 1s);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: focus-bounce;\n animation-name: focus-bounce;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n outline: var(--magma-outline-blur);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n }\n\n.field:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n.field {\n z-index: 20;\n height: 1rem;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n background-color: transparent;\n border-radius: 1000px;\n -ms-flex-positive: 1;\n flex-grow: 1;\n margin: 0;\n}\n\n.field:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n.field::-webkit-slider-thumb {\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -webkit-appearance: none;\n\n appearance: none;\n background-color: var(--mds-input-range-thumb-background);\n border: 0;\n border-radius: var(--mds-input-range-thumb-size);\n -webkit-box-shadow: var(--mds-input-range-thumb-shadow);\n box-shadow: var(--mds-input-range-thumb-shadow);\n cursor: -webkit-grab;\n cursor: grab;\n height: var(--mds-input-range-thumb-size);\n line-height: 0;\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n -webkit-transition-property: background-color, box-shadow;\n -webkit-transition-property: background-color, -webkit-box-shadow;\n transition-property: background-color, -webkit-box-shadow;\n transition-property: background-color, box-shadow;\n transition-property: background-color, box-shadow, -webkit-box-shadow;\n width: var(--mds-input-range-thumb-size);\n}\n\n.field::-webkit-slider-runnable-track {\n -webkit-appearance: none;\n appearance: none;\n border: 0;\n height: 0;\n width: 100%;\n}\n\n.track-progress {\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n background-color: var(--mds-input-range-track-progress-background);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-input-range-track-size);\n -webkit-transition-property: background-color;\n transition-property: background-color;\n}\n\n.track-total {\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n background-color: var(--mds-input-range-track-background);\n border-radius: var(--mds-input-range-track-size);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-input-range-track-size);\n overflow: hidden;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n.contrast-area {\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n\n border-radius: var(--mds-input-range-track-size);\n}\n\n:host([disabled]:not([disabled=\"false\"])) {\n --mds-input-range-thumb-background: var(--mds-input-range-thumb-background-disabled);\n --mds-input-range-track-background: var(--mds-input-range-track-background-disabled);\n --mds-input-range-track-progress-background: var(--mds-input-range-track-progress-background-disabled);\n}\n\n:host([disabled]:not([disabled=\"false\"])) .field::-webkit-slider-thumb {\n cursor: not-allowed;\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .field::-webkit-slider-thumb,\n .field::-webkit-slider-runnable-track,\n .track-progress,\n .track-total {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .field::-webkit-slider-thumb,\n .field::-webkit-slider-runnable-track,\n .track-progress,\n .track-total {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-input-range-thumb-background: rgb(var(--variant-primary-04));\n --mds-input-range-track-background: rgb(var(--tone-neutral-07));\n --mds-input-range-track-progress-background: rgb(var(--variant-primary-05));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-input-range-thumb-background: rgb(var(--variant-primary-04));\n --mds-input-range-track-background: rgb(var(--tone-neutral-07));\n --mds-input-range-track-progress-background: rgb(var(--variant-primary-05));\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n\n";
|
|
3
|
+
const mdsInputRangeCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-input-range-thumb-size:1rem;--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-thumb-shadow:0 0 0 2px rgb(var(--tone-neutral));--mds-input-range-track-background:rgb(var(--tone-neutral-08));--mds-input-range-track-size:0.5rem;--mds-input-range-track-progress-background:rgb(var(--variant-primary-03));--mds-input-range-thumb-background-disabled:rgb(var(--tone-neutral-06));--mds-input-range-track-background-disabled:rgb(var(--tone-neutral-08));--mds-input-range-track-progress-background-disabled:rgb(var(--tone-neutral-06));gap:0.25rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);display:grid;-webkit-transition-property:color;transition-property:color}.header{gap:0.5rem;display:-ms-flexbox;display:flex}.label{min-width:0rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:var(--mds-input-range-thumb-size);position:relative}.track{width:100%;--margin:calc(var(--mds-input-range-track-size) / 2);-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 var(--margin);position:absolute}.field{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field{z-index:20;height:1rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-radius:1000px;-ms-flex-positive:1;flex-grow:1;margin:0}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field::-webkit-slider-thumb{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-appearance:none;appearance:none;background-color:var(--mds-input-range-thumb-background);border:0;border-radius:var(--mds-input-range-thumb-size);-webkit-box-shadow:var(--mds-input-range-thumb-shadow);box-shadow:var(--mds-input-range-thumb-shadow);cursor:-webkit-grab;cursor:grab;height:var(--mds-input-range-thumb-size);line-height:0;-webkit-transform:translate(0, -50%);transform:translate(0, -50%);-webkit-transition-property:background-color, box-shadow;-webkit-transition-property:background-color, -webkit-box-shadow;transition-property:background-color, -webkit-box-shadow;transition-property:background-color, box-shadow;transition-property:background-color, box-shadow, -webkit-box-shadow;width:var(--mds-input-range-thumb-size)}.field::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none;border:0;height:0;width:100%}.track-progress{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-progress-background);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);-webkit-transition-property:background-color;transition-property:background-color}.track-total{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-background);border-radius:var(--mds-input-range-track-size);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);overflow:hidden;-webkit-transition-property:background-color;transition-property:background-color;width:100%}.contrast-area{margin-left:0.25rem;margin-right:0.25rem;border-radius:var(--mds-input-range-track-size)}:host([disabled]:not([disabled=\"false\"])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled=\"false\"])) .field::-webkit-slider-thumb{cursor:not-allowed}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .field::-webkit-slider-thumb,:host-context(.pref-animation-reduce) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-reduce) .track-progress,:host-context(.pref-animation-reduce) .track-total{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .field::-webkit-slider-thumb,:host-context(.pref-animation-system) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-system) .track-progress,:host-context(.pref-animation-system) .track-total{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}}:host-context(.pref-contrast-more){color:rgb(var(--tone-neutral-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){color:rgb(var(--tone-neutral-01))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
|
|
4
4
|
const MdsInputRangeStyle0 = mdsInputRangeCss;
|
|
5
5
|
|
|
6
6
|
const MdsInputRange$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputRange extends HTMLElement {
|