igniteui-theming 27.2.1 → 27.4.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.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/dist/json/components/bootstrap.json +1 -1
  3. package/dist/json/components/fluent.json +1 -1
  4. package/dist/json/components/indigo.json +1 -1
  5. package/dist/json/components/material.json +1 -1
  6. package/dist/json/components/themes.json +15 -0
  7. package/dist/mcp/generators/css.d.ts +77 -0
  8. package/dist/mcp/generators/css.js +131 -1
  9. package/dist/mcp/index.js +7 -4
  10. package/dist/mcp/theming/dist/json/components/themes.js +11 -1
  11. package/dist/mcp/tools/descriptions.d.ts +4 -4
  12. package/dist/mcp/tools/descriptions.js +13 -3
  13. package/dist/mcp/tools/handlers/component-theme.js +1 -1
  14. package/dist/mcp/tools/handlers/custom-palette.js +1 -1
  15. package/dist/mcp/tools/handlers/elevations.d.ts +2 -2
  16. package/dist/mcp/tools/handlers/elevations.js +31 -1
  17. package/dist/mcp/tools/handlers/palette.js +1 -1
  18. package/dist/mcp/tools/handlers/theme.js +63 -1
  19. package/dist/mcp/tools/handlers/typography.d.ts +2 -2
  20. package/dist/mcp/tools/handlers/typography.js +34 -1
  21. package/dist/mcp/tools/schemas.d.ts +9 -0
  22. package/dist/mcp/tools/schemas.js +6 -3
  23. package/dist/tailwind/utilities/bootstrap.css +1 -1
  24. package/dist/tailwind/utilities/fluent.css +1 -1
  25. package/dist/tailwind/utilities/indigo.css +1 -1
  26. package/dist/tailwind/utilities/material.css +1 -1
  27. package/package.json +1 -1
  28. package/sass/themes/components/grid/_grid-theme.scss +9 -0
  29. package/sass/themes/components/navdrawer/_navdrawer-theme.scss +7 -0
  30. package/sass/themes/schemas/components/dark/_grid.scss +16 -0
  31. package/sass/themes/schemas/components/light/_grid.scss +24 -0
  32. package/sass/themes/schemas/components/light/_navdrawer.scss +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "27.2.1",
3
+ "version": "27.4.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",
@@ -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,
@@ -396,6 +399,10 @@
396
399
  $row-border-color: hsl(from color-mix(in srgb, var(--foreground) 16%, var(--background)) h s l / 0.38);
397
400
  }
398
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
+
399
406
  @if not($pinned-border-color) and $foreground and $background {
400
407
  $pinned-border-color: color-mix(in srgb, var(--foreground) 20%, var(--background));
401
408
  }
@@ -682,6 +689,8 @@
682
689
  row-border-style: $row-border-style,
683
690
  row-border-color: $row-border-color,
684
691
 
692
+ action-border-color: $action-border-color,
693
+
685
694
  pinned-border-width: $pinned-border-width,
686
695
  pinned-border-style: $pinned-border-style,
687
696
  pinned-border-color: $pinned-border-color,
@@ -39,6 +39,8 @@
39
39
  /// @param {Color} $shadow [null] - Sets a custom shadow to be used by the drawer.
40
40
  /// @param {List} $border-radius [null] - The border radius used for the navdrawer.
41
41
  /// @param {List} $item-border-radius [null] - The border radius used for the navdrawer item.
42
+ /// @param {Number} $size [null] - The width of the navigation drawer in its expanded (full) state.
43
+ /// @param {Number} $size--mini [null] - The width of the navigation drawer in its mini state.
42
44
  /// @requires $light-material-schema
43
45
  /// @example scss - Change the background and item colors
44
46
  /// $navdrawer-theme: navdrawer-theme(
@@ -54,6 +56,9 @@
54
56
  $border-radius: null,
55
57
  $item-border-radius: null,
56
58
 
59
+ $size: null,
60
+ $size--mini: null,
61
+
57
62
  $background: null,
58
63
  $border-color: null,
59
64
 
@@ -139,6 +144,8 @@
139
144
  selector: $selector,
140
145
  border-radius: $border-radius,
141
146
  item-border-radius: $item-border-radius,
147
+ size: $size,
148
+ size--mini: $size--mini,
142
149
  background: $background,
143
150
  border-color: $border-color,
144
151
  item-text-color: $item-text-color,
@@ -12,6 +12,7 @@
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
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).
@@ -54,6 +55,13 @@ $base-dark-grid: (
54
55
  ),
55
56
  ),
56
57
 
