@material/web 0.1.0-alpha.0 → 0.1.0-alpha.1
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/actionelement/action-element.d.ts +1 -1
- package/actionelement/action-element.js +1 -1
- package/actionelement/action-element.js.map +1 -1
- package/autocomplete/_filled-autocomplete.scss +6 -0
- package/autocomplete/_outlined-autocomplete.scss +6 -0
- package/autocomplete/autocomplete-item.d.ts +19 -0
- package/autocomplete/autocomplete-item.js +22 -0
- package/autocomplete/autocomplete-item.js.map +1 -0
- package/autocomplete/autocomplete-list.d.ts +19 -0
- package/autocomplete/autocomplete-list.js +23 -0
- package/autocomplete/autocomplete-list.js.map +1 -0
- package/autocomplete/autocomplete-surface.d.ts +19 -0
- package/autocomplete/autocomplete-surface.js +23 -0
- package/autocomplete/autocomplete-surface.js.map +1 -0
- package/autocomplete/filled-autocomplete.d.ts +30 -0
- package/autocomplete/filled-autocomplete.js +53 -0
- package/autocomplete/filled-autocomplete.js.map +1 -0
- package/autocomplete/lib/_filled-autocomplete.scss +229 -0
- package/autocomplete/lib/_outlined-autocomplete.scss +217 -0
- package/autocomplete/lib/_shared.scss +34 -0
- package/autocomplete/lib/autocomplete.d.ts +58 -0
- package/autocomplete/lib/autocomplete.js +273 -0
- package/autocomplete/lib/autocomplete.js.map +1 -0
- package/autocomplete/lib/autocompleteitem/autocomplete-item.d.ts +11 -0
- package/autocomplete/lib/autocompleteitem/autocomplete-item.js +14 -0
- package/autocomplete/lib/autocompleteitem/autocomplete-item.js.map +1 -0
- package/autocomplete/lib/autocompleteitem/harness.d.ts +11 -0
- package/autocomplete/lib/autocompleteitem/harness.js +12 -0
- package/autocomplete/lib/autocompleteitem/harness.js.map +1 -0
- package/{field/lib/_field-theme.scss → autocomplete/lib/autocompletelist/_autocomplete-list.scss} +4 -6
- package/{elevation/lib/elevation-overlay-styles.css.d.ts → autocomplete/lib/autocompletelist/autocomplete-list-styles.css.d.ts} +0 -0
- package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js +9 -0
- package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js.map +1 -0
- package/{segmentedbutton/lib/segmented-button-styles.scss → autocomplete/lib/autocompletelist/autocomplete-list-styles.scss} +2 -2
- package/autocomplete/lib/autocompletelist/autocomplete-list.d.ts +14 -0
- package/autocomplete/lib/autocompletelist/autocomplete-list.js +21 -0
- package/autocomplete/lib/autocompletelist/autocomplete-list.js.map +1 -0
- package/autocomplete/lib/autocompletelist/harness.d.ts +11 -0
- package/autocomplete/lib/autocompletelist/harness.js +12 -0
- package/autocomplete/lib/autocompletelist/harness.js.map +1 -0
- package/autocomplete/lib/autocompletesurface/_autocomplete-surface.scss +13 -0
- package/{formfield/lib/formfield-styles.css.d.ts → autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.d.ts} +0 -0
- package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js +9 -0
- package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js.map +1 -0
- package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss +8 -0
- package/autocomplete/lib/autocompletesurface/autocomplete-surface.d.ts +13 -0
- package/autocomplete/lib/autocompletesurface/autocomplete-surface.js +21 -0
- package/autocomplete/lib/autocompletesurface/autocomplete-surface.js.map +1 -0
- package/{iconbutton/lib/icon-button-styles.css.d.ts → autocomplete/lib/filled-styles.css.d.ts} +0 -0
- package/autocomplete/lib/filled-styles.css.js +9 -0
- package/autocomplete/lib/filled-styles.css.js.map +1 -0
- package/autocomplete/lib/filled-styles.scss +8 -0
- package/{segmentedbutton/lib/segmented-button-styles.css.d.ts → autocomplete/lib/outlined-styles.css.d.ts} +0 -0
- package/autocomplete/lib/outlined-styles.css.js +9 -0
- package/autocomplete/lib/outlined-styles.css.js.map +1 -0
- package/autocomplete/lib/outlined-styles.scss +8 -0
- package/autocomplete/lib/shared-styles.css.d.ts +1 -0
- package/autocomplete/lib/shared-styles.css.js +9 -0
- package/autocomplete/lib/shared-styles.css.js.map +1 -0
- package/{iconbutton/lib/icon-button-styles.scss → autocomplete/lib/shared-styles.scss} +2 -2
- package/autocomplete/outlined-autocomplete.d.ts +30 -0
- package/autocomplete/outlined-autocomplete.js +53 -0
- package/autocomplete/outlined-autocomplete.js.map +1 -0
- package/badge/_badge.scss +6 -0
- package/badge/lib/_badge.scss +60 -21
- package/badge/lib/badge-styles.css.js +1 -1
- package/badge/lib/badge-styles.css.js.map +1 -1
- package/badge/lib/badge-styles.scss +1 -9
- package/button/_elevated-button.scss +1 -3
- package/button/_filled-button.scss +1 -3
- package/button/_outlined-button.scss +1 -3
- package/button/_text-button.scss +1 -3
- package/button/_tonal-button.scss +1 -3
- package/button/elevated-button.d.ts +18 -1
- package/button/elevated-button.js +20 -3
- package/button/elevated-button.js.map +1 -1
- package/button/elevated-link-button.d.ts +18 -1
- package/button/elevated-link-button.js +20 -3
- package/button/elevated-link-button.js.map +1 -1
- package/button/filled-button.d.ts +16 -1
- package/button/filled-button.js +18 -2
- package/button/filled-button.js.map +1 -1
- package/button/filled-link-button.d.ts +16 -1
- package/button/filled-link-button.js +18 -2
- package/button/filled-link-button.js.map +1 -1
- package/button/harness.d.ts +1 -1
- package/button/harness.js +1 -1
- package/button/harness.js.map +1 -1
- package/button/lib/_elevated-button.scss +51 -2
- package/button/lib/_elevation.scss +74 -0
- package/button/lib/_filled-button.scss +47 -2
- package/button/lib/_icon.scss +26 -18
- package/button/lib/_outlined-button.scss +70 -8
- package/button/lib/_shared.scss +180 -0
- package/button/lib/_text-button.scss +52 -2
- package/button/lib/_tonal-button.scss +50 -2
- package/button/lib/_touch-target.scss +7 -5
- package/button/lib/button.d.ts +45 -40
- package/button/lib/button.js +83 -88
- package/button/lib/button.js.map +1 -1
- package/button/lib/elevated-button.d.ts +2 -4
- package/button/lib/elevated-button.js +4 -5
- package/button/lib/elevated-button.js.map +1 -1
- package/button/lib/elevated-link-button.d.ts +2 -4
- package/button/lib/elevated-link-button.js +4 -5
- package/button/lib/elevated-link-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/elevated-styles.scss +1 -11
- package/button/lib/filled-button.d.ts +4 -2
- package/button/lib/filled-button.js +7 -2
- package/button/lib/filled-button.js.map +1 -1
- package/button/lib/filled-link-button.d.ts +4 -2
- package/button/lib/filled-link-button.js +7 -2
- package/button/lib/filled-link-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/filled-styles.scss +1 -9
- package/button/lib/link-button.d.ts +11 -3
- package/button/lib/link-button.js +29 -18
- package/button/lib/link-button.js.map +1 -1
- package/button/lib/outlined-button.d.ts +0 -3
- package/button/lib/outlined-button.js +1 -3
- package/button/lib/outlined-button.js.map +1 -1
- package/button/lib/outlined-link-button.d.ts +0 -3
- package/button/lib/outlined-link-button.js +1 -3
- package/button/lib/outlined-link-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/outlined-styles.scss +1 -11
- package/button/lib/shared-elevation-styles.css.d.ts +1 -0
- package/button/lib/shared-elevation-styles.css.js +9 -0
- package/button/lib/shared-elevation-styles.css.js.map +1 -0
- package/{ripple/_index.scss → button/lib/shared-elevation-styles.scss} +3 -1
- package/button/lib/shared-styles.css.js +1 -1
- package/button/lib/shared-styles.css.js.map +1 -1
- package/button/lib/shared-styles.scss +4 -4
- package/button/lib/text-button.d.ts +0 -2
- package/button/lib/text-button.js +1 -2
- package/button/lib/text-button.js.map +1 -1
- package/button/lib/text-link-button.d.ts +0 -2
- package/button/lib/text-link-button.js +1 -2
- package/button/lib/text-link-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/text-styles.scss +1 -9
- package/button/lib/tonal-button.d.ts +4 -2
- package/button/lib/tonal-button.js +7 -2
- package/button/lib/tonal-button.js.map +1 -1
- package/button/lib/tonal-link-button.d.ts +4 -2
- package/button/lib/tonal-link-button.js +7 -2
- package/button/lib/tonal-link-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/button/lib/tonal-styles.scss +1 -9
- package/button/outlined-button.d.ts +18 -1
- package/button/outlined-button.js +18 -1
- package/button/outlined-button.js.map +1 -1
- package/button/outlined-link-button.d.ts +18 -1
- package/button/outlined-link-button.js +18 -1
- package/button/outlined-link-button.js.map +1 -1
- package/button/text-button.d.ts +16 -1
- package/button/text-button.js +16 -1
- package/button/text-button.js.map +1 -1
- package/button/text-link-button.d.ts +16 -1
- package/button/text-link-button.js +16 -1
- package/button/text-link-button.js.map +1 -1
- package/button/tonal-button.d.ts +17 -1
- package/button/tonal-button.js +19 -2
- package/button/tonal-button.js.map +1 -1
- package/button/tonal-link-button.d.ts +17 -1
- package/button/tonal-link-button.js +19 -2
- package/button/tonal-link-button.js.map +1 -1
- package/checkbox/_checkbox.scss +6 -1
- package/checkbox/checkbox.d.ts +4 -1
- package/checkbox/checkbox.js +6 -2
- package/checkbox/checkbox.js.map +1 -1
- package/checkbox/harness.d.ts +1 -1
- package/checkbox/harness.js +1 -1
- package/checkbox/harness.js.map +1 -1
- package/checkbox/lib/_checkbox.scss +368 -334
- package/checkbox/lib/checkbox-styles.css.js +1 -1
- package/checkbox/lib/checkbox-styles.css.js.map +1 -1
- package/checkbox/lib/checkbox-styles.scss +1 -8
- package/checkbox/lib/checkbox.d.ts +30 -45
- package/checkbox/lib/checkbox.js +127 -177
- package/checkbox/lib/checkbox.js.map +1 -1
- package/checkbox/lib/forced-colors-styles.css.d.ts +1 -0
- package/checkbox/lib/forced-colors-styles.css.js +9 -0
- package/checkbox/lib/forced-colors-styles.css.js.map +1 -0
- package/checkbox/lib/forced-colors-styles.scss +47 -0
- package/{formfield/formfield.d.ts → chips/action/delete-action.d.ts} +3 -4
- package/chips/action/delete-action.js +20 -0
- package/chips/action/delete-action.js.map +1 -0
- package/chips/action/lib/action.d.ts +17 -4
- package/chips/action/lib/action.js +85 -6
- package/chips/action/lib/action.js.map +1 -1
- package/chips/action/lib/{trailing-action.d.ts → delete-action.d.ts} +3 -3
- package/chips/action/lib/{trailing-action.js → delete-action.js} +22 -19
- package/chips/action/lib/delete-action.js.map +1 -0
- package/chips/action/lib/events.d.ts +14 -0
- package/chips/action/lib/events.js +16 -0
- package/chips/action/lib/events.js.map +1 -0
- package/chips/action/lib/link-action.d.ts +2 -0
- package/chips/action/lib/link-action.js +13 -1
- package/chips/action/lib/link-action.js.map +1 -1
- package/chips/action/lib/primary-action.d.ts +0 -1
- package/chips/action/lib/primary-action.js +11 -6
- package/chips/action/lib/primary-action.js.map +1 -1
- package/chips/action/lib/selectable-action.js +11 -1
- package/chips/action/lib/selectable-action.js.map +1 -1
- package/chips/action/link-action.d.ts +18 -0
- package/chips/action/link-action.js +20 -0
- package/chips/action/link-action.js.map +1 -0
- package/chips/action/presentational-action.d.ts +18 -0
- package/chips/action/presentational-action.js +20 -0
- package/chips/action/presentational-action.js.map +1 -0
- package/chips/action/primary-action.d.ts +18 -0
- package/chips/action/primary-action.js +20 -0
- package/chips/action/primary-action.js.map +1 -0
- package/chips/action/selectable-action.d.ts +18 -0
- package/chips/action/selectable-action.js +20 -0
- package/chips/action/selectable-action.js.map +1 -0
- package/chips/chip/lib/_assist-chip-theme.scss +5 -11
- package/chips/chip/lib/_chip-theme.scss +182 -211
- package/chips/chip/lib/_chip.scss +78 -61
- package/chips/chip/lib/_filter-chip-theme.scss +5 -11
- package/chips/chip/lib/_input-chip-theme.scss +12 -18
- package/chips/chip/lib/_suggestion-chip-theme.scss +5 -11
- package/chips/chip/lib/action-chip.d.ts +18 -0
- package/chips/chip/lib/action-chip.js +39 -0
- package/chips/chip/lib/action-chip.js.map +1 -0
- package/{compat/animation → chips/chip/lib}/animationframe.d.ts +0 -0
- package/{compat/animation → chips/chip/lib}/animationframe.js +1 -0
- package/chips/chip/lib/animationframe.js.map +1 -0
- package/chips/chip/lib/chip.d.ts +42 -0
- package/chips/chip/lib/chip.js +133 -0
- package/chips/chip/lib/chip.js.map +1 -0
- package/chips/chip/lib/foundation.js +3 -4
- package/chips/chip/lib/foundation.js.map +1 -1
- package/chips/chip/lib/link-chip.d.ts +21 -0
- package/chips/chip/lib/link-chip.js +53 -0
- package/chips/chip/lib/link-chip.js.map +1 -0
- package/chips/chip/lib/presentational-chip.d.ts +18 -0
- package/chips/chip/lib/presentational-chip.js +39 -0
- package/chips/chip/lib/presentational-chip.js.map +1 -0
- package/chips/chip/lib/selectable-chip.d.ts +22 -0
- package/chips/chip/lib/selectable-chip.js +57 -0
- package/chips/chip/lib/selectable-chip.js.map +1 -0
- package/chips/chipset/lib/_chip-set-theme.scss +1 -1
- package/chips/chipset/lib/foundation.js +8 -10
- package/chips/chipset/lib/foundation.js.map +1 -1
- package/controller/events.d.ts +50 -0
- package/controller/events.js +86 -0
- package/controller/events.js.map +1 -1
- package/controller/form-associated.d.ts +14 -0
- package/controller/form-associated.js +12 -0
- package/controller/form-associated.js.map +1 -0
- package/controller/form-controller.d.ts +7 -0
- package/controller/form-controller.js +15 -1
- package/controller/form-controller.js.map +1 -1
- package/controller/is-rtl.d.ts +14 -0
- package/controller/is-rtl.js +18 -0
- package/controller/is-rtl.js.map +1 -0
- package/controller/shim-label-activation.d.ts +18 -0
- package/controller/shim-label-activation.js +72 -0
- package/controller/shim-label-activation.js.map +1 -0
- package/decorators/bound.d.ts +1 -1
- package/decorators/bound.js.map +1 -1
- package/elevation/_elevation.scss +6 -0
- package/elevation/elevation.d.ts +19 -0
- package/elevation/elevation.js +22 -0
- package/elevation/elevation.js.map +1 -0
- package/elevation/lib/_elevation.scss +218 -0
- package/elevation/lib/_md-comp-elevation.scss +23 -0
- package/elevation/lib/elevation-styles.css.d.ts +1 -0
- package/elevation/lib/elevation-styles.css.js +9 -0
- package/elevation/lib/elevation-styles.css.js.map +1 -0
- package/elevation/lib/elevation-styles.scss +8 -0
- package/elevation/lib/elevation.d.ts +20 -0
- package/elevation/lib/elevation.js +39 -0
- package/elevation/lib/elevation.js.map +1 -0
- package/{elevation → elevationold}/lib/_elevation-overlay-theme.scss +0 -0
- package/{elevation → elevationold}/lib/_elevation-overlay.scss +0 -0
- package/{elevation → elevationold}/lib/_elevation-theme.scss +3 -17
- package/{elevation → elevationold}/lib/_surface.scss +1 -4
- package/elevationold/lib/elevation-overlay-styles.css.d.ts +1 -0
- package/{elevation → elevationold}/lib/elevation-overlay-styles.css.js +0 -0
- package/{elevation → elevationold}/lib/elevation-overlay-styles.css.js.map +0 -0
- package/{elevation → elevationold}/lib/elevation-overlay-styles.scss +0 -0
- package/fab/_fab-extended.scss +1 -6
- package/fab/_fab.scss +1 -15
- package/fab/fab-extended.d.ts +1 -1
- package/fab/fab-extended.js +2 -2
- package/fab/fab-extended.js.map +1 -1
- package/fab/fab.d.ts +1 -1
- package/fab/fab.js +2 -2
- package/fab/fab.js.map +1 -1
- package/fab/harness.d.ts +1 -1
- package/fab/harness.js +1 -1
- package/fab/harness.js.map +1 -1
- package/fab/lib/_fab-extended.scss +55 -21
- package/fab/lib/_fab.scss +30 -6
- package/fab/lib/_shared.scss +209 -0
- 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-extended-styles.scss +1 -9
- 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-styles.scss +2 -2
- package/fab/lib/fab-shared.d.ts +6 -5
- package/fab/lib/fab-shared.js +9 -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/fab/lib/fab-styles.scss +1 -9
- package/field/_filled-field.scss +1 -3
- package/field/_outlined-field.scss +1 -3
- package/field/harness.d.ts +1 -1
- package/field/harness.js +1 -1
- package/field/harness.js.map +1 -1
- package/field/lib/_content.scss +51 -2
- package/field/lib/_filled-field.scss +167 -88
- package/field/lib/_label.scss +65 -2
- package/field/lib/_md-comp-filled-field.scss +72 -0
- package/field/lib/_md-comp-outlined-field.scss +74 -0
- package/field/lib/_outlined-field.scss +222 -118
- package/field/lib/{_field.scss → _shared.scss} +30 -1
- package/field/lib/_supporting-text.scss +64 -1
- package/field/lib/field.d.ts +1 -1
- package/field/lib/field.js +1 -1
- package/field/lib/field.js.map +1 -1
- package/field/lib/filled-field.d.ts +1 -0
- package/field/lib/filled-field.js +1 -0
- 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/filled-styles.scss +1 -9
- package/field/lib/outlined-styles.css.js +1 -1
- package/field/lib/outlined-styles.css.js.map +1 -1
- package/field/lib/outlined-styles.scss +1 -10
- package/field/lib/shared-styles.css.js +1 -1
- package/field/lib/shared-styles.css.js.map +1 -1
- package/field/lib/shared-styles.scss +2 -8
- package/focus/_focus-ring.scss +6 -0
- package/focus/lib/_focus-ring.scss +48 -21
- package/focus/lib/_md-comp-focus-ring.scss +27 -0
- package/focus/lib/focus-ring-styles.css.js +1 -1
- package/focus/lib/focus-ring-styles.css.js.map +1 -1
- package/focus/lib/focus-ring-styles.scss +1 -9
- package/focus/lib/focus-ring.d.ts +16 -3
- package/focus/lib/focus-ring.js +16 -3
- package/focus/lib/focus-ring.js.map +1 -1
- package/focus/strong-focus.d.ts +2 -0
- package/focus/strong-focus.js +6 -4
- package/focus/strong-focus.js.map +1 -1
- package/icon/_icon.scss +6 -0
- package/icon/lib/_icon.scss +54 -0
- package/icon/lib/_md-comp-icon.scss +19 -0
- package/icon/lib/icon-styles.css.js +1 -1
- package/icon/lib/icon-styles.css.js.map +1 -1
- package/icon/lib/icon-styles.scss +2 -19
- package/iconbutton/_filled-icon-button.scss +1 -2
- package/iconbutton/_filled-tonal-icon-button.scss +6 -0
- package/iconbutton/_outlined-icon-button.scss +1 -2
- package/iconbutton/_standard-icon-button.scss +1 -2
- package/iconbutton/filled-icon-button-toggle.d.ts +15 -3
- package/iconbutton/filled-icon-button-toggle.js +16 -4
- package/iconbutton/filled-icon-button-toggle.js.map +1 -1
- package/iconbutton/filled-icon-button.d.ts +15 -3
- package/iconbutton/filled-icon-button.js +16 -4
- package/iconbutton/filled-icon-button.js.map +1 -1
- package/iconbutton/filled-link-icon-button.d.ts +15 -3
- package/iconbutton/filled-link-icon-button.js +16 -4
- package/iconbutton/filled-link-icon-button.js.map +1 -1
- package/iconbutton/filled-tonal-icon-button-toggle.d.ts +15 -3
- package/iconbutton/filled-tonal-icon-button-toggle.js +16 -4
- package/iconbutton/filled-tonal-icon-button-toggle.js.map +1 -1
- package/iconbutton/filled-tonal-icon-button.d.ts +15 -3
- package/iconbutton/filled-tonal-icon-button.js +16 -4
- package/iconbutton/filled-tonal-icon-button.js.map +1 -1
- package/iconbutton/filled-tonal-link-icon-button.d.ts +15 -3
- package/iconbutton/filled-tonal-link-icon-button.js +16 -4
- package/iconbutton/filled-tonal-link-icon-button.js.map +1 -1
- package/iconbutton/harness.d.ts +1 -1
- package/iconbutton/harness.js +1 -1
- package/iconbutton/harness.js.map +1 -1
- package/iconbutton/lib/_filled-icon-button.scss +123 -2
- package/iconbutton/lib/_filled-tonal-icon-button.scss +123 -2
- package/iconbutton/lib/_outlined-icon-button.scss +133 -1
- package/iconbutton/lib/{_icon-button-theme.scss → _shared.scss} +76 -71
- package/iconbutton/lib/_standard-icon-button.scss +94 -2
- package/iconbutton/lib/filled-styles.css.js +1 -1
- package/iconbutton/lib/filled-styles.css.js.map +1 -1
- package/iconbutton/lib/filled-styles.scss +1 -11
- package/iconbutton/lib/filled-tonal-styles.css.js +1 -1
- package/iconbutton/lib/filled-tonal-styles.css.js.map +1 -1
- package/iconbutton/lib/filled-tonal-styles.scss +1 -11
- package/iconbutton/lib/icon-button-toggle.d.ts +42 -23
- package/iconbutton/lib/icon-button-toggle.js +64 -62
- package/iconbutton/lib/icon-button-toggle.js.map +1 -1
- package/iconbutton/lib/icon-button.d.ts +22 -30
- package/iconbutton/lib/icon-button.js +52 -71
- package/iconbutton/lib/icon-button.js.map +1 -1
- package/iconbutton/lib/link-icon-button.d.ts +11 -2
- package/iconbutton/lib/link-icon-button.js +23 -18
- package/iconbutton/lib/link-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/outlined-styles.scss +1 -11
- package/iconbutton/lib/shared-styles.css.d.ts +1 -0
- package/iconbutton/lib/shared-styles.css.js +9 -0
- package/iconbutton/lib/shared-styles.css.js.map +1 -0
- package/iconbutton/lib/shared-styles.scss +8 -0
- package/iconbutton/lib/standard-styles.css.js +1 -1
- package/iconbutton/lib/standard-styles.css.js.map +1 -1
- package/iconbutton/lib/standard-styles.scss +1 -11
- package/iconbutton/outlined-icon-button-toggle.d.ts +15 -3
- package/iconbutton/outlined-icon-button-toggle.js +16 -4
- package/iconbutton/outlined-icon-button-toggle.js.map +1 -1
- package/iconbutton/outlined-icon-button.d.ts +15 -3
- package/iconbutton/outlined-icon-button.js +16 -4
- package/iconbutton/outlined-icon-button.js.map +1 -1
- package/iconbutton/outlined-link-icon-button.d.ts +15 -3
- package/iconbutton/outlined-link-icon-button.js +16 -4
- package/iconbutton/outlined-link-icon-button.js.map +1 -1
- package/iconbutton/standard-icon-button-toggle.d.ts +15 -3
- package/iconbutton/standard-icon-button-toggle.js +16 -4
- package/iconbutton/standard-icon-button-toggle.js.map +1 -1
- package/iconbutton/standard-icon-button.d.ts +15 -3
- package/iconbutton/standard-icon-button.js +16 -4
- package/iconbutton/standard-icon-button.js.map +1 -1
- package/iconbutton/standard-link-icon-button.d.ts +15 -3
- package/iconbutton/standard-link-icon-button.js +16 -4
- package/iconbutton/standard-link-icon-button.js.map +1 -1
- package/list/_list-item.scss +1 -2
- package/list/_list.scss +1 -2
- package/list/harness.d.ts +1 -1
- package/list/harness.js +1 -1
- package/list/harness.js.map +1 -1
- package/list/lib/_list.scss +58 -21
- package/list/lib/_tokens.scss +2 -2
- package/list/lib/avatar/_list-item-avatar.scss +25 -1
- package/list/lib/avatar/list-item-avatar-styles.css.js +1 -1
- package/list/lib/avatar/list-item-avatar-styles.css.js.map +1 -1
- package/list/lib/avatar/list-item-avatar-styles.scss +1 -13
- package/list/lib/divider/_list-divider.scss +33 -1
- package/list/lib/divider/list-divider-styles.css.js +1 -1
- package/list/lib/divider/list-divider-styles.css.js.map +1 -1
- package/list/lib/divider/list-divider-styles.scss +1 -11
- package/list/lib/divider/list-divider.d.ts +1 -1
- package/list/lib/divider/list-divider.js +1 -1
- package/list/lib/divider/list-divider.js.map +1 -1
- package/list/lib/icon/_list-item-icon.scss +32 -2
- package/list/lib/icon/list-item-icon-styles.css.js +1 -1
- package/list/lib/icon/list-item-icon-styles.css.js.map +1 -1
- package/list/lib/icon/list-item-icon-styles.scss +1 -13
- package/list/lib/image/_list-item-image.scss +44 -1
- package/list/lib/image/list-item-image-styles.css.js +1 -1
- package/list/lib/image/list-item-image-styles.css.js.map +1 -1
- package/list/lib/image/list-item-image-styles.scss +1 -13
- package/list/lib/list-styles.css.js +1 -1
- package/list/lib/list-styles.css.js.map +1 -1
- package/list/lib/list-styles.scss +1 -9
- package/list/lib/list.d.ts +5 -1
- package/list/lib/list.js +13 -2
- package/list/lib/list.js.map +1 -1
- package/list/lib/listitem/_list-item.scss +156 -59
- package/list/lib/listitem/harness.d.ts +1 -1
- package/list/lib/listitem/harness.js +1 -1
- package/list/lib/listitem/harness.js.map +1 -1
- package/list/lib/listitem/list-item-styles.css.js +1 -1
- package/list/lib/listitem/list-item-styles.css.js.map +1 -1
- package/list/lib/listitem/list-item-styles.scss +1 -9
- package/list/lib/listitem/list-item.d.ts +5 -5
- package/list/lib/listitem/list-item.js +6 -6
- package/list/lib/listitem/list-item.js.map +1 -1
- package/list/lib/video/_list-item-video.scss +45 -2
- package/list/lib/video/list-item-video-styles.css.js +1 -1
- package/list/lib/video/list-item-video-styles.css.js.map +1 -1
- package/list/lib/video/list-item-video-styles.scss +1 -13
- package/localization/localize.d.ts +15 -0
- package/localization/localize.js +18 -0
- package/localization/localize.js.map +1 -0
- package/menu/harness.d.ts +1 -1
- package/menu/harness.js +1 -1
- package/menu/harness.js.map +1 -1
- package/menu/lib/_menu-button.scss +1 -1
- package/menu/lib/_menu.scss +105 -2
- package/menu/lib/menu-button-styles.scss +5 -6
- package/menu/lib/menu-styles.css.js +1 -1
- package/menu/lib/menu-styles.css.js.map +1 -1
- package/menu/lib/menu-styles.scss +5 -14
- package/menu/lib/menu.js +3 -3
- package/menu/lib/menu.js.map +1 -1
- package/menu/lib/menuitem/harness.d.ts +1 -1
- package/menu/lib/menuitem/harness.js +1 -1
- package/menu/lib/menuitem/harness.js.map +1 -1
- package/menu/lib/menuitem/menu-item.d.ts +2 -2
- package/menu/lib/menuitem/menu-item.js +1 -1
- package/menu/lib/menuitem/menu-item.js.map +1 -1
- package/menusurface/_menu-surface.scss +1 -2
- package/menusurface/lib/_md-comp-menu-surface.scss +35 -0
- package/menusurface/lib/_menu-surface.scss +30 -1
- package/menusurface/lib/menu-surface-styles.css.js +1 -1
- package/menusurface/lib/menu-surface-styles.css.js.map +1 -1
- package/menusurface/lib/menu-surface-styles.scss +1 -9
- package/menusurface/lib/menu-surface.d.ts +5 -2
- package/menusurface/lib/menu-surface.js +48 -89
- package/menusurface/lib/menu-surface.js.map +1 -1
- package/navigationbar/_navigation-bar.scss +1 -2
- package/navigationbar/harness.d.ts +1 -1
- package/navigationbar/harness.js +1 -1
- package/navigationbar/harness.js.map +1 -1
- package/navigationbar/lib/_navigation-bar.scss +44 -6
- package/navigationbar/lib/constants.d.ts +1 -1
- package/navigationbar/lib/constants.js.map +1 -1
- package/navigationbar/lib/navigation-bar-styles.css.js +1 -1
- package/navigationbar/lib/navigation-bar-styles.css.js.map +1 -1
- package/navigationbar/lib/navigation-bar-styles.scss +1 -13
- package/navigationbar/lib/navigation-bar.d.ts +4 -3
- package/navigationbar/lib/navigation-bar.js +35 -44
- package/navigationbar/lib/navigation-bar.js.map +1 -1
- package/navigationbar/lib/state.d.ts +1 -1
- package/navigationbar/lib/state.js.map +1 -1
- package/navigationdrawer/_navigation-drawer-modal.scss +1 -1
- package/navigationdrawer/_navigation-drawer.scss +1 -1
- package/navigationdrawer/lib/_navigation-drawer-modal.scss +54 -12
- package/navigationdrawer/lib/_navigation-drawer.scss +48 -9
- package/navigationdrawer/lib/_shared.scss +49 -0
- package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js +1 -1
- package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer-modal-styles.scss +1 -5
- package/navigationdrawer/lib/navigation-drawer-modal.d.ts +7 -7
- package/navigationdrawer/lib/navigation-drawer-modal.js +13 -14
- package/navigationdrawer/lib/navigation-drawer-modal.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer-styles.css.js +1 -1
- package/navigationdrawer/lib/navigation-drawer-styles.css.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer-styles.scss +1 -11
- package/navigationdrawer/lib/navigation-drawer.d.ts +6 -6
- package/navigationdrawer/lib/navigation-drawer.js +13 -14
- package/navigationdrawer/lib/navigation-drawer.js.map +1 -1
- package/navigationdrawer/lib/shared-styles.css.d.ts +1 -0
- package/navigationdrawer/lib/shared-styles.css.js +9 -0
- package/navigationdrawer/lib/shared-styles.css.js.map +1 -0
- package/navigationdrawer/lib/shared-styles.scss +8 -0
- package/navigationdrawer/navigation-drawer-modal.js +2 -1
- package/navigationdrawer/navigation-drawer-modal.js.map +1 -1
- package/navigationdrawer/navigation-drawer.js +2 -1
- package/navigationdrawer/navigation-drawer.js.map +1 -1
- package/navigationtab/_navigation-tab.scss +1 -2
- package/navigationtab/harness.d.ts +1 -1
- package/navigationtab/harness.js +1 -1
- package/navigationtab/harness.js.map +1 -1
- package/navigationtab/lib/_navigation-tab.scss +224 -77
- package/navigationtab/lib/navigation-tab-styles.css.js +1 -1
- package/navigationtab/lib/navigation-tab-styles.css.js.map +1 -1
- package/navigationtab/lib/navigation-tab-styles.scss +1 -14
- package/navigationtab/lib/navigation-tab.d.ts +4 -4
- package/navigationtab/lib/navigation-tab.js +6 -6
- package/navigationtab/lib/navigation-tab.js.map +1 -1
- package/package.json +76 -12
- package/radio/harness.d.ts +1 -1
- package/radio/harness.js +1 -1
- package/radio/harness.js.map +1 -1
- package/radio/lib/_radio-theme.scss +7 -6
- package/radio/lib/_radio.scss +5 -5
- package/radio/lib/radio-styles.css.js +1 -1
- package/radio/lib/radio-styles.css.js.map +1 -1
- package/radio/lib/radio.d.ts +4 -7
- package/radio/lib/radio.js +11 -12
- package/radio/lib/radio.js.map +1 -1
- package/ripple/_ripple-theme.scss +13 -2
- package/ripple/_ripple.scss +6 -0
- package/ripple/directive.d.ts +63 -0
- package/ripple/directive.js +266 -0
- package/ripple/directive.js.map +1 -0
- package/ripple/lib/_md-comp-ripple.scss +29 -0
- package/ripple/lib/_ripple.scss +82 -53
- package/ripple/lib/ripple-styles.css.js +1 -1
- package/ripple/lib/ripple-styles.css.js.map +1 -1
- package/ripple/lib/ripple-styles.scss +1 -9
- package/ripple/lib/ripple.d.ts +1 -1
- package/ripple/lib/ripple.js +1 -1
- package/ripple/lib/ripple.js.map +1 -1
- package/sass/_assert.scss +5 -0
- package/sass/_color-scheme.scss +88 -0
- package/sass/_color.scss +30 -50
- package/sass/_feature-flags.scss +3 -3
- package/segmentedbutton/lib/_outlined-segmented-button.scss +26 -2
- package/segmentedbutton/lib/_shared.scss +388 -0
- package/segmentedbutton/lib/outlined-styles.css.js +1 -1
- package/segmentedbutton/lib/outlined-styles.css.js.map +1 -1
- package/segmentedbutton/lib/outlined-styles.scss +1 -10
- package/segmentedbutton/lib/segmented-button.d.ts +3 -3
- package/segmentedbutton/lib/segmented-button.js +5 -5
- package/segmentedbutton/lib/segmented-button.js.map +1 -1
- package/segmentedbutton/lib/shared-styles.css.d.ts +1 -0
- package/segmentedbutton/lib/shared-styles.css.js +9 -0
- package/segmentedbutton/lib/shared-styles.css.js.map +1 -0
- package/segmentedbutton/lib/shared-styles.scss +8 -0
- package/segmentedbutton/outlined-segmented-button.js +1 -1
- package/segmentedbutton/outlined-segmented-button.js.map +1 -1
- package/segmentedbuttonset/lib/_outlined-segmented-button-set.scss +22 -4
- package/segmentedbuttonset/lib/_shared.scss +46 -0
- package/segmentedbuttonset/lib/outlined-styles.css.js +1 -1
- package/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -1
- package/segmentedbuttonset/lib/outlined-styles.scss +1 -10
- package/segmentedbuttonset/lib/segmented-button-set.js +1 -1
- package/segmentedbuttonset/lib/segmented-button-set.js.map +1 -1
- package/segmentedbuttonset/lib/shared-styles.css.js +1 -1
- package/segmentedbuttonset/lib/shared-styles.css.js.map +1 -1
- package/segmentedbuttonset/lib/shared-styles.scss +2 -2
- package/switch/_switch.scss +1 -2
- package/switch/harness.d.ts +1 -1
- package/switch/harness.js +1 -1
- package/switch/harness.js.map +1 -1
- package/switch/lib/_handle.scss +121 -0
- package/switch/lib/_icon.scss +33 -0
- package/switch/lib/_switch.scss +211 -119
- package/switch/lib/_track.scss +57 -0
- package/switch/lib/switch-styles.css.js +1 -1
- package/switch/lib/switch-styles.css.js.map +1 -1
- package/switch/lib/switch-styles.scss +1 -4
- package/switch/lib/switch.d.ts +42 -18
- package/switch/lib/switch.js +86 -47
- package/switch/lib/switch.js.map +1 -1
- package/switch/switch.d.ts +6 -1
- package/switch/switch.js +6 -1
- package/switch/switch.js.map +1 -1
- package/textfield/_filled-text-field.scss +1 -4
- package/textfield/_outlined-text-field.scss +1 -4
- package/textfield/filled-text-field.d.ts +1 -1
- package/textfield/filled-text-field.js +1 -1
- package/textfield/filled-text-field.js.map +1 -1
- package/textfield/harness.d.ts +1 -1
- package/textfield/harness.js +1 -1
- package/textfield/harness.js.map +1 -1
- package/textfield/lib/_filled-text-field.scss +147 -0
- package/textfield/lib/_icon.scss +71 -1
- package/textfield/lib/_input.scss +65 -21
- package/textfield/lib/_outlined-text-field.scss +137 -0
- package/textfield/lib/_shared.scss +59 -0
- package/textfield/lib/filled-forced-colors-styles.css.js +1 -1
- package/textfield/lib/filled-forced-colors-styles.css.js.map +1 -1
- package/textfield/lib/filled-forced-colors-styles.scss +17 -7
- package/textfield/lib/filled-styles.css.js +1 -1
- package/textfield/lib/filled-styles.css.js.map +1 -1
- package/textfield/lib/filled-styles.scss +2 -9
- package/textfield/lib/outlined-forced-colors-styles.css.js +1 -1
- package/textfield/lib/outlined-forced-colors-styles.css.js.map +1 -1
- package/textfield/lib/outlined-forced-colors-styles.scss +17 -7
- package/textfield/lib/outlined-styles.css.js +1 -1
- package/textfield/lib/outlined-styles.css.js.map +1 -1
- package/textfield/lib/outlined-styles.scss +2 -9
- package/textfield/lib/shared-styles.css.js +1 -1
- package/textfield/lib/shared-styles.css.js.map +1 -1
- package/textfield/lib/shared-styles.scss +2 -6
- package/textfield/lib/text-field.d.ts +88 -9
- package/textfield/lib/text-field.js +228 -70
- package/textfield/lib/text-field.js.map +1 -1
- package/textfield/outlined-text-field.d.ts +1 -1
- package/textfield/outlined-text-field.js +1 -1
- package/textfield/outlined-text-field.js.map +1 -1
- package/tokens/_index.scss +1 -1
- package/tokens/{latest → v0_144}/_index.scss +15 -94
- package/tokens/v0_144/_md-comp-assist-chip.scss +109 -0
- package/tokens/v0_144/_md-comp-badge.scss +58 -0
- package/tokens/v0_144/_md-comp-banner.scss +116 -0
- package/tokens/v0_144/_md-comp-bottom-app-bar.scss +36 -0
- package/tokens/v0_144/_md-comp-carousel-item.scss +65 -0
- package/tokens/v0_144/_md-comp-checkbox.scss +147 -0
- package/tokens/v0_144/_md-comp-circular-progress-indicator.scss +39 -0
- package/tokens/v0_144/_md-comp-data-table.scss +100 -0
- package/tokens/v0_144/_md-comp-date-input-modal.scss +89 -0
- package/tokens/v0_144/_md-comp-date-picker-docked.scss +246 -0
- package/tokens/v0_144/_md-comp-date-picker-modal.scss +305 -0
- package/tokens/v0_144/_md-comp-dialog.scss +146 -0
- package/tokens/{latest → v0_144}/_md-comp-divider.scss +5 -5
- package/tokens/v0_144/_md-comp-elevated-button.scss +91 -0
- package/tokens/v0_144/_md-comp-elevated-card.scss +59 -0
- package/tokens/v0_144/_md-comp-extended-fab-branded.scss +86 -0
- package/tokens/v0_144/_md-comp-extended-fab-primary.scss +94 -0
- package/tokens/v0_144/_md-comp-extended-fab-secondary.scss +95 -0
- package/tokens/v0_144/_md-comp-extended-fab-surface.scss +90 -0
- package/tokens/v0_144/_md-comp-extended-fab-tertiary.scss +97 -0
- package/tokens/v0_144/_md-comp-fab-branded-large.scss +61 -0
- package/tokens/v0_144/_md-comp-fab-branded.scss +60 -0
- package/tokens/v0_144/_md-comp-fab-primary-large.scss +65 -0
- package/tokens/v0_144/_md-comp-fab-primary-small.scss +65 -0
- package/tokens/v0_144/_md-comp-fab-primary.scss +65 -0
- package/tokens/v0_144/_md-comp-fab-secondary-large.scss +66 -0
- package/tokens/v0_144/_md-comp-fab-secondary-small.scss +66 -0
- package/tokens/v0_144/_md-comp-fab-secondary.scss +66 -0
- package/tokens/v0_144/_md-comp-fab-surface-large.scss +64 -0
- package/tokens/v0_144/_md-comp-fab-surface-small.scss +64 -0
- package/tokens/v0_144/_md-comp-fab-surface.scss +64 -0
- package/tokens/v0_144/_md-comp-fab-tertiary-large.scss +66 -0
- package/tokens/v0_144/_md-comp-fab-tertiary-small.scss +66 -0
- package/tokens/v0_144/_md-comp-fab-tertiary.scss +66 -0
- package/tokens/v0_144/_md-comp-filled-autocomplete.scss +268 -0
- package/tokens/v0_144/_md-comp-filled-button.scss +95 -0
- package/tokens/v0_144/_md-comp-filled-card.scss +60 -0
- package/tokens/v0_144/_md-comp-filled-icon-button.scss +79 -0
- package/tokens/v0_144/_md-comp-filled-menu-button.scss +98 -0
- package/tokens/v0_144/_md-comp-filled-select.scss +276 -0
- package/tokens/v0_144/_md-comp-filled-text-field.scss +190 -0
- package/tokens/v0_144/_md-comp-filled-tonal-button.scss +99 -0
- package/tokens/v0_144/_md-comp-filled-tonal-icon-button.scss +86 -0
- package/tokens/v0_144/_md-comp-filter-chip.scss +236 -0
- package/tokens/v0_144/_md-comp-full-screen-dialog.scss +161 -0
- package/tokens/v0_144/_md-comp-icon-button.scss +70 -0
- package/tokens/v0_144/_md-comp-input-chip.scss +234 -0
- package/tokens/v0_144/_md-comp-linear-progress-indicator.scss +41 -0
- package/tokens/v0_144/_md-comp-list.scss +257 -0
- package/tokens/v0_144/_md-comp-menu.scss +123 -0
- package/tokens/v0_144/_md-comp-navigation-bar.scss +121 -0
- package/tokens/v0_144/_md-comp-navigation-drawer.scss +168 -0
- package/tokens/v0_144/_md-comp-navigation-rail.scss +168 -0
- package/tokens/v0_144/_md-comp-outlined-autocomplete.scss +258 -0
- package/tokens/v0_144/_md-comp-outlined-button.scss +88 -0
- package/tokens/v0_144/_md-comp-outlined-card.scss +65 -0
- package/tokens/v0_144/_md-comp-outlined-icon-button.scss +81 -0
- package/tokens/v0_144/_md-comp-outlined-menu-button.scss +94 -0
- package/tokens/v0_144/_md-comp-outlined-segmented-button.scss +112 -0
- package/tokens/v0_144/_md-comp-outlined-select.scss +266 -0
- package/tokens/v0_144/_md-comp-outlined-text-field.scss +172 -0
- package/tokens/v0_144/_md-comp-plain-tooltip.scss +55 -0
- package/tokens/v0_144/_md-comp-primary-navigation-tab.scss +123 -0
- package/tokens/v0_144/_md-comp-radio-button.scss +68 -0
- package/tokens/v0_144/_md-comp-rich-tooltip.scss +121 -0
- package/tokens/{v0_93/_md-comp-divider.scss → v0_144/_md-comp-scrim.scss} +5 -5
- package/tokens/v0_144/_md-comp-search-bar.scss +99 -0
- package/tokens/v0_144/_md-comp-search-view.scss +93 -0
- package/tokens/v0_144/_md-comp-secondary-navigation-tab.scss +86 -0
- package/tokens/v0_144/_md-comp-sheet-bottom.scss +45 -0
- package/tokens/v0_144/_md-comp-sheet-floating.scss +34 -0
- package/tokens/v0_144/_md-comp-sheet-side.scss +89 -0
- package/tokens/v0_144/_md-comp-slider.scss +116 -0
- package/tokens/v0_144/_md-comp-snackbar.scss +103 -0
- package/tokens/v0_144/_md-comp-standard-menu-button.scss +98 -0
- package/tokens/v0_144/_md-comp-suggestion-chip.scss +125 -0
- package/tokens/v0_144/_md-comp-switch.scss +145 -0
- package/tokens/v0_144/_md-comp-text-button.scss +81 -0
- package/tokens/v0_144/_md-comp-time-input.scss +218 -0
- package/tokens/v0_144/_md-comp-time-picker.scss +267 -0
- package/tokens/v0_144/_md-comp-top-app-bar-large.scss +63 -0
- package/tokens/v0_144/_md-comp-top-app-bar-medium.scss +63 -0
- package/tokens/v0_144/_md-comp-top-app-bar-small-centered.scss +67 -0
- package/tokens/v0_144/_md-comp-top-app-bar-small.scss +65 -0
- package/tokens/v0_144/_md-ref-palette.scss +107 -0
- package/tokens/v0_144/_md-ref-typeface.scss +21 -0
- package/tokens/v0_144/_md-sys-color.scss +706 -0
- package/tokens/v0_144/_md-sys-elevation.scss +30 -0
- package/tokens/v0_144/_md-sys-motion.scss +53 -0
- package/tokens/v0_144/_md-sys-shape.scss +30 -0
- package/tokens/v0_144/_md-sys-state.scss +19 -0
- package/tokens/v0_144/_md-sys-typescale.scss +285 -0
- package/badge/lib/_badge-theme.scss +0 -118
- package/button/lib/_button-theme.scss +0 -204
- package/button/lib/_button.scss +0 -88
- package/button/lib/_elevated-button-theme.scss +0 -53
- package/button/lib/_elevation-theme.scss +0 -94
- package/button/lib/_filled-button-theme.scss +0 -53
- package/button/lib/_icon-theme.scss +0 -67
- package/button/lib/_outlined-button-theme.scss +0 -112
- package/button/lib/_text-button-theme.scss +0 -57
- package/button/lib/_tonal-button-theme.scss +0 -53
- package/checkbox/lib/_checkbox-theme.scss +0 -532
- package/chips/action/lib/adapter.d.ts +0 -21
- package/chips/action/lib/adapter.js +0 -7
- package/chips/action/lib/adapter.js.map +0 -1
- package/chips/action/lib/foundation.d.ts +0 -31
- package/chips/action/lib/foundation.js +0 -151
- package/chips/action/lib/foundation.js.map +0 -1
- package/chips/action/lib/primary-foundation.d.ts +0 -16
- package/chips/action/lib/primary-foundation.js +0 -24
- package/chips/action/lib/primary-foundation.js.map +0 -1
- package/chips/action/lib/trailing-action.js.map +0 -1
- package/chips/action/lib/trailing-foundation.d.ts +0 -16
- package/chips/action/lib/trailing-foundation.js +0 -23
- package/chips/action/lib/trailing-foundation.js.map +0 -1
- package/compat/animation/animationframe.js.map +0 -1
- package/compat/base/aria-property.d.ts +0 -39
- package/compat/base/aria-property.js +0 -93
- package/compat/base/aria-property.js.map +0 -1
- package/compat/base/foundation.d.ts +0 -44
- package/compat/base/foundation.js +0 -45
- package/compat/base/foundation.js.map +0 -1
- package/compat/base/observer.d.ts +0 -16
- package/compat/base/observer.js +0 -43
- package/compat/base/observer.js.map +0 -1
- package/compat/base/utils.d.ts +0 -7
- package/compat/base/utils.js +0 -39
- package/compat/base/utils.js.map +0 -1
- package/compat/density/_density.scss +0 -106
- package/compat/dom/keyboard.d.ts +0 -33
- package/compat/dom/keyboard.js +0 -109
- package/compat/dom/keyboard.js.map +0 -1
- package/compat/theme/_color-palette.scss +0 -277
- package/compat/theme/_css.scss +0 -92
- package/compat/theme/_custom-properties.scss +0 -309
- package/compat/theme/_gss.scss +0 -45
- package/compat/theme/_keys.scss +0 -507
- package/compat/theme/_map-ext.scss +0 -68
- package/compat/theme/_replace.scss +0 -108
- package/compat/theme/_selector-ext.scss +0 -522
- package/compat/theme/_shadow-dom.scss +0 -474
- package/compat/theme/_state.scss +0 -752
- package/compat/theme/_theme-color.scss +0 -344
- package/compat/theme/_theme.scss +0 -334
- package/compat/touchtarget/_touch-target.scss +0 -56
- package/fab/lib/_fab-extended-theme.scss +0 -108
- package/fab/lib/_fab-shared-theme.scss +0 -202
- package/fab/lib/_fab-shared.scss +0 -114
- package/fab/lib/_fab-theme.scss +0 -107
- package/field/lib/_content-theme.scss +0 -80
- package/field/lib/_filled-field-theme.scss +0 -382
- package/field/lib/_label-theme.scss +0 -123
- package/field/lib/_outlined-field-theme.scss +0 -311
- package/field/lib/_supporting-text-theme.scss +0 -107
- package/focus/lib/_focus-ring-theme.scss +0 -89
- package/formfield/formfield.js +0 -22
- package/formfield/formfield.js.map +0 -1
- package/formfield/lib/_formfield-theme.scss +0 -41
- package/formfield/lib/_formfield.scss +0 -40
- package/formfield/lib/formfield-styles.css.js +0 -9
- package/formfield/lib/formfield-styles.css.js.map +0 -1
- package/formfield/lib/formfield-styles.scss +0 -16
- package/formfield/lib/formfield.d.ts +0 -22
- package/formfield/lib/formfield.js +0 -73
- package/formfield/lib/formfield.js.map +0 -1
- package/iconbutton/lib/_filled-icon-button-theme.scss +0 -138
- package/iconbutton/lib/_filled-tonal-icon-button-theme.scss +0 -144
- package/iconbutton/lib/_icon-button.scss +0 -91
- package/iconbutton/lib/_outlined-icon-button-theme.scss +0 -187
- package/iconbutton/lib/_standard-icon-button-theme.scss +0 -107
- package/iconbutton/lib/icon-button-styles.css.js +0 -9
- package/iconbutton/lib/icon-button-styles.css.js.map +0 -1
- package/list/lib/_list-theme.scss +0 -51
- package/list/lib/avatar/_list-item-avatar-theme.scss +0 -30
- package/list/lib/divider/_list-divider-theme.scss +0 -30
- package/list/lib/icon/_list-item-icon-theme.scss +0 -32
- package/list/lib/image/_list-item-image-theme.scss +0 -36
- package/list/lib/listitem/_list-item-theme.scss +0 -337
- package/list/lib/video/_list-item-video-theme.scss +0 -36
- package/menu/lib/_menu-theme.scss +0 -118
- package/menusurface/lib/_menu-surface-theme.scss +0 -58
- package/navigationbar/lib/_navigation-bar-theme.scss +0 -87
- package/navigationdrawer/lib/_navigation-drawer-modal-theme.scss +0 -138
- package/navigationdrawer/lib/_navigation-drawer-theme.scss +0 -113
- package/navigationtab/lib/_navigation-tab-theme.scss +0 -343
- package/ripple/lib/_ripple-theme.scss +0 -98
- package/segmentedbutton/lib/_outlined-segmented-button-theme.scss +0 -167
- package/segmentedbutton/lib/_segmented-button-theme.scss +0 -316
- package/segmentedbutton/lib/_segmented-button.scss +0 -159
- package/segmentedbutton/lib/segmented-button-styles.css.js +0 -9
- package/segmentedbutton/lib/segmented-button-styles.css.js.map +0 -1
- package/segmentedbuttonset/lib/_outlined-segmented-button-set-theme.scss +0 -53
- package/segmentedbuttonset/lib/_segmented-button-set-theme.scss +0 -41
- package/segmentedbuttonset/lib/_segmented-button-set.scss +0 -21
- package/switch/lib/_switch-handle-theme.scss +0 -137
- package/switch/lib/_switch-icon-theme.scss +0 -52
- package/switch/lib/_switch-theme.scss +0 -232
- package/switch/lib/_switch-track-theme.scss +0 -117
- package/textfield/lib/_filled-text-field-theme.scss +0 -203
- package/textfield/lib/_icon-theme.scss +0 -100
- package/textfield/lib/_input-theme.scss +0 -91
- package/textfield/lib/_outlined-text-field-theme.scss +0 -186
- package/textfield/lib/_text-field.scss +0 -28
- package/tokens/latest/_md-comp-assist-chip.scss +0 -98
- package/tokens/latest/_md-comp-badge.scss +0 -51
- package/tokens/latest/_md-comp-banner.scss +0 -99
- package/tokens/latest/_md-comp-bottom-app-bar.scss +0 -36
- package/tokens/latest/_md-comp-checkbox.scss +0 -119
- package/tokens/latest/_md-comp-circular-progress-indicator.scss +0 -37
- package/tokens/latest/_md-comp-date-input-modal.scss +0 -76
- package/tokens/latest/_md-comp-date-picker-docked.scss +0 -210
- package/tokens/latest/_md-comp-date-picker-modal.scss +0 -254
- package/tokens/latest/_md-comp-dialog.scss +0 -115
- package/tokens/latest/_md-comp-elevated-button.scss +0 -83
- package/tokens/latest/_md-comp-elevated-card.scss +0 -59
- package/tokens/latest/_md-comp-extended-fab-branded.scss +0 -77
- package/tokens/latest/_md-comp-extended-fab-primary.scss +0 -80
- package/tokens/latest/_md-comp-extended-fab-secondary.scss +0 -83
- package/tokens/latest/_md-comp-extended-fab-surface.scss +0 -81
- package/tokens/latest/_md-comp-extended-fab-tertiary.scss +0 -80
- package/tokens/latest/_md-comp-fab-branded-large.scss +0 -59
- package/tokens/latest/_md-comp-fab-branded.scss +0 -58
- package/tokens/latest/_md-comp-fab-primary-large.scss +0 -61
- package/tokens/latest/_md-comp-fab-primary-small.scss +0 -61
- package/tokens/latest/_md-comp-fab-primary.scss +0 -61
- package/tokens/latest/_md-comp-fab-secondary-large.scss +0 -63
- package/tokens/latest/_md-comp-fab-secondary-small.scss +0 -62
- package/tokens/latest/_md-comp-fab-secondary.scss +0 -63
- package/tokens/latest/_md-comp-fab-surface-large.scss +0 -62
- package/tokens/latest/_md-comp-fab-surface-small.scss +0 -62
- package/tokens/latest/_md-comp-fab-surface.scss +0 -62
- package/tokens/latest/_md-comp-fab-tertiary-large.scss +0 -61
- package/tokens/latest/_md-comp-fab-tertiary-small.scss +0 -61
- package/tokens/latest/_md-comp-fab-tertiary.scss +0 -61
- package/tokens/latest/_md-comp-filled-autocomplete.scss +0 -235
- package/tokens/latest/_md-comp-filled-button.scss +0 -87
- package/tokens/latest/_md-comp-filled-card.scss +0 -59
- package/tokens/latest/_md-comp-filled-icon-button.scss +0 -72
- package/tokens/latest/_md-comp-filled-menu-button.scss +0 -89
- package/tokens/latest/_md-comp-filled-select.scss +0 -243
- package/tokens/latest/_md-comp-filled-text-field.scss +0 -146
- package/tokens/latest/_md-comp-filled-tonal-button.scss +0 -88
- package/tokens/latest/_md-comp-filled-tonal-icon-button.scss +0 -83
- package/tokens/latest/_md-comp-filter-chip.scss +0 -172
- package/tokens/latest/_md-comp-full-screen-dialog.scss +0 -131
- package/tokens/latest/_md-comp-icon-button.scss +0 -66
- package/tokens/latest/_md-comp-input-chip.scss +0 -112
- package/tokens/latest/_md-comp-linear-progress-indicator.scss +0 -39
- package/tokens/latest/_md-comp-list.scss +0 -205
- package/tokens/latest/_md-comp-menu.scss +0 -113
- package/tokens/latest/_md-comp-navigation-bar.scss +0 -97
- package/tokens/latest/_md-comp-navigation-drawer.scss +0 -137
- package/tokens/latest/_md-comp-navigation-rail.scss +0 -132
- package/tokens/latest/_md-comp-outlined-autocomplete.scss +0 -223
- package/tokens/latest/_md-comp-outlined-button.scss +0 -80
- package/tokens/latest/_md-comp-outlined-card.scss +0 -65
- package/tokens/latest/_md-comp-outlined-icon-button.scss +0 -68
- package/tokens/latest/_md-comp-outlined-menu-button.scss +0 -83
- package/tokens/latest/_md-comp-outlined-segmented-button.scss +0 -97
- package/tokens/latest/_md-comp-outlined-select.scss +0 -231
- package/tokens/latest/_md-comp-outlined-text-field.scss +0 -140
- package/tokens/latest/_md-comp-plain-tooltip.scss +0 -46
- package/tokens/latest/_md-comp-primary-navigation-tab.scss +0 -110
- package/tokens/latest/_md-comp-radio-button.scss +0 -58
- package/tokens/latest/_md-comp-rich-tooltip.scss +0 -98
- package/tokens/latest/_md-comp-search-bar.scss +0 -84
- package/tokens/latest/_md-comp-search-view.scss +0 -79
- package/tokens/latest/_md-comp-secondary-navigation-tab.scss +0 -78
- package/tokens/latest/_md-comp-sheet-bottom.scss +0 -41
- package/tokens/latest/_md-comp-sheet-floating.scss +0 -34
- package/tokens/latest/_md-comp-sheet-side.scss +0 -75
- package/tokens/latest/_md-comp-slider.scss +0 -105
- package/tokens/latest/_md-comp-snackbar.scss +0 -91
- package/tokens/latest/_md-comp-standard-menu-button.scss +0 -82
- package/tokens/latest/_md-comp-suggestion-chip.scss +0 -90
- package/tokens/latest/_md-comp-switch.scss +0 -126
- package/tokens/latest/_md-comp-text-button.scss +0 -75
- package/tokens/latest/_md-comp-time-input.scss +0 -184
- package/tokens/latest/_md-comp-time-picker.scss +0 -235
- package/tokens/latest/_md-comp-top-app-bar-large.scss +0 -57
- package/tokens/latest/_md-comp-top-app-bar-medium.scss +0 -56
- package/tokens/latest/_md-comp-top-app-bar-small-centered.scss +0 -60
- package/tokens/latest/_md-comp-top-app-bar-small.scss +0 -58
- package/tokens/latest/_md-ref-palette.scss +0 -95
- package/tokens/latest/_md-ref-typeface.scss +0 -20
- package/tokens/latest/_md-sys-color.scss +0 -1006
- package/tokens/latest/_md-sys-elevation.scss +0 -30
- package/tokens/latest/_md-sys-motion.scss +0 -51
- package/tokens/latest/_md-sys-shape.scss +0 -26
- package/tokens/latest/_md-sys-state.scss +0 -19
- package/tokens/latest/_md-sys-typescale.scss +0 -204
- package/tokens/v0_75/_index.scss +0 -154
- package/tokens/v0_75/_md-comp-assist-chip.scss +0 -98
- package/tokens/v0_75/_md-comp-badge.scss +0 -51
- package/tokens/v0_75/_md-comp-banner.scss +0 -99
- package/tokens/v0_75/_md-comp-bottom-app-bar.scss +0 -36
- package/tokens/v0_75/_md-comp-checkbox.scss +0 -59
- package/tokens/v0_75/_md-comp-circular-progress-indicator.scss +0 -37
- package/tokens/v0_75/_md-comp-dialog.scss +0 -102
- package/tokens/v0_75/_md-comp-elevated-button.scss +0 -83
- package/tokens/v0_75/_md-comp-elevated-card.scss +0 -56
- package/tokens/v0_75/_md-comp-extended-fab-branded.scss +0 -77
- package/tokens/v0_75/_md-comp-extended-fab-primary.scss +0 -80
- package/tokens/v0_75/_md-comp-extended-fab-secondary.scss +0 -83
- package/tokens/v0_75/_md-comp-extended-fab-surface.scss +0 -81
- package/tokens/v0_75/_md-comp-extended-fab-tertiary.scss +0 -80
- package/tokens/v0_75/_md-comp-fab-branded-large.scss +0 -59
- package/tokens/v0_75/_md-comp-fab-branded.scss +0 -58
- package/tokens/v0_75/_md-comp-fab-primary-large.scss +0 -61
- package/tokens/v0_75/_md-comp-fab-primary-small.scss +0 -61
- package/tokens/v0_75/_md-comp-fab-primary.scss +0 -61
- package/tokens/v0_75/_md-comp-fab-secondary-large.scss +0 -63
- package/tokens/v0_75/_md-comp-fab-secondary-small.scss +0 -62
- package/tokens/v0_75/_md-comp-fab-secondary.scss +0 -63
- package/tokens/v0_75/_md-comp-fab-surface-large.scss +0 -62
- package/tokens/v0_75/_md-comp-fab-surface-small.scss +0 -62
- package/tokens/v0_75/_md-comp-fab-surface.scss +0 -62
- package/tokens/v0_75/_md-comp-fab-tertiary-large.scss +0 -61
- package/tokens/v0_75/_md-comp-fab-tertiary-small.scss +0 -61
- package/tokens/v0_75/_md-comp-fab-tertiary.scss +0 -61
- package/tokens/v0_75/_md-comp-filled-button-tonal.scss +0 -84
- package/tokens/v0_75/_md-comp-filled-button.scss +0 -87
- package/tokens/v0_75/_md-comp-filled-card.scss +0 -56
- package/tokens/v0_75/_md-comp-filled-icon-button.scss +0 -72
- package/tokens/v0_75/_md-comp-filled-text-field.scss +0 -142
- package/tokens/v0_75/_md-comp-filled-tonal-button.scss +0 -88
- package/tokens/v0_75/_md-comp-filled-tonal-icon-button.scss +0 -83
- package/tokens/v0_75/_md-comp-filter-chip.scss +0 -172
- package/tokens/v0_75/_md-comp-full-screen-dialog.scss +0 -131
- package/tokens/v0_75/_md-comp-icon-button.scss +0 -79
- package/tokens/v0_75/_md-comp-input-chip.scss +0 -112
- package/tokens/v0_75/_md-comp-linear-progress-indicator.scss +0 -39
- package/tokens/v0_75/_md-comp-list.scss +0 -205
- package/tokens/v0_75/_md-comp-menu.scss +0 -113
- package/tokens/v0_75/_md-comp-navigation-bar.scss +0 -131
- package/tokens/v0_75/_md-comp-navigation-drawer.scss +0 -137
- package/tokens/v0_75/_md-comp-navigation-rail.scss +0 -136
- package/tokens/v0_75/_md-comp-outlined-button.scss +0 -80
- package/tokens/v0_75/_md-comp-outlined-card.scss +0 -62
- package/tokens/v0_75/_md-comp-outlined-icon-button.scss +0 -68
- package/tokens/v0_75/_md-comp-outlined-segmented-button.scss +0 -96
- package/tokens/v0_75/_md-comp-outlined-text-field.scss +0 -136
- package/tokens/v0_75/_md-comp-primary-navigation-tab.scss +0 -116
- package/tokens/v0_75/_md-comp-radio-button.scss +0 -58
- package/tokens/v0_75/_md-comp-rich-tooltip.scss +0 -98
- package/tokens/v0_75/_md-comp-secondary-navigation-tab.scss +0 -75
- package/tokens/v0_75/_md-comp-slider.scss +0 -129
- package/tokens/v0_75/_md-comp-snackbar.scss +0 -77
- package/tokens/v0_75/_md-comp-suggestion-chip.scss +0 -90
- package/tokens/v0_75/_md-comp-switch.scss +0 -92
- package/tokens/v0_75/_md-comp-text-button.scss +0 -75
- package/tokens/v0_75/_md-comp-top-app-bar-compact-centered.scss +0 -53
- package/tokens/v0_75/_md-comp-top-app-bar-compact.scss +0 -43
- package/tokens/v0_75/_md-comp-top-app-bar-large.scss +0 -57
- package/tokens/v0_75/_md-comp-top-app-bar-medium.scss +0 -56
- package/tokens/v0_75/_md-comp-top-app-bar-small-centered.scss +0 -60
- package/tokens/v0_75/_md-comp-top-app-bar-small.scss +0 -58
- package/tokens/v0_75/_md-ref-palette.scss +0 -186
- package/tokens/v0_75/_md-ref-typeface.scss +0 -25
- package/tokens/v0_75/_md-sys-color.scss +0 -86
- package/tokens/v0_75/_md-sys-elevation.scss +0 -30
- package/tokens/v0_75/_md-sys-motion.scss +0 -61
- package/tokens/v0_75/_md-sys-shape.scss +0 -29
- package/tokens/v0_75/_md-sys-state.scss +0 -19
- package/tokens/v0_75/_md-sys-typescale.scss +0 -252
- package/tokens/v0_93/_index.scss +0 -184
- package/tokens/v0_93/_md-comp-assist-chip.scss +0 -98
- package/tokens/v0_93/_md-comp-badge.scss +0 -51
- package/tokens/v0_93/_md-comp-banner.scss +0 -99
- package/tokens/v0_93/_md-comp-bottom-app-bar.scss +0 -36
- package/tokens/v0_93/_md-comp-checkbox.scss +0 -119
- package/tokens/v0_93/_md-comp-circular-progress-indicator.scss +0 -37
- package/tokens/v0_93/_md-comp-date-input-modal.scss +0 -76
- package/tokens/v0_93/_md-comp-date-picker-docked.scss +0 -210
- package/tokens/v0_93/_md-comp-date-picker-modal.scss +0 -254
- package/tokens/v0_93/_md-comp-dialog.scss +0 -101
- package/tokens/v0_93/_md-comp-elevated-button.scss +0 -83
- package/tokens/v0_93/_md-comp-elevated-card.scss +0 -59
- package/tokens/v0_93/_md-comp-extended-fab-branded.scss +0 -77
- package/tokens/v0_93/_md-comp-extended-fab-primary.scss +0 -80
- package/tokens/v0_93/_md-comp-extended-fab-secondary.scss +0 -83
- package/tokens/v0_93/_md-comp-extended-fab-surface.scss +0 -81
- package/tokens/v0_93/_md-comp-extended-fab-tertiary.scss +0 -80
- package/tokens/v0_93/_md-comp-fab-branded-large.scss +0 -59
- package/tokens/v0_93/_md-comp-fab-branded.scss +0 -58
- package/tokens/v0_93/_md-comp-fab-primary-large.scss +0 -61
- package/tokens/v0_93/_md-comp-fab-primary-small.scss +0 -61
- package/tokens/v0_93/_md-comp-fab-primary.scss +0 -61
- package/tokens/v0_93/_md-comp-fab-secondary-large.scss +0 -63
- package/tokens/v0_93/_md-comp-fab-secondary-small.scss +0 -62
- package/tokens/v0_93/_md-comp-fab-secondary.scss +0 -63
- package/tokens/v0_93/_md-comp-fab-surface-large.scss +0 -62
- package/tokens/v0_93/_md-comp-fab-surface-small.scss +0 -62
- package/tokens/v0_93/_md-comp-fab-surface.scss +0 -62
- package/tokens/v0_93/_md-comp-fab-tertiary-large.scss +0 -61
- package/tokens/v0_93/_md-comp-fab-tertiary-small.scss +0 -61
- package/tokens/v0_93/_md-comp-fab-tertiary.scss +0 -61
- package/tokens/v0_93/_md-comp-filled-autocomplete.scss +0 -235
- package/tokens/v0_93/_md-comp-filled-button.scss +0 -87
- package/tokens/v0_93/_md-comp-filled-card.scss +0 -59
- package/tokens/v0_93/_md-comp-filled-icon-button.scss +0 -72
- package/tokens/v0_93/_md-comp-filled-menu-button.scss +0 -89
- package/tokens/v0_93/_md-comp-filled-select.scss +0 -243
- package/tokens/v0_93/_md-comp-filled-text-field.scss +0 -146
- package/tokens/v0_93/_md-comp-filled-tonal-button.scss +0 -88
- package/tokens/v0_93/_md-comp-filled-tonal-icon-button.scss +0 -83
- package/tokens/v0_93/_md-comp-filter-chip.scss +0 -172
- package/tokens/v0_93/_md-comp-full-screen-dialog.scss +0 -131
- package/tokens/v0_93/_md-comp-icon-button.scss +0 -66
- package/tokens/v0_93/_md-comp-input-chip.scss +0 -112
- package/tokens/v0_93/_md-comp-linear-progress-indicator.scss +0 -39
- package/tokens/v0_93/_md-comp-list.scss +0 -205
- package/tokens/v0_93/_md-comp-menu.scss +0 -113
- package/tokens/v0_93/_md-comp-navigation-bar.scss +0 -97
- package/tokens/v0_93/_md-comp-navigation-drawer.scss +0 -137
- package/tokens/v0_93/_md-comp-navigation-rail.scss +0 -132
- package/tokens/v0_93/_md-comp-outlined-autocomplete.scss +0 -223
- package/tokens/v0_93/_md-comp-outlined-button.scss +0 -80
- package/tokens/v0_93/_md-comp-outlined-card.scss +0 -65
- package/tokens/v0_93/_md-comp-outlined-icon-button.scss +0 -68
- package/tokens/v0_93/_md-comp-outlined-menu-button.scss +0 -83
- package/tokens/v0_93/_md-comp-outlined-segmented-button.scss +0 -97
- package/tokens/v0_93/_md-comp-outlined-select.scss +0 -231
- package/tokens/v0_93/_md-comp-outlined-text-field.scss +0 -140
- package/tokens/v0_93/_md-comp-plain-tooltip.scss +0 -46
- package/tokens/v0_93/_md-comp-primary-navigation-tab.scss +0 -110
- package/tokens/v0_93/_md-comp-radio-button.scss +0 -58
- package/tokens/v0_93/_md-comp-rich-tooltip.scss +0 -98
- package/tokens/v0_93/_md-comp-search-bar.scss +0 -84
- package/tokens/v0_93/_md-comp-search-view.scss +0 -79
- package/tokens/v0_93/_md-comp-secondary-navigation-tab.scss +0 -78
- package/tokens/v0_93/_md-comp-sheet-bottom.scss +0 -41
- package/tokens/v0_93/_md-comp-sheet-side.scss +0 -75
- package/tokens/v0_93/_md-comp-slider.scss +0 -105
- package/tokens/v0_93/_md-comp-snackbar.scss +0 -91
- package/tokens/v0_93/_md-comp-standard-menu-button.scss +0 -82
- package/tokens/v0_93/_md-comp-suggestion-chip.scss +0 -90
- package/tokens/v0_93/_md-comp-switch.scss +0 -126
- package/tokens/v0_93/_md-comp-text-button.scss +0 -75
- package/tokens/v0_93/_md-comp-time-input.scss +0 -184
- package/tokens/v0_93/_md-comp-time-picker.scss +0 -235
- package/tokens/v0_93/_md-comp-top-app-bar-large.scss +0 -57
- package/tokens/v0_93/_md-comp-top-app-bar-medium.scss +0 -56
- package/tokens/v0_93/_md-comp-top-app-bar-small-centered.scss +0 -60
- package/tokens/v0_93/_md-comp-top-app-bar-small.scss +0 -58
- package/tokens/v0_93/_md-ref-palette.scss +0 -95
- package/tokens/v0_93/_md-ref-typeface.scss +0 -20
- package/tokens/v0_93/_md-sys-color.scss +0 -1006
- package/tokens/v0_93/_md-sys-elevation.scss +0 -30
- package/tokens/v0_93/_md-sys-motion.scss +0 -51
- package/tokens/v0_93/_md-sys-shape.scss +0 -26
- package/tokens/v0_93/_md-sys-state.scss +0 -19
- package/tokens/v0_93/_md-sys-typescale.scss +0 -204
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-surface-styles.css.js","sourceRoot":"","sources":["menu-surface-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
|
|
1
|
+
{"version":3,"file":"menu-surface-styles.css.js","sourceRoot":"","sources":["menu-surface-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{--_container-elevation-shadow: var(--md-menu-surface-container-elevation-shadow, 0px 1px 2px 0px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.3), 0px 2px 6px 2px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.15));--_container-shape: var(--md-menu-surface-container-shape, 4px)}.md3-menu-surface{border-radius:var(--_container-shape);box-sizing:border-box;display:none;opacity:0;overflow:auto;margin:0;max-height:calc(100vh - 32px);max-width:calc(100vw - 32px);padding:0;position:absolute;transform:scale(1);transform-origin:top left;transition:opacity .03s linear,transform .12s cubic-bezier(0, 0, 0.2, 1),height 250ms cubic-bezier(0, 0, 0.2, 1);will-change:transform,opacity;z-index:8;box-shadow:var(--_container-elevation-shadow)}.md3-menu-surface .md3-elevation-overlay{z-index:0}.md3-menu-surface:focus{outline:none}.md3-menu-surface--animating-open{display:inline-block;opacity:0;transform:scale(0.8)}.md3-menu-surface--open{display:inline-block;opacity:1;transform:scale(1)}.md3-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity .075s linear}.md3-menu-surface--anchor{overflow:visible;position:relative}.md3-menu-surface--fixed{position:fixed}.md3-menu-surface--fullwidth{width:100%}.md3-menu-surface--is-open-below{border-top-left-radius:0px;border-top-right-radius:0px}/*# sourceMappingURL=menu-surface-styles.css.map */\n`;\n "]}
|
|
@@ -3,14 +3,6 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
-
// stylelint-disable selector-class-pattern --
|
|
7
|
-
// Selector '.md3-*' should only be used in this project.
|
|
8
|
-
|
|
9
6
|
@use './menu-surface';
|
|
10
|
-
@use './menu-surface-theme';
|
|
11
|
-
|
|
12
|
-
@include menu-surface.static-styles();
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
@include menu-surface-theme.theme-styles(menu-surface-theme.$light-theme);
|
|
16
|
-
}
|
|
8
|
+
@include menu-surface.styles;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { LitElement } from 'lit';
|
|
6
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
7
|
+
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
7
8
|
import { MDCMenuSurfaceAdapter } from './adapter.js';
|
|
8
9
|
import { Corner as CornerEnum } from './constants.js';
|
|
9
10
|
import { MDCMenuSurfaceFoundation } from './foundation.js';
|
|
@@ -28,7 +29,6 @@ export declare abstract class MenuSurface extends LitElement {
|
|
|
28
29
|
open: boolean;
|
|
29
30
|
stayOpenOnBodyClick: boolean;
|
|
30
31
|
skipRestoreFocus: boolean;
|
|
31
|
-
protected bitwiseCorner: CornerEnum;
|
|
32
32
|
protected previousFlipMenuHorizontally: boolean;
|
|
33
33
|
/**
|
|
34
34
|
* Whether to align the menu surface to the opposite side of the default
|
|
@@ -47,6 +47,9 @@ export declare abstract class MenuSurface extends LitElement {
|
|
|
47
47
|
protected previousAnchor: HTMLElement | null;
|
|
48
48
|
protected onBodyClickBound: (evt: MouseEvent) => void;
|
|
49
49
|
render(): import("lit-html").TemplateResult<1>;
|
|
50
|
+
/** @soyTemplate */
|
|
51
|
+
protected getRenderClasses(): ClassInfo;
|
|
52
|
+
protected updated(changedProperties: PropertyValues<MenuSurface>): void;
|
|
50
53
|
protected firstUpdated(): void;
|
|
51
54
|
createAdapter(): MDCMenuSurfaceAdapter;
|
|
52
55
|
protected onKeydown(evt: KeyboardEvent): void;
|
|
@@ -6,13 +6,11 @@
|
|
|
6
6
|
import { __decorate, __metadata } from "tslib";
|
|
7
7
|
// Style preference for leading underscores.
|
|
8
8
|
// tslint:disable:strip-private-property-underscore
|
|
9
|
-
// TODO(b/239222919): remove compat dependencies
|
|
10
|
-
import { observer } from '@material/web/compat/base/observer.js';
|
|
11
|
-
import { deepActiveElementPath, doesElementContainFocus } from '@material/web/compat/base/utils.js';
|
|
12
9
|
import { html, LitElement } from 'lit';
|
|
13
10
|
import { property, query, state } from 'lit/decorators.js';
|
|
14
11
|
import { classMap } from 'lit/directives/class-map.js';
|
|
15
12
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
13
|
+
import { isRtl } from '../../controller/is-rtl.js';
|
|
16
14
|
import { Corner as CornerEnum } from './constants.js';
|
|
17
15
|
import { MDCMenuSurfaceFoundation } from './foundation.js';
|
|
18
16
|
// tslint:disable:no-bitwise
|
|
@@ -44,7 +42,6 @@ export class MenuSurface extends LitElement {
|
|
|
44
42
|
this.open = false;
|
|
45
43
|
this.stayOpenOnBodyClick = false;
|
|
46
44
|
this.skipRestoreFocus = false;
|
|
47
|
-
this.bitwiseCorner = CornerEnum.TOP_START;
|
|
48
45
|
this.previousFlipMenuHorizontally = false;
|
|
49
46
|
/**
|
|
50
47
|
* Whether to align the menu surface to the opposite side of the default
|
|
@@ -64,10 +61,6 @@ export class MenuSurface extends LitElement {
|
|
|
64
61
|
this.onBodyClickBound = () => undefined;
|
|
65
62
|
}
|
|
66
63
|
render() {
|
|
67
|
-
const classes = {
|
|
68
|
-
'md3-menu-surface--fixed': this.fixed,
|
|
69
|
-
'md3-menu-surface--fullwidth': this.fullwidth,
|
|
70
|
-
};
|
|
71
64
|
const styles = {
|
|
72
65
|
'top': this.styleTop,
|
|
73
66
|
'left': this.styleLeft,
|
|
@@ -78,7 +71,7 @@ export class MenuSurface extends LitElement {
|
|
|
78
71
|
};
|
|
79
72
|
return html `
|
|
80
73
|
<div
|
|
81
|
-
class="md3-menu-surface ${classMap(
|
|
74
|
+
class="md3-menu-surface ${classMap(this.getRenderClasses())}"
|
|
82
75
|
style="${styleMap(styles)}"
|
|
83
76
|
@keydown=${this.onKeydown}
|
|
84
77
|
@opened=${this.registerBodyClick}
|
|
@@ -86,6 +79,49 @@ export class MenuSurface extends LitElement {
|
|
|
86
79
|
<slot></slot>
|
|
87
80
|
</div>`;
|
|
88
81
|
}
|
|
82
|
+
/** @soyTemplate */
|
|
83
|
+
getRenderClasses() {
|
|
84
|
+
return {
|
|
85
|
+
'md3-menu-surface--fixed': this.fixed,
|
|
86
|
+
'md3-menu-surface--fullwidth': this.fullwidth,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
updated(changedProperties) {
|
|
90
|
+
if (changedProperties.has('absolute') && !this.fixed) {
|
|
91
|
+
this.mdcFoundation.setIsHoisted(this.absolute);
|
|
92
|
+
}
|
|
93
|
+
if (changedProperties.has('fixed') && !this.absolute) {
|
|
94
|
+
this.mdcFoundation.setFixedPosition(this.fixed);
|
|
95
|
+
}
|
|
96
|
+
if ((changedProperties.has('x') || changedProperties.has('y')) &&
|
|
97
|
+
this.x !== null && this.y !== null) {
|
|
98
|
+
this.mdcFoundation.setAbsolutePosition(this.x, this.y);
|
|
99
|
+
this.mdcFoundation.setAnchorMargin({ left: this.x, top: this.y, right: -this.y, bottom: this.y });
|
|
100
|
+
}
|
|
101
|
+
if (changedProperties.has('quick')) {
|
|
102
|
+
this.mdcFoundation.setQuickOpen(this.quick);
|
|
103
|
+
}
|
|
104
|
+
if (changedProperties.has('open')) {
|
|
105
|
+
const wasOpen = changedProperties.get('open');
|
|
106
|
+
if (this.open) {
|
|
107
|
+
this.mdcFoundation.open();
|
|
108
|
+
// wasOpen helps with first render (when it is `undefined`) perf
|
|
109
|
+
}
|
|
110
|
+
else if (wasOpen !== undefined) {
|
|
111
|
+
this.mdcFoundation.close(this.skipRestoreFocus);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
if (changedProperties.has('flipMenuHorizontally')) {
|
|
115
|
+
if (this.previousFlipMenuHorizontally !== this.flipMenuHorizontally) {
|
|
116
|
+
this.mdcFoundation.flipCornerHorizontally();
|
|
117
|
+
}
|
|
118
|
+
this.previousFlipMenuHorizontally = this.flipMenuHorizontally;
|
|
119
|
+
}
|
|
120
|
+
if (changedProperties.has('corner') && this.corner) {
|
|
121
|
+
const bitwiseCorner = stringToCorner[this.corner];
|
|
122
|
+
this.mdcFoundation.setAnchorCorner(bitwiseCorner);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
89
125
|
firstUpdated() {
|
|
90
126
|
if (this.mdcFoundation !== undefined) {
|
|
91
127
|
this.mdcFoundation.destroy();
|
|
@@ -128,12 +164,7 @@ export class MenuSurface extends LitElement {
|
|
|
128
164
|
this.mdcRoot.dispatchEvent(ev);
|
|
129
165
|
},
|
|
130
166
|
isElementInContainer: () => false,
|
|
131
|
-
isRtl: () =>
|
|
132
|
-
if (this.mdcRoot) {
|
|
133
|
-
return getComputedStyle(this.mdcRoot).direction === 'rtl';
|
|
134
|
-
}
|
|
135
|
-
return false;
|
|
136
|
-
},
|
|
167
|
+
isRtl: () => this.mdcRoot ? isRtl(this.mdcRoot) : false,
|
|
137
168
|
setTransformOrigin: (origin) => {
|
|
138
169
|
const root = this.mdcRoot;
|
|
139
170
|
if (!root) {
|
|
@@ -142,15 +173,10 @@ export class MenuSurface extends LitElement {
|
|
|
142
173
|
this.styleTransformOrigin = origin;
|
|
143
174
|
},
|
|
144
175
|
isFocused: () => {
|
|
145
|
-
return
|
|
176
|
+
return this.matches(':focus-within');
|
|
146
177
|
},
|
|
147
178
|
saveFocus: () => {
|
|
148
|
-
|
|
149
|
-
const pathLength = activeElementPath.length;
|
|
150
|
-
if (!pathLength) {
|
|
151
|
-
this.previouslyFocused = null;
|
|
152
|
-
}
|
|
153
|
-
this.previouslyFocused = activeElementPath[pathLength - 1];
|
|
179
|
+
this.previouslyFocused = document.activeElement;
|
|
154
180
|
},
|
|
155
181
|
restoreFocus: () => {
|
|
156
182
|
if (!this.previouslyFocused) {
|
|
@@ -250,11 +276,6 @@ __decorate([
|
|
|
250
276
|
], MenuSurface.prototype, "slotElement", void 0);
|
|
251
277
|
__decorate([
|
|
252
278
|
property({ type: Boolean }),
|
|
253
|
-
observer(function (isAbsolute) {
|
|
254
|
-
if (this.mdcFoundation && !this.fixed) {
|
|
255
|
-
this.mdcFoundation.setIsHoisted(isAbsolute);
|
|
256
|
-
}
|
|
257
|
-
}),
|
|
258
279
|
__metadata("design:type", Object)
|
|
259
280
|
], MenuSurface.prototype, "absolute", void 0);
|
|
260
281
|
__decorate([
|
|
@@ -263,55 +284,22 @@ __decorate([
|
|
|
263
284
|
], MenuSurface.prototype, "fullwidth", void 0);
|
|
264
285
|
__decorate([
|
|
265
286
|
property({ type: Boolean }),
|
|
266
|
-
observer(function (isFixed) {
|
|
267
|
-
if (this.mdcFoundation && !this.absolute) {
|
|
268
|
-
this.mdcFoundation.setFixedPosition(isFixed);
|
|
269
|
-
}
|
|
270
|
-
}),
|
|
271
287
|
__metadata("design:type", Object)
|
|
272
288
|
], MenuSurface.prototype, "fixed", void 0);
|
|
273
289
|
__decorate([
|
|
274
290
|
property({ type: Number }),
|
|
275
|
-
observer(function (value) {
|
|
276
|
-
if (this.mdcFoundation && this.y !== null && value !== null) {
|
|
277
|
-
this.mdcFoundation.setAbsolutePosition(value, this.y);
|
|
278
|
-
this.mdcFoundation.setAnchorMargin({ left: value, top: this.y, right: -value, bottom: this.y });
|
|
279
|
-
}
|
|
280
|
-
}),
|
|
281
291
|
__metadata("design:type", Number)
|
|
282
292
|
], MenuSurface.prototype, "x", void 0);
|
|
283
293
|
__decorate([
|
|
284
294
|
property({ type: Number }),
|
|
285
|
-
observer(function (value) {
|
|
286
|
-
if (this.mdcFoundation && this.x !== null && value !== null) {
|
|
287
|
-
this.mdcFoundation.setAbsolutePosition(this.x, value);
|
|
288
|
-
this.mdcFoundation.setAnchorMargin({ left: this.x, top: value, right: -this.x, bottom: value });
|
|
289
|
-
}
|
|
290
|
-
}),
|
|
291
295
|
__metadata("design:type", Number)
|
|
292
296
|
], MenuSurface.prototype, "y", void 0);
|
|
293
297
|
__decorate([
|
|
294
298
|
property({ type: Boolean }),
|
|
295
|
-
observer(function (value) {
|
|
296
|
-
if (this.mdcFoundation) {
|
|
297
|
-
this.mdcFoundation.setQuickOpen(value);
|
|
298
|
-
}
|
|
299
|
-
}),
|
|
300
299
|
__metadata("design:type", Object)
|
|
301
300
|
], MenuSurface.prototype, "quick", void 0);
|
|
302
301
|
__decorate([
|
|
303
302
|
property({ type: Boolean, reflect: true }),
|
|
304
|
-
observer(function (isOpen, wasOpen) {
|
|
305
|
-
if (this.mdcFoundation) {
|
|
306
|
-
if (isOpen) {
|
|
307
|
-
this.mdcFoundation.open();
|
|
308
|
-
// wasOpen helps with first render (when it is `undefined`) perf
|
|
309
|
-
}
|
|
310
|
-
else if (wasOpen !== undefined) {
|
|
311
|
-
this.mdcFoundation.close(this.skipRestoreFocus);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}),
|
|
315
303
|
__metadata("design:type", Object)
|
|
316
304
|
], MenuSurface.prototype, "open", void 0);
|
|
317
305
|
__decorate([
|
|
@@ -323,40 +311,11 @@ __decorate([
|
|
|
323
311
|
__metadata("design:type", Object)
|
|
324
312
|
], MenuSurface.prototype, "skipRestoreFocus", void 0);
|
|
325
313
|
__decorate([
|
|
326
|
-
state(),
|
|
327
|
-
observer(function (value) {
|
|
328
|
-
if (this.mdcFoundation) {
|
|
329
|
-
if (value) {
|
|
330
|
-
this.mdcFoundation.setAnchorCorner(value);
|
|
331
|
-
}
|
|
332
|
-
else {
|
|
333
|
-
this.mdcFoundation.setAnchorCorner(value);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}),
|
|
337
|
-
__metadata("design:type", Number)
|
|
338
|
-
], MenuSurface.prototype, "bitwiseCorner", void 0);
|
|
339
|
-
__decorate([
|
|
340
|
-
observer(function (flipMenuHorizontally) {
|
|
341
|
-
if (!this.mdcFoundation)
|
|
342
|
-
return;
|
|
343
|
-
if (this.previousFlipMenuHorizontally !== flipMenuHorizontally) {
|
|
344
|
-
this.mdcFoundation.flipCornerHorizontally();
|
|
345
|
-
}
|
|
346
|
-
this.previousFlipMenuHorizontally = flipMenuHorizontally;
|
|
347
|
-
}),
|
|
348
314
|
property({ type: Boolean }),
|
|
349
315
|
__metadata("design:type", Object)
|
|
350
316
|
], MenuSurface.prototype, "flipMenuHorizontally", void 0);
|
|
351
317
|
__decorate([
|
|
352
318
|
property({ type: String }),
|
|
353
|
-
observer(function (value) {
|
|
354
|
-
if (this.mdcFoundation) {
|
|
355
|
-
if (value) {
|
|
356
|
-
this.bitwiseCorner = stringToCorner[value];
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}),
|
|
360
319
|
__metadata("design:type", String)
|
|
361
320
|
], MenuSurface.prototype, "corner", void 0);
|
|
362
321
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-surface.js","sourceRoot":"","sources":["menu-surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,4CAA4C;AAC5C,mDAAmD;AAEnD,gDAAgD;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAC,qBAAqB,EAAE,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAClG,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,KAAK,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAGrD,OAAO,EAAC,MAAM,IAAI,UAAU,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,wBAAwB,EAAC,MAAM,iBAAiB,CAAC;AAKzD,4BAA4B;AAE5B,gCAAgC;AAChC,MAAM,cAAc,GAAG;IACrB,UAAU,EAAE,UAAU,CAAC,QAAQ;IAC/B,WAAW,EAAE,UAAU,CAAC,SAAS;IACjC,aAAa,EAAE,UAAU,CAAC,WAAW;IACrC,cAAc,EAAE,UAAU,CAAC,YAAY;IACvC,WAAW,EAAE,UAAU,CAAC,SAAS;IACjC,SAAS,EAAE,UAAU,CAAC,OAAO;IAC7B,cAAc,EAAE,UAAU,CAAC,YAAY;IACvC,YAAY,EAAE,UAAU,CAAC,UAAU;CACpC,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAgB,WAAY,SAAQ,UAAU;IAApD;;QAaE,aAAQ,GAAG,KAAK,CAAC;QAEU,cAAS,GAAG,KAAK,CAAC;QAQ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AI,CAAC,aAAa,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;aAC3C;SACF;IACH,CAAC,CAAC;;kDACyD;AAiB3D;IATC,QAAQ,CAAC,UAA4B,oBAA6B;QACjE,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE,OAAO;QAEhC,IAAI,IAAI,CAAC,4BAA4B,KAAK,oBAAoB,EAAE;YAC9D,IAAI,CAAC,aAAa,CAAC,sBAAsB,EAAE,CAAC;SAC7C;QACD,IAAI,CAAC,4BAA4B,GAAG,oBAAoB,CAAC;IAC3D,CAAC,CAAC;IACD,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;yDACG;AAU7B;IARC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;IACxB,QAAQ,CAAC,UAA4B,KAAa;QACjD,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI,KAAK,EAAE;gBACT,IAAI,CAAC,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;aAC5C;SACF;IACH,CAAC,CAAC;;2CAC8B;AAEvB;IAAR,KAAK,EAAE;;6CAAyB;AACxB;IAAR,KAAK,EAAE;;8CAA0B;AACzB;IAAR,KAAK,EAAE;;+CAA2B;AAC1B;IAAR,KAAK,EAAE;;gDAA4B;AAC3B;IAAR,KAAK,EAAE;;mDAA+B;AAC9B;IAAR,KAAK,EAAE;;yDAAqC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Style preference for leading underscores.\n// tslint:disable:strip-private-property-underscore\n\n// TODO(b/239222919): remove compat dependencies\nimport {observer} from '@material/web/compat/base/observer.js';\nimport {deepActiveElementPath, doesElementContainFocus} from '@material/web/compat/base/utils.js';\nimport {html, LitElement} from 'lit';\nimport {property, query, state} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {styleMap} from 'lit/directives/style-map.js';\n\nimport {MDCMenuSurfaceAdapter} from './adapter.js';\nimport {Corner as CornerEnum} from './constants.js';\nimport {MDCMenuSurfaceFoundation} from './foundation.js';\n\nexport type Corner = keyof typeof CornerEnum;\nexport type AnchorableElement = HTMLElement&{anchor: Element | null};\n\n// tslint:disable:no-bitwise\n\n// required for closure compiler\nconst stringToCorner = {\n 'TOP_LEFT': CornerEnum.TOP_LEFT,\n 'TOP_RIGHT': CornerEnum.TOP_RIGHT,\n 'BOTTOM_LEFT': CornerEnum.BOTTOM_LEFT,\n 'BOTTOM_RIGHT': CornerEnum.BOTTOM_RIGHT,\n 'TOP_START': CornerEnum.TOP_START,\n 'TOP_END': CornerEnum.TOP_END,\n 'BOTTOM_START': CornerEnum.BOTTOM_START,\n 'BOTTOM_END': CornerEnum.BOTTOM_END,\n};\n\n/**\n * @fires opened\n * @fires closed\n */\nexport abstract class MenuSurface extends LitElement {\n protected mdcFoundation!: MDCMenuSurfaceFoundation;\n\n @query('.md3-menu-surface') mdcRoot!: HTMLDivElement;\n\n @query('slot') slotElement!: HTMLSlotElement|null;\n\n @property({type: Boolean})\n @observer(function(this: MenuSurface, isAbsolute: boolean) {\n if (this.mdcFoundation && !this.fixed) {\n this.mdcFoundation.setIsHoisted(isAbsolute);\n }\n })\n absolute = false;\n\n @property({type: Boolean}) fullwidth = false;\n\n @property({type: Boolean})\n @observer(function(this: MenuSurface, isFixed: boolean) {\n if (this.mdcFoundation && !this.absolute) {\n this.mdcFoundation.setFixedPosition(isFixed);\n }\n })\n fixed = false;\n\n @property({type: Number})\n @observer(function(this: MenuSurface, value: number|null) {\n if (this.mdcFoundation && this.y !== null && value !== null) {\n this.mdcFoundation.setAbsolutePosition(value, this.y);\n this.mdcFoundation.setAnchorMargin(\n {left: value, top: this.y, right: -value, bottom: this.y});\n }\n })\n x: number|null = null;\n\n @property({type: Number})\n @observer(function(this: MenuSurface, value: number|null) {\n if (this.mdcFoundation && this.x !== null && value !== null) {\n this.mdcFoundation.setAbsolutePosition(this.x, value);\n this.mdcFoundation.setAnchorMargin(\n {left: this.x, top: value, right: -this.x, bottom: value});\n }\n })\n y: number|null = null;\n\n // must be defined before open or else race condition in foundation occurs.\n @property({type: Boolean})\n @observer(function(this: MenuSurface, value: boolean) {\n if (this.mdcFoundation) {\n this.mdcFoundation.setQuickOpen(value);\n }\n })\n quick = false;\n\n @property({type: Boolean, reflect: true})\n @observer(function(this: MenuSurface, isOpen: boolean, wasOpen: boolean) {\n if (this.mdcFoundation) {\n if (isOpen) {\n this.mdcFoundation.open();\n // wasOpen helps with first render (when it is `undefined`) perf\n } else if (wasOpen !== undefined) {\n this.mdcFoundation.close(this.skipRestoreFocus);\n }\n }\n })\n open = false;\n\n @property({type: Boolean}) stayOpenOnBodyClick = false;\n\n @property({type: Boolean}) skipRestoreFocus = false;\n\n @state()\n @observer(function(this: MenuSurface, value: CornerEnum) {\n if (this.mdcFoundation) {\n if (value) {\n this.mdcFoundation.setAnchorCorner(value);\n } else {\n this.mdcFoundation.setAnchorCorner(value);\n }\n }\n })\n protected bitwiseCorner: CornerEnum = CornerEnum.TOP_START;\n\n protected previousFlipMenuHorizontally = false;\n\n /**\n * Whether to align the menu surface to the opposite side of the default\n * alignment.\n */\n @observer(function(this: MenuSurface, flipMenuHorizontally: boolean) {\n if (!this.mdcFoundation) return;\n\n if (this.previousFlipMenuHorizontally !== flipMenuHorizontally) {\n this.mdcFoundation.flipCornerHorizontally();\n }\n this.previousFlipMenuHorizontally = flipMenuHorizontally;\n })\n @property({type: Boolean})\n flipMenuHorizontally = false;\n\n @property({type: String})\n @observer(function(this: MenuSurface, value: Corner) {\n if (this.mdcFoundation) {\n if (value) {\n this.bitwiseCorner = stringToCorner[value];\n }\n }\n })\n corner: Corner = 'BOTTOM_START';\n\n @state() protected styleTop = '';\n @state() protected styleLeft = '';\n @state() protected styleRight = '';\n @state() protected styleBottom = '';\n @state() protected styleMaxHeight = '';\n @state() protected styleTransformOrigin = '';\n\n anchor: HTMLElement|null = null;\n\n protected previouslyFocused: HTMLElement|Element|null = null;\n protected previousAnchor: HTMLElement|null = null;\n protected onBodyClickBound: (evt: MouseEvent) => void = () => undefined;\n\n override render() {\n const classes = {\n 'md3-menu-surface--fixed': this.fixed,\n 'md3-menu-surface--fullwidth': this.fullwidth,\n };\n\n const styles = {\n 'top': this.styleTop,\n 'left': this.styleLeft,\n 'right': this.styleRight,\n 'bottom': this.styleBottom,\n 'max-height': this.styleMaxHeight,\n 'transform-origin': this.styleTransformOrigin,\n };\n\n return html`\n <div\n class=\"md3-menu-surface ${classMap(classes)}\"\n style=\"${styleMap(styles)}\"\n @keydown=${this.onKeydown}\n @opened=${this.registerBodyClick}\n @closed=${this.deregisterBodyClick}>\n <slot></slot>\n </div>`;\n }\n\n protected override firstUpdated() {\n if (this.mdcFoundation !== undefined) {\n this.mdcFoundation.destroy();\n }\n\n this.mdcFoundation = new MDCMenuSurfaceFoundation(this.createAdapter());\n this.mdcFoundation.init();\n }\n\n createAdapter(): MDCMenuSurfaceAdapter {\n return {\n addClass: (className: string) => {\n this.mdcRoot.classList.add(className);\n },\n removeClass: (className: string) => {\n this.mdcRoot.classList.remove(className);\n },\n hasClass: (className: string) =>\n this.mdcRoot.classList.contains(className),\n hasAnchor: () => {\n return !!this.anchor;\n },\n notifyClose: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closed', init);\n this.open = false;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyClosing: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closing', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpen: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opened', init);\n this.open = true;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpening: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opening', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n isElementInContainer: () => false,\n isRtl: () => {\n if (this.mdcRoot) {\n return getComputedStyle(this.mdcRoot).direction === 'rtl';\n }\n\n return false;\n },\n setTransformOrigin: (origin) => {\n const root = this.mdcRoot;\n if (!root) {\n return;\n }\n\n this.styleTransformOrigin = origin;\n },\n isFocused: () => {\n return doesElementContainFocus(this);\n },\n saveFocus: () => {\n const activeElementPath = deepActiveElementPath();\n const pathLength = activeElementPath.length;\n\n if (!pathLength) {\n this.previouslyFocused = null;\n }\n\n this.previouslyFocused = activeElementPath[pathLength - 1];\n },\n restoreFocus: () => {\n if (!this.previouslyFocused) {\n return;\n }\n\n if ('focus' in this.previouslyFocused) {\n this.previouslyFocused.focus();\n }\n },\n getInnerDimensions: () => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return {width: 0, height: 0};\n }\n\n return {width: mdcRoot.offsetWidth, height: mdcRoot.offsetHeight};\n },\n getAnchorDimensions: () => {\n const anchorElement = this.anchor;\n\n return anchorElement ? anchorElement.getBoundingClientRect() : null;\n },\n getBodyDimensions: () => {\n return {\n width: document.body.clientWidth,\n height: document.body.clientHeight,\n };\n },\n getWindowDimensions: () => {\n return {\n width: window.innerWidth,\n height: window.innerHeight,\n };\n },\n getWindowScroll: () => {\n return {\n x: window.pageXOffset,\n y: window.pageYOffset,\n };\n },\n setPosition: (position) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n this.styleLeft = 'left' in position ? `${position.left}px` : '';\n this.styleRight = 'right' in position ? `${position.right}px` : '';\n this.styleTop = 'top' in position ? `${position.top}px` : '';\n this.styleBottom = 'bottom' in position ? `${position.bottom}px` : '';\n },\n setMaxHeight: async (height) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n // must set both for IE support as IE will not set a var\n this.styleMaxHeight = height;\n await this.updateComplete;\n this.styleMaxHeight = `var(--md3-menu-max-height, ${height})`;\n },\n };\n }\n\n protected onKeydown(evt: KeyboardEvent) {\n if (this.mdcFoundation) {\n this.mdcFoundation.handleKeydown(evt);\n }\n }\n\n protected onBodyClick(evt: MouseEvent) {\n if (this.stayOpenOnBodyClick) {\n return;\n }\n const path = evt.composedPath();\n if (path.indexOf(this) === -1) {\n this.close();\n }\n }\n\n protected registerBodyClick() {\n this.onBodyClickBound = this.onBodyClick.bind(this);\n // capture otherwise listener closes menu after quick menu opens\n document.body.addEventListener(\n 'click', this.onBodyClickBound, {passive: true, capture: true});\n }\n\n protected deregisterBodyClick() {\n document.body.removeEventListener(\n 'click', this.onBodyClickBound, {capture: true});\n }\n\n close() {\n this.open = false;\n }\n\n show() {\n this.open = true;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"menu-surface.js","sourceRoot":"","sources":["menu-surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,4CAA4C;AAC5C,mDAAmD;AAEnD,OAAO,EAAC,IAAI,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAY,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,OAAO,EAAC,MAAM,IAAI,UAAU,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,wBAAwB,EAAC,MAAM,iBAAiB,CAAC;AAKzD,4BAA4B;AAE5B,gCAAgC;AAChC,MAAM,cAAc,GAAG;IACrB,UAAU,EAAE,UAAU,CAAC,QAAQ;IAC/B,WAAW,EAAE,UAAU,CAAC,SAAS;IACjC,aAAa,EAAE,UAAU,CAAC,WAAW;IACrC,cAAc,EAAE,UAAU,CAAC,YAAY;IACvC,WAAW,EAAE,UAAU,CAAC,SAAS;IACjC,SAAS,EAAE,UAAU,CAAC,OAAO;IAC7B,cAAc,EAAE,UAAU,CAAC,YAAY;IACvC,YAAY,EAAE,UAAU,CAAC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AAR,KAAK,EAAE;;6CAAyB;AACxB;IAAR,KAAK,EAAE;;8CAA0B;AACzB;IAAR,KAAK,EAAE;;+CAA2B;AAC1B;IAAR,KAAK,EAAE;;gDAA4B;AAC3B;IAAR,KAAK,EAAE;;mDAA+B;AAC9B;IAAR,KAAK,EAAE;;yDAAqC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Style preference for leading underscores.\n// tslint:disable:strip-private-property-underscore\n\nimport {html, LitElement, PropertyValues} from 'lit';\nimport {property, query, state} from 'lit/decorators.js';\nimport {ClassInfo, classMap} from 'lit/directives/class-map.js';\nimport {styleMap} from 'lit/directives/style-map.js';\n\nimport {isRtl} from '../../controller/is-rtl.js';\n\nimport {MDCMenuSurfaceAdapter} from './adapter.js';\nimport {Corner as CornerEnum} from './constants.js';\nimport {MDCMenuSurfaceFoundation} from './foundation.js';\n\nexport type Corner = keyof typeof CornerEnum;\nexport type AnchorableElement = HTMLElement&{anchor: Element | null};\n\n// tslint:disable:no-bitwise\n\n// required for closure compiler\nconst stringToCorner = {\n 'TOP_LEFT': CornerEnum.TOP_LEFT,\n 'TOP_RIGHT': CornerEnum.TOP_RIGHT,\n 'BOTTOM_LEFT': CornerEnum.BOTTOM_LEFT,\n 'BOTTOM_RIGHT': CornerEnum.BOTTOM_RIGHT,\n 'TOP_START': CornerEnum.TOP_START,\n 'TOP_END': CornerEnum.TOP_END,\n 'BOTTOM_START': CornerEnum.BOTTOM_START,\n 'BOTTOM_END': CornerEnum.BOTTOM_END,\n};\n\n/**\n * @fires opened\n * @fires closed\n */\nexport abstract class MenuSurface extends LitElement {\n protected mdcFoundation!: MDCMenuSurfaceFoundation;\n\n @query('.md3-menu-surface') mdcRoot!: HTMLDivElement;\n\n @query('slot') slotElement!: HTMLSlotElement|null;\n\n @property({type: Boolean}) absolute = false;\n\n @property({type: Boolean}) fullwidth = false;\n\n @property({type: Boolean}) fixed = false;\n\n @property({type: Number}) x: number|null = null;\n\n @property({type: Number}) y: number|null = null;\n\n // must be defined before open or else race condition in foundation occurs.\n @property({type: Boolean}) quick = false;\n\n @property({type: Boolean, reflect: true}) open = false;\n\n @property({type: Boolean}) stayOpenOnBodyClick = false;\n\n @property({type: Boolean}) skipRestoreFocus = false;\n\n protected previousFlipMenuHorizontally = false;\n\n /**\n * Whether to align the menu surface to the opposite side of the default\n * alignment.\n */\n @property({type: Boolean}) flipMenuHorizontally = false;\n\n @property({type: String}) corner: Corner = 'BOTTOM_START';\n\n @state() protected styleTop = '';\n @state() protected styleLeft = '';\n @state() protected styleRight = '';\n @state() protected styleBottom = '';\n @state() protected styleMaxHeight = '';\n @state() protected styleTransformOrigin = '';\n\n anchor: HTMLElement|null = null;\n\n protected previouslyFocused: HTMLElement|Element|null = null;\n protected previousAnchor: HTMLElement|null = null;\n protected onBodyClickBound: (evt: MouseEvent) => void = () => undefined;\n\n override render() {\n const styles = {\n 'top': this.styleTop,\n 'left': this.styleLeft,\n 'right': this.styleRight,\n 'bottom': this.styleBottom,\n 'max-height': this.styleMaxHeight,\n 'transform-origin': this.styleTransformOrigin,\n };\n\n return html`\n <div\n class=\"md3-menu-surface ${classMap(this.getRenderClasses())}\"\n style=\"${styleMap(styles)}\"\n @keydown=${this.onKeydown}\n @opened=${this.registerBodyClick}\n @closed=${this.deregisterBodyClick}>\n <slot></slot>\n </div>`;\n }\n\n /** @soyTemplate */\n protected getRenderClasses(): ClassInfo {\n return {\n 'md3-menu-surface--fixed': this.fixed,\n 'md3-menu-surface--fullwidth': this.fullwidth,\n };\n }\n\n protected override updated(changedProperties: PropertyValues<MenuSurface>) {\n if (changedProperties.has('absolute') && !this.fixed) {\n this.mdcFoundation.setIsHoisted(this.absolute);\n }\n\n if (changedProperties.has('fixed') && !this.absolute) {\n this.mdcFoundation.setFixedPosition(this.fixed);\n }\n\n if ((changedProperties.has('x') || changedProperties.has('y')) &&\n this.x !== null && this.y !== null) {\n this.mdcFoundation.setAbsolutePosition(this.x, this.y);\n this.mdcFoundation.setAnchorMargin(\n {left: this.x, top: this.y, right: -this.y, bottom: this.y});\n }\n\n if (changedProperties.has('quick')) {\n this.mdcFoundation.setQuickOpen(this.quick);\n }\n\n if (changedProperties.has('open')) {\n const wasOpen = changedProperties.get('open');\n if (this.open) {\n this.mdcFoundation.open();\n // wasOpen helps with first render (when it is `undefined`) perf\n } else if (wasOpen !== undefined) {\n this.mdcFoundation.close(this.skipRestoreFocus);\n }\n }\n\n if (changedProperties.has('flipMenuHorizontally')) {\n if (this.previousFlipMenuHorizontally !== this.flipMenuHorizontally) {\n this.mdcFoundation.flipCornerHorizontally();\n }\n this.previousFlipMenuHorizontally = this.flipMenuHorizontally;\n }\n\n if (changedProperties.has('corner') && this.corner) {\n const bitwiseCorner = stringToCorner[this.corner];\n this.mdcFoundation.setAnchorCorner(bitwiseCorner);\n }\n }\n\n protected override firstUpdated() {\n if (this.mdcFoundation !== undefined) {\n this.mdcFoundation.destroy();\n }\n\n this.mdcFoundation = new MDCMenuSurfaceFoundation(this.createAdapter());\n this.mdcFoundation.init();\n }\n\n createAdapter(): MDCMenuSurfaceAdapter {\n return {\n addClass: (className: string) => {\n this.mdcRoot.classList.add(className);\n },\n removeClass: (className: string) => {\n this.mdcRoot.classList.remove(className);\n },\n hasClass: (className: string) =>\n this.mdcRoot.classList.contains(className),\n hasAnchor: () => {\n return !!this.anchor;\n },\n notifyClose: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closed', init);\n this.open = false;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyClosing: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closing', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpen: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opened', init);\n this.open = true;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpening: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opening', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n isElementInContainer: () => false,\n isRtl: () => this.mdcRoot ? isRtl(this.mdcRoot) : false,\n setTransformOrigin: (origin) => {\n const root = this.mdcRoot;\n if (!root) {\n return;\n }\n\n this.styleTransformOrigin = origin;\n },\n isFocused: () => {\n return this.matches(':focus-within');\n },\n saveFocus: () => {\n this.previouslyFocused = document.activeElement;\n },\n restoreFocus: () => {\n if (!this.previouslyFocused) {\n return;\n }\n\n if ('focus' in this.previouslyFocused) {\n this.previouslyFocused.focus();\n }\n },\n getInnerDimensions: () => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return {width: 0, height: 0};\n }\n\n return {width: mdcRoot.offsetWidth, height: mdcRoot.offsetHeight};\n },\n getAnchorDimensions: () => {\n const anchorElement = this.anchor;\n\n return anchorElement ? anchorElement.getBoundingClientRect() : null;\n },\n getBodyDimensions: () => {\n return {\n width: document.body.clientWidth,\n height: document.body.clientHeight,\n };\n },\n getWindowDimensions: () => {\n return {\n width: window.innerWidth,\n height: window.innerHeight,\n };\n },\n getWindowScroll: () => {\n return {\n x: window.pageXOffset,\n y: window.pageYOffset,\n };\n },\n setPosition: (position) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n this.styleLeft = 'left' in position ? `${position.left}px` : '';\n this.styleRight = 'right' in position ? `${position.right}px` : '';\n this.styleTop = 'top' in position ? `${position.top}px` : '';\n this.styleBottom = 'bottom' in position ? `${position.bottom}px` : '';\n },\n setMaxHeight: async (height) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n // must set both for IE support as IE will not set a var\n this.styleMaxHeight = height;\n await this.updateComplete;\n this.styleMaxHeight = `var(--md3-menu-max-height, ${height})`;\n },\n };\n }\n\n protected onKeydown(evt: KeyboardEvent) {\n if (this.mdcFoundation) {\n this.mdcFoundation.handleKeydown(evt);\n }\n }\n\n protected onBodyClick(evt: MouseEvent) {\n if (this.stayOpenOnBodyClick) {\n return;\n }\n const path = evt.composedPath();\n if (path.indexOf(this) === -1) {\n this.close();\n }\n }\n\n protected registerBodyClick() {\n this.onBodyClickBound = this.onBodyClick.bind(this);\n // capture otherwise listener closes menu after quick menu opens\n document.body.addEventListener(\n 'click', this.onBodyClickBound, {passive: true, capture: true});\n }\n\n protected deregisterBodyClick() {\n document.body.removeEventListener(\n 'click', this.onBodyClickBound, {capture: true});\n }\n\n close() {\n this.open = false;\n }\n\n show() {\n this.open = true;\n }\n}\n"]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { Harness } from '@material/web/testing/harness.js';
|
|
7
6
|
import { NavigationTabHarness } from '../navigationtab/harness.js';
|
|
7
|
+
import { Harness } from '../testing/harness.js';
|
|
8
8
|
import { NavigationBar } from './lib/navigation-bar.js';
|
|
9
9
|
/**
|
|
10
10
|
* Test harness for navigation bars.
|
package/navigationbar/harness.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { Harness } from '@material/web/testing/harness.js';
|
|
7
6
|
import { NavigationTabHarness } from '../navigationtab/harness.js';
|
|
7
|
+
import { Harness } from '../testing/harness.js';
|
|
8
8
|
/**
|
|
9
9
|
* Test harness for navigation bars.
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.js","sourceRoot":"","sources":["harness.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"harness.js","sourceRoot":"","sources":["harness.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAI9C;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,OAAsB;IAAhE;;QACW,QAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IAe/B,CAAC;IAbC;;OAEG;IACgB,KAAK,CAAC,qBAAqB;QAC5C,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAClC,OAAO,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,CAAC;IAClD,CAAC;IAES,KAAK,CAAC,MAAM;QACpB,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAClC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxD,OAAO,IAAI,oBAAoB,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {NavigationTabHarness} from '../navigationtab/harness.js';\nimport {Harness} from '../testing/harness.js';\n\nimport {NavigationBar} from './lib/navigation-bar.js';\n\n/**\n * Test harness for navigation bars.\n */\nexport class NavigationBarHarness extends Harness<NavigationBar> {\n readonly tab = this.getTab();\n\n /**\n * Returns the active tab to be used for interaction simulation.\n */\n protected override async getInteractiveElement() {\n await this.element.updateComplete;\n return (await this.tab).getInteractiveElement();\n }\n\n protected async getTab() {\n await this.element.updateComplete;\n const tab = this.element.tabs[this.element.activeIndex];\n return new NavigationTabHarness(tab);\n }\n}\n"]}
|
|
@@ -6,23 +6,61 @@
|
|
|
6
6
|
// stylelint-disable selector-class-pattern --
|
|
7
7
|
// Selector '.md3-*' should only be used in this project.
|
|
8
8
|
|
|
9
|
-
@use '
|
|
9
|
+
@use '../../elevation/lib/elevation';
|
|
10
|
+
@use '../../sass/theme';
|
|
11
|
+
@use '../../tokens';
|
|
10
12
|
|
|
11
|
-
@mixin
|
|
12
|
-
|
|
13
|
+
@mixin theme($tokens) {
|
|
14
|
+
$tokens: theme.validate-theme(
|
|
15
|
+
tokens.md-comp-navigation-bar-values(),
|
|
16
|
+
$tokens
|
|
17
|
+
);
|
|
18
|
+
$tokens: elevation.resolve-tokens($tokens, 'container-elevation');
|
|
19
|
+
$tokens: theme.create-theme-vars($tokens, 'navigation-bar');
|
|
20
|
+
|
|
21
|
+
@include theme.emit-theme-vars($tokens);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin styles() {
|
|
25
|
+
$tokens: tokens.md-comp-navigation-bar-values();
|
|
26
|
+
$tokens: elevation.resolve-tokens($tokens, 'container-elevation');
|
|
27
|
+
|
|
28
|
+
$tokens: theme.create-theme-vars($tokens, 'navigation-bar');
|
|
29
|
+
|
|
30
|
+
:host {
|
|
31
|
+
@each $token, $value in $tokens {
|
|
32
|
+
--_#{$token}: #{$value};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
13
37
|
|
|
14
38
|
.md3-navigation-bar {
|
|
15
39
|
display: flex;
|
|
16
40
|
position: relative;
|
|
17
41
|
width: 100%;
|
|
42
|
+
background-color: var(--_container-color);
|
|
43
|
+
border-radius: var(--_container-shape);
|
|
44
|
+
height: var(--_container-height);
|
|
18
45
|
|
|
19
|
-
.
|
|
20
|
-
|
|
21
|
-
|
|
46
|
+
@include elevation.theme(
|
|
47
|
+
(
|
|
48
|
+
duration: 280ms,
|
|
49
|
+
level: var(--_container-elevation),
|
|
50
|
+
shadow-color: var(--_container-shadow-color),
|
|
51
|
+
surface-tint-color: var(--_container-surface-tint-layer-color),
|
|
52
|
+
)
|
|
53
|
+
);
|
|
22
54
|
|
|
23
55
|
.md3-navigation-bar__tabs-slot-container {
|
|
24
56
|
display: inherit;
|
|
25
57
|
width: inherit;
|
|
26
58
|
}
|
|
27
59
|
}
|
|
60
|
+
|
|
61
|
+
md-elevation {
|
|
62
|
+
inset: 0;
|
|
63
|
+
position: absolute;
|
|
64
|
+
z-index: 0;
|
|
65
|
+
}
|
|
28
66
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { NavigationTabState } from '
|
|
6
|
+
import { NavigationTabState } from '../../navigationtab/lib/state.js';
|
|
7
7
|
/**
|
|
8
8
|
* MDCNavigationTabInteractionEventDetail provides details for the interaction
|
|
9
9
|
* event.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {NavigationTabState} from '
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {NavigationTabState} from '../../navigationtab/lib/state.js';\n\n/**\n * MDCNavigationTabInteractionEventDetail provides details for the interaction\n * event.\n */\nexport interface MDCNavigationTabInteractionEventDetail {\n state: NavigationTabState;\n}\n\n/**\n * NavigationTabInteractionEvent is the custom event for the interaction event.\n */\nexport type NavigationTabInteractionEvent =\n CustomEvent<MDCNavigationTabInteractionEventDetail>;\n"]}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { css } from 'lit';
|
|
7
|
-
export const styles = css
|
|
7
|
+
export const styles = css `:host{--_active-indicator-color: var(--md-navigation-bar-active-indicator-color, var(--md-sys-color-secondary-container, #e8def8));--_active-indicator-height: var(--md-navigation-bar-active-indicator-height, 32px);--_active-indicator-shape: var(--md-navigation-bar-active-indicator-shape, 9999px);--_active-indicator-width: var(--md-navigation-bar-active-indicator-width, 64px);--_active-focus-icon-color: var(--md-navigation-bar-active-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-focus-label-text-color: var(--md-navigation-bar-active-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-focus-state-layer-color: var(--md-navigation-bar-active-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-hover-icon-color: var(--md-navigation-bar-active-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-hover-label-text-color: var(--md-navigation-bar-active-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-hover-state-layer-color: var(--md-navigation-bar-active-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-icon-color: var(--md-navigation-bar-active-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-label-text-color: var(--md-navigation-bar-active-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-label-text-weight: var(--md-navigation-bar-active-label-text-weight, 700);--_active-pressed-icon-color: var(--md-navigation-bar-active-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-pressed-label-text-color: var(--md-navigation-bar-active-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-pressed-state-layer-color: var(--md-navigation-bar-active-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_badge-color: var(--md-navigation-bar-badge-color, var(--md-sys-color-error, #b3261e));--_badge-shape: var(--md-navigation-bar-badge-shape, 3px);--_badge-size: var(--md-navigation-bar-badge-size, 6px);--_container-color: var(--md-navigation-bar-container-color, var(--md-sys-color-surface, #fffbfe));--_container-elevation: var(--md-navigation-bar-container-elevation, 2);--_container-height: var(--md-navigation-bar-container-height, 80px);--_container-shadow-color: var(--md-navigation-bar-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-navigation-bar-container-shape, 0px);--_container-surface-tint-layer-color: var(--md-navigation-bar-container-surface-tint-layer-color, var(--md-sys-color-primary, #6750a4));--_focus-state-layer-opacity: var(--md-navigation-bar-focus-state-layer-opacity, 0.12);--_hover-state-layer-opacity: var(--md-navigation-bar-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-navigation-bar-icon-size, 24px);--_inactive-focus-icon-color: var(--md-navigation-bar-inactive-focus-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-focus-label-text-color: var(--md-navigation-bar-inactive-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-focus-state-layer-color: var(--md-navigation-bar-inactive-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-icon-color: var(--md-navigation-bar-inactive-hover-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-label-text-color: var(--md-navigation-bar-inactive-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-state-layer-color: var(--md-navigation-bar-inactive-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-icon-color: var(--md-navigation-bar-inactive-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_inactive-label-text-color: var(--md-navigation-bar-inactive-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_inactive-pressed-icon-color: var(--md-navigation-bar-inactive-pressed-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-pressed-label-text-color: var(--md-navigation-bar-inactive-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-pressed-state-layer-color: var(--md-navigation-bar-inactive-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_label-text-font: var(--md-navigation-bar-label-text-font, Roboto);--_label-text-line-height: var(--md-navigation-bar-label-text-line-height, 1rem);--_label-text-size: var(--md-navigation-bar-label-text-size, 0.75rem);--_label-text-tracking: var(--md-navigation-bar-label-text-tracking, 0.031rem);--_label-text-type: var(--md-navigation-bar-label-text-type, 500 0.75rem / 1rem Roboto);--_label-text-weight: var(--md-navigation-bar-label-text-weight, 500);--_large-badge-color: var(--md-navigation-bar-large-badge-color, var(--md-sys-color-error, #b3261e));--_large-badge-shape: var(--md-navigation-bar-large-badge-shape, 8px);--_large-badge-size: var(--md-navigation-bar-large-badge-size, 16px);--_pressed-state-layer-opacity: var(--md-navigation-bar-pressed-state-layer-opacity, 0.12);width:100%}.md3-navigation-bar{display:flex;position:relative;width:100%;background-color:var(--_container-color);border-radius:var(--_container-shape);height:var(--_container-height);--md-elevation-duration:280ms;--md-elevation-level:var(--_container-elevation);--md-elevation-shadow-color:var(--_container-shadow-color);--md-elevation-surface-tint-color:var(--_container-surface-tint-layer-color)}.md3-navigation-bar .md3-navigation-bar__tabs-slot-container{display:inherit;width:inherit}md-elevation{inset:0;position:absolute;z-index:0}/*# sourceMappingURL=navigation-bar-styles.css.map */
|
|
8
8
|
`;
|
|
9
9
|
//# sourceMappingURL=navigation-bar-styles.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-bar-styles.css.js","sourceRoot":"","sources":["navigation-bar-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
|
|
1
|
+
{"version":3,"file":"navigation-bar-styles.css.js","sourceRoot":"","sources":["navigation-bar-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{--_active-indicator-color: var(--md-navigation-bar-active-indicator-color, var(--md-sys-color-secondary-container, #e8def8));--_active-indicator-height: var(--md-navigation-bar-active-indicator-height, 32px);--_active-indicator-shape: var(--md-navigation-bar-active-indicator-shape, 9999px);--_active-indicator-width: var(--md-navigation-bar-active-indicator-width, 64px);--_active-focus-icon-color: var(--md-navigation-bar-active-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-focus-label-text-color: var(--md-navigation-bar-active-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-focus-state-layer-color: var(--md-navigation-bar-active-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-hover-icon-color: var(--md-navigation-bar-active-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-hover-label-text-color: var(--md-navigation-bar-active-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-hover-state-layer-color: var(--md-navigation-bar-active-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-icon-color: var(--md-navigation-bar-active-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-label-text-color: var(--md-navigation-bar-active-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-label-text-weight: var(--md-navigation-bar-active-label-text-weight, 700);--_active-pressed-icon-color: var(--md-navigation-bar-active-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-pressed-label-text-color: var(--md-navigation-bar-active-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-pressed-state-layer-color: var(--md-navigation-bar-active-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_badge-color: var(--md-navigation-bar-badge-color, var(--md-sys-color-error, #b3261e));--_badge-shape: var(--md-navigation-bar-badge-shape, 3px);--_badge-size: var(--md-navigation-bar-badge-size, 6px);--_container-color: var(--md-navigation-bar-container-color, var(--md-sys-color-surface, #fffbfe));--_container-elevation: var(--md-navigation-bar-container-elevation, 2);--_container-height: var(--md-navigation-bar-container-height, 80px);--_container-shadow-color: var(--md-navigation-bar-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-navigation-bar-container-shape, 0px);--_container-surface-tint-layer-color: var(--md-navigation-bar-container-surface-tint-layer-color, var(--md-sys-color-primary, #6750a4));--_focus-state-layer-opacity: var(--md-navigation-bar-focus-state-layer-opacity, 0.12);--_hover-state-layer-opacity: var(--md-navigation-bar-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-navigation-bar-icon-size, 24px);--_inactive-focus-icon-color: var(--md-navigation-bar-inactive-focus-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-focus-label-text-color: var(--md-navigation-bar-inactive-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-focus-state-layer-color: var(--md-navigation-bar-inactive-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-icon-color: var(--md-navigation-bar-inactive-hover-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-label-text-color: var(--md-navigation-bar-inactive-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-state-layer-color: var(--md-navigation-bar-inactive-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-icon-color: var(--md-navigation-bar-inactive-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_inactive-label-text-color: var(--md-navigation-bar-inactive-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_inactive-pressed-icon-color: var(--md-navigation-bar-inactive-pressed-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-pressed-label-text-color: var(--md-navigation-bar-inactive-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-pressed-state-layer-color: var(--md-navigation-bar-inactive-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_label-text-font: var(--md-navigation-bar-label-text-font, Roboto);--_label-text-line-height: var(--md-navigation-bar-label-text-line-height, 1rem);--_label-text-size: var(--md-navigation-bar-label-text-size, 0.75rem);--_label-text-tracking: var(--md-navigation-bar-label-text-tracking, 0.031rem);--_label-text-type: var(--md-navigation-bar-label-text-type, 500 0.75rem / 1rem Roboto);--_label-text-weight: var(--md-navigation-bar-label-text-weight, 500);--_large-badge-color: var(--md-navigation-bar-large-badge-color, var(--md-sys-color-error, #b3261e));--_large-badge-shape: var(--md-navigation-bar-large-badge-shape, 8px);--_large-badge-size: var(--md-navigation-bar-large-badge-size, 16px);--_pressed-state-layer-opacity: var(--md-navigation-bar-pressed-state-layer-opacity, 0.12);width:100%}.md3-navigation-bar{display:flex;position:relative;width:100%;background-color:var(--_container-color);border-radius:var(--_container-shape);height:var(--_container-height);--md-elevation-duration:280ms;--md-elevation-level:var(--_container-elevation);--md-elevation-shadow-color:var(--_container-shadow-color);--md-elevation-surface-tint-color:var(--_container-surface-tint-layer-color)}.md3-navigation-bar .md3-navigation-bar__tabs-slot-container{display:inherit;width:inherit}md-elevation{inset:0;position:absolute;z-index:0}/*# sourceMappingURL=navigation-bar-styles.css.map */\n`;\n "]}
|