@material/web 1.0.0-pre.6 → 1.0.0-pre.8
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/README.md +8 -8
- package/aria/aria.d.ts +43 -0
- package/aria/aria.js +80 -0
- package/aria/aria.js.map +1 -0
- package/aria/delegate.d.ts +37 -0
- package/aria/delegate.js +53 -0
- package/aria/delegate.js.map +1 -0
- package/badge/badge.d.ts +0 -1
- package/badge/badge.js +0 -1
- package/badge/badge.js.map +1 -1
- package/badge/lib/badge.d.ts +5 -7
- package/badge/lib/badge.js +9 -12
- package/badge/lib/badge.js.map +1 -1
- package/button/lib/_elevated-button.scss +35 -6
- package/button/lib/_elevation.scss +13 -3
- package/button/lib/_filled-button.scss +35 -3
- package/button/lib/_outlined-button.scss +35 -6
- package/button/lib/_shared.scss +4 -2
- package/button/lib/_text-button.scss +35 -6
- package/button/lib/_tonal-button.scss +34 -7
- package/button/lib/button.d.ts +24 -38
- package/button/lib/button.js +40 -89
- package/button/lib/button.js.map +1 -1
- package/button/lib/elevated-button.d.ts +6 -4
- package/button/lib/elevated-button.js.map +1 -1
- package/button/lib/elevated-styles.css.js +1 -1
- package/button/lib/elevated-styles.css.js.map +1 -1
- package/button/lib/filled-button.d.ts +6 -4
- package/button/lib/filled-button.js.map +1 -1
- package/button/lib/filled-styles.css.js +1 -1
- package/button/lib/filled-styles.css.js.map +1 -1
- package/button/lib/outlined-button.d.ts +6 -4
- package/button/lib/outlined-button.js.map +1 -1
- package/button/lib/outlined-styles.css.js +1 -1
- package/button/lib/outlined-styles.css.js.map +1 -1
- package/button/lib/shared-elevation-styles.css.js +1 -1
- package/button/lib/shared-elevation-styles.css.js.map +1 -1
- package/button/lib/shared-styles.css.js +1 -1
- package/button/lib/shared-styles.css.js.map +1 -1
- package/button/lib/text-button.d.ts +5 -2
- package/button/lib/text-button.js.map +1 -1
- package/button/lib/text-styles.css.js +1 -1
- package/button/lib/text-styles.css.js.map +1 -1
- package/button/lib/tonal-button.d.ts +6 -4
- package/button/lib/tonal-button.js.map +1 -1
- package/button/lib/tonal-styles.css.js +1 -1
- package/button/lib/tonal-styles.css.js.map +1 -1
- package/checkbox/lib/_checkbox.scss +48 -47
- package/checkbox/lib/checkbox-styles.css.js +1 -1
- package/checkbox/lib/checkbox-styles.css.js.map +1 -1
- package/checkbox/lib/checkbox.d.ts +2 -7
- package/checkbox/lib/checkbox.js +35 -62
- package/checkbox/lib/checkbox.js.map +1 -1
- package/checkbox/lib/forced-colors-styles.css.js +1 -1
- package/checkbox/lib/forced-colors-styles.css.js.map +1 -1
- package/chips/_filter-chip.scss +6 -0
- package/chips/assist-chip.js +2 -1
- package/chips/assist-chip.js.map +1 -1
- package/chips/filter-chip.d.ts +20 -0
- package/chips/filter-chip.js +25 -0
- package/chips/filter-chip.js.map +1 -0
- package/chips/lib/_assist-chip.scss +37 -3
- package/chips/lib/_elevated.scss +60 -0
- package/chips/lib/_filter-chip.scss +175 -0
- package/chips/lib/_shared.scss +48 -84
- package/chips/lib/_suggestion-chip.scss +36 -5
- package/chips/lib/assist-chip.d.ts +12 -0
- package/chips/lib/assist-chip.js +64 -0
- package/chips/lib/assist-chip.js.map +1 -1
- package/chips/lib/assist-styles.css.js +1 -1
- package/chips/lib/assist-styles.css.js.map +1 -1
- package/chips/lib/chip.d.ts +24 -16
- package/chips/lib/chip.js +53 -74
- package/chips/lib/chip.js.map +1 -1
- package/chips/lib/elevated-styles.css.js +9 -0
- package/chips/lib/elevated-styles.css.js.map +1 -0
- package/{fab/lib/fab-extended-styles.scss → chips/lib/elevated-styles.scss} +3 -3
- package/chips/lib/filter-chip.d.ts +26 -0
- package/chips/lib/filter-chip.js +80 -0
- package/chips/lib/filter-chip.js.map +1 -0
- package/chips/lib/filter-styles.css.js +9 -0
- package/chips/lib/filter-styles.css.js.map +1 -0
- package/chips/lib/filter-styles.scss +10 -0
- package/chips/lib/shared-styles.css.js +1 -1
- package/chips/lib/shared-styles.css.js.map +1 -1
- package/chips/lib/suggestion-chip.d.ts +2 -2
- package/chips/lib/suggestion-chip.js +4 -2
- package/chips/lib/suggestion-chip.js.map +1 -1
- package/chips/lib/suggestion-styles.css.js +1 -1
- package/chips/lib/suggestion-styles.css.js.map +1 -1
- package/chips/suggestion-chip.js +2 -1
- package/chips/suggestion-chip.js.map +1 -1
- package/circularprogress/harness.d.ts +1 -0
- package/circularprogress/harness.js +4 -0
- package/circularprogress/harness.js.map +1 -1
- package/circularprogress/lib/_circular-progress.scss +13 -7
- package/circularprogress/lib/circular-progress-styles.css.js +1 -1
- package/circularprogress/lib/circular-progress-styles.css.js.map +1 -1
- package/circularprogress/lib/circular-progress.d.ts +5 -7
- package/circularprogress/lib/circular-progress.js +17 -21
- package/circularprogress/lib/circular-progress.js.map +1 -1
- package/dialog/lib/_dialog.scss +8 -9
- package/dialog/lib/_tokens.scss +0 -1
- package/dialog/lib/dialog-styles.css.js +1 -1
- package/dialog/lib/dialog-styles.css.js.map +1 -1
- package/dialog/lib/dialog.d.ts +10 -10
- package/dialog/lib/dialog.js +33 -56
- package/dialog/lib/dialog.js.map +1 -1
- package/divider/lib/divider.js +4 -7
- package/divider/lib/divider.js.map +1 -1
- package/elevation/lib/_elevation.scss +5 -7
- package/elevation/lib/elevation-styles.css.js +1 -1
- package/elevation/lib/elevation-styles.css.js.map +1 -1
- package/elevation/lib/elevation.d.ts +1 -1
- package/elevation/lib/elevation.js.map +1 -1
- package/fab/_fab.scss +1 -0
- package/fab/branded-fab.d.ts +56 -0
- package/fab/branded-fab.js +56 -0
- package/fab/branded-fab.js.map +1 -0
- package/fab/fab.d.ts +25 -5
- package/fab/fab.js +27 -10
- package/fab/fab.js.map +1 -1
- package/fab/harness.d.ts +1 -2
- package/fab/harness.js +1 -1
- package/fab/harness.js.map +1 -1
- package/fab/lib/_fab-branded.scss +81 -0
- package/fab/lib/_fab.scss +221 -19
- package/fab/lib/_shared.scss +161 -131
- package/fab/lib/fab-branded-styles.css.d.ts +1 -0
- package/fab/lib/fab-branded-styles.css.js +9 -0
- package/fab/lib/fab-branded-styles.css.js.map +1 -0
- package/fab/lib/fab-branded-styles.scss +10 -0
- package/fab/lib/fab-styles.css.js +1 -1
- package/fab/lib/fab-styles.css.js.map +1 -1
- package/fab/lib/fab.d.ts +18 -10
- package/fab/lib/fab.js +19 -12
- package/fab/lib/fab.js.map +1 -1
- package/fab/lib/forced-colors-styles.css.d.ts +1 -0
- package/fab/lib/forced-colors-styles.css.js +9 -0
- package/fab/lib/forced-colors-styles.css.js.map +1 -0
- package/fab/lib/forced-colors-styles.scss +26 -0
- package/fab/lib/shared-styles.css.d.ts +1 -0
- package/fab/lib/shared-styles.css.js +9 -0
- package/fab/lib/shared-styles.css.js.map +1 -0
- package/fab/lib/{fab-shared-styles.scss → shared-styles.scss} +1 -1
- package/fab/lib/shared.d.ts +49 -0
- package/fab/lib/shared.js +113 -0
- package/fab/lib/shared.js.map +1 -0
- package/field/lib/_filled-field.scss +47 -12
- package/field/lib/_outlined-field.scss +39 -12
- package/field/lib/field.js +14 -27
- package/field/lib/field.js.map +1 -1
- package/field/lib/filled-styles.css.js +1 -1
- package/field/lib/filled-styles.css.js.map +1 -1
- package/field/lib/outlined-styles.css.js +1 -1
- package/field/lib/outlined-styles.css.js.map +1 -1
- package/focus/focus-ring.d.ts +2 -1
- package/focus/focus-ring.js +2 -1
- package/focus/focus-ring.js.map +1 -1
- package/focus/lib/_focus-ring.scss +49 -34
- package/focus/lib/focus-ring-styles.css.js +1 -1
- package/focus/lib/focus-ring-styles.css.js.map +1 -1
- package/focus/lib/focus-ring.d.ts +59 -12
- package/focus/lib/focus-ring.js +118 -14
- package/focus/lib/focus-ring.js.map +1 -1
- package/icon/icon.d.ts +0 -1
- package/icon/icon.js +0 -1
- package/icon/icon.js.map +1 -1
- package/icon/lib/_icon.scss +2 -0
- package/icon/lib/icon-styles.css.js +1 -1
- package/icon/lib/icon-styles.css.js.map +1 -1
- package/icon/lib/icon.d.ts +5 -4
- package/icon/lib/icon.js +3 -2
- package/icon/lib/icon.js.map +1 -1
- package/iconbutton/filled-icon-button.d.ts +6 -2
- package/iconbutton/filled-icon-button.js.map +1 -1
- package/iconbutton/filled-tonal-icon-button.d.ts +6 -2
- package/iconbutton/filled-tonal-icon-button.js.map +1 -1
- package/iconbutton/harness.d.ts +1 -1
- package/iconbutton/harness.js +4 -1
- package/iconbutton/harness.js.map +1 -1
- package/iconbutton/lib/_filled-icon-button.scss +38 -13
- package/iconbutton/lib/_filled-tonal-icon-button.scss +38 -11
- package/iconbutton/lib/_outlined-icon-button.scss +38 -13
- package/iconbutton/lib/_shared.scss +4 -6
- package/iconbutton/lib/_standard-icon-button.scss +14 -14
- package/iconbutton/lib/filled-styles.css.js +1 -1
- package/iconbutton/lib/filled-styles.css.js.map +1 -1
- package/iconbutton/lib/filled-tonal-styles.css.js +1 -1
- package/iconbutton/lib/filled-tonal-styles.css.js.map +1 -1
- package/iconbutton/lib/icon-button.d.ts +17 -25
- package/iconbutton/lib/icon-button.js +37 -73
- package/iconbutton/lib/icon-button.js.map +1 -1
- package/iconbutton/lib/outlined-styles.css.js +1 -1
- package/iconbutton/lib/outlined-styles.css.js.map +1 -1
- package/iconbutton/lib/shared-styles.css.js +1 -1
- package/iconbutton/lib/shared-styles.css.js.map +1 -1
- package/iconbutton/lib/standard-styles.css.js +1 -1
- package/iconbutton/lib/standard-styles.css.js.map +1 -1
- package/iconbutton/outlined-icon-button.d.ts +5 -2
- package/iconbutton/outlined-icon-button.js.map +1 -1
- package/iconbutton/standard-icon-button.d.ts +5 -2
- package/iconbutton/standard-icon-button.js.map +1 -1
- package/linearprogress/_linear-progress.scss +6 -0
- package/linearprogress/harness.d.ts +13 -0
- package/linearprogress/harness.js +18 -0
- package/linearprogress/harness.js.map +1 -0
- package/linearprogress/lib/_linear-progress.scss +386 -0
- package/linearprogress/lib/linear-progress-styles.css.d.ts +1 -0
- package/linearprogress/lib/linear-progress-styles.css.js +9 -0
- package/linearprogress/lib/linear-progress-styles.css.js.map +1 -0
- package/linearprogress/lib/linear-progress-styles.scss +8 -0
- package/linearprogress/lib/linear-progress.d.ts +35 -0
- package/linearprogress/lib/linear-progress.js +127 -0
- package/linearprogress/lib/linear-progress.js.map +1 -0
- package/linearprogress/linear-progress.d.ts +23 -0
- package/linearprogress/linear-progress.js +26 -0
- package/linearprogress/linear-progress.js.map +1 -0
- package/list/lib/_list.scss +9 -50
- package/list/lib/list-styles.css.js +1 -1
- package/list/lib/list-styles.css.js.map +1 -1
- package/list/lib/list.d.ts +8 -15
- package/list/lib/list.js +20 -45
- package/list/lib/list.js.map +1 -1
- package/list/lib/listitem/_list-item.scss +17 -72
- package/list/lib/listitem/forced-colors-styles.css.js +1 -1
- package/list/lib/listitem/forced-colors-styles.css.js.map +1 -1
- package/list/lib/listitem/list-item-styles.css.js +1 -1
- package/list/lib/listitem/list-item-styles.css.js.map +1 -1
- package/list/lib/listitem/list-item.d.ts +29 -31
- package/list/lib/listitem/list-item.js +26 -80
- package/list/lib/listitem/list-item.js.map +1 -1
- package/list/lib/listitemlink/list-item-link.js +5 -9
- package/list/lib/listitemlink/list-item-link.js.map +1 -1
- package/menu/lib/_menu.scss +9 -29
- package/menu/lib/menu-styles.css.js +1 -1
- package/menu/lib/menu-styles.css.js.map +1 -1
- package/menu/lib/menu.d.ts +32 -41
- package/menu/lib/menu.js +51 -82
- package/menu/lib/menu.js.map +1 -1
- package/menu/lib/menuitem/_menu-item.scss +16 -33
- package/menu/lib/menuitem/menu-item-styles.css.js +1 -1
- package/menu/lib/menuitem/menu-item-styles.css.js.map +1 -1
- package/menu/lib/menuitem/menu-item.d.ts +1 -1
- package/menu/lib/menuitem/menu-item.js +4 -6
- package/menu/lib/menuitem/menu-item.js.map +1 -1
- package/menu/lib/menuitemlink/menu-item-link.d.ts +0 -2
- package/menu/lib/menuitemlink/menu-item-link.js +3 -6
- package/menu/lib/menuitemlink/menu-item-link.js.map +1 -1
- package/menu/lib/shared.d.ts +20 -2
- package/menu/lib/shared.js +18 -0
- package/menu/lib/shared.js.map +1 -1
- package/menu/lib/submenuitem/sub-menu-item.d.ts +16 -13
- package/menu/lib/submenuitem/sub-menu-item.js +27 -18
- package/menu/lib/submenuitem/sub-menu-item.js.map +1 -1
- package/menu/lib/typeaheadController.d.ts +9 -9
- package/menu/lib/typeaheadController.js.map +1 -1
- package/navigationbar/lib/_navigation-bar.scss +7 -1
- package/navigationbar/lib/navigation-bar-styles.css.js +1 -1
- package/navigationbar/lib/navigation-bar-styles.css.js.map +1 -1
- package/navigationbar/lib/navigation-bar.d.ts +6 -6
- package/navigationbar/lib/navigation-bar.js +17 -18
- package/navigationbar/lib/navigation-bar.js.map +1 -1
- package/navigationbar/navigation-bar.d.ts +0 -1
- package/navigationbar/navigation-bar.js +0 -1
- package/navigationbar/navigation-bar.js.map +1 -1
- package/navigationdrawer/lib/_navigation-drawer-modal.scss +0 -3
- package/navigationdrawer/lib/_navigation-drawer.scss +0 -3
- package/navigationdrawer/lib/_shared.scss +1 -4
- package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js +1 -1
- package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer-modal.d.ts +7 -12
- package/navigationdrawer/lib/navigation-drawer-modal.js +19 -41
- package/navigationdrawer/lib/navigation-drawer-modal.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer-styles.css.js +1 -1
- package/navigationdrawer/lib/navigation-drawer-styles.css.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer.d.ts +6 -10
- package/navigationdrawer/lib/navigation-drawer.js +17 -38
- package/navigationdrawer/lib/navigation-drawer.js.map +1 -1
- package/navigationdrawer/lib/shared-styles.css.js +1 -1
- package/navigationdrawer/lib/shared-styles.css.js.map +1 -1
- package/navigationdrawer/navigation-drawer-modal.d.ts +0 -1
- package/navigationdrawer/navigation-drawer-modal.js +0 -1
- package/navigationdrawer/navigation-drawer-modal.js.map +1 -1
- package/navigationdrawer/navigation-drawer.d.ts +0 -1
- package/navigationdrawer/navigation-drawer.js +0 -1
- package/navigationdrawer/navigation-drawer.js.map +1 -1
- package/navigationtab/lib/_navigation-tab.scss +2 -2
- package/navigationtab/lib/navigation-tab-styles.css.js +1 -1
- package/navigationtab/lib/navigation-tab-styles.css.js.map +1 -1
- package/navigationtab/lib/navigation-tab.d.ts +16 -29
- package/navigationtab/lib/navigation-tab.js +49 -88
- package/navigationtab/lib/navigation-tab.js.map +1 -1
- package/navigationtab/lib/state.d.ts +1 -1
- package/navigationtab/lib/state.js.map +1 -1
- package/navigationtab/navigation-tab.d.ts +0 -1
- package/navigationtab/navigation-tab.js +0 -1
- package/navigationtab/navigation-tab.js.map +1 -1
- package/package.json +1 -1
- package/radio/lib/_radio.scss +1 -1
- package/radio/lib/radio-styles.css.js +1 -1
- package/radio/lib/radio-styles.css.js.map +1 -1
- package/radio/lib/radio.d.ts +2 -8
- package/radio/lib/radio.js +31 -58
- package/radio/lib/radio.js.map +1 -1
- package/ripple/lib/ripple.js +11 -13
- package/ripple/lib/ripple.js.map +1 -1
- package/segmentedbutton/lib/outlined-segmented-button.d.ts +16 -7
- package/segmentedbutton/lib/outlined-segmented-button.js +3 -3
- package/segmentedbutton/lib/outlined-segmented-button.js.map +1 -1
- package/segmentedbutton/lib/segmented-button.d.ts +28 -40
- package/segmentedbutton/lib/segmented-button.js +42 -96
- package/segmentedbutton/lib/segmented-button.js.map +1 -1
- package/segmentedbutton/outlined-segmented-button.d.ts +0 -1
- package/segmentedbutton/outlined-segmented-button.js +0 -1
- package/segmentedbutton/outlined-segmented-button.js.map +1 -1
- package/segmentedbuttonset/lib/_outlined-segmented-button-set.scss +32 -13
- package/segmentedbuttonset/lib/outlined-segmented-button-set.d.ts +6 -4
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js +3 -2
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js.map +1 -1
- package/segmentedbuttonset/lib/outlined-styles.css.js +1 -1
- package/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -1
- package/segmentedbuttonset/lib/segmented-button-set.d.ts +3 -9
- package/segmentedbuttonset/lib/segmented-button-set.js +14 -20
- package/segmentedbuttonset/lib/segmented-button-set.js.map +1 -1
- package/segmentedbuttonset/outlined-segmented-button-set.d.ts +0 -1
- package/segmentedbuttonset/outlined-segmented-button-set.js +0 -1
- package/segmentedbuttonset/outlined-segmented-button-set.js.map +1 -1
- package/select/_filled-select.scss +6 -0
- package/select/_outlined-select.scss +6 -0
- package/select/filled-select.d.ts +41 -0
- package/select/filled-select.js +46 -0
- package/select/filled-select.js.map +1 -0
- package/select/harness.d.ts +24 -0
- package/select/harness.js +53 -0
- package/select/harness.js.map +1 -0
- package/select/lib/_filled-select.scss +222 -0
- package/select/lib/_outlined-select.scss +180 -0
- package/select/lib/_shared.scss +48 -0
- package/select/lib/filled-forced-colors-styles.css.d.ts +1 -0
- package/select/lib/filled-forced-colors-styles.css.js +9 -0
- package/select/lib/filled-forced-colors-styles.css.js.map +1 -0
- package/select/lib/filled-forced-colors-styles.scss +29 -0
- package/select/lib/filled-select-styles.css.d.ts +1 -0
- package/select/lib/filled-select-styles.css.js +9 -0
- package/select/lib/filled-select-styles.css.js.map +1 -0
- package/select/lib/filled-select-styles.scss +10 -0
- package/select/lib/filled-select.d.ts +10 -0
- package/select/lib/filled-select.js +16 -0
- package/select/lib/filled-select.js.map +1 -0
- package/select/lib/outlined-forced-colors-styles.css.d.ts +1 -0
- package/select/lib/outlined-forced-colors-styles.css.js +9 -0
- package/select/lib/outlined-forced-colors-styles.css.js.map +1 -0
- package/select/lib/outlined-forced-colors-styles.scss +29 -0
- package/select/lib/outlined-select-styles.css.d.ts +1 -0
- package/select/lib/outlined-select-styles.css.js +9 -0
- package/select/lib/outlined-select-styles.css.js.map +1 -0
- package/select/lib/outlined-select-styles.scss +10 -0
- package/select/lib/outlined-select.d.ts +10 -0
- package/select/lib/outlined-select.js +16 -0
- package/select/lib/outlined-select.js.map +1 -0
- package/select/lib/select.d.ts +216 -0
- package/select/lib/select.js +589 -0
- package/select/lib/select.js.map +1 -0
- package/select/lib/selectoption/harness.d.ts +11 -0
- package/select/lib/selectoption/harness.js +12 -0
- package/select/lib/selectoption/harness.js.map +1 -0
- package/select/lib/selectoption/select-option.d.ts +30 -0
- package/select/lib/selectoption/select-option.js +71 -0
- package/select/lib/selectoption/select-option.js.map +1 -0
- package/select/lib/shared-styles.css.d.ts +1 -0
- package/select/lib/shared-styles.css.js +9 -0
- package/select/lib/shared-styles.css.js.map +1 -0
- package/select/lib/shared-styles.scss +10 -0
- package/select/lib/shared.d.ts +52 -0
- package/select/lib/shared.js +41 -0
- package/select/lib/shared.js.map +1 -0
- package/select/outlined-select.d.ts +41 -0
- package/select/outlined-select.js +46 -0
- package/select/outlined-select.js.map +1 -0
- package/select/select-option.d.ts +44 -0
- package/select/select-option.js +51 -0
- package/select/select-option.js.map +1 -0
- package/slider/harness.d.ts +2 -1
- package/slider/harness.js +14 -9
- package/slider/harness.js.map +1 -1
- package/slider/lib/_slider.scss +149 -167
- package/slider/lib/forced-colors-styles.css.js +1 -1
- package/slider/lib/forced-colors-styles.css.js.map +1 -1
- package/slider/lib/forced-colors-styles.scss +2 -2
- package/slider/lib/slider-styles.css.js +1 -1
- package/slider/lib/slider-styles.css.js.map +1 -1
- package/slider/lib/slider.d.ts +23 -57
- package/slider/lib/slider.js +77 -167
- package/slider/lib/slider.js.map +1 -1
- package/switch/lib/_switch.scss +63 -18
- package/switch/lib/switch-styles.css.js +1 -1
- package/switch/lib/switch-styles.css.js.map +1 -1
- package/switch/lib/switch.d.ts +0 -7
- package/switch/lib/switch.js +32 -79
- package/switch/lib/switch.js.map +1 -1
- package/textfield/harness.d.ts +1 -1
- package/textfield/harness.js.map +1 -1
- package/textfield/lib/_filled-text-field.scss +70 -14
- package/textfield/lib/_outlined-text-field.scss +60 -35
- package/textfield/lib/filled-forced-colors-styles.css.js +1 -1
- package/textfield/lib/filled-forced-colors-styles.css.js.map +1 -1
- package/textfield/lib/filled-styles.css.js +1 -1
- package/textfield/lib/filled-styles.css.js.map +1 -1
- package/textfield/lib/outlined-forced-colors-styles.css.js +1 -1
- package/textfield/lib/outlined-forced-colors-styles.css.js.map +1 -1
- package/textfield/lib/outlined-styles.css.js +1 -1
- package/textfield/lib/outlined-styles.css.js.map +1 -1
- package/textfield/lib/text-field.d.ts +1 -11
- package/textfield/lib/text-field.js +45 -115
- package/textfield/lib/text-field.js.map +1 -1
- package/tokens/_index.scss +5 -18
- package/tokens/_md-comp-assist-chip.scss +25 -29
- package/tokens/_md-comp-checkbox.scss +78 -1
- package/tokens/_md-comp-circular-progress-indicator.scss +39 -13
- package/tokens/_md-comp-elevated-button.scss +0 -10
- package/tokens/_md-comp-elevation.scss +0 -4
- package/tokens/_md-comp-fab-branded.scss +84 -1
- package/tokens/_md-comp-fab.scss +249 -0
- package/tokens/_md-comp-filled-button.scss +0 -10
- package/{field/lib → tokens}/_md-comp-filled-field.scss +91 -9
- package/tokens/_md-comp-filled-icon-button.scss +46 -1
- package/tokens/_md-comp-filled-select.scss +124 -1
- package/tokens/_md-comp-filled-text-field.scss +93 -9
- package/tokens/_md-comp-filled-tonal-button.scss +0 -11
- package/tokens/_md-comp-filled-tonal-icon-button.scss +45 -3
- package/tokens/_md-comp-filter-chip.scss +103 -103
- package/tokens/_md-comp-focus-ring.scss +23 -24
- package/tokens/_md-comp-icon-button.scss +37 -1
- package/tokens/_md-comp-input-chip.scss +77 -95
- package/tokens/_md-comp-linear-progress-indicator.scss +31 -3
- package/tokens/_md-comp-list-item.scss +174 -0
- package/tokens/_md-comp-list.scss +81 -26
- package/tokens/_md-comp-menu-item.scss +50 -0
- package/tokens/_md-comp-menu.scss +29 -2
- package/tokens/_md-comp-outlined-button.scss +0 -10
- package/{field/lib → tokens}/_md-comp-outlined-field.scss +85 -9
- package/tokens/_md-comp-outlined-icon-button.scss +41 -1
- package/tokens/_md-comp-outlined-segmented-button.scss +57 -11
- package/tokens/_md-comp-outlined-select.scss +123 -1
- package/tokens/_md-comp-outlined-text-field.scss +85 -8
- package/tokens/_md-comp-slider.scss +13 -1
- package/tokens/_md-comp-suggestion-chip.scss +29 -30
- package/tokens/_md-comp-switch.scss +81 -1
- package/tokens/_md-comp-text-button.scss +0 -10
- package/tokens/_values.scss +2 -4
- package/types/aria.d.ts +59 -1
- package/actionelement/action-element.d.ts +0 -79
- package/actionelement/action-element.js +0 -97
- package/actionelement/action-element.js.map +0 -1
- package/button/lib/state.d.ts +0 -10
- package/button/lib/state.js +0 -7
- package/button/lib/state.js.map +0 -1
- package/controller/action-controller.d.ts +0 -147
- package/controller/action-controller.js +0 -286
- package/controller/action-controller.js.map +0 -1
- package/decorators/aria-property.d.ts +0 -32
- package/decorators/aria-property.js +0 -99
- package/decorators/aria-property.js.map +0 -1
- package/fab/_fab-extended.scss +0 -6
- package/fab/fab-extended.d.ts +0 -23
- package/fab/fab-extended.js +0 -29
- package/fab/fab-extended.js.map +0 -1
- package/fab/lib/_fab-extended.scss +0 -73
- package/fab/lib/fab-extended-styles.css.js +0 -9
- package/fab/lib/fab-extended-styles.css.js.map +0 -1
- package/fab/lib/fab-extended.d.ts +0 -19
- package/fab/lib/fab-extended.js +0 -28
- package/fab/lib/fab-extended.js.map +0 -1
- package/fab/lib/fab-shared-styles.css.js +0 -9
- package/fab/lib/fab-shared-styles.css.js.map +0 -1
- package/fab/lib/fab-shared.d.ts +0 -44
- package/fab/lib/fab-shared.js +0 -121
- package/fab/lib/fab-shared.js.map +0 -1
- package/focus/strong-focus.d.ts +0 -56
- package/focus/strong-focus.js +0 -96
- package/focus/strong-focus.js.map +0 -1
- package/sass/_shape.scss +0 -154
- package/slider/lib/_tokens.scss +0 -65
- package/tokens/_md-comp-extended-fab-branded.scss +0 -45
- package/tokens/_md-comp-extended-fab-primary.scss +0 -45
- package/tokens/_md-comp-extended-fab-secondary.scss +0 -48
- package/tokens/_md-comp-extended-fab-surface.scss +0 -45
- package/tokens/_md-comp-extended-fab-tertiary.scss +0 -48
- package/tokens/_md-comp-fab-branded-large.scss +0 -23
- package/tokens/_md-comp-fab-primary-large.scss +0 -23
- package/tokens/_md-comp-fab-primary-small.scss +0 -23
- package/tokens/_md-comp-fab-primary.scss +0 -23
- package/tokens/_md-comp-fab-secondary-large.scss +0 -23
- package/tokens/_md-comp-fab-secondary-small.scss +0 -23
- package/tokens/_md-comp-fab-secondary.scss +0 -23
- package/tokens/_md-comp-fab-surface-large.scss +0 -23
- package/tokens/_md-comp-fab-surface-small.scss +0 -23
- package/tokens/_md-comp-fab-surface.scss +0 -23
- package/tokens/_md-comp-fab-tertiary-large.scss +0 -23
- package/tokens/_md-comp-fab-tertiary-small.scss +0 -23
- package/tokens/_md-comp-fab-tertiary.scss +0 -23
- /package/{fab/lib/fab-extended-styles.css.d.ts → chips/lib/elevated-styles.css.d.ts} +0 -0
- /package/{fab/lib/fab-shared-styles.css.d.ts → chips/lib/filter-styles.css.d.ts} +0 -0
|
@@ -11,15 +11,81 @@
|
|
|
11
11
|
@use './md-sys-shape';
|
|
12
12
|
@use './md-sys-typescale';
|
|
13
13
|
@use './v0_172/md-comp-outlined-text-field';
|
|
14
|
+
@use './values';
|
|
14
15
|
// go/keep-sorted end
|
|
15
16
|
|
|
16
|
-
$
|
|
17
|
-
|
|
18
|
-
'
|
|
19
|
-
'
|
|
17
|
+
$supported-tokens: (
|
|
18
|
+
// go/keep-sorted start
|
|
19
|
+
'caret-color',
|
|
20
|
+
'container-shape',
|
|
21
|
+
'disabled-input-text-color',
|
|
22
|
+
'disabled-input-text-opacity',
|
|
23
|
+
'disabled-label-text-color',
|
|
24
|
+
'disabled-label-text-opacity',
|
|
25
|
+
'disabled-leading-icon-color',
|
|
26
|
+
'disabled-leading-icon-opacity',
|
|
27
|
+
'disabled-outline-color',
|
|
28
|
+
'disabled-outline-opacity',
|
|
29
|
+
'disabled-outline-width',
|
|
30
|
+
'disabled-supporting-text-color',
|
|
31
|
+
'disabled-supporting-text-opacity',
|
|
32
|
+
'disabled-trailing-icon-color',
|
|
33
|
+
'disabled-trailing-icon-opacity',
|
|
34
|
+
'error-focus-caret-color',
|
|
35
|
+
'error-focus-input-text-color',
|
|
36
|
+
'error-focus-label-text-color',
|
|
37
|
+
'error-focus-leading-icon-color',
|
|
38
|
+
'error-focus-outline-color',
|
|
39
|
+
'error-focus-supporting-text-color',
|
|
40
|
+
'error-focus-trailing-icon-color',
|
|
41
|
+
'error-hover-input-text-color',
|
|
42
|
+
'error-hover-label-text-color',
|
|
43
|
+
'error-hover-leading-icon-color',
|
|
44
|
+
'error-hover-outline-color',
|
|
45
|
+
'error-hover-supporting-text-color',
|
|
46
|
+
'error-hover-trailing-icon-color',
|
|
47
|
+
'error-input-text-color',
|
|
48
|
+
'error-label-text-color',
|
|
49
|
+
'error-leading-icon-color',
|
|
50
|
+
'error-outline-color',
|
|
51
|
+
'error-supporting-text-color',
|
|
52
|
+
'error-trailing-icon-color',
|
|
53
|
+
'focus-input-text-color',
|
|
54
|
+
'focus-label-text-color',
|
|
55
|
+
'focus-leading-icon-color',
|
|
56
|
+
'focus-outline-color',
|
|
57
|
+
'focus-outline-width',
|
|
58
|
+
'focus-supporting-text-color',
|
|
59
|
+
'focus-trailing-icon-color',
|
|
60
|
+
'hover-input-text-color',
|
|
61
|
+
'hover-label-text-color',
|
|
62
|
+
'hover-leading-icon-color',
|
|
63
|
+
'hover-outline-color',
|
|
64
|
+
'hover-outline-width',
|
|
65
|
+
'hover-supporting-text-color',
|
|
66
|
+
'hover-trailing-icon-color',
|
|
67
|
+
'input-text-color',
|
|
68
|
+
'input-text-placeholder-color',
|
|
69
|
+
'input-text-prefix-color',
|
|
70
|
+
'input-text-suffix-color',
|
|
71
|
+
'input-text-type',
|
|
72
|
+
'label-text-color',
|
|
73
|
+
'label-text-populated-line-height',
|
|
74
|
+
'label-text-populated-size',
|
|
75
|
+
'label-text-type',
|
|
76
|
+
'leading-icon-color',
|
|
77
|
+
'leading-icon-size',
|
|
78
|
+
'outline-color',
|
|
79
|
+
'outline-width',
|
|
80
|
+
'supporting-text-color',
|
|
81
|
+
'supporting-text-type',
|
|
82
|
+
'trailing-icon-color',
|
|
83
|
+
'trailing-icon-size',
|
|
84
|
+
// go/keep-sorted end
|
|
20
85
|
);
|
|
21
86
|
|
|
22
|
-
$
|
|
87
|
+
$unsupported-tokens: (
|
|
88
|
+
// go/keep-sorted start
|
|
23
89
|
'input-text-font',
|
|
24
90
|
'input-text-line-height',
|
|
25
91
|
'input-text-size',
|
|
@@ -34,12 +100,22 @@ $_unsupported-tokens: (
|
|
|
34
100
|
'supporting-text-line-height',
|
|
35
101
|
'supporting-text-size',
|
|
36
102
|
'supporting-text-tracking',
|
|
37
|
-
'supporting-text-weight'
|
|
103
|
+
'supporting-text-weight' // go/keep-sorted end
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
$_default: (
|
|
107
|
+
'md-sys-color': md-sys-color.values-light(),
|
|
108
|
+
'md-sys-shape': md-sys-shape.values(),
|
|
109
|
+
'md-sys-typescale': md-sys-typescale.values(),
|
|
38
110
|
);
|
|
39
111
|
|
|
40
112
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
41
|
-
$tokens:
|
|
42
|
-
|
|
113
|
+
$tokens: values.validate(
|
|
114
|
+
md-comp-outlined-text-field.values($deps, $exclude-hardcoded-values),
|
|
115
|
+
$supported-tokens: $supported-tokens,
|
|
116
|
+
$unsupported-tokens: $unsupported-tokens
|
|
117
|
+
);
|
|
118
|
+
|
|
43
119
|
// TODO(b/271876162): remove when tokens compiler emits typescale tokens
|
|
44
120
|
$tokens: map.merge(
|
|
45
121
|
$tokens,
|
|
@@ -49,5 +125,6 @@ $_unsupported-tokens: (
|
|
|
49
125
|
'supporting-text-type': map.get($deps, 'md-sys-typescale', 'body-small'),
|
|
50
126
|
)
|
|
51
127
|
);
|
|
128
|
+
|
|
52
129
|
@return $tokens;
|
|
53
130
|
}
|
|
@@ -24,11 +24,23 @@ $_default: (
|
|
|
24
24
|
);
|
|
25
25
|
|
|
26
26
|
$_unsupported-tokens: (
|
|
27
|
+
'disabled-handle-opacity',
|
|
28
|
+
'label-container-elevation',
|
|
27
29
|
'label-label-text-font',
|
|
28
30
|
'label-label-text-line-height',
|
|
29
31
|
'label-label-text-size',
|
|
30
32
|
'label-label-text-tracking',
|
|
31
|
-
'label-label-text-weight'
|
|
33
|
+
'label-label-text-weight',
|
|
34
|
+
'track-elevation',
|
|
35
|
+
// for efficiency, tick marks are rendered as radial-gradients and
|
|
36
|
+
// have more limited customization
|
|
37
|
+
'with-tick-marks-active-container-opacity',
|
|
38
|
+
'with-tick-marks-container-shape',
|
|
39
|
+
'with-tick-marks-disabled-container-opacity',
|
|
40
|
+
'with-tick-marks-inactive-container-opacity',
|
|
41
|
+
// focus tokens no longer used.
|
|
42
|
+
'focus-state-layer-color',
|
|
43
|
+
'focus-state-layer-opacity'
|
|
32
44
|
);
|
|
33
45
|
|
|
34
46
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
@use 'sass:map';
|
|
8
8
|
// go/keep-sorted end
|
|
9
9
|
// go/keep-sorted start
|
|
10
|
-
@use '../sass/shape';
|
|
11
10
|
@use './md-sys-color';
|
|
12
11
|
@use './md-sys-elevation';
|
|
13
12
|
@use './md-sys-shape';
|
|
@@ -24,6 +23,8 @@ $supported-tokens: (
|
|
|
24
23
|
'disabled-label-text-color',
|
|
25
24
|
'disabled-label-text-opacity',
|
|
26
25
|
'disabled-leading-icon-color',
|
|
26
|
+
'disabled-outline-color',
|
|
27
|
+
'disabled-outline-opacity',
|
|
27
28
|
'elevated-container-color',
|
|
28
29
|
'elevated-container-elevation',
|
|
29
30
|
'elevated-container-shadow-color',
|
|
@@ -33,13 +34,9 @@ $supported-tokens: (
|
|
|
33
34
|
'elevated-focus-container-elevation',
|
|
34
35
|
'elevated-hover-container-elevation',
|
|
35
36
|
'elevated-pressed-container-elevation',
|
|
36
|
-
'flat-disabled-outline-color',
|
|
37
|
-
'flat-disabled-outline-opacity',
|
|
38
|
-
'flat-focus-outline-color',
|
|
39
|
-
'flat-outline-color',
|
|
40
|
-
'flat-outline-width',
|
|
41
37
|
'focus-label-text-color',
|
|
42
38
|
'focus-leading-icon-color',
|
|
39
|
+
'focus-outline-color',
|
|
43
40
|
'focus-state-layer-color',
|
|
44
41
|
'focus-state-layer-opacity',
|
|
45
42
|
'hover-label-text-color',
|
|
@@ -50,6 +47,8 @@ $supported-tokens: (
|
|
|
50
47
|
'label-text-color',
|
|
51
48
|
'label-text-type',
|
|
52
49
|
'leading-icon-color',
|
|
50
|
+
'outline-color',
|
|
51
|
+
'outline-width',
|
|
53
52
|
'pressed-label-text-color',
|
|
54
53
|
'pressed-leading-icon-color',
|
|
55
54
|
'pressed-state-layer-color',
|
|
@@ -59,12 +58,12 @@ $supported-tokens: (
|
|
|
59
58
|
|
|
60
59
|
$unsupported-tokens: (
|
|
61
60
|
// go/keep-sorted start
|
|
61
|
+
'container-elevation',
|
|
62
62
|
'dragged-container-elevation',
|
|
63
63
|
'dragged-label-text-color',
|
|
64
64
|
'dragged-leading-icon-color',
|
|
65
65
|
'dragged-state-layer-color',
|
|
66
66
|
'dragged-state-layer-opacity',
|
|
67
|
-
'flat-container-elevation',
|
|
68
67
|
'label-text-font',
|
|
69
68
|
'label-text-line-height',
|
|
70
69
|
'label-text-size',
|
|
@@ -73,20 +72,6 @@ $unsupported-tokens: (
|
|
|
73
72
|
// go/keep-sorted end
|
|
74
73
|
);
|
|
75
74
|
|
|
76
|
-
$renamed-tokens: (
|
|
77
|
-
// Remove "with-leading-icon-*" prefix (b/273534858)
|
|
78
|
-
'with-leading-icon-disabled-leading-icon-color': 'disabled-leading-icon-color',
|
|
79
|
-
'with-leading-icon-disabled-leading-icon-opacity':
|
|
80
|
-
'disabled-leading-icon-opacity',
|
|
81
|
-
'with-leading-icon-dragged-leading-icon-color': 'dragged-leading-icon-color',
|
|
82
|
-
'with-leading-icon-focus-leading-icon-color': 'focus-leading-icon-color',
|
|
83
|
-
'with-leading-icon-hover-leading-icon-color': 'hover-leading-icon-color',
|
|
84
|
-
'with-leading-icon-leading-icon-color': 'leading-icon-color',
|
|
85
|
-
'with-leading-icon-pressed-leading-icon-color': 'pressed-leading-icon-color',
|
|
86
|
-
// Rename "leading-icon-size" to "icon-size" (b/275577569)
|
|
87
|
-
'with-leading-icon-leading-icon-size': 'icon-size'
|
|
88
|
-
);
|
|
89
|
-
|
|
90
75
|
$_default: (
|
|
91
76
|
'md-sys-color': md-sys-color.values-light(),
|
|
92
77
|
'md-sys-elevation': md-sys-elevation.values(),
|
|
@@ -100,7 +85,29 @@ $_default: (
|
|
|
100
85
|
md-comp-suggestion-chip.values($deps, $exclude-hardcoded-values),
|
|
101
86
|
$supported-tokens: $supported-tokens,
|
|
102
87
|
$unsupported-tokens: $unsupported-tokens,
|
|
103
|
-
$renamed-tokens:
|
|
88
|
+
$renamed-tokens: (
|
|
89
|
+
// Remove "flat-*" prefix (b/275577569)
|
|
90
|
+
'flat-container-elevation': 'container-elevation',
|
|
91
|
+
'flat-disabled-outline-color': 'disabled-outline-color',
|
|
92
|
+
'flat-disabled-outline-opacity': 'disabled-outline-opacity',
|
|
93
|
+
'flat-focus-outline-color': 'focus-outline-color',
|
|
94
|
+
'flat-outline-color': 'outline-color',
|
|
95
|
+
'flat-outline-width': 'outline-width',
|
|
96
|
+
// Remove "with-*" prefixes (b/273534858)
|
|
97
|
+
'with-leading-icon-disabled-leading-icon-color':
|
|
98
|
+
'disabled-leading-icon-color',
|
|
99
|
+
'with-leading-icon-disabled-leading-icon-opacity':
|
|
100
|
+
'disabled-leading-icon-opacity',
|
|
101
|
+
'with-leading-icon-dragged-leading-icon-color':
|
|
102
|
+
'dragged-leading-icon-color',
|
|
103
|
+
'with-leading-icon-focus-leading-icon-color': 'focus-leading-icon-color',
|
|
104
|
+
'with-leading-icon-hover-leading-icon-color': 'hover-leading-icon-color',
|
|
105
|
+
'with-leading-icon-leading-icon-color': 'leading-icon-color',
|
|
106
|
+
'with-leading-icon-pressed-leading-icon-color':
|
|
107
|
+
'pressed-leading-icon-color',
|
|
108
|
+
// Rename "leading-icon-size" to "icon-size" (b/275577569)
|
|
109
|
+
'with-leading-icon-leading-icon-size': 'icon-size'
|
|
110
|
+
)
|
|
104
111
|
);
|
|
105
112
|
|
|
106
113
|
// TODO(b/271876162): remove when tokens compiler emits typescale tokens
|
|
@@ -111,13 +118,5 @@ $_default: (
|
|
|
111
118
|
)
|
|
112
119
|
);
|
|
113
120
|
|
|
114
|
-
@each $token, $value in $tokens {
|
|
115
|
-
$tokens: map.set(
|
|
116
|
-
$tokens,
|
|
117
|
-
$token,
|
|
118
|
-
var(--md-suggestion-chip-#{$token}, #{$value})
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
$tokens: shape.resolve-tokens($tokens, 'container-shape');
|
|
122
121
|
@return $tokens;
|
|
123
122
|
}
|
|
@@ -8,8 +8,83 @@
|
|
|
8
8
|
@use './md-sys-shape';
|
|
9
9
|
@use './md-sys-state';
|
|
10
10
|
@use './v0_172/md-comp-switch';
|
|
11
|
+
@use './values';
|
|
11
12
|
// go/keep-sorted end
|
|
12
13
|
|
|
14
|
+
$supported-tokens: (
|
|
15
|
+
// go/keep-sorted start
|
|
16
|
+
'disabled-selected-handle-color',
|
|
17
|
+
'disabled-selected-handle-opacity',
|
|
18
|
+
'disabled-selected-icon-color',
|
|
19
|
+
'disabled-selected-icon-opacity',
|
|
20
|
+
'disabled-selected-track-color',
|
|
21
|
+
'disabled-track-opacity',
|
|
22
|
+
'disabled-unselected-handle-color',
|
|
23
|
+
'disabled-unselected-handle-opacity',
|
|
24
|
+
'disabled-unselected-icon-color',
|
|
25
|
+
'disabled-unselected-icon-opacity',
|
|
26
|
+
'disabled-unselected-track-color',
|
|
27
|
+
'disabled-unselected-track-outline-color',
|
|
28
|
+
'handle-shape',
|
|
29
|
+
'pressed-handle-height',
|
|
30
|
+
'pressed-handle-width',
|
|
31
|
+
'selected-focus-handle-color',
|
|
32
|
+
'selected-focus-icon-color',
|
|
33
|
+
'selected-focus-state-layer-color',
|
|
34
|
+
'selected-focus-state-layer-opacity',
|
|
35
|
+
'selected-focus-track-color',
|
|
36
|
+
'selected-handle-color',
|
|
37
|
+
'selected-handle-height',
|
|
38
|
+
'selected-handle-width',
|
|
39
|
+
'selected-hover-handle-color',
|
|
40
|
+
'selected-hover-icon-color',
|
|
41
|
+
'selected-hover-state-layer-color',
|
|
42
|
+
'selected-hover-state-layer-opacity',
|
|
43
|
+
'selected-hover-track-color',
|
|
44
|
+
'selected-icon-color',
|
|
45
|
+
'selected-icon-size',
|
|
46
|
+
'selected-pressed-handle-color',
|
|
47
|
+
'selected-pressed-icon-color',
|
|
48
|
+
'selected-pressed-state-layer-color',
|
|
49
|
+
'selected-pressed-state-layer-opacity',
|
|
50
|
+
'selected-pressed-track-color',
|
|
51
|
+
'selected-track-color',
|
|
52
|
+
'state-layer-shape',
|
|
53
|
+
'state-layer-size',
|
|
54
|
+
'track-height',
|
|
55
|
+
'track-outline-width',
|
|
56
|
+
'track-shape',
|
|
57
|
+
'track-width',
|
|
58
|
+
'unselected-focus-handle-color',
|
|
59
|
+
'unselected-focus-icon-color',
|
|
60
|
+
'unselected-focus-state-layer-color',
|
|
61
|
+
'unselected-focus-state-layer-opacity',
|
|
62
|
+
'unselected-focus-track-color',
|
|
63
|
+
'unselected-focus-track-outline-color',
|
|
64
|
+
'unselected-handle-color',
|
|
65
|
+
'unselected-handle-height',
|
|
66
|
+
'unselected-handle-width',
|
|
67
|
+
'unselected-hover-handle-color',
|
|
68
|
+
'unselected-hover-icon-color',
|
|
69
|
+
'unselected-hover-state-layer-color',
|
|
70
|
+
'unselected-hover-state-layer-opacity',
|
|
71
|
+
'unselected-hover-track-color',
|
|
72
|
+
'unselected-hover-track-outline-color',
|
|
73
|
+
'unselected-icon-color',
|
|
74
|
+
'unselected-icon-size',
|
|
75
|
+
'unselected-pressed-handle-color',
|
|
76
|
+
'unselected-pressed-icon-color',
|
|
77
|
+
'unselected-pressed-state-layer-color',
|
|
78
|
+
'unselected-pressed-state-layer-opacity',
|
|
79
|
+
'unselected-pressed-track-color',
|
|
80
|
+
'unselected-pressed-track-outline-color',
|
|
81
|
+
'unselected-track-color',
|
|
82
|
+
'unselected-track-outline-color',
|
|
83
|
+
'with-icon-handle-height',
|
|
84
|
+
'with-icon-handle-width',
|
|
85
|
+
// go/keep-sorted end
|
|
86
|
+
);
|
|
87
|
+
|
|
13
88
|
$_default: (
|
|
14
89
|
'md-sys-color': md-sys-color.values-light(),
|
|
15
90
|
'md-sys-shape': md-sys-shape.values(),
|
|
@@ -17,5 +92,10 @@ $_default: (
|
|
|
17
92
|
);
|
|
18
93
|
|
|
19
94
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
20
|
-
|
|
95
|
+
$tokens: values.validate(
|
|
96
|
+
md-comp-switch.values($deps, $exclude-hardcoded-values),
|
|
97
|
+
$supported-tokens: $supported-tokens
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
@return $tokens;
|
|
21
101
|
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
@use 'sass:map';
|
|
8
8
|
// go/keep-sorted end
|
|
9
9
|
// go/keep-sorted start
|
|
10
|
-
@use '../sass/shape';
|
|
11
10
|
@use './md-sys-color';
|
|
12
11
|
@use './md-sys-shape';
|
|
13
12
|
@use './md-sys-state';
|
|
@@ -94,14 +93,5 @@ $_default: (
|
|
|
94
93
|
)
|
|
95
94
|
);
|
|
96
95
|
|
|
97
|
-
@each $token, $value in $tokens {
|
|
98
|
-
$tokens: map.set(
|
|
99
|
-
$tokens,
|
|
100
|
-
$token,
|
|
101
|
-
var(--md-text-button-#{$token}, #{$value})
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
$tokens: shape.resolve-tokens($tokens, 'container-shape');
|
|
106
96
|
@return $tokens;
|
|
107
97
|
}
|
package/tokens/_values.scss
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
@each $old-token, $new-token in $renamed-tokens {
|
|
52
52
|
@if not map.has-key($values, $old-token) {
|
|
53
|
-
@error 'values.validate($renamed-tokens: (\'#{$old-
|
|
53
|
+
@error 'values.validate($renamed-tokens: (\'#{$old-token}\': \'#{$new-token}\')) old-token in not the provided values.';
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
$values: map.set($values, $new-token, map.get($values, $old-token));
|
|
@@ -84,9 +84,7 @@
|
|
|
84
84
|
@warn 'values.validate($new-tokens: (\'#{$new-token}\': \'#{$new-value}\')) already exists. Has it been added to tokens? If so, remove this new token.';
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
$values: map.set($values, $new-token, $new-value);
|
|
89
|
-
}
|
|
87
|
+
$values: map.set($values, $new-token, $new-value);
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
|
package/types/aria.d.ts
CHANGED
|
@@ -2,12 +2,70 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
6
7
|
* @fileoverview Provides types for `ariaX` properties. These are required when
|
|
7
8
|
* typing `ariaX` properties since lit analyzer requires strict aria string
|
|
8
9
|
* types.
|
|
9
10
|
*/
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* An extension of `ARIAMixin` that enforces strict value types for aria
|
|
14
|
+
* properties.
|
|
15
|
+
*
|
|
16
|
+
* This is needed for correct typing in render functions with lit analyzer.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* render() {
|
|
20
|
+
* const {ariaLabel} = this as ARIAMixinStrict;
|
|
21
|
+
* return html`
|
|
22
|
+
* <button aria-label=${ariaLabel || nothing}>
|
|
23
|
+
* <slot></slot>
|
|
24
|
+
* </button>
|
|
25
|
+
* `;
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
export interface ARIAMixinStrict extends ARIAMixin {
|
|
29
|
+
ariaAtomic: 'true'|'false'|null;
|
|
30
|
+
ariaAutoComplete: 'none'|'inline'|'list'|'both'|null;
|
|
31
|
+
ariaBusy: 'true'|'false'|null;
|
|
32
|
+
ariaChecked: 'true'|'false'|null;
|
|
33
|
+
ariaColCount: `${number}`|null;
|
|
34
|
+
ariaColIndex: `${number}`|null;
|
|
35
|
+
ariaColSpan: `${number}`|null;
|
|
36
|
+
ariaCurrent: 'page'|'step'|'location'|'date'|'time'|'true'|'false'|null;
|
|
37
|
+
ariaDisabled: 'true'|'false'|null;
|
|
38
|
+
ariaExpanded: 'true'|'false'|null;
|
|
39
|
+
ariaHasPopup: 'false'|'true'|'menu'|'listbox'|'tree'|'grid'|'dialog'|null;
|
|
40
|
+
ariaHidden: 'true'|'false'|null;
|
|
41
|
+
ariaInvalid: 'true'|'false'|null;
|
|
42
|
+
ariaKeyShortcuts: string|null;
|
|
43
|
+
ariaLabel: string|null;
|
|
44
|
+
ariaLevel: `${number}`|null;
|
|
45
|
+
ariaLive: 'assertive'|'off'|'polite'|null;
|
|
46
|
+
ariaModal: 'true'|'false'|null;
|
|
47
|
+
ariaMultiLine: 'true'|'false'|null;
|
|
48
|
+
ariaMultiSelectable: 'true'|'false'|null;
|
|
49
|
+
ariaOrientation: 'horizontal'|'vertical'|'undefined'|null;
|
|
50
|
+
ariaPlaceholder: string|null;
|
|
51
|
+
ariaPosInSet: `${number}`|null;
|
|
52
|
+
ariaPressed: 'true'|'false'|null;
|
|
53
|
+
ariaReadOnly: 'true'|'false'|null;
|
|
54
|
+
ariaRequired: 'true'|'false'|null;
|
|
55
|
+
ariaRoleDescription: string|null;
|
|
56
|
+
ariaRowCount: `${number}`|null;
|
|
57
|
+
ariaRowIndex: `${number}`|null;
|
|
58
|
+
ariaRowSpan: `${number}`|null;
|
|
59
|
+
ariaSelected: 'true'|'false'|null;
|
|
60
|
+
ariaSetSize: `${number}`|null;
|
|
61
|
+
ariaSort: 'ascending'|'descending'|'none'|'other'|null;
|
|
62
|
+
ariaValueMax: `${number}`|null;
|
|
63
|
+
ariaValueMin: `${number}`|null;
|
|
64
|
+
ariaValueNow: `${number}`|null;
|
|
65
|
+
ariaValueText: string|null;
|
|
66
|
+
role: ARIARole|null;
|
|
67
|
+
}
|
|
68
|
+
|
|
11
69
|
/**
|
|
12
70
|
* Valid values for `aria-expanded`.
|
|
13
71
|
*/
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { LitElement } from 'lit';
|
|
7
|
-
import { ActionController, ActionControllerHost, BeginPressConfig, EndPressConfig } from '../controller/action-controller.js';
|
|
8
|
-
export { BeginPressConfig, EndPressConfig };
|
|
9
|
-
/**
|
|
10
|
-
* @soyCompatible
|
|
11
|
-
*
|
|
12
|
-
* ActionElement is a base class that provides a handy starting point for using
|
|
13
|
-
* ActionController. Subclasses should add the event handlers on the interactive
|
|
14
|
-
* node in the template, and override `beginPress` and `endPress` to handle
|
|
15
|
-
* pressed state, ripple interaction, and any other "press" interaction.
|
|
16
|
-
*/
|
|
17
|
-
export declare abstract class ActionElement extends LitElement implements ActionControllerHost {
|
|
18
|
-
/**
|
|
19
|
-
* ActionController needs to know if the component is disabled, so subclasses
|
|
20
|
-
* must implement a `disabled` property.
|
|
21
|
-
*/
|
|
22
|
-
abstract disabled: boolean;
|
|
23
|
-
protected actionController: ActionController;
|
|
24
|
-
/**
|
|
25
|
-
* Hook method called when we've confirmed that the gesture is intended to be
|
|
26
|
-
* a press. Subclasses should change the visual state of the control to
|
|
27
|
-
* 'active' at this point, and possibly fire an event. Subclasses should
|
|
28
|
-
* override this method if more needs to be done.
|
|
29
|
-
*
|
|
30
|
-
* @param options `positionEvent` is the Event that is considered the
|
|
31
|
-
* beginning of the press. Null if this was a keyboard interaction.
|
|
32
|
-
*/
|
|
33
|
-
beginPress(options: BeginPressConfig): void;
|
|
34
|
-
/**
|
|
35
|
-
* Hook method called when the control goes from a pressed to unpressed
|
|
36
|
-
* state.
|
|
37
|
-
*
|
|
38
|
-
* @param options If `cancelled` is true, means the user canceled the action.
|
|
39
|
-
* Subclasses which trigger events on endPress() should check the value
|
|
40
|
-
* of this flag, and modify their behavior accordingly.
|
|
41
|
-
*/
|
|
42
|
-
endPress({ cancelled, actionData }: EndPressConfig): void;
|
|
43
|
-
/**
|
|
44
|
-
* Hook method for the ActionController.
|
|
45
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
46
|
-
* template element with `@pointerdown="${this.handlePointerDown}"`
|
|
47
|
-
*/
|
|
48
|
-
handlePointerDown(e: PointerEvent): void;
|
|
49
|
-
/**
|
|
50
|
-
* Hook method for the ActionController.
|
|
51
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
52
|
-
* template element with `@pointerup="${this.handlePointerUp}"`
|
|
53
|
-
*/
|
|
54
|
-
handlePointerUp(e: PointerEvent): void;
|
|
55
|
-
/**
|
|
56
|
-
* Hook method for the ActionController.
|
|
57
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
58
|
-
* template element with `@pointercancel="${this.handlePointerCancel}"`
|
|
59
|
-
*/
|
|
60
|
-
handlePointerCancel(e: PointerEvent): void;
|
|
61
|
-
/**
|
|
62
|
-
* Hook method for the ActionController.
|
|
63
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
64
|
-
* template element with `@pointerleave="${this.handlePointerleave}"`
|
|
65
|
-
*/
|
|
66
|
-
handlePointerLeave(e: PointerEvent): void;
|
|
67
|
-
/**
|
|
68
|
-
* Hook method for the ActionController.
|
|
69
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
70
|
-
* template element with `@click="${this.handleClick}"`
|
|
71
|
-
*/
|
|
72
|
-
handleClick(e: MouseEvent): void;
|
|
73
|
-
/**
|
|
74
|
-
* Hook method for the ActionController.
|
|
75
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
76
|
-
* template element with `@contextmenu="${this.handleContextMenu}"`
|
|
77
|
-
*/
|
|
78
|
-
handleContextMenu(): void;
|
|
79
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { LitElement } from 'lit';
|
|
7
|
-
import { ActionController } from '../controller/action-controller.js';
|
|
8
|
-
/**
|
|
9
|
-
* @soyCompatible
|
|
10
|
-
*
|
|
11
|
-
* ActionElement is a base class that provides a handy starting point for using
|
|
12
|
-
* ActionController. Subclasses should add the event handlers on the interactive
|
|
13
|
-
* node in the template, and override `beginPress` and `endPress` to handle
|
|
14
|
-
* pressed state, ripple interaction, and any other "press" interaction.
|
|
15
|
-
*/
|
|
16
|
-
export class ActionElement extends LitElement {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.actionController = new ActionController(this);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Hook method called when we've confirmed that the gesture is intended to be
|
|
23
|
-
* a press. Subclasses should change the visual state of the control to
|
|
24
|
-
* 'active' at this point, and possibly fire an event. Subclasses should
|
|
25
|
-
* override this method if more needs to be done.
|
|
26
|
-
*
|
|
27
|
-
* @param options `positionEvent` is the Event that is considered the
|
|
28
|
-
* beginning of the press. Null if this was a keyboard interaction.
|
|
29
|
-
*/
|
|
30
|
-
beginPress(options) { }
|
|
31
|
-
/**
|
|
32
|
-
* Hook method called when the control goes from a pressed to unpressed
|
|
33
|
-
* state.
|
|
34
|
-
*
|
|
35
|
-
* @param options If `cancelled` is true, means the user canceled the action.
|
|
36
|
-
* Subclasses which trigger events on endPress() should check the value
|
|
37
|
-
* of this flag, and modify their behavior accordingly.
|
|
38
|
-
*/
|
|
39
|
-
endPress({ cancelled, actionData }) {
|
|
40
|
-
if (!cancelled) {
|
|
41
|
-
this.dispatchEvent(new CustomEvent('action', {
|
|
42
|
-
detail: actionData,
|
|
43
|
-
bubbles: true,
|
|
44
|
-
composed: true,
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Hook method for the ActionController.
|
|
50
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
51
|
-
* template element with `@pointerdown="${this.handlePointerDown}"`
|
|
52
|
-
*/
|
|
53
|
-
handlePointerDown(e) {
|
|
54
|
-
this.actionController.pointerDown(e);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Hook method for the ActionController.
|
|
58
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
59
|
-
* template element with `@pointerup="${this.handlePointerUp}"`
|
|
60
|
-
*/
|
|
61
|
-
handlePointerUp(e) {
|
|
62
|
-
this.actionController.pointerUp(e);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Hook method for the ActionController.
|
|
66
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
67
|
-
* template element with `@pointercancel="${this.handlePointerCancel}"`
|
|
68
|
-
*/
|
|
69
|
-
handlePointerCancel(e) {
|
|
70
|
-
this.actionController.pointerCancel(e);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Hook method for the ActionController.
|
|
74
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
75
|
-
* template element with `@pointerleave="${this.handlePointerleave}"`
|
|
76
|
-
*/
|
|
77
|
-
handlePointerLeave(e) {
|
|
78
|
-
this.actionController.pointerLeave(e);
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Hook method for the ActionController.
|
|
82
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
83
|
-
* template element with `@click="${this.handleClick}"`
|
|
84
|
-
*/
|
|
85
|
-
handleClick(e) {
|
|
86
|
-
this.actionController.click(e);
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Hook method for the ActionController.
|
|
90
|
-
* Subclasses should add this method as an event handler on the interactive
|
|
91
|
-
* template element with `@contextmenu="${this.handleContextMenu}"`
|
|
92
|
-
*/
|
|
93
|
-
handleContextMenu() {
|
|
94
|
-
this.actionController.contextMenu();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
//# sourceMappingURL=action-element.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-element.js","sourceRoot":"","sources":["action-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,KAAK,CAAC;AAE/B,OAAO,EAAC,gBAAgB,EAAyD,MAAM,oCAAoC,CAAC;AAI5H;;;;;;;GAOG;AACH,MAAM,OAAgB,aAAc,SAAQ,UAAU;IAAtD;;QAQY,qBAAgB,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAoF1D,CAAC;IAlFC;;;;;;;;OAQG;IACH,UAAU,CAAC,OAAyB,IAAG,CAAC;IAExC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAC,SAAS,EAAE,UAAU,EAAiB;QAC9C,IAAI,CAAC,SAAS,EAAE;YACd,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE;gBAC3C,MAAM,EAAE,UAAU;gBAClB,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,IAAI;aACf,CAAC,CAAC,CAAC;SACL;IACH,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,CAAe;QAC/B,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,CAAe;QAC7B,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC;IAED;;;;OAIG;IACH,mBAAmB,CAAC,CAAe;QACjC,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;IAED;;;;OAIG;IACH,kBAAkB,CAAC,CAAe;QAChC,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,CAAa;QACvB,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACH,iBAAiB;QACf,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {LitElement} from 'lit';\n\nimport {ActionController, ActionControllerHost, BeginPressConfig, EndPressConfig} from '../controller/action-controller.js';\n\nexport {BeginPressConfig, EndPressConfig};\n\n/**\n * @soyCompatible\n *\n * ActionElement is a base class that provides a handy starting point for using\n * ActionController. Subclasses should add the event handlers on the interactive\n * node in the template, and override `beginPress` and `endPress` to handle\n * pressed state, ripple interaction, and any other \"press\" interaction.\n */\nexport abstract class ActionElement extends LitElement implements\n ActionControllerHost {\n /**\n * ActionController needs to know if the component is disabled, so subclasses\n * must implement a `disabled` property.\n */\n abstract disabled: boolean;\n\n protected actionController = new ActionController(this);\n\n /**\n * Hook method called when we've confirmed that the gesture is intended to be\n * a press. Subclasses should change the visual state of the control to\n * 'active' at this point, and possibly fire an event. Subclasses should\n * override this method if more needs to be done.\n *\n * @param options `positionEvent` is the Event that is considered the\n * beginning of the press. Null if this was a keyboard interaction.\n */\n beginPress(options: BeginPressConfig) {}\n\n /**\n * Hook method called when the control goes from a pressed to unpressed\n * state.\n *\n * @param options If `cancelled` is true, means the user canceled the action.\n * Subclasses which trigger events on endPress() should check the value\n * of this flag, and modify their behavior accordingly.\n */\n endPress({cancelled, actionData}: EndPressConfig) {\n if (!cancelled) {\n this.dispatchEvent(new CustomEvent('action', {\n detail: actionData,\n bubbles: true,\n composed: true,\n }));\n }\n }\n\n /**\n * Hook method for the ActionController.\n * Subclasses should add this method as an event handler on the interactive\n * template element with `@pointerdown=\"${this.handlePointerDown}\"`\n */\n handlePointerDown(e: PointerEvent) {\n this.actionController.pointerDown(e);\n }\n\n /**\n * Hook method for the ActionController.\n * Subclasses should add this method as an event handler on the interactive\n * template element with `@pointerup=\"${this.handlePointerUp}\"`\n */\n handlePointerUp(e: PointerEvent) {\n this.actionController.pointerUp(e);\n }\n\n /**\n * Hook method for the ActionController.\n * Subclasses should add this method as an event handler on the interactive\n * template element with `@pointercancel=\"${this.handlePointerCancel}\"`\n */\n handlePointerCancel(e: PointerEvent) {\n this.actionController.pointerCancel(e);\n }\n\n /**\n * Hook method for the ActionController.\n * Subclasses should add this method as an event handler on the interactive\n * template element with `@pointerleave=\"${this.handlePointerleave}\"`\n */\n handlePointerLeave(e: PointerEvent) {\n this.actionController.pointerLeave(e);\n }\n\n /**\n * Hook method for the ActionController.\n * Subclasses should add this method as an event handler on the interactive\n * template element with `@click=\"${this.handleClick}\"`\n */\n handleClick(e: MouseEvent) {\n this.actionController.click(e);\n }\n\n /**\n * Hook method for the ActionController.\n * Subclasses should add this method as an event handler on the interactive\n * template element with `@contextmenu=\"${this.handleContextMenu}\"`\n */\n handleContextMenu() {\n this.actionController.contextMenu();\n }\n}\n"]}
|