@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,27 +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 '../../tokens';
|
|
11
|
-
// go/keep-sorted end
|
|
12
|
-
|
|
13
|
-
$_default-deps: (
|
|
14
|
-
md-sys-color: tokens.md-sys-color-values-light(),
|
|
15
|
-
md-sys-elevation: tokens.md-sys-elevation-values(),
|
|
16
|
-
md-sys-motion: tokens.md-sys-motion-values(),
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
@function values($deps: $_default-deps, $exclude-hardcoded-values: false) {
|
|
20
|
-
@return (
|
|
21
|
-
duration: if($exclude-hardcoded-values, null, 0s),
|
|
22
|
-
easing: map.get($deps, md-sys-motion, easing-emphasized),
|
|
23
|
-
level: map.get($deps, md-sys-elevation, level0),
|
|
24
|
-
shadow-color: map.get($deps, md-sys-color, shadow),
|
|
25
|
-
surface-tint: map.get($deps, md-sys-color, surface-tint)
|
|
26
|
-
);
|
|
27
|
-
}
|
|
@@ -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 '../../tokens';
|
|
11
|
-
// go/keep-sorted end
|
|
12
|
-
|
|
13
|
-
$_default: (
|
|
14
|
-
md-sys-color: tokens.md-sys-color-values-light(),
|
|
15
|
-
md-sys-shape: tokens.md-sys-shape-values(),
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
19
|
-
@return (
|
|
20
|
-
shape:
|
|
21
|
-
if(
|
|
22
|
-
$exclude-hardcoded-values,
|
|
23
|
-
null,
|
|
24
|
-
map.get($deps, md-sys-shape, corner-full)
|
|
25
|
-
),
|
|
26
|
-
offset-vertical: if($exclude-hardcoded-values, null, 2px),
|
|
27
|
-
offset-horizontal: if($exclude-hardcoded-values, null, 2px),
|
|
28
|
-
width: if($exclude-hardcoded-values, null, 3px),
|
|
29
|
-
color: map.get($deps, md-sys-color, secondary)
|
|
30
|
-
);
|
|
31
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
7
|
-
import { IconButtonToggle } from './lib/icon-button-toggle.js';
|
|
8
|
-
declare global {
|
|
9
|
-
interface HTMLElementTagNameMap {
|
|
10
|
-
'md-filled-icon-button-toggle': MdFilledIconButtonToggle;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
15
|
-
* tap. This variant can toggle between icons.
|
|
16
|
-
*
|
|
17
|
-
* @description
|
|
18
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
19
|
-
* least amount of prominence.
|
|
20
|
-
*
|
|
21
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
22
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
23
|
-
*
|
|
24
|
-
* __Example usages:__
|
|
25
|
-
* - Add to Favorites
|
|
26
|
-
* - Print
|
|
27
|
-
*/
|
|
28
|
-
export declare class MdFilledIconButtonToggle extends IconButtonToggle {
|
|
29
|
-
static styles: import("lit").CSSResult[];
|
|
30
|
-
protected getRenderClasses(): ClassInfo;
|
|
31
|
-
}
|
|
@@ -1,40 +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 { styles } from './lib/filled-styles.css.js';
|
|
9
|
-
import { IconButtonToggle } from './lib/icon-button-toggle.js';
|
|
10
|
-
import { styles as sharedStyles } from './lib/shared-styles.css.js';
|
|
11
|
-
/**
|
|
12
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
13
|
-
* tap. This variant can toggle between icons.
|
|
14
|
-
*
|
|
15
|
-
* @description
|
|
16
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
17
|
-
* least amount of prominence.
|
|
18
|
-
*
|
|
19
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
20
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
21
|
-
*
|
|
22
|
-
* __Example usages:__
|
|
23
|
-
* - Add to Favorites
|
|
24
|
-
* - Print
|
|
25
|
-
*/
|
|
26
|
-
let MdFilledIconButtonToggle = class MdFilledIconButtonToggle extends IconButtonToggle {
|
|
27
|
-
getRenderClasses() {
|
|
28
|
-
return {
|
|
29
|
-
...super.getRenderClasses(),
|
|
30
|
-
'md3-icon-button--filled': true,
|
|
31
|
-
'md3-icon-button--toggle-filled': true,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
MdFilledIconButtonToggle.styles = [sharedStyles, styles];
|
|
36
|
-
MdFilledIconButtonToggle = __decorate([
|
|
37
|
-
customElement('md-filled-icon-button-toggle')
|
|
38
|
-
], MdFilledIconButtonToggle);
|
|
39
|
-
export { MdFilledIconButtonToggle };
|
|
40
|
-
//# sourceMappingURL=filled-icon-button-toggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filled-icon-button-toggle.js","sourceRoot":"","sources":["filled-icon-button-toggle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,4BAA4B,CAAC;AAQlE;;;;;;;;;;;;;;GAcG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,gBAAgB;IAGzC,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,yBAAyB,EAAE,IAAI;YAC/B,gCAAgC,EAAE,IAAI;SACvC,CAAC;IACJ,CAAC;;AARe,+BAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AADrC,wBAAwB;IADpC,aAAa,CAAC,8BAA8B,CAAC;GACjC,wBAAwB,CAUpC;SAVY,wBAAwB","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {customElement} from 'lit/decorators.js';\nimport {ClassInfo} from 'lit/directives/class-map.js';\n\nimport {styles} from './lib/filled-styles.css.js';\nimport {IconButtonToggle} from './lib/icon-button-toggle.js';\nimport {styles as sharedStyles} from './lib/shared-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-filled-icon-button-toggle': MdFilledIconButtonToggle;\n }\n}\n\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap. This variant can toggle between icons.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n */\n@customElement('md-filled-icon-button-toggle')\nexport class MdFilledIconButtonToggle extends IconButtonToggle {\n static override styles = [sharedStyles, styles];\n\n protected override getRenderClasses(): ClassInfo {\n return {\n ...super.getRenderClasses(),\n 'md3-icon-button--filled': true,\n 'md3-icon-button--toggle-filled': true,\n };\n }\n}\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
7
|
-
import { LinkIconButton } from './lib/link-icon-button.js';
|
|
8
|
-
declare global {
|
|
9
|
-
interface HTMLElementTagNameMap {
|
|
10
|
-
'md-filled-link-icon-button': MdFilledLinkIconButton;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
15
|
-
* tap. This is a linkable variant.
|
|
16
|
-
*
|
|
17
|
-
* @description
|
|
18
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
19
|
-
* least amount of prominence.
|
|
20
|
-
*
|
|
21
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
22
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
23
|
-
*
|
|
24
|
-
* __Example usages:__
|
|
25
|
-
* - Add to Favorites
|
|
26
|
-
* - Print
|
|
27
|
-
*/
|
|
28
|
-
export declare class MdFilledLinkIconButton extends LinkIconButton {
|
|
29
|
-
static styles: import("lit").CSSResult[];
|
|
30
|
-
protected getRenderClasses(): ClassInfo;
|
|
31
|
-
}
|
|
@@ -1,39 +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 { styles } from './lib/filled-styles.css.js';
|
|
9
|
-
import { LinkIconButton } from './lib/link-icon-button.js';
|
|
10
|
-
import { styles as sharedStyles } from './lib/shared-styles.css.js';
|
|
11
|
-
/**
|
|
12
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
13
|
-
* tap. This is a linkable variant.
|
|
14
|
-
*
|
|
15
|
-
* @description
|
|
16
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
17
|
-
* least amount of prominence.
|
|
18
|
-
*
|
|
19
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
20
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
21
|
-
*
|
|
22
|
-
* __Example usages:__
|
|
23
|
-
* - Add to Favorites
|
|
24
|
-
* - Print
|
|
25
|
-
*/
|
|
26
|
-
let MdFilledLinkIconButton = class MdFilledLinkIconButton extends LinkIconButton {
|
|
27
|
-
getRenderClasses() {
|
|
28
|
-
return {
|
|
29
|
-
...super.getRenderClasses(),
|
|
30
|
-
'md3-icon-button--filled': true,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
MdFilledLinkIconButton.styles = [sharedStyles, styles];
|
|
35
|
-
MdFilledLinkIconButton = __decorate([
|
|
36
|
-
customElement('md-filled-link-icon-button')
|
|
37
|
-
], MdFilledLinkIconButton);
|
|
38
|
-
export { MdFilledLinkIconButton };
|
|
39
|
-
//# sourceMappingURL=filled-link-icon-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filled-link-icon-button.js","sourceRoot":"","sources":["filled-link-icon-button.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,4BAA4B,CAAC;AAQlE;;;;;;;;;;;;;;GAcG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,cAAc;IAGrC,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,yBAAyB,EAAE,IAAI;SAChC,CAAC;IACJ,CAAC;;AAPe,6BAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AADrC,sBAAsB;IADlC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,sBAAsB,CASlC;SATY,sBAAsB","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {customElement} from 'lit/decorators.js';\nimport {ClassInfo} from 'lit/directives/class-map.js';\n\nimport {styles} from './lib/filled-styles.css.js';\nimport {LinkIconButton} from './lib/link-icon-button.js';\nimport {styles as sharedStyles} from './lib/shared-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-filled-link-icon-button': MdFilledLinkIconButton;\n }\n}\n\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap. This is a linkable variant.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n */\n@customElement('md-filled-link-icon-button')\nexport class MdFilledLinkIconButton extends LinkIconButton {\n static override styles = [sharedStyles, styles];\n\n protected override getRenderClasses(): ClassInfo {\n return {\n ...super.getRenderClasses(),\n 'md3-icon-button--filled': true,\n };\n }\n}\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
7
|
-
import { IconButtonToggle } from './lib/icon-button-toggle.js';
|
|
8
|
-
declare global {
|
|
9
|
-
interface HTMLElementTagNameMap {
|
|
10
|
-
'md-filled-tonal-icon-button-toggle': MdFilledTonalIconButtonToggle;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
15
|
-
* tap. This variant can toggle between icons.
|
|
16
|
-
*
|
|
17
|
-
* @description
|
|
18
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
19
|
-
* least amount of prominence.
|
|
20
|
-
*
|
|
21
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
22
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
23
|
-
*
|
|
24
|
-
* __Example usages:__
|
|
25
|
-
* - Add to Favorites
|
|
26
|
-
* - Print
|
|
27
|
-
*/
|
|
28
|
-
export declare class MdFilledTonalIconButtonToggle extends IconButtonToggle {
|
|
29
|
-
static styles: import("lit").CSSResult[];
|
|
30
|
-
protected getRenderClasses(): ClassInfo;
|
|
31
|
-
}
|
|
@@ -1,40 +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 { styles } from './lib/filled-tonal-styles.css.js';
|
|
9
|
-
import { IconButtonToggle } from './lib/icon-button-toggle.js';
|
|
10
|
-
import { styles as sharedStyles } from './lib/shared-styles.css.js';
|
|
11
|
-
/**
|
|
12
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
13
|
-
* tap. This variant can toggle between icons.
|
|
14
|
-
*
|
|
15
|
-
* @description
|
|
16
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
17
|
-
* least amount of prominence.
|
|
18
|
-
*
|
|
19
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
20
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
21
|
-
*
|
|
22
|
-
* __Example usages:__
|
|
23
|
-
* - Add to Favorites
|
|
24
|
-
* - Print
|
|
25
|
-
*/
|
|
26
|
-
let MdFilledTonalIconButtonToggle = class MdFilledTonalIconButtonToggle extends IconButtonToggle {
|
|
27
|
-
getRenderClasses() {
|
|
28
|
-
return {
|
|
29
|
-
...super.getRenderClasses(),
|
|
30
|
-
'md3-icon-button--filled-tonal': true,
|
|
31
|
-
'md3-icon-button--toggle-filled-tonal': true,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
MdFilledTonalIconButtonToggle.styles = [sharedStyles, styles];
|
|
36
|
-
MdFilledTonalIconButtonToggle = __decorate([
|
|
37
|
-
customElement('md-filled-tonal-icon-button-toggle')
|
|
38
|
-
], MdFilledTonalIconButtonToggle);
|
|
39
|
-
export { MdFilledTonalIconButtonToggle };
|
|
40
|
-
//# sourceMappingURL=filled-tonal-icon-button-toggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filled-tonal-icon-button-toggle.js","sourceRoot":"","sources":["filled-tonal-icon-button-toggle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,4BAA4B,CAAC;AAQlE;;;;;;;;;;;;;;GAcG;AAEI,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,gBAAgB;IAG9C,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,+BAA+B,EAAE,IAAI;YACrC,sCAAsC,EAAE,IAAI;SAC7C,CAAC;IACJ,CAAC;;AARe,oCAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AADrC,6BAA6B;IADzC,aAAa,CAAC,oCAAoC,CAAC;GACvC,6BAA6B,CAUzC;SAVY,6BAA6B","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {customElement} from 'lit/decorators.js';\nimport {ClassInfo} from 'lit/directives/class-map.js';\n\nimport {styles} from './lib/filled-tonal-styles.css.js';\nimport {IconButtonToggle} from './lib/icon-button-toggle.js';\nimport {styles as sharedStyles} from './lib/shared-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-filled-tonal-icon-button-toggle': MdFilledTonalIconButtonToggle;\n }\n}\n\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap. This variant can toggle between icons.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n */\n@customElement('md-filled-tonal-icon-button-toggle')\nexport class MdFilledTonalIconButtonToggle extends IconButtonToggle {\n static override styles = [sharedStyles, styles];\n\n protected override getRenderClasses(): ClassInfo {\n return {\n ...super.getRenderClasses(),\n 'md3-icon-button--filled-tonal': true,\n 'md3-icon-button--toggle-filled-tonal': true,\n };\n }\n}\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
7
|
-
import { LinkIconButton } from './lib/link-icon-button.js';
|
|
8
|
-
declare global {
|
|
9
|
-
interface HTMLElementTagNameMap {
|
|
10
|
-
'md-filled-tonal-link-icon-button': MdFilledTonalLinkIconButton;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
15
|
-
* tap. This is a linkable variant.
|
|
16
|
-
*
|
|
17
|
-
* @description
|
|
18
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
19
|
-
* least amount of prominence.
|
|
20
|
-
*
|
|
21
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
22
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
23
|
-
*
|
|
24
|
-
* __Example usages:__
|
|
25
|
-
* - Add to Favorites
|
|
26
|
-
* - Print
|
|
27
|
-
*/
|
|
28
|
-
export declare class MdFilledTonalLinkIconButton extends LinkIconButton {
|
|
29
|
-
static styles: import("lit").CSSResult[];
|
|
30
|
-
protected getRenderClasses(): ClassInfo;
|
|
31
|
-
}
|
|
@@ -1,39 +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 { styles } from './lib/filled-tonal-styles.css.js';
|
|
9
|
-
import { LinkIconButton } from './lib/link-icon-button.js';
|
|
10
|
-
import { styles as sharedStyles } from './lib/shared-styles.css.js';
|
|
11
|
-
/**
|
|
12
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
13
|
-
* tap. This is a linkable variant.
|
|
14
|
-
*
|
|
15
|
-
* @description
|
|
16
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
17
|
-
* least amount of prominence.
|
|
18
|
-
*
|
|
19
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
20
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
21
|
-
*
|
|
22
|
-
* __Example usages:__
|
|
23
|
-
* - Add to Favorites
|
|
24
|
-
* - Print
|
|
25
|
-
*/
|
|
26
|
-
let MdFilledTonalLinkIconButton = class MdFilledTonalLinkIconButton extends LinkIconButton {
|
|
27
|
-
getRenderClasses() {
|
|
28
|
-
return {
|
|
29
|
-
...super.getRenderClasses(),
|
|
30
|
-
'md3-icon-button--filled-tonal': true,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
MdFilledTonalLinkIconButton.styles = [sharedStyles, styles];
|
|
35
|
-
MdFilledTonalLinkIconButton = __decorate([
|
|
36
|
-
customElement('md-filled-tonal-link-icon-button')
|
|
37
|
-
], MdFilledTonalLinkIconButton);
|
|
38
|
-
export { MdFilledTonalLinkIconButton };
|
|
39
|
-
//# sourceMappingURL=filled-tonal-link-icon-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filled-tonal-link-icon-button.js","sourceRoot":"","sources":["filled-tonal-link-icon-button.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,4BAA4B,CAAC;AAQlE;;;;;;;;;;;;;;GAcG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,cAAc;IAG1C,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,+BAA+B,EAAE,IAAI;SACtC,CAAC;IACJ,CAAC;;AAPe,kCAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AADrC,2BAA2B;IADvC,aAAa,CAAC,kCAAkC,CAAC;GACrC,2BAA2B,CASvC;SATY,2BAA2B","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {customElement} from 'lit/decorators.js';\nimport {ClassInfo} from 'lit/directives/class-map.js';\n\nimport {styles} from './lib/filled-tonal-styles.css.js';\nimport {LinkIconButton} from './lib/link-icon-button.js';\nimport {styles as sharedStyles} from './lib/shared-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-filled-tonal-link-icon-button': MdFilledTonalLinkIconButton;\n }\n}\n\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap. This is a linkable variant.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n */\n@customElement('md-filled-tonal-link-icon-button')\nexport class MdFilledTonalLinkIconButton extends LinkIconButton {\n static override styles = [sharedStyles, styles];\n\n protected override getRenderClasses(): ClassInfo {\n return {\n ...super.getRenderClasses(),\n 'md3-icon-button--filled-tonal': true,\n };\n }\n}\n"]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import '../../focus/focus-ring.js';
|
|
7
|
-
import '../../icon/icon.js';
|
|
8
|
-
import '../../ripple/ripple.js';
|
|
9
|
-
import { TemplateResult } from 'lit';
|
|
10
|
-
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
11
|
-
import { IconButton } from './icon-button.js';
|
|
12
|
-
/**
|
|
13
|
-
* @fires change {Event}
|
|
14
|
-
* Dispatched whenever `selected` is changed via user click
|
|
15
|
-
*
|
|
16
|
-
* @fires input {InputEvent}
|
|
17
|
-
* Dispatched whenever `selected` is changed via user click
|
|
18
|
-
*/
|
|
19
|
-
export declare class IconButtonToggle extends IconButton {
|
|
20
|
-
/**
|
|
21
|
-
* The `aria-label` of the button when the toggle button is selected.
|
|
22
|
-
*/
|
|
23
|
-
ariaLabelSelected: string;
|
|
24
|
-
/**
|
|
25
|
-
* Sets the selected state. When false, displays the default icon. When true,
|
|
26
|
-
* displays the `selectedIcon`, or the default icon If no `selectedIcon` is
|
|
27
|
-
* provided.
|
|
28
|
-
*/
|
|
29
|
-
selected: boolean;
|
|
30
|
-
protected render(): TemplateResult;
|
|
31
|
-
protected renderSelectedIcon(): TemplateResult<1>;
|
|
32
|
-
protected getRenderClasses(): ClassInfo;
|
|
33
|
-
protected handleClick(): void;
|
|
34
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { __decorate, __metadata } from "tslib";
|
|
7
|
-
// Required for @ariaProperty
|
|
8
|
-
// tslint:disable:no-new-decorators
|
|
9
|
-
import '../../focus/focus-ring.js';
|
|
10
|
-
import '../../icon/icon.js';
|
|
11
|
-
import '../../ripple/ripple.js';
|
|
12
|
-
import { html, nothing } from 'lit';
|
|
13
|
-
import { property } from 'lit/decorators.js';
|
|
14
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
15
|
-
import { when } from 'lit/directives/when.js';
|
|
16
|
-
import { ripple } from '../../ripple/directive.js';
|
|
17
|
-
import { IconButton } from './icon-button.js';
|
|
18
|
-
/**
|
|
19
|
-
* @fires change {Event}
|
|
20
|
-
* Dispatched whenever `selected` is changed via user click
|
|
21
|
-
*
|
|
22
|
-
* @fires input {InputEvent}
|
|
23
|
-
* Dispatched whenever `selected` is changed via user click
|
|
24
|
-
*/
|
|
25
|
-
export class IconButtonToggle extends IconButton {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
/**
|
|
29
|
-
* Sets the selected state. When false, displays the default icon. When true,
|
|
30
|
-
* displays the `selectedIcon`, or the default icon If no `selectedIcon` is
|
|
31
|
-
* provided.
|
|
32
|
-
*/
|
|
33
|
-
this.selected = false;
|
|
34
|
-
}
|
|
35
|
-
render() {
|
|
36
|
-
const hasToggledAriaLabel = this.ariaLabel && this.ariaLabelSelected;
|
|
37
|
-
const ariaPressedValue = hasToggledAriaLabel ? nothing : this.selected;
|
|
38
|
-
const ariaLabelValue = (hasToggledAriaLabel && this.selected) ?
|
|
39
|
-
this.ariaLabelSelected :
|
|
40
|
-
this.ariaLabel;
|
|
41
|
-
return html `<button
|
|
42
|
-
class="md3-icon-button ${classMap(this.getRenderClasses())}"
|
|
43
|
-
aria-pressed="${ariaPressedValue}"
|
|
44
|
-
aria-label="${ariaLabelValue || nothing}"
|
|
45
|
-
?disabled="${this.disabled}"
|
|
46
|
-
@focus="${this.handleFocus}"
|
|
47
|
-
@blur="${this.handleBlur}"
|
|
48
|
-
@pointerdown="${this.handlePointerDown}"
|
|
49
|
-
@click="${this.handleClick}"
|
|
50
|
-
${ripple(this.getRipple)}>
|
|
51
|
-
${this.renderFocusRing()}
|
|
52
|
-
${when(this.showRipple, this.renderRipple)}
|
|
53
|
-
${this.renderTouchTarget()}
|
|
54
|
-
${!this.selected ? this.renderIcon() : nothing}
|
|
55
|
-
${this.selected ? this.renderSelectedIcon() : nothing}
|
|
56
|
-
</button>`;
|
|
57
|
-
}
|
|
58
|
-
renderSelectedIcon() {
|
|
59
|
-
// Use default slot as fallback to not require specifying multiple icons
|
|
60
|
-
return html `<md-icon class="md3-icon-button__icon md3-icon-button__icon--selected"><slot name="selectedIcon"><slot></slot></slot></md-icon>`;
|
|
61
|
-
}
|
|
62
|
-
getRenderClasses() {
|
|
63
|
-
return {
|
|
64
|
-
...super.getRenderClasses(),
|
|
65
|
-
'md3-icon-button--selected': this.selected,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
handleClick() {
|
|
69
|
-
if (this.disabled) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
this.selected = !this.selected;
|
|
73
|
-
this.dispatchEvent(new InputEvent('input', { bubbles: true, composed: true }));
|
|
74
|
-
// Bubbles but does not compose to mimic native browser <input> & <select>
|
|
75
|
-
// Additionally, native change event is not an InputEvent.
|
|
76
|
-
this.dispatchEvent(new Event('change', { bubbles: true }));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
__decorate([
|
|
80
|
-
property({ type: String }),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], IconButtonToggle.prototype, "ariaLabelSelected", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
property({ type: Boolean, reflect: true }),
|
|
85
|
-
__metadata("design:type", Object)
|
|
86
|
-
], IconButtonToggle.prototype, "selected", void 0);
|
|
87
|
-
//# sourceMappingURL=icon-button-toggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-toggle.js","sourceRoot":"","sources":["icon-button-toggle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,6BAA6B;AAC7B,mCAAmC;AAEnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAC,IAAI,EAAE,OAAO,EAAiB,MAAM,KAAK,CAAC;AAClD,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAY,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAE5C,OAAO,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAAhD;;QAME;;;;WAIG;QACuC,aAAQ,GAAG,KAAK,CAAC;IAkD7D,CAAC;IAhDoB,MAAM;QACvB,MAAM,mBAAmB,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,iBAAiB,CAAC;QACrE,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvE,MAAM,cAAc,GAAG,CAAC,mBAAmB,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC3D,IAAI,CAAC,iBAAiB,CAAC,CAAC;YACxB,IAAI,CAAC,SAAS,CAAC;QACnB,OAAO,IAAI,CAAA;mCACoB,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;0BAC1C,gBAAgB;wBAClB,cAAc,IAAI,OAAO;uBAC1B,IAAI,CAAC,QAAQ;oBAChB,IAAI,CAAC,WAAW;mBACjB,IAAI,CAAC,UAAU;0BACR,IAAI,CAAC,iBAAiB;oBAC5B,IAAI,CAAC,WAAW;YACxB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;UACxB,IAAI,CAAC,eAAe,EAAE;UACtB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;UACxC,IAAI,CAAC,iBAAiB,EAAE;UACxB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,OAAO;UAC5C,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,OAAO;gBAC7C,CAAC;IACf,CAAC;IAES,kBAAkB;QAC1B,wEAAwE;QACxE,OAAO,IAAI,CAAA,iIAAiI,CAAC;IAC/I,CAAC;IAEkB,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,2BAA2B,EAAE,IAAI,CAAC,QAAQ;SAC3C,CAAC;IACJ,CAAC;IAES,WAAW;QACnB,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,OAAO;SACR;QAED,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,aAAa,CACd,IAAI,UAAU,CAAC,OAAO,EAAE,EAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;QAC9D,0EAA0E;QAC1E,0DAA0D;QAC1D,IAAI,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF;AAzDC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;2DAA4B;AAOrD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;kDAAkB","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Required for @ariaProperty\n// tslint:disable:no-new-decorators\n\nimport '../../focus/focus-ring.js';\nimport '../../icon/icon.js';\nimport '../../ripple/ripple.js';\n\nimport {html, nothing, TemplateResult} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {ClassInfo, classMap} from 'lit/directives/class-map.js';\nimport {when} from 'lit/directives/when.js';\n\nimport {ripple} from '../../ripple/directive.js';\n\nimport {IconButton} from './icon-button.js';\n\n/**\n * @fires change {Event}\n * Dispatched whenever `selected` is changed via user click\n *\n * @fires input {InputEvent}\n * Dispatched whenever `selected` is changed via user click\n */\nexport class IconButtonToggle extends IconButton {\n /**\n * The `aria-label` of the button when the toggle button is selected.\n */\n @property({type: String}) ariaLabelSelected!: string;\n\n /**\n * Sets the selected state. When false, displays the default icon. When true,\n * displays the `selectedIcon`, or the default icon If no `selectedIcon` is\n * provided.\n */\n @property({type: Boolean, reflect: true}) selected = false;\n\n protected override render(): TemplateResult {\n const hasToggledAriaLabel = this.ariaLabel && this.ariaLabelSelected;\n const ariaPressedValue = hasToggledAriaLabel ? nothing : this.selected;\n const ariaLabelValue = (hasToggledAriaLabel && this.selected) ?\n this.ariaLabelSelected :\n this.ariaLabel;\n return html`<button\n class=\"md3-icon-button ${classMap(this.getRenderClasses())}\"\n aria-pressed=\"${ariaPressedValue}\"\n aria-label=\"${ariaLabelValue || nothing}\"\n ?disabled=\"${this.disabled}\"\n @focus=\"${this.handleFocus}\"\n @blur=\"${this.handleBlur}\"\n @pointerdown=\"${this.handlePointerDown}\"\n @click=\"${this.handleClick}\"\n ${ripple(this.getRipple)}>\n ${this.renderFocusRing()}\n ${when(this.showRipple, this.renderRipple)}\n ${this.renderTouchTarget()}\n ${!this.selected ? this.renderIcon() : nothing}\n ${this.selected ? this.renderSelectedIcon() : nothing}\n </button>`;\n }\n\n protected renderSelectedIcon() {\n // Use default slot as fallback to not require specifying multiple icons\n return html`<md-icon class=\"md3-icon-button__icon md3-icon-button__icon--selected\"><slot name=\"selectedIcon\"><slot></slot></slot></md-icon>`;\n }\n\n protected override getRenderClasses(): ClassInfo {\n return {\n ...super.getRenderClasses(),\n 'md3-icon-button--selected': this.selected,\n };\n }\n\n protected handleClick() {\n if (this.disabled) {\n return;\n }\n\n this.selected = !this.selected;\n this.dispatchEvent(\n new InputEvent('input', {bubbles: true, composed: true}));\n // Bubbles but does not compose to mimic native browser <input> & <select>\n // Additionally, native change event is not an InputEvent.\n this.dispatchEvent(new Event('change', {bubbles: true}));\n }\n}\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { TemplateResult } from 'lit';
|
|
7
|
-
import { IconButton } from './icon-button.js';
|
|
8
|
-
export declare class LinkIconButton extends IconButton {
|
|
9
|
-
/**
|
|
10
|
-
* Sets the underlying `HTMLAnchorElement`'s `href` resource attribute.
|
|
11
|
-
*/
|
|
12
|
-
linkHref: string;
|
|
13
|
-
/**
|
|
14
|
-
* Sets the underlying `HTMLAnchorElement`'s `target` attribute.
|
|
15
|
-
*/
|
|
16
|
-
linkTarget: string;
|
|
17
|
-
/**
|
|
18
|
-
* Link buttons cannot be disabled.
|
|
19
|
-
*/
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
willUpdate(): void;
|
|
22
|
-
protected render(): TemplateResult;
|
|
23
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { __decorate, __metadata } from "tslib";
|
|
7
|
-
import { html } from 'lit';
|
|
8
|
-
import { property } from 'lit/decorators.js';
|
|
9
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
10
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
11
|
-
import { when } from 'lit/directives/when.js';
|
|
12
|
-
import { ripple } from '../../ripple/directive.js';
|
|
13
|
-
import { IconButton } from './icon-button.js';
|
|
14
|
-
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
|
15
|
-
export class LinkIconButton extends IconButton {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
/**
|
|
19
|
-
* Sets the underlying `HTMLAnchorElement`'s `href` resource attribute.
|
|
20
|
-
*/
|
|
21
|
-
this.linkHref = '';
|
|
22
|
-
/**
|
|
23
|
-
* Link buttons cannot be disabled.
|
|
24
|
-
*/
|
|
25
|
-
this.disabled = false;
|
|
26
|
-
}
|
|
27
|
-
willUpdate() {
|
|
28
|
-
this.disabled = false;
|
|
29
|
-
}
|
|
30
|
-
render() {
|
|
31
|
-
return html `<div
|
|
32
|
-
class="md3-icon-button ${classMap(this.getRenderClasses())}"
|
|
33
|
-
@focus="${this.handleFocus}"
|
|
34
|
-
@blur="${this.handleBlur}"
|
|
35
|
-
@pointerdown="${this.handlePointerDown}"
|
|
36
|
-
${ripple(this.getRipple)}>
|
|
37
|
-
${this.renderFocusRing()}
|
|
38
|
-
${when(this.showRipple, this.renderRipple)}
|
|
39
|
-
${this.renderIcon()}
|
|
40
|
-
${this.renderTouchTarget()}
|
|
41
|
-
<a class="md3-icon-button__link" href="${this.linkHref}"
|
|
42
|
-
target="${ifDefined(this.linkTarget)}"
|
|
43
|
-
aria-label="${ifDefined(this.ariaLabel)}"
|
|
44
|
-
@focus="${this.handleFocus}"
|
|
45
|
-
@blur="${this.handleBlur}">
|
|
46
|
-
</a>
|
|
47
|
-
</div>`;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
__decorate([
|
|
51
|
-
property({ type: String }),
|
|
52
|
-
__metadata("design:type", Object)
|
|
53
|
-
], LinkIconButton.prototype, "linkHref", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
property({ type: String }),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], LinkIconButton.prototype, "linkTarget", void 0);
|
|
58
|
-
//# sourceMappingURL=link-icon-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-icon-button.js","sourceRoot":"","sources":["link-icon-button.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,IAAI,EAAiB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAE5C,OAAO,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAU5C,gEAAgE;AAChE,MAAM,OAAO,cAAe,SAAQ,UAAU;IAA9C;;QACE;;WAEG;QACuB,aAAQ,GAAG,EAAE,CAAC;QAOxC;;WAEG;QACM,aAAQ,GAAG,KAAK,CAAC;IAyB5B,CAAC;IAvBU,UAAU;QACjB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA;iCACkB,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;kBAChD,IAAI,CAAC,WAAW;iBACjB,IAAI,CAAC,UAAU;wBACR,IAAI,CAAC,iBAAiB;UACpC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;UACtB,IAAI,CAAC,eAAe,EAAE;UACtB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;UACxC,IAAI,CAAC,UAAU,EAAE;UACjB,IAAI,CAAC,iBAAiB,EAAE;+CACa,IAAI,CAAC,QAAQ;oBACxC,SAAS,CAAC,IAAI,CAAC,UAAwB,CAAC;wBACpC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;oBAC7B,IAAI,CAAC,WAAW;mBACjB,IAAI,CAAC,UAAU;;WAEvB,CAAC;IACV,CAAC;CACF;AAnCC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;gDAAe;AAKxC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;kDAAqB","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {html, TemplateResult} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {ifDefined} from 'lit/directives/if-defined.js';\nimport {when} from 'lit/directives/when.js';\n\nimport {ripple} from '../../ripple/directive.js';\n\nimport {IconButton} from './icon-button.js';\n\n/**\n * Note that we cast `linkTarget` to this type, below. The Lit compiler\n * enforces the `target` attribute value to be of this type, but this is not\n * compatible with the generated Wit Soy/JS, which expects `linkTarget`\n * to be a string type.\n */\ntype LinkTarget = '_blank'|'_parent'|'_self'|'_top';\n\n// tslint:disable-next-line:enforce-comments-on-exported-symbols\nexport class LinkIconButton extends IconButton {\n /**\n * Sets the underlying `HTMLAnchorElement`'s `href` resource attribute.\n */\n @property({type: String}) linkHref = '';\n\n /**\n * Sets the underlying `HTMLAnchorElement`'s `target` attribute.\n */\n @property({type: String}) linkTarget!: string;\n\n /**\n * Link buttons cannot be disabled.\n */\n override disabled = false;\n\n override willUpdate() {\n this.disabled = false;\n }\n\n protected override render(): TemplateResult {\n return html`<div\n class=\"md3-icon-button ${classMap(this.getRenderClasses())}\"\n @focus=\"${this.handleFocus}\"\n @blur=\"${this.handleBlur}\"\n @pointerdown=\"${this.handlePointerDown}\"\n ${ripple(this.getRipple)}>\n ${this.renderFocusRing()}\n ${when(this.showRipple, this.renderRipple)}\n ${this.renderIcon()}\n ${this.renderTouchTarget()}\n <a class=\"md3-icon-button__link\" href=\"${this.linkHref}\"\n target=\"${ifDefined(this.linkTarget as LinkTarget)}\"\n aria-label=\"${ifDefined(this.ariaLabel)}\"\n @focus=\"${this.handleFocus}\"\n @blur=\"${this.handleBlur}\">\n </a>\n </div>`;\n }\n}\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
7
|
-
import { IconButtonToggle } from './lib/icon-button-toggle.js';
|
|
8
|
-
declare global {
|
|
9
|
-
interface HTMLElementTagNameMap {
|
|
10
|
-
'md-outlined-icon-button-toggle': MdOutlinedIconButtonToggle;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
15
|
-
* tap. This variant can toggle between icons.
|
|
16
|
-
*
|
|
17
|
-
* @description
|
|
18
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
19
|
-
* least amount of prominence.
|
|
20
|
-
*
|
|
21
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
22
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
23
|
-
*
|
|
24
|
-
* __Example usages:__
|
|
25
|
-
* - Add to Favorites
|
|
26
|
-
* - Print
|
|
27
|
-
*/
|
|
28
|
-
export declare class MdOutlinedIconButtonToggle extends IconButtonToggle {
|
|
29
|
-
static styles: import("lit").CSSResult[];
|
|
30
|
-
protected getRenderClasses(): ClassInfo;
|
|
31
|
-
}
|