igniteui-theming 27.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "27.1.0",
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",
@@ -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 {Color} $pinned-border-width [null] - The border width of the summary panel.
31
- /// @param {Color} $pinned-border-style [null] - The border style of the summary panel.
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.26);
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,
@@ -270,248 +270,6 @@
270
270
  $theme: digest-schema($grid-schema);
271
271
  $variant: map.get($theme, '_meta', 'theme');
272
272
 
273
- @if not($ghost-header-icon-color) and $ghost-header-background {
274
- $ghost-header-icon-color: hsl(from adaptive-contrast(var(--ghost-header-background)) h s l / 0.07);
275
- }
276
-
277
- @if not($ghost-header-text-color) and $ghost-header-background {
278
- $ghost-header-text-color: adaptive-contrast(var(--ghost-header-background));
279
- }
280
-
281
- @if not($header-selected-text-color) and $header-selected-background and not($header-text-color) {
282
- $header-selected-text-color: adaptive-contrast(var(--header-selected-background));
283
- }
284
-
285
- @if not($header-text-color) and $header-background {
286
- $header-text-color: adaptive-contrast(var(--header-background));
287
- }
288
-
289
- @if not($header-selected-background) and $header-background {
290
- $header-selected-background: dynamic-shade(var(--header-background));
291
- }
292
-
293
- @if not($header-selected-text-color) and $header-text-color {
294
- $header-selected-text-color: var(--header-text-color);
295
- }
296
-
297
- @if not($drop-area-text-color) and $header-text-color {
298
- $drop-area-text-color: var(--header-text-color);
299
- }
300
-
301
- @if not($drop-area-icon-color) and $drop-area-text-color {
302
- $drop-area-icon-color: var(--drop-area-text-color);
303
- }
304
-
305
- @if not($header-border-color) and $header-background {
306
- $header-border-color: hsl(from adaptive-contrast(var(--header-background)) h s l / 0.24);
307
- }
308
-
309
- @if not($content-text-color) and $content-background {
310
- $content-text-color: adaptive-contrast(var(--content-background));
311
- }
312
-
313
- @if not($row-odd-background) and $content-background {
314
- $row-odd-background: hsl(from var(--content-background) h calc(s - 10) l);
315
- }
316
-
317
- @if not($row-odd-text-color) and $row-odd-background {
318
- $row-odd-text-color: adaptive-contrast(var(--row-odd-background));
319
- }
320
-
321
- @if not($row-even-background) and $content-background {
322
- $row-even-background: hsl(from var(--content-background) h calc(s + 10) l);
323
- }
324
-
325
- @if not($row-even-text-color) and $row-even-background {
326
- $row-even-text-color: adaptive-contrast(var(--row-even-background));
327
- }
328
-
329
- @if not($row-hover-background) and $content-background {
330
- $row-hover-background: dynamic-shade(var(--content-background), $offset: 7);
331
- }
332
-
333
- @if not($row-hover-text-color) and $row-hover-background {
334
- $row-hover-text-color: adaptive-contrast(var(--row-hover-background));
335
- }
336
-
337
- @if not($cell-selected-within-background) and $cell-selected-background {
338
- $cell-selected-within-background: dynamic-shade($cell-selected-background);
339
- }
340
-
341
- @if not($cell-selected-background) and $content-background {
342
- $cell-selected-background: dynamic-shade(var(--content-background), $offset: 10);
343
- }
344
-
345
- @if not($cell-selected-text-color) and $cell-selected-background {
346
- $cell-selected-text-color: adaptive-contrast(var(--cell-selected-background));
347
- }
348
-
349
- @if not($row-selected-background) and $content-background {
350
- $row-selected-background: dynamic-shade(var(--content-background));
351
- }
352
-
353
- @if not($row-selected-text-color) and $row-selected-background {
354
- $row-selected-text-color: adaptive-contrast(var(--row-selected-background));
355
- }
356
-
357
- @if not($row-selected-hover-background) and $row-selected-background {
358
- $row-selected-hover-background: dynamic-shade(var(--row-selected-background), $offset: 7);
359
- }
360
-
361
- @if not($row-selected-hover-text-color) and $row-selected-hover-background {
362
- $row-selected-hover-text-color: adaptive-contrast(var(--row-selected-hover-background));
363
- }
364
-
365
- @if not($row-border-color) and $content-background {
366
- $row-border-color: hsl(from adaptive-contrast(var(--content-background)) h s l / 0.08);
367
- }
368
-
369
- @if not($cell-selected-within-background) and $row-selected-background {
370
- $cell-selected-within-background: dynamic-shade(var(--row-selected-background), $offset: 7);
371
- }
372
-
373
- @if not($cell-selected-within-text-color) and $cell-selected-within-background {
374
- $cell-selected-within-text-color: adaptive-contrast(var(--cell-selected-within-background));
375
- }
376
-
377
- @if not($cell-editing-background) and $content-background {
378
- $cell-editing-background: var(--content-background);
379
- }
380
-
381
- @if not($cell-editing-foreground) and $cell-editing-background {
382
- $cell-editing-foreground: adaptive-contrast(var(--cell-editing-background));
383
- }
384
-
385
- @if not($cell-editing-focus-foreground) and $cell-editing-background {
386
- $cell-editing-focus-foreground: adaptive-contrast(var(--cell-editing-background));
387
- }
388
-
389
- @if not($cell-active-border-color) and $content-background {
390
- $cell-active-border-color: hsl(from adaptive-contrast(var(--content-background)) h s l / 0.5);
391
- }
392
-
393
- @if not($pinned-border-color) and $content-background {
394
- $pinned-border-color: hsl(from adaptive-contrast(var(--content-background)) h s l / 0.08);
395
- }
396
-
397
- @if not($group-row-background) and $header-background {
398
- $group-row-background: $header-background;
399
- }
400
-
401
- @if not($expand-icon-color) and $group-row-background {
402
- $expand-icon-color: adaptive-contrast(var(--group-row-background));
403
- }
404
-
405
- @if not($group-row-selected-background) and $group-row-background {
406
- $group-row-selected-background: dynamic-shade(var(--group-row-background), $offset: 10);
407
- }
408
-
409
- @if not($group-label-text) and $group-row-selected-background {
410
- $group-label-text: adaptive-contrast(var(--group-row-selected-background));
411
- }
412
-
413
- @if not($expand-icon-color) and $group-row-selected-background {
414
- $expand-icon-color: adaptive-contrast(var(--group-row-selected-background));
415
- }
416
-
417
- @if not($expand-icon-hover-color) and $expand-icon-color {
418
- $expand-icon-hover-color: var(--expand-icon-color);
419
- }
420
-
421
- @if not($group-count-background) and $group-row-selected-background {
422
- $group-count-background: adaptive-contrast(var(--group-row-selected-background));
423
- }
424
-
425
- @if not($expand-all-icon-color) and $header-background {
426
- $expand-all-icon-color: hsl(from adaptive-contrast(var(--header-background)) h s l / 0.87);
427
- }
428
-
429
- @if not($expand-all-icon-hover-color) and $header-background {
430
- $expand-all-icon-hover-color: adaptive-contrast(var(--header-background));
431
- }
432
-
433
- @if not($sorted-header-icon-color) and $header-background {
434
- $sorted-header-icon-color: hsl(from adaptive-contrast(var(--header-background)) h s l / 0.8);
435
- }
436
-
437
- @if not($sortable-header-icon-hover-color) and $sorted-header-icon-color {
438
- $sortable-header-icon-hover-color: hsl(from var(--sorted-header-icon-color) h s l / 1);
439
- }
440
-
441
- @if not($edit-mode-color) and $content-background {
442
- $edit-mode-color: hsl(from adaptive-contrast(var(--content-background)) h s l / 0.5);
443
- }
444
-
445
- @if not($group-label-text) and $group-row-background {
446
- $group-label-text: adaptive-contrast(var(--group-row-background));
447
- }
448
-
449
- @if not($group-count-background) and $group-row-background {
450
- $group-count-background: adaptive-contrast(var(--group-row-background));
451
- }
452
-
453
- @if not($group-count-text-color) and $group-count-background {
454
- $group-count-text-color: adaptive-contrast(var(--group-count-background));
455
- }
456
-
457
- @if not($grouparea-background) and $header-background {
458
- $grouparea-background: var(--header-background);
459
- }
460
-
461
- @if not($grouparea-color) and $grouparea-background {
462
- $grouparea-color: hsl(from adaptive-contrast(var(--grouparea-background)) h s l / 0.8);
463
- }
464
-
465
- @if not($grouparea-color) and $header-background {
466
- $grouparea-color: hsl(from adaptive-contrast(var(--header-background)) h s l / 0.8);
467
- }
468
-
469
- @if not($drop-area-background) and $grouparea-background {
470
- $drop-area-background: dynamic-shade(var(--grouparea-background));
471
- }
472
-
473
- @if not($drop-area-on-drop-background) and $drop-area-background {
474
- $drop-area-on-drop-background: $drop-area-background;
475
- }
476
-
477
- @if not($drop-area-text-color) and $drop-area-background {
478
- $drop-area-text-color: adaptive-contrast(var(--drop-area-background));
479
- }
480
-
481
- @if not($drop-area-icon-color) and $drop-area-background {
482
- $drop-area-icon-color: adaptive-contrast(var(--drop-area-background));
483
- }
484
-
485
- @if not($filtering-header-background) and $header-background {
486
- $filtering-header-background: color-mix(in hsl, var(--header-background), #fff 5%);
487
- }
488
-
489
- @if not($filtering-header-text-color) and $filtering-header-background {
490
- $filtering-header-text-color: adaptive-contrast(var(--filtering-header-background));
491
- }
492
-
493
- @if not($filtering-row-text-color) and $filtering-row-background {
494
- $filtering-row-text-color: adaptive-contrast(var(--filtering-row-background));
495
- }
496
-
497
- @if not($excel-filtering-header-foreground) and $filtering-row-background {
498
- $excel-filtering-header-foreground: adaptive-contrast(var(--filtering-row-background));
499
- }
500
-
501
- @if not($excel-filtering-subheader-foreground) and $filtering-row-background {
502
- $excel-filtering-subheader-foreground: adaptive-contrast(var(--filtering-row-background));
503
- }
504
-
505
- @if not($excel-filtering-actions-foreground) and $filtering-row-background {
506
- $excel-filtering-actions-foreground: hsl(from adaptive-contrast(var(--filtering-row-background)) h s l / 0.8);
507
- }
508
-
509
- @if not($excel-filtering-actions-disabled-foreground) and $filtering-row-background {
510
- $excel-filtering-actions-disabled-foreground: hsl(
511
- from adaptive-contrast(var(--filtering-row-background)) h s l / 0.5
512
- );
513
- }
514
-
515
273
  @if not($grid-shadow) {
516
274
  $grid-elevation: map.get($grid-schema, 'grid-elevation');
517
275
  $grid-shadow: elevation($grid-elevation);
@@ -540,36 +298,42 @@
540
298
 
541
299
  // header
542
300
 
543
- @if not($header-background) and $foreground and $background {
544
- $header-background: color-mix(in srgb, var(--foreground) 6%, var(--background));
301
+ @if not($header-text-color) and $header-background {
302
+ $header-text-color: adaptive-contrast(var(--header-background));
545
303
  }
546
304
 
547
305
  @if not($header-text-color) and $foreground {
548
306
  $header-text-color: var(--foreground);
549
307
  }
550
308
 
551
- @if not($header-selected-background) and $accent-color and $background {
552
- $header-selected-background: color-mix(in srgb, var(--accent-color) 12%, var(--background));
309
+ @if not($header-background) and $foreground and $background {
310
+ $header-background: color-mix(in srgb, var(--foreground) 6%, var(--background));
311
+ }
312
+
313
+ @if not($header-selected-background) and $accent-color and $header-background {
314
+ $header-selected-background: color-mix(in srgb, var(--accent-color) 12%, var(--header-background));
553
315
  }
554
316
 
555
- @if not($header-selected-text-color) and $foreground {
556
- $header-selected-text-color: var(--foreground);
317
+ @if not($header-selected-text-color) and $header-text-color {
318
+ $header-selected-text-color: var(--header-text-color);
557
319
  }
558
320
 
559
321
  @if not($ghost-header-background) and $header-background {
560
322
  $ghost-header-background: var(--header-background);
561
323
  }
562
324
 
563
- @if not($ghost-header-text-color) and $foreground {
564
- $ghost-header-text-color: var(--foreground);
325
+ @if not($ghost-header-text-color) and $header-text-color {
326
+ $ghost-header-text-color: var(--header-text-color);
565
327
  }
566
328
 
567
- @if not($ghost-header-icon-color) and $foreground {
568
- $ghost-header-icon-color: var(--foreground);
329
+ @if not($ghost-header-icon-color) and $header-text-color {
330
+ $ghost-header-icon-color: var(--header-text-color);
569
331
  }
570
332
 
571
- @if not($header-border-color) and $foreground and $background {
572
- $header-border-color: hsl(from color-mix(in srgb, var(--foreground) 20%, var(--background)) h s l / 0.38);
333
+ @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
+ );
573
337
  }
574
338
 
575
339
  @if not($sorted-header-icon-color) and $accent-color {
@@ -594,8 +358,8 @@
594
358
  $row-odd-background: var(--background);
595
359
  }
596
360
 
597
- @if not($row-hover-background) and $accent-color and $background {
598
- $row-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--background));
361
+ @if not($row-hover-background) and $accent-color and $row-odd-background {
362
+ $row-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--row-odd-background));
599
363
  }
600
364
 
601
365
  @if not($row-selected-background) and $accent-color and $background {
@@ -780,12 +544,12 @@
780
544
 
781
545
  // grouping
782
546
 
783
- @if not($grouparea-background) and $foreground and $background {
784
- $grouparea-background: color-mix(in srgb, var(--foreground) 6%, var(--background));
547
+ @if not($grouparea-background) and $header-background {
548
+ $grouparea-background: var(--header-background);
785
549
  }
786
550
 
787
- @if not($grouparea-color) and $foreground and $background {
788
- $grouparea-color: color-mix(in srgb, var(--foreground) 60%, var(--background));
551
+ @if not($grouparea-color) and $header-text-color and $header-background {
552
+ $grouparea-color: color-mix(in srgb, var(--header-text-color) 60%, var(--header-background));
789
553
  }
790
554
 
791
555
  @if not($group-row-background) and $foreground and $background {
@@ -816,20 +580,20 @@
816
580
  $group-count-text-color: var(--foreground);
817
581
  }
818
582
 
819
- @if not($drop-area-text-color) and $foreground and $background {
820
- $drop-area-text-color: color-mix(in srgb, var(--foreground) 80%, var(--background));
583
+ @if not($drop-area-text-color) and $header-text-color and $header-background {
584
+ $drop-area-text-color: color-mix(in srgb, var(--header-text-color) 80%, var(--header-background));
821
585
  }
822
586
 
823
- @if not($drop-area-icon-color) and $foreground and $background {
824
- $drop-area-icon-color: color-mix(in srgb, var(--foreground) 80%, var(--background));
587
+ @if not($drop-area-icon-color) and $drop-area-text-color {
588
+ $drop-area-icon-color: var(--drop-area-text-color);
825
589
  }
826
590
 
827
- @if not($drop-area-background) and $background {
828
- $drop-area-background: var(--background);
591
+ @if not($drop-area-background) and $header-background {
592
+ $drop-area-background: dynamic-shade(var(--header-background));
829
593
  }
830
594
 
831
- @if not($drop-area-on-drop-background) and $background {
832
- $drop-area-on-drop-background: var(--background);
595
+ @if not($drop-area-on-drop-background) and $header-background {
596
+ $drop-area-on-drop-background: dynamic-shade(var(--header-background));
833
597
  }
834
598
 
835
599
  // summaries
@@ -13,8 +13,10 @@
13
13
  /// @prop {Map} label-color [color: ('primary', 500)] - The summaries label color.
14
14
  /// @prop {Map} label-hover-color [color: ('primary', 700)] - The summaries hover label color.
15
15
  /// @prop {Map} result-color [contrast-color: ('gray', 300)] - The summaries value/result color.
16
+ /// @prop {String} border-width [1px] - The summaries column border width.
17
+ /// @prop {String} border-style [solid] - The summaries column border style.
16
18
  /// @prop {Color} border-color [transparent] - The summaries column border color.
17
- /// @prop {String} pinned-border-width [1px] - The border width of the summary panel.
19
+ /// @prop {String} pinned-border-width [2px] - The border width of the summary panel.
18
20
  /// @prop {String} pinned-border-style [solid] - The border style of the summary panel.
19
21
  /// @prop {Map} pinned-border-color [color: ('gray', 400)] - The border color of the summary panel.
20
22
  $light-grid-summary: (
@@ -46,9 +48,11 @@ $light-grid-summary: (
46
48
  ),
47
49
  ),
48
50
 
51
+ border-width: 1px,
52
+ border-style: solid,
49
53
  border-color: transparent,
50
54
 
51
- pinned-border-width: 1px,
55
+ pinned-border-width: 2px,
52
56
  pinned-border-style: solid,
53
57
  pinned-border-color: (
54
58
  color: (