@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/radio/lib/radio.js
CHANGED
|
@@ -6,30 +6,34 @@
|
|
|
6
6
|
import { __decorate, __metadata } from "tslib";
|
|
7
7
|
// Style preference for leading underscores.
|
|
8
8
|
// tslint:disable:strip-private-property-underscore
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { ariaProperty } from '@material/web/decorators/aria-property.js';
|
|
14
|
-
import { pointerPress, shouldShowStrongFocus } from '@material/web/focus/strong-focus.js';
|
|
15
|
-
import { MdRipple } from '@material/web/ripple/ripple.js';
|
|
16
|
-
import { html } from 'lit';
|
|
17
|
-
import { property, query, state } from 'lit/decorators.js';
|
|
9
|
+
import '../../focus/focus-ring.js';
|
|
10
|
+
import '../../ripple/ripple.js';
|
|
11
|
+
import { html, LitElement, nothing } from 'lit';
|
|
12
|
+
import { property, query, queryAsync, state } from 'lit/decorators.js';
|
|
18
13
|
import { classMap } from 'lit/directives/class-map.js';
|
|
19
|
-
import {
|
|
14
|
+
import { when } from 'lit/directives/when.js';
|
|
15
|
+
import { dispatchActivationClick, isActivationClick } from '../../controller/events.js';
|
|
16
|
+
import { FormController, getFormValue } from '../../controller/form-controller.js';
|
|
17
|
+
import { ariaProperty } from '../../decorators/aria-property.js';
|
|
18
|
+
import { pointerPress, shouldShowStrongFocus } from '../../focus/strong-focus.js';
|
|
19
|
+
import { ripple } from '../../ripple/directive.js';
|
|
20
20
|
import { SingleSelectionController } from './single-selection-controller.js';
|
|
21
21
|
/**
|
|
22
22
|
* @fires checked
|
|
23
23
|
* @soyCompatible
|
|
24
24
|
*/
|
|
25
|
-
export class Radio extends
|
|
25
|
+
export class Radio extends LitElement {
|
|
26
26
|
constructor() {
|
|
27
|
-
super(
|
|
28
|
-
this._checked = false;
|
|
29
|
-
this.showFocusRing = false;
|
|
30
|
-
this.global = false;
|
|
27
|
+
super();
|
|
28
|
+
this._checked = false; // tslint:disable-line:enforce-name-casing
|
|
31
29
|
this.disabled = false;
|
|
30
|
+
/**
|
|
31
|
+
* The element value to use in form submission when checked.
|
|
32
|
+
*/
|
|
32
33
|
this.value = 'on';
|
|
34
|
+
/**
|
|
35
|
+
* The HTML name to use in form submission.
|
|
36
|
+
*/
|
|
33
37
|
this.name = '';
|
|
34
38
|
/**
|
|
35
39
|
* Touch target extends beyond visual boundary of a component by default.
|
|
@@ -43,12 +47,25 @@ export class Radio extends ActionElement {
|
|
|
43
47
|
*/
|
|
44
48
|
this.formElementTabIndex = 0;
|
|
45
49
|
this.focused = false;
|
|
46
|
-
this.
|
|
50
|
+
this.showFocusRing = false;
|
|
51
|
+
this.showRipple = false;
|
|
52
|
+
this.getRipple = () => {
|
|
53
|
+
this.showRipple = true;
|
|
54
|
+
return this.ripple;
|
|
55
|
+
};
|
|
56
|
+
this.renderRipple = () => {
|
|
57
|
+
return html `<md-ripple unbounded ?disabled=${this.disabled}></md-ripple>`;
|
|
58
|
+
};
|
|
59
|
+
this.addController(new FormController(this));
|
|
60
|
+
this.addEventListener('click', (event) => {
|
|
61
|
+
if (!isActivationClick(event)) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
this.focus();
|
|
65
|
+
dispatchActivationClick(this.input);
|
|
66
|
+
});
|
|
47
67
|
}
|
|
48
68
|
get checked() {
|
|
49
|
-
return this.getChecked();
|
|
50
|
-
}
|
|
51
|
-
getChecked() {
|
|
52
69
|
return this._checked;
|
|
53
70
|
}
|
|
54
71
|
/**
|
|
@@ -71,9 +88,6 @@ export class Radio extends ActionElement {
|
|
|
71
88
|
* and we couldn't tell that radio1 was the most recently checked.
|
|
72
89
|
*/
|
|
73
90
|
set checked(isChecked) {
|
|
74
|
-
this.setChecked(isChecked);
|
|
75
|
-
}
|
|
76
|
-
setChecked(isChecked) {
|
|
77
91
|
const oldValue = this._checked;
|
|
78
92
|
if (isChecked === oldValue) {
|
|
79
93
|
return;
|
|
@@ -85,17 +99,17 @@ export class Radio extends ActionElement {
|
|
|
85
99
|
// TODO(b/168543810): Remove triggering event on programmatic API call.
|
|
86
100
|
this.dispatchEvent(new Event('checked', { bubbles: true, composed: true }));
|
|
87
101
|
}
|
|
88
|
-
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
102
|
+
/**
|
|
103
|
+
* The associated form element with which this element's value will submit.
|
|
104
|
+
*/
|
|
105
|
+
get form() {
|
|
106
|
+
return this.closest('form');
|
|
92
107
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return html `<md-focus-ring .visible="${this.showFocusRing}"></md-focus-ring>`;
|
|
108
|
+
[getFormValue]() {
|
|
109
|
+
return this.checked ? this.value : null;
|
|
96
110
|
}
|
|
97
|
-
|
|
98
|
-
|
|
111
|
+
focus() {
|
|
112
|
+
this.input?.focus();
|
|
99
113
|
}
|
|
100
114
|
connectedCallback() {
|
|
101
115
|
super.connectedCallback();
|
|
@@ -127,46 +141,15 @@ export class Radio extends ActionElement {
|
|
|
127
141
|
this.selectionController = undefined;
|
|
128
142
|
}
|
|
129
143
|
updated(changedProperties) {
|
|
130
|
-
if (changedProperties.has('checked') && this.
|
|
131
|
-
this.
|
|
144
|
+
if (changedProperties.has('checked') && this.input) {
|
|
145
|
+
this.input.checked = this.checked;
|
|
132
146
|
if (!this.checked) {
|
|
133
147
|
// Remove focus ring when unchecked on other radio programmatically.
|
|
134
148
|
// Blur on input since this determines the focus style.
|
|
135
|
-
this.
|
|
149
|
+
this.input.blur();
|
|
136
150
|
}
|
|
137
151
|
}
|
|
138
152
|
}
|
|
139
|
-
createAdapter() { }
|
|
140
|
-
beginPress({ positionEvent }) {
|
|
141
|
-
this.ripple.beginPress(positionEvent);
|
|
142
|
-
}
|
|
143
|
-
endPress({ cancelled }) {
|
|
144
|
-
this.ripple.endPress();
|
|
145
|
-
if (cancelled) {
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
super.endPress({
|
|
149
|
-
cancelled,
|
|
150
|
-
actionData: { checked: this.formElement.checked, value: this.formElement.value }
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
click() {
|
|
154
|
-
this.formElement.focus();
|
|
155
|
-
this.formElement.click();
|
|
156
|
-
}
|
|
157
|
-
handleFocus() {
|
|
158
|
-
this.focused = true;
|
|
159
|
-
this.showFocusRing = shouldShowStrongFocus();
|
|
160
|
-
}
|
|
161
|
-
handleBlur() {
|
|
162
|
-
this.focused = false;
|
|
163
|
-
this.showFocusRing = false;
|
|
164
|
-
}
|
|
165
|
-
setFormData(formData) {
|
|
166
|
-
if (this.name && this.checked) {
|
|
167
|
-
formData.append(this.name, this.value);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
153
|
/**
|
|
171
154
|
* @soyTemplate
|
|
172
155
|
* @soyAttributes radioAttributes: input
|
|
@@ -187,44 +170,34 @@ export class Radio extends ActionElement {
|
|
|
187
170
|
class="md3-radio__native-control"
|
|
188
171
|
type="radio"
|
|
189
172
|
name="${this.name}"
|
|
190
|
-
aria-label="${
|
|
191
|
-
|
|
192
|
-
aria-describedby="${ifDefined(this.ariaDescribedBy)}"
|
|
193
|
-
?checked="${this.checked}"
|
|
173
|
+
aria-label="${this.ariaLabel || nothing}"
|
|
174
|
+
.checked="${this.checked}"
|
|
194
175
|
.value="${this.value}"
|
|
195
176
|
?disabled="${this.disabled}"
|
|
196
|
-
@change="${this.
|
|
177
|
+
@change="${this.handleChange}"
|
|
197
178
|
@focus="${this.handleFocus}"
|
|
198
|
-
@click="${this.handleClick}"
|
|
199
179
|
@blur="${this.handleBlur}"
|
|
200
|
-
@pointerenter=${this.handlePointerEnter}
|
|
201
180
|
@pointerdown=${this.handlePointerDown}
|
|
202
|
-
|
|
203
|
-
@pointercancel=${this.handlePointerCancel}
|
|
204
|
-
@pointerleave=${this.handlePointerLeave}
|
|
181
|
+
${ripple(this.getRipple)}
|
|
205
182
|
>
|
|
206
183
|
<div class="md3-radio__background">
|
|
207
184
|
<div class="md3-radio__outer-circle"></div>
|
|
208
185
|
<div class="md3-radio__inner-circle"></div>
|
|
209
186
|
</div>
|
|
210
187
|
<div class="md3-radio__ripple">
|
|
211
|
-
${this.renderRipple
|
|
188
|
+
${when(this.showRipple, this.renderRipple)}
|
|
212
189
|
</div>
|
|
213
190
|
</div>`;
|
|
214
191
|
}
|
|
215
|
-
|
|
216
|
-
this.
|
|
192
|
+
handleBlur() {
|
|
193
|
+
this.focused = false;
|
|
194
|
+
this.showFocusRing = false;
|
|
217
195
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
pointerPress();
|
|
196
|
+
handleFocus() {
|
|
197
|
+
this.focused = true;
|
|
221
198
|
this.showFocusRing = shouldShowStrongFocus();
|
|
222
199
|
}
|
|
223
|
-
|
|
224
|
-
super.handlePointerLeave(e);
|
|
225
|
-
this.ripple.endHover();
|
|
226
|
-
}
|
|
227
|
-
changeHandler() {
|
|
200
|
+
handleChange() {
|
|
228
201
|
if (this.disabled) {
|
|
229
202
|
return;
|
|
230
203
|
}
|
|
@@ -235,23 +208,16 @@ export class Radio extends ActionElement {
|
|
|
235
208
|
composed: true,
|
|
236
209
|
}));
|
|
237
210
|
}
|
|
211
|
+
handlePointerDown(event) {
|
|
212
|
+
pointerPress();
|
|
213
|
+
this.showFocusRing = shouldShowStrongFocus();
|
|
214
|
+
}
|
|
215
|
+
renderFocusRing() {
|
|
216
|
+
return html `<md-focus-ring .visible=${this.showFocusRing}></md-focus-ring>`;
|
|
217
|
+
}
|
|
238
218
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
__metadata("design:type", HTMLInputElement)
|
|
242
|
-
], Radio.prototype, "formElement", void 0);
|
|
243
|
-
__decorate([
|
|
244
|
-
query('md-ripple'),
|
|
245
|
-
__metadata("design:type", MdRipple)
|
|
246
|
-
], Radio.prototype, "ripple", void 0);
|
|
247
|
-
__decorate([
|
|
248
|
-
state(),
|
|
249
|
-
__metadata("design:type", Object)
|
|
250
|
-
], Radio.prototype, "showFocusRing", void 0);
|
|
251
|
-
__decorate([
|
|
252
|
-
property({ type: Boolean }),
|
|
253
|
-
__metadata("design:type", Object)
|
|
254
|
-
], Radio.prototype, "global", void 0);
|
|
219
|
+
Radio.shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true };
|
|
220
|
+
Radio.formAssociated = true;
|
|
255
221
|
__decorate([
|
|
256
222
|
property({ type: Boolean, reflect: true }),
|
|
257
223
|
__metadata("design:type", Boolean),
|
|
@@ -266,7 +232,7 @@ __decorate([
|
|
|
266
232
|
__metadata("design:type", Object)
|
|
267
233
|
], Radio.prototype, "value", void 0);
|
|
268
234
|
__decorate([
|
|
269
|
-
property({ type: String }),
|
|
235
|
+
property({ type: String, reflect: true }),
|
|
270
236
|
__metadata("design:type", Object)
|
|
271
237
|
], Radio.prototype, "name", void 0);
|
|
272
238
|
__decorate([
|
|
@@ -277,26 +243,30 @@ __decorate([
|
|
|
277
243
|
property({ type: Number }),
|
|
278
244
|
__metadata("design:type", Object)
|
|
279
245
|
], Radio.prototype, "formElementTabIndex", void 0);
|
|
280
|
-
__decorate([
|
|
281
|
-
state(),
|
|
282
|
-
__metadata("design:type", Object)
|
|
283
|
-
], Radio.prototype, "focused", void 0);
|
|
284
246
|
__decorate([
|
|
285
247
|
ariaProperty // tslint:disable-line:no-new-decorators
|
|
286
248
|
,
|
|
287
|
-
property({ attribute: 'aria-label' }),
|
|
249
|
+
property({ attribute: 'data-aria-label', noAccessor: true }),
|
|
288
250
|
__metadata("design:type", String)
|
|
289
251
|
], Radio.prototype, "ariaLabel", void 0);
|
|
290
252
|
__decorate([
|
|
291
|
-
|
|
292
|
-
,
|
|
293
|
-
|
|
294
|
-
__metadata("design:type", String)
|
|
295
|
-
], Radio.prototype, "ariaLabelledBy", void 0);
|
|
253
|
+
state(),
|
|
254
|
+
__metadata("design:type", Object)
|
|
255
|
+
], Radio.prototype, "focused", void 0);
|
|
296
256
|
__decorate([
|
|
297
|
-
|
|
298
|
-
,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
257
|
+
query('input'),
|
|
258
|
+
__metadata("design:type", HTMLInputElement)
|
|
259
|
+
], Radio.prototype, "input", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
queryAsync('md-ripple'),
|
|
262
|
+
__metadata("design:type", Promise)
|
|
263
|
+
], Radio.prototype, "ripple", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
state(),
|
|
266
|
+
__metadata("design:type", Object)
|
|
267
|
+
], Radio.prototype, "showFocusRing", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
state(),
|
|
270
|
+
__metadata("design:type", Object)
|
|
271
|
+
], Radio.prototype, "showRipple", void 0);
|
|
302
272
|
//# sourceMappingURL=radio.js.map
|
package/radio/lib/radio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.js","sourceRoot":"","sources":["radio.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,4CAA4C;AAC5C,mDAAmD;AAEnD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AAExC,OAAO,EAAC,aAAa,EAAmC,MAAM,+CAA+C,CAAC;AAC9G,OAAO,EAAC,YAAY,IAAI,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAC,YAAY,EAAC,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAC,YAAY,EAAE,qBAAqB,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EAAC,CAAC;;6CACjB;AAKxB;IAFC,kBAAkB,CAAE,wCAAwC;;IAC5D,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAC,CAAC;;8CACrB","sourcesContent":["/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Style preference for leading underscores.\n// tslint:disable:strip-private-property-underscore\n\nimport '@material/web/focus/focus-ring.js';\nimport '@material/web/ripple/ripple.js';\n\nimport {ActionElement, BeginPressConfig, EndPressConfig} from '@material/web/actionelement/action-element.js';\nimport {ariaProperty as legacyAriaProperty} from '@material/web/compat/base/aria-property.js';\nimport {ariaProperty} from '@material/web/decorators/aria-property.js';\nimport {pointerPress, shouldShowStrongFocus} from '@material/web/focus/strong-focus.js';\nimport {MdRipple} from '@material/web/ripple/ripple.js';\nimport {html, PropertyValues, TemplateResult} from 'lit';\nimport {property, query, state} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {ifDefined} from 'lit/directives/if-defined.js';\n\nimport {SingleSelectionController} from './single-selection-controller.js';\n\n/**\n * @fires checked\n * @soyCompatible\n */\nexport class Radio extends ActionElement {\n @query('input') protected formElement!: HTMLInputElement;\n\n @query('md-ripple') ripple!: MdRipple;\n\n protected _checked = false;\n\n @state() protected showFocusRing = false;\n\n @property({type: Boolean}) global = false;\n\n @property({type: Boolean, reflect: true})\n get checked(): boolean {\n return this.getChecked();\n }\n\n protected getChecked(): boolean {\n return this._checked;\n }\n\n /**\n * We define our own getter/setter for `checked` because we need to track\n * changes to it synchronously.\n *\n * The order in which the `checked` property is set across radio buttons\n * within the same group is very important. However, we can't rely on\n * UpdatingElement's `updated` callback to observe these changes (which is\n * also what the `@observer` decorator uses), because it batches changes to\n * all properties.\n *\n * Consider:\n *\n * radio1.disabled = true;\n * radio2.checked = true;\n * radio1.checked = true;\n *\n * In this case we'd first see all changes for radio1, and then for radio2,\n * and we couldn't tell that radio1 was the most recently checked.\n */\n set checked(isChecked: boolean) {\n this.setChecked(isChecked);\n }\n\n protected setChecked(isChecked: boolean) {\n const oldValue = this._checked;\n if (isChecked === oldValue) {\n return;\n }\n this._checked = isChecked;\n this.selectionController?.update(this);\n\n this.requestUpdate('checked', oldValue);\n\n // useful when unchecks self and wrapping element needs to synchronize\n // TODO(b/168543810): Remove triggering event on programmatic API call.\n this.dispatchEvent(new Event('checked', {bubbles: true, composed: true}));\n }\n\n @property({type: Boolean}) override disabled = false;\n\n @property({type: String}) value = 'on';\n\n @property({type: String}) name = '';\n\n /**\n * Touch target extends beyond visual boundary of a component by default.\n * Set to `true` to remove touch target added to the component.\n * @see https://material.io/design/usability/accessibility.html\n */\n @property({type: Boolean}) reducedTouchTarget = false;\n\n protected selectionController?: SingleSelectionController;\n\n /**\n * input's tabindex is updated based on checked status.\n * Tab navigation will be removed from unchecked radios.\n */\n @property({type: Number}) formElementTabIndex = 0;\n\n @state() protected focused = false;\n\n /** @soyPrefixAttribute */\n @ariaProperty // tslint:disable-line:no-new-decorators\n @property({attribute: 'aria-label'})\n override ariaLabel!: string;\n\n /** @soyPrefixAttribute */\n @legacyAriaProperty // tslint:disable-line:no-new-decorators\n @property({attribute: 'aria-labelledby'})\n ariaLabelledBy!: string;\n\n /** @soyPrefixAttribute */\n @legacyAriaProperty // tslint:disable-line:no-new-decorators\n @property({type: String, attribute: 'aria-describedby'})\n ariaDescribedBy!: undefined|string;\n\n protected rippleElement: MdRipple|null = null;\n\n /** @soyTemplate */\n protected renderRipple(): TemplateResult|string {\n return html`<md-ripple unbounded\n ?disabled=\"${this.disabled}\"></md-ripple>`;\n }\n\n /** @soyTemplate */\n protected renderFocusRing(): TemplateResult {\n return html`<md-focus-ring .visible=\"${\n this.showFocusRing}\"></md-focus-ring>`;\n }\n\n get isRippleActive() {\n return false;\n }\n\n override connectedCallback() {\n super.connectedCallback();\n // Note that we must defer creating the selection controller until the\n // element has connected, because selection controllers are keyed by the\n // radio's shadow root. For example, if we're stamping in a lit map\n // or repeat, then we'll be constructed before we're added to a root node.\n //\n // Also note if we aren't using native shadow DOM, we still need a\n // SelectionController, because we should update checked status of other\n // radios in the group when selection changes. It also simplifies\n // implementation and testing to use one in all cases.\n //\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n this.selectionController = SingleSelectionController.getController(this);\n this.selectionController.register(this);\n\n // Radios maybe checked before connected, update selection as soon it is\n // connected to DOM. Last checked radio button in the DOM will be selected.\n //\n // NOTE: If we update selection only after firstUpdate() we might mistakenly\n // update checked status before other radios are rendered.\n this.selectionController.update(this);\n }\n\n override disconnectedCallback() {\n // The controller is initialized in connectedCallback, so if we are in\n // disconnectedCallback then it must be initialized.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.selectionController!.unregister(this);\n this.selectionController = undefined;\n }\n\n override updated(changedProperties: PropertyValues) {\n if (changedProperties.has('checked') && this.formElement) {\n this.formElement.checked = this.checked;\n if (!this.checked) {\n // Remove focus ring when unchecked on other radio programmatically.\n // Blur on input since this determines the focus style.\n this.formElement?.blur();\n }\n }\n }\n\n protected createAdapter() {}\n\n override beginPress({positionEvent}: BeginPressConfig) {\n this.ripple.beginPress(positionEvent);\n }\n\n override endPress({cancelled}: EndPressConfig) {\n this.ripple.endPress();\n\n if (cancelled) {\n return;\n }\n\n super.endPress({\n cancelled,\n actionData:\n {checked: this.formElement.checked, value: this.formElement.value}\n });\n }\n\n override click() {\n this.formElement.focus();\n this.formElement.click();\n }\n\n protected handleFocus() {\n this.focused = true;\n this.showFocusRing = shouldShowStrongFocus();\n }\n\n protected handleBlur() {\n this.focused = false;\n this.showFocusRing = false;\n }\n\n protected setFormData(formData: FormData) {\n if (this.name && this.checked) {\n formData.append(this.name, this.value);\n }\n }\n\n /**\n * @soyTemplate\n * @soyAttributes radioAttributes: input\n * @soyClasses radioClasses: .md3-radio\n */\n protected override render(): TemplateResult {\n /** @classMap */\n const classes = {\n 'md3-radio--touch': !this.reducedTouchTarget,\n 'md3-ripple-upgraded--background-focused': this.focused,\n 'md3-radio--disabled': this.disabled,\n };\n\n return html`\n <div class=\"md3-radio ${classMap(classes)}\">\n ${this.renderFocusRing()}\n <input\n tabindex=\"${this.formElementTabIndex}\"\n class=\"md3-radio__native-control\"\n type=\"radio\"\n name=\"${this.name}\"\n aria-label=\"${ifDefined(this.ariaLabel)}\"\n aria-labelledby=\"${ifDefined(this.ariaLabelledBy)}\"\n aria-describedby=\"${ifDefined(this.ariaDescribedBy)}\"\n ?checked=\"${this.checked}\"\n .value=\"${this.value}\"\n ?disabled=\"${this.disabled}\"\n @change=\"${this.changeHandler}\"\n @focus=\"${this.handleFocus}\"\n @click=\"${this.handleClick}\"\n @blur=\"${this.handleBlur}\"\n @pointerenter=${this.handlePointerEnter}\n @pointerdown=${this.handlePointerDown}\n @pointerup=${this.handlePointerUp}\n @pointercancel=${this.handlePointerCancel}\n @pointerleave=${this.handlePointerLeave}\n >\n <div class=\"md3-radio__background\">\n <div class=\"md3-radio__outer-circle\"></div>\n <div class=\"md3-radio__inner-circle\"></div>\n </div>\n <div class=\"md3-radio__ripple\">\n ${this.renderRipple()}\n </div>\n </div>`;\n }\n\n protected handlePointerEnter() {\n this.ripple.beginHover();\n }\n\n override handlePointerDown(event: PointerEvent) {\n super.handlePointerDown(event);\n\n pointerPress();\n this.showFocusRing = shouldShowStrongFocus();\n }\n\n override handlePointerLeave(e: PointerEvent) {\n super.handlePointerLeave(e);\n this.ripple.endHover();\n }\n\n protected changeHandler() {\n if (this.disabled) {\n return;\n }\n\n // Per spec, the change event on a radio input always represents checked.\n this.checked = true;\n this.dispatchEvent(new Event('change', {\n bubbles: true,\n composed: true,\n }));\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"radio.js","sourceRoot":"","sources":["radio.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,4CAA4C;AAC5C,mDAAmD;AAEnD,OAAO,2BAA2B,CAAC;AACnC,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAC,IAA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,UAAU,CAAC,iBAAiB,EAAE,cAAc,EAAE,IAAI,EAAC,CAAC;AAEtE,oBAAc,GAAG,IAAI,CAAC;AAG7B;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;;oCAGxC;AAsC0B;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;uCAAkB;AAKlB;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;oCAAc;AAKE;IAAxC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;mCAAW;AAOxB;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;iDAA4B;AAM5B;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;kDAAyB;AAIlD;IAFC,YAAY,CAAE,wCAAwC;;IACtD,QAAQ,CAAC,EAAC,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,EAAC,CAAC;;wCAC/B;AASnB;IAAR,KAAK,EAAE;;sCAAyB;AACjB;IAAf,KAAK,CAAC,OAAO,CAAC;8BAA0B,gBAAgB;oCAAM;AACtC;IAAxB,UAAU,CAAC,WAAW,CAAC;;qCAAkD;AAEjE;IAAR,KAAK,EAAE;;4CAA+B;AAC9B;IAAR,KAAK,EAAE;;yCAA4B","sourcesContent":["/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Style preference for leading underscores.\n// tslint:disable:strip-private-property-underscore\n\nimport '../../focus/focus-ring.js';\nimport '../../ripple/ripple.js';\n\nimport {html, LitElement, nothing, PropertyValues, TemplateResult} from 'lit';\nimport {property, query, queryAsync, state} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {when} from 'lit/directives/when.js';\n\nimport {dispatchActivationClick, isActivationClick} from '../../controller/events.js';\nimport {FormController, getFormValue} from '../../controller/form-controller.js';\nimport {ariaProperty} from '../../decorators/aria-property.js';\nimport {pointerPress, shouldShowStrongFocus} from '../../focus/strong-focus.js';\nimport {ripple} from '../../ripple/directive.js';\nimport {MdRipple} from '../../ripple/ripple.js';\n\nimport {SingleSelectionController} from './single-selection-controller.js';\n\n/**\n * @fires checked\n * @soyCompatible\n */\nexport class Radio extends LitElement {\n static override shadowRootOptions:\n ShadowRootInit = {...LitElement.shadowRootOptions, delegatesFocus: true};\n\n static formAssociated = true;\n\n @property({type: Boolean, reflect: true})\n get checked(): boolean {\n return this._checked;\n }\n\n /**\n * We define our own getter/setter for `checked` because we need to track\n * changes to it synchronously.\n *\n * The order in which the `checked` property is set across radio buttons\n * within the same group is very important. However, we can't rely on\n * UpdatingElement's `updated` callback to observe these changes (which is\n * also what the `@observer` decorator uses), because it batches changes to\n * all properties.\n *\n * Consider:\n *\n * radio1.disabled = true;\n * radio2.checked = true;\n * radio1.checked = true;\n *\n * In this case we'd first see all changes for radio1, and then for radio2,\n * and we couldn't tell that radio1 was the most recently checked.\n */\n set checked(isChecked: boolean) {\n const oldValue = this._checked;\n if (isChecked === oldValue) {\n return;\n }\n this._checked = isChecked;\n this.selectionController?.update(this);\n\n this.requestUpdate('checked', oldValue);\n\n // useful when unchecks self and wrapping element needs to synchronize\n // TODO(b/168543810): Remove triggering event on programmatic API call.\n this.dispatchEvent(new Event('checked', {bubbles: true, composed: true}));\n }\n\n private _checked = false; // tslint:disable-line:enforce-name-casing\n\n @property({type: Boolean}) disabled = false;\n\n /**\n * The element value to use in form submission when checked.\n */\n @property({type: String}) value = 'on';\n\n /**\n * The HTML name to use in form submission.\n */\n @property({type: String, reflect: true}) name = '';\n\n /**\n * Touch target extends beyond visual boundary of a component by default.\n * Set to `true` to remove touch target added to the component.\n * @see https://material.io/design/usability/accessibility.html\n */\n @property({type: Boolean}) reducedTouchTarget = false;\n\n /**\n * input's tabindex is updated based on checked status.\n * Tab navigation will be removed from unchecked radios.\n */\n @property({type: Number}) formElementTabIndex = 0;\n\n @ariaProperty // tslint:disable-line:no-new-decorators\n @property({attribute: 'data-aria-label', noAccessor: true})\n override ariaLabel!: string;\n\n /**\n * The associated form element with which this element's value will submit.\n */\n get form() {\n return this.closest('form');\n }\n\n @state() private focused = false;\n @query('input') private readonly input!: HTMLInputElement|null;\n @queryAsync('md-ripple') private readonly ripple!: Promise<MdRipple|null>;\n private selectionController?: SingleSelectionController;\n @state() private showFocusRing = false;\n @state() private showRipple = false;\n\n constructor() {\n super();\n this.addController(new FormController(this));\n this.addEventListener('click', (event: Event) => {\n if (!isActivationClick(event)) {\n return;\n }\n this.focus();\n dispatchActivationClick(this.input!);\n });\n }\n\n [getFormValue]() {\n return this.checked ? this.value : null;\n }\n\n override focus() {\n this.input?.focus();\n }\n\n override connectedCallback() {\n super.connectedCallback();\n // Note that we must defer creating the selection controller until the\n // element has connected, because selection controllers are keyed by the\n // radio's shadow root. For example, if we're stamping in a lit map\n // or repeat, then we'll be constructed before we're added to a root node.\n //\n // Also note if we aren't using native shadow DOM, we still need a\n // SelectionController, because we should update checked status of other\n // radios in the group when selection changes. It also simplifies\n // implementation and testing to use one in all cases.\n //\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n this.selectionController = SingleSelectionController.getController(this);\n this.selectionController.register(this);\n\n // Radios maybe checked before connected, update selection as soon it is\n // connected to DOM. Last checked radio button in the DOM will be selected.\n //\n // NOTE: If we update selection only after firstUpdate() we might mistakenly\n // update checked status before other radios are rendered.\n this.selectionController.update(this);\n }\n\n override disconnectedCallback() {\n // The controller is initialized in connectedCallback, so if we are in\n // disconnectedCallback then it must be initialized.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.selectionController!.unregister(this);\n this.selectionController = undefined;\n }\n\n override updated(changedProperties: PropertyValues) {\n if (changedProperties.has('checked') && this.input) {\n this.input.checked = this.checked;\n if (!this.checked) {\n // Remove focus ring when unchecked on other radio programmatically.\n // Blur on input since this determines the focus style.\n this.input.blur();\n }\n }\n }\n\n /**\n * @soyTemplate\n * @soyAttributes radioAttributes: input\n * @soyClasses radioClasses: .md3-radio\n */\n protected override render(): TemplateResult {\n /** @classMap */\n const classes = {\n 'md3-radio--touch': !this.reducedTouchTarget,\n 'md3-ripple-upgraded--background-focused': this.focused,\n 'md3-radio--disabled': this.disabled,\n };\n\n return html`\n <div class=\"md3-radio ${classMap(classes)}\">\n ${this.renderFocusRing()}\n <input\n tabindex=\"${this.formElementTabIndex}\"\n class=\"md3-radio__native-control\"\n type=\"radio\"\n name=\"${this.name}\"\n aria-label=\"${this.ariaLabel || nothing}\"\n .checked=\"${this.checked}\"\n .value=\"${this.value}\"\n ?disabled=\"${this.disabled}\"\n @change=\"${this.handleChange}\"\n @focus=\"${this.handleFocus}\"\n @blur=\"${this.handleBlur}\"\n @pointerdown=${this.handlePointerDown}\n ${ripple(this.getRipple)}\n >\n <div class=\"md3-radio__background\">\n <div class=\"md3-radio__outer-circle\"></div>\n <div class=\"md3-radio__inner-circle\"></div>\n </div>\n <div class=\"md3-radio__ripple\">\n ${when(this.showRipple, this.renderRipple)}\n </div>\n </div>`;\n }\n\n private handleBlur() {\n this.focused = false;\n this.showFocusRing = false;\n }\n\n private handleFocus() {\n this.focused = true;\n this.showFocusRing = shouldShowStrongFocus();\n }\n\n private handleChange() {\n if (this.disabled) {\n return;\n }\n\n // Per spec, the change event on a radio input always represents checked.\n this.checked = true;\n this.dispatchEvent(new Event('change', {\n bubbles: true,\n composed: true,\n }));\n }\n\n private handlePointerDown(event: PointerEvent) {\n pointerPress();\n this.showFocusRing = shouldShowStrongFocus();\n }\n\n private readonly getRipple = () => {\n this.showRipple = true;\n return this.ripple;\n };\n\n private readonly renderRipple = () => {\n return html`<md-ripple unbounded ?disabled=${this.disabled}></md-ripple>`;\n };\n\n private renderFocusRing(): TemplateResult {\n return html`<md-focus-ring .visible=${this.showFocusRing}></md-focus-ring>`;\n }\n}\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Directive, DirectiveParameters, ElementPart, PartInfo } from 'lit/directive.js';
|
|
7
|
+
import { Ripple } from './lib/ripple.js';
|
|
8
|
+
/**
|
|
9
|
+
* Normalized ripple accessor type.
|
|
10
|
+
*
|
|
11
|
+
* Use with `await rippleFunction()`
|
|
12
|
+
*/
|
|
13
|
+
declare type RippleFunction = () => Ripple | null | Promise<Ripple | null>;
|
|
14
|
+
declare class RippleDirective extends Directive {
|
|
15
|
+
private rippleGetter;
|
|
16
|
+
private element?;
|
|
17
|
+
private state;
|
|
18
|
+
private checkBoundsAfterContextMenu;
|
|
19
|
+
private rippleStartEvent;
|
|
20
|
+
private touchTimer;
|
|
21
|
+
private clickTimer;
|
|
22
|
+
constructor(partInfo: PartInfo);
|
|
23
|
+
render(ripple: RippleFunction | Promise<Ripple | null>): symbol;
|
|
24
|
+
handleEvent(event: Event): Promise<void>;
|
|
25
|
+
update(part: ElementPart, [ripple]: DirectiveParameters<this>): symbol;
|
|
26
|
+
/**
|
|
27
|
+
* Returns `true` if
|
|
28
|
+
* - the ripple element is enabled
|
|
29
|
+
* - the pointer is primary for the input type
|
|
30
|
+
* - the pointer is the pointer that started the interaction, or will start
|
|
31
|
+
* the interaction
|
|
32
|
+
* - the pointer is a touch, or the pointer state has the primary button
|
|
33
|
+
* held, or the pointer is hovering
|
|
34
|
+
*/
|
|
35
|
+
private shouldReactToEvent;
|
|
36
|
+
private isTouch;
|
|
37
|
+
/**
|
|
38
|
+
* Check if the event is within the bounds of the element.
|
|
39
|
+
*
|
|
40
|
+
* This is only needed for the "stuck" contextmenu longpress on Chrome.
|
|
41
|
+
*/
|
|
42
|
+
private inBounds;
|
|
43
|
+
private beginPress;
|
|
44
|
+
private endPress;
|
|
45
|
+
private waitForTouchHold;
|
|
46
|
+
private click;
|
|
47
|
+
private contextMenu;
|
|
48
|
+
private pointerDown;
|
|
49
|
+
private pointerUp;
|
|
50
|
+
private pointerCancel;
|
|
51
|
+
private pointerEnter;
|
|
52
|
+
private pointerLeave;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Connects a Ripple element to a node that drives the interaction
|
|
56
|
+
*
|
|
57
|
+
* @param rippleGetter A function that returns an `md-ripple` element
|
|
58
|
+
* @param simulateKeyboardClick For elements that do not issue a click on
|
|
59
|
+
* keyboard interaction, pass `true` to enable press animations on Enter or
|
|
60
|
+
* Spacebar
|
|
61
|
+
*/
|
|
62
|
+
export declare const ripple: (ripple: Promise<Ripple> | RippleFunction) => import("lit-html/directive.js").DirectiveResult<typeof RippleDirective>;
|
|
63
|
+
export {};
|