igniteui-theming 27.2.0 → 27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "27.2.0",
3
+ "version": "27.3.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",
@@ -78,10 +78,18 @@
78
78
  $result-color: adaptive-contrast(var(--background-color));
79
79
  }
80
80
 
81
+ @if not($border-color) and $background-color and $result-color {
82
+ $border-color: hsl(from color-mix(in srgb, var(--result-color) 16%, var(--background-color)) h s l / 0.38);
83
+ }
84
+
81
85
  @if not($border-color) and $background-color {
82
86
  $border-color: hsl(from adaptive-contrast(var(--background-color)) h s l / 0.2);
83
87
  }
84
88
 
89
+ @if not($pinned-border-color) and $background-color and $result-color {
90
+ $pinned-border-color: color-mix(in srgb, var(--result-color) 20%, var(--background-color));
91
+ }
92
+
85
93
  @if not($pinned-border-color) and $background-color {
86
94
  $pinned-border-color: hsl(from adaptive-contrast(var(--background-color)) h s l / 0.26);
87
95
  }
@@ -52,6 +52,7 @@
52
52
  /// @param {String} $row-border-width [null] - The row bottom border width.
53
53
  /// @param {String} $row-border-style [null] - The row bottom border style.
54
54
  /// @param {Color} $row-border-color [null] - The row bottom border color. Auto-derived from content-background.
55
+ /// @param {Color} $action-border-color [null] - The color used for action borders.
55
56
  /// @param {String} $pinned-border-width [null] - The border width of the pinned border.
56
57
  /// @param {String} $pinned-border-style [null] - The CSS border style of the pinned border.
57
58
  /// @param {Color} $pinned-border-color [null] - The color of the pinned border. Auto-derived from content-background.
@@ -160,6 +161,8 @@
160
161
  $row-border-style: null,
161
162
  $row-border-color: null,
162
163
 
164
+ $action-border-color: null,
165
+
163
166
  $pinned-border-width: null,
164
167
  $pinned-border-style: null,
165
168
  $pinned-border-color: null,
@@ -331,9 +334,7 @@
331
334
  }
332
335
 
333
336
  @if not($header-border-color) and $header-text-color and $header-background {
334
- $header-border-color: hsl(
335
- from color-mix(in srgb, var(--header-text-color) 20%, var(--header-background)) h s l / 0.38
336
- );
337
+ $header-border-color: color-mix(in srgb, var(--header-text-color) 20%, var(--header-background));
337
338
  }
338
339
 
339
340
  @if not($sorted-header-icon-color) and $accent-color {
@@ -398,6 +399,10 @@
398
399
  $row-border-color: hsl(from color-mix(in srgb, var(--foreground) 16%, var(--background)) h s l / 0.38);
399
400
  }
400
401
 
402
+ @if not($action-border-color) and $foreground and $background {
403
+ $action-border-color: color-mix(in srgb, var(--foreground) 20%, var(--background));
404
+ }
405
+
401
406
  @if not($pinned-border-color) and $foreground and $background {
402
407
  $pinned-border-color: color-mix(in srgb, var(--foreground) 20%, var(--background));
403
408
  }
@@ -684,6 +689,8 @@
684
689
  row-border-style: $row-border-style,
685
690
  row-border-color: $row-border-color,
686
691
 
692
+ action-border-color: $action-border-color,
693
+
687
694
  pinned-border-width: $pinned-border-width,
688
695
  pinned-border-style: $pinned-border-style,
689
696
  pinned-border-color: $pinned-border-color,
@@ -90,16 +90,24 @@
90
90
  $item-text-color: var(--foreground);
91
91
  }
92
92
 
93
- @if not($item-hover-background) and $background and $accent-color {
94
- $item-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--background));
93
+ @if not($item-hover-background) and $dropdown-background and $accent-color {
94
+ $item-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--dropdown-background));
95
+ }
96
+
97
+ @if not($item-hover-background) and $dropdown-background {
98
+ $item-hover-background: dynamic-shade(var(--dropdown-background));
95
99
  }
96
100
 
97
101
  @if not($item-hover-text-color) and $item-text-color {
98
102
  $item-hover-text-color: var(--item-text-color);
99
103
  }
100
104
 
