@angular/material 18.2.0-next.2 → 18.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +3 -1
- package/button/_button-base.scss +5 -5
- package/button-toggle/index.d.ts +14 -2
- package/checkbox/_checkbox-common.scss +25 -11
- package/chips/index.d.ts +3 -8
- package/core/ripple/_ripple.scss +1 -1
- package/core/style/_elevation.scss +5 -0
- package/core/style/_sass-utils.scss +20 -2
- package/core/theming/_definition.scss +2 -0
- package/core/tokens/_m3-tokens.scss +106 -10
- package/core/tokens/_token-definition.scss +272 -0
- package/core/tokens/_token-utils.scss +68 -302
- 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 +6 -3
- 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 +16 -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 +5 -5
- package/esm2022/autocomplete/module.mjs +5 -5
- package/esm2022/badge/badge-module.mjs +5 -5
- package/esm2022/badge/badge.mjs +8 -8
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +5 -5
- 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 +9 -9
- package/esm2022/button/fab.mjs +17 -17
- package/esm2022/button/icon-button.mjs +9 -9
- package/esm2022/button/module.mjs +5 -5
- package/esm2022/button-toggle/button-toggle-module.mjs +5 -5
- package/esm2022/button-toggle/button-toggle.mjs +37 -8
- package/esm2022/button-toggle/testing/button-toggle-harness.mjs +3 -3
- package/esm2022/card/card.mjs +44 -44
- package/esm2022/card/module.mjs +5 -5
- package/esm2022/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2022/checkbox/checkbox.mjs +6 -6
- 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 +7 -28
- 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 +5 -5
- package/esm2022/core/option/option.mjs +5 -5
- 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 +5 -5
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar-body.mjs +5 -5
- package/esm2022/datepicker/calendar.mjs +8 -8
- package/esm2022/datepicker/date-range-input-parts.mjs +10 -10
- package/esm2022/datepicker/date-range-input.mjs +6 -6
- 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 +8 -8
- 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 +8 -8
- 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 +5 -5
- 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 +11 -11
- package/esm2022/expansion/expansion-panel.mjs +9 -9
- 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 +6 -6
- 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 +6 -6
- package/esm2022/grid-list/grid-tile.mjs +17 -17
- 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 +5 -5
- 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 +6 -6
- package/esm2022/list/list.mjs +8 -8
- package/esm2022/list/nav-list.mjs +5 -5
- package/esm2022/list/selection-list.mjs +6 -6
- 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 +5 -5
- 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 +5 -5
- package/esm2022/progress-bar/module.mjs +5 -5
- package/esm2022/progress-bar/progress-bar.mjs +5 -5
- package/esm2022/progress-spinner/module.mjs +5 -5
- package/esm2022/progress-spinner/progress-spinner.mjs +5 -5
- package/esm2022/radio/module.mjs +5 -5
- package/esm2022/radio/radio.mjs +62 -24
- package/esm2022/select/module.mjs +5 -5
- package/esm2022/select/select.mjs +9 -9
- package/esm2022/sidenav/drawer.mjs +13 -13
- package/esm2022/sidenav/sidenav-module.mjs +5 -5
- package/esm2022/sidenav/sidenav.mjs +12 -12
- package/esm2022/slide-toggle/module.mjs +9 -9
- package/esm2022/slide-toggle/slide-toggle-config.mjs +2 -2
- package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +4 -4
- package/esm2022/slide-toggle/slide-toggle.mjs +17 -11
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +8 -8
- 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 +9 -9
- 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 +6 -6
- package/esm2022/tabs/tab-header.mjs +5 -5
- 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 +12 -12
- package/esm2022/tabs/tab.mjs +4 -4
- package/esm2022/toolbar/toolbar-module.mjs +5 -5
- package/esm2022/toolbar/toolbar.mjs +8 -8
- package/esm2022/tooltip/module.mjs +5 -5
- package/esm2022/tooltip/tooltip.mjs +41 -25
- 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 +5 -5
- package/fesm2022/autocomplete.mjs +14 -14
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +11 -11
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +11 -11
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs +2 -2
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +40 -11
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +42 -42
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +47 -47
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +16 -16
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +48 -69
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +62 -62
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +88 -88
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +26 -26
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +8 -8
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion.mjs +28 -28
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +36 -36
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +25 -25
- 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 +56 -56
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +17 -17
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +11 -11
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +8 -8
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +8 -8
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +65 -27
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +12 -12
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +27 -27
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +28 -22
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +17 -17
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +23 -23
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +14 -14
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +33 -33
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +57 -57
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +48 -48
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +11 -11
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +44 -28
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +26 -26
- 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/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/radio/_radio-common.scss +26 -8
- package/radio/index.d.ts +19 -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
- package/slide-toggle/index.d.ts +6 -1
- package/tooltip/index.d.ts +3 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, minimal-pseudo-checkbox);
|
|
@@ -29,5 +29,5 @@ $prefix: (mat, minimal-pseudo-checkbox);
|
|
|
29
29
|
)
|
|
30
30
|
));
|
|
31
31
|
|
|
32
|
-
@return token-
|
|
32
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
33
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, optgroup);
|
|
@@ -12,11 +12,11 @@ $prefix: (mat, optgroup);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-optgroup
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: sass-utils.merge-all(
|
|
15
|
-
token-
|
|
15
|
+
token-definition.generate-typography-tokens($systems, label-text, title-small),
|
|
16
16
|
(
|
|
17
17
|
label-text-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
18
18
|
)
|
|
19
19
|
);
|
|
20
20
|
|
|
21
|
-
@return token-
|
|
21
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, option);
|
|
@@ -51,5 +51,5 @@ $prefix: (mat, option);
|
|
|
51
51
|
)
|
|
52
52
|
));
|
|
53
53
|
|
|
54
|
-
@return token-
|
|
54
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
55
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, outlined-button);
|
|
@@ -12,9 +12,9 @@ $prefix: (mat, outlined-button);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-outlined-button
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: ((
|
|
15
|
-
horizontal-padding: token-
|
|
16
|
-
icon-spacing: token-
|
|
17
|
-
icon-offset: token-
|
|
15
|
+
horizontal-padding: token-definition.hardcode(24px, $exclude-hardcoded),
|
|
16
|
+
icon-spacing: token-definition.hardcode(8px, $exclude-hardcoded),
|
|
17
|
+
icon-offset: token-definition.hardcode(-8px, $exclude-hardcoded),
|
|
18
18
|
state-layer-color: map.get($systems, md-sys-color, primary),
|
|
19
19
|
disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
20
20
|
ripple-color: sass-utils.safe-color-change(
|
|
@@ -50,5 +50,5 @@ $prefix: (mat, outlined-button);
|
|
|
50
50
|
)
|
|
51
51
|
));
|
|
52
52
|
|
|
53
|
-
@return token-
|
|
53
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
54
54
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, paginator);
|
|
@@ -12,7 +12,7 @@ $prefix: (mat, paginator);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-paginator
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: sass-utils.merge-all(
|
|
15
|
-
token-
|
|
15
|
+
token-definition.generate-typography-tokens($systems, container-text, body-small),
|
|
16
16
|
(
|
|
17
17
|
container-text-color: map.get($systems, md-sys-color, on-surface),
|
|
18
18
|
container-background-color: map.get($systems, md-sys-color, surface),
|
|
@@ -23,5 +23,5 @@ $prefix: (mat, paginator);
|
|
|
23
23
|
)
|
|
24
24
|
);
|
|
25
25
|
|
|
26
|
-
@return token-
|
|
26
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
// Note: in M3 the "protected" button is called "elevated".
|
|
@@ -13,9 +13,9 @@ $prefix: (mat, protected-button);
|
|
|
13
13
|
/// @return {Map} A set of custom tokens for the mat-raised-button
|
|
14
14
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
15
15
|
$tokens: ((
|
|
16
|
-
horizontal-padding: token-
|
|
17
|
-
icon-spacing: token-
|
|
18
|
-
icon-offset: token-
|
|
16
|
+
horizontal-padding: token-definition.hardcode(24px, $exclude-hardcoded),
|
|
17
|
+
icon-spacing: token-definition.hardcode(8px, $exclude-hardcoded),
|
|
18
|
+
icon-offset: token-definition.hardcode(-8px, $exclude-hardcoded),
|
|
19
19
|
state-layer-color: map.get($systems, md-sys-color, primary),
|
|
20
20
|
disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
21
21
|
ripple-color: sass-utils.safe-color-change(
|
|
@@ -51,5 +51,5 @@ $prefix: (mat, protected-button);
|
|
|
51
51
|
)
|
|
52
52
|
));
|
|
53
53
|
|
|
54
|
-
@return token-
|
|
54
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
55
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, radio);
|
|
@@ -41,5 +41,5 @@ $prefix: (mat, radio);
|
|
|
41
41
|
)
|
|
42
42
|
);
|
|
43
43
|
|
|
44
|
-
@return token-
|
|
44
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
45
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, ripple);
|
|
@@ -15,5 +15,5 @@ $prefix: (mat, ripple);
|
|
|
15
15
|
color: sass-utils.safe-color-change(map.get($systems, md-sys-color, on-surface), $alpha: 0.1),
|
|
16
16
|
);
|
|
17
17
|
|
|
18
|
-
@return token-
|
|
18
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
19
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
3
|
@use '../../../style/elevation';
|
|
4
|
-
@use '../../token-
|
|
4
|
+
@use '../../token-definition';
|
|
5
5
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
7
|
$prefix: (mat, select);
|
|
@@ -13,7 +13,7 @@ $prefix: (mat, select);
|
|
|
13
13
|
/// @return {Map} A set of custom tokens for the mat-select
|
|
14
14
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
15
15
|
$tokens: sass-utils.merge-all(
|
|
16
|
-
token-
|
|
16
|
+
token-definition.generate-typography-tokens($systems, trigger-text, body-large),
|
|
17
17
|
(
|
|
18
18
|
panel-background-color: map.get($systems, md-sys-color, surface-container),
|
|
19
19
|
enabled-trigger-text-color: map.get($systems, md-sys-color, on-surface),
|
|
@@ -26,7 +26,7 @@ $prefix: (mat, select);
|
|
|
26
26
|
focused-arrow-color: map.get($systems, md-sys-color, primary),
|
|
27
27
|
invalid-arrow-color: map.get($systems, md-sys-color, error),
|
|
28
28
|
container-elevation-shadow:
|
|
29
|
-
token-
|
|
29
|
+
token-definition.hardcode(elevation.get-box-shadow(2), $exclude-hardcoded),
|
|
30
30
|
)
|
|
31
31
|
), (
|
|
32
32
|
// Color variants:
|
|
@@ -42,5 +42,5 @@ $prefix: (mat, select);
|
|
|
42
42
|
)
|
|
43
43
|
);
|
|
44
44
|
|
|
45
|
-
@return token-
|
|
45
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
46
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, sidenav);
|
|
@@ -12,17 +12,18 @@ $prefix: (mat, sidenav);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-sidenav
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: (
|
|
15
|
-
container-elevation-shadow: token-
|
|
16
|
-
container-divider-color: token-
|
|
17
|
-
container-width: token-
|
|
15
|
+
container-elevation-shadow: token-definition.hardcode(none, $exclude-hardcoded),
|
|
16
|
+
container-divider-color: token-definition.hardcode(transparent, $exclude-hardcoded),
|
|
17
|
+
container-width: token-definition.hardcode(360px, $exclude-hardcoded),
|
|
18
18
|
container-shape: map.get($systems, md-sys-shape, corner-large),
|
|
19
19
|
container-background-color: map.get($systems, md-sys-color, surface),
|
|
20
20
|
container-text-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
21
21
|
content-background-color: map.get($systems, md-sys-color, background),
|
|
22
22
|
content-text-color: map.get($systems, md-sys-color, on-background),
|
|
23
|
+
// TODO: This should be `md-sys-color` `scrim` but causes changes in clients.
|
|
23
24
|
scrim-color: sass-utils.safe-color-change(
|
|
24
25
|
map.get($systems, md-ref-palette, neutral-variant20), $alpha: 0.4),
|
|
25
26
|
);
|
|
26
27
|
|
|
27
|
-
@return token-
|
|
28
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
28
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, slider);
|
|
@@ -17,15 +17,17 @@ $prefix: (mat, slider);
|
|
|
17
17
|
map.get($systems, md-sys-color, primary), $alpha: 0.05),
|
|
18
18
|
focus-state-layer-color: sass-utils.safe-color-change(
|
|
19
19
|
map.get($systems, md-sys-color, primary), $alpha: 0.2),
|
|
20
|
-
value-indicator-opacity: token-
|
|
21
|
-
value-indicator-padding: token-
|
|
22
|
-
value-indicator-width: token-
|
|
23
|
-
value-indicator-height: token-
|
|
24
|
-
value-indicator-caret-display: token-
|
|
25
|
-
value-indicator-border-radius:
|
|
26
|
-
|
|
20
|
+
value-indicator-opacity: token-definition.hardcode(1, $exclude-hardcoded),
|
|
21
|
+
value-indicator-padding: token-definition.hardcode(0, $exclude-hardcoded),
|
|
22
|
+
value-indicator-width: token-definition.hardcode(28px, $exclude-hardcoded),
|
|
23
|
+
value-indicator-height: token-definition.hardcode(28px, $exclude-hardcoded),
|
|
24
|
+
value-indicator-caret-display: token-definition.hardcode(none, $exclude-hardcoded),
|
|
25
|
+
value-indicator-border-radius:
|
|
26
|
+
token-definition.hardcode(50% 50% 50% 0, $exclude-hardcoded),
|
|
27
|
+
value-indicator-text-transform:
|
|
28
|
+
token-definition.hardcode(rotate(45deg), $exclude-hardcoded),
|
|
27
29
|
value-indicator-container-transform:
|
|
28
|
-
token-
|
|
30
|
+
token-definition.hardcode(translateX(-50%) rotate(-45deg), $exclude-hardcoded)
|
|
29
31
|
), (
|
|
30
32
|
// Color variants
|
|
31
33
|
primary: (), // Default, no overrides needed
|
|
@@ -52,5 +54,5 @@ $prefix: (mat, slider);
|
|
|
52
54
|
),
|
|
53
55
|
));
|
|
54
56
|
|
|
55
|
-
@return token-
|
|
57
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
56
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
|
|
4
4
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
5
|
$prefix: (mat, snack-bar);
|
|
@@ -14,5 +14,5 @@ $prefix: (mat, snack-bar);
|
|
|
14
14
|
button-color: map.get($systems, md-sys-color, inverse-primary),
|
|
15
15
|
);
|
|
16
16
|
|
|
17
|
-
@return token-
|
|
17
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
|
|
4
4
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
5
|
$prefix: (mat, sort);
|
|
@@ -14,5 +14,5 @@ $prefix: (mat, sort);
|
|
|
14
14
|
arrow-color: map.get($systems, md-sys-color, on-surface),
|
|
15
15
|
);
|
|
16
16
|
|
|
17
|
-
@return token-
|
|
17
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, standard-button-toggle);
|
|
@@ -12,13 +12,13 @@ $prefix: (mat, standard-button-toggle);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-button-toggle
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: sass-utils.merge-all(
|
|
15
|
-
token-
|
|
15
|
+
token-definition.generate-typography-tokens($systems, label-text, label-large),
|
|
16
16
|
(
|
|
17
17
|
shape: map.get($systems, md-sys-shape, corner-full),
|
|
18
18
|
hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
|
|
19
19
|
focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
|
|
20
20
|
text-color: map.get($systems, md-sys-color, on-surface),
|
|
21
|
-
background-color: token-
|
|
21
|
+
background-color: token-definition.hardcode(transparent, $exclude-hardcoded),
|
|
22
22
|
state-layer-color: map.get($systems, md-sys-color, on-surface),
|
|
23
23
|
selected-state-background-color: map.get($systems, md-sys-color, secondary-container),
|
|
24
24
|
selected-state-text-color: map.get($systems, md-sys-color, on-secondary-container),
|
|
@@ -26,7 +26,8 @@ $prefix: (mat, standard-button-toggle);
|
|
|
26
26
|
map.get($systems, md-sys-color, on-surface),
|
|
27
27
|
$alpha: 0.38,
|
|
28
28
|
),
|
|
29
|
-
disabled-state-background-color:
|
|
29
|
+
disabled-state-background-color:
|
|
30
|
+
token-definition.hardcode(transparent, $exclude-hardcoded),
|
|
30
31
|
disabled-selected-state-text-color: sass-utils.safe-color-change(
|
|
31
32
|
map.get($systems, md-sys-color, on-surface),
|
|
32
33
|
$alpha: 0.38,
|
|
@@ -53,5 +54,5 @@ $prefix: (mat, standard-button-toggle);
|
|
|
53
54
|
)
|
|
54
55
|
));
|
|
55
56
|
|
|
56
|
-
@return token-
|
|
57
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
57
58
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, stepper);
|
|
@@ -33,7 +33,7 @@ $prefix: (mat, stepper);
|
|
|
33
33
|
header-error-state-label-text-color: map.get($systems, md-sys-color, error),
|
|
34
34
|
header-error-state-icon-foreground-color: map.get($systems, md-sys-color, error),
|
|
35
35
|
header-error-state-icon-background-color:
|
|
36
|
-
token-
|
|
36
|
+
token-definition.hardcode(transparent, $exclude-hardcoded),
|
|
37
37
|
container-text-font: map.get($systems, md-sys-typescale, body-medium-font),
|
|
38
38
|
header-label-text-font: map.get($systems, md-sys-typescale, title-small-font),
|
|
39
39
|
header-label-text-size: map.get($systems, md-sys-typescale, title-small-size),
|
|
@@ -75,5 +75,5 @@ $prefix: (mat, stepper);
|
|
|
75
75
|
)
|
|
76
76
|
);
|
|
77
77
|
|
|
78
|
-
@return token-
|
|
78
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
79
79
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
|
|
4
4
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
5
|
$prefix: (mat, switch);
|
|
@@ -11,33 +11,38 @@ $prefix: (mat, switch);
|
|
|
11
11
|
/// @return {Map} A set of custom tokens for the mat-slide-toggle
|
|
12
12
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
13
|
$tokens: (
|
|
14
|
-
disabled-selected-handle-opacity: token-
|
|
15
|
-
disabled-unselected-handle-opacity: token-
|
|
16
|
-
unselected-handle-size: token-
|
|
17
|
-
selected-handle-size: token-
|
|
18
|
-
with-icon-handle-size: token-
|
|
19
|
-
pressed-handle-size: token-
|
|
20
|
-
selected-handle-horizontal-margin: token-
|
|
21
|
-
selected-with-icon-handle-horizontal-margin:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
unselected-
|
|
14
|
+
disabled-selected-handle-opacity: token-definition.hardcode(1, $exclude-hardcoded),
|
|
15
|
+
disabled-unselected-handle-opacity: token-definition.hardcode(0.38, $exclude-hardcoded),
|
|
16
|
+
unselected-handle-size: token-definition.hardcode(16px, $exclude-hardcoded),
|
|
17
|
+
selected-handle-size: token-definition.hardcode(24px, $exclude-hardcoded),
|
|
18
|
+
with-icon-handle-size: token-definition.hardcode(24px, $exclude-hardcoded),
|
|
19
|
+
pressed-handle-size: token-definition.hardcode(28px, $exclude-hardcoded),
|
|
20
|
+
selected-handle-horizontal-margin: token-definition.hardcode(0 24px, $exclude-hardcoded),
|
|
21
|
+
selected-with-icon-handle-horizontal-margin:
|
|
22
|
+
token-definition.hardcode(0 24px, $exclude-hardcoded),
|
|
23
|
+
selected-pressed-handle-horizontal-margin:
|
|
24
|
+
token-definition.hardcode(0 22px, $exclude-hardcoded),
|
|
25
|
+
unselected-handle-horizontal-margin: token-definition.hardcode(0 8px, $exclude-hardcoded),
|
|
26
|
+
unselected-with-icon-handle-horizontal-margin:
|
|
27
|
+
token-definition.hardcode(0 4px, $exclude-hardcoded),
|
|
28
|
+
unselected-pressed-handle-horizontal-margin:
|
|
29
|
+
token-definition.hardcode(0 2px, $exclude-hardcoded),
|
|
26
30
|
// The hidden and visible track represent whichever track is visible or
|
|
27
31
|
// hidden in the ui. This could be the .mdc-switch__track :before or
|
|
28
32
|
// :after depending on whether the switch is selected or unselected.
|
|
29
33
|
//
|
|
30
34
|
// The m2 slide-toggle uses transforms to hide & show the tracks while
|
|
31
35
|
// the m3 slide-toggle uses opacity.
|
|
32
|
-
visible-track-opacity: token-
|
|
33
|
-
hidden-track-opacity: token-
|
|
34
|
-
visible-track-transition: token-
|
|
35
|
-
hidden-track-transition: token-
|
|
36
|
-
track-outline-width: token-
|
|
36
|
+
visible-track-opacity: token-definition.hardcode(1, $exclude-hardcoded),
|
|
37
|
+
hidden-track-opacity: token-definition.hardcode(0, $exclude-hardcoded),
|
|
38
|
+
visible-track-transition: token-definition.hardcode(opacity 75ms, $exclude-hardcoded),
|
|
39
|
+
hidden-track-transition: token-definition.hardcode(opacity 75ms, $exclude-hardcoded),
|
|
40
|
+
track-outline-width: token-definition.hardcode(2px, $exclude-hardcoded),
|
|
37
41
|
track-outline-color: map.get($systems, md-sys-color, outline),
|
|
38
|
-
selected-track-outline-width: token-
|
|
39
|
-
selected-track-outline-color: token-
|
|
40
|
-
disabled-unselected-track-outline-width:
|
|
42
|
+
selected-track-outline-width: token-definition.hardcode(2px, $exclude-hardcoded),
|
|
43
|
+
selected-track-outline-color: token-definition.hardcode(transparent, $exclude-hardcoded),
|
|
44
|
+
disabled-unselected-track-outline-width:
|
|
45
|
+
token-definition.hardcode(2px, $exclude-hardcoded),
|
|
41
46
|
disabled-unselected-track-outline-color: map.get($systems, md-sys-color, on-surface),
|
|
42
47
|
label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
43
48
|
label-text-font: map.get($systems, md-sys-typescale, body-medium-font),
|
|
@@ -47,5 +52,5 @@ $prefix: (mat, switch);
|
|
|
47
52
|
label-text-weight: map.get($systems, md-sys-typescale, body-medium-weight),
|
|
48
53
|
);
|
|
49
54
|
|
|
50
|
-
@return token-
|
|
55
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
51
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, tab-header);
|
|
@@ -12,10 +12,10 @@ $prefix: (mat, tab-header);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-tab-header
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: sass-utils.merge-all(
|
|
15
|
-
token-
|
|
15
|
+
token-definition.generate-typography-tokens($systems, label-text, title-small),
|
|
16
16
|
(
|
|
17
17
|
divider-color: map.get($systems, md-sys-color, surface-variant),
|
|
18
|
-
divider-height: token-
|
|
18
|
+
divider-height: token-definition.hardcode(1px, $exclude-hardcoded),
|
|
19
19
|
disabled-ripple-color: null, // TODO(mmalerba): Figure out correct value.
|
|
20
20
|
pagination-icon-color: map.get($systems, md-sys-color, on-surface),
|
|
21
21
|
inactive-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
@@ -46,6 +46,6 @@ $prefix: (mat, tab-header);
|
|
|
46
46
|
)
|
|
47
47
|
);
|
|
48
48
|
|
|
49
|
-
@return token-
|
|
49
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, table);
|
|
@@ -12,11 +12,12 @@ $prefix: (mat, table);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-table
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: sass-utils.merge-all(
|
|
15
|
-
token-
|
|
16
|
-
token-
|
|
17
|
-
token-
|
|
15
|
+
token-definition.generate-typography-tokens($systems, header-headline, title-small),
|
|
16
|
+
token-definition.generate-typography-tokens($systems, row-item-label-text, body-medium),
|
|
17
|
+
token-definition.generate-typography-tokens(
|
|
18
|
+
$systems, footer-supporting-text, body-medium),
|
|
18
19
|
(
|
|
19
|
-
row-item-outline-width: token-
|
|
20
|
+
row-item-outline-width: token-definition.hardcode(1px, $exclude-hardcoded),
|
|
20
21
|
background-color: map.get($systems, md-sys-color, surface),
|
|
21
22
|
header-headline-color: map.get($systems, md-sys-color, on-surface),
|
|
22
23
|
row-item-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
@@ -24,5 +25,5 @@ $prefix: (mat, table);
|
|
|
24
25
|
),
|
|
25
26
|
);
|
|
26
27
|
|
|
27
|
-
@return token-
|
|
28
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
28
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, text-button);
|
|
@@ -12,10 +12,10 @@ $prefix: (mat, text-button);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-button
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: ((
|
|
15
|
-
horizontal-padding: token-
|
|
16
|
-
with-icon-horizontal-padding: token-
|
|
17
|
-
icon-spacing: token-
|
|
18
|
-
icon-offset: token-
|
|
15
|
+
horizontal-padding: token-definition.hardcode(12px, $exclude-hardcoded),
|
|
16
|
+
with-icon-horizontal-padding: token-definition.hardcode(16px, $exclude-hardcoded),
|
|
17
|
+
icon-spacing: token-definition.hardcode(8px, $exclude-hardcoded),
|
|
18
|
+
icon-offset: token-definition.hardcode(-4px, $exclude-hardcoded),
|
|
19
19
|
state-layer-color: map.get($systems, md-sys-color, primary),
|
|
20
20
|
disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
21
21
|
ripple-color: sass-utils.safe-color-change(
|
|
@@ -51,5 +51,5 @@ $prefix: (mat, text-button);
|
|
|
51
51
|
)
|
|
52
52
|
));
|
|
53
53
|
|
|
54
|
-
@return token-
|
|
54
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
55
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mat, toolbar);
|
|
@@ -12,12 +12,12 @@ $prefix: (mat, toolbar);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-toolbar
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: sass-utils.merge-all(
|
|
15
|
-
token-
|
|
15
|
+
token-definition.generate-typography-tokens($systems, title-text, title-large),
|
|
16
16
|
(
|
|
17
17
|
container-background-color: map.get($systems, md-sys-color, surface),
|
|
18
18
|
container-text-color: map.get($systems, md-sys-color, on-surface),
|
|
19
19
|
)
|
|
20
20
|
);
|
|
21
21
|
|
|
22
|
-
@return token-
|
|
22
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
23
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../token-
|
|
2
|
+
@use '../../token-definition';
|
|
3
3
|
|
|
4
4
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
5
|
$prefix: (mat, tree);
|
|
@@ -18,5 +18,5 @@ $prefix: (mat, tree);
|
|
|
18
18
|
node-text-weight: map.get($systems, md-sys-typescale, body-large-weight),
|
|
19
19
|
);
|
|
20
20
|
|
|
21
|
-
@return token-
|
|
21
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:meta';
|
|
3
|
-
@use '../../token-
|
|
3
|
+
@use '../../token-definition';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mdc, checkbox);
|
|
@@ -11,7 +11,7 @@ $prefix: (mdc, checkbox);
|
|
|
11
11
|
/// @param {Map} $token-slots Possible token slots
|
|
12
12
|
/// @return {Map} A set of tokens for the MDC checkbox
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
|
-
$mdc-tokens: token-
|
|
14
|
+
$mdc-tokens: token-definition.get-mdc-tokens('checkbox', $systems, $exclude-hardcoded);
|
|
15
15
|
$variant-tokens: (
|
|
16
16
|
primary: (), // Default, no overrides needed
|
|
17
17
|
secondary: (
|
|
@@ -55,11 +55,11 @@ $prefix: (mdc, checkbox);
|
|
|
55
55
|
)
|
|
56
56
|
);
|
|
57
57
|
|
|
58
|
-
@return token-
|
|
58
|
+
@return token-definition.namespace-tokens(
|
|
59
59
|
$prefix,
|
|
60
60
|
(
|
|
61
61
|
_fix-tokens($mdc-tokens),
|
|
62
|
-
token-
|
|
62
|
+
token-definition.map-values($variant-tokens, meta.get-function(_fix-tokens))
|
|
63
63
|
),
|
|
64
64
|
$token-slots
|
|
65
65
|
);
|
|
@@ -75,7 +75,7 @@ $prefix: (mdc, checkbox);
|
|
|
75
75
|
@function _fix-tokens($tokens) {
|
|
76
76
|
// Need to get the hardcoded values, because they include opacities that are used for the disabled
|
|
77
77
|
// state.
|
|
78
|
-
$hardcoded-tokens: token-
|
|
78
|
+
$hardcoded-tokens: token-definition.get-mdc-tokens('checkbox', (), false);
|
|
79
79
|
|
|
80
80
|
$rename-keys: (
|
|
81
81
|
selected-icon-color: selected-checkmark-color,
|
|
@@ -94,10 +94,12 @@ $prefix: (mdc, checkbox);
|
|
|
94
94
|
unselected-pressed-outline-color: unselected-pressed-icon-color
|
|
95
95
|
);
|
|
96
96
|
|
|
97
|
-
$remapped-tokens: token-
|
|
98
|
-
$remapped-hardcoded-tokens:
|
|
97
|
+
$remapped-tokens: token-definition.rename-map-keys($tokens, $rename-keys);
|
|
98
|
+
$remapped-hardcoded-tokens:
|
|
99
|
+
token-definition.rename-map-keys($hardcoded-tokens, $rename-keys);
|
|
99
100
|
|
|
100
|
-
@return token-
|
|
101
|
+
@return token-definition.combine-color-tokens(
|
|
102
|
+
$remapped-tokens, $remapped-hardcoded-tokens, (
|
|
101
103
|
(
|
|
102
104
|
color: disabled-selected-icon-color,
|
|
103
105
|
opacity: disabled-selected-icon-opacity,
|