@ng-matero/extensions 20.1.0 → 20.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.
Files changed (62) hide show
  1. package/_index.scss +0 -1
  2. package/alert/_alert-theme.scss +30 -41
  3. package/alert/_m2-alert.scss +34 -51
  4. package/colorpicker/_colorpicker-theme.scss +36 -45
  5. package/colorpicker/_m2-colorpicker.scss +12 -35
  6. package/column-resize/index.d.ts +0 -1
  7. package/core/index.d.ts +1 -2
  8. package/core/theming/_all-theme.scss +12 -15
  9. package/core/tokens/_m2-utils.scss +17 -100
  10. package/core/tokens/_token-utils.scss +7 -27
  11. package/datetimepicker/_datetimepicker-theme.scss +36 -62
  12. package/datetimepicker/_m2-datetimepicker.scss +81 -131
  13. package/datetimepicker/_m3-datetimepicker.scss +18 -15
  14. package/datetimepicker/index.d.ts +10 -28
  15. package/drawer/_drawer-theme.scss +28 -39
  16. package/drawer/_m2-drawer.scss +12 -34
  17. package/fesm2022/mtxAlert.mjs +7 -7
  18. package/fesm2022/mtxButton.mjs +20 -9
  19. package/fesm2022/mtxButton.mjs.map +1 -1
  20. package/fesm2022/mtxCheckboxGroup.mjs +7 -7
  21. package/fesm2022/mtxColorpicker.mjs +19 -19
  22. package/fesm2022/mtxColumnResize.mjs +44 -44
  23. package/fesm2022/mtxColumnResize.mjs.map +1 -1
  24. package/fesm2022/mtxCore.mjs +21 -21
  25. package/fesm2022/mtxCore.mjs.map +1 -1
  26. package/fesm2022/mtxDatetimepicker.mjs +62 -62
  27. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  28. package/fesm2022/mtxDialog.mjs +10 -10
  29. package/fesm2022/mtxDialog.mjs.map +1 -1
  30. package/fesm2022/mtxDrawer.mjs +10 -10
  31. package/fesm2022/mtxGrid.mjs +70 -70
  32. package/fesm2022/mtxGrid.mjs.map +1 -1
  33. package/fesm2022/mtxLoader.mjs +7 -7
  34. package/fesm2022/mtxPhotoviewer.mjs +7 -7
  35. package/fesm2022/mtxPopover.mjs +19 -19
  36. package/fesm2022/mtxProgress.mjs +7 -7
  37. package/fesm2022/mtxSelect.mjs +52 -52
  38. package/fesm2022/mtxSplit.mjs +10 -10
  39. package/fesm2022/mtxTooltip.mjs +10 -10
  40. package/fesm2022/mtxTooltip.mjs.map +1 -1
  41. package/grid/_grid-theme.scss +28 -39
  42. package/grid/_m2-grid.scss +37 -56
  43. package/loader/_loader-theme.scss +28 -39
  44. package/loader/_m2-loader.scss +9 -32
  45. package/package.json +17 -17
  46. package/popover/_m2-popover.scss +15 -37
  47. package/popover/_popover-theme.scss +29 -39
  48. package/prebuilt-themes/deeppurple-amber.css +1 -1
  49. package/prebuilt-themes/indigo-pink.css +1 -1
  50. package/prebuilt-themes/pink-bluegrey.css +1 -1
  51. package/prebuilt-themes/purple-green.css +1 -1
  52. package/progress/_m2-progress.scss +29 -44
  53. package/progress/_progress-theme.scss +28 -39
  54. package/select/_m2-select.scss +40 -67
  55. package/select/_m3-select.scss +2 -1
  56. package/select/_select-theme.scss +34 -43
  57. package/split/_m2-split.scss +13 -34
  58. package/split/_split-theme.scss +33 -44
  59. package/tooltip/_m2-tooltip.scss +18 -43
  60. package/tooltip/_tooltip-theme.scss +28 -35
  61. package/tooltip/index.d.ts +2 -2
  62. package/core/tokens/_m2-tokens.scss +0 -71
