igniteui-angular 20.0.0 → 20.0.2

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 (95) hide show
  1. package/fesm2022/igniteui-angular.mjs +9 -11
  2. package/fesm2022/igniteui-angular.mjs.map +1 -1
  3. package/index.d.ts +2 -2
  4. package/lib/core/styles/components/_common/_igx-vhelper.scss +1 -0
  5. package/lib/core/styles/components/action-strip/_action-strip-theme.scss +2 -7
  6. package/lib/core/styles/components/avatar/_avatar-theme.scss +7 -8
  7. package/lib/core/styles/components/badge/_badge-theme.scss +3 -8
  8. package/lib/core/styles/components/banner/_banner-theme.scss +6 -7
  9. package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +17 -28
  10. package/lib/core/styles/components/button/_button-theme.scss +219 -158
  11. package/lib/core/styles/components/button/_contained-button-theme.scss +302 -0
  12. package/lib/core/styles/components/button/_fab-button-theme.scss +296 -0
  13. package/lib/core/styles/components/button/_flat-button-theme.scss +356 -0
  14. package/lib/core/styles/components/button/_outlined-button-theme.scss +419 -0
  15. package/lib/core/styles/components/button-group/_button-group-theme.scss +113 -29
  16. package/lib/core/styles/components/calendar/_calendar-theme.scss +502 -112
  17. package/lib/core/styles/components/card/_card-theme.scss +5 -16
  18. package/lib/core/styles/components/carousel/_carousel-theme.scss +103 -23
  19. package/lib/core/styles/components/checkbox/_checkbox-component.scss +1 -1
  20. package/lib/core/styles/components/checkbox/_checkbox-theme.scss +63 -11
  21. package/lib/core/styles/components/chip/_chip-theme.scss +64 -47
  22. package/lib/core/styles/components/column-actions/_column-actions-theme.scss +2 -7
  23. package/lib/core/styles/components/combo/_combo-theme.scss +54 -12
  24. package/lib/core/styles/components/dialog/_dialog-theme.scss +9 -12
  25. package/lib/core/styles/components/divider/_divider-theme.scss +1 -6
  26. package/lib/core/styles/components/drop-down/_drop-down-theme.scss +52 -32
  27. package/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss +18 -13
  28. package/lib/core/styles/components/grid/_grid-theme.scss +115 -94
  29. package/lib/core/styles/components/grid/_pivot-data-selector-theme.scss +1 -6
  30. package/lib/core/styles/components/grid-summary/_grid-summary-theme.scss +12 -13
  31. package/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss +7 -12
  32. package/lib/core/styles/components/highlight/highlight-theme.scss +2 -3
  33. package/lib/core/styles/components/icon/_icon-theme.scss +0 -1
  34. package/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss +196 -0
  35. package/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss +188 -0
  36. package/lib/core/styles/components/icon-button/_icon-button-theme.scss +45 -32
  37. package/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss +232 -0
  38. package/lib/core/styles/components/input/_input-group-theme.scss +272 -21
  39. package/lib/core/styles/components/label/_label-theme.scss +2 -4
  40. package/lib/core/styles/components/list/_list-theme.scss +42 -66
  41. package/lib/core/styles/components/navbar/_navbar-theme.scss +25 -15
  42. package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +24 -22
  43. package/lib/core/styles/components/overlay/_overlay-theme.scss +0 -1
  44. package/lib/core/styles/components/paginator/_paginator-theme.scss +2 -7
  45. package/lib/core/styles/components/progress/circular/_circular-theme.scss +3 -8
  46. package/lib/core/styles/components/progress/linear/_linear-theme.scss +1 -6
  47. package/lib/core/styles/components/query-builder/_query-builder-theme.scss +28 -11
  48. package/lib/core/styles/components/radio/_radio-theme.scss +54 -10
  49. package/lib/core/styles/components/ripple/_ripple-theme.scss +0 -1
  50. package/lib/core/styles/components/scrollbar/scrollbar-theme.scss +0 -1
  51. package/lib/core/styles/components/select/_select-theme.scss +35 -7
  52. package/lib/core/styles/components/slider/_slider-theme.scss +92 -7
  53. package/lib/core/styles/components/snackbar/_snackbar-theme.scss +3 -8
  54. package/lib/core/styles/components/splitter/_splitter-theme.scss +15 -8
  55. package/lib/core/styles/components/stepper/_stepper-theme.scss +190 -22
  56. package/lib/core/styles/components/switch/_switch-theme.scss +112 -8
  57. package/lib/core/styles/components/tabs/_tabs-theme.scss +124 -56
  58. package/lib/core/styles/components/time-picker/_time-picker-theme.scss +35 -18
  59. package/lib/core/styles/components/toast/_toast-theme.scss +9 -10
  60. package/lib/core/styles/components/tooltip/_tooltip-theme.scss +2 -7
  61. package/lib/core/styles/components/tree/_tree-theme.scss +33 -10
  62. package/lib/core/styles/components/watermark/_watermark-theme.scss +0 -1
  63. package/lib/core/styles/themes/_core.scss +6 -0
  64. package/lib/core/styles/themes/generators/_base.scss +146 -58
  65. package/migrations/migration-collection.json +5 -0
  66. package/migrations/update-20_0_2/changes/theme-changes.json +11 -0
  67. package/migrations/update-20_0_2/index.d.ts +3 -0
  68. package/migrations/update-20_0_2/index.js +18 -0
  69. package/package.json +1 -1
  70. package/styles/igniteui-angular-dark.css +1 -1
  71. package/styles/igniteui-angular.css +1 -1
  72. package/styles/igniteui-bootstrap-dark.css +1 -1
  73. package/styles/igniteui-bootstrap-light.css +1 -1
  74. package/styles/igniteui-dark-green.css +1 -1
  75. package/styles/igniteui-fluent-dark-excel.css +1 -1
  76. package/styles/igniteui-fluent-dark-word.css +1 -1
  77. package/styles/igniteui-fluent-dark.css +1 -1
  78. package/styles/igniteui-fluent-light-excel.css +1 -1
  79. package/styles/igniteui-fluent-light-word.css +1 -1
  80. package/styles/igniteui-fluent-light.css +1 -1
  81. package/styles/igniteui-indigo-dark.css +1 -1
  82. package/styles/igniteui-indigo-light.css +1 -1
  83. package/styles/maps/igniteui-angular-dark.css.map +1 -1
  84. package/styles/maps/igniteui-angular.css.map +1 -1
  85. package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
  86. package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
  87. package/styles/maps/igniteui-dark-green.css.map +1 -1
  88. package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
  89. package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
  90. package/styles/maps/igniteui-fluent-dark.css.map +1 -1
  91. package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
  92. package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
  93. package/styles/maps/igniteui-fluent-light.css.map +1 -1
  94. package/styles/maps/igniteui-indigo-dark.css.map +1 -1
  95. package/styles/maps/igniteui-indigo-light.css.map +1 -1