101
- @if not($item-focus-background) and $background and $accent-color {
102
- $item-focus-background: color-mix(in srgb, var(--accent-color) 12%, var(--background));
105
+ @if not($item-focus-background) and $dropdown-background and $accent-color {
106
+ $item-focus-background: color-mix(in srgb, var(--accent-color) 12%, var(--dropdown-background));
107
+ }
108
+
109
+ @if not($item-focus-background) and $dropdown-background {
110
+ $item-focus-background: dynamic-shade(var(--dropdown-background), $offset: 8);
103
111
  }
104
112
 
105
113
  @if not($item-focus-text-color) and $item-text-color {
@@ -110,10 +118,6 @@
110
118
  $border-color: color-mix(in srgb, var(--foreground) 20%, var(--background));
111
119
  }
112
120
 
113
- @if not($title-text-color) and $background {
114
- $title-text-color: adaptive-contrast(var(--background));
115
- }
116
-
117
121
  @if not($item-text-color) and $dropdown-background {
118
122
  $item-text-color: adaptive-contrast(var(--dropdown-background));
119
123
  }
@@ -60,6 +60,7 @@ $dark-material-grid-summary: extend(
60
60
  /// Generates a dark fluent grid-summary schema.
61
61
  /// @type Map
62
62
  /// @prop {Map} label-color [color: ('primary', 300)] - The summaries label color.
63
+ /// @prop {Map} pinned-border-color [color: ('gray', 300, .24)] - The color of the pinned border.
63
64
  /// @requires $fluent-grid-summary
64
65
  $dark-fluent-grid-summary: extend(
65
66
  $fluent-grid-summary,
@@ -71,6 +72,14 @@ $dark-fluent-grid-summary: extend(
71
72
  300,
72
73
  ),
73
74
  ),
75
+
76
+ pinned-border-color: (
77
+ color: (
78
+ 'gray',
79
+ 300,
80
+ 0.24,
81
+ ),
82
+ ),
74
83
  )
75
84
  );
76
85
 
@@ -11,7 +11,8 @@
11
11
  /// @type Map
12
12
  /// @prop {Color} content-background [color: 'surface'] - The table body background color.
13
13
  /// @prop {Map} drop-area-background [color: ('gray', 100, .4)] - The drop area background color.
14
- /// @prop {Map} header-border-color [color: ('gray', 200, .24)] - The color used for header borders.
14
+ /// @prop {Map} header-border-color [color: ('gray', 200)] - The color used for header borders.
15
+ /// @prop {Map} action-border-color [color: ('gray', 200)] - The color used for action borders.
15
16
  /// @prop {Map} header-background [color: ('gray', 100)] - The table header background color.
16
17
  /// @prop {Map} header-selected-background [color: ('secondary', 600)] - The table header background color when selected (ex. column selection).
17
18
  /// @prop {Map} header-selected-text-color [contrast-color: ('secondary', 600)] - The table header text color when selected (ex. column selection).
@@ -51,7 +52,13 @@ $base-dark-grid: (
51
52
  color: (
52
53
  'gray',
53
54
  200,
54
- 0.24,
55
+ ),
56
+ ),
57
+
58
+ action-border-color: (
59
+ color: (
60
+ 'gray',
61
+ 200,
55
62
  ),
56
63
  ),
57
64
 
