@material/web 0.1.0-alpha.0 → 0.1.0-alpha.2
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 +191 -220
- package/chips/chip/lib/_chip.scss +80 -63
- 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 +9 -8
- 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 +34 -38
- package/radio/lib/radio.js +88 -118
- package/radio/lib/radio.js.map +1 -1
- 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 +97 -51
- 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 +5 -2
- 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 +122 -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 +51 -31
- package/switch/lib/switch.js +106 -70
- 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 +2 -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 +2 -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/_ripple-theme.scss +0 -6
- 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
package/controller/events.js
CHANGED
|
@@ -37,4 +37,90 @@ export function redispatchEvent(element, event) {
|
|
|
37
37
|
}
|
|
38
38
|
return dispatched;
|
|
39
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Dispatches a click event to the given element that triggers a native action,
|
|
42
|
+
* but is not composed and therefore is not seen outside the element.
|
|
43
|
+
*
|
|
44
|
+
* This is useful for responding to an external click event on the host element
|
|
45
|
+
* that should trigger an internal action like a button click.
|
|
46
|
+
*
|
|
47
|
+
* Note, a helper is provided because setting this up correctly is a bit tricky.
|
|
48
|
+
* In particular, calling `click` on an element creates a composed event, which
|
|
49
|
+
* is not desirable, and a manually dispatched event must specifically be a
|
|
50
|
+
* `MouseEvent` to trigger a native action.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* hostClickListener = (event: MouseEvent) {
|
|
54
|
+
* if (isActivationClick(event)) {
|
|
55
|
+
* this.dispatchActivationClick(this.buttonElement);
|
|
56
|
+
* }
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export function dispatchActivationClick(element) {
|
|
61
|
+
const event = new MouseEvent('click', { bubbles: true });
|
|
62
|
+
element.dispatchEvent(event);
|
|
63
|
+
return event;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns true if the click event should trigger an activation behavior. The
|
|
67
|
+
* behavior is defined by the element and is whatever it should do when
|
|
68
|
+
* clicked.
|
|
69
|
+
*
|
|
70
|
+
* Typically when an element needs to handle a click, the click is generated
|
|
71
|
+
* from within the element and an event listener within the element implements
|
|
72
|
+
* the needed behavior; however, it's possible to fire a click directly
|
|
73
|
+
* at the element that the element should handle. This method helps
|
|
74
|
+
* distinguish these "external" clicks.
|
|
75
|
+
*
|
|
76
|
+
* An "external" click can be triggered in a number of ways: via a click
|
|
77
|
+
* on an associated label for a form associated element, calling
|
|
78
|
+
* `element.click()`, or calling
|
|
79
|
+
* `element.dispatchEvent(new MouseEvent('click', ...))`.
|
|
80
|
+
*
|
|
81
|
+
* Also works around Firefox issue
|
|
82
|
+
* https://bugzilla.mozilla.org/show_bug.cgi?id=1804576 by squelching
|
|
83
|
+
* events for a microtask after called.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* hostClickListener = (event: MouseEvent) {
|
|
87
|
+
* if (isActivationClick(event)) {
|
|
88
|
+
* this.dispatchActivationClick(this.buttonElement);
|
|
89
|
+
* }
|
|
90
|
+
* }
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
export function isActivationClick(event) {
|
|
94
|
+
// Event must start at the event target.
|
|
95
|
+
if (event.composedPath()[0] !== event.target) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
// Target must not be disabled; this should only occur for a synthetically
|
|
99
|
+
// dispatched click.
|
|
100
|
+
if (event.target.disabled) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
// This is an activation if the event should not be squelched.
|
|
104
|
+
return !squelchEvent(event);
|
|
105
|
+
}
|
|
106
|
+
// TODO(https://bugzilla.mozilla.org/show_bug.cgi?id=1804576)
|
|
107
|
+
// Remove when Firefox bug is addressed.
|
|
108
|
+
function squelchEvent(event) {
|
|
109
|
+
const squelched = isSquelchingEvents;
|
|
110
|
+
if (squelched) {
|
|
111
|
+
event.preventDefault();
|
|
112
|
+
event.stopImmediatePropagation();
|
|
113
|
+
}
|
|
114
|
+
squelchEventsForMicrotask();
|
|
115
|
+
return squelched;
|
|
116
|
+
}
|
|
117
|
+
// Ignore events for one microtask only.
|
|
118
|
+
let isSquelchingEvents = false;
|
|
119
|
+
async function squelchEventsForMicrotask() {
|
|
120
|
+
isSquelchingEvents = true;
|
|
121
|
+
// Need to pause for just one microtask.
|
|
122
|
+
// tslint:disable-next-line
|
|
123
|
+
await null;
|
|
124
|
+
isSquelchingEvents = false;
|
|
125
|
+
}
|
|
40
126
|
//# sourceMappingURL=events.js.map
|
package/controller/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,eAAe,CAAC,OAAgB,EAAE,KAAY;IAC5D,6EAA6E;IAC7E,yBAAyB;IACzB,IAAI,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE;QAC5D,KAAK,CAAC,eAAe,EAAE,CAAC;KACzB;IAED,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACvE,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC/C,IAAI,CAAC,UAAU,EAAE;QACf,KAAK,CAAC,cAAc,EAAE,CAAC;KACxB;IAED,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * Re-dispatches an event from the provided element.\n *\n * This function is useful for forwarding non-composed events, such as `change`\n * events.\n *\n * @example\n * class MyInput extends LitElement {\n * render() {\n * return html`<input @change=${this.redispatchEvent}>`;\n * }\n *\n * protected redispatchEvent(event: Event) {\n * redispatchEvent(this, event);\n * }\n * }\n *\n * @param element The element to dispatch the event from.\n * @param event The event to re-dispatch.\n * @return Whether or not the event was dispatched (if cancelable).\n */\nexport function redispatchEvent(element: Element, event: Event) {\n // For bubbling events in SSR light DOM (or composed), stop their propagation\n // and dispatch the copy.\n if (event.bubbles && (!element.shadowRoot || event.composed)) {\n event.stopPropagation();\n }\n\n const copy = Reflect.construct(event.constructor, [event.type, event]);\n const dispatched = element.dispatchEvent(copy);\n if (!dispatched) {\n event.preventDefault();\n }\n\n return dispatched;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,eAAe,CAAC,OAAgB,EAAE,KAAY;IAC5D,6EAA6E;IAC7E,yBAAyB;IACzB,IAAI,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE;QAC5D,KAAK,CAAC,eAAe,EAAE,CAAC;KACzB;IAED,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACvE,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC/C,IAAI,CAAC,UAAU,EAAE;QACf,KAAK,CAAC,cAAc,EAAE,CAAC;KACxB;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAAoB;IAC1D,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IACvD,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC7B,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAY;IAC5C,wCAAwC;IACxC,IAAI,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,MAAM,EAAE;QAC5C,OAAO,KAAK,CAAC;KACd;IACD,0EAA0E;IAC1E,oBAAoB;IACpB,IAAK,KAAK,CAAC,MAA4C,CAAC,QAAQ,EAAE;QAChE,OAAO,KAAK,CAAC;KACd;IACD,8DAA8D;IAC9D,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED,6DAA6D;AAC7D,yCAAyC;AACzC,SAAS,YAAY,CAAC,KAAY;IAChC,MAAM,SAAS,GAAG,kBAAkB,CAAC;IACrC,IAAI,SAAS,EAAE;QACb,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,wBAAwB,EAAE,CAAC;KAClC;IACD,yBAAyB,EAAE,CAAC;IAC5B,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,wCAAwC;AACxC,IAAI,kBAAkB,GAAG,KAAK,CAAC;AAC/B,KAAK,UAAU,yBAAyB;IACtC,kBAAkB,GAAG,IAAI,CAAC;IAC1B,wCAAwC;IACxC,2BAA2B;IAC3B,MAAM,IAAI,CAAC;IACX,kBAAkB,GAAG,KAAK,CAAC;AAC7B,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * Re-dispatches an event from the provided element.\n *\n * This function is useful for forwarding non-composed events, such as `change`\n * events.\n *\n * @example\n * class MyInput extends LitElement {\n * render() {\n * return html`<input @change=${this.redispatchEvent}>`;\n * }\n *\n * protected redispatchEvent(event: Event) {\n * redispatchEvent(this, event);\n * }\n * }\n *\n * @param element The element to dispatch the event from.\n * @param event The event to re-dispatch.\n * @return Whether or not the event was dispatched (if cancelable).\n */\nexport function redispatchEvent(element: Element, event: Event) {\n // For bubbling events in SSR light DOM (or composed), stop their propagation\n // and dispatch the copy.\n if (event.bubbles && (!element.shadowRoot || event.composed)) {\n event.stopPropagation();\n }\n\n const copy = Reflect.construct(event.constructor, [event.type, event]);\n const dispatched = element.dispatchEvent(copy);\n if (!dispatched) {\n event.preventDefault();\n }\n\n return dispatched;\n}\n\n/**\n * Dispatches a click event to the given element that triggers a native action,\n * but is not composed and therefore is not seen outside the element.\n *\n * This is useful for responding to an external click event on the host element\n * that should trigger an internal action like a button click.\n *\n * Note, a helper is provided because setting this up correctly is a bit tricky.\n * In particular, calling `click` on an element creates a composed event, which\n * is not desirable, and a manually dispatched event must specifically be a\n * `MouseEvent` to trigger a native action.\n *\n * @example\n * hostClickListener = (event: MouseEvent) {\n * if (isActivationClick(event)) {\n * this.dispatchActivationClick(this.buttonElement);\n * }\n * }\n *\n */\nexport function dispatchActivationClick(element: HTMLElement) {\n const event = new MouseEvent('click', {bubbles: true});\n element.dispatchEvent(event);\n return event;\n}\n\n/**\n * Returns true if the click event should trigger an activation behavior. The\n * behavior is defined by the element and is whatever it should do when\n * clicked.\n *\n * Typically when an element needs to handle a click, the click is generated\n * from within the element and an event listener within the element implements\n * the needed behavior; however, it's possible to fire a click directly\n * at the element that the element should handle. This method helps\n * distinguish these \"external\" clicks.\n *\n * An \"external\" click can be triggered in a number of ways: via a click\n * on an associated label for a form associated element, calling\n * `element.click()`, or calling\n * `element.dispatchEvent(new MouseEvent('click', ...))`.\n *\n * Also works around Firefox issue\n * https://bugzilla.mozilla.org/show_bug.cgi?id=1804576 by squelching\n * events for a microtask after called.\n *\n * @example\n * hostClickListener = (event: MouseEvent) {\n * if (isActivationClick(event)) {\n * this.dispatchActivationClick(this.buttonElement);\n * }\n * }\n *\n */\nexport function isActivationClick(event: Event) {\n // Event must start at the event target.\n if (event.composedPath()[0] !== event.target) {\n return false;\n }\n // Target must not be disabled; this should only occur for a synthetically\n // dispatched click.\n if ((event.target as EventTarget & {disabled: boolean}).disabled) {\n return false;\n }\n // This is an activation if the event should not be squelched.\n return !squelchEvent(event);\n}\n\n// TODO(https://bugzilla.mozilla.org/show_bug.cgi?id=1804576)\n// Remove when Firefox bug is addressed.\nfunction squelchEvent(event: Event) {\n const squelched = isSquelchingEvents;\n if (squelched) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n squelchEventsForMicrotask();\n return squelched;\n}\n\n// Ignore events for one microtask only.\nlet isSquelchingEvents = false;\nasync function squelchEventsForMicrotask() {\n isSquelchingEvents = true;\n // Need to pause for just one microtask.\n // tslint:disable-next-line\n await null;\n isSquelchingEvents = false;\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* FormAssociatedElement interface
|
|
8
|
+
*/
|
|
9
|
+
export interface FormAssociatedElement extends HTMLElement {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns true if the element is a form associated custom element (FACE).
|
|
13
|
+
*/
|
|
14
|
+
export declare function isFormAssociated(element: FormAssociatedElement): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Returns true if the element is a form associated custom element (FACE).
|
|
8
|
+
*/
|
|
9
|
+
export function isFormAssociated(element) {
|
|
10
|
+
return element.constructor.formAssociated;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=form-associated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-associated.js","sourceRoot":"","sources":["form-associated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAYH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAA8B;IAC7D,OAAQ,OAAO,CAAC,WAA4C,CAAC,cAAc,CAAC;AAC9E,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * FormAssociatedElement interface\n */\nexport interface FormAssociatedElement extends HTMLElement {}\n\ndeclare var FormAssociatedElement: {\n new (): FormAssociatedElement; prototype: FormAssociatedElement;\n readonly formAssociated?: boolean;\n};\n\n/**\n * Returns true if the element is a form associated custom element (FACE).\n */\nexport function isFormAssociated(element: FormAssociatedElement) {\n return (element.constructor as typeof FormAssociatedElement).formAssociated;\n}\n"]}
|
|
@@ -43,6 +43,13 @@ export interface FormElement extends ReactiveControllerHost, HTMLElement {
|
|
|
43
43
|
export declare const getFormValue: unique symbol;
|
|
44
44
|
/**
|
|
45
45
|
* A `ReactiveController` that adds `<form>` support to an element.
|
|
46
|
+
*
|
|
47
|
+
* Elements should also set `static formAssociated = true` which
|
|
48
|
+
* provides platform support for forms. When an element is form associated,
|
|
49
|
+
* it can be activated via clicks on associated label elements. It is the
|
|
50
|
+
* responsibility of the element to process this click and perform any necessary
|
|
51
|
+
* activation tasks, for example focusing and clicking on an internal element.
|
|
52
|
+
*
|
|
46
53
|
*/
|
|
47
54
|
export declare class FormController implements ReactiveController {
|
|
48
55
|
private readonly element;
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { __decorate, __metadata } from "tslib";
|
|
7
|
-
import { bound } from '
|
|
7
|
+
import { bound } from '../decorators/bound.js';
|
|
8
|
+
import { isFormAssociated } from './form-associated.js';
|
|
9
|
+
import { shimLabelSupport, SUPPORTS_FACE_LABEL } from './shim-label-activation.js';
|
|
8
10
|
/**
|
|
9
11
|
* A unique symbol key for `FormController` elements to implement their
|
|
10
12
|
* `getFormValue()` function.
|
|
@@ -12,6 +14,13 @@ import { bound } from '@material/web/decorators/bound.js';
|
|
|
12
14
|
export const getFormValue = Symbol('getFormValue');
|
|
13
15
|
/**
|
|
14
16
|
* A `ReactiveController` that adds `<form>` support to an element.
|
|
17
|
+
*
|
|
18
|
+
* Elements should also set `static formAssociated = true` which
|
|
19
|
+
* provides platform support for forms. When an element is form associated,
|
|
20
|
+
* it can be activated via clicks on associated label elements. It is the
|
|
21
|
+
* responsibility of the element to process this click and perform any necessary
|
|
22
|
+
* activation tasks, for example focusing and clicking on an internal element.
|
|
23
|
+
*
|
|
15
24
|
*/
|
|
16
25
|
export class FormController {
|
|
17
26
|
/**
|
|
@@ -33,6 +42,11 @@ export class FormController {
|
|
|
33
42
|
// null if the child was removed.
|
|
34
43
|
this.form = this.element.form;
|
|
35
44
|
this.form?.addEventListener('formdata', this.formDataListener);
|
|
45
|
+
// TODO(b/261871554) Label activation shim is currently only needed for
|
|
46
|
+
// Safari. Remove it when no longer needed.
|
|
47
|
+
if (isFormAssociated(this.element) && !SUPPORTS_FACE_LABEL) {
|
|
48
|
+
shimLabelSupport(this.element.getRootNode());
|
|
49
|
+
}
|
|
36
50
|
}
|
|
37
51
|
hostDisconnected() {
|
|
38
52
|
this.form?.removeEventListener('formdata', this.formDataListener);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-controller.js","sourceRoot":"","sources":["form-controller.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;
|
|
1
|
+
{"version":3,"file":"form-controller.js","sourceRoot":"","sources":["form-controller.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAIH,OAAO,EAAC,KAAK,EAAC,MAAM,wBAAwB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,gBAAgB,EAAE,mBAAmB,EAAC,MAAM,4BAA4B,CAAC;AAkCjF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAEnD;;;;;;;;;GASG;AACH,MAAM,OAAO,cAAc;IAGzB;;;;OAIG;IACH,YAA6B,OAAoB;QAApB,YAAO,GAAP,OAAO,CAAa;IAAG,CAAC;IAErD,aAAa;QACX,wEAAwE;QACxE,0EAA0E;QAC1E,sBAAsB;QACtB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE;YACtD,OAAO;SACR;QAED,wEAAwE;QACxE,iCAAiC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAC9B,IAAI,CAAC,IAAI,EAAE,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAE/D,uEAAuE;QACvE,2CAA2C;QAC3C,IAAI,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAC1D,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAA2B,CAAC,CAAC;SACvE;IACH,CAAC;IAED,gBAAgB;QACd,IAAI,CAAC,IAAI,EAAE,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACpE,CAAC;IAGO,gBAAgB,CAAC,KAAoB;QAC3C,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YACzB,sEAAsE;YACtE,OAAO;SACR;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;QAC3C,sEAAsE;QACtE,wEAAwE;QACxE,QAAQ;QACR,IAAI,KAAK,YAAY,QAAQ,EAAE;YAC7B,KAAK,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,KAAK,EAAE;gBACpC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;aACvC;YACD,OAAO;SACR;QAED,4EAA4E;QAC5E,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;YACxC,OAAO;SACR;QAED,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;CACF;AAxBC;IADC,KAAK;;qCAC0B,aAAa;;sDAuB5C","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {ReactiveController, ReactiveControllerHost} from 'lit';\n\nimport {bound} from '../decorators/bound.js';\n\nimport {isFormAssociated} from './form-associated.js';\nimport {shimLabelSupport, SUPPORTS_FACE_LABEL} from './shim-label-activation.js';\n\ndeclare global {\n interface Window {\n ShadyDOM?: {inUse: boolean;};\n }\n}\n\n/**\n * An element that `FormController` may use.\n */\nexport interface FormElement extends ReactiveControllerHost, HTMLElement {\n /**\n * The `<form>` that this element is associated with.\n */\n readonly form: HTMLFormElement|null;\n /**\n * The name of the element in the form. This property should reflect to a\n * `name` attribute.\n */\n name: string;\n /**\n * Whether or not this element is disabled. If present, this property should\n * reflect to a `disabled` attribute.\n */\n disabled?: boolean;\n /**\n * A function that retrieves the current form value for this element.\n *\n * @return The current form value, or `null` if there is no value.\n */\n [getFormValue](): string|File|FormData|null;\n}\n\n/**\n * A unique symbol key for `FormController` elements to implement their\n * `getFormValue()` function.\n */\nexport const getFormValue = Symbol('getFormValue');\n\n/**\n * A `ReactiveController` that adds `<form>` support to an element.\n *\n * Elements should also set `static formAssociated = true` which\n * provides platform support for forms. When an element is form associated,\n * it can be activated via clicks on associated label elements. It is the\n * responsibility of the element to process this click and perform any necessary\n * activation tasks, for example focusing and clicking on an internal element.\n *\n */\nexport class FormController implements ReactiveController {\n private form?: HTMLFormElement|null;\n\n /**\n * Creates a new `FormController` for the given element.\n *\n * @param element The element to add `<form>` support to.\n */\n constructor(private readonly element: FormElement) {}\n\n hostConnected() {\n // If the component internals are not in Shadow DOM, subscribing to form\n // data events could lead to duplicated data, which may not work correctly\n // on the server side.\n if (!this.element.shadowRoot || window.ShadyDOM?.inUse) {\n return;\n }\n\n // Preserve a reference to the form, since on hostDisconnected it may be\n // null if the child was removed.\n this.form = this.element.form;\n this.form?.addEventListener('formdata', this.formDataListener);\n\n // TODO(b/261871554) Label activation shim is currently only needed for\n // Safari. Remove it when no longer needed.\n if (isFormAssociated(this.element) && !SUPPORTS_FACE_LABEL) {\n shimLabelSupport(this.element.getRootNode() as Document | ShadowRoot);\n }\n }\n\n hostDisconnected() {\n this.form?.removeEventListener('formdata', this.formDataListener);\n }\n\n @bound\n private formDataListener(event: FormDataEvent) {\n if (this.element.disabled) {\n // Check for truthiness since some elements may not support disabling.\n return;\n }\n\n const value = this.element[getFormValue]();\n // If given a `FormData` instance, append all values to the form. This\n // allows elements to customize what is added beyond a single name/value\n // pair.\n if (value instanceof FormData) {\n for (const [key, dataValue] of value) {\n event.formData.append(key, dataValue);\n }\n return;\n }\n\n // Do not associate the value with the form if there is no value or no name.\n if (value === null || !this.element.name) {\n return;\n }\n\n event.formData.append(this.element.name, value);\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Returns `true` if the given element is in a right-to-left direction.
|
|
8
|
+
*
|
|
9
|
+
* @param el Element to determine direction from
|
|
10
|
+
* @param shouldCheck Optional. If `false`, return `false` without checking
|
|
11
|
+
* direction. Determining the direction of `el` is somewhat expensive, so
|
|
12
|
+
* this parameter can be used as a conditional guard. Defaults to `true`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isRtl(el: HTMLElement, shouldCheck?: boolean): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Returns `true` if the given element is in a right-to-left direction.
|
|
8
|
+
*
|
|
9
|
+
* @param el Element to determine direction from
|
|
10
|
+
* @param shouldCheck Optional. If `false`, return `false` without checking
|
|
11
|
+
* direction. Determining the direction of `el` is somewhat expensive, so
|
|
12
|
+
* this parameter can be used as a conditional guard. Defaults to `true`.
|
|
13
|
+
*/
|
|
14
|
+
export function isRtl(el, shouldCheck = true) {
|
|
15
|
+
return shouldCheck &&
|
|
16
|
+
getComputedStyle(el).getPropertyValue('direction').trim() === 'rtl';
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=is-rtl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-rtl.js","sourceRoot":"","sources":["is-rtl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;GAOG;AACH,MAAM,UAAU,KAAK,CAAC,EAAe,EAAE,WAAW,GAAG,IAAI;IACvD,OAAO,WAAW;QACd,gBAAgB,CAAC,EAAE,CAAC,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,CAAC;AAC1E,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * Returns `true` if the given element is in a right-to-left direction.\n *\n * @param el Element to determine direction from\n * @param shouldCheck Optional. If `false`, return `false` without checking\n * direction. Determining the direction of `el` is somewhat expensive, so\n * this parameter can be used as a conditional guard. Defaults to `true`.\n */\nexport function isRtl(el: HTMLElement, shouldCheck = true) {\n return shouldCheck &&\n getComputedStyle(el).getPropertyValue('direction').trim() === 'rtl';\n}"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Returns true if labeling is supported for form associated custom elemeents.
|
|
8
|
+
* Chrome and Firefox currently do and Safari support appears to be in progress,
|
|
9
|
+
* see https://bugs.webkit.org/show_bug.cgi?id=197960.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SUPPORTS_FACE_LABEL: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Provides a shim for labeling form associated custom elements via clicks
|
|
14
|
+
* on label elements. Note, this is currently needed only in Safari and
|
|
15
|
+
* support appears to be in progress, see
|
|
16
|
+
* https://bugs.webkit.org/show_bug.cgi?id=197960.
|
|
17
|
+
*/
|
|
18
|
+
export declare function shimLabelSupport(root: Document | ShadowRoot): void;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { isFormAssociated } from './form-associated.js';
|
|
7
|
+
// TODO Label activation shim is currently only needed for Safari. Remove it
|
|
8
|
+
// when no longer needed, see b/261871554.
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if labeling is supported for form associated custom elemeents.
|
|
11
|
+
* Chrome and Firefox currently do and Safari support appears to be in progress,
|
|
12
|
+
* see https://bugs.webkit.org/show_bug.cgi?id=197960.
|
|
13
|
+
*/
|
|
14
|
+
export const SUPPORTS_FACE_LABEL = 'labels' in (globalThis?.ElementInternals?.prototype ?? {});
|
|
15
|
+
function isCustomElement(element) {
|
|
16
|
+
return element.localName.match('-');
|
|
17
|
+
}
|
|
18
|
+
// Elements that can be associated with a <label> element include <button>,
|
|
19
|
+
// <input> (except for type="hidden"), <meter>, <output>, <progress>, <select>
|
|
20
|
+
// and <textarea>.
|
|
21
|
+
const implicitLabelReactive = new Set(['button', 'input', 'meter', 'progress', 'output', 'select', 'textarea']);
|
|
22
|
+
function isLabelReactive(element) {
|
|
23
|
+
return implicitLabelReactive.has(element.localName) ||
|
|
24
|
+
isFormAssociated(element);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Provides a shim for labeling form associated custom elements via clicks
|
|
28
|
+
* on label elements. Note, this is currently needed only in Safari and
|
|
29
|
+
* support appears to be in progress, see
|
|
30
|
+
* https://bugs.webkit.org/show_bug.cgi?id=197960.
|
|
31
|
+
*/
|
|
32
|
+
export function shimLabelSupport(root) {
|
|
33
|
+
// Listen for clicks on root to find clicks on label elements
|
|
34
|
+
root.addEventListener('click', labelActivationListener);
|
|
35
|
+
}
|
|
36
|
+
function labelActivationListener(event) {
|
|
37
|
+
// Find label on which user clicked.
|
|
38
|
+
const path = event.composedPath();
|
|
39
|
+
const root = event.currentTarget;
|
|
40
|
+
let label = undefined;
|
|
41
|
+
for (let i = 0; i < path.length; i++) {
|
|
42
|
+
const target = path[i];
|
|
43
|
+
// Not element or not in scope.
|
|
44
|
+
if (target.nodeType !== Node.ELEMENT_NODE ||
|
|
45
|
+
target.getRootNode() !== root) {
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
// If the click is on a label reactive element, this is not a label click.
|
|
49
|
+
if (isLabelReactive(target)) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (target.localName === 'label') {
|
|
53
|
+
label = target;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (label === undefined) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
// Find associated element to activate.
|
|
60
|
+
const forId = label.getAttribute('for');
|
|
61
|
+
const target = forId ?
|
|
62
|
+
root.getElementById(forId) :
|
|
63
|
+
Array.from(label.querySelectorAll('*'))
|
|
64
|
+
.find((el) => isCustomElement(el) && isFormAssociated(el));
|
|
65
|
+
if (target == null) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
// Simulate FACE by issuing a click on the associated element.
|
|
69
|
+
const simulatedClick = new PointerEvent('click', { composed: true, bubbles: true });
|
|
70
|
+
target.dispatchEvent(simulatedClick);
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=shim-label-activation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shim-label-activation.js","sourceRoot":"","sources":["shim-label-activation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEtD,4EAA4E;AAC5E,0CAA0C;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAC5B,QAAQ,IAAI,CAAC,UAAU,EAAE,gBAAgB,EAAE,SAAS,IAAI,EAAE,CAAC,CAAC;AAEhE,SAAS,eAAe,CAAC,OAAoB;IAC3C,OAAO,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACtC,CAAC;AAED,2EAA2E;AAC3E,8EAA8E;AAC9E,kBAAkB;AAClB,MAAM,qBAAqB,GAAG,IAAI,GAAG,CACjC,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;AAE9E,SAAS,eAAe,CAAC,OAAoB;IAC3C,OAAO,qBAAqB,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC;QAC/C,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAyB;IACxD,6DAA6D;IAC7D,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC;AAC1D,CAAC;AAED,SAAS,uBAAuB,CAAC,KAAY;IAC3C,oCAAoC;IACpC,MAAM,IAAI,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;IAClC,MAAM,IAAI,GAAG,KAAK,CAAC,aAAsC,CAAC;IAC1D,IAAI,KAAK,GAA+B,SAAS,CAAC;IAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,CAAgB,CAAC;QACtC,+BAA+B;QAC/B,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY;YACrC,MAAM,CAAC,WAAW,EAAE,KAAK,IAAI,EAAE;YACjC,SAAS;SACV;QACD,0EAA0E;QAC1E,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE;YAC3B,OAAO;SACR;QACD,IAAI,MAAM,CAAC,SAAS,KAAK,OAAO,EAAE;YAChC,KAAK,GAAG,MAA0B,CAAC;SACpC;KACF;IACD,IAAI,KAAK,KAAK,SAAS,EAAE;QACvB,OAAO;KACR;IACD,uCAAuC;IACvC,MAAM,KAAK,GAAG,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC;QAClB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;QAC5B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAc,GAAG,CAAC,CAAC;aAC/C,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,IAAI,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC;IACnE,IAAI,MAAM,IAAI,IAAI,EAAE;QAClB,OAAO;KACR;IACD,8DAA8D;IAC9D,MAAM,cAAc,GAChB,IAAI,YAAY,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IAC/D,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;AACvC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {isFormAssociated} from './form-associated.js';\n\n// TODO Label activation shim is currently only needed for Safari. Remove it\n// when no longer needed, see b/261871554.\n\n/**\n * Returns true if labeling is supported for form associated custom elemeents.\n * Chrome and Firefox currently do and Safari support appears to be in progress,\n * see https://bugs.webkit.org/show_bug.cgi?id=197960.\n */\nexport const SUPPORTS_FACE_LABEL =\n 'labels' in (globalThis?.ElementInternals?.prototype ?? {});\n\nfunction isCustomElement(element: HTMLElement) {\n return element.localName.match('-');\n}\n\n// Elements that can be associated with a <label> element include <button>,\n// <input> (except for type=\"hidden\"), <meter>, <output>, <progress>, <select>\n// and <textarea>.\nconst implicitLabelReactive = new Set(\n ['button', 'input', 'meter', 'progress', 'output', 'select', 'textarea']);\n\nfunction isLabelReactive(element: HTMLElement) {\n return implicitLabelReactive.has(element.localName) ||\n isFormAssociated(element);\n}\n\n/**\n * Provides a shim for labeling form associated custom elements via clicks\n * on label elements. Note, this is currently needed only in Safari and\n * support appears to be in progress, see\n * https://bugs.webkit.org/show_bug.cgi?id=197960.\n */\nexport function shimLabelSupport(root: Document|ShadowRoot) {\n // Listen for clicks on root to find clicks on label elements\n root.addEventListener('click', labelActivationListener);\n}\n\nfunction labelActivationListener(event: Event) {\n // Find label on which user clicked.\n const path = event.composedPath();\n const root = event.currentTarget as ShadowRoot | Document;\n let label: HTMLLabelElement|undefined = undefined;\n for (let i = 0; i < path.length; i++) {\n const target = path[i] as HTMLElement;\n // Not element or not in scope.\n if (target.nodeType !== Node.ELEMENT_NODE ||\n target.getRootNode() !== root) {\n continue;\n }\n // If the click is on a label reactive element, this is not a label click.\n if (isLabelReactive(target)) {\n return;\n }\n if (target.localName === 'label') {\n label = target as HTMLLabelElement;\n }\n }\n if (label === undefined) {\n return;\n }\n // Find associated element to activate.\n const forId = label.getAttribute('for');\n const target = forId ?\n root.getElementById(forId) :\n Array.from(label.querySelectorAll<HTMLElement>('*'))\n .find((el) => isCustomElement(el) && isFormAssociated(el));\n if (target == null) {\n return;\n }\n // Simulate FACE by issuing a click on the associated element.\n const simulatedClick =\n new PointerEvent('click', {composed: true, bubbles: true});\n target.dispatchEvent(simulatedClick);\n}\n"]}
|
package/decorators/bound.d.ts
CHANGED
package/decorators/bound.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bound.js","sourceRoot":"","sources":["bound.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAyCH,MAAM,UACN,KAAK,CACD,MAAS,EAAE,WAAc,EAAE,gBAA6C;IAE1E,MAAM,UAAU,GAA+B,gBAAgB,IAAI;QACjE,YAAY,EAAE,IAAI;QAClB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC;IAEF,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAAa,CAAC;IACrD,IAAI,GAAgD,CAAC;IACrD,IAAI,GAAgD,CAAC;IAErD,IAAI,UAAU,CAAC,GAAG,IAAI,UAAU,CAAC,QAAQ,EAAE;QACzC,GAAG,GAAG;YACJ,MAAM,IAAI,GAAG,IAAS,CAAC,CAAE,iCAAiC;YAC1D,IAAI,UAAU,CAAC,GAAG,EAAE;gBAClB,oDAAoD;gBACpD,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;gBAC9B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAChC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACzB;YAED,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAClC,MAAM,KAAK,GACP,CAAC,UAAU,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,CAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAM,CAAC;gBAClE,mBAAmB,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBACrC,OAAO,KAAK,CAAC;aACd;YAED,OAAO,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC;QACxC,CAAC,CAAC;KACH;IAED,IAAI,UAAU,CAAC,GAAG,IAAI,UAAU,CAAC,QAAQ,EAAE;QACzC,GAAG,GAAG,UAAkB,KAAQ;YAC9B,MAAM,IAAI,GAAG,IAAS,CAAC,CAAE,iCAAiC;YAC1D,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACzB,IAAI,UAAU,CAAC,GAAG,EAAE;gBAClB,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aAClC;YAED,mBAAmB,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACvC,CAAC,CAAC;KACH;IAED,OAAO;QACL,GAAG;QACH,GAAG;QACH,YAAY,EAAE,UAAU,CAAC,YAAY;QACrC,UAAU,EAAE,UAAU,CAAC,UAAU;KAClC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {FunctionKeys} from '
|
|
1
|
+
{"version":3,"file":"bound.js","sourceRoot":"","sources":["bound.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAyCH,MAAM,UACN,KAAK,CACD,MAAS,EAAE,WAAc,EAAE,gBAA6C;IAE1E,MAAM,UAAU,GAA+B,gBAAgB,IAAI;QACjE,YAAY,EAAE,IAAI;QAClB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC;IAEF,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAAa,CAAC;IACrD,IAAI,GAAgD,CAAC;IACrD,IAAI,GAAgD,CAAC;IAErD,IAAI,UAAU,CAAC,GAAG,IAAI,UAAU,CAAC,QAAQ,EAAE;QACzC,GAAG,GAAG;YACJ,MAAM,IAAI,GAAG,IAAS,CAAC,CAAE,iCAAiC;YAC1D,IAAI,UAAU,CAAC,GAAG,EAAE;gBAClB,oDAAoD;gBACpD,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;gBAC9B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAChC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACzB;YAED,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAClC,MAAM,KAAK,GACP,CAAC,UAAU,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,CAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAM,CAAC;gBAClE,mBAAmB,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBACrC,OAAO,KAAK,CAAC;aACd;YAED,OAAO,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC;QACxC,CAAC,CAAC;KACH;IAED,IAAI,UAAU,CAAC,GAAG,IAAI,UAAU,CAAC,QAAQ,EAAE;QACzC,GAAG,GAAG,UAAkB,KAAQ;YAC9B,MAAM,IAAI,GAAG,IAAS,CAAC,CAAE,iCAAiC;YAC1D,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACzB,IAAI,UAAU,CAAC,GAAG,EAAE;gBAClB,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aAClC;YAED,mBAAmB,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACvC,CAAC,CAAC;KACH;IAED,OAAO;QACL,GAAG;QACH,GAAG;QACH,YAAY,EAAE,UAAU,CAAC,YAAY;QACrC,UAAU,EAAE,UAAU,CAAC,UAAU;KAClC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {FunctionKeys} from '../types/keys.js';\n\n/**\n * Binds a class's method to its instance.\n *\n * @example\n * class MyClass {\n * \\@bound\n * foo() { return this; }\n * }\n *\n * const instance = new MyClass();\n * const reference = instance.foo;\n * foo(); // MyClass\n *\n * @category Decorator\n * @ExportDecoratedItems\n */\nexport function bound<V extends Function>(\n target: object, propertyKey: string|symbol,\n methodDescriptor: TypedPropertyDescriptor<V>): TypedPropertyDescriptor<V>;\n/**\n * Binds a class's function property to its instance.\n *\n * @example\n * class MyClass {\n * \\@bound\n * foo = function(this: MyClass) { return this; }\n * }\n *\n * const instance = new MyClass();\n * const reference = instance.foo;\n * foo(); // MyClass\n *\n * @category Decorator\n * @ExportDecoratedItems\n */\nexport function bound<T extends object>(\n target: T, propertyKey: FunctionKeys<T>): any;\nexport function\nbound<T extends object, K extends FunctionKeys<T>, V extends T[K]&Function>(\n target: T, propertyKey: K, methodDescriptor?: TypedPropertyDescriptor<V>):\n TypedPropertyDescriptor<V> {\n const descriptor: TypedPropertyDescriptor<V> = methodDescriptor || {\n configurable: true,\n enumerable: true,\n writable: true,\n };\n\n const memoizedBoundValues = new WeakMap<object, V>();\n let get: TypedPropertyDescriptor<V>['get']|undefined;\n let set: TypedPropertyDescriptor<V>['set']|undefined;\n\n if (descriptor.get || descriptor.writable) {\n get = function(this: T): V {\n const self = this as T; // Needed for closure conformance\n if (descriptor.get) {\n // Separate variables needed for closure conformance\n const getter = descriptor.get;\n const value = getter.call(self);\n return value.bind(self);\n }\n\n if (!memoizedBoundValues.has(self)) {\n const bound =\n (descriptor.value || self[propertyKey] as V)?.bind(self) as V;\n memoizedBoundValues.set(self, bound);\n return bound;\n }\n\n return memoizedBoundValues.get(self)!;\n };\n }\n\n if (descriptor.set || descriptor.writable) {\n set = function(this: T, value: V) {\n const self = this as T; // Needed for closure conformance\n value = value.bind(self);\n if (descriptor.set) {\n descriptor.set.call(self, value);\n }\n\n memoizedBoundValues.set(self, value);\n };\n }\n\n return {\n get,\n set,\n configurable: descriptor.configurable,\n enumerable: descriptor.enumerable,\n };\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Elevation } from './lib/elevation.js';
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'md-elevation': MdElevation;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The `<md-elevation>` custom element with default styles.
|
|
14
|
+
*
|
|
15
|
+
* Elevation is the relative distance between two surfaces along the z-axis.
|
|
16
|
+
*/
|
|
17
|
+
export declare class MdElevation extends Elevation {
|
|
18
|
+
static styles: import("lit").CSSResult[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate } from "tslib";
|
|
7
|
+
import { customElement } from 'lit/decorators.js';
|
|
8
|
+
import { Elevation } from './lib/elevation.js';
|
|
9
|
+
import { styles } from './lib/elevation-styles.css.js';
|
|
10
|
+
/**
|
|
11
|
+
* The `<md-elevation>` custom element with default styles.
|
|
12
|
+
*
|
|
13
|
+
* Elevation is the relative distance between two surfaces along the z-axis.
|
|
14
|
+
*/
|
|
15
|
+
let MdElevation = class MdElevation extends Elevation {
|
|
16
|
+
};
|
|
17
|
+
MdElevation.styles = [styles];
|
|
18
|
+
MdElevation = __decorate([
|
|
19
|
+
customElement('md-elevation')
|
|
20
|
+
], MdElevation);
|
|
21
|
+
export { MdElevation };
|
|
22
|
+
//# sourceMappingURL=elevation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation.js","sourceRoot":"","sources":["elevation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAQrD;;;;GAIG;AAEH,IAAa,WAAW,GAAxB,MAAa,WAAY,SAAQ,SAAS;CAEzC,CAAA;AADiB,kBAAM,GAAG,CAAC,MAAM,CAAE,CAAA;AADvB,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAEvB;SAFY,WAAW","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {customElement} from 'lit/decorators.js';\n\nimport {Elevation} from './lib/elevation.js';\nimport {styles} from './lib/elevation-styles.css.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-elevation': MdElevation;\n }\n}\n\n/**\n * The `<md-elevation>` custom element with default styles.\n *\n * Elevation is the relative distance between two surfaces along the z-axis.\n */\n@customElement('md-elevation')\nexport class MdElevation extends Elevation {\n static override styles = [styles];\n}\n"]}
|