@material/web 1.0.0-pre.4 → 1.0.0-pre.6
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 +5 -5
- package/badge/lib/_badge.scss +2 -10
- package/badge/lib/badge-styles.css.js +1 -1
- package/badge/lib/badge-styles.css.js.map +1 -1
- package/button/lib/_elevated-button.scss +5 -30
- package/button/lib/_elevation.scss +8 -29
- package/button/lib/_filled-button.scss +4 -31
- package/button/lib/_icon.scss +1 -0
- package/button/lib/_outlined-button.scss +6 -23
- package/button/lib/_shared.scss +23 -52
- package/button/lib/_text-button.scss +8 -34
- package/button/lib/_tonal-button.scss +5 -28
- package/button/lib/button.d.ts +16 -1
- package/button/lib/button.js +41 -15
- package/button/lib/button.js.map +1 -1
- package/button/lib/elevated-button.d.ts +3 -0
- package/button/lib/elevated-button.js +4 -2
- 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 +3 -1
- package/button/lib/filled-button.js +4 -3
- 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 +3 -0
- package/button/lib/outlined-button.js +3 -1
- 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 +3 -0
- package/button/lib/text-button.js +3 -1
- 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 +3 -1
- package/button/lib/tonal-button.js +4 -3
- 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 +1 -2
- package/checkbox/lib/checkbox-styles.css.js +1 -1
- package/checkbox/lib/checkbox-styles.css.js.map +1 -1
- package/chips/_assist-chip.scss +6 -0
- package/chips/_suggestion-chip.scss +6 -0
- package/chips/assist-chip.d.ts +20 -0
- package/chips/assist-chip.js +24 -0
- package/chips/assist-chip.js.map +1 -0
- package/chips/lib/_assist-chip.scss +27 -0
- package/chips/lib/_shared.scss +213 -0
- package/chips/lib/_suggestion-chip.scss +30 -0
- package/chips/lib/assist-chip.d.ts +11 -0
- package/chips/lib/assist-chip.js +12 -0
- package/chips/lib/assist-chip.js.map +1 -0
- package/chips/lib/assist-styles.css.js +9 -0
- package/chips/lib/assist-styles.css.js.map +1 -0
- package/{menusurface/lib/menu-surface-styles.scss → chips/lib/assist-styles.scss} +3 -3
- package/chips/lib/chip.d.ts +29 -0
- package/chips/lib/chip.js +110 -0
- package/chips/lib/chip.js.map +1 -0
- package/chips/lib/shared-styles.css.js +9 -0
- package/chips/lib/shared-styles.css.js.map +1 -0
- package/{autocomplete → chips}/lib/shared-styles.scss +1 -1
- package/chips/lib/suggestion-chip.d.ts +11 -0
- package/chips/lib/suggestion-chip.js +12 -0
- package/chips/lib/suggestion-chip.js.map +1 -0
- package/chips/lib/suggestion-styles.css.js +9 -0
- package/chips/lib/suggestion-styles.css.js.map +1 -0
- package/{autocomplete/lib/autocompletelist/autocomplete-list-styles.scss → chips/lib/suggestion-styles.scss} +3 -3
- package/chips/suggestion-chip.d.ts +20 -0
- package/chips/suggestion-chip.js +24 -0
- package/chips/suggestion-chip.js.map +1 -0
- package/circularprogress/_circular-progress.scss +6 -0
- package/circularprogress/circular-progress.d.ts +24 -0
- package/circularprogress/circular-progress.js +27 -0
- package/circularprogress/circular-progress.js.map +1 -0
- package/circularprogress/harness.d.ts +12 -0
- package/circularprogress/harness.js +12 -0
- package/circularprogress/harness.js.map +1 -0
- package/circularprogress/lib/_circular-progress.scss +282 -0
- package/circularprogress/lib/circular-progress-styles.css.js +9 -0
- package/circularprogress/lib/circular-progress-styles.css.js.map +1 -0
- package/circularprogress/lib/circular-progress-styles.scss +8 -0
- package/circularprogress/lib/circular-progress.d.ts +29 -0
- package/circularprogress/lib/circular-progress.js +98 -0
- package/circularprogress/lib/circular-progress.js.map +1 -0
- package/dialog/lib/_dialog.scss +5 -8
- package/dialog/lib/_tokens.scss +1 -2
- package/dialog/lib/dialog-styles.css.js +1 -1
- package/dialog/lib/dialog-styles.css.js.map +1 -1
- package/dialog/lib/dialog.js +1 -1
- package/dialog/lib/dialog.js.map +1 -1
- package/elevation/lib/_elevation.scss +14 -69
- 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 +0 -8
- package/elevation/lib/elevation.js +1 -25
- package/elevation/lib/elevation.js.map +1 -1
- package/fab/lib/_fab-extended.scss +3 -10
- package/fab/lib/_fab.scss +0 -3
- package/fab/lib/_shared.scss +19 -44
- package/fab/lib/fab-extended-styles.css.js +1 -1
- package/fab/lib/fab-extended-styles.css.js.map +1 -1
- package/fab/lib/fab-shared-styles.css.js +1 -1
- package/fab/lib/fab-shared-styles.css.js.map +1 -1
- package/fab/lib/fab-shared.d.ts +0 -1
- package/fab/lib/fab-shared.js +2 -8
- package/fab/lib/fab-shared.js.map +1 -1
- package/fab/lib/fab-styles.css.js +1 -1
- package/fab/lib/fab-styles.css.js.map +1 -1
- package/field/lib/field.d.ts +4 -1
- package/field/lib/field.js +7 -0
- 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/lib/_focus-ring.scss +30 -14
- package/focus/lib/focus-ring-styles.css.js +1 -1
- package/focus/lib/focus-ring-styles.css.js.map +1 -1
- package/focus/strong-focus.d.ts +11 -0
- package/focus/strong-focus.js +11 -1
- package/focus/strong-focus.js.map +1 -1
- package/iconbutton/filled-icon-button.js +1 -0
- package/iconbutton/filled-icon-button.js.map +1 -1
- package/iconbutton/filled-tonal-icon-button.js +1 -0
- package/iconbutton/filled-tonal-icon-button.js.map +1 -1
- package/iconbutton/harness.d.ts +1 -2
- package/iconbutton/harness.js.map +1 -1
- package/iconbutton/lib/_filled-icon-button.scss +1 -12
- package/iconbutton/lib/_filled-tonal-icon-button.scss +1 -12
- package/iconbutton/lib/_outlined-icon-button.scss +1 -13
- package/iconbutton/lib/_shared.scss +10 -6
- package/iconbutton/lib/_standard-icon-button.scss +5 -12
- 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 +33 -2
- package/iconbutton/lib/icon-button.js +104 -18
- 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/list/harness.d.ts +1 -0
- package/list/harness.js +1 -0
- package/list/harness.js.map +1 -1
- package/list/lib/_list.scss +15 -9
- package/list/lib/list-styles.css.js +1 -1
- package/list/lib/list-styles.css.js.map +1 -1
- package/list/lib/list.js +2 -0
- package/list/lib/list.js.map +1 -1
- package/list/lib/listitem/_list-item.scss +50 -57
- package/list/lib/listitem/forced-colors-styles.css.js +9 -0
- package/list/lib/listitem/forced-colors-styles.css.js.map +1 -0
- package/list/lib/listitem/forced-colors-styles.scss +23 -0
- 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 +4 -3
- package/list/lib/listitem/list-item.js +7 -4
- package/list/lib/listitem/list-item.js.map +1 -1
- package/list/list-item-link.js +2 -1
- package/list/list-item-link.js.map +1 -1
- package/list/list-item.js +2 -1
- package/list/list-item.js.map +1 -1
- package/menu/harness.d.ts +1 -0
- package/menu/harness.js +1 -0
- package/menu/harness.js.map +1 -1
- package/menu/lib/_menu.scss +11 -19
- package/menu/lib/forced-colors-styles.css.js +9 -0
- package/menu/lib/forced-colors-styles.css.js.map +1 -0
- package/menu/lib/forced-colors-styles.scss +12 -0
- 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 +34 -10
- package/menu/lib/menu.js +116 -30
- package/menu/lib/menu.js.map +1 -1
- package/menu/lib/menuitem/_menu-item.scss +5 -11
- package/menu/lib/menuitem/forced-colors-styles.css.js +9 -0
- package/menu/lib/menuitem/forced-colors-styles.css.js.map +1 -0
- package/menu/lib/menuitem/forced-colors-styles.scss +22 -0
- 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.js +1 -1
- package/menu/lib/menuitem/menu-item.js.map +1 -1
- package/menu/lib/menuitemlink/menu-item-link.js +2 -1
- package/menu/lib/menuitemlink/menu-item-link.js.map +1 -1
- package/menu/lib/shared.d.ts +26 -0
- package/menu/lib/shared.js +39 -0
- package/menu/lib/shared.js.map +1 -1
- package/menu/lib/submenuitem/sub-menu-item.d.ts +8 -0
- package/menu/lib/submenuitem/sub-menu-item.js +21 -2
- package/menu/lib/submenuitem/sub-menu-item.js.map +1 -1
- package/menu/lib/surfacePositionController.d.ts +10 -2
- package/menu/lib/surfacePositionController.js +6 -2
- package/menu/lib/surfacePositionController.js.map +1 -1
- package/menu/lib/typeaheadController.d.ts +15 -2
- package/menu/lib/typeaheadController.js +27 -17
- package/menu/lib/typeaheadController.js.map +1 -1
- package/menu/menu-item-link.js +3 -1
- package/menu/menu-item-link.js.map +1 -1
- package/menu/menu-item.js +4 -2
- package/menu/menu-item.js.map +1 -1
- package/menu/menu.js +2 -1
- package/menu/menu.js.map +1 -1
- package/menu/sub-menu-item.js +3 -1
- package/menu/sub-menu-item.js.map +1 -1
- package/navigationbar/lib/_navigation-bar.scss +4 -10
- 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.js +2 -2
- package/navigationbar/lib/navigation-bar.js.map +1 -1
- package/navigationdrawer/lib/_navigation-drawer-modal.scss +10 -14
- package/navigationdrawer/lib/_navigation-drawer.scss +9 -17
- package/navigationdrawer/lib/_shared.scss +0 -9
- 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-styles.css.js +1 -1
- package/navigationdrawer/lib/navigation-drawer-styles.css.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer.js +1 -1
- package/navigationdrawer/lib/navigation-drawer.js.map +1 -1
- package/navigationtab/lib/_navigation-tab.scss +4 -10
- package/navigationtab/lib/navigation-tab-styles.css.js +1 -1
- package/navigationtab/lib/navigation-tab-styles.css.js.map +1 -1
- package/package.json +2 -1
- package/radio/lib/_radio.scss +1 -2
- package/radio/lib/radio-styles.css.js +1 -1
- package/radio/lib/radio-styles.css.js.map +1 -1
- package/ripple/lib/_md-comp-ripple.scss +3 -3
- package/ripple/lib/ripple-styles.css.js +1 -1
- package/ripple/lib/ripple-styles.css.js.map +1 -1
- package/segmentedbutton/lib/_shared.scss +0 -2
- package/segmentedbutton/lib/outlined-styles.css.js +1 -1
- package/segmentedbutton/lib/outlined-styles.css.js.map +1 -1
- package/segmentedbuttonset/lib/outlined-styles.css.js +1 -1
- package/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -1
- package/slider/lib/_slider.scss +2 -11
- package/slider/lib/_tokens.scss +7 -8
- package/slider/lib/slider-styles.css.js +1 -1
- package/slider/lib/slider-styles.css.js.map +1 -1
- package/slider/lib/slider.js +1 -1
- package/slider/lib/slider.js.map +1 -1
- package/switch/lib/switch-styles.css.js +1 -1
- package/switch/lib/switch-styles.css.js.map +1 -1
- package/textfield/lib/_filled-text-field.scss +1 -7
- package/textfield/lib/_outlined-text-field.scss +1 -7
- package/textfield/lib/filled-styles.css.js +1 -1
- package/textfield/lib/filled-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/tokens/_index.scss +104 -2
- package/tokens/_md-comp-assist-chip.scss +123 -0
- package/tokens/_md-comp-badge.scss +41 -0
- package/tokens/_md-comp-banner.scss +23 -0
- package/tokens/_md-comp-bottom-app-bar.scss +21 -0
- package/tokens/_md-comp-carousel-item.scss +23 -0
- package/tokens/_md-comp-checkbox.scss +21 -0
- package/tokens/_md-comp-circular-progress-indicator.scss +37 -0
- package/tokens/_md-comp-data-table.scss +23 -0
- package/tokens/_md-comp-date-input-modal.scss +23 -0
- package/tokens/_md-comp-date-picker-docked.scss +25 -0
- package/tokens/_md-comp-date-picker-modal.scss +25 -0
- package/tokens/_md-comp-dialog.scss +52 -0
- package/tokens/_md-comp-divider.scss +17 -0
- package/tokens/_md-comp-elevated-button.scss +118 -0
- package/tokens/_md-comp-elevated-card.scss +23 -0
- package/tokens/_md-comp-elevation.scss +28 -0
- package/tokens/_md-comp-extended-fab-branded.scss +45 -0
- package/tokens/_md-comp-extended-fab-primary.scss +45 -0
- package/tokens/_md-comp-extended-fab-secondary.scss +48 -0
- package/tokens/_md-comp-extended-fab-surface.scss +45 -0
- package/tokens/_md-comp-extended-fab-tertiary.scss +48 -0
- package/tokens/_md-comp-fab-branded-large.scss +23 -0
- package/tokens/_md-comp-fab-branded.scss +23 -0
- package/tokens/_md-comp-fab-primary-large.scss +23 -0
- package/tokens/_md-comp-fab-primary-small.scss +23 -0
- package/tokens/_md-comp-fab-primary.scss +23 -0
- package/tokens/_md-comp-fab-secondary-large.scss +23 -0
- package/tokens/_md-comp-fab-secondary-small.scss +23 -0
- package/tokens/_md-comp-fab-secondary.scss +23 -0
- package/tokens/_md-comp-fab-surface-large.scss +23 -0
- package/tokens/_md-comp-fab-surface-small.scss +23 -0
- package/tokens/_md-comp-fab-surface.scss +23 -0
- package/tokens/_md-comp-fab-tertiary-large.scss +23 -0
- package/tokens/_md-comp-fab-tertiary-small.scss +23 -0
- package/tokens/_md-comp-fab-tertiary.scss +23 -0
- package/tokens/_md-comp-filled-autocomplete.scss +25 -0
- package/tokens/_md-comp-filled-button.scss +118 -0
- package/tokens/_md-comp-filled-card.scss +23 -0
- package/tokens/_md-comp-filled-icon-button.scss +21 -0
- package/tokens/_md-comp-filled-menu-button.scss +25 -0
- package/tokens/_md-comp-filled-select.scss +25 -0
- package/tokens/_md-comp-filled-text-field.scss +55 -0
- package/tokens/_md-comp-filled-tonal-button.scss +119 -0
- package/tokens/_md-comp-filled-tonal-icon-button.scss +24 -0
- package/tokens/_md-comp-filter-chip.scss +228 -0
- package/tokens/_md-comp-focus-ring.scss +46 -0
- package/tokens/_md-comp-full-screen-dialog.scss +25 -0
- package/tokens/_md-comp-icon-button.scss +21 -0
- package/tokens/_md-comp-input-chip.scss +221 -0
- package/tokens/_md-comp-linear-progress-indicator.scss +22 -0
- package/tokens/_md-comp-list.scss +75 -0
- package/tokens/_md-comp-menu.scss +21 -0
- package/tokens/_md-comp-navigation-bar.scss +25 -0
- package/tokens/_md-comp-navigation-drawer.scss +25 -0
- package/tokens/_md-comp-navigation-rail.scss +25 -0
- package/tokens/_md-comp-outlined-autocomplete.scss +28 -0
- package/tokens/_md-comp-outlined-button.scss +114 -0
- package/tokens/_md-comp-outlined-card.scss +23 -0
- package/tokens/_md-comp-outlined-icon-button.scss +21 -0
- package/tokens/_md-comp-outlined-menu-button.scss +23 -0
- package/tokens/_md-comp-outlined-segmented-button.scss +47 -0
- package/tokens/_md-comp-outlined-select.scss +25 -0
- package/tokens/_md-comp-outlined-text-field.scss +53 -0
- package/tokens/_md-comp-plain-tooltip.scss +21 -0
- package/tokens/_md-comp-primary-navigation-tab.scss +50 -0
- package/tokens/_md-comp-radio-button.scss +19 -0
- package/tokens/_md-comp-rich-tooltip.scss +25 -0
- package/tokens/_md-comp-scrim.scss +17 -0
- package/tokens/_md-comp-search-bar.scss +25 -0
- package/tokens/_md-comp-search-view.scss +23 -0
- package/tokens/_md-comp-secondary-navigation-tab.scss +49 -0
- package/tokens/_md-comp-sheet-bottom.scss +21 -0
- package/tokens/_md-comp-sheet-floating.scss +21 -0
- package/tokens/_md-comp-sheet-side.scss +25 -0
- package/tokens/_md-comp-slider.scss +47 -0
- package/tokens/_md-comp-snackbar.scss +25 -0
- package/tokens/_md-comp-standard-menu-button.scss +23 -0
- package/tokens/_md-comp-suggestion-chip.scss +123 -0
- package/tokens/_md-comp-switch.scss +21 -0
- package/tokens/_md-comp-test-table.scss +31 -0
- package/tokens/_md-comp-text-button.scss +107 -0
- package/tokens/_md-comp-time-input.scss +25 -0
- package/tokens/_md-comp-time-picker.scss +25 -0
- package/tokens/_md-comp-top-app-bar-large.scss +23 -0
- package/tokens/_md-comp-top-app-bar-medium.scss +23 -0
- package/tokens/_md-comp-top-app-bar-small-centered.scss +26 -0
- package/tokens/_md-comp-top-app-bar-small.scss +23 -0
- package/tokens/_md-ref-palette.scss +12 -0
- package/tokens/_md-ref-typeface.scss +34 -0
- package/tokens/_md-sys-color.scss +25 -0
- package/tokens/_md-sys-elevation.scss +30 -0
- package/tokens/_md-sys-motion.scss +12 -0
- package/tokens/_md-sys-shape.scss +12 -0
- package/tokens/_md-sys-state.scss +12 -0
- package/tokens/_md-sys-typescale.scss +51 -0
- package/tokens/_values.scss +111 -0
- package/tokens/{v0_161 → v0_172}/_md-comp-assist-chip.scss +3 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-badge.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-banner.scss +2 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-bottom-app-bar.scss +3 -5
- package/tokens/{v0_160 → v0_172}/_md-comp-carousel-item.scss +1 -3
- package/tokens/{v0_161 → v0_172}/_md-comp-checkbox.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-circular-progress-indicator.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-data-table.scss +2 -2
- package/tokens/{v0_161 → v0_172}/_md-comp-date-input-modal.scss +2 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-date-picker-docked.scss +2 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-date-picker-modal.scss +2 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-dialog.scss +2 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-divider.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-elevated-button.scss +2 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-elevated-card.scss +2 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-extended-fab-branded.scss +4 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-extended-fab-primary.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-extended-fab-secondary.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-extended-fab-surface.scss +4 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-extended-fab-tertiary.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-fab-branded-large.scss +4 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-fab-branded.scss +4 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-fab-primary-large.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-fab-primary-small.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-fab-primary.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-fab-secondary-large.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-fab-secondary-small.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-fab-secondary.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-fab-surface-large.scss +4 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-fab-surface-small.scss +4 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-fab-surface.scss +4 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-fab-tertiary-large.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-fab-tertiary-small.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-fab-tertiary.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-filled-autocomplete.scss +4 -6
- package/tokens/{v0_161 → v0_172}/_md-comp-filled-button.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-filled-card.scss +3 -2
- package/tokens/{v0_161 → v0_172}/_md-comp-filled-icon-button.scss +2 -2
- package/tokens/{v0_161 → v0_172}/_md-comp-filled-menu-button.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-filled-select.scss +4 -6
- package/tokens/{v0_161 → v0_172}/_md-comp-filled-text-field.scss +3 -2
- package/tokens/{v0_161 → v0_172}/_md-comp-filled-tonal-button.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-filled-tonal-icon-button.scss +2 -2
- package/tokens/{v0_160 → v0_172}/_md-comp-filter-chip.scss +2 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-full-screen-dialog.scss +3 -3
- package/tokens/{v0_160 → v0_172}/_md-comp-icon-button.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-input-chip.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-linear-progress-indicator.scss +2 -2
- package/tokens/{v0_160 → v0_172}/_md-comp-list.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-menu.scss +3 -5
- package/tokens/{v0_161 → v0_172}/_md-comp-navigation-bar.scss +2 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-navigation-drawer.scss +4 -4
- package/tokens/{v0_160/_md-comp-navigation-bar.scss → v0_172/_md-comp-navigation-rail.scss} +9 -7
- package/tokens/{v0_160 → v0_172}/_md-comp-outlined-autocomplete.scss +4 -6
- package/tokens/{v0_161 → v0_172}/_md-comp-outlined-button.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-outlined-card.scss +1 -3
- package/tokens/{v0_161 → v0_172}/_md-comp-outlined-icon-button.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-outlined-menu-button.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-outlined-segmented-button.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-outlined-select.scss +4 -6
- package/tokens/{v0_161 → v0_172}/_md-comp-outlined-text-field.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-plain-tooltip.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-primary-navigation-tab.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-radio-button.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-rich-tooltip.scss +3 -5
- package/tokens/{v0_160 → v0_172}/_md-comp-scrim.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-search-bar.scss +2 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-search-view.scss +2 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-secondary-navigation-tab.scss +3 -3
- package/tokens/{v0_160 → v0_172}/_md-comp-sheet-bottom.scss +3 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-sheet-floating.scss +3 -5
- package/tokens/{v0_161 → v0_172}/_md-comp-sheet-side.scss +4 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-slider.scss +3 -2
- package/tokens/{v0_161 → v0_172}/_md-comp-snackbar.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-standard-menu-button.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-comp-suggestion-chip.scss +3 -4
- package/tokens/{v0_161 → v0_172}/_md-comp-switch.scss +13 -11
- package/tokens/{v0_161 → v0_172}/_md-comp-text-button.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-time-input.scss +3 -4
- package/tokens/{v0_160 → v0_172}/_md-comp-time-picker.scss +5 -5
- package/tokens/{v0_161 → v0_172}/_md-comp-top-app-bar-large.scss +1 -3
- package/tokens/{v0_161 → v0_172}/_md-comp-top-app-bar-medium.scss +1 -3
- package/tokens/{v0_161 → v0_172}/_md-comp-top-app-bar-small-centered.scss +3 -1
- package/tokens/{v0_160 → v0_172}/_md-comp-top-app-bar-small.scss +3 -3
- package/tokens/{v0_161 → v0_172}/_md-ref-palette.scss +23 -23
- package/tokens/{v0_161 → v0_172}/_md-ref-typeface.scss +1 -1
- package/tokens/{v0_161 → v0_172}/_md-sys-color.scss +9 -9
- package/tokens/{v0_160 → v0_172}/_md-sys-elevation.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-sys-motion.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-sys-shape.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-sys-state.scss +1 -1
- package/tokens/{v0_160 → v0_172}/_md-sys-typescale.scss +1 -1
- package/autocomplete/_filled-autocomplete.scss +0 -6
- package/autocomplete/_outlined-autocomplete.scss +0 -6
- package/autocomplete/autocomplete-item.d.ts +0 -19
- package/autocomplete/autocomplete-item.js +0 -22
- package/autocomplete/autocomplete-item.js.map +0 -1
- package/autocomplete/autocomplete-list.d.ts +0 -19
- package/autocomplete/autocomplete-list.js +0 -23
- package/autocomplete/autocomplete-list.js.map +0 -1
- package/autocomplete/autocomplete-surface.d.ts +0 -19
- package/autocomplete/autocomplete-surface.js +0 -23
- package/autocomplete/autocomplete-surface.js.map +0 -1
- package/autocomplete/filled-autocomplete.d.ts +0 -28
- package/autocomplete/filled-autocomplete.js +0 -46
- package/autocomplete/filled-autocomplete.js.map +0 -1
- package/autocomplete/lib/_filled-autocomplete.scss +0 -189
- package/autocomplete/lib/_outlined-autocomplete.scss +0 -178
- package/autocomplete/lib/_shared.scss +0 -25
- package/autocomplete/lib/autocomplete.d.ts +0 -54
- package/autocomplete/lib/autocomplete.js +0 -265
- package/autocomplete/lib/autocomplete.js.map +0 -1
- package/autocomplete/lib/autocompleteitem/autocomplete-item.d.ts +0 -11
- package/autocomplete/lib/autocompleteitem/autocomplete-item.js +0 -14
- package/autocomplete/lib/autocompleteitem/autocomplete-item.js.map +0 -1
- package/autocomplete/lib/autocompleteitem/harness.d.ts +0 -11
- package/autocomplete/lib/autocompleteitem/harness.js +0 -12
- package/autocomplete/lib/autocompleteitem/harness.js.map +0 -1
- package/autocomplete/lib/autocompletelist/_autocomplete-list.scss +0 -13
- package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js +0 -9
- package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js.map +0 -1
- package/autocomplete/lib/autocompletelist/autocomplete-list.d.ts +0 -14
- package/autocomplete/lib/autocompletelist/autocomplete-list.js +0 -21
- package/autocomplete/lib/autocompletelist/autocomplete-list.js.map +0 -1
- package/autocomplete/lib/autocompletelist/harness.d.ts +0 -11
- package/autocomplete/lib/autocompletelist/harness.js +0 -12
- package/autocomplete/lib/autocompletelist/harness.js.map +0 -1
- package/autocomplete/lib/autocompletesurface/_autocomplete-surface.scss +0 -13
- package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js +0 -9
- package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js.map +0 -1
- package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss +0 -10
- package/autocomplete/lib/autocompletesurface/autocomplete-surface.d.ts +0 -13
- package/autocomplete/lib/autocompletesurface/autocomplete-surface.js +0 -21
- package/autocomplete/lib/autocompletesurface/autocomplete-surface.js.map +0 -1
- package/autocomplete/lib/filled-styles.css.js +0 -9
- package/autocomplete/lib/filled-styles.css.js.map +0 -1
- package/autocomplete/lib/filled-styles.scss +0 -10
- package/autocomplete/lib/outlined-styles.css.js +0 -9
- package/autocomplete/lib/outlined-styles.css.js.map +0 -1
- package/autocomplete/lib/outlined-styles.scss +0 -10
- package/autocomplete/lib/shared-styles.css.js +0 -9
- package/autocomplete/lib/shared-styles.css.js.map +0 -1
- package/autocomplete/outlined-autocomplete.d.ts +0 -28
- package/autocomplete/outlined-autocomplete.js +0 -46
- package/autocomplete/outlined-autocomplete.js.map +0 -1
- package/button/elevated-link-button.d.ts +0 -36
- package/button/elevated-link-button.js +0 -41
- package/button/elevated-link-button.js.map +0 -1
- package/button/filled-link-button.d.ts +0 -34
- package/button/filled-link-button.js +0 -39
- package/button/filled-link-button.js.map +0 -1
- package/button/lib/elevated-link-button.d.ts +0 -13
- package/button/lib/elevated-link-button.js +0 -21
- package/button/lib/elevated-link-button.js.map +0 -1
- package/button/lib/filled-link-button.d.ts +0 -14
- package/button/lib/filled-link-button.js +0 -22
- package/button/lib/filled-link-button.js.map +0 -1
- package/button/lib/link-button.d.ts +0 -24
- package/button/lib/link-button.js +0 -59
- package/button/lib/link-button.js.map +0 -1
- package/button/lib/outlined-link-button.d.ts +0 -12
- package/button/lib/outlined-link-button.js +0 -20
- package/button/lib/outlined-link-button.js.map +0 -1
- package/button/lib/text-link-button.d.ts +0 -10
- package/button/lib/text-link-button.js +0 -16
- package/button/lib/text-link-button.js.map +0 -1
- package/button/lib/tonal-link-button.d.ts +0 -14
- package/button/lib/tonal-link-button.js +0 -22
- package/button/lib/tonal-link-button.js.map +0 -1
- package/button/outlined-link-button.d.ts +0 -36
- package/button/outlined-link-button.js +0 -40
- package/button/outlined-link-button.js.map +0 -1
- package/button/text-link-button.d.ts +0 -34
- package/button/text-link-button.js +0 -38
- package/button/text-link-button.js.map +0 -1
- package/button/tonal-link-button.d.ts +0 -35
- package/button/tonal-link-button.js +0 -40
- package/button/tonal-link-button.js.map +0 -1
- package/chips/action/delete-action.d.ts +0 -18
- package/chips/action/delete-action.js +0 -20
- package/chips/action/delete-action.js.map +0 -1
- package/chips/action/lib/action.d.ts +0 -47
- package/chips/action/lib/action.js +0 -162
- package/chips/action/lib/action.js.map +0 -1
- package/chips/action/lib/constants.d.ts +0 -62
- package/chips/action/lib/constants.js +0 -69
- package/chips/action/lib/constants.js.map +0 -1
- package/chips/action/lib/delete-action.d.ts +0 -20
- package/chips/action/lib/delete-action.js +0 -65
- package/chips/action/lib/delete-action.js.map +0 -1
- package/chips/action/lib/events.d.ts +0 -14
- package/chips/action/lib/events.js +0 -16
- package/chips/action/lib/events.js.map +0 -1
- package/chips/action/lib/link-action.d.ts +0 -19
- package/chips/action/lib/link-action.js +0 -55
- package/chips/action/lib/link-action.js.map +0 -1
- package/chips/action/lib/presentational-action.d.ts +0 -15
- package/chips/action/lib/presentational-action.js +0 -30
- package/chips/action/lib/presentational-action.js.map +0 -1
- package/chips/action/lib/primary-action.d.ts +0 -28
- package/chips/action/lib/primary-action.js +0 -88
- package/chips/action/lib/primary-action.js.map +0 -1
- package/chips/action/lib/selectable-action.d.ts +0 -17
- package/chips/action/lib/selectable-action.js +0 -67
- package/chips/action/lib/selectable-action.js.map +0 -1
- package/chips/action/lib/types.d.ts +0 -23
- package/chips/action/lib/types.js +0 -7
- package/chips/action/lib/types.js.map +0 -1
- package/chips/action/link-action.d.ts +0 -18
- package/chips/action/link-action.js +0 -20
- package/chips/action/link-action.js.map +0 -1
- package/chips/action/presentational-action.d.ts +0 -18
- package/chips/action/presentational-action.js +0 -20
- package/chips/action/presentational-action.js.map +0 -1
- package/chips/action/primary-action.d.ts +0 -18
- package/chips/action/primary-action.js +0 -20
- package/chips/action/primary-action.js.map +0 -1
- package/chips/action/selectable-action.d.ts +0 -18
- package/chips/action/selectable-action.js +0 -20
- package/chips/action/selectable-action.js.map +0 -1
- package/chips/chip/lib/_assist-chip-theme.scss +0 -99
- package/chips/chip/lib/_chip-theme.scss +0 -1285
- package/chips/chip/lib/_chip.scss +0 -444
- package/chips/chip/lib/_filter-chip-theme.scss +0 -130
- package/chips/chip/lib/_input-chip-theme.scss +0 -91
- package/chips/chip/lib/_suggestion-chip-theme.scss +0 -92
- package/chips/chip/lib/action-chip.d.ts +0 -18
- package/chips/chip/lib/action-chip.js +0 -39
- package/chips/chip/lib/action-chip.js.map +0 -1
- package/chips/chip/lib/adapter.d.ts +0 -50
- package/chips/chip/lib/adapter.js +0 -7
- package/chips/chip/lib/adapter.js.map +0 -1
- package/chips/chip/lib/animationframe.d.ts +0 -31
- package/chips/chip/lib/animationframe.js +0 -66
- package/chips/chip/lib/animationframe.js.map +0 -1
- package/chips/chip/lib/chip.d.ts +0 -43
- package/chips/chip/lib/chip.js +0 -134
- package/chips/chip/lib/chip.js.map +0 -1
- package/chips/chip/lib/constants.d.ts +0 -43
- package/chips/chip/lib/constants.js +0 -48
- package/chips/chip/lib/constants.js.map +0 -1
- package/chips/chip/lib/foundation.d.ts +0 -41
- package/chips/chip/lib/foundation.js +0 -255
- package/chips/chip/lib/foundation.js.map +0 -1
- package/chips/chip/lib/link-chip.d.ts +0 -21
- package/chips/chip/lib/link-chip.js +0 -53
- package/chips/chip/lib/link-chip.js.map +0 -1
- package/chips/chip/lib/presentational-chip.d.ts +0 -18
- package/chips/chip/lib/presentational-chip.js +0 -39
- package/chips/chip/lib/presentational-chip.js.map +0 -1
- package/chips/chip/lib/selectable-chip.d.ts +0 -22
- package/chips/chip/lib/selectable-chip.js +0 -57
- package/chips/chip/lib/selectable-chip.js.map +0 -1
- package/chips/chip/lib/types.d.ts +0 -42
- package/chips/chip/lib/types.js +0 -7
- package/chips/chip/lib/types.js.map +0 -1
- package/chips/chipset/lib/_chip-set-theme.scss +0 -50
- package/chips/chipset/lib/_chip-set.scss +0 -48
- package/chips/chipset/lib/adapter.d.ts +0 -45
- package/chips/chipset/lib/adapter.js +0 -7
- package/chips/chipset/lib/adapter.js.map +0 -1
- package/chips/chipset/lib/constants.d.ts +0 -26
- package/chips/chipset/lib/constants.js +0 -30
- package/chips/chipset/lib/constants.js.map +0 -1
- package/chips/chipset/lib/foundation.d.ts +0 -68
- package/chips/chipset/lib/foundation.js +0 -314
- package/chips/chipset/lib/foundation.js.map +0 -1
- package/chips/chipset/lib/types.d.ts +0 -41
- package/chips/chipset/lib/types.js +0 -7
- package/chips/chipset/lib/types.js.map +0 -1
- package/elevation/lib/_md-comp-elevation.scss +0 -27
- package/focus/lib/_md-comp-focus-ring.scss +0 -31
- package/iconbutton/filled-icon-button-toggle.d.ts +0 -31
- package/iconbutton/filled-icon-button-toggle.js +0 -40
- package/iconbutton/filled-icon-button-toggle.js.map +0 -1
- package/iconbutton/filled-link-icon-button.d.ts +0 -31
- package/iconbutton/filled-link-icon-button.js +0 -39
- package/iconbutton/filled-link-icon-button.js.map +0 -1
- package/iconbutton/filled-tonal-icon-button-toggle.d.ts +0 -31
- package/iconbutton/filled-tonal-icon-button-toggle.js +0 -40
- package/iconbutton/filled-tonal-icon-button-toggle.js.map +0 -1
- package/iconbutton/filled-tonal-link-icon-button.d.ts +0 -31
- package/iconbutton/filled-tonal-link-icon-button.js +0 -39
- package/iconbutton/filled-tonal-link-icon-button.js.map +0 -1
- package/iconbutton/lib/icon-button-toggle.d.ts +0 -34
- package/iconbutton/lib/icon-button-toggle.js +0 -87
- package/iconbutton/lib/icon-button-toggle.js.map +0 -1
- package/iconbutton/lib/link-icon-button.d.ts +0 -23
- package/iconbutton/lib/link-icon-button.js +0 -58
- package/iconbutton/lib/link-icon-button.js.map +0 -1
- package/iconbutton/outlined-icon-button-toggle.d.ts +0 -31
- package/iconbutton/outlined-icon-button-toggle.js +0 -39
- package/iconbutton/outlined-icon-button-toggle.js.map +0 -1
- package/iconbutton/outlined-link-icon-button.d.ts +0 -31
- package/iconbutton/outlined-link-icon-button.js +0 -39
- package/iconbutton/outlined-link-icon-button.js.map +0 -1
- package/iconbutton/standard-icon-button-toggle.d.ts +0 -31
- package/iconbutton/standard-icon-button-toggle.js +0 -39
- package/iconbutton/standard-icon-button-toggle.js.map +0 -1
- package/iconbutton/standard-link-icon-button.d.ts +0 -31
- package/iconbutton/standard-link-icon-button.js +0 -39
- package/iconbutton/standard-link-icon-button.js.map +0 -1
- package/menusurface/_menu-surface.scss +0 -6
- package/menusurface/lib/_md-comp-menu-surface.scss +0 -31
- package/menusurface/lib/_menu-surface.scss +0 -122
- package/menusurface/lib/adapter.d.ts +0 -46
- package/menusurface/lib/adapter.js +0 -7
- package/menusurface/lib/adapter.js.map +0 -1
- package/menusurface/lib/constants.d.ts +0 -71
- package/menusurface/lib/constants.js +0 -83
- package/menusurface/lib/constants.js.map +0 -1
- package/menusurface/lib/foundation.d.ts +0 -176
- package/menusurface/lib/foundation.js +0 -544
- package/menusurface/lib/foundation.js.map +0 -1
- package/menusurface/lib/menu-surface-styles.css.js +0 -9
- package/menusurface/lib/menu-surface-styles.css.js.map +0 -1
- package/menusurface/lib/menu-surface.d.ts +0 -62
- package/menusurface/lib/menu-surface.js +0 -347
- package/menusurface/lib/menu-surface.js.map +0 -1
- package/menusurface/lib/types.d.ts +0 -19
- package/menusurface/lib/types.js +0 -7
- package/menusurface/lib/types.js.map +0 -1
- package/menusurface/menu-surface.d.ts +0 -14
- package/menusurface/menu-surface.js +0 -17
- package/menusurface/menu-surface.js.map +0 -1
- package/sass/_elevation.scss +0 -159
- package/sass/_resolvers.scss +0 -16
- package/sass/_typography.scss +0 -39
- package/tokens/v0_160/_md-comp-assist-chip.scss +0 -109
- package/tokens/v0_160/_md-comp-checkbox.scss +0 -126
- package/tokens/v0_160/_md-comp-circular-progress-indicator.scss +0 -39
- package/tokens/v0_160/_md-comp-date-input-modal.scss +0 -89
- package/tokens/v0_160/_md-comp-date-picker-docked.scss +0 -246
- package/tokens/v0_160/_md-comp-date-picker-modal.scss +0 -305
- package/tokens/v0_160/_md-comp-divider.scss +0 -25
- package/tokens/v0_160/_md-comp-extended-fab-branded.scss +0 -86
- package/tokens/v0_160/_md-comp-extended-fab-primary.scss +0 -94
- package/tokens/v0_160/_md-comp-extended-fab-surface.scss +0 -90
- package/tokens/v0_160/_md-comp-extended-fab-tertiary.scss +0 -95
- package/tokens/v0_160/_md-comp-fab-branded-large.scss +0 -60
- package/tokens/v0_160/_md-comp-fab-primary-large.scss +0 -65
- package/tokens/v0_160/_md-comp-fab-primary-small.scss +0 -65
- package/tokens/v0_160/_md-comp-fab-secondary-large.scss +0 -66
- package/tokens/v0_160/_md-comp-fab-secondary-small.scss +0 -66
- package/tokens/v0_160/_md-comp-fab-surface-small.scss +0 -64
- package/tokens/v0_160/_md-comp-fab-surface.scss +0 -64
- package/tokens/v0_160/_md-comp-filled-autocomplete.scss +0 -267
- package/tokens/v0_160/_md-comp-filled-button.scss +0 -89
- package/tokens/v0_160/_md-comp-filled-card.scss +0 -58
- package/tokens/v0_160/_md-comp-filled-icon-button.scss +0 -79
- package/tokens/v0_160/_md-comp-filled-menu-button.scss +0 -98
- package/tokens/v0_160/_md-comp-filled-select.scss +0 -272
- package/tokens/v0_160/_md-comp-filled-text-field.scss +0 -189
- package/tokens/v0_160/_md-comp-filled-tonal-button.scss +0 -99
- package/tokens/v0_160/_md-comp-menu.scss +0 -121
- package/tokens/v0_160/_md-comp-navigation-drawer.scss +0 -162
- package/tokens/v0_160/_md-comp-navigation-rail.scss +0 -131
- package/tokens/v0_160/_md-comp-outlined-button.scss +0 -84
- package/tokens/v0_160/_md-comp-outlined-card.scss +0 -65
- package/tokens/v0_160/_md-comp-outlined-icon-button.scss +0 -79
- package/tokens/v0_160/_md-comp-outlined-text-field.scss +0 -171
- package/tokens/v0_160/_md-comp-plain-tooltip.scss +0 -55
- package/tokens/v0_160/_md-comp-search-bar.scss +0 -99
- package/tokens/v0_160/_md-comp-search-view.scss +0 -93
- package/tokens/v0_160/_md-comp-sheet-floating.scss +0 -34
- package/tokens/v0_160/_md-comp-sheet-side.scss +0 -91
- package/tokens/v0_160/_md-comp-snackbar.scss +0 -127
- package/tokens/v0_160/_md-comp-standard-menu-button.scss +0 -98
- package/tokens/v0_160/_md-comp-suggestion-chip.scss +0 -125
- package/tokens/v0_160/_md-comp-switch.scss +0 -136
- package/tokens/v0_160/_md-comp-text-button.scss +0 -77
- package/tokens/v0_160/_md-comp-top-app-bar-large.scss +0 -63
- package/tokens/v0_160/_md-comp-top-app-bar-medium.scss +0 -63
- package/tokens/v0_160/_md-comp-top-app-bar-small-centered.scss +0 -66
- package/tokens/v0_160/_md-ref-palette.scss +0 -107
- package/tokens/v0_160/_md-ref-typeface.scss +0 -21
- package/tokens/v0_160/_md-sys-color.scss +0 -904
- package/tokens/v0_161/_index.scss +0 -107
- package/tokens/v0_161/_md-comp-badge.scss +0 -58
- package/tokens/v0_161/_md-comp-banner.scss +0 -75
- package/tokens/v0_161/_md-comp-bottom-app-bar.scss +0 -35
- package/tokens/v0_161/_md-comp-carousel-item.scss +0 -65
- package/tokens/v0_161/_md-comp-data-table.scss +0 -96
- package/tokens/v0_161/_md-comp-dialog.scss +0 -123
- package/tokens/v0_161/_md-comp-elevated-button.scss +0 -91
- package/tokens/v0_161/_md-comp-elevated-card.scss +0 -59
- package/tokens/v0_161/_md-comp-extended-fab-secondary.scss +0 -95
- package/tokens/v0_161/_md-comp-fab-branded.scss +0 -60
- package/tokens/v0_161/_md-comp-fab-primary.scss +0 -65
- package/tokens/v0_161/_md-comp-fab-secondary.scss +0 -66
- package/tokens/v0_161/_md-comp-fab-surface-large.scss +0 -64
- package/tokens/v0_161/_md-comp-fab-tertiary-large.scss +0 -66
- package/tokens/v0_161/_md-comp-fab-tertiary-small.scss +0 -66
- package/tokens/v0_161/_md-comp-fab-tertiary.scss +0 -66
- package/tokens/v0_161/_md-comp-filled-tonal-icon-button.scss +0 -86
- package/tokens/v0_161/_md-comp-filter-chip.scss +0 -209
- package/tokens/v0_161/_md-comp-full-screen-dialog.scss +0 -111
- package/tokens/v0_161/_md-comp-icon-button.scss +0 -70
- package/tokens/v0_161/_md-comp-input-chip.scss +0 -184
- package/tokens/v0_161/_md-comp-linear-progress-indicator.scss +0 -41
- package/tokens/v0_161/_md-comp-list.scss +0 -248
- package/tokens/v0_161/_md-comp-navigation-rail.scss +0 -131
- package/tokens/v0_161/_md-comp-outlined-autocomplete.scss +0 -257
- package/tokens/v0_161/_md-comp-outlined-menu-button.scss +0 -94
- package/tokens/v0_161/_md-comp-outlined-segmented-button.scss +0 -112
- package/tokens/v0_161/_md-comp-outlined-select.scss +0 -262
- package/tokens/v0_161/_md-comp-primary-navigation-tab.scss +0 -121
- package/tokens/v0_161/_md-comp-radio-button.scss +0 -68
- package/tokens/v0_161/_md-comp-rich-tooltip.scss +0 -121
- package/tokens/v0_161/_md-comp-scrim.scss +0 -25
- package/tokens/v0_161/_md-comp-secondary-navigation-tab.scss +0 -84
- package/tokens/v0_161/_md-comp-sheet-bottom.scss +0 -45
- package/tokens/v0_161/_md-comp-slider.scss +0 -114
- package/tokens/v0_161/_md-comp-time-input.scss +0 -218
- package/tokens/v0_161/_md-comp-time-picker.scss +0 -264
- package/tokens/v0_161/_md-comp-top-app-bar-small.scss +0 -64
- package/tokens/v0_161/_md-sys-elevation.scss +0 -21
- package/tokens/v0_161/_md-sys-motion.scss +0 -53
- package/tokens/v0_161/_md-sys-shape.scss +0 -30
- package/tokens/v0_161/_md-sys-state.scss +0 -19
- package/tokens/v0_161/_md-sys-typescale.scss +0 -284
- package/tokens/v0_161/index.test.css.js +0 -9
- package/tokens/v0_161/index.test.css.js.map +0 -1
- package/tokens/v0_161/index.test.scss +0 -584
- package/tokens/v0_161/lib.test.css.d.ts +0 -1
- package/tokens/v0_161/lib.test.css.js +0 -9
- package/tokens/v0_161/lib.test.css.js.map +0 -1
- package/tokens/v0_161/lib.test.scss +0 -663
- /package/{autocomplete/lib/autocompletelist/autocomplete-list-styles.css.d.ts → chips/lib/assist-styles.css.d.ts} +0 -0
- /package/{autocomplete → chips}/lib/shared-styles.css.d.ts +0 -0
- /package/{autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.d.ts → chips/lib/suggestion-styles.css.d.ts} +0 -0
- /package/{autocomplete/lib/filled-styles.css.d.ts → circularprogress/lib/circular-progress-styles.css.d.ts} +0 -0
- /package/{autocomplete/lib/outlined-styles.css.d.ts → list/lib/listitem/forced-colors-styles.css.d.ts} +0 -0
- /package/{menusurface/lib/menu-surface-styles.css.d.ts → menu/lib/forced-colors-styles.css.d.ts} +0 -0
- /package/{tokens/v0_160/index.test.css.d.ts → menu/lib/menuitem/forced-colors-styles.css.d.ts} +0 -0
- /package/tokens/{v0_160 → v0_172}/_index.scss +0 -0
- /package/tokens/{v0_161 → v0_172}/index.test.css.d.ts +0 -0
- /package/tokens/{v0_160 → v0_172}/index.test.css.js +0 -0
- /package/tokens/{v0_160 → v0_172}/index.test.css.js.map +0 -0
- /package/tokens/{v0_160 → v0_172}/index.test.scss +0 -0
- /package/tokens/{v0_160 → v0_172}/lib.test.css.d.ts +0 -0
- /package/tokens/{v0_160 → v0_172}/lib.test.css.js +0 -0
- /package/tokens/{v0_160 → v0_172}/lib.test.css.js.map +0 -0
- /package/tokens/{v0_160 → v0_172}/lib.test.scss +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import '../../elevation/elevation.js';
|
|
7
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
8
|
-
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
9
|
-
import { MDCMenuSurfaceAdapter } from './adapter.js';
|
|
10
|
-
import { Corner as CornerEnum } from './constants.js';
|
|
11
|
-
import { MDCMenuSurfaceFoundation } from './foundation.js';
|
|
12
|
-
export type Corner = keyof typeof CornerEnum;
|
|
13
|
-
export type AnchorableElement = HTMLElement & {
|
|
14
|
-
anchor: Element | null;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @fires opened
|
|
18
|
-
* @fires closed
|
|
19
|
-
*/
|
|
20
|
-
export declare abstract class MenuSurface extends LitElement {
|
|
21
|
-
protected mdcFoundation: MDCMenuSurfaceFoundation;
|
|
22
|
-
mdcRoot: HTMLDivElement;
|
|
23
|
-
slotElement: HTMLSlotElement | null;
|
|
24
|
-
absolute: boolean;
|
|
25
|
-
fullwidth: boolean;
|
|
26
|
-
fixed: boolean;
|
|
27
|
-
x: number | null;
|
|
28
|
-
y: number | null;
|
|
29
|
-
quick: boolean;
|
|
30
|
-
open: boolean;
|
|
31
|
-
stayOpenOnBodyClick: boolean;
|
|
32
|
-
skipRestoreFocus: boolean;
|
|
33
|
-
protected previousFlipMenuHorizontally: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Whether to align the menu surface to the opposite side of the default
|
|
36
|
-
* alignment.
|
|
37
|
-
*/
|
|
38
|
-
flipMenuHorizontally: boolean;
|
|
39
|
-
corner: Corner;
|
|
40
|
-
protected styleTop: string;
|
|
41
|
-
protected styleLeft: string;
|
|
42
|
-
protected styleRight: string;
|
|
43
|
-
protected styleBottom: string;
|
|
44
|
-
protected styleMaxHeight: string;
|
|
45
|
-
protected styleTransformOrigin: string;
|
|
46
|
-
anchor: HTMLElement | null;
|
|
47
|
-
protected previouslyFocused: HTMLElement | Element | null;
|
|
48
|
-
protected previousAnchor: HTMLElement | null;
|
|
49
|
-
protected onBodyClickBound: (evt: MouseEvent) => void;
|
|
50
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
51
|
-
/** @soyTemplate */
|
|
52
|
-
protected getRenderClasses(): ClassInfo;
|
|
53
|
-
protected updated(changedProperties: PropertyValues<MenuSurface>): void;
|
|
54
|
-
protected firstUpdated(): void;
|
|
55
|
-
createAdapter(): MDCMenuSurfaceAdapter;
|
|
56
|
-
protected onKeydown(evt: KeyboardEvent): void;
|
|
57
|
-
protected onBodyClick(evt: MouseEvent): void;
|
|
58
|
-
protected registerBodyClick(): void;
|
|
59
|
-
protected deregisterBodyClick(): void;
|
|
60
|
-
close(): void;
|
|
61
|
-
show(): void;
|
|
62
|
-
}
|
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { __decorate, __metadata } from "tslib";
|
|
7
|
-
// Style preference for leading underscores.
|
|
8
|
-
// tslint:disable:strip-private-property-underscore
|
|
9
|
-
import '../../elevation/elevation.js';
|
|
10
|
-
import { html, LitElement } from 'lit';
|
|
11
|
-
import { property, query, state } from 'lit/decorators.js';
|
|
12
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
13
|
-
import { styleMap } from 'lit/directives/style-map.js';
|
|
14
|
-
import { isRtl } from '../../controller/is-rtl.js';
|
|
15
|
-
import { Corner as CornerEnum } from './constants.js';
|
|
16
|
-
import { MDCMenuSurfaceFoundation } from './foundation.js';
|
|
17
|
-
// tslint:disable:no-bitwise
|
|
18
|
-
// required for closure compiler
|
|
19
|
-
const stringToCorner = {
|
|
20
|
-
'TOP_LEFT': CornerEnum.TOP_LEFT,
|
|
21
|
-
'TOP_RIGHT': CornerEnum.TOP_RIGHT,
|
|
22
|
-
'BOTTOM_LEFT': CornerEnum.BOTTOM_LEFT,
|
|
23
|
-
'BOTTOM_RIGHT': CornerEnum.BOTTOM_RIGHT,
|
|
24
|
-
'TOP_START': CornerEnum.TOP_START,
|
|
25
|
-
'TOP_END': CornerEnum.TOP_END,
|
|
26
|
-
'BOTTOM_START': CornerEnum.BOTTOM_START,
|
|
27
|
-
'BOTTOM_END': CornerEnum.BOTTOM_END,
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @fires opened
|
|
31
|
-
* @fires closed
|
|
32
|
-
*/
|
|
33
|
-
export class MenuSurface extends LitElement {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(...arguments);
|
|
36
|
-
this.absolute = false;
|
|
37
|
-
this.fullwidth = false;
|
|
38
|
-
this.fixed = false;
|
|
39
|
-
this.x = null;
|
|
40
|
-
this.y = null;
|
|
41
|
-
// must be defined before open or else race condition in foundation occurs.
|
|
42
|
-
this.quick = false;
|
|
43
|
-
this.open = false;
|
|
44
|
-
this.stayOpenOnBodyClick = false;
|
|
45
|
-
this.skipRestoreFocus = false;
|
|
46
|
-
this.previousFlipMenuHorizontally = false;
|
|
47
|
-
/**
|
|
48
|
-
* Whether to align the menu surface to the opposite side of the default
|
|
49
|
-
* alignment.
|
|
50
|
-
*/
|
|
51
|
-
this.flipMenuHorizontally = false;
|
|
52
|
-
this.corner = 'BOTTOM_START';
|
|
53
|
-
this.styleTop = '';
|
|
54
|
-
this.styleLeft = '';
|
|
55
|
-
this.styleRight = '';
|
|
56
|
-
this.styleBottom = '';
|
|
57
|
-
this.styleMaxHeight = '';
|
|
58
|
-
this.styleTransformOrigin = '';
|
|
59
|
-
this.anchor = null;
|
|
60
|
-
this.previouslyFocused = null;
|
|
61
|
-
this.previousAnchor = null;
|
|
62
|
-
this.onBodyClickBound = () => undefined;
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
const styles = {
|
|
66
|
-
'top': this.styleTop,
|
|
67
|
-
'left': this.styleLeft,
|
|
68
|
-
'right': this.styleRight,
|
|
69
|
-
'bottom': this.styleBottom,
|
|
70
|
-
'max-height': this.styleMaxHeight,
|
|
71
|
-
'transform-origin': this.styleTransformOrigin,
|
|
72
|
-
};
|
|
73
|
-
return html `
|
|
74
|
-
<div
|
|
75
|
-
class="md3-menu-surface ${classMap(this.getRenderClasses())}"
|
|
76
|
-
style="${styleMap(styles)}"
|
|
77
|
-
@keydown=${this.onKeydown}
|
|
78
|
-
@opened=${this.registerBodyClick}
|
|
79
|
-
@closed=${this.deregisterBodyClick}>
|
|
80
|
-
<md-elevation shadow></md-elevation>
|
|
81
|
-
<slot></slot>
|
|
82
|
-
</div>`;
|
|
83
|
-
}
|
|
84
|
-
/** @soyTemplate */
|
|
85
|
-
getRenderClasses() {
|
|
86
|
-
return {
|
|
87
|
-
'md3-menu-surface--fixed': this.fixed,
|
|
88
|
-
'md3-menu-surface--fullwidth': this.fullwidth,
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
updated(changedProperties) {
|
|
92
|
-
if (changedProperties.has('absolute') && !this.fixed) {
|
|
93
|
-
this.mdcFoundation.setIsHoisted(this.absolute);
|
|
94
|
-
}
|
|
95
|
-
if (changedProperties.has('fixed') && !this.absolute) {
|
|
96
|
-
this.mdcFoundation.setFixedPosition(this.fixed);
|
|
97
|
-
}
|
|
98
|
-
if ((changedProperties.has('x') || changedProperties.has('y')) &&
|
|
99
|
-
this.x !== null && this.y !== null) {
|
|
100
|
-
this.mdcFoundation.setAbsolutePosition(this.x, this.y);
|
|
101
|
-
this.mdcFoundation.setAnchorMargin({ left: this.x, top: this.y, right: -this.y, bottom: this.y });
|
|
102
|
-
}
|
|
103
|
-
if (changedProperties.has('quick')) {
|
|
104
|
-
this.mdcFoundation.setQuickOpen(this.quick);
|
|
105
|
-
}
|
|
106
|
-
if (changedProperties.has('open')) {
|
|
107
|
-
const wasOpen = changedProperties.get('open');
|
|
108
|
-
if (this.open) {
|
|
109
|
-
this.mdcFoundation.open();
|
|
110
|
-
// wasOpen helps with first render (when it is `undefined`) perf
|
|
111
|
-
}
|
|
112
|
-
else if (wasOpen !== undefined) {
|
|
113
|
-
this.mdcFoundation.close(this.skipRestoreFocus);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
if (changedProperties.has('flipMenuHorizontally')) {
|
|
117
|
-
if (this.previousFlipMenuHorizontally !== this.flipMenuHorizontally) {
|
|
118
|
-
this.mdcFoundation.flipCornerHorizontally();
|
|
119
|
-
}
|
|
120
|
-
this.previousFlipMenuHorizontally = this.flipMenuHorizontally;
|
|
121
|
-
}
|
|
122
|
-
if (changedProperties.has('corner') && this.corner) {
|
|
123
|
-
const bitwiseCorner = stringToCorner[this.corner];
|
|
124
|
-
this.mdcFoundation.setAnchorCorner(bitwiseCorner);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
firstUpdated() {
|
|
128
|
-
if (this.mdcFoundation !== undefined) {
|
|
129
|
-
this.mdcFoundation.destroy();
|
|
130
|
-
}
|
|
131
|
-
this.mdcFoundation = new MDCMenuSurfaceFoundation(this.createAdapter());
|
|
132
|
-
this.mdcFoundation.init();
|
|
133
|
-
}
|
|
134
|
-
createAdapter() {
|
|
135
|
-
return {
|
|
136
|
-
addClass: (className) => {
|
|
137
|
-
this.mdcRoot.classList.add(className);
|
|
138
|
-
},
|
|
139
|
-
removeClass: (className) => {
|
|
140
|
-
this.mdcRoot.classList.remove(className);
|
|
141
|
-
},
|
|
142
|
-
hasClass: (className) => this.mdcRoot.classList.contains(className),
|
|
143
|
-
hasAnchor: () => {
|
|
144
|
-
return !!this.anchor;
|
|
145
|
-
},
|
|
146
|
-
notifyClose: () => {
|
|
147
|
-
const init = { bubbles: true, composed: true };
|
|
148
|
-
const ev = new CustomEvent('closed', init);
|
|
149
|
-
this.open = false;
|
|
150
|
-
this.mdcRoot.dispatchEvent(ev);
|
|
151
|
-
},
|
|
152
|
-
notifyClosing: () => {
|
|
153
|
-
const init = { bubbles: true, composed: true };
|
|
154
|
-
const ev = new CustomEvent('closing', init);
|
|
155
|
-
this.mdcRoot.dispatchEvent(ev);
|
|
156
|
-
},
|
|
157
|
-
notifyOpen: () => {
|
|
158
|
-
const init = { bubbles: true, composed: true };
|
|
159
|
-
const ev = new CustomEvent('opened', init);
|
|
160
|
-
this.open = true;
|
|
161
|
-
this.mdcRoot.dispatchEvent(ev);
|
|
162
|
-
},
|
|
163
|
-
notifyOpening: () => {
|
|
164
|
-
const init = { bubbles: true, composed: true };
|
|
165
|
-
const ev = new CustomEvent('opening', init);
|
|
166
|
-
this.mdcRoot.dispatchEvent(ev);
|
|
167
|
-
},
|
|
168
|
-
isElementInContainer: () => false,
|
|
169
|
-
isRtl: () => this.mdcRoot ? isRtl(this.mdcRoot) : false,
|
|
170
|
-
setTransformOrigin: (origin) => {
|
|
171
|
-
const root = this.mdcRoot;
|
|
172
|
-
if (!root) {
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
this.styleTransformOrigin = origin;
|
|
176
|
-
},
|
|
177
|
-
isFocused: () => {
|
|
178
|
-
return this.matches(':focus-within');
|
|
179
|
-
},
|
|
180
|
-
saveFocus: () => {
|
|
181
|
-
this.previouslyFocused = document.activeElement;
|
|
182
|
-
},
|
|
183
|
-
restoreFocus: () => {
|
|
184
|
-
if (!this.previouslyFocused) {
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
if ('focus' in this.previouslyFocused) {
|
|
188
|
-
this.previouslyFocused.focus();
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
getInnerDimensions: () => {
|
|
192
|
-
const mdcRoot = this.mdcRoot;
|
|
193
|
-
if (!mdcRoot) {
|
|
194
|
-
return { width: 0, height: 0 };
|
|
195
|
-
}
|
|
196
|
-
return { width: mdcRoot.offsetWidth, height: mdcRoot.offsetHeight };
|
|
197
|
-
},
|
|
198
|
-
getAnchorDimensions: () => {
|
|
199
|
-
const anchorElement = this.anchor;
|
|
200
|
-
return anchorElement ? anchorElement.getBoundingClientRect() : null;
|
|
201
|
-
},
|
|
202
|
-
getBodyDimensions: () => {
|
|
203
|
-
return {
|
|
204
|
-
width: document.body.clientWidth,
|
|
205
|
-
height: document.body.clientHeight,
|
|
206
|
-
};
|
|
207
|
-
},
|
|
208
|
-
getWindowDimensions: () => {
|
|
209
|
-
return {
|
|
210
|
-
width: window.innerWidth,
|
|
211
|
-
height: window.innerHeight,
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
getWindowScroll: () => {
|
|
215
|
-
return {
|
|
216
|
-
x: window.pageXOffset,
|
|
217
|
-
y: window.pageYOffset,
|
|
218
|
-
};
|
|
219
|
-
},
|
|
220
|
-
setPosition: (position) => {
|
|
221
|
-
const mdcRoot = this.mdcRoot;
|
|
222
|
-
if (!mdcRoot) {
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
this.styleLeft = 'left' in position ? `${position.left}px` : '';
|
|
226
|
-
this.styleRight = 'right' in position ? `${position.right}px` : '';
|
|
227
|
-
this.styleTop = 'top' in position ? `${position.top}px` : '';
|
|
228
|
-
this.styleBottom = 'bottom' in position ? `${position.bottom}px` : '';
|
|
229
|
-
},
|
|
230
|
-
setMaxHeight: async (height) => {
|
|
231
|
-
const mdcRoot = this.mdcRoot;
|
|
232
|
-
if (!mdcRoot) {
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
// must set both for IE support as IE will not set a var
|
|
236
|
-
this.styleMaxHeight = height;
|
|
237
|
-
await this.updateComplete;
|
|
238
|
-
this.styleMaxHeight = `var(--md3-menu-max-height, ${height})`;
|
|
239
|
-
},
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
onKeydown(evt) {
|
|
243
|
-
if (this.mdcFoundation) {
|
|
244
|
-
this.mdcFoundation.handleKeydown(evt);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
onBodyClick(evt) {
|
|
248
|
-
if (this.stayOpenOnBodyClick) {
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
const path = evt.composedPath();
|
|
252
|
-
if (path.indexOf(this) === -1) {
|
|
253
|
-
this.close();
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
registerBodyClick() {
|
|
257
|
-
this.onBodyClickBound = this.onBodyClick.bind(this);
|
|
258
|
-
// capture otherwise listener closes menu after quick menu opens
|
|
259
|
-
document.body.addEventListener('click', this.onBodyClickBound, { passive: true, capture: true });
|
|
260
|
-
}
|
|
261
|
-
deregisterBodyClick() {
|
|
262
|
-
document.body.removeEventListener('click', this.onBodyClickBound, { capture: true });
|
|
263
|
-
}
|
|
264
|
-
close() {
|
|
265
|
-
this.open = false;
|
|
266
|
-
}
|
|
267
|
-
show() {
|
|
268
|
-
this.open = true;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
__decorate([
|
|
272
|
-
query('.md3-menu-surface'),
|
|
273
|
-
__metadata("design:type", HTMLDivElement)
|
|
274
|
-
], MenuSurface.prototype, "mdcRoot", void 0);
|
|
275
|
-
__decorate([
|
|
276
|
-
query('slot'),
|
|
277
|
-
__metadata("design:type", HTMLSlotElement)
|
|
278
|
-
], MenuSurface.prototype, "slotElement", void 0);
|
|
279
|
-
__decorate([
|
|
280
|
-
property({ type: Boolean }),
|
|
281
|
-
__metadata("design:type", Object)
|
|
282
|
-
], MenuSurface.prototype, "absolute", void 0);
|
|
283
|
-
__decorate([
|
|
284
|
-
property({ type: Boolean }),
|
|
285
|
-
__metadata("design:type", Object)
|
|
286
|
-
], MenuSurface.prototype, "fullwidth", void 0);
|
|
287
|
-
__decorate([
|
|
288
|
-
property({ type: Boolean }),
|
|
289
|
-
__metadata("design:type", Object)
|
|
290
|
-
], MenuSurface.prototype, "fixed", void 0);
|
|
291
|
-
__decorate([
|
|
292
|
-
property({ type: Number }),
|
|
293
|
-
__metadata("design:type", Number)
|
|
294
|
-
], MenuSurface.prototype, "x", void 0);
|
|
295
|
-
__decorate([
|
|
296
|
-
property({ type: Number }),
|
|
297
|
-
__metadata("design:type", Number)
|
|
298
|
-
], MenuSurface.prototype, "y", void 0);
|
|
299
|
-
__decorate([
|
|
300
|
-
property({ type: Boolean }),
|
|
301
|
-
__metadata("design:type", Object)
|
|
302
|
-
], MenuSurface.prototype, "quick", void 0);
|
|
303
|
-
__decorate([
|
|
304
|
-
property({ type: Boolean, reflect: true }),
|
|
305
|
-
__metadata("design:type", Object)
|
|
306
|
-
], MenuSurface.prototype, "open", void 0);
|
|
307
|
-
__decorate([
|
|
308
|
-
property({ type: Boolean }),
|
|
309
|
-
__metadata("design:type", Object)
|
|
310
|
-
], MenuSurface.prototype, "stayOpenOnBodyClick", void 0);
|
|
311
|
-
__decorate([
|
|
312
|
-
property({ type: Boolean }),
|
|
313
|
-
__metadata("design:type", Object)
|
|
314
|
-
], MenuSurface.prototype, "skipRestoreFocus", void 0);
|
|
315
|
-
__decorate([
|
|
316
|
-
property({ type: Boolean }),
|
|
317
|
-
__metadata("design:type", Object)
|
|
318
|
-
], MenuSurface.prototype, "flipMenuHorizontally", void 0);
|
|
319
|
-
__decorate([
|
|
320
|
-
property({ type: String }),
|
|
321
|
-
__metadata("design:type", String)
|
|
322
|
-
], MenuSurface.prototype, "corner", void 0);
|
|
323
|
-
__decorate([
|
|
324
|
-
state(),
|
|
325
|
-
__metadata("design:type", Object)
|
|
326
|
-
], MenuSurface.prototype, "styleTop", void 0);
|
|
327
|
-
__decorate([
|
|
328
|
-
state(),
|
|
329
|
-
__metadata("design:type", Object)
|
|
330
|
-
], MenuSurface.prototype, "styleLeft", void 0);
|
|
331
|
-
__decorate([
|
|
332
|
-
state(),
|
|
333
|
-
__metadata("design:type", Object)
|
|
334
|
-
], MenuSurface.prototype, "styleRight", void 0);
|
|
335
|
-
__decorate([
|
|
336
|
-
state(),
|
|
337
|
-
__metadata("design:type", Object)
|
|
338
|
-
], MenuSurface.prototype, "styleBottom", void 0);
|
|
339
|
-
__decorate([
|
|
340
|
-
state(),
|
|
341
|
-
__metadata("design:type", Object)
|
|
342
|
-
], MenuSurface.prototype, "styleMaxHeight", void 0);
|
|
343
|
-
__decorate([
|
|
344
|
-
state(),
|
|
345
|
-
__metadata("design:type", Object)
|
|
346
|
-
], MenuSurface.prototype, "styleTransformOrigin", void 0);
|
|
347
|
-
//# sourceMappingURL=menu-surface.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-surface.js","sourceRoot":"","sources":["menu-surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,4CAA4C;AAC5C,mDAAmD;AAEnD,OAAO,8BAA8B,CAAC;AAEtC,OAAO,EAAC,IAAI,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAY,QAA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,IAAI,EAAE,MAAM,EAAC,CAAC;;sCAAuB;AAEhD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;sCAAuB;AAGhD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;0CAAe;AAEzC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;yCAAc;AAEvD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;wDAA6B;AAEvD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;qDAA0B;AAQpD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;yDAA8B;AAExD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;2CAAiC;AAE1D;IAAC,KAAK,EAAE;;6CAAyB;AACjC;IAAC,KAAK,EAAE;;8CAA0B;AAClC;IAAC,KAAK,EAAE;;+CAA2B;AACnC;IAAC,KAAK,EAAE;;gDAA4B;AACpC;IAAC,KAAK,EAAE;;mDAA+B;AACvC;IAAC,KAAK,EAAE;;yDAAqC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Style preference for leading underscores.\n// tslint:disable:strip-private-property-underscore\n\nimport '../../elevation/elevation.js';\n\nimport {html, LitElement, PropertyValues} from 'lit';\nimport {property, query, state} from 'lit/decorators.js';\nimport {ClassInfo, classMap} from 'lit/directives/class-map.js';\nimport {styleMap} from 'lit/directives/style-map.js';\n\nimport {isRtl} from '../../controller/is-rtl.js';\n\nimport {MDCMenuSurfaceAdapter} from './adapter.js';\nimport {Corner as CornerEnum} from './constants.js';\nimport {MDCMenuSurfaceFoundation} from './foundation.js';\n\nexport type Corner = keyof typeof CornerEnum;\nexport type AnchorableElement = HTMLElement&{anchor: Element | null};\n\n// tslint:disable:no-bitwise\n\n// required for closure compiler\nconst stringToCorner = {\n 'TOP_LEFT': CornerEnum.TOP_LEFT,\n 'TOP_RIGHT': CornerEnum.TOP_RIGHT,\n 'BOTTOM_LEFT': CornerEnum.BOTTOM_LEFT,\n 'BOTTOM_RIGHT': CornerEnum.BOTTOM_RIGHT,\n 'TOP_START': CornerEnum.TOP_START,\n 'TOP_END': CornerEnum.TOP_END,\n 'BOTTOM_START': CornerEnum.BOTTOM_START,\n 'BOTTOM_END': CornerEnum.BOTTOM_END,\n};\n\n/**\n * @fires opened\n * @fires closed\n */\nexport abstract class MenuSurface extends LitElement {\n protected mdcFoundation!: MDCMenuSurfaceFoundation;\n\n @query('.md3-menu-surface') mdcRoot!: HTMLDivElement;\n\n @query('slot') slotElement!: HTMLSlotElement|null;\n\n @property({type: Boolean}) absolute = false;\n\n @property({type: Boolean}) fullwidth = false;\n\n @property({type: Boolean}) fixed = false;\n\n @property({type: Number}) x: number|null = null;\n\n @property({type: Number}) y: number|null = null;\n\n // must be defined before open or else race condition in foundation occurs.\n @property({type: Boolean}) quick = false;\n\n @property({type: Boolean, reflect: true}) open = false;\n\n @property({type: Boolean}) stayOpenOnBodyClick = false;\n\n @property({type: Boolean}) skipRestoreFocus = false;\n\n protected previousFlipMenuHorizontally = false;\n\n /**\n * Whether to align the menu surface to the opposite side of the default\n * alignment.\n */\n @property({type: Boolean}) flipMenuHorizontally = false;\n\n @property({type: String}) corner: Corner = 'BOTTOM_START';\n\n @state() protected styleTop = '';\n @state() protected styleLeft = '';\n @state() protected styleRight = '';\n @state() protected styleBottom = '';\n @state() protected styleMaxHeight = '';\n @state() protected styleTransformOrigin = '';\n\n anchor: HTMLElement|null = null;\n\n protected previouslyFocused: HTMLElement|Element|null = null;\n protected previousAnchor: HTMLElement|null = null;\n protected onBodyClickBound: (evt: MouseEvent) => void = () => undefined;\n\n override render() {\n const styles = {\n 'top': this.styleTop,\n 'left': this.styleLeft,\n 'right': this.styleRight,\n 'bottom': this.styleBottom,\n 'max-height': this.styleMaxHeight,\n 'transform-origin': this.styleTransformOrigin,\n };\n\n return html`\n <div\n class=\"md3-menu-surface ${classMap(this.getRenderClasses())}\"\n style=\"${styleMap(styles)}\"\n @keydown=${this.onKeydown}\n @opened=${this.registerBodyClick}\n @closed=${this.deregisterBodyClick}>\n <md-elevation shadow></md-elevation>\n <slot></slot>\n </div>`;\n }\n\n /** @soyTemplate */\n protected getRenderClasses(): ClassInfo {\n return {\n 'md3-menu-surface--fixed': this.fixed,\n 'md3-menu-surface--fullwidth': this.fullwidth,\n };\n }\n\n protected override updated(changedProperties: PropertyValues<MenuSurface>) {\n if (changedProperties.has('absolute') && !this.fixed) {\n this.mdcFoundation.setIsHoisted(this.absolute);\n }\n\n if (changedProperties.has('fixed') && !this.absolute) {\n this.mdcFoundation.setFixedPosition(this.fixed);\n }\n\n if ((changedProperties.has('x') || changedProperties.has('y')) &&\n this.x !== null && this.y !== null) {\n this.mdcFoundation.setAbsolutePosition(this.x, this.y);\n this.mdcFoundation.setAnchorMargin(\n {left: this.x, top: this.y, right: -this.y, bottom: this.y});\n }\n\n if (changedProperties.has('quick')) {\n this.mdcFoundation.setQuickOpen(this.quick);\n }\n\n if (changedProperties.has('open')) {\n const wasOpen = changedProperties.get('open');\n if (this.open) {\n this.mdcFoundation.open();\n // wasOpen helps with first render (when it is `undefined`) perf\n } else if (wasOpen !== undefined) {\n this.mdcFoundation.close(this.skipRestoreFocus);\n }\n }\n\n if (changedProperties.has('flipMenuHorizontally')) {\n if (this.previousFlipMenuHorizontally !== this.flipMenuHorizontally) {\n this.mdcFoundation.flipCornerHorizontally();\n }\n this.previousFlipMenuHorizontally = this.flipMenuHorizontally;\n }\n\n if (changedProperties.has('corner') && this.corner) {\n const bitwiseCorner = stringToCorner[this.corner];\n this.mdcFoundation.setAnchorCorner(bitwiseCorner);\n }\n }\n\n protected override firstUpdated() {\n if (this.mdcFoundation !== undefined) {\n this.mdcFoundation.destroy();\n }\n\n this.mdcFoundation = new MDCMenuSurfaceFoundation(this.createAdapter());\n this.mdcFoundation.init();\n }\n\n createAdapter(): MDCMenuSurfaceAdapter {\n return {\n addClass: (className: string) => {\n this.mdcRoot.classList.add(className);\n },\n removeClass: (className: string) => {\n this.mdcRoot.classList.remove(className);\n },\n hasClass: (className: string) =>\n this.mdcRoot.classList.contains(className),\n hasAnchor: () => {\n return !!this.anchor;\n },\n notifyClose: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closed', init);\n this.open = false;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyClosing: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closing', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpen: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opened', init);\n this.open = true;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpening: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opening', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n isElementInContainer: () => false,\n isRtl: () => this.mdcRoot ? isRtl(this.mdcRoot) : false,\n setTransformOrigin: (origin) => {\n const root = this.mdcRoot;\n if (!root) {\n return;\n }\n\n this.styleTransformOrigin = origin;\n },\n isFocused: () => {\n return this.matches(':focus-within');\n },\n saveFocus: () => {\n this.previouslyFocused = document.activeElement;\n },\n restoreFocus: () => {\n if (!this.previouslyFocused) {\n return;\n }\n\n if ('focus' in this.previouslyFocused) {\n this.previouslyFocused.focus();\n }\n },\n getInnerDimensions: () => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return {width: 0, height: 0};\n }\n\n return {width: mdcRoot.offsetWidth, height: mdcRoot.offsetHeight};\n },\n getAnchorDimensions: () => {\n const anchorElement = this.anchor;\n\n return anchorElement ? anchorElement.getBoundingClientRect() : null;\n },\n getBodyDimensions: () => {\n return {\n width: document.body.clientWidth,\n height: document.body.clientHeight,\n };\n },\n getWindowDimensions: () => {\n return {\n width: window.innerWidth,\n height: window.innerHeight,\n };\n },\n getWindowScroll: () => {\n return {\n x: window.pageXOffset,\n y: window.pageYOffset,\n };\n },\n setPosition: (position) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n this.styleLeft = 'left' in position ? `${position.left}px` : '';\n this.styleRight = 'right' in position ? `${position.right}px` : '';\n this.styleTop = 'top' in position ? `${position.top}px` : '';\n this.styleBottom = 'bottom' in position ? `${position.bottom}px` : '';\n },\n setMaxHeight: async (height) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n // must set both for IE support as IE will not set a var\n this.styleMaxHeight = height;\n await this.updateComplete;\n this.styleMaxHeight = `var(--md3-menu-max-height, ${height})`;\n },\n };\n }\n\n protected onKeydown(evt: KeyboardEvent) {\n if (this.mdcFoundation) {\n this.mdcFoundation.handleKeydown(evt);\n }\n }\n\n protected onBodyClick(evt: MouseEvent) {\n if (this.stayOpenOnBodyClick) {\n return;\n }\n const path = evt.composedPath();\n if (path.indexOf(this) === -1) {\n this.close();\n }\n }\n\n protected registerBodyClick() {\n this.onBodyClickBound = this.onBodyClick.bind(this);\n // capture otherwise listener closes menu after quick menu opens\n document.body.addEventListener(\n 'click', this.onBodyClickBound, {passive: true, capture: true});\n }\n\n protected deregisterBodyClick() {\n document.body.removeEventListener(\n 'click', this.onBodyClickBound, {capture: true});\n }\n\n close() {\n this.open = false;\n }\n\n show() {\n this.open = true;\n }\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
export interface MDCMenuDimensions {
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
}
|
|
10
|
-
export interface MDCMenuDistance {
|
|
11
|
-
top: number;
|
|
12
|
-
right: number;
|
|
13
|
-
bottom: number;
|
|
14
|
-
left: number;
|
|
15
|
-
}
|
|
16
|
-
export interface MDCMenuPoint {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
}
|
package/menusurface/lib/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport interface MDCMenuDimensions {\n width: number;\n height: number;\n}\n\nexport interface MDCMenuDistance {\n top: number;\n right: number;\n bottom: number;\n left: number;\n}\n\nexport interface MDCMenuPoint {\n x: number;\n y: number;\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { MenuSurface } from './lib/menu-surface.js';
|
|
7
|
-
declare global {
|
|
8
|
-
interface HTMLElementTagNameMap {
|
|
9
|
-
'md-menu-surface': MdMenuSurface;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export declare class MdMenuSurface extends MenuSurface {
|
|
13
|
-
static styles: import("lit").CSSResult[];
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { __decorate } from "tslib";
|
|
7
|
-
import { customElement } from 'lit/decorators.js';
|
|
8
|
-
import { MenuSurface } from './lib/menu-surface.js';
|
|
9
|
-
import { styles } from './lib/menu-surface-styles.css.js';
|
|
10
|
-
let MdMenuSurface = class MdMenuSurface extends MenuSurface {
|
|
11
|
-
};
|
|
12
|
-
MdMenuSurface.styles = [styles];
|
|
13
|
-
MdMenuSurface = __decorate([
|
|
14
|
-
customElement('md-menu-surface')
|
|
15
|
-
], MdMenuSurface);
|
|
16
|
-
export { MdMenuSurface };
|
|
17
|
-
//# sourceMappingURL=menu-surface.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-surface.js","sourceRoot":"","sources":["menu-surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AASjD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,WAAW;;AAC5B,oBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AADvB,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CAEzB;SAFY,aAAa","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {customElement} from 'lit/decorators.js';\n\nimport {MenuSurface} from './lib/menu-surface.js';\nimport {styles} from './lib/menu-surface-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-menu-surface': MdMenuSurface;\n }\n}\n\n@customElement('md-menu-surface')\nexport class MdMenuSurface extends MenuSurface {\n static override styles = [styles];\n}\n"]}
|
package/sass/_elevation.scss
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2021 Google LLC
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// go/keep-sorted start
|
|
7
|
-
@use 'sass:map';
|
|
8
|
-
@use 'sass:meta';
|
|
9
|
-
// go/keep-sorted end
|
|
10
|
-
// go/keep-sorted start
|
|
11
|
-
@use './color';
|
|
12
|
-
@use './var';
|
|
13
|
-
// go/keep-sorted end
|
|
14
|
-
|
|
15
|
-
/// Returns the appropriate elevation theme for the given args.
|
|
16
|
-
///
|
|
17
|
-
/// @throw If elevation or shadow color is provided and the other is null.
|
|
18
|
-
/// @throw If a required resolver is missing.
|
|
19
|
-
/// @param {Number} $elevation - The elevation in dp.
|
|
20
|
-
/// @param {Color} $shadow-color - The elevation's shadow color.
|
|
21
|
-
/// @param {Map} $resolvers - Sass resolvers map. Requires `elevation-dp`,
|
|
22
|
-
/// `elevation-shadow`, and `elevation-overlay-opacity` resolvers.
|
|
23
|
-
/// @return {Map} The resolved elevation theme with a `shadow` box-shadow and
|
|
24
|
-
/// `overlay-opacity` for the given elevation and shadow color.
|
|
25
|
-
@function resolver($args...) {
|
|
26
|
-
$args: meta.keywords($args);
|
|
27
|
-
|
|
28
|
-
$dp: map.get($args, elevation);
|
|
29
|
-
$level: _resolve-dp($dp);
|
|
30
|
-
$shadow-color: map.get($args, shadow-color);
|
|
31
|
-
|
|
32
|
-
@return (
|
|
33
|
-
shadow: _resolve-box-shadow($level, $shadow-color),
|
|
34
|
-
overlay-opacity: _resolve-overlay-opacity($level)
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/// Maps elevation dps to elevation levels.
|
|
39
|
-
$_dp-to-level-map: (
|
|
40
|
-
// TODO: pull the keys from tokens
|
|
41
|
-
0: 0,
|
|
42
|
-
1: 1,
|
|
43
|
-
3: 2,
|
|
44
|
-
6: 3,
|
|
45
|
-
8: 4,
|
|
46
|
-
12: 5
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
/// Returns the appropriate elevation level for a given dp.
|
|
50
|
-
///
|
|
51
|
-
/// @throw If the provided dp does not map to an elevation level.
|
|
52
|
-
/// @param {Number} $dp - The dp to convert to an elevation level.
|
|
53
|
-
/// @return {Number} The level of the elevation system, or null if the dp is
|
|
54
|
-
/// null.
|
|
55
|
-
@function _resolve-dp($dp) {
|
|
56
|
-
@if $dp == null {
|
|
57
|
-
@return null;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
$level: map.get($_dp-to-level-map, $dp);
|
|
61
|
-
@if $level == null {
|
|
62
|
-
@error '#{$dp} is not a valid elevation dp level. Must be one of #{map.keys($_dp-to-level-map)}.';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@return $level;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// TODO: pull these values from tokens
|
|
69
|
-
$_key-opacity: 0.3;
|
|
70
|
-
$_ambient-opacity: 0.15;
|
|
71
|
-
$_shadow-map: (
|
|
72
|
-
0: (
|
|
73
|
-
key: '0px 0px 0px 0px',
|
|
74
|
-
ambient: '0px 0px 0px 0px',
|
|
75
|
-
),
|
|
76
|
-
1: (
|
|
77
|
-
key: '0px 1px 2px 0px',
|
|
78
|
-
ambient: '0px 1px 3px 1px',
|
|
79
|
-
),
|
|
80
|
-
2: (
|
|
81
|
-
key: '0px 1px 2px 0px',
|
|
82
|
-
ambient: '0px 2px 6px 2px',
|
|
83
|
-
),
|
|
84
|
-
3: (
|
|
85
|
-
key: '0px 1px 3px 0px',
|
|
86
|
-
ambient: '0px 4px 8px 3px',
|
|
87
|
-
),
|
|
88
|
-
4: (
|
|
89
|
-
key: '0px 2px 3px 0px',
|
|
90
|
-
ambient: '0px 6px 10px 4px',
|
|
91
|
-
),
|
|
92
|
-
5: (
|
|
93
|
-
key: '0px 4px 4px 0px',
|
|
94
|
-
ambient: '0px 8px 12px 6px',
|
|
95
|
-
),
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
/// Returns the appropriate box-shadow for the given level and shadow color.
|
|
99
|
-
///
|
|
100
|
-
/// @throw If level or shadow-color are provided and one is null.
|
|
101
|
-
/// @param {Number} $level - The level of the elevation system.
|
|
102
|
-
/// @param {Color} $shadow-color - The color of the shadow.
|
|
103
|
-
/// @return {List|String} - The constructed box-shadow, none (for elevation 0),
|
|
104
|
-
/// or null
|
|
105
|
-
@function _resolve-box-shadow($level, $shadow-color) {
|
|
106
|
-
@if $level == null and $shadow-color == null {
|
|
107
|
-
@return null;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@if $level == 0 {
|
|
111
|
-
@return none;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
@if $level == null {
|
|
115
|
-
@error '$elevation is required when $shadow-color is provided';
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@if $shadow-color == null {
|
|
119
|
-
@error '$shadow-color is required when $elevation is provided';
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
$key-spread: map.get($_shadow-map, $level, key);
|
|
123
|
-
$ambient-spread: map.get($_shadow-map, $level, ambient);
|
|
124
|
-
|
|
125
|
-
$key-color: rgba($shadow-color, $_key-opacity);
|
|
126
|
-
$ambient-color: rgba($shadow-color, $_ambient-opacity);
|
|
127
|
-
|
|
128
|
-
@if var.is-var($shadow-color) {
|
|
129
|
-
// TODO(b/213331407): Convert color from hex to rgba CSS color format to
|
|
130
|
-
// enable mixing rgb value with alpha using custom properties.
|
|
131
|
-
// (e.g., rgb(var(--foo-sys-color-on-surface-rgb, 31,31,31), 0.38))
|
|
132
|
-
// Remove once the attached bug is resolved.
|
|
133
|
-
$key-color: color.color-var-hex-to-rgba($shadow-color, $_key-opacity);
|
|
134
|
-
$ambient-color: color.color-var-hex-to-rgba(
|
|
135
|
-
$shadow-color,
|
|
136
|
-
$_ambient-opacity
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@return (#{$key-spread} #{$key-color}, #{$ambient-spread} #{$ambient-color});
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// TODO: pull these values from tokens
|
|
144
|
-
$_overlay-opacity: (
|
|
145
|
-
0: 0,
|
|
146
|
-
1: 0.05,
|
|
147
|
-
2: 0.08,
|
|
148
|
-
3: 0.11,
|
|
149
|
-
4: 0.12,
|
|
150
|
-
5: 0.14,
|
|
151
|
-
);
|
|
152
|
-
|
|
153
|
-
/// Returns the appropriate overlay opacity for the given level.
|
|
154
|
-
///
|
|
155
|
-
/// @param {Number} $level - The level of the elevation system.
|
|
156
|
-
/// @return {Number} The opacity or null.
|
|
157
|
-
@function _resolve-overlay-opacity($level) {
|
|
158
|
-
@return map.get($_overlay-opacity, $level);
|
|
159
|
-
}
|