@@ -275,6 +282,7 @@ $dark-material-grid: extend(
275
282
  /// @prop {Map} row-selected-hover-background [color: ('gray', 200)] - The selected row background color on hover.
276
283
  /// @prop {Map} body-column-selected-border-color [color: ('gray', 100)] - The border color used for the body column when in group-row state.
277
284
  /// @prop {Map} body-column-hover-selected-border-color [color: ('gray', 200)] - The border color used for the body column when in group-row + hover state.
285
+ /// @prop {Map} pinned-border-color [color: ('gray', 300, .24)] - The color of the pinned border.
278
286
  /// @prop {Map} row-selected-hover-text-color [contrast-color: ('gray', 200)] - The selected row hover text color.
279
287
  /// @prop {Map} cell-selected-within-background [color: ('gray', 200)] - The background of the selected cell inside a selected row/column.
280
288
  /// @prop {Map} cell-selected-within-text-color [contrast-color: ('gray', 200)] - The color of the selected cell inside a selected row/column.
@@ -456,6 +464,7 @@ $dark-bootstrap-grid: extend(
456
464
  /// @type Map
457
465
  /// @prop {Map} content-text-color [contrast-color: ('gray', 50, .8)] - The table body text color.
458
466
  /// @prop {Map} header-border-color [color: ('gray', 200)] - The color used for header borders.
467
+ /// @prop {Map} action-border-color [color: ('gray', 200)] - The color used for action borders.
459
468
  /// @prop {Map} header-text-color [contrast-color: ('gray', 50, .9)] - The table header text color.
460
469
  /// @prop {Map} header-selected-background [color: ('primary', 900)] - The table header background color when selected (ex. column selection).
461
470
  /// @prop {Map} header-selected-text-color [contrast-color: ('gray' 50)] - The table header text color when selected (ex. column selection).
@@ -528,6 +537,13 @@ $dark-indigo-grid: extend(
528
537
  ),
529
538
  ),
530
539
 
540
+ action-border-color: (
541
+ color: (
542
+ 'gray',
543
+ 200,
544
+ ),
545
+ ),
546
+
531
547
  header-text-color: (
532
548
  contrast-color: (
533
549
  'gray',
@@ -16,7 +16,8 @@
16
16
  /// @prop {Map} sortable-header-icon-hover-color [color: ('secondary', 500)] - The icon color on hover in grid header when the column is sortable.
17
17
  /// @prop {Number} header-border-width [1px] - The border width used for header borders.
18
18
  /// @prop {String} header-border-style [solid] - The border style used for header borders.
19
- /// @prop {Map} header-border-color [color: ('gray', 400, .38)] - The color used for header borders.
19
+ /// @prop {Map} header-border-color [color: ('gray', 400)] - The color used for header borders.
20
+ /// @prop {Map} action-border-color [color: ('gray', 400)] - The color used for action borders.
20
21
  /// @prop {Map} ghost-header-text-color [color: ('gray', 700)] - The dragged header text color.
21
22
  /// @prop {Map} ghost-header-icon-color [color: ('gray', 600)] - The dragged header icon color.
22
23
  /// @prop {Map} ghost-header-background [color: ('gray', 50)] - The dragged header background color.
@@ -176,7 +177,13 @@ $light-grid: extend(
176
177
  color: (
177
178
  'gray',
178
179
  400,
179
- 0.38,
180
+ ),
181
+ ),
182
+
183
+ action-border-color: (
184
+ color: (
185
+ 'gray',
186
+ 400,
180
187
  ),
181
188
  ),
182
189
 
@@ -839,7 +846,8 @@ $material-grid: extend(
839
846
  /// @prop {Map} header-text-color [color: ('gray', 800)] - The table header text color.
840
847
  /// @prop {Map} header-selected-background [color: ('gray', 200)] - The table header background color when selected (ex. column selection).
841
848
  /// @prop {Map} header-selected-text-color [contrast-color: ('gray', 200)] - The table header text color when selected (ex. column selection).
842
- /// @prop {Map} header-border-color [color: ('gray', 100)] - The color used for header borders.
849
+ /// @prop {Map} header-border-color [color: ('gray', 300)] - The color used for header borders.
850
+ /// @prop {Map} action-border-color [color: ('gray', 300)] - The color used for action borders.
843
851
  /// @prop {Map} row-selected-background [color: ('gray', 200)] - The selected row background color.
844
852
  /// @prop {Map} row-selected-hover-background [color: ('gray', 300)] - The selected row hover background.
845
853
  /// @prop {Map} body-column-selected-border-color [color: ('gray', 200)] - The border color used for the body column when in group-row state.
@@ -901,7 +909,14 @@ $fluent-grid: extend(
901
909
  header-border-color: (
902
910
  color: (
903
911
  'gray',
904
- 100,
912
+ 300,
913
+ ),
914
+ ),
915
+
916
+ action-border-color: (
917
+ color: (
918
+ 'gray',
919
+ 300,
905
920
  ),
906
921
  ),
907
922
 
@@ -1227,6 +1242,7 @@ $bootstrap-grid: extend(
1227
1242
  /// @prop {Map} header-selected-background [color: ('primary', 50)] - The table header background color when selected (ex. column selection).
1228
1243
  /// @prop {Map} header-selected-text-color [color: 'gray', 900] - The table header text color when selected (ex. column selection).
1229
1244
  /// @prop {Map} header-border-color [color: ('gray', 400)] - The color used for header borders.
1245
+ /// @prop {Map} action-border-color [color: ('gray', 400)] - The color used for action borders.
1230
1246
  /// @prop {Map} filtering-row-background [color: ('surface', 500)] - The background color of the filtering row.
1231
1247
  /// @prop {Map} filtering-dialog-background [contrast-color: ('gray', 900)] - The background color of the advanced filtering dialog.
1232
1248
  /// @prop {Map} edited-row-indicator [color: ('primary', 400)] - The indicator's color of edited row.
@@ -1331,6 +1347,13 @@ $indigo-grid: extend(
1331
1347
  ),
1332
1348
  ),
1333
1349
 
1350
+ action-border-color: (
1351
+ color: (
1352
+ 'gray',
1353
+ 400,
1354
+ ),
1355
+ ),
1356
+
1334
1357
  filtering-header-background: (
1335
1358
  color: (
1336
1359
  'gray',