58
+ action-border-color: (
59
+ color: (
60
+ 'gray',
61
+ 200,
62
+ ),
63
+ ),
64
+
57
65
  header-background: (
58
66
  color: (
59
67
  'gray',
@@ -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',
@@ -17,6 +17,7 @@
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
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.
@@ -179,6 +180,13 @@ $light-grid: extend(
179
180
  ),
180
181
  ),
181
182
 
183
+ action-border-color: (
184
+ color: (
185
+ 'gray',
186
+ 400,
187
+ ),
188
+ ),
189
+
182
190
  ghost-header-background: (
183
191
  color: (
184
192
  'gray',
@@ -839,6 +847,7 @@ $material-grid: extend(
839
847
  /// @prop {Map} header-selected-background [color: ('gray', 200)] - The table header background color when selected (ex. column selection).
840
848
  /// @prop {Map} header-selected-text-color [contrast-color: ('gray', 200)] - The table header text color when selected (ex. column selection).
841
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.
842
851
  /// @prop {Map} row-selected-background [color: ('gray', 200)] - The selected row background color.
843
852
  /// @prop {Map} row-selected-hover-background [color: ('gray', 300)] - The selected row hover background.
844
853
  /// @prop {Map} body-column-selected-border-color [color: ('gray', 200)] - The border color used for the body column when in group-row state.
@@ -904,6 +913,13 @@ $fluent-grid: extend(
904
913
  ),
905
914
  ),
906
915
 
916
+ action-border-color: (
917
+ color: (
918
+ 'gray',
919
+ 300,
920
+ ),
921
+ ),
922
+
907
923
  row-border-color: (
908
924
  color: (
909
925
  'gray',
@@ -1226,6 +1242,7 @@ $bootstrap-grid: extend(
1226
1242
  /// @prop {Map} header-selected-background [color: ('primary', 50)] - The table header background color when selected (ex. column selection).
1227
1243
  /// @prop {Map} header-selected-text-color [color: 'gray', 900] - The table header text color when selected (ex. column selection).
1228
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.
1229
1246
  /// @prop {Map} filtering-row-background [color: ('surface', 500)] - The background color of the filtering row.
1230
1247
  /// @prop {Map} filtering-dialog-background [contrast-color: ('gray', 900)] - The background color of the advanced filtering dialog.
1231
1248
  /// @prop {Map} edited-row-indicator [color: ('primary', 400)] - The indicator's color of edited row.
@@ -1330,6 +1347,13 @@ $indigo-grid: extend(
1330
1347
  ),
1331
1348
  ),
1332
1349
 
1350
+ action-border-color: (
1351
+ color: (
1352
+ 'gray',
1353
+ 400,
1354
+ ),
1355
+ ),
1356
+
1333
1357
  filtering-header-background: (
1334
1358
  color: (
1335
1359
  'gray',
@@ -15,10 +15,14 @@
15
15
  /// @prop {Map} item-disabled-icon-color [color: ('gray', 400)] - The item's disabled icon color.
16
16
  /// @prop {Map} elevation [16] - The elevation level, between 0-24, to be used for the drawer.
17
17
  /// @prop {List} border-radius [(rem(0), rem(0), rem(36px))] - The border radius used for the navdrawer component.
18
+ /// @prop {Number} size [rem(240px)] - The width of the navigation drawer in its expanded (full) state.
19
+ /// @prop {Number} size--mini [rem(56px)] - The width of the navigation drawer in its mini state.
18
20
  /// @requires $default-elevation-navdrawer
19
21
  $light-navdrawer: extend(
20
22
  $default-elevation-navdrawer,
21
23
  (
24
+ size: rem(240px),
25
+ size--mini: rem(56px),
22
26
  background: (
23
27
  color: 'surface',
24
28
  ),
@@ -169,10 +173,12 @@ $material-navdrawer: extend(
169
173
  /// @prop {Map} item-icon-color [ color: ('primary', 500)] - The item's icon color.
170
174
  /// @prop {Map} item-header-text-color [color: ('gray', 800)] - The header's idle text color.
171
175
  /// @prop {Map} typography [ item: (value: 'body-2'), header: (value: 'subtitle-1')] - The typography styles used for the component.
176
+ /// @prop {Number} size--mini [rem(40px)] - The width of the navigation drawer in its mini state.
172
177
  /// @requires $light-navdrawer
173
178
  $fluent-navdrawer: extend(
174
179
  $light-navdrawer,
175
180
  (
181
+ size--mini: rem(40px),
176
182
  item-border-radius: 0,
177
183
  item-hover-icon-color: (
178
184
  color: (
@@ -262,10 +268,12 @@ $fluent-navdrawer: extend(
262
268
  /// @prop {Map} item-icon-color [ color: ('gray', 900)] - The item's icon color.
263
269
  /// @prop {Map} item-header-text-color [color: ('gray', 900)] - The header's idle text color.
264
270
  /// @prop {Map} typography [item: (value: 'body-2'), header: (value: 'caption')] - The typography styles used for the component.
271
+ /// @prop {Number} size--mini [rem(88px)] - The width of the navigation drawer in its mini state.
265
272
  /// @requires $light-navdrawer
266
273
  $bootstrap-navdrawer: extend(
267
274
  $light-navdrawer,
268
275
  (
276
+ size--mini: rem(88px),
269
277
  item-border-radius: (
270
278
  border-radius: (
271
279
  rem(4px),
@@ -365,10 +373,12 @@ $bootstrap-navdrawer: extend(
365
373
  /// @prop {Map} border-color [color: ('gray', 300)] - The navigation drawer right border color.
366
374
  /// @prop {List} item-border-radius [(rem(4px), rem(0), rem(4px))] - The border radius used for the navdrawer items.
367
375
  /// @prop {Map} typography [item: (value: 'subtitle-2'), header: (value: 'overline')] - The typography styles used for the component.
376
+ /// @prop {Number} size--mini [rem(48px)] - The width of the navigation drawer in its mini state.
368
377
  /// @requires $light-navdrawer
369
378
  $indigo-navdrawer: extend(
370
379
  $light-navdrawer,
371
380
  (
381
+ size--mini: rem(48px),
372
382
  border-color: (
373
383
  color: (
374
384
  'gray',