igniteui-theming 19.2.1 → 19.2.2
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/package.json
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
/// @param {Color} $track-on-color [null] - The color of the track when the switch is on.
|
|
18
18
|
/// @param {Color} $track-on-hover-color [null] - The color of the track when the switch is on and hovered.
|
|
19
19
|
/// @param {Color} $thumb-off-color [null] - The color of the thumb when the switch is off.
|
|
20
|
+
/// @param {Color} $thumb-off-hover-color [null] - The color of the thumb when the switch is off and hovered.
|
|
20
21
|
/// @param {Color} $track-off-color [null] - The color of the track when the switch is off.
|
|
21
22
|
/// @param {Color} $thumb-disabled-color [null] - The color of the thumb when the switch is disabled.
|
|
22
23
|
/// @param {Color} $thumb-on-disabled-color [null] - The color of the thumb when the switch is on and disabled.
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
$track-on-hover-color: null,
|
|
55
56
|
|
|
56
57
|
$thumb-off-color: null,
|
|
58
|
+
$thumb-off-hover-color: null,
|
|
57
59
|
$track-off-color: null,
|
|
58
60
|
|
|
59
61
|
$track-disabled-color: null,
|
|
@@ -143,6 +145,10 @@
|
|
|
143
145
|
$border-hover-color: hsl(from var(--border-color) h s calc(l * 0.8));
|
|
144
146
|
}
|
|
145
147
|
|
|
148
|
+
@if not($thumb-off-hover-color) and $thumb-off-color {
|
|
149
|
+
$thumb-off-hover-color: hsla(from var(--thumb-off-color) h s l / 0.9);
|
|
150
|
+
}
|
|
151
|
+
|
|
146
152
|
@if not($thumb-on-color) and $track-on-color {
|
|
147
153
|
$thumb-on-color: adaptive-contrast(var(--track-on-color));
|
|
148
154
|
}
|
|
@@ -241,6 +247,7 @@
|
|
|
241
247
|
track-on-hover-color: $track-on-hover-color,
|
|
242
248
|
|
|
243
249
|
thumb-off-color: $thumb-off-color,
|
|
250
|
+
thumb-off-hover-color: $thumb-off-hover-color,
|
|
244
251
|
track-off-color: $track-off-color,
|
|
245
252
|
|
|
246
253
|
track-disabled-color: $track-disabled-color,
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
/// Generates a dark material switch schema.
|
|
13
13
|
/// @type {Map}
|
|
14
14
|
/// @prop {Map} thumb-off-color [color: ('gray', 100)] - The color of the thumb when the switch is off.
|
|
15
|
+
/// @prop {Map} thumb-off-hover-color [color: ('gray', 100)] - The color of the thumb when the switch is off and hovered.
|
|
15
16
|
/// @prop {Map} thumb-disabled-color [color: ('gray', 200)] - The color of the thumb when the switch is disabled.
|
|
16
17
|
/// @requires $material-switch
|
|
17
18
|
$dark-material-switch: extend(
|
|
@@ -23,6 +24,12 @@ $dark-material-switch: extend(
|
|
|
23
24
|
100,
|
|
24
25
|
),
|
|
25
26
|
),
|
|
27
|
+
thumb-off-hover-color: (
|
|
28
|
+
color: (
|
|
29
|
+
'gray',
|
|
30
|
+
100,
|
|
31
|
+
),
|
|
32
|
+
),
|
|
26
33
|
thumb-disabled-color: (
|
|
27
34
|
color: (
|
|
28
35
|
'gray',
|
|
@@ -199,6 +206,7 @@ $dark-bootstrap-switch: extend(
|
|
|
199
206
|
/// @prop {Map} label-hover-color [contrast-color: ('gray', 50)] - The color of the switch label on hover.
|
|
200
207
|
/// @prop {Map} label-disabled-color [contrast-color: ('gray', 50, .2)] - The color of the switch label when the switch is disabled.
|
|
201
208
|
/// @prop {Map} thumb-off-color [contrast-color: ('gray', 50, .6)] - The color of the thumb when the switch is off.
|
|
209
|
+
/// @prop {Map} thumb-off-hover-color [contrast-color: ('gray', 50, .8)] - The color of the thumb when the switch is off and hovered.
|
|
202
210
|
/// @prop {Map} thumb-on-color [contrast-color: ('gray', 50)] - The color of the thumb when the switch is on.
|
|
203
211
|
/// @prop {Map} thumb-disabled-color [contrast-color: ('gray', 50, .2)] - The color of the thumb when the switch is disabled.
|
|
204
212
|
/// @prop {Map} thumb-on-disabled-color [contrast-color: ('gray', 50, .2)] - The color of the thumb when the switch is on and disabled.
|
|
@@ -237,6 +245,13 @@ $dark-indigo-switch: extend(
|
|
|
237
245
|
0.6,
|
|
238
246
|
),
|
|
239
247
|
),
|
|
248
|
+
thumb-off-hover-color: (
|
|
249
|
+
contrast-color: (
|
|
250
|
+
'gray',
|
|
251
|
+
50,
|
|
252
|
+
0.8,
|
|
253
|
+
),
|
|
254
|
+
),
|
|
240
255
|
thumb-on-color: (
|
|
241
256
|
contrast-color: (
|
|
242
257
|
'gray',
|
|
@@ -111,6 +111,7 @@ $light-switch: extend(
|
|
|
111
111
|
/// @prop {Color} border-disabled-color [transparent] - The border color of the disabled switch.
|
|
112
112
|
/// @prop {Map} thumb-on-color [color: ('secondary', 500)] - The color of the thumb when the switch is on.
|
|
113
113
|
/// @prop {Map} thumb-off-color [color: ('gray', 50)] - The color of the thumb when the switch is off.
|
|
114
|
+
/// @prop {Map} thumb-off-hover-color [color: ('gray', 50)] - The color of the thumb when the switch is off and hovered.
|
|
114
115
|
/// @prop {Map} thumb-disabled-color [color: ('gray', 200)] - The color of the thumb when the switch is disabled.
|
|
115
116
|
/// @prop {Map} track-off-color [color: ('gray', 500)] - The color of the track when the switch is off.
|
|
116
117
|
/// @prop {Map} track-on-color [color: ('secondary', 200)] - The color of the track when the switch is on.
|
|
@@ -147,6 +148,12 @@ $material-switch: extend(
|
|
|
147
148
|
50,
|
|
148
149
|
),
|
|
149
150
|
),
|
|
151
|
+
thumb-off-hover-color: (
|
|
152
|
+
color: (
|
|
153
|
+
'gray',
|
|
154
|
+
50,
|
|
155
|
+
),
|
|
156
|
+
),
|
|
150
157
|
thumb-disabled-color: (
|
|
151
158
|
color: (
|
|
152
159
|
'gray',
|
|
@@ -205,6 +212,7 @@ $material-switch: extend(
|
|
|
205
212
|
/// @prop {Map} border-disabled-color [color: ('gray', 400)] - The border color of the disabled switch.
|
|
206
213
|
/// @prop {Map} border-on-hover-color [color: ('primary', 800)] - The border color of the on-switch.
|
|
207
214
|
/// @prop {Map} thumb-off-color [color: ('gray', 700)] - The color of the thumb when the switch is off.
|
|
215
|
+
/// @prop {Map} thumb-off-hover-color [color: ('gray', 900)] - The color of the thumb when the switch is off and hovered.
|
|
208
216
|
/// @prop {Map} track-disabled-color [contrast-color: ('primary', 800)] - The color of the track when the switch is disabled.
|
|
209
217
|
/// @prop {Map} track-on-hover-color [color: ('primary', 800)] - The color of the track when the switch is on and hovered.
|
|
210
218
|
/// @prop {Map} track-on-disabled-color [color: ('gray', 400)] - The color of the track when the switch is on and disabled.
|
|
@@ -235,6 +243,12 @@ $fluent-switch: extend(
|
|
|
235
243
|
700,
|
|
236
244
|
),
|
|
237
245
|
),
|
|
246
|
+
thumb-off-hover-color: (
|
|
247
|
+
color: (
|
|
248
|
+
'gray',
|
|
249
|
+
900,
|
|
250
|
+
),
|
|
251
|
+
),
|
|
238
252
|
border-hover-color: (
|
|
239
253
|
color: (
|
|
240
254
|
'gray',
|
|
@@ -327,6 +341,7 @@ $fluent-switch: extend(
|
|
|
327
341
|
/// @prop {Map} border-disabled-color [color: ('gray', 300)] - The border color of the disabled switch.
|
|
328
342
|
/// @prop {Map} thumb-on-color [contrast-color: ('primary', 800)] - The color of the thumb when the switch is on.
|
|
329
343
|
/// @prop {Map} thumb-off-color [color: ('gray', 400)] - The color of the thumb when the switch is off.
|
|
344
|
+
/// @prop {Map} thumb-off-hover-color [color: ('gray', 500)] - The color of the thumb when the switch is off and hovered.
|
|
330
345
|
/// @prop {Map} thumb-disabled-color [color: ('gray', 300)] - The color of the thumb when the switch is disabled.
|
|
331
346
|
/// @prop {Map} track-on-disabled-color [color: ('primary', 200)] - The color of the track when the switch is on and disabled.
|
|
332
347
|
/// @prop {Map} thumb-on-disabled-color [contrast-color: ('primary', 800)] - The color of the thumb when the switch is on and disabled.
|
|
@@ -398,6 +413,12 @@ $bootstrap-switch: extend(
|
|
|
398
413
|
400,
|
|
399
414
|
),
|
|
400
415
|
),
|
|
416
|
+
thumb-off-hover-color: (
|
|
417
|
+
color: (
|
|
418
|
+
'gray',
|
|
419
|
+
500,
|
|
420
|
+
),
|
|
421
|
+
),
|
|
401
422
|
thumb-disabled-color: (
|
|
402
423
|
color: (
|
|
403
424
|
'gray',
|
|
@@ -449,6 +470,7 @@ $bootstrap-switch: extend(
|
|
|
449
470
|
/// @prop {Map} thumb-on-color [contrast-color: ('gray', 900)] - The color of the thumb when the switch is on.
|
|
450
471
|
/// @prop {Map} track-on-hover-color [color: ('primary', 400)] - The color of the track when the switch is on and hovered.
|
|
451
472
|
/// @prop {Map} thumb-off-color [color: ('gray', 500)] - The color of the thumb when the switch is off.
|
|
473
|
+
/// @prop {Map} thumb-off-hover-color [color: ('gray', 600)] - The color of the thumb when the switch is off and hovered.
|
|
452
474
|
/// @prop {Map} thumb-disabled-color [color: ('gray', 900, .15)] - The color of the thumb when the switch is disabled.
|
|
453
475
|
/// @prop {Map} thumb-on-disabled-color [contrast-color: ('gray', 900, .4)] - The color of the thumb when the switch is on and disabled.
|
|
454
476
|
/// @prop {Map} track-on-disabled-color [color: ('primary', 400, .5)] - The color of the track when the switch is on and disabled.
|
|
@@ -559,6 +581,12 @@ $indigo-switch: extend(
|
|
|
559
581
|
500,
|
|
560
582
|
),
|
|
561
583
|
),
|
|
584
|
+
thumb-off-hover-color: (
|
|
585
|
+
color: (
|
|
586
|
+
'gray',
|
|
587
|
+
600,
|
|
588
|
+
),
|
|
589
|
+
),
|
|
562
590
|
thumb-disabled-color: (
|
|
563
591
|
color: (
|
|
564
592
|
'gray',
|