igniteui-theming 27.0.0 → 27.2.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/json/colors/presets/palettes.json +1 -1
- package/dist/json/components/bootstrap.json +1 -1
- package/dist/json/components/fluent.json +1 -1
- package/dist/json/components/indigo.json +1 -1
- package/dist/json/components/material.json +1 -1
- package/dist/json/components/themes.json +32 -2
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/theming/dist/json/colors/presets/palettes.js +2 -2
- package/dist/mcp/theming/dist/json/components/themes.js +13 -3
- package/dist/tailwind/themes/dark/indigo.css +1 -1
- package/dist/tailwind/themes/light/indigo.css +1 -1
- package/dist/tailwind/utilities/bootstrap.css +1 -1
- package/dist/tailwind/utilities/fluent.css +1 -1
- package/dist/tailwind/utilities/indigo.css +1 -1
- package/dist/tailwind/utilities/material.css +1 -1
- package/package.json +1 -1
- package/sass/bem/_index.scss +26 -2
- package/sass/color/presets/dark/_indigo.scss +9 -9
- package/sass/color/presets/light/_indigo.scss +9 -9
- package/sass/themes/components/grid/_grid-summary-theme.scss +9 -3
- package/sass/themes/components/grid/_grid-theme.scss +54 -273
- package/sass/themes/schemas/components/light/_grid-summary.scss +6 -2
- package/sass/themes/schemas/components/light/_grid.scss +17 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-theming",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.2.0",
|
|
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": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
package/sass/bem/_index.scss
CHANGED
|
@@ -150,6 +150,14 @@ $_bem-mod-cache: () !default;
|
|
|
150
150
|
@return string.index($x, ':');
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
/// Checks if the passed selector string contains an attribute selector.
|
|
154
|
+
/// @access private
|
|
155
|
+
/// @param {String} $x - The string to check for attribute selectors.
|
|
156
|
+
/// @returns {number|null} Will return the index of the occurrence, or null if the string does not contain any attribute selectors.
|
|
157
|
+
@function bem--contains-attr($x) {
|
|
158
|
+
@return string.index($x, '[');
|
|
159
|
+
}
|
|
160
|
+
|
|
153
161
|
/// Returns the BEM block-name that generated `$x`. Does not include leading ".".
|
|
154
162
|
/// @access private
|
|
155
163
|
/// @param {String} $x - The block name.
|
|
@@ -160,6 +168,16 @@ $_bem-mod-cache: () !default;
|
|
|
160
168
|
@return string.slice($x, 1, string.index($x, $bem--sep-elem) - 1);
|
|
161
169
|
} @else if bem--contains-pseudo($x) {
|
|
162
170
|
@return string.slice($x, 1, string.index($x, ':') - 1);
|
|
171
|
+
} @else if bem--contains-attr($x) {
|
|
172
|
+
$attr-idx: string.index($x, '[');
|
|
173
|
+
$end: $attr-idx - 1;
|
|
174
|
+
|
|
175
|
+
// Trim trailing descendant-combinator space before [
|
|
176
|
+
@if string.slice($x, $end, $end) == ' ' {
|
|
177
|
+
$end: $end - 1;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@return string.slice($x, 1, $end);
|
|
163
181
|
}
|
|
164
182
|
|
|
165
183
|
@return $x;
|
|
@@ -169,7 +187,13 @@ $_bem-mod-cache: () !default;
|
|
|
169
187
|
/// @access private
|
|
170
188
|
@function bem--extract-first-selector($x) {
|
|
171
189
|
$parens: string.index($x, '(');
|
|
172
|
-
$
|
|
190
|
+
$space: string.index($x, ' ');
|
|
191
|
+
$bracket: string.index($x, '[');
|
|
192
|
+
|
|
193
|
+
// A space that precedes an attribute selector is a descendant combinator —
|
|
194
|
+
// treat the whole selector as a single unit (no split before the [...])
|
|
195
|
+
$space-before-attr: $space and $bracket and $space < $bracket;
|
|
196
|
+
$eow: if($parens, string.index($x, ')'), if($space-before-attr, -1, $space or -1));
|
|
173
197
|
|
|
174
198
|
@return string.slice($x, 1, $eow);
|
|
175
199
|
}
|
|
@@ -403,7 +427,7 @@ $_bem-mod-cache: () !default;
|
|
|
403
427
|
$context: bem--selector-to-string(&);
|
|
404
428
|
$block: bem--extract-block($context);
|
|
405
429
|
$first: bem--extract-first-selector($context);
|
|
406
|
-
$nested: bem--contains-pseudo($context) or bem--contains-mod($context);
|
|
430
|
+
$nested: bem--contains-pseudo($context) or bem--contains-mod($context) or bem--contains-attr($context);
|
|
407
431
|
$mod: $m or $mod;
|
|
408
432
|
|
|
409
433
|
// Validate context
|
|
@@ -23,7 +23,7 @@ $surface-shades: shades('surface', #1e1f24, $color-shades);
|
|
|
23
23
|
/// @prop {Color} surface [#1e1f24] - The surface color.
|
|
24
24
|
$palette: (
|
|
25
25
|
'primary': (
|
|
26
|
-
'50': #
|
|
26
|
+
'50': #d9deff,
|
|
27
27
|
'50-contrast': black,
|
|
28
28
|
'100': #a3aff6,
|
|
29
29
|
'100-contrast': black,
|
|
@@ -55,7 +55,7 @@ $palette: (
|
|
|
55
55
|
'seed-contrast': white,
|
|
56
56
|
),
|
|
57
57
|
'secondary': (
|
|
58
|
-
'50': #
|
|
58
|
+
'50': #d9deff,
|
|
59
59
|
'50-contrast': black,
|
|
60
60
|
'100': #a3aff6,
|
|
61
61
|
'100-contrast': black,
|
|
@@ -95,11 +95,11 @@ $palette: (
|
|
|
95
95
|
'200-contrast': white,
|
|
96
96
|
'300': #6c707a,
|
|
97
97
|
'300-contrast': white,
|
|
98
|
-
'400': #
|
|
98
|
+
'400': #8e9096,
|
|
99
99
|
'400-contrast': black,
|
|
100
|
-
'500': #
|
|
100
|
+
'500': #b0b2b7,
|
|
101
101
|
'500-contrast': black,
|
|
102
|
-
'600': #
|
|
102
|
+
'600': #cbcdd2,
|
|
103
103
|
'600-contrast': black,
|
|
104
104
|
'700': #ebedf2,
|
|
105
105
|
'700-contrast': black,
|
|
@@ -111,11 +111,11 @@ $palette: (
|
|
|
111
111
|
'seed-contrast': black,
|
|
112
112
|
),
|
|
113
113
|
'info': (
|
|
114
|
-
'50': #
|
|
114
|
+
'50': #f8e2ff,
|
|
115
115
|
'50-contrast': black,
|
|
116
|
-
'100': #
|
|
116
|
+
'100': #f1c4ff,
|
|
117
117
|
'100-contrast': black,
|
|
118
|
-
'200': #
|
|
118
|
+
'200': #e89eff,
|
|
119
119
|
'200-contrast': black,
|
|
120
120
|
'300': #da64ff,
|
|
121
121
|
'300-contrast': black,
|
|
@@ -207,7 +207,7 @@ $palette: (
|
|
|
207
207
|
'seed-contrast': black,
|
|
208
208
|
),
|
|
209
209
|
'error': (
|
|
210
|
-
'50': #
|
|
210
|
+
'50': #ffebef,
|
|
211
211
|
'50-contrast': black,
|
|
212
212
|
'100': #ffb0b7,
|
|
213
213
|
'100-contrast': black,
|
|
@@ -23,7 +23,7 @@ $surface-shades: shades('surface', #f8f8fa, $color-shades);
|
|
|
23
23
|
/// @prop {Color} surface [#f8f8fa] - The surface color.
|
|
24
24
|
$palette: (
|
|
25
25
|
'primary': (
|
|
26
|
-
'50': #
|
|
26
|
+
'50': #d9deff,
|
|
27
27
|
'50-contrast': black,
|
|
28
28
|
'100': #a3aff6,
|
|
29
29
|
'100-contrast': black,
|
|
@@ -55,7 +55,7 @@ $palette: (
|
|
|
55
55
|
'seed-contrast': white,
|
|
56
56
|
),
|
|
57
57
|
'secondary': (
|
|
58
|
-
'50': #
|
|
58
|
+
'50': #d9deff,
|
|
59
59
|
'50-contrast': black,
|
|
60
60
|
'100': #a3aff6,
|
|
61
61
|
'100-contrast': black,
|
|
@@ -93,11 +93,11 @@ $palette: (
|
|
|
93
93
|
'100-contrast': black,
|
|
94
94
|
'200': #ebedf2,
|
|
95
95
|
'200-contrast': black,
|
|
96
|
-
'300': #
|
|
96
|
+
'300': #cbcdd2,
|
|
97
97
|
'300-contrast': black,
|
|
98
|
-
'400': #
|
|
98
|
+
'400': #b0b2b7,
|
|
99
99
|
'400-contrast': black,
|
|
100
|
-
'500': #
|
|
100
|
+
'500': #8e9096,
|
|
101
101
|
'500-contrast': black,
|
|
102
102
|
'600': #6c707a,
|
|
103
103
|
'600-contrast': white,
|
|
@@ -111,11 +111,11 @@ $palette: (
|
|
|
111
111
|
'seed-contrast': black,
|
|
112
112
|
),
|
|
113
113
|
'info': (
|
|
114
|
-
'50': #
|
|
114
|
+
'50': #f8e2ff,
|
|
115
115
|
'50-contrast': black,
|
|
116
|
-
'100': #
|
|
116
|
+
'100': #f1c4ff,
|
|
117
117
|
'100-contrast': black,
|
|
118
|
-
'200': #
|
|
118
|
+
'200': #e89eff,
|
|
119
119
|
'200-contrast': black,
|
|
120
120
|
'300': #da64ff,
|
|
121
121
|
'300-contrast': black,
|
|
@@ -207,7 +207,7 @@ $palette: (
|
|
|
207
207
|
'seed-contrast': black,
|
|
208
208
|
),
|
|
209
209
|
'error': (
|
|
210
|
-
'50': #
|
|
210
|
+
'50': #ffebef,
|
|
211
211
|
'50-contrast': black,
|
|
212
212
|
'100': #ffb0b7,
|
|
213
213
|
'100-contrast': black,
|
|
@@ -26,9 +26,11 @@
|
|
|
26
26
|
/// @param {Color} $background-color [null] - The summaries background color. PRIMARY - derives label-color, result-color, border-color, pinned-border-color.
|
|
27
27
|
/// @param {Color} $label-color [null] - The summaries label color. PRIMARY - derives label-hover-color. Auto-derived from background-color.
|
|
28
28
|
/// @param {Color} $result-color [null] - The summaries value/result color. Auto-derived from background-color.
|
|
29
|
+
/// @param {String} $border-width [null] - The summaries border width.
|
|
30
|
+
/// @param {String} $border-style [null] - The summaries border style.
|
|
29
31
|
/// @param {Color} $border-color [null] - The summaries border color. Auto-derived from background-color.
|
|
30
|
-
/// @param {
|
|
31
|
-
/// @param {
|
|
32
|
+
/// @param {String} $pinned-border-width [null] - The border width of the summary panel.
|
|
33
|
+
/// @param {String} $pinned-border-style [null] - The border style of the summary panel.
|
|
32
34
|
/// @param {Color} $pinned-border-color [null] - The border color of the summary panel. Auto-derived from background-color.
|
|
33
35
|
/// @param {Color} $label-hover-color [null] - The summaries hover label color. Auto-derived from label-color.
|
|
34
36
|
/// @requires $light-material-schema
|
|
@@ -45,6 +47,8 @@
|
|
|
45
47
|
$background-color: null,
|
|
46
48
|
$label-color: null,
|
|
47
49
|
$result-color: null,
|
|
50
|
+
$border-width: null,
|
|
51
|
+
$border-style: null,
|
|
48
52
|
$border-color: null,
|
|
49
53
|
$pinned-border-width: null,
|
|
50
54
|
$pinned-border-style: null,
|
|
@@ -75,7 +79,7 @@
|
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
@if not($border-color) and $background-color {
|
|
78
|
-
$border-color: hsl(from adaptive-contrast(var(--background-color)) h s l / 0.
|
|
82
|
+
$border-color: hsl(from adaptive-contrast(var(--background-color)) h s l / 0.2);
|
|
79
83
|
}
|
|
80
84
|
|
|
81
85
|
@if not($pinned-border-color) and $background-color {
|
|
@@ -89,6 +93,8 @@
|
|
|
89
93
|
background-color: $background-color,
|
|
90
94
|
label-color: $label-color,
|
|
91
95
|
result-color: $result-color,
|
|
96
|
+
border-width: $border-width,
|
|
97
|
+
border-style: $border-style,
|
|
92
98
|
border-color: $border-color,
|
|
93
99
|
pinned-border-width: $pinned-border-width,
|
|
94
100
|
pinned-border-style: $pinned-border-style,
|