@@ -328,195 +328,589 @@
328
328
  }
329
329
 
330
330
  $theme: digest-schema($calendar-schema);
331
- $meta: map.get($theme, '_meta');
332
331
  $variant: map.get($schema, '_meta', 'theme');
333
332
 
333
+ //base start
334
+ @if not($header-foreground) and $header-background {
335
+ $header-foreground: adaptive-contrast(var(--header-background));
336
+ }
337
+
338
+ @if not($content-foreground) and $content-background {
339
+ $content-foreground: adaptive-contrast(var(--content-background));
340
+ }
341
+
342
+ @if not($weekend-color) and $content-foreground {
343
+ $weekend-color: var(--content-foreground);
344
+ }
345
+
346
+ @if not($inactive-color) and $content-background {
347
+ $inactive-color: hsla(from adaptive-contrast(var(--content-background)) h s l / .5);
348
+ }
349
+
350
+ @if not($weekday-color) and $inactive-color {
351
+ $weekday-color: var(--inactive-color);
352
+ }
353
+
354
+ @if not($week-number-background) and $content-background {
355
+ $week-number-background: hsla(from var(--content-background) h s calc(l * 0.8));
356
+ }
357
+
358
+ @if not($week-number-foreground) and $week-number-background {
359
+ $week-number-foreground: hsla(from adaptive-contrast(var(--week-number-background)) h s l / 0.5);
360
+ }
361
+ //base end
362
+
363
+ //picker start
334
364
  @if $variant == 'bootstrap' {
335
365
  @if not($picker-background) and $header-background {
336
- @if meta.type-of($header-background) == 'color' {
337
- $picker-background: $header-background;
338
- }
366
+ $picker-background: var(--header-background);
367
+ }
368
+
369
+ @if not($picker-hover-foreground) and $picker-background {
370
+ $picker-hover-foreground: hsla(from adaptive-contrast(var(--picker-background)) h s l / 0.8);
371
+ }
372
+
373
+ @if not($weekday-color) and $header-background {
374
+ $weekday-color: hsla(from adaptive-contrast(var(--header-background)) h s l / 0.8);
339
375
  }
340
376
  } @else {
341
377
  @if not($picker-background) and $content-background {
342
- @if meta.type-of($picker-background) == 'color' {
343
- $picker-background: $content-background;
344
- }
378
+ $picker-background: var(--content-background);
345
379
  }
346
380
 
347
- @if not($weekday-color) and $content-background {
348
- @if meta.type-of($content-background) == 'color' {
349
- $weekday-color: text-contrast($content-background);
350
- }
381
+ @if not($picker-hover-foreground) and $header-background {
382
+ $picker-hover-foreground: var(--header-background);
351
383
  }
384
+ }
352
385
 
353
- @if not($navigation-color) and $content-background {
354
- @if meta.type-of($content-background) == 'color' {
355
- $navigation-color: text-contrast($content-background);
356
- }
386
+ @if not($picker-foreground) and $picker-background {
387
+ $picker-foreground: adaptive-contrast(var(--picker-background));
388
+ }
389
+
390
+ @if not($picker-focus-foreground) and $picker-hover-foreground {
391
+ $picker-focus-foreground: var(--picker-hover-foreground);
392
+ }
393
+
394
+ @if not($navigation-color) and $picker-background {
395
+ $navigation-color: adaptive-contrast(var(--picker-background));
396
+ }
397
+
398
+ @if not($navigation-hover-color) and $picker-hover-foreground {
399
+ $navigation-hover-color: var(--picker-hover-foreground);
400
+ }
401
+
402
+ @if not($navigation-focus-color) and $navigation-hover-color {
403
+ $navigation-focus-color: var(--navigation-hover-color);
404
+ }
405
+ //picker end
406
+
407
+ //date start
408
+ @if not($date-hover-background) and $content-background {
409
+ $date-hover-background: hsl(from var(--content-background) h s calc(l * 0.9));
410
+ }
411
+
412
+ @if not($date-hover-foreground) and $date-hover-background {
413
+ $date-hover-foreground: adaptive-contrast(var(--date-hover-background));
414
+ }
415
+
416
+ @if not($date-focus-background) and $date-hover-background {
417
+ $date-focus-background: var(--date-hover-background)
418
+ }
419
+
420
+ @if not($date-focus-foreground) and $date-hover-foreground {
421
+ $date-focus-foreground: var(--date-hover-foreground);
422
+ }
423
+
424
+ @if not($ym-hover-background) and $date-hover-background {
425
+ $ym-hover-background: var(--date-hover-background);
426
+ }
427
+
428
+ @if not($ym-hover-foreground) and $ym-hover-background {
429
+ $ym-hover-foreground: adaptive-contrast(var(--ym-hover-background));
430
+ }
431
+ //date end
432
+
433
+ //date current start
434
+ @if $variant == 'indigo' {
435
+ @if not($date-current-background) and $header-background {
436
+ $date-current-background: hsla(from var(--header-background) h s l / 0.4);
357
437
  }
358
438
 
359
- @if not($navigation-focus-color) and $navigation-hover-color {
360
- @if meta.type-of($navigation-hover-color) == 'color' {
361
- $navigation-focus-color: $navigation-hover-color;
362
- }
439
+ @if not($date-current-border-color) and $date-current-background {
440
+ $date-current-border-color: hsla(from var(--date-current-background) h s l / 0.6);
363
441
  }
364
- }
365
442
 
366
- @if not($header-foreground) and $header-background {
367
- @if meta.type-of($header-background) == 'color' {
368
- $header-foreground: text-contrast($header-background);
443
+ @if not($date-current-hover-background) and $date-current-background {
444
+ $date-current-hover-background: hsl(from var(--date-current-background) h s calc(l * 0.9));
445
+ }
446
+
447
+ @if not($date-current-hover-border-color) and $date-current-border-color {
448
+ $date-current-hover-border-color: hsl(from var(--date-current-border-color) h s calc(l * 0.9));
449
+ }
450
+
451
+ @if not($date-current-focus-background) and $date-current-hover-background {
452
+ $date-current-focus-background: var(--date-current-hover-background);
453
+ }
454
+
455
+ @if not($date-current-focus-border-color) and $date-current-hover-border-color {
456
+ $date-current-focus-border-color: var(--date-current-hover-border-color);
457
+ }
458
+
459
+ @if not($date-current-foreground) and $date-current-background {
460
+ $date-current-foreground: adaptive-contrast(var(--date-current-background));
461
+ }
462
+
463
+ @if not($date-current-foreground) and $content-foreground {
464
+ $date-current-foreground: var(--content-foreground);
465
+ }
466
+
467
+ @if not($date-current-hover-foreground) and $date-current-foreground {
468
+ $date-current-hover-foreground: var(--date-current-foreground);
469
+ }
470
+
471
+ @if not($date-current-focus-foreground) and $date-current-foreground {
472
+ $date-current-focus-foreground: var(--date-current-foreground);
369
473
  }
370
474
  }
371
475
 
372
- @if not($weekend-color) and $content-foreground {
373
- @if meta.type-of($content-foreground) == 'color' {
374
- $weekend-color: $content-foreground;
476
+ @if $variant == 'fluent' {
477
+ @if not($date-current-background) and $header-background {
478
+ $date-current-background: var(--header-background);
375
479
  }
376
480
  }
377
481
 
378
- @if $variant != 'fluent' and $variant != 'bootstrap' {
482
+ @if $variant == 'material' or $variant == 'bootstrap' {
379
483
  @if not($date-current-background) and $content-background {
380
- @if meta.type-of($content-background) == 'color' {
381
- $date-current-background: $content-background;
382
- }
484
+ $date-current-background: var(--content-background);
485
+ }
486
+ }
487
+
488
+ @if $variant != 'indigo' {
489
+ @if not($date-current-foreground) and $date-current-background {
490
+ $date-current-foreground: adaptive-contrast(var(--date-current-background));
491
+ }
492
+
493
+ @if not($date-current-hover-background) and $date-hover-background {
494
+ $date-current-hover-background: var(--date-hover-background);
383
495
  }
384
496
 
385
- @if not($date-current-foreground) and $content-background {
386
- @if meta.type-of($content-background) == 'color' {
387
- $date-current-foreground: text-contrast($content-background);
497
+ @if not($date-current-focus-background) and $date-focus-background {
498
+ $date-current-focus-background: var(--date-focus-background);
499
+ }
500
+
501
+ @if $variant == 'fluent' {
502
+ @if not($date-current-hover-foreground) and $date-current-background {
503
+ $date-current-hover-foreground: adaptive-contrast(var(--date-current-background));
504
+ }
505
+
506
+ @if not($date-current-focus-foreground) and $date-current-background {
507
+ $date-current-focus-foreground: adaptive-contrast(var(--date-current-background));
388
508
  }
389
509
  }
390
- }
391
510
 
392
- @if not($content-foreground) and $content-background {
393
- @if meta.type-of($content-background) == 'color' {
394
- $content-foreground: text-contrast($content-background);
511
+ @if not($date-current-hover-foreground) and $date-current-hover-background {
512
+ $date-current-hover-foreground: adaptive-contrast(var(--date-current-hover-background));
513
+ }
514
+
515
+ @if not($date-current-focus-foreground) and $date-current-hover-background {
516
+ $date-current-focus-foreground: adaptive-contrast(var(--date-current-hover-background));
395
517
  }
396
518
  }
397
519
 
398
- @if not($weekend-color) and $content-background {
399
- @if meta.type-of($content-background) == 'color' {
400
- $weekend-color: rgba($content-foreground, .5);
520
+ @if $variant == 'material' or $variant == 'bootstrap' {
521
+ @if not($date-current-border-color) and $date-current-foreground {
522
+ $date-current-border-color: var(--date-current-foreground);
523
+ }
524
+
525
+ @if not($date-current-hover-border-color) and $date-current-hover-foreground {
526
+ $date-current-hover-border-color: var(--date-current-hover-foreground);
527
+ }
528
+
529
+ @if not($date-current-focus-border-color) and $date-current-focus-foreground {
530
+ $date-current-focus-border-color: var(--date-current-focus-foreground);
401
531
  }
402
532
  }
533
+ //date current end
534
+
535
+ //date selected start
403
536
 
404
- @if not($picker-foreground) and $content-background {
405
- @if meta.type-of($content-background) == 'color' {
406
- $picker-foreground: text-contrast($content-background);
537
+ @if $variant == 'fluent' {
538
+ @if not($date-selected-background) and $date-hover-background {
539
+ $date-selected-background: var(--date-hover-background);
540
+ }
541
+ } @else {
542
+ @if not($date-selected-background) and $header-background {
543
+ $date-selected-background: var(--header-background);
407
544
  }
408
545
  }
409
546
 
547
+ @if not($date-selected-current-background) and $date-selected-background {
548
+ $date-selected-current-background: var(--date-selected-background);
549
+ }
550
+
551
+ @if not($date-selected-hover-background) and $date-selected-background {
552
+ $date-selected-hover-background: hsl(from var(--date-selected-background) h s calc(l * 0.9));
553
+ }
554
+
555
+ @if not($date-selected-current-hover-background) and $date-selected-hover-background {
556
+ $date-selected-current-hover-background: var(--date-selected-hover-background);
557
+ }
558
+
559
+ @if not($date-selected-focus-background) and $date-selected-hover-background {
560
+ $date-selected-focus-background: var(--date-selected-hover-background);
561
+ }
562
+
563
+ @if not($date-selected-current-focus-background) and $date-selected-focus-background {
564
+ $date-selected-current-focus-background: var(--date-selected-focus-background);
565
+ }
566
+
410
567
  @if not($date-selected-foreground) and $date-selected-background {
411
- @if meta.type-of($date-selected-background) == 'color' {
412
- $date-selected-foreground: text-contrast($date-selected-background);
413
- }
568
+ $date-selected-foreground: adaptive-contrast(var(--date-selected-background));
414
569
  }
415
570
 
416
571
  @if not($date-selected-hover-foreground) and $date-selected-background {
417
- @if meta.type-of($date-selected-background) == 'color' {
418
- $date-selected-hover-foreground: text-contrast($date-selected-background);
419
- }
572
+ $date-selected-hover-foreground: adaptive-contrast(var(--date-selected-background));
420
573
  }
421
574
 
422
575
  @if not($date-selected-focus-foreground) and $date-selected-background {
423
- @if meta.type-of($date-selected-background) == 'color' {
424
- $date-selected-focus-foreground: text-contrast($date-selected-background);
425
- }
576
+ $date-selected-focus-foreground: adaptive-contrast(var(--date-selected-background));
426
577
  }
427
578
 
428
- @if not($date-selected-hover-foreground) and $date-selected-hover-background {
429
- @if meta.type-of($date-selected-hover-background) == 'color' {
430
- $date-selected-hover-foreground: text-contrast($date-selected-hover-background);
579
+ @if $variant == 'indigo' {
580
+ @if not($date-selected-current-border-color) and $date-selected-current-background {
581
+ $date-selected-current-border-color: hsl(from var(--date-selected-current-background) h calc(s * 0.9) calc(l * 1.5));
582
+ }
583
+ } @else {
584
+ @if not($date-selected-current-border-color) and $content-foreground {
585
+ $date-selected-current-border-color: var(--content-foreground);
431
586
  }
432
587
  }
433
588
 
434
- @if not($date-selected-focus-foreground) and $date-selected-focus-background {
435
- @if meta.type-of($date-selected-focus-background) == 'color' {
436
- $date-selected-focus-foreground: text-contrast($date-selected-focus-background);
437
- }
589
+ @if not($date-selected-current-hover-background) and $date-selected-hover-background {
590
+ $date-selected-current-hover-background: var(--date-selected-hover-background);
438
591
  }
439
592
 
440
- @if not($date-selected-current-foreground) and $date-selected-background {
441
- @if meta.type-of($date-selected-background) == 'color' {
442
- $date-selected-current-foreground: text-contrast($date-selected-background);
443
- }
593
+ @if not($date-selected-current-hover-border-color) and $date-selected-current-border-color {
594
+ $date-selected-current-hover-border-color: var(--date-selected-current-border-color);
444
595
  }
445
596
 
446
- @if not($date-selected-current-hover-foreground) and $date-selected-background {
447
- @if meta.type-of($date-selected-background) == 'color' {
448
- $date-selected-current-hover-foreground: text-contrast($date-selected-background);
597
+ @if $variant == 'fluent' {
598
+ @if not($date-selected-current-foreground) and $date-current-background {
599
+ $date-selected-current-foreground: adaptive-contrast(var(--date-current-background));
449
600
  }
450
- }
451
601
 
452
- @if not($date-selected-current-focus-foreground) and $date-selected-background {
453
- @if meta.type-of($date-selected-background) == 'color' {
454
- $date-selected-current-focus-foreground: text-contrast($date-selected-background);
602
+ @if not($date-selected-current-hover-foreground) and $date-current-background {
603
+ $date-selected-current-hover-foreground: adaptive-contrast(var(--date-current-background));
455
604
  }
456
- }
457
605
 
458
- @if not($date-selected-current-background) and $date-selected-background {
459
- @if meta.type-of($date-selected-background) == 'color' {
460
- $date-selected-current-background: $date-selected-background;
606
+ @if not($date-selected-current-focus-foreground) and $date-current-background {
607
+ $date-selected-current-focus-foreground: adaptive-contrast(var(--date-current-background));
608
+ }
609
+ } @else {
610
+ @if not($date-selected-current-foreground) and $date-selected-background {
611
+ $date-selected-current-foreground: adaptive-contrast(var(--date-selected-background));
461
612
  }
462
- }
463
613
 
464
- @if not($date-selected-current-hover-background) and $date-selected-background {
465
- @if meta.type-of($date-selected-background) == 'color' {
466
- $date-selected-current-hover-background: $date-selected-background;
614
+ @if not($date-selected-current-hover-foreground) and $date-selected-background {
615
+ $date-selected-current-hover-foreground: adaptive-contrast(var(--date-selected-background));
467
616
  }
468
- }
469
617
 
470
- @if not($date-selected-current-focus-background) and $date-selected-background {
471
- @if meta.type-of($date-selected-background) == 'color' {
472
- $date-selected-current-focus-background: $date-selected-background;
618
+ @if not($date-selected-current-focus-foreground) and $date-selected-current-focus-background {
619
+ $date-selected-current-focus-foreground: adaptive-contrast(var(--date-selected-current-focus-background));
473
620
  }
474
621
  }
475
622
 
476
- @if not($date-selected-current-focus-background) and $date-selected-background {
477
- @if meta.type-of($date-selected-background) == 'color' {
478
- $date-selected-current-focus-background: $date-selected-background;
479
- }
623
+ @if not($date-selected-current-focus-border-color) and $date-selected-current-hover-border-color {
624
+ $date-selected-current-focus-border-color: var(--date-selected-current-hover-border-color);
480
625
  }
626
+ //date selected end
481
627
 
482
- @if not($date-selected-hover-background) and $date-selected-background {
483
- @if meta.type-of($date-selected-background) == 'color' {
484
- $date-selected-hover-background: $date-selected-background;
628
+ //date special start
629
+ @if $variant == 'fluent' or $variant == 'bootstrap' {
630
+ @if not($date-special-foreground) and $content-foreground {
631
+ $date-special-foreground: var(--content-foreground);
485
632
  }
486
- }
487
633
 
488
- @if not($date-selected-focus-background) and $date-selected-background {
489
- @if meta.type-of($date-selected-background) == 'color' {
490
- $date-selected-focus-background: $date-selected-background;
634
+ @if not($date-special-border-color) and $header-background {
635
+ $date-special-border-color: var(--header-background);
636
+ }
637
+
638
+ @if not($date-special-hover-border-color) and $date-special-border-color {
639
+ $date-special-hover-border-color: var(--date-special-border-color);
640
+ }
641
+
642
+ @if not($date-special-focus-foreground) and $date-special-foreground {
643
+ $date-special-focus-foreground: var(--date-special-foreground);
644
+ }
645
+ } @else {
646
+ @if not($date-special-foreground) and $header-background {
647
+ $date-special-foreground: var(--header-background);
648
+ }
649
+
650
+ @if not($date-special-border-color) and $date-special-foreground {
651
+ $date-special-border-color: var(--date-special-foreground);
652
+ }
653
+
654
+ @if not($date-special-hover-foreground) and $date-special-foreground {
655
+ $date-special-hover-foreground: hsl(from var(--date-special-foreground) h s calc(l * 0.8));
656
+ }
657
+
658
+ @if not($date-special-hover-border-color) and $date-special-hover-foreground {
659
+ $date-special-hover-border-color: var(--date-special-hover-foreground);
660
+ }
661
+
662
+ @if not($date-special-focus-foreground) and $date-special-hover-border-color {
663
+ $date-special-focus-foreground: var(--date-special-hover-border-color);
491
664
  }
492
665
  }
493
666
 
494
- @if not($date-selected-current-hover-background) and $date-selected-hover-background {
495
- @if meta.type-of($date-selected-hover-background) == 'color' {
496
- $date-selected-current-hover-background: $date-selected-hover-background;
667
+ @if not($date-special-hover-foreground) and $date-special-foreground {
668
+ $date-special-hover-foreground: hsl(from var(--date-special-foreground) h s calc(l * 0.8));
669
+ }
670
+
671
+ @if not($date-special-hover-background) and $date-hover-background {
672
+ $date-special-hover-background: var(--date-hover-background);
673
+ }
674
+
675
+ @if not($date-special-focus-background) and $date-focus-background {
676
+ $date-special-focus-background: var(--date-focus-background);
677
+ }
678
+
679
+ @if not($date-special-range-focus-background) and $date-special-focus-background {
680
+ $date-special-range-focus-background: var(--date-special-focus-background);
681
+ }
682
+
683
+ @if $variant != 'fluent' {
684
+ @if not($date-selected-special-border-color) and $date-selected-foreground {
685
+ $date-selected-special-border-color: var(--date-selected-foreground);
686
+ }
687
+
688
+ @if not($date-selected-special-hover-border-color) and $date-selected-hover-foreground {
689
+ $date-selected-special-hover-border-color: var(--date-selected-hover-foreground);
690
+ }
691
+
692
+ @if not($date-selected-special-focus-border-color) and $date-selected-focus-foreground {
693
+ $date-selected-special-focus-border-color: var(--date-selected-focus-foreground);
694
+ }
695
+ } @else {
696
+ @if not($date-selected-special-border-color) and $date-special-border-color {
697
+ $date-selected-special-border-color: var(--date-special-border-color);
698
+ }
699
+
700
+ @if not($date-selected-special-hover-border-color) and $date-selected-special-border-color {
701
+ $date-selected-special-hover-border-color: var(--date-selected-special-border-color);
702
+ }
703
+
704
+ @if not($date-selected-special-focus-border-color) and $date-selected-special-border-color {
705
+ $date-selected-special-focus-border-color: var(--date-selected-special-border-color);
497
706
  }
498
707
  }
708
+ //date special end
499
709
 
500
- @if not($date-selected-current-focus-background) and $date-selected-focus-background {
501
- @if meta.type-of($date-selected-focus-background) == 'color' {
502
- $date-selected-current-focus-background: $date-selected-focus-background;
710
+ //calendar views start
711
+ @if $variant != 'fluent' {
712
+ @if not($ym-selected-background) and $header-background {
713
+ $ym-selected-background: var(--header-background);
714
+ }
715
+
716
+ @if not($ym-selected-hover-background) and $ym-selected-background {
717
+ $ym-selected-hover-background: hsl(from var(--ym-selected-background) h s calc(l * 0.9));
718
+ }
719
+
720
+ @if not($ym-current-background) and $date-current-background {
721
+ $ym-current-background: var(--date-current-background);
722
+ }
723
+
724
+ @if not($ym-current-hover-background) and $date-current-hover-background {
725
+ $ym-current-hover-background: var(--date-current-hover-background);
726
+ }
727
+
728
+ @if not($ym-current-outline-color) and $date-current-border-color {
729
+ $ym-current-outline-color: var(--date-current-border-color);
730
+ }
731
+
732
+ @if not($ym-current-outline-hover-color) and $ym-current-outline-color {
733
+ $ym-current-outline-hover-color: var(--ym-current-outline-color);
734
+ }
735
+
736
+ @if not($ym-current-outline-focus-color) and $ym-current-outline-hover-color {
737
+ $ym-current-outline-focus-color: var(--ym-current-outline-hover-color);
738
+ }
739
+
740
+ @if not($ym-selected-current-outline-color) and $ym-current-outline-color {
741
+ $ym-selected-current-outline-color: var(--ym-current-outline-color);
742
+ }
743
+
744
+ @if not($ym-selected-current-outline-hover-color) and $ym-current-outline-hover-color {
745
+ $ym-selected-current-outline-hover-color: var(--ym-current-outline-hover-color);
746
+ }
747
+
748
+ @if not($ym-selected-current-outline-focus-color) and $ym-current-outline-focus-color {
749
+ $ym-selected-current-outline-focus-color: var(--ym-current-outline-focus-color);
750
+ }
751
+ } @else {
752
+ @if not($ym-selected-background) and $header-background {
753
+ $ym-selected-background: hsla(from var(--header-background) h s l / 0.3);
754
+ }
755
+
756
+ @if not($ym-current-background) and $date-selected-background {
757
+ $ym-current-background: var(--date-selected-background);
758
+ }
759
+
760
+ @if not($ym-current-hover-background) and $ym-current-background {
761
+ $ym-current-hover-background: hsl(from var(--ym-current-background) h s calc(l * 0.9));
762
+ }
763
+
764
+ @if not($ym-selected-hover-background) and $ym-selected-background {
765
+ $ym-selected-hover-background: hsla(from var(--ym-selected-background) h s calc(l * 0.9) / 0.5);
766
+ }
767
+
768
+ @if not($ym-selected-current-outline-color) and $ym-selected-current-foreground {
769
+ $ym-selected-current-outline-color: var(--ym-selected-current-foreground);
770
+ }
771
+
772
+ @if not($ym-selected-foreground) and $content-foreground {
773
+ $ym-selected-foreground: var(--content-foreground);
774
+ }
775
+
776
+ @if not($ym-selected-hover-foreground) and $ym-selected-foreground {
777
+ $ym-selected-hover-foreground: var(--content-foreground);
503
778
  }
504
779
  }
505
780
 
506
- @if not($ym-hover-foreground) and $ym-hover-background {
507
- @if meta.type-of($ym-hover-background) == 'color' {
508
- $ym-hover-foreground: text-contrast($ym-hover-background);
781
+ @if not($ym-selected-current-background) and $ym-selected-background {
782
+ $ym-selected-current-background: var(--ym-selected-background);
783
+ }
784
+
785
+ @if not($ym-selected-current-hover-background) and $ym-selected-hover-background {
786
+ $ym-selected-current-hover-background: var(--ym-selected-hover-background);
787
+ }
788
+
789
+ @if not($ym-current-foreground) and $ym-current-background {
790
+ $ym-current-foreground: adaptive-contrast(var(--ym-current-background));
791
+ }
792
+
793
+ @if not($ym-current-hover-foreground) and $ym-current-hover-background {
794
+ $ym-current-hover-foreground: adaptive-contrast(var(--ym-current-hover-background));
795
+ }
796
+
797
+ @if not($ym-selected-current-foreground) and $ym-selected-current-background {
798
+ $ym-selected-current-foreground: adaptive-contrast(var(--ym-selected-current-background));
799
+ }
800
+
801
+ @if not($ym-selected-current-hover-foreground) and $ym-selected-current-hover-background {
802
+ $ym-selected-current-hover-foreground: adaptive-contrast(var(--ym-selected-current-hover-background));
803
+ }
804
+ //calendar views end
805
+
806
+ //date range start
807
+ @if not($date-selected-range-foreground) and $content-foreground {
808
+ $date-selected-range-foreground: var(--content-foreground);
809
+ }
810
+
811
+ @if $variant == 'fluent' {
812
+ @if not($date-selected-range-background) and $date-selected-background {
813
+ $date-selected-range-background: var(--date-selected-background);
814
+ }
815
+
816
+ @if not($date-selected-current-range-background) and $date-selected-range-background {
817
+ $date-selected-current-range-background: var(--date-selected-range-background);
818
+ }
819
+
820
+ @if not($date-selected-range-hover-background) and $date-selected-hover-background {
821
+ $date-selected-range-hover-background: var(--date-selected-hover-background);
822
+ }
823
+
824
+ @if not($date-selected-range-focus-background) and $date-selected-hover-background {
825
+ $date-selected-range-focus-background: var(--date-selected-hover-background);
826
+ }
827
+
828
+ @if not($date-selected-current-range-hover-foreground) and $date-current-background {
829
+ $date-selected-current-range-hover-foreground: adaptive-contrast(var(--date-current-background));
830
+ }
831
+
832
+ @if not($date-selected-current-range-focus-background) and $date-current-background {
833
+ $date-selected-current-range-focus-background: adaptive-contrast(var(--date-current-background));
834
+ }
835
+ } @else {
836
+ @if not($date-selected-range-background) and $date-selected-background {
837
+ $date-selected-range-background: hsla(from var(--date-selected-background) h s l / 0.24);
838
+ }
839
+
840
+ @if not($date-range-preview-border-color) and $date-selected-background {
841
+ $date-range-preview-border-color: var(--date-selected-background);
509
842
  }
843
+
844
+ @if not($date-selected-current-range-hover-foreground) and $date-selected-current-range-hover-background {
845
+ $date-selected-current-range-hover-foreground: adaptive-contrast(var(--date-selected-current-range-hover-background));
846
+ }
847
+
848
+ @if not($date-selected-current-range-hover-foreground) and $content-foreground {
849
+ $date-selected-current-range-hover-foreground: var(--content-foreground);
850
+ }
851
+
852
+ @if not($date-selected-current-range-focus-background) and $date-selected-current-range-hover-background {
853
+ $date-selected-current-range-focus-background: var(--date-selected-current-range-hover-background);
854
+ }
855
+ }
856
+
857
+ @if not($date-selected-range-hover-background) and $date-hover-background {
858
+ $date-selected-range-hover-background: var(--date-hover-background);
859
+ }
860
+
861
+ @if not($date-selected-range-focus-background) and $date-selected-range-hover-background {
862
+ $date-selected-range-focus-background: var(--date-selected-range-hover-background);
863
+ }
864
+
865
+ @if not($date-selected-range-hover-foreground) and $date-selected-range-hover-background {
866
+ $date-selected-range-hover-foreground: adaptive-contrast(hsla(from var(--date-selected-range-hover-background) h s l / 1));
867
+ }
868
+
869
+ @if not($date-selected-range-focus-foreground) and $date-selected-range-focus-background {
870
+ $date-selected-range-focus-foreground: adaptive-contrast(hsla(from var(--date-selected-range-focus-background) h s l / 1));
510
871
  }
511
872
 
512
- @if not($ym-current-hover-foreground) and $ym-hover-background {
513
- @if meta.type-of($ym-hover-background) == 'color' {
514
- $ym-current-hover-foreground: text-contrast($ym-hover-background);
873
+ @if $variant == 'indigo' {
874
+ @if not($date-selected-current-range-background) and $date-selected-background {
875
+ $date-selected-current-range-background: hsla(from var(--date-selected-background) h s calc(l * 0.9) / 0.12);
876
+ }
877
+
878
+ @if not($date-selected-current-range-hover-background) and $date-selected-background {
879
+ $date-selected-current-range-hover-background: hsla(from var(--date-selected-background) h s calc(l * 0.9) / 0.24);
880
+ }
881
+
882
+ @if not($date-selected-current-range-foreground) and $date-current-background {
883
+ $date-selected-current-range-foreground: adaptive-contrast(var(--date-current-background));
884
+ }
885
+ } @else {
886
+ @if not($date-selected-current-range-foreground) and $date-current-background {
887
+ $date-selected-current-range-foreground: adaptive-contrast(var(--date-current-background));
888
+ }
889
+
890
+ @if not($date-selected-current-range-foreground) and $content-foreground {
891
+ $date-selected-current-range-foreground: var(--content-foreground);
515
892
  }
516
893
  }
517
894
 
518
- @if not($week-number-foreground) and $week-number-background {
519
- $week-number-foreground: text-contrast($week-number-background);
895
+ @if not($date-special-range-foreground) and $date-special-foreground {
896
+ $date-special-range-foreground: hsl(from var(--date-special-foreground) h s calc(l * 0.8));
897
+ }
898
+
899
+ @if not($date-special-range-border-color) and $date-special-range-foreground {
900
+ $date-special-range-border-color: var(--date-special-range-foreground);
901
+ }
902
+
903
+ @if not($date-special-range-hover-background) and $date-selected-range-hover-background {
904
+ $date-special-range-hover-background: var(--date-selected-range-hover-background);
905
+ }
906
+ //date range end
907
+
908
+ @if not($date-disabled-foreground) and $content-background {
909
+ $date-disabled-foreground: hsla(from adaptive-contrast(var(--content-background)) h s l / .3);
910
+ }
911
+
912
+ @if not($date-disabled-range-foreground) and $date-selected-range-background {
913
+ $date-disabled-range-foreground: hsla(from adaptive-contrast(var(--content-background)) h s l / .3);
520
914
  }
521
915
 
522
916
  @return extend($theme, (
@@ -658,10 +1052,6 @@
658
1052
  actions-divider-color: $actions-divider-color,
659
1053
  size: $size,
660
1054
  inner-size: $inner-size,
661
- theme: map.get($schema, '_meta', 'theme'),
662
- _meta: map.merge(if($meta, $meta, ()), (
663
- variant: map.get($schema, '_meta', 'theme')
664
- )),
665
1055
  ));
666
1056
  }
667
1057
 
@@ -671,7 +1061,7 @@
671
1061
  @mixin calendar($theme) {
672
1062
  @include css-vars($theme);
673
1063
 
674
- $variant: map.get($theme, '_meta', 'variant');
1064
+ $variant: map.get($theme, '_meta', 'theme');
675
1065
  $bootstrap-theme: $variant == 'bootstrap';
676
1066
 
677
1067
  $cal-picker-padding: map.get((