@angular/material 18.1.2 → 18.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/_button-base.scss +5 -5
- package/checkbox/_checkbox-common.scss +9 -11
- package/chips/index.d.ts +3 -8
- package/core/ripple/_ripple.scss +1 -1
- package/core/theming/_definition.scss +2 -0
- package/core/tokens/_m3-tokens.scss +4 -2
- package/core/tokens/_token-definition.scss +266 -0
- package/core/tokens/_token-utils.scss +7 -265
- package/core/tokens/m2/mat/_app.scss +4 -4
- package/core/tokens/m2/mat/_autocomplete.scss +4 -4
- package/core/tokens/m2/mat/_badge.scss +4 -4
- package/core/tokens/m2/mat/_bottom-sheet.scss +4 -4
- package/core/tokens/m2/mat/_card.scss +4 -4
- package/core/tokens/m2/mat/_checkbox.scss +4 -4
- package/core/tokens/m2/mat/_chip.scss +4 -4
- package/core/tokens/m2/mat/_datepicker.scss +4 -4
- package/core/tokens/m2/mat/_dialog.scss +4 -4
- package/core/tokens/m2/mat/_divider.scss +4 -4
- package/core/tokens/m2/mat/_expansion.scss +4 -4
- package/core/tokens/m2/mat/_fab-small.scss +7 -6
- package/core/tokens/m2/mat/_fab.scss +7 -6
- package/core/tokens/m2/mat/_filled-button.scss +7 -6
- package/core/tokens/m2/mat/_form-field.scss +4 -4
- package/core/tokens/m2/mat/_full-pseudo-checkbox.scss +4 -4
- package/core/tokens/m2/mat/_grid-list.scss +4 -4
- package/core/tokens/m2/mat/_icon-button.scss +4 -4
- package/core/tokens/m2/mat/_icon.scss +4 -4
- package/core/tokens/m2/mat/_legacy-button-toggle.scss +4 -4
- package/core/tokens/m2/mat/_list.scss +4 -4
- package/core/tokens/m2/mat/_menu.scss +4 -4
- package/core/tokens/m2/mat/_minimal-pseudo-checkbox.scss +4 -4
- package/core/tokens/m2/mat/_optgroup.scss +4 -4
- package/core/tokens/m2/mat/_option.scss +4 -4
- package/core/tokens/m2/mat/_outlined-button.scss +4 -4
- package/core/tokens/m2/mat/_paginator.scss +4 -4
- package/core/tokens/m2/mat/_protected-button.scss +7 -6
- package/core/tokens/m2/mat/_radio.scss +4 -4
- package/core/tokens/m2/mat/_ripple.scss +4 -4
- package/core/tokens/m2/mat/_select.scss +7 -7
- package/core/tokens/m2/mat/_sidenav.scss +4 -4
- package/core/tokens/m2/mat/_slider.scss +4 -4
- package/core/tokens/m2/mat/_snack-bar.scss +4 -4
- package/core/tokens/m2/mat/_sort.scss +4 -4
- package/core/tokens/m2/mat/_standard-button-toggle.scss +4 -4
- package/core/tokens/m2/mat/_stepper.scss +4 -4
- package/core/tokens/m2/mat/_switch.scss +4 -4
- package/core/tokens/m2/mat/_tab-header-with-background.scss +4 -4
- package/core/tokens/m2/mat/_tab-header.scss +4 -4
- package/core/tokens/m2/mat/_table.scss +4 -4
- package/core/tokens/m2/mat/_text-button.scss +4 -4
- package/core/tokens/m2/mat/_toolbar.scss +4 -4
- package/core/tokens/m2/mat/_tree.scss +4 -4
- package/core/tokens/m2/mdc/_checkbox.scss +6 -6
- package/core/tokens/m2/mdc/_chip.scss +4 -4
- package/core/tokens/m2/mdc/_circular-progress.scss +4 -4
- package/core/tokens/m2/mdc/_dialog.scss +5 -5
- package/core/tokens/m2/mdc/_elevated-card.scss +4 -4
- package/core/tokens/m2/mdc/_extended-fab.scss +4 -4
- package/core/tokens/m2/mdc/_fab-small.scss +4 -4
- package/core/tokens/m2/mdc/_fab.scss +4 -4
- package/core/tokens/m2/mdc/_filled-button.scss +6 -6
- package/core/tokens/m2/mdc/_filled-text-field.scss +7 -7
- package/core/tokens/m2/mdc/_icon-button.scss +4 -4
- package/core/tokens/m2/mdc/_linear-progress.scss +4 -4
- package/core/tokens/m2/mdc/_list.scss +4 -4
- package/core/tokens/m2/mdc/_outlined-button.scss +5 -5
- package/core/tokens/m2/mdc/_outlined-card.scss +4 -4
- package/core/tokens/m2/mdc/_outlined-text-field.scss +7 -7
- package/core/tokens/m2/mdc/_plain-tooltip.scss +4 -4
- package/core/tokens/m2/mdc/_protected-button.scss +6 -6
- package/core/tokens/m2/mdc/_radio.scss +4 -4
- package/core/tokens/m2/mdc/_secondary-navigation-tab.scss +4 -4
- package/core/tokens/m2/mdc/_slider.scss +4 -4
- package/core/tokens/m2/mdc/_snack-bar.scss +4 -4
- package/core/tokens/m2/mdc/_switch.scss +4 -4
- package/core/tokens/m2/mdc/_tab-indicator.scss +4 -4
- package/core/tokens/m2/mdc/_text-button.scss +4 -4
- package/core/tokens/m3/mat/_app.scss +2 -2
- package/core/tokens/m3/mat/_autocomplete.scss +3 -4
- package/core/tokens/m3/mat/_badge.scss +18 -18
- package/core/tokens/m3/mat/_bottom-sheet.scss +4 -4
- package/core/tokens/m3/mat/_card.scss +4 -4
- package/core/tokens/m3/mat/_checkbox.scss +2 -2
- package/core/tokens/m3/mat/_chip.scss +5 -5
- package/core/tokens/m3/mat/_datepicker.scss +7 -7
- package/core/tokens/m3/mat/_dialog.scss +12 -11
- package/core/tokens/m3/mat/_divider.scss +3 -3
- package/core/tokens/m3/mat/_expansion.scss +7 -7
- package/core/tokens/m3/mat/_fab-small.scss +2 -2
- package/core/tokens/m3/mat/_fab.scss +2 -2
- package/core/tokens/m3/mat/_filled-button.scss +5 -5
- package/core/tokens/m3/mat/_form-field.scss +5 -5
- package/core/tokens/m3/mat/_full-pseudo-checkbox.scss +2 -2
- package/core/tokens/m3/mat/_grid-list.scss +2 -2
- package/core/tokens/m3/mat/_icon-button.scss +2 -2
- package/core/tokens/m3/mat/_icon.scss +3 -3
- package/core/tokens/m3/mat/_list.scss +2 -2
- package/core/tokens/m3/mat/_menu.scss +12 -12
- package/core/tokens/m3/mat/_minimal-pseudo-checkbox.scss +2 -2
- package/core/tokens/m3/mat/_optgroup.scss +3 -3
- package/core/tokens/m3/mat/_option.scss +2 -2
- package/core/tokens/m3/mat/_outlined-button.scss +5 -5
- package/core/tokens/m3/mat/_paginator.scss +3 -3
- package/core/tokens/m3/mat/_protected-button.scss +5 -5
- package/core/tokens/m3/mat/_radio.scss +2 -2
- package/core/tokens/m3/mat/_ripple.scss +2 -2
- package/core/tokens/m3/mat/_select.scss +4 -4
- package/core/tokens/m3/mat/_sidenav.scss +6 -5
- package/core/tokens/m3/mat/_slider.scss +12 -10
- package/core/tokens/m3/mat/_snack-bar.scss +2 -2
- package/core/tokens/m3/mat/_sort.scss +2 -2
- package/core/tokens/m3/mat/_standard-button-toggle.scss +6 -5
- package/core/tokens/m3/mat/_stepper.scss +3 -3
- package/core/tokens/m3/mat/_switch.scss +27 -22
- package/core/tokens/m3/mat/_tab-header.scss +4 -4
- package/core/tokens/m3/mat/_table.scss +7 -6
- package/core/tokens/m3/mat/_text-button.scss +6 -6
- package/core/tokens/m3/mat/_toolbar.scss +3 -3
- package/core/tokens/m3/mat/_tree.scss +2 -2
- package/core/tokens/m3/mdc/_checkbox.scss +10 -8
- package/core/tokens/m3/mdc/_chip.scss +12 -11
- package/core/tokens/m3/mdc/_circular-progress.scss +5 -4
- package/core/tokens/m3/mdc/_dialog.scss +4 -4
- package/core/tokens/m3/mdc/_elevated-card.scss +3 -3
- package/core/tokens/m3/mdc/_extended-fab.scss +9 -5
- package/core/tokens/m3/mdc/_fab-small.scss +8 -5
- package/core/tokens/m3/mdc/_fab.scss +6 -5
- package/core/tokens/m3/mdc/_filled-button.scss +6 -6
- package/core/tokens/m3/mdc/_filled-text-field.scss +7 -6
- package/core/tokens/m3/mdc/_icon-button.scss +10 -8
- package/core/tokens/m3/mdc/_linear-progress.scss +5 -4
- package/core/tokens/m3/mdc/_list.scss +3 -3
- package/core/tokens/m3/mdc/_outlined-button.scss +7 -6
- package/core/tokens/m3/mdc/_outlined-card.scss +3 -3
- package/core/tokens/m3/mdc/_outlined-text-field.scss +7 -6
- package/core/tokens/m3/mdc/_plain-tooltip.scss +3 -3
- package/core/tokens/m3/mdc/_protected-button.scss +6 -6
- package/core/tokens/m3/mdc/_radio.scss +4 -3
- package/core/tokens/m3/mdc/_secondary-navigation-tab.scss +4 -3
- package/core/tokens/m3/mdc/_slider.scss +4 -3
- package/core/tokens/m3/mdc/_snack-bar.scss +3 -3
- package/core/tokens/m3/mdc/_switch.scss +4 -3
- package/core/tokens/m3/mdc/_tab-indicator.scss +5 -4
- package/core/tokens/m3/mdc/_text-button.scss +6 -6
- package/esm2022/autocomplete/autocomplete-origin.mjs +4 -4
- package/esm2022/autocomplete/autocomplete-trigger.mjs +4 -4
- package/esm2022/autocomplete/autocomplete.mjs +4 -4
- package/esm2022/autocomplete/module.mjs +5 -5
- package/esm2022/badge/badge-module.mjs +5 -5
- package/esm2022/badge/badge.mjs +7 -7
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
- package/esm2022/bottom-sheet/bottom-sheet-module.mjs +5 -5
- package/esm2022/bottom-sheet/bottom-sheet.mjs +4 -4
- package/esm2022/button/button-base.mjs +7 -7
- package/esm2022/button/button.mjs +7 -7
- package/esm2022/button/fab.mjs +13 -13
- package/esm2022/button/icon-button.mjs +7 -7
- package/esm2022/button/module.mjs +5 -5
- package/esm2022/button-toggle/button-toggle-module.mjs +5 -5
- package/esm2022/button-toggle/button-toggle.mjs +8 -8
- package/esm2022/card/card.mjs +43 -43
- package/esm2022/card/module.mjs +5 -5
- package/esm2022/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2022/checkbox/checkbox.mjs +4 -4
- package/esm2022/checkbox/module.mjs +9 -9
- package/esm2022/chips/chip-action.mjs +4 -4
- package/esm2022/chips/chip-edit-input.mjs +4 -4
- package/esm2022/chips/chip-grid.mjs +4 -4
- package/esm2022/chips/chip-icons.mjs +10 -10
- package/esm2022/chips/chip-input.mjs +4 -4
- package/esm2022/chips/chip-listbox.mjs +4 -4
- package/esm2022/chips/chip-option.mjs +6 -6
- package/esm2022/chips/chip-row.mjs +7 -7
- package/esm2022/chips/chip-set.mjs +4 -4
- package/esm2022/chips/chip.mjs +6 -27
- package/esm2022/chips/module.mjs +5 -5
- package/esm2022/core/common-behaviors/common-module.mjs +5 -5
- package/esm2022/core/datetime/index.mjs +9 -9
- package/esm2022/core/datetime/native-date-adapter.mjs +4 -4
- package/esm2022/core/error/error-options.mjs +7 -7
- package/esm2022/core/internal-form-field/internal-form-field.mjs +4 -4
- package/esm2022/core/line/line.mjs +8 -8
- package/esm2022/core/option/index.mjs +5 -5
- package/esm2022/core/option/optgroup.mjs +4 -4
- package/esm2022/core/option/option.mjs +4 -4
- package/esm2022/core/private/ripple-loader.mjs +4 -4
- package/esm2022/core/ripple/index.mjs +5 -5
- package/esm2022/core/ripple/ripple.mjs +4 -4
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar-body.mjs +4 -4
- package/esm2022/datepicker/calendar.mjs +7 -7
- package/esm2022/datepicker/date-range-input-parts.mjs +10 -10
- package/esm2022/datepicker/date-range-input.mjs +4 -4
- package/esm2022/datepicker/date-range-picker.mjs +4 -4
- package/esm2022/datepicker/date-range-selection-strategy.mjs +4 -4
- package/esm2022/datepicker/date-selection-model.mjs +10 -10
- package/esm2022/datepicker/datepicker-actions.mjs +10 -10
- package/esm2022/datepicker/datepicker-base.mjs +7 -7
- package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
- package/esm2022/datepicker/datepicker-input.mjs +4 -4
- package/esm2022/datepicker/datepicker-intl.mjs +4 -4
- package/esm2022/datepicker/datepicker-module.mjs +5 -5
- package/esm2022/datepicker/datepicker-toggle.mjs +7 -7
- package/esm2022/datepicker/datepicker.mjs +4 -4
- package/esm2022/datepicker/month-view.mjs +4 -4
- package/esm2022/datepicker/multi-year-view.mjs +4 -4
- package/esm2022/datepicker/year-view.mjs +4 -4
- package/esm2022/dialog/dialog-container.mjs +5 -5
- package/esm2022/dialog/dialog-content-directives.mjs +16 -16
- package/esm2022/dialog/dialog.mjs +4 -4
- package/esm2022/dialog/module.mjs +5 -5
- package/esm2022/divider/divider-module.mjs +5 -5
- package/esm2022/divider/divider.mjs +4 -4
- package/esm2022/expansion/accordion.mjs +4 -4
- package/esm2022/expansion/expansion-module.mjs +5 -5
- package/esm2022/expansion/expansion-panel-content.mjs +4 -4
- package/esm2022/expansion/expansion-panel-header.mjs +10 -10
- package/esm2022/expansion/expansion-panel.mjs +7 -7
- package/esm2022/form-field/directives/error.mjs +4 -4
- package/esm2022/form-field/directives/floating-label.mjs +4 -4
- package/esm2022/form-field/directives/hint.mjs +4 -4
- package/esm2022/form-field/directives/label.mjs +4 -4
- package/esm2022/form-field/directives/line-ripple.mjs +4 -4
- package/esm2022/form-field/directives/notched-outline.mjs +4 -4
- package/esm2022/form-field/directives/prefix.mjs +4 -4
- package/esm2022/form-field/directives/suffix.mjs +4 -4
- package/esm2022/form-field/form-field-control.mjs +4 -4
- package/esm2022/form-field/form-field.mjs +4 -4
- package/esm2022/form-field/module.mjs +5 -5
- package/esm2022/grid-list/grid-list-module.mjs +5 -5
- package/esm2022/grid-list/grid-list.mjs +4 -4
- package/esm2022/grid-list/grid-tile.mjs +16 -16
- package/esm2022/icon/icon-module.mjs +5 -5
- package/esm2022/icon/icon-registry.mjs +4 -4
- package/esm2022/icon/icon.mjs +4 -4
- package/esm2022/icon/testing/fake-icon-registry.mjs +8 -8
- package/esm2022/input/input.mjs +4 -4
- package/esm2022/input/module.mjs +5 -5
- package/esm2022/list/action-list.mjs +4 -4
- package/esm2022/list/list-base.mjs +7 -7
- package/esm2022/list/list-item-sections.mjs +19 -19
- package/esm2022/list/list-module.mjs +5 -5
- package/esm2022/list/list-option.mjs +4 -4
- package/esm2022/list/list.mjs +7 -7
- package/esm2022/list/nav-list.mjs +4 -4
- package/esm2022/list/selection-list.mjs +4 -4
- package/esm2022/list/subheader.mjs +4 -4
- package/esm2022/menu/menu-content.mjs +4 -4
- package/esm2022/menu/menu-item.mjs +4 -4
- package/esm2022/menu/menu-trigger.mjs +4 -4
- package/esm2022/menu/menu.mjs +4 -4
- package/esm2022/menu/module.mjs +5 -5
- package/esm2022/paginator/module.mjs +5 -5
- package/esm2022/paginator/paginator-intl.mjs +4 -4
- package/esm2022/paginator/paginator.mjs +4 -4
- package/esm2022/progress-bar/module.mjs +5 -5
- package/esm2022/progress-bar/progress-bar.mjs +4 -4
- package/esm2022/progress-spinner/module.mjs +5 -5
- package/esm2022/progress-spinner/progress-spinner.mjs +4 -4
- package/esm2022/radio/module.mjs +5 -5
- package/esm2022/radio/radio.mjs +7 -7
- package/esm2022/select/module.mjs +5 -5
- package/esm2022/select/select.mjs +7 -7
- package/esm2022/sidenav/drawer.mjs +10 -10
- package/esm2022/sidenav/sidenav-module.mjs +5 -5
- package/esm2022/sidenav/sidenav.mjs +10 -10
- package/esm2022/slide-toggle/module.mjs +9 -9
- package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +4 -4
- package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
- package/esm2022/slider/module.mjs +5 -5
- package/esm2022/slider/slider-input.mjs +7 -7
- package/esm2022/slider/slider-thumb.mjs +4 -4
- package/esm2022/slider/slider.mjs +4 -4
- package/esm2022/snack-bar/module.mjs +5 -5
- package/esm2022/snack-bar/simple-snack-bar.mjs +4 -4
- package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
- package/esm2022/snack-bar/snack-bar-content.mjs +10 -10
- package/esm2022/snack-bar/snack-bar.mjs +4 -4
- package/esm2022/sort/sort-header-intl.mjs +4 -4
- package/esm2022/sort/sort-header.mjs +4 -4
- package/esm2022/sort/sort-module.mjs +5 -5
- package/esm2022/sort/sort.mjs +4 -4
- package/esm2022/stepper/step-content.mjs +4 -4
- package/esm2022/stepper/step-header.mjs +4 -4
- package/esm2022/stepper/step-label.mjs +4 -4
- package/esm2022/stepper/stepper-button.mjs +7 -7
- package/esm2022/stepper/stepper-icon.mjs +4 -4
- package/esm2022/stepper/stepper-intl.mjs +4 -4
- package/esm2022/stepper/stepper-module.mjs +5 -5
- package/esm2022/stepper/stepper.mjs +7 -7
- package/esm2022/table/cell.mjs +22 -22
- package/esm2022/table/module.mjs +5 -5
- package/esm2022/table/row.mjs +22 -22
- package/esm2022/table/table.mjs +7 -7
- package/esm2022/table/text-column.mjs +4 -4
- package/esm2022/tabs/ink-bar.mjs +4 -4
- package/esm2022/tabs/module.mjs +5 -5
- package/esm2022/tabs/paginated-tab-header.mjs +4 -4
- package/esm2022/tabs/tab-body.mjs +7 -7
- package/esm2022/tabs/tab-content.mjs +4 -4
- package/esm2022/tabs/tab-group.mjs +4 -4
- package/esm2022/tabs/tab-header.mjs +4 -4
- package/esm2022/tabs/tab-label-wrapper.mjs +4 -4
- package/esm2022/tabs/tab-label.mjs +4 -4
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +10 -10
- package/esm2022/tabs/tab.mjs +4 -4
- package/esm2022/toolbar/toolbar-module.mjs +5 -5
- package/esm2022/toolbar/toolbar.mjs +7 -7
- package/esm2022/tooltip/module.mjs +5 -5
- package/esm2022/tooltip/tooltip.mjs +7 -7
- package/esm2022/tree/node.mjs +10 -10
- package/esm2022/tree/outlet.mjs +4 -4
- package/esm2022/tree/padding.mjs +4 -4
- package/esm2022/tree/toggle.mjs +4 -4
- package/esm2022/tree/tree-module.mjs +5 -5
- package/esm2022/tree/tree.mjs +4 -4
- package/fesm2022/autocomplete.mjs +13 -13
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +10 -10
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +10 -10
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +11 -11
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +34 -34
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +14 -14
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +47 -68
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +59 -59
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +82 -82
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +26 -26
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion.mjs +25 -25
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +34 -34
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +22 -22
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +10 -10
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +7 -7
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list.mjs +49 -49
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +16 -16
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +10 -10
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +7 -7
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +7 -7
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +10 -10
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +10 -10
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +22 -22
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +16 -16
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +16 -16
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +22 -22
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +13 -13
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +31 -31
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +55 -55
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +43 -43
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +10 -10
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_mdc-text-field-density-overrides.scss +4 -4
- package/form-field/_mdc-text-field-structure.scss +6 -6
- package/package.json +2 -2
- package/radio/_radio-common.scss +5 -5
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/m3-theme/index_bundled.js +2 -2
- package/schematics/ng-update/index_bundled.js +31 -31
|
@@ -1,58 +1,8 @@
|
|
|
1
1
|
@use 'sass:list';
|
|
2
2
|
@use 'sass:map';
|
|
3
|
-
@use 'sass:meta';
|
|
4
3
|
@use 'sass:string';
|
|
5
|
-
@use 'sass:color';
|
|
6
|
-
@use 'sass:math';
|
|
7
4
|
@use '../style/elevation';
|
|
8
5
|
@use '../style/sass-utils';
|
|
9
|
-
@use '../m2/palette' as m2-palette;
|
|
10
|
-
@use '../m2/theming' as m2-theming;
|
|
11
|
-
@use '../m2/typography' as m2-typography;
|
|
12
|
-
@use './m3/definitions' as m3-token-definitions;
|
|
13
|
-
|
|
14
|
-
// Indicates whether we're building internally. Used for backwards compatibility.
|
|
15
|
-
$private-is-internal-build: false;
|
|
16
|
-
|
|
17
|
-
$_placeholder-color-palette: m2-theming.define-palette(m2-palette.$red-palette);
|
|
18
|
-
|
|
19
|
-
// Placeholder color config that can be passed to token getter functions when generating token
|
|
20
|
-
// slots.
|
|
21
|
-
$placeholder-color-config: (
|
|
22
|
-
primary: $_placeholder-color-palette,
|
|
23
|
-
accent: $_placeholder-color-palette,
|
|
24
|
-
warn: $_placeholder-color-palette,
|
|
25
|
-
is-dark: false,
|
|
26
|
-
foreground: m2-palette.$light-theme-foreground-palette,
|
|
27
|
-
background: m2-palette.$light-theme-background-palette,
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
$_placeholder-typography-level-config: m2-typography.typography-config-level-from-mdc(body1);
|
|
31
|
-
|
|
32
|
-
// Placeholder typography config that can be passed to token getter functions when generating token
|
|
33
|
-
// slots.
|
|
34
|
-
$placeholder-typography-config: (
|
|
35
|
-
font-family: 'Roboto, sans-serif',
|
|
36
|
-
headline-1: $_placeholder-typography-level-config,
|
|
37
|
-
headline-2: $_placeholder-typography-level-config,
|
|
38
|
-
headline-3: $_placeholder-typography-level-config,
|
|
39
|
-
headline-4: $_placeholder-typography-level-config,
|
|
40
|
-
headline-5: $_placeholder-typography-level-config,
|
|
41
|
-
headline-6: $_placeholder-typography-level-config,
|
|
42
|
-
subtitle-1: $_placeholder-typography-level-config,
|
|
43
|
-
subtitle-2: $_placeholder-typography-level-config,
|
|
44
|
-
body-1: $_placeholder-typography-level-config,
|
|
45
|
-
body-2: $_placeholder-typography-level-config,
|
|
46
|
-
caption: $_placeholder-typography-level-config,
|
|
47
|
-
button: $_placeholder-typography-level-config,
|
|
48
|
-
overline: $_placeholder-typography-level-config,
|
|
49
|
-
subheading-1: $_placeholder-typography-level-config,
|
|
50
|
-
title: $_placeholder-typography-level-config,
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
// Placeholder density config that can be passed to token getter functions when generating token
|
|
54
|
-
// slots.
|
|
55
|
-
$placeholder-density-config: 0;
|
|
56
6
|
|
|
57
7
|
$_tokens: null;
|
|
58
8
|
$_component-prefix: null;
|
|
@@ -111,7 +61,7 @@ $_component-prefix: null;
|
|
|
111
61
|
|
|
112
62
|
// Returns the name of a token including the current prefix. Intended to be used in calculations
|
|
113
63
|
// involving tokens. `create-token-slot` should be used when outputting tokens.
|
|
114
|
-
@function get-token-variable($token) {
|
|
64
|
+
@function get-token-variable-name($token) {
|
|
115
65
|
@if $_component-prefix == null or $_tokens == null {
|
|
116
66
|
@error '`get-token-variable` must be used within `use-tokens`';
|
|
117
67
|
}
|
|
@@ -122,10 +72,9 @@ $_component-prefix: null;
|
|
|
122
72
|
@return _get-css-variable($_component-prefix, $token);
|
|
123
73
|
}
|
|
124
74
|
|
|
125
|
-
// TODO(crisbeto): should be able to replace the usages of `get-token-variable` with this.
|
|
126
75
|
// Returns a `var()` reference to a specific token. Intended for declarations
|
|
127
76
|
// where the token has to be referenced as a part of a larger expression.
|
|
128
|
-
@function get-token-variable
|
|
77
|
+
@function get-token-variable($token, $use-tokens-fallback: false, $fallback: null) {
|
|
129
78
|
@if $_component-prefix == null or $_tokens == null {
|
|
130
79
|
@error '`get-token-variable-reference` must be used within `use-tokens`';
|
|
131
80
|
}
|
|
@@ -133,8 +82,11 @@ $_component-prefix: null;
|
|
|
133
82
|
@error 'Token #{$token} does not exist. Configured tokens are: #{map.keys($_tokens)}';
|
|
134
83
|
}
|
|
135
84
|
|
|
136
|
-
$var: get-token-variable($token);
|
|
137
|
-
|
|
85
|
+
$var: get-token-variable-name($token);
|
|
86
|
+
|
|
87
|
+
@if ($use-tokens-fallback) {
|
|
88
|
+
$fallback: map.get($_tokens, $token);
|
|
89
|
+
}
|
|
138
90
|
|
|
139
91
|
@if ($fallback != null) {
|
|
140
92
|
@return var($var, $fallback);
|
|
@@ -155,18 +107,6 @@ $_component-prefix: null;
|
|
|
155
107
|
}
|
|
156
108
|
}
|
|
157
109
|
|
|
158
|
-
/// Gets all the MDC token values for a specific component. This function serves as single
|
|
159
|
-
/// point at which we directly reference a specific version of the MDC tokens.
|
|
160
|
-
/// @param {String} $component Name of the component for which to get the tokens
|
|
161
|
-
/// @param {Map} $systems The MDC system tokens
|
|
162
|
-
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
163
|
-
/// @return {List} Map of token names to values
|
|
164
|
-
@function get-mdc-tokens($component, $systems, $exclude-hardcoded) {
|
|
165
|
-
$full-name: 'md-comp-' + $component + '-values';
|
|
166
|
-
$fn: meta.get-function($name: $full-name, $module: 'm3-token-definitions');
|
|
167
|
-
@return meta.call($fn, $systems, $exclude-hardcoded);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
110
|
// MDC doesn't currently handle elevation tokens properly. As a temporary workaround we can combine
|
|
171
111
|
// the elevation and shadow-color tokens into a full box-shadow and use it as the value for the
|
|
172
112
|
// elevation token.
|
|
@@ -260,176 +200,6 @@ $_component-prefix: null;
|
|
|
260
200
|
}
|
|
261
201
|
}
|
|
262
202
|
|
|
263
|
-
/// Gets the MDC tokens for the given prefix, M3 token values, and supported token slots.
|
|
264
|
-
/// @param {List} $prefix The token prefix for the given tokens.
|
|
265
|
-
/// @param {Map|(Map, Map)} $values A map of M3 token values for the given prefix.
|
|
266
|
-
/// This param may also be a tuple of maps, the first one representing the default M3 token values,
|
|
267
|
-
// and the second containing overrides for different color variants.
|
|
268
|
-
// Single map example:
|
|
269
|
-
// (token1: green, token2: 2px)
|
|
270
|
-
// Tuple example:
|
|
271
|
-
// (
|
|
272
|
-
// (token1: green, token2: 2px),
|
|
273
|
-
// (
|
|
274
|
-
// secondary: (token1: blue),
|
|
275
|
-
// error: (token1: red),
|
|
276
|
-
// )
|
|
277
|
-
// )
|
|
278
|
-
/// @param {Map} $slots A map of token slots, with null value indicating the token is not supported.
|
|
279
|
-
/// @param {String|null} $variant The name of the variant the token values are for.
|
|
280
|
-
/// @return {Map} A map of fully qualified token names to values, for only the supported tokens.
|
|
281
|
-
@function namespace-tokens($prefix, $values, $slots, $variant: null) {
|
|
282
|
-
$result: ();
|
|
283
|
-
@if $variant == null and meta.type-of($values) == 'list' and list.length($values == 2) {
|
|
284
|
-
$variants: list.nth($values, 2);
|
|
285
|
-
$values: list.nth($values, 1);
|
|
286
|
-
@each $variant, $overrides in $variants {
|
|
287
|
-
$result: map.merge($result, namespace-tokens($prefix, $overrides, $slots, $variant));
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
$used-token-names: map.keys(_filter-nulls(map.get($slots, $prefix)));
|
|
291
|
-
$used-m3-tokens: _pick(_filter-nulls($values), $used-token-names);
|
|
292
|
-
$prefix: if($variant == null, $prefix, list.append($prefix, $variant));
|
|
293
|
-
@return map.merge($result, ($prefix: $used-m3-tokens));
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/// Hardcode the given value, or null if hardcoded values are excluded.
|
|
297
|
-
@function hardcode($value, $exclude-hardcoded) {
|
|
298
|
-
@return if($exclude-hardcoded, null, $value);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/// Sets all of the standard typography tokens for the given token base name to the given typography
|
|
302
|
-
/// level.
|
|
303
|
-
/// @param {Map} $systems The MDC system tokens
|
|
304
|
-
/// @param {String} $base-name The token base name to get the typography tokens for
|
|
305
|
-
/// @param {String} $typography-level The typography level to base the token values on
|
|
306
|
-
/// @return {Map} A map containing the typography tokens for the given base token name
|
|
307
|
-
@function generate-typography-tokens($systems, $base-name, $typography-level) {
|
|
308
|
-
$result: ();
|
|
309
|
-
@each $prop in (font, line-height, size, tracking, weight) {
|
|
310
|
-
$result: map.set($result, #{$base-name}-#{$prop},
|
|
311
|
-
map.get($systems, md-sys-typescale, #{$typography-level}-#{$prop}));
|
|
312
|
-
}
|
|
313
|
-
@return $result;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/// Maps the values in a map to new values using the given mapping function
|
|
317
|
-
/// @param {Map} $map The maps whose values will be mapped to new values.
|
|
318
|
-
/// @param {Function} $fn The value mapping function.
|
|
319
|
-
/// @param {Map} A new map with its values updated using the mapping function.
|
|
320
|
-
@function map-values($map, $fn) {
|
|
321
|
-
$result: ();
|
|
322
|
-
@each $key, $value in $map {
|
|
323
|
-
$result: map.set($result, $key, meta.call($fn, $value));
|
|
324
|
-
}
|
|
325
|
-
@return $result;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/// Renames the keys in a map
|
|
329
|
-
/// @param {Map} $map The map whose keys should be renamed
|
|
330
|
-
/// @param {Map} $rename-keys A map of original key to renamed key to apply to $map
|
|
331
|
-
/// @return {Map} The result of applying the given key renames to the given map.
|
|
332
|
-
@function rename-map-keys($map, $rename-keys) {
|
|
333
|
-
$result: $map;
|
|
334
|
-
@each $old-key-name, $new-key-name in $rename-keys {
|
|
335
|
-
@if map.has-key($map, $old-key-name) {
|
|
336
|
-
$result: map.set($result, $new-key-name, map.get($map, $old-key-name));
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
@return $result;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/// At the time of writing, some color tokens (e.g. disabled state) are defined as a solid color
|
|
343
|
-
/// token and a separate opacity token. This function applies the opacity to the color and drops the
|
|
344
|
-
/// opacity key from the map. Can be removed once b/213331407 is resolved.
|
|
345
|
-
/// @param {Map} $tokens The map of tokens currently being generated
|
|
346
|
-
/// @param {Map} $all-tokens A map of all tokens, including hardcoded values
|
|
347
|
-
/// @param {List} $pairs Pairs of color token names and their opacities. Should be in the shape of
|
|
348
|
-
/// `((color: 'color-key', opacity: 'opacity-key'))`.
|
|
349
|
-
/// @return {Map} The initial tokens with the combined color values.
|
|
350
|
-
@function combine-color-tokens($tokens, $opacity-lookup, $pairs) {
|
|
351
|
-
$result: $tokens;
|
|
352
|
-
|
|
353
|
-
@each $pair in $pairs {
|
|
354
|
-
$color-key: map.get($pair, color);
|
|
355
|
-
$opacity-key: map.get($pair, opacity);
|
|
356
|
-
$color: map.get($tokens, $color-key);
|
|
357
|
-
$opacity: map.get($opacity-lookup, $opacity-key);
|
|
358
|
-
|
|
359
|
-
@if(meta.type-of($color) == 'color') {
|
|
360
|
-
$result: map.remove($result, $opacity-key);
|
|
361
|
-
$result: map.set($result, $color-key, rgba($color, $opacity));
|
|
362
|
-
}
|
|
363
|
-
@else if($color != null) {
|
|
364
|
-
$result: map.remove($result, $opacity-key);
|
|
365
|
-
$combined-color: #{color-mix(in srgb, #{$color} #{($opacity * 100) + '%'}, transparent)};
|
|
366
|
-
$result: map.set($result, $color-key, $combined-color);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
@return $result;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/// Inherited function from MDC that computes which contrast tone to use on top of a color.
|
|
374
|
-
/// This is used only in a narrow set of use cases when generating M2 button tokens to maintain
|
|
375
|
-
/// backwards compatibility.
|
|
376
|
-
/// @param {Color} $value Color for which we're calculating the contrast tone.
|
|
377
|
-
/// @param {Boolean} $is-dark Whether the current theme is dark.
|
|
378
|
-
/// @return {Map} Either `dark` or `light`.
|
|
379
|
-
@function contrast-tone($value, $is-dark) {
|
|
380
|
-
@if ($value == 'dark') {
|
|
381
|
-
@return 'light';
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
@if ($value == 'light') {
|
|
385
|
-
@return 'dark';
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
// Fallback if the app is using a non-color palette (e.g. CSS variable based).
|
|
389
|
-
@if (meta.type-of($value) != 'color') {
|
|
390
|
-
@return if($is-dark, 'light', 'dark');
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
$minimum-contrast: 3.1;
|
|
394
|
-
$light-contrast: _contrast($value, #fff);
|
|
395
|
-
$dark-contrast: _contrast($value, rgba(0, 0, 0, 0.87));
|
|
396
|
-
|
|
397
|
-
@if ($light-contrast < $minimum-contrast) and ($dark-contrast > $light-contrast) {
|
|
398
|
-
@return 'dark';
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
@return 'light';
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
@function _linear-channel-value($channel-value) {
|
|
405
|
-
$normalized-channel-value: math.div($channel-value, 255);
|
|
406
|
-
|
|
407
|
-
@if ($normalized-channel-value < 0.03928) {
|
|
408
|
-
@return math.div($normalized-channel-value, 12.92);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
@return math.pow(math.div($normalized-channel-value + 0.055, 1.055), 2.4);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
// Calculate the luminance for a color.
|
|
415
|
-
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
416
|
-
@function _luminance($color) {
|
|
417
|
-
$red: _linear-channel-value(color.red($color));
|
|
418
|
-
$green: _linear-channel-value(color.green($color));
|
|
419
|
-
$blue: _linear-channel-value(color.blue($color));
|
|
420
|
-
|
|
421
|
-
@return 0.2126 * $red + 0.7152 * $green + 0.0722 * $blue;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
// Calculate the contrast ratio between two colors.
|
|
425
|
-
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
426
|
-
@function _contrast($back, $front) {
|
|
427
|
-
$back-lum: _luminance($back) + 0.05;
|
|
428
|
-
$fore-lum: _luminance($front) + 0.05;
|
|
429
|
-
|
|
430
|
-
@return math.div(math.max($back-lum, $fore-lum), math.min($back-lum, $fore-lum));
|
|
431
|
-
}
|
|
432
|
-
|
|
433
203
|
/// Verifies that the token overrides exist and are used in one of the given token maps.
|
|
434
204
|
@mixin _validate-token-overrides($overrides: (), $token-maps) {
|
|
435
205
|
$valid-token-names: ();
|
|
@@ -451,31 +221,3 @@ $_component-prefix: null;
|
|
|
451
221
|
}
|
|
452
222
|
}
|
|
453
223
|
}
|
|
454
|
-
|
|
455
|
-
/// Picks a submap containing only the given keys out the given map.
|
|
456
|
-
/// @param {Map} $map The map to pick from.
|
|
457
|
-
/// @param {List} $keys The map keys to pick.
|
|
458
|
-
/// @return {Map} A submap containing only the given keys.
|
|
459
|
-
@function _pick($map, $keys) {
|
|
460
|
-
$result: ();
|
|
461
|
-
@each $key in $keys {
|
|
462
|
-
@if map.has-key($map, $key) {
|
|
463
|
-
$result: map.set($result, $key, map.get($map, $key));
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
@return $result;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
/// Filters keys with a null value out of the map.
|
|
471
|
-
/// @param {Map} $map The map to filter.
|
|
472
|
-
/// @return {Map} The given map with all of the null keys filtered out.
|
|
473
|
-
@function _filter-nulls($map) {
|
|
474
|
-
$result: ();
|
|
475
|
-
@each $key, $val in $map {
|
|
476
|
-
@if $val != null {
|
|
477
|
-
$result: map.set($result, $key, $val);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
@return $result;
|
|
481
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
@use '../../../theming/inspection';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
5
5
|
@use '../../../style/elevation';
|
|
@@ -45,8 +45,8 @@ $prefix: (mat, app);
|
|
|
45
45
|
@function get-token-slots() {
|
|
46
46
|
@return sass-utils.deep-merge-all(
|
|
47
47
|
get-unthemable-tokens(),
|
|
48
|
-
get-color-tokens(token-
|
|
49
|
-
get-typography-tokens(token-
|
|
50
|
-
get-density-tokens(token-
|
|
48
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
49
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
50
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
51
51
|
);
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../token-
|
|
1
|
+
@use '../../token-definition';
|
|
2
2
|
@use '../../../theming/inspection';
|
|
3
3
|
@use '../../../style/elevation';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
@@ -37,8 +37,8 @@ $prefix: (mat, autocomplete);
|
|
|
37
37
|
@function get-token-slots() {
|
|
38
38
|
@return sass-utils.deep-merge-all(
|
|
39
39
|
get-unthemable-tokens(),
|
|
40
|
-
get-color-tokens(token-
|
|
41
|
-
get-typography-tokens(token-
|
|
42
|
-
get-density-tokens(token-
|
|
40
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
41
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
42
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
43
43
|
);
|
|
44
44
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'sass:math';
|
|
4
4
|
@use 'sass:color';
|
|
5
|
-
@use '../../token-
|
|
5
|
+
@use '../../token-definition';
|
|
6
6
|
@use '../../../theming/inspection';
|
|
7
7
|
@use '../../../style/sass-utils';
|
|
8
8
|
|
|
@@ -94,8 +94,8 @@ $prefix: (mat, badge);
|
|
|
94
94
|
@function get-token-slots() {
|
|
95
95
|
@return sass-utils.deep-merge-all(
|
|
96
96
|
get-unthemable-tokens(),
|
|
97
|
-
get-color-tokens(token-
|
|
98
|
-
get-typography-tokens(token-
|
|
99
|
-
get-density-tokens(token-
|
|
97
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
98
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
99
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
100
100
|
);
|
|
101
101
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../token-
|
|
1
|
+
@use '../../token-definition';
|
|
2
2
|
@use '../../../theming/inspection';
|
|
3
3
|
@use '../../../style/sass-utils';
|
|
4
4
|
|
|
@@ -43,8 +43,8 @@ $prefix: (mat, bottom-sheet);
|
|
|
43
43
|
@function get-token-slots() {
|
|
44
44
|
@return sass-utils.deep-merge-all(
|
|
45
45
|
get-unthemable-tokens(),
|
|
46
|
-
get-color-tokens(token-
|
|
47
|
-
get-typography-tokens(token-
|
|
48
|
-
get-density-tokens(token-
|
|
46
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
47
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
48
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
49
49
|
);
|
|
50
50
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../token-
|
|
1
|
+
@use '../../token-definition';
|
|
2
2
|
@use '../../../theming/inspection';
|
|
3
3
|
@use '../../../style/sass-utils';
|
|
4
4
|
|
|
@@ -55,8 +55,8 @@ $prefix: (mat, card);
|
|
|
55
55
|
@function get-token-slots() {
|
|
56
56
|
@return sass-utils.deep-merge-all(
|
|
57
57
|
get-unthemable-tokens(),
|
|
58
|
-
get-color-tokens(token-
|
|
59
|
-
get-typography-tokens(token-
|
|
60
|
-
get-density-tokens(token-
|
|
58
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
59
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
60
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
61
61
|
);
|
|
62
62
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../token-
|
|
1
|
+
@use '../../token-definition';
|
|
2
2
|
@use '../../../theming/theming';
|
|
3
3
|
@use '../../../theming/inspection';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
@@ -43,8 +43,8 @@ $prefix: (mat, checkbox);
|
|
|
43
43
|
@function get-token-slots() {
|
|
44
44
|
@return sass-utils.deep-merge-all(
|
|
45
45
|
get-unthemable-tokens(),
|
|
46
|
-
get-color-tokens(token-
|
|
47
|
-
get-typography-tokens(token-
|
|
48
|
-
get-density-tokens(token-
|
|
46
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
47
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
48
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
49
49
|
);
|
|
50
50
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
@use '../../../theming/inspection';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
5
5
|
@use '../../../m2/palette' as m2-palette;
|
|
@@ -56,8 +56,8 @@ $prefix: (mat, chip);
|
|
|
56
56
|
@function get-token-slots() {
|
|
57
57
|
@return sass-utils.deep-merge-all(
|
|
58
58
|
get-unthemable-tokens(),
|
|
59
|
-
get-color-tokens(token-
|
|
60
|
-
get-typography-tokens(token-
|
|
61
|
-
get-density-tokens(token-
|
|
59
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
60
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
61
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
62
62
|
);
|
|
63
63
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
@use 'sass:meta';
|
|
3
3
|
@use 'sass:math';
|
|
4
|
-
@use '../../token-
|
|
4
|
+
@use '../../token-definition';
|
|
5
5
|
@use '../../../theming/inspection';
|
|
6
6
|
@use '../../../style/elevation';
|
|
7
7
|
@use '../../../style/sass-utils';
|
|
@@ -175,8 +175,8 @@ $private-default-overlap-color: #a8dab5;
|
|
|
175
175
|
@function get-token-slots() {
|
|
176
176
|
@return sass-utils.deep-merge-all(
|
|
177
177
|
get-unthemable-tokens(),
|
|
178
|
-
get-color-tokens(token-
|
|
179
|
-
get-typography-tokens(token-
|
|
180
|
-
get-density-tokens(token-
|
|
178
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
179
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
180
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
181
181
|
);
|
|
182
182
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../token-
|
|
1
|
+
@use '../../token-definition';
|
|
2
2
|
@use '../../../style/elevation';
|
|
3
3
|
@use '../../../style/sass-utils';
|
|
4
4
|
|
|
@@ -44,8 +44,8 @@ $prefix: (mat, dialog);
|
|
|
44
44
|
@function get-token-slots() {
|
|
45
45
|
@return sass-utils.deep-merge-all(
|
|
46
46
|
get-unthemable-tokens(),
|
|
47
|
-
get-color-tokens(token-
|
|
48
|
-
get-typography-tokens(token-
|
|
49
|
-
get-density-tokens(token-
|
|
47
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
48
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
49
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
50
50
|
);
|
|
51
51
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../token-
|
|
1
|
+
@use '../../token-definition';
|
|
2
2
|
@use '../../../theming/inspection';
|
|
3
3
|
@use '../../../style/sass-utils';
|
|
4
4
|
|
|
@@ -35,8 +35,8 @@ $prefix: (mat, divider);
|
|
|
35
35
|
@function get-token-slots() {
|
|
36
36
|
@return sass-utils.deep-merge-all(
|
|
37
37
|
get-unthemable-tokens(),
|
|
38
|
-
get-color-tokens(token-
|
|
39
|
-
get-typography-tokens(token-
|
|
40
|
-
get-density-tokens(token-
|
|
38
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
39
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
40
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
@use '../../../theming/theming';
|
|
4
4
|
@use '../../../theming/inspection';
|
|
5
5
|
@use '../../../style/sass-utils';
|
|
@@ -81,8 +81,8 @@ $prefix: (mat, expansion);
|
|
|
81
81
|
@function get-token-slots() {
|
|
82
82
|
@return sass-utils.deep-merge-all(
|
|
83
83
|
get-unthemable-tokens(),
|
|
84
|
-
get-color-tokens(token-
|
|
85
|
-
get-typography-tokens(token-
|
|
86
|
-
get-density-tokens(token-
|
|
84
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
85
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
86
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
87
87
|
);
|
|
88
88
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
@use '../../../theming/theming';
|
|
4
4
|
@use '../../../theming/inspection';
|
|
5
5
|
@use '../../../style/sass-utils';
|
|
@@ -59,10 +59,11 @@ $prefix: (mat, fab-small);
|
|
|
59
59
|
$ripple-color: null;
|
|
60
60
|
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
61
61
|
|
|
62
|
-
@if (token-
|
|
62
|
+
@if (token-definition.$private-is-internal-build or
|
|
63
|
+
meta.type-of($contrast-color) != 'color') {
|
|
63
64
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
64
65
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
65
|
-
$contrast-tone: token-
|
|
66
|
+
$contrast-tone: token-definition.contrast-tone($container-color, $is-dark);
|
|
66
67
|
$color: if($contrast-tone == 'dark', #000, #fff);
|
|
67
68
|
$foreground-color: $color;
|
|
68
69
|
$state-layer-color: $color;
|
|
@@ -100,8 +101,8 @@ $prefix: (mat, fab-small);
|
|
|
100
101
|
@function get-token-slots() {
|
|
101
102
|
@return sass-utils.deep-merge-all(
|
|
102
103
|
get-unthemable-tokens(),
|
|
103
|
-
get-color-tokens(token-
|
|
104
|
-
get-typography-tokens(token-
|
|
105
|
-
get-density-tokens(token-
|
|
104
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
105
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
106
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
106
107
|
);
|
|
107
108
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
@use '../../../theming/theming';
|
|
4
4
|
@use '../../../theming/inspection';
|
|
5
5
|
@use '../../../style/sass-utils';
|
|
@@ -59,10 +59,11 @@ $prefix: (mat, fab);
|
|
|
59
59
|
$ripple-color: null;
|
|
60
60
|
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
61
61
|
|
|
62
|
-
@if (token-
|
|
62
|
+
@if (token-definition.$private-is-internal-build or
|
|
63
|
+
meta.type-of($contrast-color) != 'color') {
|
|
63
64
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
64
65
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
65
|
-
$contrast-tone: token-
|
|
66
|
+
$contrast-tone: token-definition.contrast-tone($container-color, $is-dark);
|
|
66
67
|
$color: if($contrast-tone == 'dark', #000, #fff);
|
|
67
68
|
$foreground-color: $color;
|
|
68
69
|
$state-layer-color: $color;
|
|
@@ -100,8 +101,8 @@ $prefix: (mat, fab);
|
|
|
100
101
|
@function get-token-slots() {
|
|
101
102
|
@return sass-utils.deep-merge-all(
|
|
102
103
|
get-unthemable-tokens(),
|
|
103
|
-
get-color-tokens(token-
|
|
104
|
-
get-typography-tokens(token-
|
|
105
|
-
get-density-tokens(token-
|
|
104
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
105
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
106
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
106
107
|
);
|
|
107
108
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
@use '../../../theming/theming';
|
|
4
4
|
@use '../../../theming/inspection';
|
|
5
5
|
@use '../../../style/sass-utils';
|
|
@@ -56,10 +56,11 @@ $prefix: (mat, filled-button);
|
|
|
56
56
|
|
|
57
57
|
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
|
|
58
58
|
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
|
|
59
|
-
@if (token-
|
|
59
|
+
@if (token-definition.$private-is-internal-build or
|
|
60
|
+
meta.type-of($contrast-color) != 'color') {
|
|
60
61
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
61
62
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
62
|
-
$contrast-tone: token-
|
|
63
|
+
$contrast-tone: token-definition.contrast-tone($container-color, $is-dark);
|
|
63
64
|
$color: if($contrast-tone == 'dark', #000, #fff);
|
|
64
65
|
$state-layer-color: $color;
|
|
65
66
|
$ripple-color: rgba($color, 0.1);
|
|
@@ -94,8 +95,8 @@ $prefix: (mat, filled-button);
|
|
|
94
95
|
@function get-token-slots() {
|
|
95
96
|
@return sass-utils.deep-merge-all(
|
|
96
97
|
get-unthemable-tokens(),
|
|
97
|
-
get-color-tokens(token-
|
|
98
|
-
get-typography-tokens(token-
|
|
99
|
-
get-density-tokens(token-
|
|
98
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
99
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
100
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
100
101
|
);
|
|
101
102
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
@use 'sass:map';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
5
5
|
@use '../../../theming/theming';
|
|
6
6
|
@use '../../../theming/inspection';
|
|
@@ -158,8 +158,8 @@ $prefix: (mat, form-field);
|
|
|
158
158
|
@function get-token-slots() {
|
|
159
159
|
@return sass-utils.deep-merge-all(
|
|
160
160
|
get-unthemable-tokens(),
|
|
161
|
-
get-color-tokens(token-
|
|
162
|
-
get-typography-tokens(token-
|
|
163
|
-
get-density-tokens(token-
|
|
161
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
162
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
163
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
164
164
|
);
|
|
165
165
|
}
|