@@ -1 +1 @@
1
- .mat-button-loading .mdc-button__label,.mat-button-loading .mat-icon{visibility:hidden}.mat-button-loading .mat-mdc-progress-spinner{position:absolute;top:calc(50% - 12px);left:calc(50% - 12px)}html{--mtx-alert-container-shape: 4px}html{--mtx-alert-outline-color: transparent;--mtx-alert-background-color: #212121;--mtx-alert-text-color: white;--mtx-alert-info-outline-color: transparent;--mtx-alert-info-background-color: #0d47a1;--mtx-alert-info-text-color: white;--mtx-alert-success-outline-color: transparent;--mtx-alert-success-background-color: #1b5e20;--mtx-alert-success-text-color: white;--mtx-alert-warning-outline-color: transparent;--mtx-alert-warning-background-color: #ff6f00;--mtx-alert-warning-text-color: white;--mtx-alert-danger-outline-color: transparent;--mtx-alert-danger-background-color: #b71c1c;--mtx-alert-danger-text-color: white}html{--mtx-colorpicker-toggle-active-state-icon-color: #7b1fa2;--mtx-colorpicker-toggle-icon-color: white}.mtx-colorpicker-toggle-active.mat-accent{--mtx-colorpicker-toggle-active-state-icon-color: #69f0ae}.mtx-colorpicker-toggle-active.mat-warn{--mtx-colorpicker-toggle-active-state-icon-color: #f44336}html{--mtx-datetimepicker-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mtx-datetimepicker-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mtx-datetimepicker-container-shape: 4px;--mtx-datetimepicker-container-touch-shape: 4px;--mtx-datetimepicker-selector-container-shape: 4px}html{--mtx-datetimepicker-calendar-header-background-color: #7b1fa2;--mtx-datetimepicker-calendar-date-selected-state-text-color: white;--mtx-datetimepicker-calendar-date-selected-state-background-color: #7b1fa2;--mtx-datetimepicker-calendar-date-selected-disabled-state-background-color: rgba(123, 31, 162, 0.4);--mtx-datetimepicker-calendar-date-today-selected-state-outline-color: white;--mtx-datetimepicker-calendar-date-focus-state-background-color: rgba(123, 31, 162, 0.3);--mtx-datetimepicker-calendar-date-hover-state-background-color: rgba(123, 31, 162, 0.3);--mtx-datetimepicker-clock-hand-background-color: #7b1fa2;--mtx-datetimepicker-clock-cell-selected-state-background-color: #7b1fa2;--mtx-datetimepicker-time-input-active-state-text-color: #7b1fa2;--mtx-datetimepicker-time-input-active-state-background-color: rgba(123, 31, 162, 0.2);--mtx-datetimepicker-time-input-focus-state-outline-color: #7b1fa2;--mtx-datetimepicker-time-input-focus-state-placeholder-text-color: rgba(123, 31, 162, 0.6);--mtx-datetimepicker-time-ampm-selected-state-background-color: rgba(123, 31, 162, 0.2);--mtx-datetimepicker-toggle-active-state-icon-color: #7b1fa2;--mtx-datetimepicker-toggle-icon-color: white;--mtx-datetimepicker-calendar-body-label-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-body-week-number-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-header-text-color: white;--mtx-datetimepicker-calendar-header-divider-color: transparent;--mtx-datetimepicker-calendar-table-header-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-date-today-outline-color: rgba(255, 255, 255, 0.5);--mtx-datetimepicker-calendar-date-text-color: white;--mtx-datetimepicker-calendar-date-outline-color: transparent;--mtx-datetimepicker-calendar-date-disabled-state-text-color: rgba(255, 255, 255, 0.5);--mtx-datetimepicker-container-background-color: #424242;--mtx-datetimepicker-container-text-color: white;--mtx-datetimepicker-clock-dial-background-color: rgba(255, 255, 255, 0.12);--mtx-datetimepicker-clock-cell-text-color: white;--mtx-datetimepicker-clock-cell-hover-state-background-color: rgba(255, 255, 255, 0.04);--mtx-datetimepicker-clock-cell-disabled-state-text-color: rgba(255, 255, 255, 0.5);--mtx-datetimepicker-time-input-text-color: white;--mtx-datetimepicker-time-input-background-color: rgba(255, 255, 255, 0.12);--mtx-datetimepicker-time-input-focus-state-background-color: #303030;--mtx-datetimepicker-time-input-warn-state-outline-color: #f44336;--mtx-datetimepicker-time-ampm-text-color: rgba(255, 255, 255, 0.75);--mtx-datetimepicker-time-ampm-outline-color: rgba(255, 255, 255, 0.5);--mtx-datetimepicker-time-ampm-selected-state-text-color: white}.mtx-datetimepicker-content.mat-accent{--mtx-datetimepicker-calendar-header-background-color: #69f0ae;--mtx-datetimepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, 0.87);--mtx-datetimepicker-calendar-date-selected-state-background-color: #69f0ae;--mtx-datetimepicker-calendar-date-selected-disabled-state-background-color: rgba(105, 240, 174, 0.4);--mtx-datetimepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, 0.87);--mtx-datetimepicker-calendar-date-focus-state-background-color: rgba(105, 240, 174, 0.3);--mtx-datetimepicker-calendar-date-hover-state-background-color: rgba(105, 240, 174, 0.3);--mtx-datetimepicker-clock-hand-background-color: #69f0ae;--mtx-datetimepicker-clock-cell-selected-state-background-color: #69f0ae;--mtx-datetimepicker-time-input-active-state-text-color: #69f0ae;--mtx-datetimepicker-time-input-active-state-background-color: rgba(105, 240, 174, 0.2);--mtx-datetimepicker-time-input-focus-state-outline-color: #69f0ae;--mtx-datetimepicker-time-input-focus-state-placeholder-text-color: rgba(105, 240, 174, 0.6);--mtx-datetimepicker-time-ampm-selected-state-background-color: rgba(105, 240, 174, 0.2)}.mtx-datetimepicker-content.mat-warn{--mtx-datetimepicker-calendar-header-background-color: #f44336;--mtx-datetimepicker-calendar-date-selected-state-text-color: white;--mtx-datetimepicker-calendar-date-selected-state-background-color: #f44336;--mtx-datetimepicker-calendar-date-selected-disabled-state-background-color: rgba(244, 67, 54, 0.4);--mtx-datetimepicker-calendar-date-today-selected-state-outline-color: white;--mtx-datetimepicker-calendar-date-focus-state-background-color: rgba(244, 67, 54, 0.3);--mtx-datetimepicker-calendar-date-hover-state-background-color: rgba(244, 67, 54, 0.3);--mtx-datetimepicker-clock-hand-background-color: #f44336;--mtx-datetimepicker-clock-cell-selected-state-background-color: #f44336;--mtx-datetimepicker-time-input-active-state-text-color: #f44336;--mtx-datetimepicker-time-input-active-state-background-color: rgba(244, 67, 54, 0.2);--mtx-datetimepicker-time-input-focus-state-outline-color: #f44336;--mtx-datetimepicker-time-input-focus-state-placeholder-text-color: rgba(244, 67, 54, 0.6);--mtx-datetimepicker-time-ampm-selected-state-background-color: rgba(244, 67, 54, 0.2)}.mtx-datetimepicker-toggle-active.mat-accent{--mtx-datetimepicker-toggle-active-state-icon-color: #69f0ae}.mtx-datetimepicker-toggle-active.mat-warn{--mtx-datetimepicker-toggle-active-state-icon-color: #f44336}html{--mtx-datetimepicker-calendar-text-font: Roboto, sans-serif;--mtx-datetimepicker-calendar-text-size: 13px;--mtx-datetimepicker-calendar-body-label-text-size: 14px;--mtx-datetimepicker-calendar-body-label-text-weight: 500;--mtx-datetimepicker-calendar-period-button-text-size: 14px;--mtx-datetimepicker-calendar-period-button-text-weight: 500;--mtx-datetimepicker-calendar-table-header-text-size: 11px;--mtx-datetimepicker-calendar-table-header-text-weight: 400;--mtx-datetimepicker-clock-text-size: 14px}html{--mtx-drawer-container-shape: 0;--mtx-drawer-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12)}html{--mtx-drawer-container-background-color: #424242;--mtx-drawer-container-text-color: white}html{--mtx-grid-container-shape: 0;--mtx-grid-table-cell-min-width: 80px}html{--mtx-grid-outline-color: rgba(255, 255, 255, 0.2);--mtx-grid-column-menu-text-color: white;--mtx-grid-column-menu-divider-color: rgba(255, 255, 255, 0.12);--mtx-grid-table-footer-background-color: #212121;--mtx-grid-table-row-striped-background-color: #3a3a3a;--mtx-grid-table-row-hover-background-color: #2a2a2a;--mtx-grid-table-row-selected-background-color: #2a2a2a;--mtx-grid-table-row-selected-hover-background-color: #1a1a1a;--mtx-grid-table-cell-selected-outline-color: #69f0ae;--mtx-grid-resizable-handle-active-background-color: #7b1fa2;--mtx-grid-resizable-handle-hover-background-color: #7b1fa2;--mtx-grid-resizable-handle-disabled-background-color: rgba(255, 255, 255, 0.12)}html{--mtx-grid-row-expand-button-size: 48px}html{--mtx-loader-backdrop-background-color: rgba(48, 48, 48, 0.75)}html{--mtx-popover-container-shape: 4px;--mtx-popover-base-elevation-level: 8}html{--mtx-popover-outline-color: rgba(255, 255, 255, 0.12);--mtx-popover-background-color: #424242;--mtx-popover-text-color: white}html{--mtx-progress-container-shape: 4px}html{--mtx-progress-track-color: rgba(255, 255, 255, 0.04);--mtx-progress-indicator-color: rgba(255, 255, 255, 0.12);--mtx-progress-text-color: white;--mtx-progress-info-indicator-color: #0d47a1;--mtx-progress-info-text-color: white;--mtx-progress-success-indicator-color: #1b5e20;--mtx-progress-success-text-color: white;--mtx-progress-warning-indicator-color: #e65100;--mtx-progress-warning-text-color: white;--mtx-progress-danger-indicator-color: #b71c1c;--mtx-progress-danger-text-color: white}html{--mtx-progress-text-size: 12px}html{--mtx-select-container-shape: 4px;--mtx-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}html{--mtx-select-option-selected-state-text-color: #7b1fa2;--mtx-select-container-text-color: white;--mtx-select-placeholder-text-color: rgba(255, 255, 255, 0.5);--mtx-select-disabled-text-color: rgba(255, 255, 255, 0.5);--mtx-select-multiple-value-background-color: #616161;--mtx-select-multiple-value-outline-color: rgba(255, 255, 255, 0.12);--mtx-select-multiple-value-disabled-outline-color: rgba(255, 255, 255, 0.06);--mtx-select-multiple-value-icon-hover-background-color: rgba(255, 255, 255, 0.12);--mtx-select-clear-icon-color: rgba(255, 255, 255, 0.7);--mtx-select-clear-icon-hover-color: #f44336;--mtx-select-enabled-arrow-color: rgba(255, 255, 255, 0.7);--mtx-select-disabled-arrow-color: rgba(255, 255, 255, 0.5);--mtx-select-invalid-arrow-color: #f44336;--mtx-select-panel-background-color: #424242;--mtx-select-panel-divider-color: rgba(255, 255, 255, 0.12);--mtx-select-optgroup-label-text-color: rgba(255, 255, 255, 0.7);--mtx-select-option-label-text-color: white;--mtx-select-option-selected-state-background-color: rgba(255, 255, 255, 0.04);--mtx-select-option-hover-state-background-color: rgba(255, 255, 255, 0.04);--mtx-select-option-disabled-state-text-color: rgba(255, 255, 255, 0.5)}.ng-dropdown-panel.mat-accent{--mtx-select-option-selected-state-text-color: #69f0ae}.ng-dropdown-panel.mat-warn{--mtx-select-option-selected-state-text-color: #f44336}html{--mtx-split-gutter-hover-state-background-color: #7b1fa2;--mtx-split-gutter-background-color: rgba(255, 255, 255, 0.12)}.mtx-split>.mtx-split-gutter.mat-accent:hover{--mtx-split-gutter-hover-state-background-color: #69f0ae}.mtx-split>.mtx-split-gutter.mat-warn:hover{--mtx-split-gutter-hover-state-background-color: #f44336}html{--mtx-tooltip-container-shape: 4px;--mtx-tooltip-supporting-text-line-height: 16px}html{--mtx-tooltip-container-color: #616161;--mtx-tooltip-supporting-text-color: #fff}html{--mtx-tooltip-supporting-text-font: Roboto, sans-serif;--mtx-tooltip-supporting-text-size: 12px;--mtx-tooltip-supporting-text-weight: 400;--mtx-tooltip-supporting-text-tracking: 0.0333333333em}
1
+ .mat-button-loading .mdc-button__label,.mat-button-loading .mat-icon{visibility:hidden}.mat-button-loading .mat-mdc-progress-spinner{position:absolute;top:calc(50% - 12px);left:calc(50% - 12px)}html{--mtx-alert-container-shape: 4px}html{--mtx-alert-outline-color: transparent;--mtx-alert-background-color: #212121;--mtx-alert-text-color: white;--mtx-alert-info-outline-color: transparent;--mtx-alert-info-background-color: #0d47a1;--mtx-alert-info-text-color: white;--mtx-alert-success-outline-color: transparent;--mtx-alert-success-background-color: #1b5e20;--mtx-alert-success-text-color: white;--mtx-alert-warning-outline-color: transparent;--mtx-alert-warning-background-color: #ff6f00;--mtx-alert-warning-text-color: white;--mtx-alert-danger-outline-color: transparent;--mtx-alert-danger-background-color: #b71c1c;--mtx-alert-danger-text-color: white}html{--mtx-colorpicker-toggle-active-state-icon-color: #7b1fa2;--mtx-colorpicker-toggle-icon-color: rgba(255, 255, 255, 0.7)}.mtx-colorpicker-toggle-active.mat-accent{--mtx-colorpicker-toggle-active-state-icon-color: #69f0ae;--mtx-colorpicker-toggle-icon-color: rgba(255, 255, 255, 0.7)}.mtx-colorpicker-toggle-active.mat-warn{--mtx-colorpicker-toggle-active-state-icon-color: #f44336;--mtx-colorpicker-toggle-icon-color: rgba(255, 255, 255, 0.7)}html{--mtx-datetimepicker-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mtx-datetimepicker-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mtx-datetimepicker-container-shape: 4px;--mtx-datetimepicker-container-touch-shape: 4px;--mtx-datetimepicker-selector-container-shape: 4px}html{--mtx-datetimepicker-calendar-date-selected-state-text-color: white;--mtx-datetimepicker-calendar-date-selected-state-background-color: #7b1fa2;--mtx-datetimepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #7b1fa2 38%, transparent);--mtx-datetimepicker-calendar-date-today-selected-state-outline-color: white;--mtx-datetimepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #7b1fa2 12%, transparent);--mtx-datetimepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #7b1fa2 12%, transparent);--mtx-datetimepicker-toggle-active-state-icon-color: #7b1fa2;--mtx-datetimepicker-toggle-icon-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-body-label-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-header-divider-color: transparent;--mtx-datetimepicker-calendar-header-text-color: white;--mtx-datetimepicker-calendar-body-week-number-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-header-background-color: #7b1fa2;--mtx-datetimepicker-calendar-table-header-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-date-today-outline-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-date-text-color: white;--mtx-datetimepicker-calendar-date-outline-color: transparent;--mtx-datetimepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mtx-datetimepicker-container-background-color: #424242;--mtx-datetimepicker-container-text-color: white;--mtx-datetimepicker-clock-dial-background-color: rgba(255, 255, 255, 0.12);--mtx-datetimepicker-clock-cell-text-color: white;--mtx-datetimepicker-clock-cell-hover-state-background-color: color-mix(in srgb, white 4%, transparent);--mtx-datetimepicker-clock-cell-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mtx-datetimepicker-clock-cell-selected-state-background-color: #7b1fa2;--mtx-datetimepicker-clock-hand-background-color: #7b1fa2;--mtx-datetimepicker-time-input-active-state-text-color: #7b1fa2;--mtx-datetimepicker-time-input-active-state-background-color: color-mix(in srgb, #7b1fa2 20%, transparent);--mtx-datetimepicker-time-input-focus-state-outline-color: #7b1fa2;--mtx-datetimepicker-time-input-focus-state-placeholder-text-color: color-mix(in srgb, #7b1fa2 60%, transparent);--mtx-datetimepicker-time-input-text-color: white;--mtx-datetimepicker-time-input-background-color: rgba(255, 255, 255, 0.12);--mtx-datetimepicker-time-input-warn-state-outline-color: #f44336;--mtx-datetimepicker-time-ampm-text-color: color-mix(in srgb, white 75%, transparent);--mtx-datetimepicker-time-ampm-outline-color: color-mix(in srgb, white 38%, transparent);--mtx-datetimepicker-time-ampm-selected-state-text-color: white;--mtx-datetimepicker-time-ampm-selected-state-background-color: color-mix(in srgb, #7b1fa2 20%, transparent)}.mtx-datetimepicker-content.mat-accent,.mtx-datetimepicker-toggle-active.mat-accent{--mtx-datetimepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, 0.87);--mtx-datetimepicker-calendar-date-selected-state-background-color: #69f0ae;--mtx-datetimepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #69f0ae 38%, transparent);--mtx-datetimepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, 0.87);--mtx-datetimepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #69f0ae 12%, transparent);--mtx-datetimepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #69f0ae 12%, transparent);--mtx-datetimepicker-toggle-active-state-icon-color: #69f0ae;--mtx-datetimepicker-toggle-icon-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-body-label-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-header-divider-color: transparent;--mtx-datetimepicker-calendar-header-text-color: white;--mtx-datetimepicker-calendar-body-week-number-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-header-background-color: #69f0ae;--mtx-datetimepicker-calendar-table-header-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-date-today-outline-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-date-text-color: white;--mtx-datetimepicker-calendar-date-outline-color: transparent;--mtx-datetimepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mtx-datetimepicker-container-background-color: #424242;--mtx-datetimepicker-container-text-color: white;--mtx-datetimepicker-clock-dial-background-color: rgba(255, 255, 255, 0.12);--mtx-datetimepicker-clock-cell-text-color: white;--mtx-datetimepicker-clock-cell-hover-state-background-color: color-mix(in srgb, white 4%, transparent);--mtx-datetimepicker-clock-cell-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mtx-datetimepicker-clock-cell-selected-state-background-color: #69f0ae;--mtx-datetimepicker-clock-hand-background-color: #69f0ae;--mtx-datetimepicker-time-input-active-state-text-color: #69f0ae;--mtx-datetimepicker-time-input-active-state-background-color: color-mix(in srgb, #69f0ae 20%, transparent);--mtx-datetimepicker-time-input-focus-state-outline-color: #69f0ae;--mtx-datetimepicker-time-input-focus-state-placeholder-text-color: color-mix(in srgb, #69f0ae 60%, transparent);--mtx-datetimepicker-time-input-text-color: white;--mtx-datetimepicker-time-input-background-color: rgba(255, 255, 255, 0.12);--mtx-datetimepicker-time-input-warn-state-outline-color: #f44336;--mtx-datetimepicker-time-ampm-text-color: color-mix(in srgb, white 75%, transparent);--mtx-datetimepicker-time-ampm-outline-color: color-mix(in srgb, white 38%, transparent);--mtx-datetimepicker-time-ampm-selected-state-text-color: white;--mtx-datetimepicker-time-ampm-selected-state-background-color: color-mix(in srgb, #69f0ae 20%, transparent)}.mtx-datetimepicker-content.mat-warn,.mtx-datetimepicker-toggle-active.mat-warn{--mtx-datetimepicker-calendar-date-selected-state-text-color: white;--mtx-datetimepicker-calendar-date-selected-state-background-color: #f44336;--mtx-datetimepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #f44336 38%, transparent);--mtx-datetimepicker-calendar-date-today-selected-state-outline-color: white;--mtx-datetimepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #f44336 12%, transparent);--mtx-datetimepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #f44336 12%, transparent);--mtx-datetimepicker-toggle-active-state-icon-color: #f44336;--mtx-datetimepicker-toggle-icon-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-body-label-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-header-divider-color: transparent;--mtx-datetimepicker-calendar-header-text-color: white;--mtx-datetimepicker-calendar-body-week-number-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-header-background-color: #f44336;--mtx-datetimepicker-calendar-table-header-text-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-date-today-outline-color: rgba(255, 255, 255, 0.7);--mtx-datetimepicker-calendar-date-text-color: white;--mtx-datetimepicker-calendar-date-outline-color: transparent;--mtx-datetimepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mtx-datetimepicker-container-background-color: #424242;--mtx-datetimepicker-container-text-color: white;--mtx-datetimepicker-clock-dial-background-color: rgba(255, 255, 255, 0.12);--mtx-datetimepicker-clock-cell-text-color: white;--mtx-datetimepicker-clock-cell-hover-state-background-color: color-mix(in srgb, white 4%, transparent);--mtx-datetimepicker-clock-cell-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mtx-datetimepicker-clock-cell-selected-state-background-color: #f44336;--mtx-datetimepicker-clock-hand-background-color: #f44336;--mtx-datetimepicker-time-input-active-state-text-color: #f44336;--mtx-datetimepicker-time-input-active-state-background-color: color-mix(in srgb, #f44336 20%, transparent);--mtx-datetimepicker-time-input-focus-state-outline-color: #f44336;--mtx-datetimepicker-time-input-focus-state-placeholder-text-color: color-mix(in srgb, #f44336 60%, transparent);--mtx-datetimepicker-time-input-text-color: white;--mtx-datetimepicker-time-input-background-color: rgba(255, 255, 255, 0.12);--mtx-datetimepicker-time-input-warn-state-outline-color: #f44336;--mtx-datetimepicker-time-ampm-text-color: color-mix(in srgb, white 75%, transparent);--mtx-datetimepicker-time-ampm-outline-color: color-mix(in srgb, white 38%, transparent);--mtx-datetimepicker-time-ampm-selected-state-text-color: white;--mtx-datetimepicker-time-ampm-selected-state-background-color: color-mix(in srgb, #f44336 20%, transparent)}html{--mtx-datetimepicker-calendar-text-font: Roboto, sans-serif;--mtx-datetimepicker-calendar-text-size: 13px;--mtx-datetimepicker-calendar-body-label-text-size: 14px;--mtx-datetimepicker-calendar-body-label-text-weight: 500;--mtx-datetimepicker-calendar-period-button-text-size: 14px;--mtx-datetimepicker-calendar-period-button-text-weight: 500;--mtx-datetimepicker-calendar-table-header-text-size: 11px;--mtx-datetimepicker-calendar-table-header-text-weight: 400;--mtx-datetimepicker-clock-text-size: 14px}html{--mtx-drawer-container-shape: 0;--mtx-drawer-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12)}html{--mtx-drawer-container-background-color: #424242;--mtx-drawer-container-text-color: white}html{--mtx-grid-container-shape: 0;--mtx-grid-table-cell-min-width: 80px}html{--mtx-grid-outline-color: color-mix(in srgb, white 20%, transparent);--mtx-grid-column-menu-text-color: white;--mtx-grid-column-menu-divider-color: rgba(255, 255, 255, 0.12);--mtx-grid-table-footer-background-color: #424242;--mtx-grid-table-row-striped-background-color: #3a3a3a;--mtx-grid-table-row-hover-background-color: #2a2a2a;--mtx-grid-table-row-selected-background-color: #2a2a2a;--mtx-grid-table-row-selected-hover-background-color: #1a1a1a;--mtx-grid-table-cell-selected-outline-color: #69f0ae;--mtx-grid-resizable-handle-active-background-color: #7b1fa2;--mtx-grid-resizable-handle-hover-background-color: #7b1fa2;--mtx-grid-resizable-handle-disabled-background-color: rgba(255, 255, 255, 0.12)}html{--mtx-grid-row-expand-button-size: 48px}html{--mtx-loader-backdrop-background-color: color-mix(in srgb, #424242 75%, transparent)}html{--mtx-popover-container-shape: 4px;--mtx-popover-base-elevation-level: 8}html{--mtx-popover-outline-color: rgba(255, 255, 255, 0.12);--mtx-popover-background-color: #424242;--mtx-popover-text-color: white}html{--mtx-progress-container-shape: 4px}html{--mtx-progress-track-color: color-mix(in srgb, white 4%, transparent);--mtx-progress-indicator-color: rgba(255, 255, 255, 0.12);--mtx-progress-text-color: white;--mtx-progress-info-indicator-color: #0d47a1;--mtx-progress-info-text-color: white;--mtx-progress-success-indicator-color: #1b5e20;--mtx-progress-success-text-color: white;--mtx-progress-warning-indicator-color: #e65100;--mtx-progress-warning-text-color: white;--mtx-progress-danger-indicator-color: #b71c1c;--mtx-progress-danger-text-color: white}html{--mtx-progress-text-size: 12px}html{--mtx-select-container-shape: 4px;--mtx-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}html{--mtx-select-container-text-color: white;--mtx-select-placeholder-text-color: color-mix(in srgb, white 38%, transparent);--mtx-select-disabled-text-color: color-mix(in srgb, white 38%, transparent);--mtx-select-multiple-value-background-color: rgba(255, 255, 255, 0.12);--mtx-select-multiple-value-outline-color: rgba(255, 255, 255, 0.12);--mtx-select-multiple-value-disabled-outline-color: color-mix(in srgb, rgba(255, 255, 255, 0.12) 38%, transparent);--mtx-select-multiple-value-icon-hover-background-color: rgba(255, 255, 255, 0.12);--mtx-select-clear-icon-color: rgba(255, 255, 255, 0.7);--mtx-select-clear-icon-hover-color: #f44336;--mtx-select-enabled-arrow-color: rgba(255, 255, 255, 0.7);--mtx-select-disabled-arrow-color: color-mix(in srgb, white 38%, transparent);--mtx-select-invalid-arrow-color: #f44336;--mtx-select-panel-background-color: #424242;--mtx-select-panel-divider-color: rgba(255, 255, 255, 0.12);--mtx-select-optgroup-label-text-color: rgba(255, 255, 255, 0.7);--mtx-select-option-label-text-color: white;--mtx-select-option-selected-state-text-color: #7b1fa2;--mtx-select-option-selected-state-background-color: color-mix(in srgb, white 4%, transparent);--mtx-select-option-hover-state-background-color: color-mix(in srgb, white 4%, transparent);--mtx-select-option-disabled-state-text-color: color-mix(in srgb, white 38%, transparent)}.ng-dropdown-panel.mat-accent{--mtx-select-container-text-color: white;--mtx-select-placeholder-text-color: color-mix(in srgb, white 38%, transparent);--mtx-select-disabled-text-color: color-mix(in srgb, white 38%, transparent);--mtx-select-multiple-value-background-color: rgba(255, 255, 255, 0.12);--mtx-select-multiple-value-outline-color: rgba(255, 255, 255, 0.12);--mtx-select-multiple-value-disabled-outline-color: color-mix(in srgb, rgba(255, 255, 255, 0.12) 38%, transparent);--mtx-select-multiple-value-icon-hover-background-color: rgba(255, 255, 255, 0.12);--mtx-select-clear-icon-color: rgba(255, 255, 255, 0.7);--mtx-select-clear-icon-hover-color: #f44336;--mtx-select-enabled-arrow-color: rgba(255, 255, 255, 0.7);--mtx-select-disabled-arrow-color: color-mix(in srgb, white 38%, transparent);--mtx-select-invalid-arrow-color: #f44336;--mtx-select-panel-background-color: #424242;--mtx-select-panel-divider-color: rgba(255, 255, 255, 0.12);--mtx-select-optgroup-label-text-color: rgba(255, 255, 255, 0.7);--mtx-select-option-label-text-color: white;--mtx-select-option-selected-state-text-color: #69f0ae;--mtx-select-option-selected-state-background-color: color-mix(in srgb, white 4%, transparent);--mtx-select-option-hover-state-background-color: color-mix(in srgb, white 4%, transparent);--mtx-select-option-disabled-state-text-color: color-mix(in srgb, white 38%, transparent)}.ng-dropdown-panel.mat-warn{--mtx-select-container-text-color: white;--mtx-select-placeholder-text-color: color-mix(in srgb, white 38%, transparent);--mtx-select-disabled-text-color: color-mix(in srgb, white 38%, transparent);--mtx-select-multiple-value-background-color: rgba(255, 255, 255, 0.12);--mtx-select-multiple-value-outline-color: rgba(255, 255, 255, 0.12);--mtx-select-multiple-value-disabled-outline-color: color-mix(in srgb, rgba(255, 255, 255, 0.12) 38%, transparent);--mtx-select-multiple-value-icon-hover-background-color: rgba(255, 255, 255, 0.12);--mtx-select-clear-icon-color: rgba(255, 255, 255, 0.7);--mtx-select-clear-icon-hover-color: #f44336;--mtx-select-enabled-arrow-color: rgba(255, 255, 255, 0.7);--mtx-select-disabled-arrow-color: color-mix(in srgb, white 38%, transparent);--mtx-select-invalid-arrow-color: #f44336;--mtx-select-panel-background-color: #424242;--mtx-select-panel-divider-color: rgba(255, 255, 255, 0.12);--mtx-select-optgroup-label-text-color: rgba(255, 255, 255, 0.7);--mtx-select-option-label-text-color: white;--mtx-select-option-selected-state-text-color: #f44336;--mtx-select-option-selected-state-background-color: color-mix(in srgb, white 4%, transparent);--mtx-select-option-hover-state-background-color: color-mix(in srgb, white 4%, transparent);--mtx-select-option-disabled-state-text-color: color-mix(in srgb, white 38%, transparent)}html{--mtx-split-gutter-background-color: rgba(255, 255, 255, 0.12);--mtx-split-gutter-hover-state-background-color: #7b1fa2}.mtx-split>.mtx-split-gutter.mat-accent:hover{--mtx-split-gutter-background-color: rgba(255, 255, 255, 0.12);--mtx-split-gutter-hover-state-background-color: #69f0ae}.mtx-split>.mtx-split-gutter.mat-warn:hover{--mtx-split-gutter-background-color: rgba(255, 255, 255, 0.12);--mtx-split-gutter-hover-state-background-color: #f44336}html{--mtx-tooltip-container-shape: 4px;--mtx-tooltip-supporting-text-line-height: 16px}html{--mtx-tooltip-container-color: white;--mtx-tooltip-supporting-text-color: rgba(0, 0, 0, 0.87)}html{--mtx-tooltip-supporting-text-font: Roboto, sans-serif;--mtx-tooltip-supporting-text-size: 12px;--mtx-tooltip-supporting-text-weight: 400;--mtx-tooltip-supporting-text-tracking: 0.0333333333em}
@@ -1,53 +1,38 @@
1
1
  @use 'sass:map';
2
+ @use 'sass:meta';
2
3
  @use '@angular/material' as mat;
3
4
  @use '../core/tokens/m2-utils';
5
+ @use '../core/tokens/m3-utils';
4
6
 
5
- // Tokens that can't be configured through Angular Material's current theming API,
6
- // but may be in a future version of the theming API.
7
- @function get-unthemable-tokens() {
8
- @return (
9
- progress-container-shape: 4px,
10
- );
11
- }
7
+ @function get-tokens($theme) {
8
+ $system: m2-utils.get-system($theme);
12
9
 
13
- // Tokens that can be configured through Angular Material's color theming API.
14
- @function get-color-tokens($theme) {
15
- $is-dark: mat.get-theme-type($theme) == dark;
16
-
17
- @return (
18
- progress-track-color: mat.get-theme-color($theme, background, hover),
19
- progress-indicator-color: mat.get-theme-color($theme, foreground, divider),
20
- progress-text-color: mat.get-theme-color($theme, foreground, text),
21
- progress-info-indicator-color: mat.m2-get-color-from-palette(mat.$m2-blue-palette, if($is-dark, 900, 500)),
22
- progress-info-text-color: white,
23
- progress-success-indicator-color: mat.m2-get-color-from-palette(mat.$m2-green-palette, if($is-dark, 900, 500)),
24
- progress-success-text-color: white,
25
- progress-warning-indicator-color: mat.m2-get-color-from-palette(mat.$m2-orange-palette, if($is-dark, 900, 500)),
26
- progress-warning-text-color: white,
27
- progress-danger-indicator-color: mat.m2-get-color-from-palette(mat.$m2-red-palette, if($is-dark, 900, 500)),
28
- progress-danger-text-color: white,
29
- );
30
- }
10
+ $is-dark: false;
11
+ @if meta.type-of($theme) == 'map' {
12
+ $is-dark: mat.get-theme-type($theme) == dark;
13
+ }
31
14
 
32
- // Tokens that can be configured through Angular Material's typography theming API.
33
- @function get-typography-tokens($theme) {
34
15
  @return (
35
- progress-text-size: 12px,
36
- );
37
- }
38
-
39
- // Tokens that can be configured through Angular Material's density theming API.
40
- @function get-density-tokens($theme) {
41
- @return ();
42
- }
43
-
44
- // Combines the tokens generated by the above functions into a single map with placeholder values.
45
- // This is used to create token slots.
46
- @function get-token-slots() {
47
- @return mat.private-deep-merge-all(
48
- get-unthemable-tokens(),
49
- get-color-tokens(m2-utils.$placeholder-color-config),
50
- get-typography-tokens(m2-utils.$placeholder-typography-config),
51
- get-density-tokens(m2-utils.$placeholder-density-config)
16
+ base: (
17
+ progress-container-shape: 4px,
18
+ ),
19
+ color: (
20
+ progress-track-color: m3-utils.color-with-opacity(
21
+ map.get($system, on-surface), map.get($system, hover-state-layer-opacity)),
22
+ progress-indicator-color: map.get($system, outline),
23
+ progress-text-color: map.get($system, on-surface),
24
+ progress-info-indicator-color: mat.m2-get-color-from-palette(mat.$m2-blue-palette, if($is-dark, 900, 500)),
25
+ progress-info-text-color: white,
26
+ progress-success-indicator-color: mat.m2-get-color-from-palette(mat.$m2-green-palette, if($is-dark, 900, 500)),
27
+ progress-success-text-color: white,
28
+ progress-warning-indicator-color: mat.m2-get-color-from-palette(mat.$m2-orange-palette, if($is-dark, 900, 500)),
29
+ progress-warning-text-color: white,
30
+ progress-danger-indicator-color: mat.m2-get-color-from-palette(mat.$m2-red-palette, if($is-dark, 900, 500)),
31
+ progress-danger-text-color: white,
32
+ ),
33
+ typography: (
34
+ progress-text-size: 12px,
35
+ ),
36
+ density: ()
52
37
  );
53
38
  }
@@ -5,47 +5,39 @@
5
5
  @use './m3-progress';
6
6
 
7
7
  @mixin base($theme) {
8
+ $tokens: map.get(m2-progress.get-tokens($theme), base);
8
9
  @if mat.get-theme-version($theme) == 1 {
9
- @include token-utils.create-token-values(map.get(m3-progress.get-tokens($theme), base));
10
- }
11
- @else {
12
- @include mat.private-current-selector-or-root() {
13
- @include token-utils.create-token-values-mixed(m2-progress.get-unthemable-tokens());
14
- }
10
+ $tokens: map.get(m3-progress.get-tokens($theme), base);
15
11
  }
12
+
13
+ @include token-utils.values($tokens);
16
14
  }
17
15
 
18
16
  @mixin color($theme) {
17
+ $tokens: map.get(m2-progress.get-tokens($theme), color);
19
18
  @if mat.get-theme-version($theme) == 1 {
20
- @include token-utils.create-token-values(map.get(m3-progress.get-tokens($theme), color));
21
- }
22
- @else {
23
- @include mat.private-current-selector-or-root() {
24
- @include token-utils.create-token-values(m2-progress.get-color-tokens($theme));
25
- }
19
+ $tokens: map.get(m3-progress.get-tokens($theme), color);
26
20
  }
21
+
22
+ @include token-utils.values($tokens);
27
23
  }
28
24
 
29
25
  @mixin typography($theme) {
26
+ $tokens: map.get(m2-progress.get-tokens($theme), typography);
30
27
  @if mat.get-theme-version($theme) == 1 {
31
- @include token-utils.create-token-values(map.get(m3-progress.get-tokens($theme), typography));
32
- }
33
- @else {
34
- @include mat.private-current-selector-or-root() {
35
- @include token-utils.create-token-values(m2-progress.get-typography-tokens($theme));
36
- }
28
+ $tokens: map.get(m3-progress.get-tokens($theme), typography);
37
29
  }
30
+
31
+ @include token-utils.values($tokens);
38
32
  }
39
33
 
40
34
  @mixin density($theme) {
35
+ $tokens: map.get(m2-progress.get-tokens($theme), density);
41
36
  @if mat.get-theme-version($theme) == 1 {
42
- @include token-utils.create-token-values(map.get(m3-progress.get-tokens($theme), density));
43
- }
44
- @else {
45
- @include mat.private-current-selector-or-root() {
46
- @include token-utils.create-token-values-mixed(m2-progress.get-density-tokens($theme));
47
- }
37
+ $tokens: map.get(m3-progress.get-tokens($theme), density);
48
38
  }
39
+
40
+ @include token-utils.values($tokens);
49
41
  }
50
42
 
51
43
  /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
@@ -63,24 +55,21 @@
63
55
  }
64
56
 
65
57
  @mixin theme($theme, $color-variant: null) {
66
- @include mat.private-check-duplicate-theme-styles($theme, 'mtx-progress') {
67
- @if mat.get-theme-version($theme) == 1 {
68
- @include base($theme);
58
+ @if mat.get-theme-version($theme) == 1 {
59
+ @include base($theme);
60
+ @include color($theme);
61
+ @include density($theme);
62
+ @include typography($theme);
63
+ } @else {
64
+ @include base($theme);
65
+ @if mat.theme-has($theme, color) {
69
66
  @include color($theme);
67
+ }
68
+ @if mat.theme-has($theme, density) {
70
69
  @include density($theme);
71
- @include typography($theme);
72
70
  }
73
- @else {
74
- @include base($theme);
75
- @if mat.theme-has($theme, color) {
76
- @include color($theme);
77
- }
78
- @if mat.theme-has($theme, density) {
79
- @include density($theme);
80
- }
81
- @if mat.theme-has($theme, typography) {
82
- @include typography($theme);
83
- }
71
+ @if mat.theme-has($theme, typography) {
72
+ @include typography($theme);
84
73
  }
85
74
  }
86
75
  }
@@ -1,79 +1,52 @@
1
1
  @use 'sass:map';
2
- @use 'sass:math';
3
- @use '@angular/material' as mat;
4
2
  @use '../core/tokens/m2-utils';
3
+ @use '../core/tokens/m3-utils';
5
4
  @use '../core/style/elevation';
6
5
 
7
- // Generates the tokens used to theme the option based on a palette.
8
- @function private-get-color-palette-color-tokens($theme, $palette-name) {
6
+ @function get-tokens($theme) {
9
7
  @return (
10
- select-option-selected-state-text-color: mat.get-theme-color($theme, $palette-name),
11
- );
12
- }
13
-
14
- // Tokens that can't be configured through Angular Material's current theming API,
15
- // but may be in a future version of the theming API.
16
- @function get-unthemable-tokens() {
17
- @return (
18
- select-container-shape: 4px,
19
- select-container-elevation-shadow: elevation.get-box-shadow(8),
8
+ base: (
9
+ select-container-shape: 4px,
10
+ select-container-elevation-shadow: elevation.get-box-shadow(8),
11
+ ),
12
+ color: private-get-color-palette-color-tokens($theme, primary),
13
+ typography: (),
14
+ density: ()
20
15
  );
21
16
  }
22
17
 
23
18
  // Tokens that can be configured through Angular Material's color theming API.
24
- @function get-color-tokens($theme) {
25
- $text-color: mat.get-theme-color($theme, foreground, text);
26
- $hint-text-color: mat.get-theme-color($theme, foreground, hint-text);
27
- $secondary-text-color: mat.get-theme-color($theme, foreground, secondary-text);
28
- $disabled-text-color: mat.get-theme-color($theme, foreground, disabled-text);
29
- $divider-color: mat.get-theme-color($theme, foreground, divider);
30
- $hover-color: mat.get-theme-color($theme, background, hover);
31
- $palette-tokens: private-get-color-palette-color-tokens($theme, primary);
32
-
33
- @return map.merge($palette-tokens, (
34
- select-container-text-color: $text-color,
35
- select-placeholder-text-color: $hint-text-color,
36
- select-disabled-text-color: $hint-text-color,
37
-
38
- select-multiple-value-background-color: mat.get-theme-color($theme, background, unselected-chip),
39
- select-multiple-value-outline-color: $divider-color,
40
- select-multiple-value-disabled-outline-color: mat.get-theme-color($theme, foreground, divider, 0.06),
41
- select-multiple-value-icon-hover-background-color: $divider-color,
42
-
43
- select-clear-icon-color: $secondary-text-color,
44
- select-clear-icon-hover-color: mat.get-theme-color($theme, warn),
45
-
46
- select-enabled-arrow-color: $secondary-text-color,
47
- select-disabled-arrow-color: $disabled-text-color,
48
- select-invalid-arrow-color: mat.get-theme-color($theme, warn),
19
+ @function private-get-color-palette-color-tokens($theme, $color-variant) {
20
+ $system: m2-utils.get-system($theme);
21
+ $system: m3-utils.replace-colors-with-variant($system, primary, $color-variant);
49
22
 
50
- select-panel-background-color: mat.get-theme-color($theme, background, card),
51
- select-panel-divider-color: $divider-color,
52
- select-optgroup-label-text-color: $secondary-text-color,
53
- select-option-label-text-color: $text-color,
54
- select-option-selected-state-background-color: $hover-color,
55
- select-option-hover-state-background-color: $hover-color,
56
- select-option-disabled-state-text-color: $hint-text-color,
57
- ));
58
- }
59
-
60
- // Tokens that can be configured through Angular Material's typography theming API.
61
- @function get-typography-tokens($theme) {
62
- @return ();
63
- }
64
-
65
- // Tokens that can be configured through Angular Material's density theming API.
66
- @function get-density-tokens($theme) {
67
- @return ();
68
- }
69
-
70
- // Combines the tokens generated by the above functions into a single map with placeholder values.
71
- // This is used to create token slots.
72
- @function get-token-slots() {
73
- @return mat.private-deep-merge-all(
74
- get-unthemable-tokens(),
75
- get-color-tokens(m2-utils.$placeholder-color-config),
76
- get-typography-tokens(m2-utils.$placeholder-typography-config),
77
- get-density-tokens(m2-utils.$placeholder-density-config)
23
+ @return (
24
+ select-container-text-color: map.get($system, on-surface),
25
+ select-placeholder-text-color: m3-utils.color-with-opacity(map.get($system, on-surface), 38%),
26
+ select-disabled-text-color: m3-utils.color-with-opacity(map.get($system, on-surface), 38%),
27
+
28
+ select-multiple-value-background-color: map.get($system, outline),
29
+ select-multiple-value-outline-color: map.get($system, outline),
30
+ select-multiple-value-disabled-outline-color: m3-utils.color-with-opacity(map.get($system, outline), 38%),
31
+ select-multiple-value-icon-hover-background-color: map.get($system, outline),
32
+
33
+ select-clear-icon-color: map.get($system, on-surface-variant),
34
+ select-clear-icon-hover-color: map.get($system, error),
35
+
36
+ select-enabled-arrow-color: map.get($system, on-surface-variant),
37
+ select-disabled-arrow-color: m3-utils.color-with-opacity(map.get($system, on-surface), 38%),
38
+ select-invalid-arrow-color: map.get($system, error),
39
+
40
+ select-panel-background-color: map.get($system, surface),
41
+ select-panel-divider-color: map.get($system, outline),
42
+ select-optgroup-label-text-color: map.get($system, on-surface-variant),
43
+ select-option-label-text-color: map.get($system, on-surface),
44
+ select-option-selected-state-text-color: map.get($system, primary),
45
+ select-option-selected-state-background-color: m3-utils.color-with-opacity(
46
+ map.get($system, on-surface), map.get($system, hover-state-layer-opacity)),
47
+ select-option-hover-state-background-color: m3-utils.color-with-opacity(
48
+ map.get($system, on-surface), map.get($system, hover-state-layer-opacity)),
49
+ select-option-disabled-state-text-color: m3-utils.color-with-opacity(map.get($system, on-surface), 38%),
78
50
  );
79
51
  }
52
+
@@ -35,7 +35,8 @@
35
35
  select-option-label-text-color: map.get($system, on-surface),
36
36
  select-option-selected-state-background-color: map.get($system, secondary-container),
37
37
  select-option-selected-state-text-color: map.get($system, on-surface),
38
- select-option-hover-state-background-color: m3-utils.color-with-opacity(map.get($system, on-surface), map.get($system,hover-state-layer-opacity)),
38
+ select-option-hover-state-background-color: m3-utils.color-with-opacity(
39
+ map.get($system, on-surface), map.get($system,hover-state-layer-opacity)),
39
40
  select-option-disabled-state-text-color: m3-utils.color-with-opacity(map.get($system, on-surface), 38%),
40
41
  ),
41
42
  typography: (),
@@ -5,59 +5,53 @@
5
5
  @use './m3-select';
6
6
 
7
7
  @mixin base($theme) {
8
+ $tokens: map.get(m2-select.get-tokens($theme), base);
8
9
  @if mat.get-theme-version($theme) == 1 {
9
- @include token-utils.create-token-values(map.get(m3-select.get-tokens($theme), base));
10
- }
11
- @else {
12
- @include mat.private-current-selector-or-root() {
13
- @include token-utils.create-token-values-mixed(m2-select.get-unthemable-tokens());
14
- }
10
+ $tokens: map.get(m3-select.get-tokens($theme), base);
15
11
  }
12
+
13
+ @include token-utils.values($tokens);
16
14
  }
17
15
 
18
16
  @mixin color($theme, $color-variant: null) {
17
+ $tokens: map.get(m2-select.get-tokens($theme), color);
19
18
  @if mat.get-theme-version($theme) == 1 {
20
- @include token-utils.create-token-values(map.get(m3-select.get-tokens($theme, $color-variant), color));
19
+ $tokens: map.get(m3-select.get-tokens($theme, $color-variant), color);
21
20
  }
22
- @else {
23
- @include mat.private-current-selector-or-root() {
24
- @include token-utils.create-token-values-mixed(m2-select.get-color-tokens($theme));
25
- }
26
21
 
22
+ @include token-utils.values($tokens);
23
+
24
+ @if mat.get-theme-version($theme) != 1 {
27
25
  .ng-dropdown-panel {
28
26
  &.mat-accent {
29
- $accent-tokens: m2-select.private-get-color-palette-color-tokens($theme, accent);
30
- @include token-utils.create-token-values-mixed($accent-tokens);
27
+ $tokens: m2-select.private-get-color-palette-color-tokens($theme, secondary);
28
+ @include token-utils.values($tokens);
31
29
  }
32
30
 
33
31
  &.mat-warn {
34
- $warn-tokens: m2-select.private-get-color-palette-color-tokens($theme, warn);
35
- @include token-utils.create-token-values-mixed($warn-tokens);
32
+ $tokens: m2-select.private-get-color-palette-color-tokens($theme, error);
33
+ @include token-utils.values($tokens);
36
34
  }
37
35
  }
38
36
  }
39
37
  }
40
38
 
41
39
  @mixin typography($theme) {
40
+ $tokens: map.get(m2-select.get-tokens($theme), typography);
42
41
  @if mat.get-theme-version($theme) == 1 {
43
- @include token-utils.create-token-values(map.get(m3-select.get-tokens($theme), typography));
44
- }
45
- @else {
46
- @include mat.private-current-selector-or-root() {
47
- @include token-utils.create-token-values-mixed(m2-select.get-typography-tokens($theme));
48
- }
42
+ $tokens: map.get(m3-select.get-tokens($theme), typography);
49
43
  }
44
+
45
+ @include token-utils.values($tokens);
50
46
  }
51
47
 
52
48
  @mixin density($theme) {
49
+ $tokens: map.get(m2-select.get-tokens($theme), density);
53
50
  @if mat.get-theme-version($theme) == 1 {
54
- @include token-utils.create-token-values(map.get(m3-select.get-tokens($theme), density));
55
- }
56
- @else {
57
- @include mat.private-current-selector-or-root() {
58
- @include token-utils.create-token-values-mixed(m2-select.get-density-tokens($theme));
59
- }
51
+ $tokens: map.get(m3-select.get-tokens($theme), density);
60
52
  }
53
+
54
+ @include token-utils.values($tokens);
61
55
  }
62
56
 
63
57
  /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
@@ -75,24 +69,21 @@
75
69
  }
76
70
 
77
71
  @mixin theme($theme, $color-variant: null) {
78
- @include mat.private-check-duplicate-theme-styles($theme, 'mtx-select') {
79
- @if mat.get-theme-version($theme) == 1 {
80
- @include base($theme);
81
- @include color($theme, $color-variant);
72
+ @if mat.get-theme-version($theme) == 1 {
73
+ @include base($theme);
74
+ @include color($theme, $color-variant);
75
+ @include density($theme);
76
+ @include typography($theme);
77
+ } @else {
78
+ @include base($theme);
79
+ @if mat.theme-has($theme, color) {
80
+ @include color($theme);
81
+ }
82
+ @if mat.theme-has($theme, density) {
82
83
  @include density($theme);
83
- @include typography($theme);
84
84
  }
85
- @else {
86
- @include base($theme);
87
- @if mat.theme-has($theme, color) {
88
- @include color($theme);
89
- }
90
- @if mat.theme-has($theme, density) {
91
- @include density($theme);
92
- }
93
- @if mat.theme-has($theme, typography) {
94
- @include typography($theme);
95
- }
85
+ @if mat.theme-has($theme, typography) {
86
+ @include typography($theme);
96
87
  }
97
88
  }
98
89
  }
@@ -3,45 +3,24 @@
3
3
  @use 'sass:meta';
4
4
  @use '@angular/material' as mat;
5
5
  @use '../core/tokens/m2-utils';
6
+ @use '../core/tokens/m3-utils';
6
7
 
7
- @function private-get-color-palette-color-tokens($theme, $palette-name) {
8
+ @function get-tokens($theme) {
8
9
  @return (
9
- split-gutter-hover-state-background-color: mat.get-theme-color($theme, $palette-name, text),
10
+ base: (),
11
+ color: private-get-color-palette-color-tokens($theme, primary),
12
+ typography: (),
13
+ density: ()
10
14
  );
11
15
  }
12
16
 
13
- // Tokens that can't be configured through Angular Material's current theming API,
14
- // but may be in a future version of the theming API.
15
- @function get-unthemable-tokens() {
16
- @return ();
17
- }
18
-
19
17
  // Tokens that can be configured through Angular Material's color theming API.
20
- @function get-color-tokens($theme) {
21
- $gutter-tokens: private-get-color-palette-color-tokens($theme, primary);
22
-
23
- @return mat.private-merge-all($gutter-tokens, (
24
- split-gutter-background-color: mat.get-theme-color($theme, foreground, divider),
25
- ));
26
- }
27
-
28
- // Tokens that can be configured through Angular Material's typography theming API.
29
- @function get-typography-tokens($theme) {
30
- @return ();
31
- }
32
-
33
- // Tokens that can be configured through Angular Material's density theming API.
34
- @function get-density-tokens($theme) {
35
- @return ();
36
- }
18
+ @function private-get-color-palette-color-tokens($theme, $color-variant) {
19
+ $system: m2-utils.get-system($theme);
20
+ $system: m3-utils.replace-colors-with-variant($system, primary, $color-variant);
37
21
 
38
- // Combines the tokens generated by the above functions into a single map with placeholder values.
39
- // This is used to create token slots.
40
- @function get-token-slots() {
41
- @return mat.private-deep-merge-all(
42
- get-unthemable-tokens(),
43
- get-color-tokens(m2-utils.$placeholder-color-config),
44
- get-typography-tokens(m2-utils.$placeholder-typography-config),
45
- get-density-tokens(m2-utils.$placeholder-density-config)
46
- );
22
+ @return (
23
+ split-gutter-background-color: map.get($system, outline),
24
+ split-gutter-hover-state-background-color: map.get($system, primary),
25
+ )
47
26
  }