igniteui-theming 25.0.2 → 25.0.3
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/mcp/index.js +1 -1
- package/dist/mcp/json/components/themes.json.js +1 -1
- package/json/components/bootstrap.json +1 -1
- package/json/components/fluent.json +1 -1
- package/json/components/indigo.json +1 -1
- package/json/components/material.json +1 -1
- package/json/components/themes.json +5 -0
- package/package.json +1 -1
- package/sass/bem/_index.scss +13 -18
- package/sass/color/_functions.scss +4 -9
- package/sass/color/_mixins.scss +2 -2
- package/sass/themes/_mixins.scss +12 -5
- package/sass/themes/components/checkbox/_checkbox-theme.scss +11 -0
- package/sass/themes/schemas/components/dark/_checkbox.scss +7 -0
- package/sass/themes/schemas/components/dark/_dock-manager.scss +4 -4
- package/sass/themes/schemas/components/light/_checkbox.scss +36 -6
- package/sass/themes/schemas/components/light/_dock-manager.scss +6 -6
- package/sass/typography/_mixins.scss +1 -5
- package/sass/utils/_map.scss +9 -1
- package/tailwind/utilities/bootstrap.css +1 -1
- package/tailwind/utilities/fluent.css +1 -1
- package/tailwind/utilities/indigo.css +1 -1
- package/tailwind/utilities/material.css +1 -1
|
@@ -2229,6 +2229,11 @@
|
|
|
2229
2229
|
"type": "Color",
|
|
2230
2230
|
"description": "The disabled border and fill colors."
|
|
2231
2231
|
},
|
|
2232
|
+
{
|
|
2233
|
+
"name": "disabled-fill-color",
|
|
2234
|
+
"type": "Color",
|
|
2235
|
+
"description": "The disabled border and fill colors in checked state. Auto-derived from disabled-color (material/fluent) or disabled-indeterminate-color (bootstrap/indigo)."
|
|
2236
|
+
},
|
|
2232
2237
|
{
|
|
2233
2238
|
"name": "disabled-tick-color",
|
|
2234
2239
|
"type": "Color",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-theming",
|
|
3
|
-
"version": "25.0.
|
|
3
|
+
"version": "25.0.3",
|
|
4
4
|
"description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
package/sass/bem/_index.scss
CHANGED
|
@@ -127,8 +127,7 @@ $_bem-mod-cache: () !default;
|
|
|
127
127
|
/// Checks if the element separator string is part of the passed string.
|
|
128
128
|
/// @access private
|
|
129
129
|
/// @param {String} $x - The string to check.
|
|
130
|
-
/// @returns {number|null} Will return the index of the occurance,
|
|
131
|
-
/// or null if the element separator name is not part of the passed string.
|
|
130
|
+
/// @returns {number|null} Will return the index of the occurance, or null if the element is not part of the string.
|
|
132
131
|
@function bem--contains-elem($x) {
|
|
133
132
|
// if you set the separators to common strings, this could fail
|
|
134
133
|
@return string.index($x, $bem--sep-elem);
|
|
@@ -137,8 +136,7 @@ $_bem-mod-cache: () !default;
|
|
|
137
136
|
/// Checks if the modifier separator string is part of the passed string.
|
|
138
137
|
/// @access private
|
|
139
138
|
/// @param {String} $x - The string to check.
|
|
140
|
-
/// @returns {number|null} Will return the index of the occurance,
|
|
141
|
-
/// or null if the modifier separator string is not part of the passed string.
|
|
139
|
+
/// @returns {number|null} Will return the index of the occurance, or null if the modifier is not part of the string.
|
|
142
140
|
@function bem--contains-mod($x) {
|
|
143
141
|
// if you set the separators to common strings, this could fail
|
|
144
142
|
@return string.index($x, $bem--sep-mod);
|
|
@@ -147,8 +145,7 @@ $_bem-mod-cache: () !default;
|
|
|
147
145
|
/// Checks if the passed selector string contains a colon.
|
|
148
146
|
/// @access private
|
|
149
147
|
/// @param {String} $x - The string to check for colons.
|
|
150
|
-
/// @returns {number|null} Will return the index of the occurance,
|
|
151
|
-
/// or null if the string does not contain any colons.
|
|
148
|
+
/// @returns {number|null} Will return the index of the occurance, or null if the string does not contain any colons.
|
|
152
149
|
@function bem--contains-pseudo($x) {
|
|
153
150
|
@return string.index($x, ':');
|
|
154
151
|
}
|
|
@@ -213,7 +210,7 @@ $_bem-mod-cache: () !default;
|
|
|
213
210
|
/// @param {String|Map} $mod - Optional modifier
|
|
214
211
|
/// @param {String} $first - Optional first selector for nesting
|
|
215
212
|
/// @return {String} The generated selector
|
|
216
|
-
/// @throw
|
|
213
|
+
/// @throw If invalid parameter types are provided
|
|
217
214
|
@function bem--generate-elem-selector($block, $elem, $mod, $first: null) {
|
|
218
215
|
@if $first and not meta.type-of($first) == 'string' {
|
|
219
216
|
@error 'First selector must be a string, got #{meta.type-of($first)}';
|
|
@@ -229,8 +226,7 @@ $_bem-mod-cache: () !default;
|
|
|
229
226
|
/// Generates a full BEM selector.
|
|
230
227
|
/// @access public
|
|
231
228
|
/// @param {String} $block - A string block name. Required.
|
|
232
|
-
/// @param {String|List} $elem [null] - A sub-element name. If `$mod` is not present, it is
|
|
233
|
-
/// joined with $block. If $mod is present, it is nested under `$block--$mod`.
|
|
229
|
+
/// @param {String|List} $elem [null] - A sub-element name. If `$mod` is not present, it is joined with $block. If $mod is present, it is nested under `$block--$mod`.
|
|
234
230
|
/// @param {String|Map} $mod [null] - A block modifier.
|
|
235
231
|
/// @param {List} $mods [null] - A list of block modifiers.
|
|
236
232
|
///
|
|
@@ -241,13 +237,13 @@ $_bem-mod-cache: () !default;
|
|
|
241
237
|
/// $selector: bem-selector(block, $elem: elem); // returns .block__elem
|
|
242
238
|
///
|
|
243
239
|
/// @example scss - Include block, element, and element modifier
|
|
244
|
-
/// $selector: bem-selector(block, $elem: (elem, mod); // returns .block__elem--mod
|
|
240
|
+
/// $selector: bem-selector(block, $elem: (elem, mod)); // returns .block__elem--mod
|
|
245
241
|
///
|
|
246
242
|
/// @example scss - Include block and block modifier
|
|
247
|
-
/// $selector: bem-selector(block, $mod: mod) // returns .block--mod
|
|
243
|
+
/// $selector: bem-selector(block, $mod: mod); // returns .block--mod
|
|
248
244
|
///
|
|
249
245
|
/// @example scss - Include block and multiple block modifiers
|
|
250
|
-
/// $selector: bem-selector(block, $mods: (mod-1, mod-2)) // returns .block--mod-1.block--mod-2
|
|
246
|
+
/// $selector: bem-selector(block, $mods: (mod-1, mod-2)); // returns .block--mod-1.block--mod-2
|
|
251
247
|
///
|
|
252
248
|
/// @example scss - Include block modifier followed by block sub-element
|
|
253
249
|
/// $selector: bem-selector(block, $m: mod, $e: elem); // returns .block--mod .block__elem
|
|
@@ -332,8 +328,8 @@ $_bem-mod-cache: () !default;
|
|
|
332
328
|
/// @param {String} $mod [null] - The modifier name. Optional.
|
|
333
329
|
/// @return {String} The BEM element selector string.
|
|
334
330
|
/// @example scss
|
|
335
|
-
/// $selector: elem('button', 'icon') // returns '.button__icon'
|
|
336
|
-
/// $selector: elem('button', 'icon', 'big') // returns '.button__icon--big'
|
|
331
|
+
/// $selector: elem('button', 'icon'); // returns '.button__icon'
|
|
332
|
+
/// $selector: elem('button', 'icon', 'big'); // returns '.button__icon--big'
|
|
337
333
|
@function elem($block, $elem, $mod: null) {
|
|
338
334
|
@if not meta.type-of($block) == 'string' {
|
|
339
335
|
@error 'Block must be a string, got #{meta.type-of($block)}';
|
|
@@ -360,8 +356,8 @@ $_bem-mod-cache: () !default;
|
|
|
360
356
|
/// @param {String} $mod - The modifier name.
|
|
361
357
|
/// @return {String} The BEM modifier selector string.
|
|
362
358
|
/// @example scss
|
|
363
|
-
/// $selector: mod('button', 'primary') // returns '.button--primary'
|
|
364
|
-
/// $selector: mod('card', 'outlined') // returns '.card--outlined'
|
|
359
|
+
/// $selector: mod('button', 'primary'); // returns '.button--primary'
|
|
360
|
+
/// $selector: mod('card', 'outlined'); // returns '.card--outlined'
|
|
365
361
|
@function mod($block, $mod) {
|
|
366
362
|
@return bem-selector($block, $m: $mod);
|
|
367
363
|
}
|
|
@@ -571,8 +567,7 @@ $_bem-mod-cache: () !default;
|
|
|
571
567
|
/// Generates a full BEM rule.
|
|
572
568
|
/// @access public
|
|
573
569
|
/// @param {String} $block - A string block name. Required.
|
|
574
|
-
/// @param {String|List} $elem [null] - A sub-element name. If `$mod` is not present, it is
|
|
575
|
-
/// joined with $block. If $mod is present, it is nested under `$block--$mod`.
|
|
570
|
+
/// @param {String|List} $elem [null] - A sub-element name. If `$mod` is not present, it is joined with $block. If $mod is present, it is nested under `$block--$mod`.
|
|
576
571
|
/// @param {String|Map} $mod [null] - A block modifier.
|
|
577
572
|
/// @param {String|Map} $mods [null] - A list of block modifiers.
|
|
578
573
|
///
|
|
@@ -276,7 +276,6 @@ $_enhanced-accessibility: false;
|
|
|
276
276
|
/// background: color($color: 'primary', $variant: 200);
|
|
277
277
|
/// color: contrast-color($color: 'primary', $variant: 200);
|
|
278
278
|
/// }
|
|
279
|
-
///
|
|
280
279
|
@function contrast-color($palette: null, $color: primary, $variant: 500, $opacity: null) {
|
|
281
280
|
@return color($palette, $color, #{$variant}-contrast, $opacity);
|
|
282
281
|
}
|
|
@@ -285,8 +284,6 @@ $_enhanced-accessibility: false;
|
|
|
285
284
|
/// @access public
|
|
286
285
|
/// @group Color
|
|
287
286
|
/// @param {Color} $color - The base color used in the calculation.
|
|
288
|
-
/// @returns {string} Returns a relative HSL color where the lightness is adjusted
|
|
289
|
-
/// based on the specified contrast level, resulting in either black or white.
|
|
290
287
|
///
|
|
291
288
|
/// @example scss
|
|
292
289
|
/// .my-component {
|
|
@@ -294,6 +291,7 @@ $_enhanced-accessibility: false;
|
|
|
294
291
|
/// background: var(--bg);
|
|
295
292
|
/// color: adaptive-contrast(var(--bg)); // hsl(from color(from var(--bg) var(--y-contrast)) h 0 l)
|
|
296
293
|
/// }
|
|
294
|
+
/// @returns {string} Returns a relative HSL color where the lightness is adjusted
|
|
297
295
|
@function adaptive-contrast($color) {
|
|
298
296
|
$fn: meta.get-function('color', $css: true);
|
|
299
297
|
|
|
@@ -305,20 +303,17 @@ $_enhanced-accessibility: false;
|
|
|
305
303
|
/// @access public
|
|
306
304
|
/// @group Color
|
|
307
305
|
/// @param {Color} $background - The background color used to return a contrast/forground color for.
|
|
308
|
-
/// @param {Color | List
|
|
309
|
-
/// that can be used with the provided background.
|
|
306
|
+
/// @param {Color | List } $foreground [#fff] - A list of foreground colors that can be used with the provided background.
|
|
310
307
|
/// @param {String} $contrast [AAA] - The contrast level according to WCAG 2.0 standards.
|
|
311
|
-
/// @require {function} contrast
|
|
312
|
-
/// @returns {Color} Returns either white, black, or the provided foreground
|
|
313
|
-
/// color if it meets the required contrast level.
|
|
314
|
-
///
|
|
315
308
|
/// @example scss
|
|
316
309
|
/// .my-component {
|
|
317
310
|
/// background: #09f;
|
|
318
311
|
/// color: text-contrast(#09f);
|
|
319
312
|
/// }
|
|
320
313
|
///
|
|
314
|
+
/// @require {function} contrast
|
|
321
315
|
/// @see {function} adaptive-contrast
|
|
316
|
+
/// @returns {Color} Returns either white, black, or the provided foreground color if it meets the required contrast level.
|
|
322
317
|
/// @link https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html WCAG 2.0 Contrast
|
|
323
318
|
@function text-contrast($background, $foreground: white, $contrast: 'AAA') {
|
|
324
319
|
@if meta.type-of($foreground) != 'list' and meta.type-of($background) != 'color' {
|
package/sass/color/_mixins.scss
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
// Tracks added CSS variables for color shades
|
|
14
14
|
$_added: () !default;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
/// Generates CSS variables for a shade color
|
|
17
|
+
/// @access private
|
|
18
18
|
@mixin _shade($color, $shade, $value, $contrast) {
|
|
19
19
|
$_shade: meta.type-of($shade) == 'string';
|
|
20
20
|
$_hsl: if($_shade, string.index($shade, 'hsl'), false);
|
package/sass/themes/_mixins.scss
CHANGED
|
@@ -88,8 +88,12 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
88
88
|
/// @param {Map} $theme - The component theme used for generating CSS variables.
|
|
89
89
|
/// @param {String} $name [null] - Deprecated. This parameter is ignored.
|
|
90
90
|
/// @param {Map} $ignored [$ignored-keys] - A list of ignored keywords to be excluded when generating CSS variables.
|
|
91
|
-
/// @example scss Convert theme colors to CSS variables.
|
|
92
|
-
/// $theme: digest-schema((
|
|
91
|
+
/// @example scss - Convert theme colors to CSS variables.
|
|
92
|
+
/// $theme: digest-schema((
|
|
93
|
+
/// background: color(primary, '500'),
|
|
94
|
+
/// foreground: contrast-color(color, '500')
|
|
95
|
+
/// ));
|
|
96
|
+
///
|
|
93
97
|
/// :root {
|
|
94
98
|
/// @include css-vars-from-theme($theme);
|
|
95
99
|
/// }
|
|
@@ -102,14 +106,17 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
102
106
|
|
|
103
107
|
$t: map.get($theme, '_meta', 'theme');
|
|
104
108
|
$v: map.get($theme, '_meta', 'variant');
|
|
109
|
+
$p: map.get($theme, 'prefix');
|
|
105
110
|
$vp: config.variable-prefix();
|
|
106
111
|
|
|
107
112
|
@each $key, $value in map.remove($theme, $ignored...) {
|
|
108
113
|
@if _is-emittable($key, $value) {
|
|
114
|
+
$local: if($p, '#{$p}-#{$key}', $key);
|
|
115
|
+
|
|
109
116
|
@if $vp == 'ig' {
|
|
110
|
-
--#{$
|
|
117
|
+
--#{$local}: var(--ig-#{$n}-#{$key}, #{$value});
|
|
111
118
|
} @else {
|
|
112
|
-
--#{$
|
|
119
|
+
--#{$local}: var(--#{$vp}-#{$n}-#{$key}, var(--ig-#{$n}-#{$key}, #{$value}));
|
|
113
120
|
}
|
|
114
121
|
}
|
|
115
122
|
}
|
|
@@ -237,7 +244,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
|
|
|
237
244
|
/// @param {map} $scope [null] - The CSS variables scope to be used. (optional)
|
|
238
245
|
/// @requires {mixin} tokens
|
|
239
246
|
/// @example scss - Convert grid theme colors to css variables
|
|
240
|
-
/// $my-grid-theme grid-theme(
|
|
247
|
+
/// $my-grid-theme: grid-theme(
|
|
241
248
|
/// $header-background: red,
|
|
242
249
|
/// $content-background: #222
|
|
243
250
|
/// );
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
/// @param {Color} $tick-color-hover [null] - The checked mark color on hover.
|
|
36
36
|
/// @param {Number} $tick-width [null] - The checked mark width.
|
|
37
37
|
/// @param {Color} $disabled-color [null] - The disabled border and fill colors.
|
|
38
|
+
/// @param {Color} $disabled-fill-color [null] - The disabled border and fill colors in checked state. Auto-derived from disabled-color (material/fluent) or disabled-indeterminate-color (bootstrap/indigo).
|
|
38
39
|
/// @param {Color} $disabled-tick-color [null] - The checked mark color in disabled state.
|
|
39
40
|
/// @param {Color} $disabled-indeterminate-color [null] - The disabled border and fill colors in indeterminate state. Auto-derived from fill-color.
|
|
40
41
|
/// @param {Color} $disabled-color-label [null] - The disabled label color.
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
$tick-color-hover: null,
|
|
70
71
|
$tick-width: null,
|
|
71
72
|
$disabled-color: null,
|
|
73
|
+
$disabled-fill-color: null,
|
|
72
74
|
$disabled-tick-color: null,
|
|
73
75
|
$disabled-indeterminate-color: null,
|
|
74
76
|
$disabled-color-label: null,
|
|
@@ -116,6 +118,14 @@
|
|
|
116
118
|
$disabled-indeterminate-color: hsl(from var(--fill-color) h s l / 0.5);
|
|
117
119
|
}
|
|
118
120
|
|
|
121
|
+
@if not($disabled-fill-color) and $fill-color {
|
|
122
|
+
$disabled-fill-color: hsl(from var(--fill-color) h s l / 0.5);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@if not($disabled-color-label) and $label-color {
|
|
126
|
+
$disabled-color-label: hsl(from var(--label-color) h s l / 0.5);
|
|
127
|
+
}
|
|
128
|
+
|
|
119
129
|
@if not($error-color-hover) and $error-color {
|
|
120
130
|
$error-color-hover: dynamic-shade(var(--error-color));
|
|
121
131
|
}
|
|
@@ -155,6 +165,7 @@
|
|
|
155
165
|
tick-color-hover: $tick-color-hover,
|
|
156
166
|
tick-width: $tick-width,
|
|
157
167
|
disabled-color: $disabled-color,
|
|
168
|
+
disabled-fill-color: $disabled-fill-color,
|
|
158
169
|
disabled-tick-color: $disabled-tick-color,
|
|
159
170
|
disabled-indeterminate-color: $disabled-indeterminate-color,
|
|
160
171
|
disabled-color-label: $disabled-color-label,
|
|
@@ -50,6 +50,7 @@ $dark-material-checkbox: extend(
|
|
|
50
50
|
/// @prop {Map} fill-color [color: ('primary', 300)] - The checked border and fill colors.
|
|
51
51
|
/// @prop {Map} fill-color-hover [color: ('primary', 100)] - The checked border and fill colors on hover.
|
|
52
52
|
/// @prop {Map} disabled-color [color: ('gray', 100)] - The disabled border and fill colors.
|
|
53
|
+
/// @prop {Map} disabled-fill-color [color: ('gray', 100)] - The disabled border and fill colors in checked state.
|
|
53
54
|
/// @prop {Map} disabled-color-label [color: ('gray', 300)] - The disabled color of the label.
|
|
54
55
|
/// @prop {Map} error-color [color: ('error', 100)] - The border and fill colors in invalid state.
|
|
55
56
|
/// @prop {Map} error-color-hover [color: ('error', 50)] - The border and fill colors in invalid state on hover.
|
|
@@ -89,6 +90,12 @@ $dark-fluent-checkbox: extend(
|
|
|
89
90
|
100,
|
|
90
91
|
),
|
|
91
92
|
),
|
|
93
|
+
disabled-fill-color: (
|
|
94
|
+
color: (
|
|
95
|
+
'gray',
|
|
96
|
+
100,
|
|
97
|
+
),
|
|
98
|
+
),
|
|
92
99
|
disabled-color-label: (
|
|
93
100
|
color: (
|
|
94
101
|
'gray',
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
/// @prop {Color} tab-background [color: ('gray', 100, .3)] - Sets the background color for tabs.
|
|
27
27
|
/// @prop {Color} tab-background-active [color: ('gray', 100, .3)] - Sets the background color for active tabs.
|
|
28
28
|
/// @prop {Color} tab-border-color-active [color: ('gray', 100)] - Sets the border color for active tabs.
|
|
29
|
-
/// @prop {Color} button-text [contrast-color: 'surface'] - Sets the button text color.
|
|
29
|
+
/// @prop {Color} button-component-text [contrast-color: 'surface'] - Sets the button text color.
|
|
30
30
|
/// @prop {Color} flyout-shadow-color [color: ('gray', 50, .3)] - Sets the flyout shadow color.
|
|
31
31
|
/// @prop {Color} drop-shadow-background [color: ('primary', 900, .3)] - Sets the drop-shadow background color.
|
|
32
32
|
/// @prop {Color} splitter-background [color: ('gray', 100)] - Sets the background color for the splitters.
|
|
@@ -140,7 +140,7 @@ $dark-base-dock-manager: (
|
|
|
140
140
|
),
|
|
141
141
|
),
|
|
142
142
|
|
|
143
|
-
button-text: (
|
|
143
|
+
button-component-text: (
|
|
144
144
|
contrast-color: 'surface',
|
|
145
145
|
),
|
|
146
146
|
|
|
@@ -282,7 +282,7 @@ $dark-bootstrap-dock-manager: extend(
|
|
|
282
282
|
|
|
283
283
|
/// Generates a dark indigo dock-manager schema.
|
|
284
284
|
/// @type Map
|
|
285
|
-
/// @prop {Color} button-text [color: ('primary', 200)] - Sets the button text color.
|
|
285
|
+
/// @prop {Color} button-component-text [color: ('primary', 200)] - Sets the button text color.
|
|
286
286
|
/// @prop {Color} joystick-background [color: ('surface')] - Sets the background color of the joystick.
|
|
287
287
|
/// @prop {Color} joystick-background-active [color: ('primary')] - Sets the background color of the joysticks.
|
|
288
288
|
/// @prop {Color} joystick-border-color [color: ('gray', 100)] - Sets the border color of the joystick.
|
|
@@ -297,7 +297,7 @@ $dark-indigo-dock-manager: extend(
|
|
|
297
297
|
$indigo-dock-manager,
|
|
298
298
|
$dark-base-dock-manager,
|
|
299
299
|
(
|
|
300
|
-
button-text: (
|
|
300
|
+
button-component-text: (
|
|
301
301
|
color: (
|
|
302
302
|
'primary',
|
|
303
303
|
200,
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
/// @prop {Color} focus-outline-color-focused [transparent] - The focus outlined color for focused state.
|
|
21
21
|
/// @prop {Color} focus-outline-color-error [transparent] - The focus outlined color for focused invalid state.
|
|
22
22
|
/// @prop {Map} disabled-color [color: ('gray', 400)] - The disabled border and fill colors.
|
|
23
|
+
/// @prop {Map} disabled-fill-color [color: ('gray', 400)] - The disabled border and fill colors in checked state.
|
|
23
24
|
/// @prop {Map} disabled-tick-color [color: ('gray', 50)] - The checked mark color in disabled state.
|
|
24
|
-
/// @prop {Map} disabled-indeterminate-color [color: ('secondary', 100)] - The disabled border and fill colors in indeterminate state.
|
|
25
25
|
/// @prop {Map} disabled-color-label [color: ('gray', 500)] - The disabled color of the label.
|
|
26
26
|
/// @prop {Map} error-color [color: ('error', 500)] - The border and fill colors in invalid state.
|
|
27
27
|
/// @prop {List} border-radius [(rem(2px), rem(0), rem(10px))] - The border radius used for checkbox.
|
|
@@ -62,16 +62,16 @@ $light-checkbox: (
|
|
|
62
62
|
400,
|
|
63
63
|
),
|
|
64
64
|
),
|
|
65
|
-
disabled-
|
|
65
|
+
disabled-fill-color: (
|
|
66
66
|
color: (
|
|
67
67
|
'gray',
|
|
68
|
-
|
|
68
|
+
400,
|
|
69
69
|
),
|
|
70
70
|
),
|
|
71
|
-
disabled-
|
|
71
|
+
disabled-tick-color: (
|
|
72
72
|
color: (
|
|
73
|
-
'
|
|
74
|
-
|
|
73
|
+
'gray',
|
|
74
|
+
50,
|
|
75
75
|
),
|
|
76
76
|
),
|
|
77
77
|
disabled-color-label: (
|
|
@@ -121,6 +121,7 @@ $light-checkbox: (
|
|
|
121
121
|
/// @prop {Color} focus-outline-color [transparent] - The focus outlined color.
|
|
122
122
|
/// @prop {Map} focus-border-color [color: ('gray', 600)] - The focus border color.
|
|
123
123
|
/// @prop {Map} error-color [color: ('error', 800)] - The border and fill colors in invalid state.
|
|
124
|
+
/// @prop {Map} disabled-indeterminate-color [color: ('secondary', 100)] - The disabled border and fill colors in indeterminate state.
|
|
124
125
|
/// @prop {Map} error-color-hover [color: ('error', 800)] - The border and fill colors in invalid state on hover.
|
|
125
126
|
/// @prop {Map} typography [label: (value: 'subtitle-1')] - The typography styles used for the component.
|
|
126
127
|
/// @requires $light-checkbox
|
|
@@ -185,6 +186,13 @@ $material-checkbox: extend(
|
|
|
185
186
|
),
|
|
186
187
|
),
|
|
187
188
|
|
|
189
|
+
disabled-indeterminate-color: (
|
|
190
|
+
color: (
|
|
191
|
+
'secondary',
|
|
192
|
+
100,
|
|
193
|
+
),
|
|
194
|
+
),
|
|
195
|
+
|
|
188
196
|
typography: (
|
|
189
197
|
label: (
|
|
190
198
|
value: 'subtitle-1',
|
|
@@ -206,6 +214,7 @@ $material-checkbox: extend(
|
|
|
206
214
|
/// @prop {Map} fill-color-hover [color: ('primary', 800)] - The checked border and fill colors on hover.
|
|
207
215
|
/// @prop {Map} focus-outline-color [color: ('gray', 700)] - The focus outlined color.
|
|
208
216
|
/// @prop {Map} focus-border-color [color: ('gray', 900)] - The focus border color.
|
|
217
|
+
/// @prop {Map} disabled-indeterminate-color [color: ('gray', 400)] - The disabled border and fill colors in indeterminate state.
|
|
209
218
|
/// @prop {Map} error-color-hover [color: ('error', 700)] - The border and fill colors in invalid state on hover.
|
|
210
219
|
/// @prop {List} border-radius-ripple [(rem(2px), rem(0), rem(24px))] - The border radius used for checkbox ripple.
|
|
211
220
|
/// @requires $light-checkbox
|
|
@@ -249,6 +258,12 @@ $fluent-checkbox: extend(
|
|
|
249
258
|
800,
|
|
250
259
|
),
|
|
251
260
|
),
|
|
261
|
+
disabled-indeterminate-color: (
|
|
262
|
+
color: (
|
|
263
|
+
'gray',
|
|
264
|
+
400,
|
|
265
|
+
),
|
|
266
|
+
),
|
|
252
267
|
error-color-hover: (
|
|
253
268
|
color: (
|
|
254
269
|
'error',
|
|
@@ -277,6 +292,7 @@ $fluent-checkbox: extend(
|
|
|
277
292
|
/// @prop {Map} empty-fill-color [contrast-color: ('gray', 900)] - The unchecked fill color.
|
|
278
293
|
/// @prop {Map} fill-color-hover [color: ('primary', 600)] - The checked border and fill colors on hover.
|
|
279
294
|
/// @prop {Map} disabled-color [color: ('gray', 300)] - The disabled border color.
|
|
295
|
+
/// @prop {Map} disabled-fill-color [color: ('primary', 200)] - The disabled border and fill colors in checked state.
|
|
280
296
|
/// @prop {Map} disabled-tick-color [contrast-color: ('primary', 900)] - The checked mark color in disabled state.
|
|
281
297
|
/// @prop {Map} disabled-indeterminate-color [color: ('primary', 200)] - The disabled border and fill colors.
|
|
282
298
|
/// @prop {Map} focus-border-color [color: ('primary', 200)] - The focus border color.
|
|
@@ -352,6 +368,12 @@ $bootstrap-checkbox: extend(
|
|
|
352
368
|
300,
|
|
353
369
|
),
|
|
354
370
|
),
|
|
371
|
+
disabled-fill-color: (
|
|
372
|
+
color: (
|
|
373
|
+
'primary',
|
|
374
|
+
200,
|
|
375
|
+
),
|
|
376
|
+
),
|
|
355
377
|
disabled-tick-color: (
|
|
356
378
|
contrast-color: (
|
|
357
379
|
'primary',
|
|
@@ -405,6 +427,7 @@ $bootstrap-checkbox: extend(
|
|
|
405
427
|
/// @prop {Map} empty-color-hover [color: ('gray', 600)] - The unchecked border color on hover.
|
|
406
428
|
/// @prop {Map} disabled-color [color: ('gray', 900, .15)] - The disabled border and fill colors.
|
|
407
429
|
/// @prop {Map} disabled-tick-color [contrast-color: ('primary', 500, .4)] - The checked mark color in disabled state.
|
|
430
|
+
/// @prop {Map} disabled-fill-color [color: ('primary', 400, .5)] - The disabled border and fill colors in checked state.
|
|
408
431
|
/// @prop {Map} disabled-indeterminate-color [color: ('primary', 400, .5)] - The disabled border and fill colors in checked/indeterminate state.
|
|
409
432
|
/// @prop {Map} disabled-color-label [color: ('gray', 900, .2)] - The disabled label color.
|
|
410
433
|
/// @prop {Map} focus-outline-color [color: ('gray', 900, .15)] - The focus outlined color.
|
|
@@ -495,6 +518,13 @@ $indigo-checkbox: extend(
|
|
|
495
518
|
0.4,
|
|
496
519
|
),
|
|
497
520
|
),
|
|
521
|
+
disabled-fill-color: (
|
|
522
|
+
color: (
|
|
523
|
+
'primary',
|
|
524
|
+
400,
|
|
525
|
+
0.5,
|
|
526
|
+
),
|
|
527
|
+
),
|
|
498
528
|
disabled-color-label: (
|
|
499
529
|
color: (
|
|
500
530
|
'gray',
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/// @prop {Color} active-color [color: 'primary'] - Sets the active text and border colors for tabs, panes, and menus.
|
|
14
14
|
/// @prop {Color} background-color [null] - Sets the base dock manager color as well as the pane headers and tabs background colors.
|
|
15
15
|
/// @prop {Color} border-color [color: ('surface')] - Sets the global border color in the dock manager. Also sets the pane content background and the context menu active background colors.
|
|
16
|
-
/// @prop {Color} button-text [color: ('gray', 800)] - Sets the button text color.
|
|
16
|
+
/// @prop {Color} button-component-text [color: ('gray', 800)] - Sets the button text color.
|
|
17
17
|
/// @prop {Color} context-menu-background-active [color: 'primary'] - Sets the background color for active context menus.
|
|
18
18
|
/// @prop {Color} context-menu-background [null] - Sets the background color for context menus.
|
|
19
19
|
/// @prop {Color} dock-background [null] - Sets the background color of the dock manager.
|
|
@@ -60,7 +60,7 @@ $light-dock-manager: (
|
|
|
60
60
|
),
|
|
61
61
|
),
|
|
62
62
|
|
|
63
|
-
button-text: (
|
|
63
|
+
button-component-text: (
|
|
64
64
|
color: (
|
|
65
65
|
'gray',
|
|
66
66
|
800,
|
|
@@ -347,7 +347,7 @@ $fluent-dock-manager: extend(
|
|
|
347
347
|
|
|
348
348
|
/// Generates a bootstrap dock-manager schema.
|
|
349
349
|
/// @type Map
|
|
350
|
-
/// @prop {Color} button-text [color: 'primary'] - Sets the button text color.
|
|
350
|
+
/// @prop {Color} button-component-text [color: 'primary'] - Sets the button text color.
|
|
351
351
|
/// @prop {Color} context-menu-background [color: 'surface'] - Sets the background color for context menus.
|
|
352
352
|
/// @prop {Color} context-menu-color-active [color: 'surface'] - Sets the text color for active context menus.
|
|
353
353
|
/// @prop {Color} context-menu-color [color: 'primary'] - Sets the text color for context menus.
|
|
@@ -364,7 +364,7 @@ $fluent-dock-manager: extend(
|
|
|
364
364
|
$bootstrap-dock-manager: extend(
|
|
365
365
|
$light-dock-manager,
|
|
366
366
|
(
|
|
367
|
-
button-text: (
|
|
367
|
+
button-component-text: (
|
|
368
368
|
color: 'primary',
|
|
369
369
|
),
|
|
370
370
|
|
|
@@ -446,7 +446,7 @@ $bootstrap-dock-manager: extend(
|
|
|
446
446
|
/// Generates a light indigo dock-manager schema.
|
|
447
447
|
/// @type Map
|
|
448
448
|
/// @prop {Color} background-color [color: ('gray', 100)] - Sets the base dock manager color as well as the pane headers and tabs background colors.
|
|
449
|
-
/// @prop {Color} button-text [color: 'primary'] - Sets the button text color.
|
|
449
|
+
/// @prop {Color} button-component-text [color: 'primary'] - Sets the button text color.
|
|
450
450
|
/// @prop {Color} context-menu-color-active [contrast-color: 'primary'] - Sets the text color for active context menus.
|
|
451
451
|
/// @prop {Color} context-menu-color [color: ('gray', 700)] - Sets the text color for context menus.
|
|
452
452
|
/// @prop {Color} joystick-background [color: ('primary', 50)] - Sets the background color of the joysticks.
|
|
@@ -468,7 +468,7 @@ $indigo-dock-manager: extend(
|
|
|
468
468
|
),
|
|
469
469
|
),
|
|
470
470
|
|
|
471
|
-
button-text: (
|
|
471
|
+
button-component-text: (
|
|
472
472
|
color: 'primary',
|
|
473
473
|
),
|
|
474
474
|
|
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
/// Includes all category related styles into the current style block.
|
|
28
28
|
/// @param {String} $category - The type scale category.
|
|
29
|
-
/// @param {String} $check [true] - Toggles category checks against ITypeScale.
|
|
30
|
-
/// Set to false when using a custom type scale.
|
|
29
|
+
/// @param {String} $check [true] - Toggles category checks against ITypeScale. Set to false when using a custom type scale.
|
|
31
30
|
/// @example scss - Add the `h1` styles to custom CSS selector.
|
|
32
31
|
/// .fancy-h1 {
|
|
33
32
|
/// @include type-style('h1');
|
|
@@ -135,9 +134,6 @@
|
|
|
135
134
|
/// The produced styles are based on the passed typeface and type scale.
|
|
136
135
|
/// @access public
|
|
137
136
|
/// @param {String | List} $font-family - The font family to be used across all typographic elements.
|
|
138
|
-
/// Accepts a Sass list (e.g. "Open Sans", Helvetica, sans-serif), a quoted string
|
|
139
|
-
/// (e.g. "'Comic Sans MS', sans-serif" for backward compatibility), or any other
|
|
140
|
-
/// valid CSS value such as var(--my-font), inherit, etc.
|
|
141
137
|
/// @param {Map} $type-scale - A type scale map as produced by the type-scale function.
|
|
142
138
|
/// @example scss - Using a font-family list
|
|
143
139
|
/// @include typography(("Open Sans", Helvetica, sans-serif), $my-type-scale);
|
package/sass/utils/_map.scss
CHANGED
|
@@ -31,7 +31,15 @@
|
|
|
31
31
|
$result: ();
|
|
32
32
|
|
|
33
33
|
@each $map in $maps {
|
|
34
|
-
$
|
|
34
|
+
$cleaned: clean($map);
|
|
35
|
+
|
|
36
|
+
@if map.has-key($cleaned, '_meta') {
|
|
37
|
+
$_meta: map.get($result, '_meta') or ();
|
|
38
|
+
$result: map.merge($result, $cleaned);
|
|
39
|
+
$result: map.set($result, '_meta', map.deep-merge($_meta, map.get($cleaned, '_meta')));
|
|
40
|
+
} @else {
|
|
41
|
+
$result: map.merge($result, $cleaned);
|
|
42
|
+
}
|
|
35
43
|
}
|
|
36
44
|
|
|
37
45
|
@return $result;
|