@material/web 1.0.0-pre.3 → 1.0.0-pre.5
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/LICENSE +1 -1
- package/README.md +41 -41
- package/badge/lib/_badge.scss +2 -10
- package/button/lib/_elevated-button.scss +5 -30
- package/button/lib/_elevation.scss +1 -16
- 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 +20 -54
- package/button/lib/_text-button.scss +8 -34
- package/button/lib/_tonal-button.scss +5 -28
- package/button/lib/button.d.ts +2 -0
- package/button/lib/button.js +5 -1
- package/button/lib/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-styles.css.js +1 -1
- package/button/lib/filled-styles.css.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-styles.css.js +1 -1
- package/button/lib/shared-styles.css.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-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 +183 -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/{list/lib/listitem/list-item-private-styles.scss → chips/lib/assist-styles.scss} +2 -2
- 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/{menu/lib/menuitem/menu-item-private-styles.scss → chips/lib/suggestion-styles.scss} +2 -2
- package/chips/suggestion-chip.d.ts +20 -0
- package/chips/suggestion-chip.js +24 -0
- package/chips/suggestion-chip.js.map +1 -0
- package/controller/form-controller.d.ts +1 -1
- package/controller/form-controller.js +21 -29
- package/controller/form-controller.js.map +1 -1
- package/dialog/lib/_dialog.scss +7 -5
- 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 +1 -21
- package/elevation/lib/elevation-styles.css.js +1 -1
- package/elevation/lib/elevation-styles.css.js.map +1 -1
- package/fab/lib/_fab-extended.scss +3 -10
- package/fab/lib/_fab.scss +0 -3
- package/fab/lib/_shared.scss +3 -25
- 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 +1 -7
- package/fab/lib/fab-shared.js.map +1 -1
- package/field/lib/_content.scss +91 -13
- package/field/lib/_filled-field.scss +19 -57
- package/field/lib/_label.scss +1 -2
- package/field/lib/_md-comp-filled-field.scss +123 -64
- package/field/lib/_md-comp-outlined-field.scss +100 -59
- package/field/lib/_outlined-field.scss +13 -11
- package/field/lib/_shared.scss +21 -17
- package/field/lib/field.d.ts +6 -2
- package/field/lib/field.js +80 -62
- package/field/lib/field.js.map +1 -1
- package/field/lib/filled-field.d.ts +0 -5
- package/field/lib/filled-field.js +2 -41
- package/field/lib/filled-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-field.js +1 -1
- package/field/lib/outlined-field.js.map +1 -1
- package/field/lib/outlined-styles.css.js +1 -1
- package/field/lib/outlined-styles.css.js.map +1 -1
- package/field/lib/shared-styles.css.js +1 -1
- package/field/lib/shared-styles.css.js.map +1 -1
- package/focus/lib/_focus-ring.scss +13 -7
- package/focus/lib/_md-comp-focus-ring.scss +1 -2
- package/focus/lib/focus-ring-styles.css.js +1 -1
- package/focus/lib/focus-ring-styles.css.js.map +1 -1
- package/icon/lib/_icon.scss +1 -1
- package/icon/lib/_md-comp-icon.scss +1 -2
- package/icon/lib/icon-styles.css.js +1 -1
- package/icon/lib/icon-styles.css.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.js +0 -2
- 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/lib/_list.scss +34 -17
- package/list/lib/list-styles.css.js +1 -1
- package/list/lib/list-styles.css.js.map +1 -1
- package/list/lib/listitem/_list-item.scss +312 -124
- 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 +8 -6
- package/list/lib/listitem/list-item.js +26 -27
- package/list/lib/listitem/list-item.js.map +1 -1
- package/list/list-item-link.d.ts +18 -0
- package/list/list-item-link.js +19 -2
- package/list/list-item-link.js.map +1 -1
- package/list/list-item.d.ts +19 -0
- package/list/list-item.js +20 -2
- package/list/list-item.js.map +1 -1
- package/menu/lib/_menu.scss +26 -8
- 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 +22 -9
- package/menu/lib/menu.js +76 -27
- package/menu/lib/menu.js.map +1 -1
- package/menu/lib/menuitem/_menu-item.scss +39 -79
- 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 +16 -0
- package/menu/lib/shared.js +16 -0
- package/menu/lib/shared.js.map +1 -1
- package/menu/lib/submenuitem/sub-menu-item.d.ts +4 -1
- package/menu/lib/submenuitem/sub-menu-item.js +9 -3
- 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 +5 -0
- package/menu/lib/typeaheadController.js +7 -3
- package/menu/lib/typeaheadController.js.map +1 -1
- package/menu/menu-item-link.js +1 -2
- package/menu/menu-item-link.js.map +1 -1
- package/menu/menu-item.js +2 -3
- package/menu/menu-item.js.map +1 -1
- package/menu/sub-menu-item.js +1 -2
- package/menu/sub-menu-item.js.map +1 -1
- package/navigationbar/lib/_navigation-bar.scss +1 -4
- package/navigationdrawer/lib/_navigation-drawer-modal.scss +0 -3
- package/navigationdrawer/lib/_navigation-drawer.scss +0 -3
- package/navigationdrawer/lib/_shared.scss +0 -9
- 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 +1 -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/segmentedbutton/lib/_shared.scss +0 -2
- package/segmentedbuttonset/lib/outlined-styles.css.js +1 -1
- package/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -1
- package/slider/lib/_slider.scss +1 -4
- package/slider/lib/_tokens.scss +2 -8
- package/slider/lib/slider-styles.css.js +1 -1
- package/slider/lib/slider-styles.css.js.map +1 -1
- package/textfield/lib/_filled-text-field.scss +99 -103
- package/textfield/lib/_icon.scss +11 -55
- package/textfield/lib/_input.scss +4 -6
- package/textfield/lib/_outlined-text-field.scss +88 -95
- 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/textfield/lib/shared-styles.css.js +1 -1
- package/textfield/lib/shared-styles.css.js.map +1 -1
- package/tokens/_index.scss +101 -2
- package/tokens/_md-comp-assist-chip.scss +68 -0
- package/tokens/_md-comp-badge.scss +34 -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 +22 -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 +43 -0
- package/tokens/_md-comp-divider.scss +17 -0
- package/tokens/_md-comp-elevated-button.scss +58 -0
- package/tokens/_md-comp-elevated-card.scss +23 -0
- package/tokens/_md-comp-extended-fab-branded.scss +38 -0
- package/tokens/_md-comp-extended-fab-primary.scss +38 -0
- package/tokens/_md-comp-extended-fab-secondary.scss +41 -0
- package/tokens/_md-comp-extended-fab-surface.scss +38 -0
- package/tokens/_md-comp-extended-fab-tertiary.scss +41 -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 +58 -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 +46 -0
- package/tokens/_md-comp-filled-tonal-button.scss +59 -0
- package/tokens/_md-comp-filled-tonal-icon-button.scss +24 -0
- package/tokens/_md-comp-filter-chip.scss +38 -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 +38 -0
- package/tokens/_md-comp-linear-progress-indicator.scss +22 -0
- package/tokens/_md-comp-list.scss +58 -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 +56 -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 +38 -0
- package/tokens/_md-comp-outlined-select.scss +25 -0
- package/tokens/_md-comp-outlined-text-field.scss +44 -0
- package/tokens/_md-comp-plain-tooltip.scss +21 -0
- package/tokens/_md-comp-primary-navigation-tab.scss +41 -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 +41 -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 +38 -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 +72 -0
- package/tokens/_md-comp-switch.scss +21 -0
- package/tokens/_md-comp-text-button.scss +56 -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 +12 -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 +17 -0
- package/tokens/{v0_160 → v0_161}/_md-comp-assist-chip.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-badge.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-banner.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-bottom-app-bar.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-carousel-item.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-checkbox.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-circular-progress-indicator.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-data-table.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-date-input-modal.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-date-picker-docked.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-date-picker-modal.scss +3 -3
- package/tokens/{v0_160 → v0_161}/_md-comp-dialog.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-divider.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-elevated-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-elevated-card.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-extended-fab-branded.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-extended-fab-primary.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-extended-fab-secondary.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-extended-fab-surface.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-extended-fab-tertiary.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-branded-large.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-branded.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-primary-large.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-primary-small.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-primary.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-secondary-large.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-secondary-small.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-secondary.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-surface-large.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-surface-small.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-surface.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-tertiary-large.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-tertiary-small.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-fab-tertiary.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filled-autocomplete.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filled-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filled-card.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filled-icon-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filled-menu-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filled-select.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filled-text-field.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filled-tonal-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filled-tonal-icon-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-filter-chip.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-full-screen-dialog.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-icon-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-input-chip.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-linear-progress-indicator.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-list.scss +1 -1
- package/tokens/v0_161/_md-comp-menu.scss +37 -0
- package/tokens/{v0_160 → v0_161}/_md-comp-navigation-bar.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-navigation-drawer.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-navigation-rail.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-outlined-autocomplete.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-outlined-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-outlined-card.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-outlined-icon-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-outlined-menu-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-outlined-segmented-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-outlined-select.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-outlined-text-field.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-plain-tooltip.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-primary-navigation-tab.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-radio-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-rich-tooltip.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-scrim.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-search-bar.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-search-view.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-secondary-navigation-tab.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-sheet-bottom.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-sheet-floating.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-sheet-side.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-slider.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-snackbar.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-standard-menu-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-suggestion-chip.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-switch.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-text-button.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-time-input.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-time-picker.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-top-app-bar-large.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-top-app-bar-medium.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-top-app-bar-small-centered.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-comp-top-app-bar-small.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-ref-palette.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-ref-typeface.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-sys-color.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-sys-elevation.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-sys-motion.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-sys-shape.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_md-sys-state.scss +1 -1
- package/tokens/{v0_160 → v0_161}/_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-styles.scss +0 -10
- 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.d.ts +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.d.ts +0 -1
- 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/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/controller/foundation.d.ts +0 -24
- package/controller/foundation.js +0 -18
- package/controller/foundation.js.map +0 -1
- package/controller/observer-foundation.d.ts +0 -25
- package/controller/observer-foundation.js +0 -37
- package/controller/observer-foundation.js.map +0 -1
- package/controller/observer.d.ts +0 -52
- package/controller/observer.js +0 -149
- package/controller/observer.js.map +0 -1
- package/decorators/bound.d.ts +0 -40
- package/decorators/bound.js +0 -49
- package/decorators/bound.js.map +0 -1
- package/list/lib/avatar/_list-item-avatar.scss +0 -40
- package/list/lib/avatar/list-item-avatar-styles.css.d.ts +0 -1
- package/list/lib/avatar/list-item-avatar-styles.css.js +0 -9
- package/list/lib/avatar/list-item-avatar-styles.css.js.map +0 -1
- package/list/lib/avatar/list-item-avatar-styles.scss +0 -10
- package/list/lib/avatar/list-item-avatar.d.ts +0 -21
- package/list/lib/avatar/list-item-avatar.js +0 -48
- package/list/lib/avatar/list-item-avatar.js.map +0 -1
- package/list/lib/icon/_list-item-icon.scss +0 -71
- package/list/lib/icon/list-item-icon-styles.css.d.ts +0 -1
- package/list/lib/icon/list-item-icon-styles.css.js +0 -9
- package/list/lib/icon/list-item-icon-styles.css.js.map +0 -1
- package/list/lib/icon/list-item-icon-styles.scss +0 -10
- package/list/lib/icon/list-item-icon.d.ts +0 -9
- package/list/lib/icon/list-item-icon.js +0 -15
- package/list/lib/icon/list-item-icon.js.map +0 -1
- package/list/lib/image/_list-item-image.scss +0 -63
- package/list/lib/image/list-item-image-styles.css.d.ts +0 -1
- package/list/lib/image/list-item-image-styles.css.js +0 -9
- package/list/lib/image/list-item-image-styles.css.js.map +0 -1
- package/list/lib/image/list-item-image-styles.scss +0 -10
- package/list/lib/image/list-item-image.d.ts +0 -21
- package/list/lib/image/list-item-image.js +0 -48
- package/list/lib/image/list-item-image.js.map +0 -1
- package/list/lib/listitem/list-item-private-styles.css.d.ts +0 -1
- package/list/lib/listitem/list-item-private-styles.css.js +0 -9
- package/list/lib/listitem/list-item-private-styles.css.js.map +0 -1
- package/list/lib/video/_list-item-video.scss +0 -71
- package/list/lib/video/list-item-video-styles.css.d.ts +0 -1
- package/list/lib/video/list-item-video-styles.css.js +0 -9
- package/list/lib/video/list-item-video-styles.css.js.map +0 -1
- package/list/lib/video/list-item-video-styles.scss +0 -10
- package/list/lib/video/list-item-video.d.ts +0 -53
- package/list/lib/video/list-item-video.js +0 -115
- package/list/lib/video/list-item-video.js.map +0 -1
- package/list/list-item-avatar.d.ts +0 -20
- package/list/list-item-avatar.js +0 -23
- package/list/list-item-avatar.js.map +0 -1
- package/list/list-item-icon.d.ts +0 -20
- package/list/list-item-icon.js +0 -23
- package/list/list-item-icon.js.map +0 -1
- package/list/list-item-image.d.ts +0 -20
- package/list/list-item-image.js +0 -23
- package/list/list-item-image.js.map +0 -1
- package/list/list-item-video.d.ts +0 -20
- package/list/list-item-video.js +0 -23
- package/list/list-item-video.js.map +0 -1
- package/menu/lib/menuitem/menu-item-private-styles.css.d.ts +0 -1
- package/menu/lib/menuitem/menu-item-private-styles.css.js +0 -9
- package/menu/lib/menuitem/menu-item-private-styles.css.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.d.ts +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-styles.scss +0 -10
- 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-menu.scss +0 -121
- /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/tokens/{v0_160 → v0_161}/_index.scss +0 -0
- /package/tokens/{v0_160 → v0_161}/index.test.css.d.ts +0 -0
- /package/tokens/{v0_160 → v0_161}/index.test.css.js +0 -0
- /package/tokens/{v0_160 → v0_161}/index.test.css.js.map +0 -0
- /package/tokens/{v0_160 → v0_161}/index.test.scss +0 -0
- /package/tokens/{v0_160 → v0_161}/lib.test.css.d.ts +0 -0
- /package/tokens/{v0_160 → v0_161}/lib.test.css.js +0 -0
- /package/tokens/{v0_160 → v0_161}/lib.test.css.js.map +0 -0
- /package/tokens/{v0_160 → v0_161}/lib.test.scss +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ListItemAvatar } from './lib/avatar/list-item-avatar.js';
|
|
7
|
-
declare global {
|
|
8
|
-
interface HTMLElementTagNameMap {
|
|
9
|
-
'md-list-item-avatar': MdListItemAvatar;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @summary An image avatar that is expected to be slotted into a list item.
|
|
14
|
-
*
|
|
15
|
-
* @final
|
|
16
|
-
* @suppress {visibility}
|
|
17
|
-
*/
|
|
18
|
-
export declare class MdListItemAvatar extends ListItemAvatar {
|
|
19
|
-
static styles: import("lit").CSSResult[];
|
|
20
|
-
}
|
package/list/list-item-avatar.js
DELETED
|
@@ -1,23 +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 { ListItemAvatar } from './lib/avatar/list-item-avatar.js';
|
|
9
|
-
import { styles } from './lib/avatar/list-item-avatar-styles.css.js';
|
|
10
|
-
/**
|
|
11
|
-
* @summary An image avatar that is expected to be slotted into a list item.
|
|
12
|
-
*
|
|
13
|
-
* @final
|
|
14
|
-
* @suppress {visibility}
|
|
15
|
-
*/
|
|
16
|
-
let MdListItemAvatar = class MdListItemAvatar extends ListItemAvatar {
|
|
17
|
-
};
|
|
18
|
-
MdListItemAvatar.styles = [styles];
|
|
19
|
-
MdListItemAvatar = __decorate([
|
|
20
|
-
customElement('md-list-item-avatar')
|
|
21
|
-
], MdListItemAvatar);
|
|
22
|
-
export { MdListItemAvatar };
|
|
23
|
-
//# sourceMappingURL=list-item-avatar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-avatar.js","sourceRoot":"","sources":["list-item-avatar.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAC,MAAM,EAAC,MAAM,6CAA6C,CAAC;AAQnE;;;;;GAKG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,cAAc;;AAClC,uBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AADvB,gBAAgB;IAD5B,aAAa,CAAC,qBAAqB,CAAC;GACxB,gBAAgB,CAE5B;SAFY,gBAAgB","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 {ListItemAvatar} from './lib/avatar/list-item-avatar.js';\nimport {styles} from './lib/avatar/list-item-avatar-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-list-item-avatar': MdListItemAvatar;\n }\n}\n\n/**\n * @summary An image avatar that is expected to be slotted into a list item.\n *\n * @final\n * @suppress {visibility}\n */\n@customElement('md-list-item-avatar')\nexport class MdListItemAvatar extends ListItemAvatar {\n static override styles = [styles];\n}\n"]}
|
package/list/list-item-icon.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ListItemIcon } from './lib/icon/list-item-icon.js';
|
|
7
|
-
declare global {
|
|
8
|
-
interface HTMLElementTagNameMap {
|
|
9
|
-
'md-list-item-icon': MdListItemIcon;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @summary A material icon that is expected to be slotted into a list item.
|
|
14
|
-
*
|
|
15
|
-
* @final
|
|
16
|
-
* @suppress {visibility}
|
|
17
|
-
*/
|
|
18
|
-
export declare class MdListItemIcon extends ListItemIcon {
|
|
19
|
-
static styles: import("lit").CSSResult[];
|
|
20
|
-
}
|
package/list/list-item-icon.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { __decorate } from "tslib";
|
|
7
|
-
import { customElement } from 'lit/decorators.js';
|
|
8
|
-
import { ListItemIcon } from './lib/icon/list-item-icon.js';
|
|
9
|
-
import { styles } from './lib/icon/list-item-icon-styles.css.js';
|
|
10
|
-
/**
|
|
11
|
-
* @summary A material icon that is expected to be slotted into a list item.
|
|
12
|
-
*
|
|
13
|
-
* @final
|
|
14
|
-
* @suppress {visibility}
|
|
15
|
-
*/
|
|
16
|
-
let MdListItemIcon = class MdListItemIcon extends ListItemIcon {
|
|
17
|
-
};
|
|
18
|
-
MdListItemIcon.styles = [styles];
|
|
19
|
-
MdListItemIcon = __decorate([
|
|
20
|
-
customElement('md-list-item-icon')
|
|
21
|
-
], MdListItemIcon);
|
|
22
|
-
export { MdListItemIcon };
|
|
23
|
-
//# sourceMappingURL=list-item-icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-icon.js","sourceRoot":"","sources":["list-item-icon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,MAAM,EAAC,MAAM,yCAAyC,CAAC;AAQ/D;;;;;GAKG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,YAAY;;AAC9B,qBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AADvB,cAAc;IAD1B,aAAa,CAAC,mBAAmB,CAAC;GACtB,cAAc,CAE1B;SAFY,cAAc","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {customElement} from 'lit/decorators.js';\n\nimport {ListItemIcon} from './lib/icon/list-item-icon.js';\nimport {styles} from './lib/icon/list-item-icon-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-list-item-icon': MdListItemIcon;\n }\n}\n\n/**\n * @summary A material icon that is expected to be slotted into a list item.\n *\n * @final\n * @suppress {visibility}\n */\n@customElement('md-list-item-icon')\nexport class MdListItemIcon extends ListItemIcon {\n static override styles = [styles];\n}\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ListItemImage } from './lib/image/list-item-image.js';
|
|
7
|
-
declare global {
|
|
8
|
-
interface HTMLElementTagNameMap {
|
|
9
|
-
'md-list-item-image': MdListItemImage;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @summary An image that is expected to be slotted into a list item.
|
|
14
|
-
*
|
|
15
|
-
* @final
|
|
16
|
-
* @suppress {visibility}
|
|
17
|
-
*/
|
|
18
|
-
export declare class MdListItemImage extends ListItemImage {
|
|
19
|
-
static styles: import("lit").CSSResult[];
|
|
20
|
-
}
|
package/list/list-item-image.js
DELETED
|
@@ -1,23 +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 { ListItemImage } from './lib/image/list-item-image.js';
|
|
9
|
-
import { styles } from './lib/image/list-item-image-styles.css.js';
|
|
10
|
-
/**
|
|
11
|
-
* @summary An image that is expected to be slotted into a list item.
|
|
12
|
-
*
|
|
13
|
-
* @final
|
|
14
|
-
* @suppress {visibility}
|
|
15
|
-
*/
|
|
16
|
-
let MdListItemImage = class MdListItemImage extends ListItemImage {
|
|
17
|
-
};
|
|
18
|
-
MdListItemImage.styles = [styles];
|
|
19
|
-
MdListItemImage = __decorate([
|
|
20
|
-
customElement('md-list-item-image')
|
|
21
|
-
], MdListItemImage);
|
|
22
|
-
export { MdListItemImage };
|
|
23
|
-
//# sourceMappingURL=list-item-image.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-image.js","sourceRoot":"","sources":["list-item-image.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,MAAM,EAAC,MAAM,2CAA2C,CAAC;AAQjE;;;;;GAKG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,aAAa;;AAChC,sBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AADvB,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CAE3B;SAFY,eAAe","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 {ListItemImage} from './lib/image/list-item-image.js';\nimport {styles} from './lib/image/list-item-image-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-list-item-image': MdListItemImage;\n }\n}\n\n/**\n * @summary An image that is expected to be slotted into a list item.\n *\n * @final\n * @suppress {visibility}\n */\n@customElement('md-list-item-image')\nexport class MdListItemImage extends ListItemImage {\n static override styles = [styles];\n}\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ListItemVideo } from './lib/video/list-item-video.js';
|
|
7
|
-
declare global {
|
|
8
|
-
interface HTMLElementTagNameMap {
|
|
9
|
-
'md-list-item-video': MdListItemVideo;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @summary A video that is expected to be slotted into a list item.
|
|
14
|
-
*
|
|
15
|
-
* @final
|
|
16
|
-
* @suppress {visibility}
|
|
17
|
-
*/
|
|
18
|
-
export declare class MdListItemVideo extends ListItemVideo {
|
|
19
|
-
static styles: import("lit").CSSResult[];
|
|
20
|
-
}
|
package/list/list-item-video.js
DELETED
|
@@ -1,23 +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 { ListItemVideo } from './lib/video/list-item-video.js';
|
|
9
|
-
import { styles } from './lib/video/list-item-video-styles.css.js';
|
|
10
|
-
/**
|
|
11
|
-
* @summary A video that is expected to be slotted into a list item.
|
|
12
|
-
*
|
|
13
|
-
* @final
|
|
14
|
-
* @suppress {visibility}
|
|
15
|
-
*/
|
|
16
|
-
let MdListItemVideo = class MdListItemVideo extends ListItemVideo {
|
|
17
|
-
};
|
|
18
|
-
MdListItemVideo.styles = [styles];
|
|
19
|
-
MdListItemVideo = __decorate([
|
|
20
|
-
customElement('md-list-item-video')
|
|
21
|
-
], MdListItemVideo);
|
|
22
|
-
export { MdListItemVideo };
|
|
23
|
-
//# sourceMappingURL=list-item-video.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-video.js","sourceRoot":"","sources":["list-item-video.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,MAAM,EAAC,MAAM,2CAA2C,CAAC;AAQjE;;;;;GAKG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,aAAa;;AAChC,sBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AADvB,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CAE3B;SAFY,eAAe","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 {ListItemVideo} from './lib/video/list-item-video.js';\nimport {styles} from './lib/video/list-item-video-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-list-item-video': MdListItemVideo;\n }\n}\n\n/**\n * @summary A video that is expected to be slotted into a list item.\n *\n * @final\n * @suppress {visibility}\n */\n@customElement('md-list-item-video')\nexport class MdListItemVideo extends ListItemVideo {\n static override styles = [styles];\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { css } from 'lit';
|
|
7
|
-
export const styles = css `:host{--_list-item-container-height: var(--md-menu-list-item-container-height, 48px);--_list-item-disabled-label-text-color: var(--md-menu-list-item-disabled-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-disabled-label-text-opacity: var(--md-menu-list-item-disabled-label-text-opacity, 0.38);--_list-item-focus-label-text-color: var(--md-menu-list-item-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-focus-state-layer-color: var(--md-menu-list-item-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-focus-state-layer-opacity: var(--md-menu-list-item-focus-state-layer-opacity, 0.12);--_list-item-hover-label-text-color: var(--md-menu-list-item-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-hover-state-layer-color: var(--md-menu-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-hover-state-layer-opacity: var(--md-menu-list-item-hover-state-layer-opacity, 0.08);--_list-item-label-text-color: var(--md-menu-list-item-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-label-text-type: var(--md-menu-list-item-label-text-type, 500 0.875rem / 1.25rem Roboto);--_list-item-pressed-label-text-color: var(--md-menu-list-item-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-pressed-state-layer-color: var(--md-menu-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-pressed-state-layer-opacity: var(--md-menu-list-item-pressed-state-layer-opacity, 0.12);--_list-item-selected-container-color: var(--md-menu-list-item-selected-container-color, var(--md-sys-color-surface-variant, #e7e0ec));--_list-item-disabled-leading-icon-color: var(--md-menu-list-item-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-disabled-leading-icon-opacity: var(--md-menu-list-item-disabled-leading-icon-opacity, 0.38);--_list-item-focus-leading-icon-icon-color: var(--md-menu-list-item-focus-leading-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-hover-leading-icon-icon-color: var(--md-menu-list-item-hover-leading-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-leading-icon-color: var(--md-menu-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-leading-icon-size: var(--md-menu-list-item-leading-icon-size, 24px);--_list-item-pressed-leading-icon-icon-color: var(--md-menu-list-item-pressed-leading-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-disabled-trailing-icon-color: var(--md-menu-list-item-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-disabled-trailing-icon-opacity: var(--md-menu-list-item-disabled-trailing-icon-opacity, 0.38);--_list-item-focus-trailing-icon-icon-color: var(--md-menu-list-item-focus-trailing-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-hover-trailing-icon-icon-color: var(--md-menu-list-item-hover-trailing-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-pressed-trailing-icon-icon-color: var(--md-menu-list-item-pressed-trailing-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-trailing-icon-color: var(--md-menu-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-trailing-icon-size: var(--md-menu-list-item-trailing-icon-size, 24px);--_list-item-one-line-container-height: var(--md-menu-list-item-one-line-container-height, 48px)}/*# sourceMappingURL=menu-item-private-styles.css.map */
|
|
8
|
-
`;
|
|
9
|
-
//# sourceMappingURL=menu-item-private-styles.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item-private-styles.css.js","sourceRoot":"","sources":["menu-item-private-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`:host{--_list-item-container-height: var(--md-menu-list-item-container-height, 48px);--_list-item-disabled-label-text-color: var(--md-menu-list-item-disabled-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-disabled-label-text-opacity: var(--md-menu-list-item-disabled-label-text-opacity, 0.38);--_list-item-focus-label-text-color: var(--md-menu-list-item-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-focus-state-layer-color: var(--md-menu-list-item-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-focus-state-layer-opacity: var(--md-menu-list-item-focus-state-layer-opacity, 0.12);--_list-item-hover-label-text-color: var(--md-menu-list-item-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-hover-state-layer-color: var(--md-menu-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-hover-state-layer-opacity: var(--md-menu-list-item-hover-state-layer-opacity, 0.08);--_list-item-label-text-color: var(--md-menu-list-item-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-label-text-type: var(--md-menu-list-item-label-text-type, 500 0.875rem / 1.25rem Roboto);--_list-item-pressed-label-text-color: var(--md-menu-list-item-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-pressed-state-layer-color: var(--md-menu-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-pressed-state-layer-opacity: var(--md-menu-list-item-pressed-state-layer-opacity, 0.12);--_list-item-selected-container-color: var(--md-menu-list-item-selected-container-color, var(--md-sys-color-surface-variant, #e7e0ec));--_list-item-disabled-leading-icon-color: var(--md-menu-list-item-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-disabled-leading-icon-opacity: var(--md-menu-list-item-disabled-leading-icon-opacity, 0.38);--_list-item-focus-leading-icon-icon-color: var(--md-menu-list-item-focus-leading-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-hover-leading-icon-icon-color: var(--md-menu-list-item-hover-leading-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-leading-icon-color: var(--md-menu-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-leading-icon-size: var(--md-menu-list-item-leading-icon-size, 24px);--_list-item-pressed-leading-icon-icon-color: var(--md-menu-list-item-pressed-leading-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-disabled-trailing-icon-color: var(--md-menu-list-item-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_list-item-disabled-trailing-icon-opacity: var(--md-menu-list-item-disabled-trailing-icon-opacity, 0.38);--_list-item-focus-trailing-icon-icon-color: var(--md-menu-list-item-focus-trailing-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-hover-trailing-icon-icon-color: var(--md-menu-list-item-hover-trailing-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-pressed-trailing-icon-icon-color: var(--md-menu-list-item-pressed-trailing-icon-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-trailing-icon-color: var(--md-menu-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_list-item-trailing-icon-size: var(--md-menu-list-item-trailing-icon-size, 24px);--_list-item-one-line-container-height: var(--md-menu-list-item-one-line-container-height, 48px)}/*# sourceMappingURL=menu-item-private-styles.css.map */\n`;\n "]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2022 Google LLC
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// go/keep-sorted start
|
|
7
|
-
@use 'sass:map';
|
|
8
|
-
// go/keep-sorted end
|
|
9
|
-
// go/keep-sorted start
|
|
10
|
-
@use '../../elevation/lib/elevation';
|
|
11
|
-
@use '../../tokens';
|
|
12
|
-
// go/keep-sorted end
|
|
13
|
-
|
|
14
|
-
$_default-deps: (
|
|
15
|
-
md-sys-color: tokens.md-sys-color-values-light(),
|
|
16
|
-
md-sys-elevation: tokens.md-sys-elevation-values(),
|
|
17
|
-
md-sys-shape: tokens.md-sys-shape-values(),
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
@function values($deps: $_default-deps, $exclude-hardcoded-values: false) {
|
|
21
|
-
// Use menu tokens for default menu surface values.
|
|
22
|
-
$menu-values: tokens.md-comp-menu-values($deps, $exclude-hardcoded-values);
|
|
23
|
-
|
|
24
|
-
@return (
|
|
25
|
-
container-elevation: map.get($menu-values, container-elevation),
|
|
26
|
-
container-shadow-color: map.get($menu-values, container-shadow-color),
|
|
27
|
-
container-shape: map.get($menu-values, container-shape),
|
|
28
|
-
container-surface-tint-layer-color:
|
|
29
|
-
map.get($menu-values, container-surface-tint-layer-color)
|
|
30
|
-
);
|
|
31
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2022 Google LLC
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// stylelint-disable selector-class-pattern --
|
|
7
|
-
// Selector '.md3-*' should only be used in this project.
|
|
8
|
-
|
|
9
|
-
// go/keep-sorted start
|
|
10
|
-
@use 'sass:map';
|
|
11
|
-
// go/keep-sorted end
|
|
12
|
-
// go/keep-sorted start
|
|
13
|
-
@use '../../elevation/lib/elevation';
|
|
14
|
-
@use '../../sass/theme';
|
|
15
|
-
@use './md-comp-menu-surface';
|
|
16
|
-
// go/keep-sorted end
|
|
17
|
-
|
|
18
|
-
$_custom-property-prefix: 'menu-surface';
|
|
19
|
-
$_fade-in-duration: 0.03s;
|
|
20
|
-
$_fade-out-duration: 0.075s;
|
|
21
|
-
$_scale-duration: 0.12s;
|
|
22
|
-
$_min-distance-from-edge: 32px;
|
|
23
|
-
$_max-width: calc(100vw - #{$_min-distance-from-edge});
|
|
24
|
-
$_max-height: calc(100vh - #{$_min-distance-from-edge});
|
|
25
|
-
$_z-index: 8; // One above md3-dialog
|
|
26
|
-
$_deceleration-curve-timing-function: cubic-bezier(0, 0, 0.2, 1) !default;
|
|
27
|
-
|
|
28
|
-
@mixin theme($tokens) {
|
|
29
|
-
$tokens: theme.validate-theme(md-comp-menu-surface.values(), $tokens);
|
|
30
|
-
$tokens: elevation.resolve-tokens($tokens, 'container-elevation');
|
|
31
|
-
$tokens: theme.create-theme-vars($tokens, $_custom-property-prefix);
|
|
32
|
-
|
|
33
|
-
@include theme.emit-theme-vars($tokens);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@mixin styles() {
|
|
37
|
-
$tokens: md-comp-menu-surface.values();
|
|
38
|
-
$tokens: elevation.resolve-tokens($tokens, 'container-elevation');
|
|
39
|
-
$tokens: theme.create-theme-vars($tokens, $_custom-property-prefix);
|
|
40
|
-
|
|
41
|
-
:host {
|
|
42
|
-
@each $token, $value in $tokens {
|
|
43
|
-
--_#{$token}: #{$value};
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.md3-menu-surface {
|
|
48
|
-
border-radius: var(--_container-shape);
|
|
49
|
-
box-sizing: border-box;
|
|
50
|
-
display: none;
|
|
51
|
-
opacity: 0;
|
|
52
|
-
overflow: auto;
|
|
53
|
-
margin: 0;
|
|
54
|
-
max-height: $_max-height;
|
|
55
|
-
max-width: $_max-width;
|
|
56
|
-
padding: 0;
|
|
57
|
-
position: absolute;
|
|
58
|
-
transform: scale(1);
|
|
59
|
-
transform-origin: top left;
|
|
60
|
-
transition: opacity $_fade-in-duration linear,
|
|
61
|
-
transform $_scale-duration $_deceleration-curve-timing-function,
|
|
62
|
-
height 250ms $_deceleration-curve-timing-function;
|
|
63
|
-
will-change: transform, opacity;
|
|
64
|
-
z-index: $_z-index;
|
|
65
|
-
|
|
66
|
-
@include elevation.theme(
|
|
67
|
-
(
|
|
68
|
-
level: var(--_container-elevation),
|
|
69
|
-
shadow-color: var(--_container-shadow-color),
|
|
70
|
-
surface-tint: var(--_container-surface-tint-layer-color),
|
|
71
|
-
)
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
md-elevation {
|
|
75
|
-
z-index: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:focus {
|
|
79
|
-
outline: none;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&--animating-open {
|
|
83
|
-
display: inline-block;
|
|
84
|
-
opacity: 0;
|
|
85
|
-
transform: scale(0.8);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// Render this after `--animating-open` to override `opacity` & `transform`
|
|
89
|
-
// CSS properties.
|
|
90
|
-
&--open {
|
|
91
|
-
display: inline-block;
|
|
92
|
-
opacity: 1;
|
|
93
|
-
transform: scale(1);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&--animating-closed {
|
|
97
|
-
display: inline-block;
|
|
98
|
-
opacity: 0;
|
|
99
|
-
transition: opacity $_fade-out-duration linear;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.md3-menu-surface--anchor {
|
|
104
|
-
overflow: visible;
|
|
105
|
-
position: relative;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.md3-menu-surface--fixed {
|
|
109
|
-
position: fixed;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.md3-menu-surface--fullwidth {
|
|
113
|
-
width: 100%;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Used by filled variants of GM components to conditionally flatten the top
|
|
117
|
-
// corners of the menu.
|
|
118
|
-
.md3-menu-surface--is-open-below {
|
|
119
|
-
border-top-left-radius: 0px;
|
|
120
|
-
border-top-right-radius: 0px;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { MDCMenuDimensions, MDCMenuDistance, MDCMenuPoint } from './types.js';
|
|
7
|
-
/**
|
|
8
|
-
* Defines the shape of the adapter expected by the foundation.
|
|
9
|
-
* Implement this adapter for your framework of choice to delegate updates to
|
|
10
|
-
* the component in your framework of choice. See architecture documentation
|
|
11
|
-
* for more details.
|
|
12
|
-
* https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md
|
|
13
|
-
*/
|
|
14
|
-
export interface MDCMenuSurfaceAdapter {
|
|
15
|
-
addClass(className: string): void;
|
|
16
|
-
removeClass(className: string): void;
|
|
17
|
-
hasClass(className: string): boolean;
|
|
18
|
-
hasAnchor(): boolean;
|
|
19
|
-
isElementInContainer(el: Element): boolean;
|
|
20
|
-
isFocused(): boolean;
|
|
21
|
-
isRtl(): boolean;
|
|
22
|
-
getInnerDimensions(): MDCMenuDimensions;
|
|
23
|
-
getAnchorDimensions(): DOMRect | null;
|
|
24
|
-
getWindowDimensions(): MDCMenuDimensions;
|
|
25
|
-
getBodyDimensions(): MDCMenuDimensions;
|
|
26
|
-
getWindowScroll(): MDCMenuPoint;
|
|
27
|
-
setPosition(position: Partial<MDCMenuDistance>): void;
|
|
28
|
-
setMaxHeight(height: string): void;
|
|
29
|
-
setTransformOrigin(origin: string): void;
|
|
30
|
-
getOwnerDocument?(): Document;
|
|
31
|
-
/** Saves the element that was focused before the menu surface was opened. */
|
|
32
|
-
saveFocus(): void;
|
|
33
|
-
/**
|
|
34
|
-
* Restores focus to the element that was focused before the menu surface was
|
|
35
|
-
* opened.
|
|
36
|
-
*/
|
|
37
|
-
restoreFocus(): void;
|
|
38
|
-
/** Emits an event when the menu surface is closed. */
|
|
39
|
-
notifyClose(): void;
|
|
40
|
-
/** Emits an event when the menu surface is closing. */
|
|
41
|
-
notifyClosing(): void;
|
|
42
|
-
/** Emits an event when the menu surface is opened. */
|
|
43
|
-
notifyOpen(): void;
|
|
44
|
-
/** Emits an event when the menu surface is opening. */
|
|
45
|
-
notifyOpening(): void;
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {MDCMenuDimensions, MDCMenuDistance, MDCMenuPoint} from './types.js';\n\n/**\n * Defines the shape of the adapter expected by the foundation.\n * Implement this adapter for your framework of choice to delegate updates to\n * the component in your framework of choice. See architecture documentation\n * for more details.\n * https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md\n */\nexport interface MDCMenuSurfaceAdapter {\n addClass(className: string): void;\n removeClass(className: string): void;\n hasClass(className: string): boolean;\n hasAnchor(): boolean;\n\n isElementInContainer(el: Element): boolean;\n isFocused(): boolean;\n isRtl(): boolean;\n\n getInnerDimensions(): MDCMenuDimensions;\n getAnchorDimensions(): DOMRect|null;\n getWindowDimensions(): MDCMenuDimensions;\n getBodyDimensions(): MDCMenuDimensions;\n getWindowScroll(): MDCMenuPoint;\n setPosition(position: Partial<MDCMenuDistance>): void;\n setMaxHeight(height: string): void;\n setTransformOrigin(origin: string): void;\n getOwnerDocument?(): Document;\n\n /** Saves the element that was focused before the menu surface was opened. */\n saveFocus(): void;\n\n /**\n * Restores focus to the element that was focused before the menu surface was\n * opened.\n */\n restoreFocus(): void;\n\n /** Emits an event when the menu surface is closed. */\n notifyClose(): void;\n\n /** Emits an event when the menu surface is closing. */\n notifyClosing(): void;\n\n /** Emits an event when the menu surface is opened. */\n notifyOpen(): void;\n\n /** Emits an event when the menu surface is opening. */\n notifyOpening(): void;\n}\n"]}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
declare const cssClasses: {
|
|
7
|
-
ANCHOR: string;
|
|
8
|
-
ANIMATING_CLOSED: string;
|
|
9
|
-
ANIMATING_OPEN: string;
|
|
10
|
-
FIXED: string;
|
|
11
|
-
IS_OPEN_BELOW: string;
|
|
12
|
-
OPEN: string;
|
|
13
|
-
ROOT: string;
|
|
14
|
-
};
|
|
15
|
-
declare const strings: {
|
|
16
|
-
CLOSED_EVENT: string;
|
|
17
|
-
CLOSING_EVENT: string;
|
|
18
|
-
OPENED_EVENT: string;
|
|
19
|
-
OPENING_EVENT: string;
|
|
20
|
-
FOCUSABLE_ELEMENTS: string;
|
|
21
|
-
};
|
|
22
|
-
declare const numbers: {
|
|
23
|
-
/** Total duration of menu-surface open animation. */
|
|
24
|
-
TRANSITION_OPEN_DURATION: number;
|
|
25
|
-
/** Total duration of menu-surface close animation. */
|
|
26
|
-
TRANSITION_CLOSE_DURATION: number;
|
|
27
|
-
/**
|
|
28
|
-
* Margin left to the edge of the viewport when menu-surface is at maximum
|
|
29
|
-
* possible height. Also used as a viewport margin.
|
|
30
|
-
*/
|
|
31
|
-
MARGIN_TO_EDGE: number;
|
|
32
|
-
/**
|
|
33
|
-
* Ratio of anchor width to menu-surface width for switching from corner
|
|
34
|
-
* positioning to center positioning.
|
|
35
|
-
*/
|
|
36
|
-
ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO: number;
|
|
37
|
-
/**
|
|
38
|
-
* Amount of time to wait before restoring focus when closing the menu
|
|
39
|
-
* surface. This is important because if a touch event triggered the menu
|
|
40
|
-
* close, and the subsequent mouse event occurs after focus is restored, then
|
|
41
|
-
* the restored focus would be lost.
|
|
42
|
-
*/
|
|
43
|
-
TOUCH_EVENT_WAIT_MS: number;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Enum for bits in the {@see Corner) bitmap.
|
|
47
|
-
*/
|
|
48
|
-
declare enum CornerBit {
|
|
49
|
-
BOTTOM = 1,
|
|
50
|
-
CENTER = 2,
|
|
51
|
-
RIGHT = 4,
|
|
52
|
-
FLIP_RTL = 8
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Enum for representing an element corner for positioning the menu-surface.
|
|
56
|
-
*
|
|
57
|
-
* The START constants map to LEFT if element directionality is left
|
|
58
|
-
* to right and RIGHT if the directionality is right to left.
|
|
59
|
-
* Likewise END maps to RIGHT or LEFT depending on the directionality.
|
|
60
|
-
*/
|
|
61
|
-
declare enum Corner {
|
|
62
|
-
TOP_LEFT = 0,
|
|
63
|
-
TOP_RIGHT = 4,
|
|
64
|
-
BOTTOM_LEFT = 1,
|
|
65
|
-
BOTTOM_RIGHT = 5,
|
|
66
|
-
TOP_START = 8,
|
|
67
|
-
TOP_END = 12,
|
|
68
|
-
BOTTOM_START = 9,
|
|
69
|
-
BOTTOM_END = 13
|
|
70
|
-
}
|
|
71
|
-
export { cssClasses, strings, numbers, CornerBit, Corner };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
const cssClasses = {
|
|
7
|
-
ANCHOR: 'md3-menu-surface--anchor',
|
|
8
|
-
ANIMATING_CLOSED: 'md3-menu-surface--animating-closed',
|
|
9
|
-
ANIMATING_OPEN: 'md3-menu-surface--animating-open',
|
|
10
|
-
FIXED: 'md3-menu-surface--fixed',
|
|
11
|
-
IS_OPEN_BELOW: 'md3-menu-surface--is-open-below',
|
|
12
|
-
OPEN: 'md3-menu-surface--open',
|
|
13
|
-
ROOT: 'md3-menu-surface',
|
|
14
|
-
};
|
|
15
|
-
// tslint:disable:object-literal-sort-keys
|
|
16
|
-
const strings = {
|
|
17
|
-
CLOSED_EVENT: 'MDCMenuSurface:closed',
|
|
18
|
-
CLOSING_EVENT: 'MDCMenuSurface:closing',
|
|
19
|
-
OPENED_EVENT: 'MDCMenuSurface:opened',
|
|
20
|
-
OPENING_EVENT: 'MDCMenuSurface:opening',
|
|
21
|
-
FOCUSABLE_ELEMENTS: [
|
|
22
|
-
'button:not(:disabled)',
|
|
23
|
-
'[href]:not([aria-disabled="true"])',
|
|
24
|
-
'input:not(:disabled)',
|
|
25
|
-
'select:not(:disabled)',
|
|
26
|
-
'textarea:not(:disabled)',
|
|
27
|
-
'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])',
|
|
28
|
-
].join(', '),
|
|
29
|
-
};
|
|
30
|
-
// tslint:enable:object-literal-sort-keys
|
|
31
|
-
const numbers = {
|
|
32
|
-
/** Total duration of menu-surface open animation. */
|
|
33
|
-
TRANSITION_OPEN_DURATION: 120,
|
|
34
|
-
/** Total duration of menu-surface close animation. */
|
|
35
|
-
TRANSITION_CLOSE_DURATION: 75,
|
|
36
|
-
/**
|
|
37
|
-
* Margin left to the edge of the viewport when menu-surface is at maximum
|
|
38
|
-
* possible height. Also used as a viewport margin.
|
|
39
|
-
*/
|
|
40
|
-
MARGIN_TO_EDGE: 32,
|
|
41
|
-
/**
|
|
42
|
-
* Ratio of anchor width to menu-surface width for switching from corner
|
|
43
|
-
* positioning to center positioning.
|
|
44
|
-
*/
|
|
45
|
-
ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO: 0.67,
|
|
46
|
-
/**
|
|
47
|
-
* Amount of time to wait before restoring focus when closing the menu
|
|
48
|
-
* surface. This is important because if a touch event triggered the menu
|
|
49
|
-
* close, and the subsequent mouse event occurs after focus is restored, then
|
|
50
|
-
* the restored focus would be lost.
|
|
51
|
-
*/
|
|
52
|
-
TOUCH_EVENT_WAIT_MS: 30,
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Enum for bits in the {@see Corner) bitmap.
|
|
56
|
-
*/
|
|
57
|
-
var CornerBit;
|
|
58
|
-
(function (CornerBit) {
|
|
59
|
-
CornerBit[CornerBit["BOTTOM"] = 1] = "BOTTOM";
|
|
60
|
-
CornerBit[CornerBit["CENTER"] = 2] = "CENTER";
|
|
61
|
-
CornerBit[CornerBit["RIGHT"] = 4] = "RIGHT";
|
|
62
|
-
CornerBit[CornerBit["FLIP_RTL"] = 8] = "FLIP_RTL";
|
|
63
|
-
})(CornerBit || (CornerBit = {}));
|
|
64
|
-
/**
|
|
65
|
-
* Enum for representing an element corner for positioning the menu-surface.
|
|
66
|
-
*
|
|
67
|
-
* The START constants map to LEFT if element directionality is left
|
|
68
|
-
* to right and RIGHT if the directionality is right to left.
|
|
69
|
-
* Likewise END maps to RIGHT or LEFT depending on the directionality.
|
|
70
|
-
*/
|
|
71
|
-
var Corner;
|
|
72
|
-
(function (Corner) {
|
|
73
|
-
Corner[Corner["TOP_LEFT"] = 0] = "TOP_LEFT";
|
|
74
|
-
Corner[Corner["TOP_RIGHT"] = 4] = "TOP_RIGHT";
|
|
75
|
-
Corner[Corner["BOTTOM_LEFT"] = 1] = "BOTTOM_LEFT";
|
|
76
|
-
Corner[Corner["BOTTOM_RIGHT"] = 5] = "BOTTOM_RIGHT";
|
|
77
|
-
Corner[Corner["TOP_START"] = 8] = "TOP_START";
|
|
78
|
-
Corner[Corner["TOP_END"] = 12] = "TOP_END";
|
|
79
|
-
Corner[Corner["BOTTOM_START"] = 9] = "BOTTOM_START";
|
|
80
|
-
Corner[Corner["BOTTOM_END"] = 13] = "BOTTOM_END";
|
|
81
|
-
})(Corner || (Corner = {}));
|
|
82
|
-
export { cssClasses, strings, numbers, CornerBit, Corner };
|
|
83
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,UAAU,GAAG;IACjB,MAAM,EAAE,0BAA0B;IAClC,gBAAgB,EAAE,oCAAoC;IACtD,cAAc,EAAE,kCAAkC;IAClD,KAAK,EAAE,yBAAyB;IAChC,aAAa,EAAE,iCAAiC;IAChD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,kBAAkB;CACzB,CAAC;AAEF,0CAA0C;AAC1C,MAAM,OAAO,GAAG;IACd,YAAY,EAAE,uBAAuB;IACrC,aAAa,EAAE,wBAAwB;IACvC,YAAY,EAAE,uBAAuB;IACrC,aAAa,EAAE,wBAAwB;IACvC,kBAAkB,EAAE;QAClB,uBAAuB;QACvB,oCAAoC;QACpC,sBAAsB;QACtB,uBAAuB;QACvB,yBAAyB;QACzB,6DAA6D;KAC9D,CAAC,IAAI,CAAC,IAAI,CAAC;CACb,CAAC;AACF,yCAAyC;AAEzC,MAAM,OAAO,GAAG;IACd,qDAAqD;IACrD,wBAAwB,EAAE,GAAG;IAE7B,sDAAsD;IACtD,yBAAyB,EAAE,EAAE;IAE7B;;;OAGG;IACH,cAAc,EAAE,EAAE;IAElB;;;OAGG;IACH,kCAAkC,EAAE,IAAI;IAExC;;;;;OAKG;IACH,mBAAmB,EAAE,EAAE;CACxB,CAAC;AAEF;;GAEG;AACH,IAAK,SAKJ;AALD,WAAK,SAAS;IACZ,6CAAU,CAAA;IACV,6CAAU,CAAA;IACV,2CAAS,CAAA;IACT,iDAAY,CAAA;AACd,CAAC,EALI,SAAS,KAAT,SAAS,QAKb;AAED;;;;;;GAMG;AACH,IAAK,MAaJ;AAbD,WAAK,MAAM;IACT,2CAAY,CAAA;IACZ,6CAA2B,CAAA;IAC3B,iDAA8B,CAAA;IAC9B,mDACsC,CAAA;IACtC,6CAA8B,CAAA;IAC9B,0CACwC,CAAA;IACxC,mDACyC,CAAA;IACzC,gDACsB,CAAA;AACxB,CAAC,EAbI,MAAM,KAAN,MAAM,QAaV;AAED,OAAO,EAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nconst cssClasses = {\n ANCHOR: 'md3-menu-surface--anchor',\n ANIMATING_CLOSED: 'md3-menu-surface--animating-closed',\n ANIMATING_OPEN: 'md3-menu-surface--animating-open',\n FIXED: 'md3-menu-surface--fixed',\n IS_OPEN_BELOW: 'md3-menu-surface--is-open-below',\n OPEN: 'md3-menu-surface--open',\n ROOT: 'md3-menu-surface',\n};\n\n// tslint:disable:object-literal-sort-keys\nconst strings = {\n CLOSED_EVENT: 'MDCMenuSurface:closed',\n CLOSING_EVENT: 'MDCMenuSurface:closing',\n OPENED_EVENT: 'MDCMenuSurface:opened',\n OPENING_EVENT: 'MDCMenuSurface:opening',\n FOCUSABLE_ELEMENTS: [\n 'button:not(:disabled)',\n '[href]:not([aria-disabled=\"true\"])',\n 'input:not(:disabled)',\n 'select:not(:disabled)',\n 'textarea:not(:disabled)',\n '[tabindex]:not([tabindex=\"-1\"]):not([aria-disabled=\"true\"])',\n ].join(', '),\n};\n// tslint:enable:object-literal-sort-keys\n\nconst numbers = {\n /** Total duration of menu-surface open animation. */\n TRANSITION_OPEN_DURATION: 120,\n\n /** Total duration of menu-surface close animation. */\n TRANSITION_CLOSE_DURATION: 75,\n\n /**\n * Margin left to the edge of the viewport when menu-surface is at maximum\n * possible height. Also used as a viewport margin.\n */\n MARGIN_TO_EDGE: 32,\n\n /**\n * Ratio of anchor width to menu-surface width for switching from corner\n * positioning to center positioning.\n */\n ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO: 0.67,\n\n /**\n * Amount of time to wait before restoring focus when closing the menu\n * surface. This is important because if a touch event triggered the menu\n * close, and the subsequent mouse event occurs after focus is restored, then\n * the restored focus would be lost.\n */\n TOUCH_EVENT_WAIT_MS: 30,\n};\n\n/**\n * Enum for bits in the {@see Corner) bitmap.\n */\nenum CornerBit {\n BOTTOM = 1, // 0001\n CENTER = 2, // 0010\n RIGHT = 4, // 0100\n FLIP_RTL = 8, // 1000\n}\n\n/**\n * Enum for representing an element corner for positioning the menu-surface.\n *\n * The START constants map to LEFT if element directionality is left\n * to right and RIGHT if the directionality is right to left.\n * Likewise END maps to RIGHT or LEFT depending on the directionality.\n */\nenum Corner {\n TOP_LEFT = 0,\n TOP_RIGHT = CornerBit.RIGHT,\n BOTTOM_LEFT = CornerBit.BOTTOM,\n BOTTOM_RIGHT =\n CornerBit.BOTTOM | CornerBit.RIGHT, // tslint:disable-line:no-bitwise\n TOP_START = CornerBit.FLIP_RTL,\n TOP_END =\n CornerBit.FLIP_RTL | CornerBit.RIGHT, // tslint:disable-line:no-bitwise\n BOTTOM_START =\n CornerBit.BOTTOM | CornerBit.FLIP_RTL, // tslint:disable-line:no-bitwise\n BOTTOM_END = CornerBit.BOTTOM | CornerBit.RIGHT |\n CornerBit.FLIP_RTL, // tslint:disable-line:no-bitwise\n}\n\nexport {cssClasses, strings, numbers, CornerBit, Corner};\n"]}
|