@material/web 1.0.0-pre.1 → 1.0.0-pre.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +65 -23
- package/button/elevated-button.js.map +1 -1
- package/button/filled-button.js.map +1 -1
- package/button/lib/_elevated-button.scss +41 -42
- package/button/lib/_elevation.scss +16 -24
- package/button/lib/_filled-button.scss +42 -39
- package/button/lib/_icon.scss +16 -24
- package/button/lib/_outlined-button.scss +42 -35
- package/button/lib/_shared.scss +43 -71
- package/button/lib/_text-button.scss +45 -44
- package/button/lib/_tonal-button.scss +40 -41
- package/button/lib/button.d.ts +44 -38
- package/button/lib/button.js +103 -109
- package/button/lib/button.js.map +1 -1
- package/button/lib/elevated-button.d.ts +9 -4
- package/button/lib/elevated-button.js +4 -2
- package/button/lib/elevated-button.js.map +1 -1
- package/button/lib/elevated-styles.css.js +1 -1
- package/button/lib/elevated-styles.css.js.map +1 -1
- package/button/lib/elevated-styles.scss +2 -0
- package/button/lib/filled-button.d.ts +9 -5
- package/button/lib/filled-button.js +4 -3
- package/button/lib/filled-button.js.map +1 -1
- package/button/lib/filled-styles.css.js +1 -1
- package/button/lib/filled-styles.css.js.map +1 -1
- package/button/lib/filled-styles.scss +2 -0
- package/button/lib/outlined-button.d.ts +9 -4
- package/button/lib/outlined-button.js +3 -1
- package/button/lib/outlined-button.js.map +1 -1
- package/button/lib/outlined-styles.css.js +1 -1
- package/button/lib/outlined-styles.css.js.map +1 -1
- package/button/lib/outlined-styles.scss +2 -0
- package/button/lib/shared-elevation-styles.css.js +1 -1
- package/button/lib/shared-elevation-styles.css.js.map +1 -1
- package/button/lib/shared-elevation-styles.scss +2 -0
- 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 +2 -0
- package/button/lib/text-button.d.ts +8 -2
- package/button/lib/text-button.js +3 -1
- package/button/lib/text-button.js.map +1 -1
- package/button/lib/text-styles.css.js +1 -1
- package/button/lib/text-styles.css.js.map +1 -1
- package/button/lib/text-styles.scss +2 -0
- package/button/lib/tonal-button.d.ts +9 -5
- package/button/lib/tonal-button.js +4 -3
- package/button/lib/tonal-button.js.map +1 -1
- package/button/lib/tonal-styles.css.js +1 -1
- package/button/lib/tonal-styles.css.js.map +1 -1
- package/button/lib/tonal-styles.scss +2 -0
- package/button/outlined-button.js.map +1 -1
- package/button/text-button.js.map +1 -1
- package/button/tonal-button.js.map +1 -1
- package/checkbox/checkbox.d.ts +11 -2
- package/checkbox/checkbox.js +11 -2
- package/checkbox/checkbox.js.map +1 -1
- package/checkbox/lib/_checkbox.scss +68 -79
- 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 +2 -0
- package/checkbox/lib/checkbox.d.ts +39 -14
- package/checkbox/lib/checkbox.js +88 -89
- package/checkbox/lib/checkbox.js.map +1 -1
- package/checkbox/lib/forced-colors-styles.css.js +1 -1
- package/checkbox/lib/forced-colors-styles.css.js.map +1 -1
- package/checkbox/lib/forced-colors-styles.scss +2 -0
- package/chips/_assist-chip.scss +6 -0
- package/chips/_filter-chip.scss +6 -0
- package/chips/_input-chip.scss +6 -0
- package/chips/_suggestion-chip.scss +6 -0
- package/chips/assist-chip.d.ts +20 -0
- package/chips/assist-chip.js +25 -0
- package/chips/assist-chip.js.map +1 -0
- package/chips/chip-set.d.ts +20 -0
- package/chips/chip-set.js +23 -0
- package/chips/chip-set.js.map +1 -0
- package/chips/filter-chip.d.ts +20 -0
- package/chips/filter-chip.js +29 -0
- package/chips/filter-chip.js.map +1 -0
- package/chips/harness.d.ts +17 -0
- package/chips/harness.js +34 -0
- package/chips/harness.js.map +1 -0
- package/chips/input-chip.d.ts +20 -0
- package/chips/input-chip.js +26 -0
- package/chips/input-chip.js.map +1 -0
- package/chips/lib/_assist-chip.scss +61 -0
- package/chips/lib/_chip-set.scss +18 -0
- package/chips/lib/_elevated.scss +60 -0
- package/chips/lib/_filter-chip.scss +74 -0
- package/chips/lib/_input-chip.scss +75 -0
- package/chips/lib/_selectable.scss +66 -0
- package/chips/lib/_shared.scss +189 -0
- package/chips/lib/_suggestion-chip.scss +61 -0
- package/chips/lib/_trailing-icon.scss +78 -0
- package/chips/lib/assist-chip.d.ts +23 -0
- package/chips/lib/assist-chip.js +73 -0
- package/chips/lib/assist-chip.js.map +1 -0
- package/chips/lib/assist-styles.css.js +9 -0
- package/chips/lib/assist-styles.css.js.map +1 -0
- package/chips/lib/assist-styles.scss +10 -0
- package/chips/lib/chip-set-styles.css.js +9 -0
- package/chips/lib/chip-set-styles.css.js.map +1 -0
- package/chips/lib/chip-set-styles.scss +10 -0
- package/chips/lib/chip-set.d.ts +26 -0
- package/chips/lib/chip-set.js +165 -0
- package/chips/lib/chip-set.js.map +1 -0
- package/chips/lib/chip.d.ts +45 -0
- package/chips/lib/chip.js +95 -0
- package/chips/lib/chip.js.map +1 -0
- package/chips/lib/elevated-styles.css.js +9 -0
- package/chips/lib/elevated-styles.css.js.map +1 -0
- package/chips/lib/elevated-styles.scss +10 -0
- package/chips/lib/filter-chip.d.ts +31 -0
- package/chips/lib/filter-chip.js +102 -0
- package/chips/lib/filter-chip.js.map +1 -0
- package/chips/lib/filter-styles.css.js +9 -0
- package/chips/lib/filter-styles.css.js.map +1 -0
- package/chips/lib/filter-styles.scss +10 -0
- package/chips/lib/input-chip.d.ts +27 -0
- package/chips/lib/input-chip.js +107 -0
- package/chips/lib/input-chip.js.map +1 -0
- package/chips/lib/input-styles.css.js +9 -0
- package/chips/lib/input-styles.css.js.map +1 -0
- package/chips/lib/input-styles.scss +10 -0
- package/chips/lib/multi-action-chip.d.ts +23 -0
- package/chips/lib/multi-action-chip.js +80 -0
- package/chips/lib/multi-action-chip.js.map +1 -0
- package/chips/lib/selectable-styles.css.js +9 -0
- package/chips/lib/selectable-styles.css.js.map +1 -0
- package/chips/lib/selectable-styles.scss +10 -0
- package/chips/lib/shared-styles.css.js +9 -0
- package/chips/lib/shared-styles.css.js.map +1 -0
- package/chips/lib/shared-styles.scss +10 -0
- package/chips/lib/suggestion-chip.d.ts +11 -0
- package/chips/lib/suggestion-chip.js +14 -0
- package/chips/lib/suggestion-chip.js.map +1 -0
- package/chips/lib/suggestion-styles.css.js +9 -0
- package/chips/lib/suggestion-styles.css.js.map +1 -0
- package/chips/lib/suggestion-styles.scss +10 -0
- package/chips/lib/trailing-icon-styles.css.js +9 -0
- package/chips/lib/trailing-icon-styles.css.js.map +1 -0
- package/chips/lib/trailing-icon-styles.scss +10 -0
- package/chips/lib/trailing-icons.d.ts +15 -0
- package/chips/lib/trailing-icons.js +38 -0
- package/chips/lib/trailing-icons.js.map +1 -0
- package/chips/suggestion-chip.d.ts +20 -0
- package/chips/suggestion-chip.js +25 -0
- package/chips/suggestion-chip.js.map +1 -0
- package/circularprogress/_circular-progress.scss +6 -0
- package/circularprogress/circular-progress.d.ts +24 -0
- package/circularprogress/circular-progress.js +27 -0
- package/circularprogress/circular-progress.js.map +1 -0
- package/circularprogress/harness.d.ts +13 -0
- package/circularprogress/harness.js +16 -0
- package/circularprogress/harness.js.map +1 -0
- package/circularprogress/lib/_circular-progress.scss +288 -0
- package/circularprogress/lib/circular-progress-styles.css.js +9 -0
- package/circularprogress/lib/circular-progress-styles.css.js.map +1 -0
- package/circularprogress/lib/circular-progress-styles.scss +8 -0
- package/circularprogress/lib/circular-progress.d.ts +27 -0
- package/circularprogress/lib/circular-progress.js +94 -0
- package/circularprogress/lib/circular-progress.js.map +1 -0
- package/dialog/_dialog.scss +6 -0
- package/dialog/dialog.d.ts +38 -0
- package/dialog/dialog.js +41 -0
- package/dialog/dialog.js.map +1 -0
- package/dialog/harness.d.ts +18 -0
- package/dialog/harness.js +58 -0
- package/dialog/harness.js.map +1 -0
- package/dialog/lib/_dialog.scss +376 -0
- package/dialog/lib/_tokens.scss +85 -0
- package/dialog/lib/dialog-styles.css.js +9 -0
- package/dialog/lib/dialog-styles.css.js.map +1 -0
- package/dialog/lib/dialog-styles.scss +10 -0
- package/dialog/lib/dialog.d.ts +190 -0
- package/dialog/lib/dialog.js +553 -0
- package/dialog/lib/dialog.js.map +1 -0
- package/divider/_divider.scss +6 -0
- package/divider/divider.d.ts +24 -0
- package/divider/divider.js +27 -0
- package/divider/divider.js.map +1 -0
- package/divider/lib/_divider.scss +64 -0
- package/divider/lib/divider-styles.css.js +9 -0
- package/divider/lib/divider-styles.css.js.map +1 -0
- package/divider/lib/divider-styles.scss +10 -0
- package/divider/lib/divider.d.ts +23 -0
- package/divider/lib/divider.js +38 -0
- package/divider/lib/divider.js.map +1 -0
- package/elevation/elevation.js.map +1 -1
- package/elevation/lib/_elevation.scss +21 -74
- package/elevation/lib/elevation-styles.css.js +1 -1
- package/elevation/lib/elevation-styles.css.js.map +1 -1
- package/elevation/lib/elevation-styles.scss +2 -0
- package/elevation/lib/elevation.d.ts +1 -9
- package/elevation/lib/elevation.js +1 -25
- package/elevation/lib/elevation.js.map +1 -1
- package/fab/_fab.scss +1 -0
- package/fab/branded-fab.d.ts +56 -0
- package/fab/branded-fab.js +56 -0
- package/fab/branded-fab.js.map +1 -0
- package/fab/fab.d.ts +25 -5
- package/fab/fab.js +27 -10
- package/fab/fab.js.map +1 -1
- package/fab/harness.d.ts +1 -2
- package/fab/harness.js +1 -1
- package/fab/harness.js.map +1 -1
- package/fab/lib/_fab-branded.scss +81 -0
- package/fab/lib/_fab.scss +219 -19
- package/fab/lib/_shared.scss +163 -152
- package/fab/lib/fab-branded-styles.css.js +9 -0
- package/fab/lib/fab-branded-styles.css.js.map +1 -0
- package/fab/lib/fab-branded-styles.scss +10 -0
- 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 +2 -0
- package/fab/lib/fab.d.ts +18 -10
- package/fab/lib/fab.js +19 -12
- package/fab/lib/fab.js.map +1 -1
- package/fab/lib/forced-colors-styles.css.js +9 -0
- package/fab/lib/forced-colors-styles.css.js.map +1 -0
- package/fab/lib/forced-colors-styles.scss +26 -0
- package/fab/lib/shared-styles.css.js +9 -0
- package/fab/lib/shared-styles.css.js.map +1 -0
- package/fab/lib/shared-styles.scss +10 -0
- package/fab/lib/shared.d.ts +46 -0
- package/fab/lib/shared.js +99 -0
- package/fab/lib/shared.js.map +1 -0
- package/field/filled-field.d.ts +1 -1
- package/field/filled-field.js +1 -1
- package/field/filled-field.js.map +1 -1
- package/field/harness.js +1 -1
- package/field/harness.js.map +1 -1
- package/field/lib/_content.scss +120 -57
- package/field/lib/_filled-field.scss +117 -136
- package/field/lib/_label.scss +27 -65
- package/field/lib/_outlined-field.scss +143 -128
- package/field/lib/_shared.scss +29 -45
- package/field/lib/_supporting-text.scss +25 -52
- package/field/lib/field.d.ts +19 -34
- package/field/lib/field.js +143 -160
- package/field/lib/field.js.map +1 -1
- package/field/lib/filled-field.d.ts +5 -16
- package/field/lib/filled-field.js +8 -70
- package/field/lib/filled-field.js.map +1 -1
- package/field/lib/filled-styles.css.js +1 -1
- package/field/lib/filled-styles.css.js.map +1 -1
- package/field/lib/outlined-field.d.ts +4 -10
- package/field/lib/outlined-field.js +13 -33
- package/field/lib/outlined-field.js.map +1 -1
- package/field/lib/outlined-styles.css.js +1 -1
- package/field/lib/outlined-styles.css.js.map +1 -1
- package/field/lib/shared-styles.css.js +1 -1
- package/field/lib/shared-styles.css.js.map +1 -1
- package/field/outlined-field.d.ts +1 -1
- package/field/outlined-field.js +1 -1
- package/field/outlined-field.js.map +1 -1
- package/focus/focus-ring.d.ts +2 -1
- package/focus/focus-ring.js +2 -1
- package/focus/focus-ring.js.map +1 -1
- package/focus/lib/_focus-ring.scss +103 -42
- 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 +2 -0
- package/focus/lib/focus-ring.d.ts +22 -16
- package/focus/lib/focus-ring.js +57 -22
- package/focus/lib/focus-ring.js.map +1 -1
- package/icon/icon.d.ts +1 -1
- package/icon/icon.js +1 -1
- package/icon/icon.js.map +1 -1
- package/icon/lib/_icon.scss +6 -2
- package/icon/lib/_md-comp-icon.scss +1 -2
- package/icon/lib/icon-styles.css.js +1 -1
- package/icon/lib/icon-styles.css.js.map +1 -1
- package/icon/lib/icon-styles.scss +2 -0
- package/icon/lib/icon.d.ts +5 -4
- package/icon/lib/icon.js +3 -2
- package/icon/lib/icon.js.map +1 -1
- package/iconbutton/filled-icon-button.d.ts +6 -2
- package/iconbutton/filled-icon-button.js +2 -1
- package/iconbutton/filled-icon-button.js.map +1 -1
- package/iconbutton/filled-tonal-icon-button.d.ts +6 -2
- package/iconbutton/filled-tonal-icon-button.js +2 -1
- package/iconbutton/filled-tonal-icon-button.js.map +1 -1
- package/iconbutton/harness.d.ts +2 -3
- package/iconbutton/harness.js +4 -1
- package/iconbutton/harness.js.map +1 -1
- package/iconbutton/lib/_filled-icon-button.scss +77 -51
- package/iconbutton/lib/_filled-tonal-icon-button.scss +77 -49
- package/iconbutton/lib/_outlined-icon-button.scss +70 -53
- package/iconbutton/lib/_shared.scss +35 -112
- package/iconbutton/lib/_standard-icon-button.scss +39 -48
- 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 +2 -0
- 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 +2 -0
- package/iconbutton/lib/icon-button.d.ts +43 -26
- package/iconbutton/lib/icon-button.js +115 -84
- package/iconbutton/lib/icon-button.js.map +1 -1
- package/iconbutton/lib/outlined-styles.css.js +1 -1
- package/iconbutton/lib/outlined-styles.css.js.map +1 -1
- package/iconbutton/lib/outlined-styles.scss +2 -0
- package/iconbutton/lib/shared-styles.css.js +1 -1
- package/iconbutton/lib/shared-styles.css.js.map +1 -1
- package/iconbutton/lib/shared-styles.scss +2 -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 +2 -0
- package/iconbutton/outlined-icon-button.d.ts +5 -2
- package/iconbutton/outlined-icon-button.js +1 -1
- package/iconbutton/outlined-icon-button.js.map +1 -1
- package/iconbutton/standard-icon-button.d.ts +5 -2
- package/iconbutton/standard-icon-button.js +1 -1
- package/iconbutton/standard-icon-button.js.map +1 -1
- package/internal/README.md +6 -0
- package/internal/aria/aria.d.ts +103 -0
- package/internal/aria/aria.js +80 -0
- package/internal/aria/aria.js.map +1 -0
- package/internal/aria/delegate.d.ts +37 -0
- package/internal/aria/delegate.js +53 -0
- package/internal/aria/delegate.js.map +1 -0
- package/internal/controller/attachable-controller.d.ts +113 -0
- package/internal/controller/attachable-controller.js +115 -0
- package/internal/controller/attachable-controller.js.map +1 -0
- package/internal/controller/events.js +130 -0
- package/internal/controller/events.js.map +1 -0
- package/internal/motion/animation.d.ts +80 -0
- package/internal/motion/animation.js +101 -0
- package/internal/motion/animation.js.map +1 -0
- package/internal/sass/_string-ext.scss +195 -0
- package/internal/sass/_theme.scss +249 -0
- package/internal/sass/_var.scss +237 -0
- package/labs/README.md +6 -0
- package/labs/badge/badge.d.ts +18 -0
- package/labs/badge/badge.js +21 -0
- package/labs/badge/badge.js.map +1 -0
- package/labs/badge/lib/_badge.scss +69 -0
- package/labs/badge/lib/badge-styles.css.js +9 -0
- package/labs/badge/lib/badge-styles.css.js.map +1 -0
- package/labs/badge/lib/badge-styles.scss +10 -0
- package/labs/badge/lib/badge.d.ts +13 -0
- package/labs/badge/lib/badge.js +28 -0
- package/labs/badge/lib/badge.js.map +1 -0
- package/labs/navigationbar/harness.d.ts +19 -0
- package/labs/navigationbar/harness.js +29 -0
- package/labs/navigationbar/harness.js.map +1 -0
- package/labs/navigationbar/lib/_navigation-bar.scss +68 -0
- package/labs/navigationbar/lib/constants.d.ts +17 -0
- package/labs/navigationbar/lib/navigation-bar-styles.css.js +9 -0
- package/labs/navigationbar/lib/navigation-bar-styles.css.js.map +1 -0
- package/labs/navigationbar/lib/navigation-bar-styles.scss +10 -0
- package/labs/navigationbar/lib/navigation-bar.d.ts +27 -0
- package/labs/navigationbar/lib/navigation-bar.js +140 -0
- package/labs/navigationbar/lib/navigation-bar.js.map +1 -0
- package/labs/navigationbar/navigation-bar.d.ts +18 -0
- package/labs/navigationbar/navigation-bar.js +21 -0
- package/labs/navigationbar/navigation-bar.js.map +1 -0
- package/labs/navigationdrawer/lib/_navigation-drawer-modal.scss +107 -0
- package/labs/navigationdrawer/lib/_navigation-drawer.scss +94 -0
- package/labs/navigationdrawer/lib/_shared.scss +28 -0
- package/labs/navigationdrawer/lib/navigation-drawer-modal-styles.css.js +9 -0
- package/labs/navigationdrawer/lib/navigation-drawer-modal-styles.css.js.map +1 -0
- package/labs/navigationdrawer/lib/navigation-drawer-modal-styles.scss +10 -0
- package/labs/navigationdrawer/lib/navigation-drawer-modal.d.ts +19 -0
- package/labs/navigationdrawer/lib/navigation-drawer-modal.js +83 -0
- package/labs/navigationdrawer/lib/navigation-drawer-modal.js.map +1 -0
- package/labs/navigationdrawer/lib/navigation-drawer-styles.css.js +9 -0
- package/labs/navigationdrawer/lib/navigation-drawer-styles.css.js.map +1 -0
- package/labs/navigationdrawer/lib/navigation-drawer-styles.scss +10 -0
- package/labs/navigationdrawer/lib/navigation-drawer.d.ts +17 -0
- package/labs/navigationdrawer/lib/navigation-drawer.js +66 -0
- package/labs/navigationdrawer/lib/navigation-drawer.js.map +1 -0
- package/labs/navigationdrawer/lib/shared-styles.css.js +9 -0
- package/labs/navigationdrawer/lib/shared-styles.css.js.map +1 -0
- package/labs/navigationdrawer/lib/shared-styles.scss +10 -0
- package/labs/navigationdrawer/navigation-drawer-modal.d.ts +18 -0
- package/labs/navigationdrawer/navigation-drawer-modal.js +22 -0
- package/labs/navigationdrawer/navigation-drawer-modal.js.map +1 -0
- package/labs/navigationdrawer/navigation-drawer.d.ts +18 -0
- package/labs/navigationdrawer/navigation-drawer.js +22 -0
- package/labs/navigationdrawer/navigation-drawer.js.map +1 -0
- package/labs/navigationtab/harness.d.ts +13 -0
- package/labs/navigationtab/harness.js +16 -0
- package/labs/navigationtab/harness.js.map +1 -0
- package/labs/navigationtab/lib/_navigation-tab.scss +257 -0
- package/labs/navigationtab/lib/navigation-tab-styles.css.js +9 -0
- package/labs/navigationtab/lib/navigation-tab-styles.css.js.map +1 -0
- package/labs/navigationtab/lib/navigation-tab-styles.scss +10 -0
- package/labs/navigationtab/lib/navigation-tab.d.ts +30 -0
- package/labs/navigationtab/lib/navigation-tab.js +119 -0
- package/labs/navigationtab/lib/navigation-tab.js.map +1 -0
- package/labs/navigationtab/lib/state.d.ts +24 -0
- package/labs/navigationtab/lib/state.js.map +1 -0
- package/labs/navigationtab/navigation-tab.d.ts +18 -0
- package/labs/navigationtab/navigation-tab.js +21 -0
- package/labs/navigationtab/navigation-tab.js.map +1 -0
- package/labs/segmentedbutton/lib/_outlined-segmented-button.scss +44 -0
- package/labs/segmentedbutton/lib/_shared.scss +355 -0
- package/labs/segmentedbutton/lib/outlined-segmented-button.d.ts +24 -0
- package/labs/segmentedbutton/lib/outlined-segmented-button.js +22 -0
- package/labs/segmentedbutton/lib/outlined-segmented-button.js.map +1 -0
- package/labs/segmentedbutton/lib/outlined-styles.css.js +9 -0
- package/labs/segmentedbutton/lib/outlined-styles.css.js.map +1 -0
- package/labs/segmentedbutton/lib/outlined-styles.scss +10 -0
- package/labs/segmentedbutton/lib/segmented-button.d.ts +44 -0
- package/labs/segmentedbutton/lib/segmented-button.js +159 -0
- package/labs/segmentedbutton/lib/segmented-button.js.map +1 -0
- package/labs/segmentedbutton/lib/shared-styles.css.js +9 -0
- package/labs/segmentedbutton/lib/shared-styles.css.js.map +1 -0
- package/labs/segmentedbutton/lib/shared-styles.scss +10 -0
- package/labs/segmentedbutton/outlined-segmented-button.d.ts +20 -0
- package/labs/segmentedbutton/outlined-segmented-button.js +24 -0
- package/labs/segmentedbutton/outlined-segmented-button.js.map +1 -0
- package/labs/segmentedbuttonset/lib/_outlined-segmented-button-set.scss +53 -0
- package/labs/segmentedbuttonset/lib/_shared.scss +33 -0
- package/labs/segmentedbuttonset/lib/outlined-segmented-button-set.d.ts +14 -0
- package/labs/segmentedbuttonset/lib/outlined-segmented-button-set.js +18 -0
- package/labs/segmentedbuttonset/lib/outlined-segmented-button-set.js.map +1 -0
- package/labs/segmentedbuttonset/lib/outlined-styles.css.js +9 -0
- package/labs/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -0
- package/labs/segmentedbuttonset/lib/outlined-styles.scss +10 -0
- package/labs/segmentedbuttonset/lib/segmented-button-set.d.ts +26 -0
- package/labs/segmentedbuttonset/lib/segmented-button-set.js +110 -0
- package/labs/segmentedbuttonset/lib/segmented-button-set.js.map +1 -0
- package/labs/segmentedbuttonset/lib/shared-styles.scss +10 -0
- package/labs/segmentedbuttonset/outlined-segmented-button-set.d.ts +20 -0
- package/labs/segmentedbuttonset/outlined-segmented-button-set.js +24 -0
- package/labs/segmentedbuttonset/outlined-segmented-button-set.js.map +1 -0
- package/linearprogress/_linear-progress.scss +6 -0
- package/linearprogress/harness.d.ts +13 -0
- package/linearprogress/harness.js +18 -0
- package/linearprogress/harness.js.map +1 -0
- package/linearprogress/lib/_linear-progress.scss +386 -0
- package/linearprogress/lib/linear-progress-styles.css.js +9 -0
- package/linearprogress/lib/linear-progress-styles.css.js.map +1 -0
- package/linearprogress/lib/linear-progress-styles.scss +8 -0
- package/linearprogress/lib/linear-progress.d.ts +35 -0
- package/linearprogress/lib/linear-progress.js +127 -0
- package/linearprogress/lib/linear-progress.js.map +1 -0
- package/linearprogress/linear-progress.d.ts +23 -0
- package/linearprogress/linear-progress.js +26 -0
- package/linearprogress/linear-progress.js.map +1 -0
- package/list/harness.d.ts +1 -0
- package/list/harness.js +1 -0
- package/list/harness.js.map +1 -1
- package/list/lib/_list.scss +19 -49
- 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 +2 -0
- package/list/lib/list.d.ts +105 -34
- package/list/lib/list.js +222 -137
- package/list/lib/list.js.map +1 -1
- package/list/lib/listitem/_list-item.scss +320 -126
- package/list/lib/listitem/forced-colors-styles.css.d.ts +1 -0
- package/list/lib/listitem/forced-colors-styles.css.js +9 -0
- package/list/lib/listitem/forced-colors-styles.css.js.map +1 -0
- package/list/lib/listitem/forced-colors-styles.scss +23 -0
- package/list/lib/listitem/harness.js +2 -1
- package/list/lib/listitem/harness.js.map +1 -1
- package/list/lib/listitem/list-item-only.d.ts +22 -0
- package/list/lib/listitem/list-item-only.js +35 -0
- package/list/lib/listitem/list-item-only.js.map +1 -0
- package/list/lib/listitem/list-item-styles.css.js +1 -1
- package/list/lib/listitem/list-item-styles.css.js.map +1 -1
- package/list/lib/listitem/list-item-styles.scss +2 -0
- package/list/lib/listitem/list-item.d.ts +121 -61
- package/list/lib/listitem/list-item.js +174 -204
- package/list/lib/listitem/list-item.js.map +1 -1
- package/list/lib/listitemlink/list-item-link-only.d.ts +22 -0
- package/list/lib/listitemlink/list-item-link-only.js +33 -0
- package/list/lib/listitemlink/list-item-link-only.js.map +1 -0
- package/list/lib/listitemlink/list-item-link.d.ts +18 -0
- package/list/lib/listitemlink/list-item-link.js +42 -0
- package/list/lib/listitemlink/list-item-link.js.map +1 -0
- package/list/list-item-link.d.ts +53 -0
- package/list/list-item-link.js +57 -0
- package/list/list-item-link.js.map +1 -0
- package/list/list-item.d.ts +38 -2
- package/list/list-item.js +39 -3
- package/list/list-item.js.map +1 -1
- package/list/list.d.ts +15 -1
- package/list/list.js +15 -1
- package/list/list.js.map +1 -1
- package/menu/_menu-item.scss +6 -0
- package/menu/_menu.scss +6 -0
- package/menu/harness.d.ts +6 -0
- package/menu/harness.js +23 -0
- package/menu/harness.js.map +1 -1
- package/menu/lib/_menu.scss +71 -76
- package/menu/lib/forced-colors-styles.css.d.ts +1 -0
- package/menu/lib/forced-colors-styles.css.js +9 -0
- package/menu/lib/forced-colors-styles.css.js.map +1 -0
- package/menu/lib/forced-colors-styles.scss +12 -0
- package/menu/lib/menu-styles.css.js +1 -1
- package/menu/lib/menu-styles.css.js.map +1 -1
- package/menu/lib/menu-styles.scss +2 -0
- package/menu/lib/menu.d.ts +195 -46
- package/menu/lib/menu.js +580 -264
- package/menu/lib/menu.js.map +1 -1
- package/menu/lib/menuitem/_menu-item.scss +60 -0
- package/menu/lib/menuitem/forced-colors-styles.css.d.ts +1 -0
- package/menu/lib/menuitem/forced-colors-styles.css.js +9 -0
- package/menu/lib/menuitem/forced-colors-styles.css.js.map +1 -0
- package/menu/lib/menuitem/forced-colors-styles.scss +22 -0
- package/menu/lib/menuitem/menu-item-styles.css.d.ts +1 -0
- package/menu/lib/menuitem/menu-item-styles.css.js +9 -0
- package/menu/lib/menuitem/menu-item-styles.css.js.map +1 -0
- package/menu/lib/menuitem/menu-item-styles.scss +10 -0
- package/menu/lib/menuitem/menu-item.d.ts +22 -5
- package/menu/lib/menuitem/menu-item.js +41 -4
- package/menu/lib/menuitem/menu-item.js.map +1 -1
- package/menu/lib/menuitemlink/menu-item-link.d.ts +23 -0
- package/menu/lib/menuitemlink/menu-item-link.js +49 -0
- package/menu/lib/menuitemlink/menu-item-link.js.map +1 -0
- package/menu/lib/shared.d.ts +178 -0
- package/menu/lib/shared.js +142 -0
- package/menu/lib/shared.js.map +1 -0
- package/menu/lib/submenuitem/harness.d.ts +11 -0
- package/menu/lib/submenuitem/harness.js +12 -0
- package/menu/lib/submenuitem/harness.js.map +1 -0
- package/menu/lib/submenuitem/sub-menu-item.d.ts +99 -0
- package/menu/lib/submenuitem/sub-menu-item.js +293 -0
- package/menu/lib/submenuitem/sub-menu-item.js.map +1 -0
- package/menu/lib/surfacePositionController.d.ts +125 -0
- package/menu/lib/surfacePositionController.js +200 -0
- package/menu/lib/surfacePositionController.js.map +1 -0
- package/menu/lib/typeaheadController.d.ts +157 -0
- package/menu/lib/typeaheadController.js +252 -0
- package/menu/lib/typeaheadController.js.map +1 -0
- package/menu/menu-item-link.d.ts +33 -0
- package/menu/menu-item-link.js +38 -0
- package/menu/menu-item-link.js.map +1 -0
- package/menu/menu-item.d.ts +19 -2
- package/menu/menu-item.js +23 -4
- package/menu/menu-item.js.map +1 -1
- package/menu/menu.d.ts +45 -0
- package/menu/menu.js +45 -1
- package/menu/menu.js.map +1 -1
- package/menu/sub-menu-item.d.ts +60 -0
- package/menu/sub-menu-item.js +65 -0
- package/menu/sub-menu-item.js.map +1 -0
- package/package.json +27 -18
- package/radio/lib/_radio.scss +34 -32
- package/radio/lib/forced-colors-styles.css.js +1 -1
- package/radio/lib/forced-colors-styles.css.js.map +1 -1
- package/radio/lib/forced-colors-styles.scss +2 -0
- package/radio/lib/radio-styles.css.js +1 -1
- package/radio/lib/radio-styles.css.js.map +1 -1
- package/radio/lib/radio-styles.scss +2 -0
- package/radio/lib/radio.d.ts +22 -16
- package/radio/lib/radio.js +95 -111
- package/radio/lib/radio.js.map +1 -1
- package/radio/radio.d.ts +16 -1
- package/radio/radio.js +16 -1
- package/radio/radio.js.map +1 -1
- package/ripple/lib/_ripple.scss +39 -73
- 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 +2 -0
- package/ripple/lib/ripple.d.ts +60 -48
- package/ripple/lib/ripple.js +277 -106
- package/ripple/lib/ripple.js.map +1 -1
- package/ripple/ripple.d.ts +9 -1
- package/ripple/ripple.js +9 -1
- package/ripple/ripple.js.map +1 -1
- package/select/_filled-select.scss +6 -0
- package/select/_outlined-select.scss +6 -0
- package/select/filled-select.d.ts +41 -0
- package/select/filled-select.js +46 -0
- package/select/filled-select.js.map +1 -0
- package/select/harness.d.ts +24 -0
- package/select/harness.js +53 -0
- package/select/harness.js.map +1 -0
- package/select/lib/_filled-select.scss +222 -0
- package/select/lib/_outlined-select.scss +180 -0
- package/select/lib/_shared.scss +55 -0
- package/select/lib/filled-forced-colors-styles.css.d.ts +1 -0
- package/select/lib/filled-forced-colors-styles.css.js +9 -0
- package/select/lib/filled-forced-colors-styles.css.js.map +1 -0
- package/select/lib/filled-forced-colors-styles.scss +29 -0
- package/select/lib/filled-select-styles.css.d.ts +1 -0
- package/select/lib/filled-select-styles.css.js +9 -0
- package/select/lib/filled-select-styles.css.js.map +1 -0
- package/select/lib/filled-select-styles.scss +10 -0
- package/select/lib/filled-select.d.ts +10 -0
- package/select/lib/filled-select.js +16 -0
- package/select/lib/filled-select.js.map +1 -0
- package/select/lib/outlined-forced-colors-styles.css.d.ts +1 -0
- package/select/lib/outlined-forced-colors-styles.css.js +9 -0
- package/select/lib/outlined-forced-colors-styles.css.js.map +1 -0
- package/select/lib/outlined-forced-colors-styles.scss +29 -0
- package/select/lib/outlined-select-styles.css.d.ts +1 -0
- package/select/lib/outlined-select-styles.css.js +9 -0
- package/select/lib/outlined-select-styles.css.js.map +1 -0
- package/select/lib/outlined-select-styles.scss +10 -0
- package/select/lib/outlined-select.d.ts +10 -0
- package/select/lib/outlined-select.js +16 -0
- package/select/lib/outlined-select.js.map +1 -0
- package/select/lib/select.d.ts +216 -0
- package/select/lib/select.js +589 -0
- package/select/lib/select.js.map +1 -0
- package/select/lib/selectoption/harness.d.ts +11 -0
- package/select/lib/selectoption/harness.js +12 -0
- package/select/lib/selectoption/harness.js.map +1 -0
- package/select/lib/selectoption/select-option.d.ts +29 -0
- package/select/lib/selectoption/select-option.js +71 -0
- package/select/lib/selectoption/select-option.js.map +1 -0
- package/select/lib/shared-styles.css.d.ts +1 -0
- package/select/lib/shared-styles.css.js +9 -0
- package/select/lib/shared-styles.css.js.map +1 -0
- package/select/lib/shared-styles.scss +10 -0
- package/select/lib/shared.d.ts +52 -0
- package/select/lib/shared.js +41 -0
- package/select/lib/shared.js.map +1 -0
- package/select/outlined-select.d.ts +41 -0
- package/select/outlined-select.js +46 -0
- package/select/outlined-select.js.map +1 -0
- package/select/select-option.d.ts +44 -0
- package/select/select-option.js +51 -0
- package/select/select-option.js.map +1 -0
- package/slider/_slider.scss +6 -0
- package/slider/harness.d.ts +21 -0
- package/slider/harness.js +70 -0
- package/slider/harness.js.map +1 -0
- package/slider/lib/_slider.scss +476 -0
- package/slider/lib/forced-colors-styles.css.d.ts +1 -0
- package/slider/lib/forced-colors-styles.css.js +9 -0
- package/slider/lib/forced-colors-styles.css.js.map +1 -0
- package/slider/lib/forced-colors-styles.scss +53 -0
- package/slider/lib/slider-styles.css.d.ts +1 -0
- package/slider/lib/slider-styles.css.js +9 -0
- package/slider/lib/slider-styles.css.js.map +1 -0
- package/slider/lib/slider-styles.scss +8 -0
- package/slider/lib/slider.d.ts +173 -0
- package/slider/lib/slider.js +623 -0
- package/slider/lib/slider.js.map +1 -0
- package/slider/slider.d.ts +28 -0
- package/slider/slider.js +32 -0
- package/slider/slider.js.map +1 -0
- package/switch/harness.js +1 -1
- package/switch/harness.js.map +1 -1
- package/switch/lib/README.md +55 -0
- package/switch/lib/_handle.scss +134 -97
- package/switch/lib/_icon.scss +82 -23
- package/switch/lib/_switch.scss +83 -233
- package/switch/lib/_track.scss +79 -45
- package/switch/lib/forced-colors-styles.css.d.ts +1 -0
- package/switch/lib/forced-colors-styles.css.js +9 -0
- package/switch/lib/forced-colors-styles.css.js.map +1 -0
- package/switch/lib/forced-colors-styles.scss +41 -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 +2 -0
- package/switch/lib/switch.d.ts +20 -20
- package/switch/lib/switch.js +79 -128
- package/switch/lib/switch.js.map +1 -1
- package/switch/switch.js +2 -1
- package/switch/switch.js.map +1 -1
- package/tabs/_tab.scss +6 -0
- package/tabs/harness.d.ts +23 -0
- package/tabs/harness.js +50 -0
- package/tabs/harness.js.map +1 -0
- package/tabs/lib/_tab.scss +293 -0
- package/tabs/lib/_tabs.scss +44 -0
- package/tabs/lib/tab-styles.css.d.ts +1 -0
- package/tabs/lib/tab-styles.css.js +9 -0
- package/tabs/lib/tab-styles.css.js.map +1 -0
- package/tabs/lib/tab-styles.scss +10 -0
- package/tabs/lib/tab.d.ts +68 -0
- package/tabs/lib/tab.js +162 -0
- package/tabs/lib/tab.js.map +1 -0
- package/tabs/lib/tabs-styles.css.d.ts +1 -0
- package/tabs/lib/tabs-styles.css.js +9 -0
- package/tabs/lib/tabs-styles.css.js.map +1 -0
- package/tabs/lib/tabs-styles.scss +10 -0
- package/tabs/lib/tabs.d.ts +91 -0
- package/tabs/lib/tabs.js +310 -0
- package/tabs/lib/tabs.js.map +1 -0
- package/tabs/tab.d.ts +19 -0
- package/tabs/tab.js +22 -0
- package/tabs/tab.js.map +1 -0
- package/tabs/tabs.d.ts +20 -0
- package/tabs/tabs.js +24 -0
- package/tabs/tabs.js.map +1 -0
- package/textfield/filled-text-field.d.ts +1 -1
- package/textfield/filled-text-field.js +1 -2
- 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 +161 -103
- package/textfield/lib/_icon.scss +14 -73
- package/textfield/lib/_input.scss +15 -36
- package/textfield/lib/_outlined-text-field.scss +121 -97
- package/textfield/lib/_shared.scss +10 -29
- 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 +2 -0
- 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 -0
- package/textfield/lib/filled-text-field.d.ts +6 -5
- package/textfield/lib/filled-text-field.js +8 -7
- package/textfield/lib/filled-text-field.js.map +1 -1
- 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 +2 -0
- 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 -0
- package/textfield/lib/outlined-text-field.d.ts +6 -5
- package/textfield/lib/outlined-text-field.js +8 -7
- package/textfield/lib/outlined-text-field.js.map +1 -1
- 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 -0
- package/textfield/lib/text-field.d.ts +54 -121
- package/textfield/lib/text-field.js +250 -423
- package/textfield/lib/text-field.js.map +1 -1
- package/textfield/outlined-text-field.d.ts +1 -1
- package/textfield/outlined-text-field.js +1 -2
- package/textfield/outlined-text-field.js.map +1 -1
- package/tokens/_index.scss +58 -2
- package/tokens/_md-comp-assist-chip.scss +119 -0
- package/tokens/_md-comp-badge.scss +41 -0
- package/tokens/_md-comp-checkbox.scss +100 -0
- package/tokens/_md-comp-circular-progress-indicator.scss +63 -0
- package/tokens/_md-comp-dialog.scss +52 -0
- package/tokens/_md-comp-divider.scss +28 -0
- package/tokens/_md-comp-elevated-button.scss +108 -0
- package/tokens/_md-comp-elevation.scss +24 -0
- package/tokens/_md-comp-fab-branded.scss +112 -0
- package/tokens/_md-comp-fab.scss +246 -0
- package/tokens/_md-comp-filled-button.scss +108 -0
- package/tokens/_md-comp-filled-field.scss +227 -0
- package/tokens/_md-comp-filled-icon-button.scss +72 -0
- package/tokens/_md-comp-filled-select.scss +148 -0
- package/tokens/_md-comp-filled-text-field.scss +139 -0
- package/tokens/_md-comp-filled-tonal-button.scss +108 -0
- package/tokens/_md-comp-filled-tonal-icon-button.scss +72 -0
- package/tokens/_md-comp-filter-chip.scss +228 -0
- package/tokens/_md-comp-focus-ring.scss +47 -0
- package/tokens/_md-comp-full-screen-dialog.scss +25 -0
- package/tokens/_md-comp-icon-button.scss +63 -0
- package/tokens/_md-comp-input-chip.scss +203 -0
- package/tokens/_md-comp-linear-progress-indicator.scss +50 -0
- package/tokens/_md-comp-list-item.scss +174 -0
- package/tokens/_md-comp-list.scss +134 -0
- package/tokens/_md-comp-menu-item.scss +50 -0
- package/tokens/_md-comp-menu.scss +48 -0
- package/tokens/_md-comp-navigation-bar.scss +25 -0
- package/tokens/_md-comp-navigation-drawer.scss +25 -0
- package/tokens/_md-comp-outlined-button.scss +104 -0
- package/tokens/_md-comp-outlined-field.scss +202 -0
- package/tokens/_md-comp-outlined-icon-button.scss +67 -0
- package/tokens/_md-comp-outlined-segmented-button.scss +93 -0
- package/tokens/_md-comp-outlined-select.scss +147 -0
- package/tokens/_md-comp-outlined-text-field.scss +130 -0
- package/tokens/_md-comp-radio-button.scss +62 -0
- package/tokens/_md-comp-ripple.scss +40 -0
- package/tokens/_md-comp-slider.scss +59 -0
- package/tokens/_md-comp-suggestion-chip.scss +122 -0
- package/tokens/_md-comp-switch.scss +107 -0
- package/tokens/_md-comp-tab.scss +285 -0
- package/tokens/_md-comp-test-table.scss +31 -0
- package/tokens/_md-comp-text-button.scss +97 -0
- package/tokens/_md-ref-palette.scss +12 -0
- package/tokens/_md-ref-typeface.scss +34 -0
- package/tokens/_md-sys-color.scss +54 -0
- package/tokens/_md-sys-elevation.scss +30 -0
- package/tokens/_md-sys-motion.scss +12 -0
- package/tokens/_md-sys-shape.scss +12 -0
- package/tokens/_md-sys-state.scss +12 -0
- package/tokens/_md-sys-typescale.scss +51 -0
- package/tokens/_values.scss +109 -0
- package/tokens/v0_172/_index.scss +107 -0
- package/tokens/v0_172/_md-comp-assist-chip.scss +108 -0
- package/tokens/v0_172/_md-comp-badge.scss +58 -0
- package/tokens/v0_172/_md-comp-banner.scss +73 -0
- package/tokens/v0_172/_md-comp-bottom-app-bar.scss +33 -0
- package/tokens/v0_172/_md-comp-carousel-item.scss +63 -0
- package/tokens/v0_172/_md-comp-checkbox.scss +126 -0
- package/tokens/v0_172/_md-comp-circular-progress-indicator.scss +39 -0
- package/tokens/v0_172/_md-comp-data-table.scss +96 -0
- package/tokens/v0_172/_md-comp-date-input-modal.scss +87 -0
- package/tokens/v0_172/_md-comp-date-picker-docked.scss +244 -0
- package/tokens/v0_172/_md-comp-date-picker-modal.scss +303 -0
- package/tokens/v0_172/_md-comp-dialog.scss +121 -0
- package/tokens/v0_172/_md-comp-divider.scss +25 -0
- package/tokens/v0_172/_md-comp-elevated-button.scss +89 -0
- package/tokens/v0_172/_md-comp-elevated-card.scss +57 -0
- package/tokens/v0_172/_md-comp-extended-fab-branded.scss +86 -0
- package/tokens/v0_172/_md-comp-extended-fab-primary.scss +94 -0
- package/tokens/v0_172/_md-comp-extended-fab-secondary.scss +95 -0
- package/tokens/v0_172/_md-comp-extended-fab-surface.scss +90 -0
- package/tokens/v0_172/_md-comp-extended-fab-tertiary.scss +95 -0
- package/tokens/v0_172/_md-comp-fab-branded-large.scss +60 -0
- package/tokens/v0_172/_md-comp-fab-branded.scss +60 -0
- package/tokens/v0_172/_md-comp-fab-primary-large.scss +65 -0
- package/tokens/v0_172/_md-comp-fab-primary-small.scss +65 -0
- package/tokens/v0_172/_md-comp-fab-primary.scss +65 -0
- package/tokens/v0_172/_md-comp-fab-secondary-large.scss +66 -0
- package/tokens/v0_172/_md-comp-fab-secondary-small.scss +66 -0
- package/tokens/v0_172/_md-comp-fab-secondary.scss +66 -0
- package/tokens/v0_172/_md-comp-fab-surface-large.scss +64 -0
- package/tokens/v0_172/_md-comp-fab-surface-small.scss +64 -0
- package/tokens/v0_172/_md-comp-fab-surface.scss +64 -0
- package/tokens/v0_172/_md-comp-fab-tertiary-large.scss +66 -0
- package/tokens/v0_172/_md-comp-fab-tertiary-small.scss +66 -0
- package/tokens/v0_172/_md-comp-fab-tertiary.scss +66 -0
- package/tokens/v0_172/_md-comp-filled-autocomplete.scss +265 -0
- package/tokens/v0_172/_md-comp-filled-button.scss +89 -0
- package/tokens/v0_172/_md-comp-filled-card.scss +59 -0
- package/tokens/v0_172/_md-comp-filled-icon-button.scss +79 -0
- package/tokens/v0_172/_md-comp-filled-menu-button.scss +98 -0
- package/tokens/v0_172/_md-comp-filled-select.scss +270 -0
- package/tokens/v0_172/_md-comp-filled-text-field.scss +190 -0
- package/tokens/v0_172/_md-comp-filled-tonal-button.scss +99 -0
- package/tokens/v0_172/_md-comp-filled-tonal-icon-button.scss +86 -0
- package/tokens/v0_172/_md-comp-filter-chip.scss +207 -0
- package/tokens/v0_172/_md-comp-full-screen-dialog.scss +111 -0
- package/tokens/v0_172/_md-comp-icon-button.scss +70 -0
- package/tokens/v0_172/_md-comp-input-chip.scss +184 -0
- package/tokens/v0_172/_md-comp-linear-progress-indicator.scss +41 -0
- package/tokens/v0_172/_md-comp-list.scss +248 -0
- package/tokens/v0_172/_md-comp-menu.scss +35 -0
- package/tokens/v0_172/_md-comp-navigation-bar.scss +112 -0
- package/tokens/v0_172/_md-comp-navigation-drawer.scss +162 -0
- package/tokens/v0_172/_md-comp-navigation-rail.scss +116 -0
- package/tokens/v0_172/_md-comp-outlined-autocomplete.scss +255 -0
- package/tokens/v0_172/_md-comp-outlined-button.scss +84 -0
- package/tokens/v0_172/_md-comp-outlined-card.scss +63 -0
- package/tokens/v0_172/_md-comp-outlined-icon-button.scss +79 -0
- package/tokens/v0_172/_md-comp-outlined-menu-button.scss +94 -0
- package/tokens/v0_172/_md-comp-outlined-segmented-button.scss +112 -0
- package/tokens/v0_172/_md-comp-outlined-select.scss +260 -0
- package/tokens/v0_172/_md-comp-outlined-text-field.scss +171 -0
- package/tokens/v0_172/_md-comp-plain-tooltip.scss +55 -0
- package/tokens/v0_172/_md-comp-primary-navigation-tab.scss +121 -0
- package/tokens/v0_172/_md-comp-radio-button.scss +68 -0
- package/tokens/v0_172/_md-comp-rich-tooltip.scss +119 -0
- package/tokens/v0_172/_md-comp-scrim.scss +25 -0
- package/tokens/v0_172/_md-comp-search-bar.scss +97 -0
- package/tokens/v0_172/_md-comp-search-view.scss +91 -0
- package/tokens/v0_172/_md-comp-secondary-navigation-tab.scss +84 -0
- package/tokens/v0_172/_md-comp-sheet-bottom.scss +44 -0
- package/tokens/v0_172/_md-comp-sheet-floating.scss +32 -0
- package/tokens/v0_172/_md-comp-sheet-side.scss +91 -0
- package/tokens/v0_172/_md-comp-slider.scss +115 -0
- package/tokens/v0_172/_md-comp-snackbar.scss +127 -0
- package/tokens/v0_172/_md-comp-standard-menu-button.scss +98 -0
- package/tokens/v0_172/_md-comp-suggestion-chip.scss +124 -0
- package/tokens/v0_172/_md-comp-switch.scss +138 -0
- package/tokens/v0_172/_md-comp-text-button.scss +77 -0
- package/tokens/v0_172/_md-comp-time-input.scss +217 -0
- package/tokens/v0_172/_md-comp-time-picker.scss +264 -0
- package/tokens/v0_172/_md-comp-top-app-bar-large.scss +61 -0
- package/tokens/v0_172/_md-comp-top-app-bar-medium.scss +61 -0
- package/tokens/v0_172/_md-comp-top-app-bar-small-centered.scss +68 -0
- package/tokens/v0_172/_md-comp-top-app-bar-small.scss +64 -0
- package/tokens/v0_172/_md-ref-palette.scss +107 -0
- package/tokens/v0_172/_md-ref-typeface.scss +21 -0
- package/tokens/v0_172/_md-sys-color.scss +134 -0
- package/tokens/v0_172/_md-sys-elevation.scss +21 -0
- package/tokens/v0_172/_md-sys-motion.scss +53 -0
- package/tokens/v0_172/_md-sys-shape.scss +30 -0
- package/tokens/v0_172/_md-sys-state.scss +19 -0
- package/tokens/v0_172/_md-sys-typescale.scss +284 -0
- package/tokens/v0_172/index.test.css.d.ts +1 -0
- package/tokens/v0_172/index.test.scss +584 -0
- package/tokens/v0_172/lib.test.css.d.ts +1 -0
- package/tokens/v0_172/lib.test.scss +663 -0
- package/actionelement/action-element.d.ts +0 -79
- package/actionelement/action-element.js +0 -97
- package/actionelement/action-element.js.map +0 -1
- package/autocomplete/_filled-autocomplete.scss +0 -6
- package/autocomplete/_outlined-autocomplete.scss +0 -6
- package/autocomplete/autocomplete-item.d.ts +0 -19
- package/autocomplete/autocomplete-item.js +0 -22
- package/autocomplete/autocomplete-item.js.map +0 -1
- package/autocomplete/autocomplete-list.d.ts +0 -19
- package/autocomplete/autocomplete-list.js +0 -23
- package/autocomplete/autocomplete-list.js.map +0 -1
- package/autocomplete/autocomplete-surface.d.ts +0 -19
- package/autocomplete/autocomplete-surface.js +0 -23
- package/autocomplete/autocomplete-surface.js.map +0 -1
- package/autocomplete/filled-autocomplete.d.ts +0 -30
- package/autocomplete/filled-autocomplete.js +0 -53
- package/autocomplete/filled-autocomplete.js.map +0 -1
- package/autocomplete/lib/_filled-autocomplete.scss +0 -228
- package/autocomplete/lib/_outlined-autocomplete.scss +0 -217
- package/autocomplete/lib/_shared.scss +0 -29
- package/autocomplete/lib/autocomplete.d.ts +0 -58
- package/autocomplete/lib/autocomplete.js +0 -273
- package/autocomplete/lib/autocomplete.js.map +0 -1
- package/autocomplete/lib/autocompleteitem/autocomplete-item.d.ts +0 -11
- package/autocomplete/lib/autocompleteitem/autocomplete-item.js +0 -14
- package/autocomplete/lib/autocompleteitem/autocomplete-item.js.map +0 -1
- package/autocomplete/lib/autocompleteitem/harness.d.ts +0 -11
- package/autocomplete/lib/autocompleteitem/harness.js +0 -12
- package/autocomplete/lib/autocompleteitem/harness.js.map +0 -1
- package/autocomplete/lib/autocompletelist/_autocomplete-list.scss +0 -13
- package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js +0 -9
- package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js.map +0 -1
- package/autocomplete/lib/autocompletelist/autocomplete-list-styles.scss +0 -8
- package/autocomplete/lib/autocompletelist/autocomplete-list.d.ts +0 -14
- package/autocomplete/lib/autocompletelist/autocomplete-list.js +0 -21
- package/autocomplete/lib/autocompletelist/autocomplete-list.js.map +0 -1
- package/autocomplete/lib/autocompletelist/harness.d.ts +0 -11
- package/autocomplete/lib/autocompletelist/harness.js +0 -12
- package/autocomplete/lib/autocompletelist/harness.js.map +0 -1
- package/autocomplete/lib/autocompletesurface/_autocomplete-surface.scss +0 -13
- package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js +0 -9
- package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js.map +0 -1
- package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss +0 -8
- package/autocomplete/lib/autocompletesurface/autocomplete-surface.d.ts +0 -13
- package/autocomplete/lib/autocompletesurface/autocomplete-surface.js +0 -21
- package/autocomplete/lib/autocompletesurface/autocomplete-surface.js.map +0 -1
- package/autocomplete/lib/filled-styles.css.js +0 -9
- package/autocomplete/lib/filled-styles.css.js.map +0 -1
- package/autocomplete/lib/filled-styles.scss +0 -8
- package/autocomplete/lib/outlined-styles.css.js +0 -9
- package/autocomplete/lib/outlined-styles.css.js.map +0 -1
- package/autocomplete/lib/outlined-styles.scss +0 -8
- package/autocomplete/lib/shared-styles.css.js +0 -9
- package/autocomplete/lib/shared-styles.css.js.map +0 -1
- package/autocomplete/lib/shared-styles.scss +0 -8
- package/autocomplete/outlined-autocomplete.d.ts +0 -30
- package/autocomplete/outlined-autocomplete.js +0 -53
- package/autocomplete/outlined-autocomplete.js.map +0 -1
- package/badge/badge.d.ts +0 -19
- package/badge/badge.js +0 -22
- package/badge/badge.js.map +0 -1
- package/badge/lib/_badge.scss +0 -80
- package/badge/lib/badge-styles.css.js +0 -9
- package/badge/lib/badge-styles.css.js.map +0 -1
- package/badge/lib/badge-styles.scss +0 -8
- package/badge/lib/badge.d.ts +0 -15
- package/badge/lib/badge.js +0 -31
- package/badge/lib/badge.js.map +0 -1
- package/button/elevated-link-button.d.ts +0 -36
- package/button/elevated-link-button.js +0 -41
- package/button/elevated-link-button.js.map +0 -1
- package/button/filled-link-button.d.ts +0 -34
- package/button/filled-link-button.js +0 -39
- package/button/filled-link-button.js.map +0 -1
- package/button/lib/elevated-link-button.d.ts +0 -13
- package/button/lib/elevated-link-button.js +0 -21
- package/button/lib/elevated-link-button.js.map +0 -1
- package/button/lib/filled-link-button.d.ts +0 -14
- package/button/lib/filled-link-button.js +0 -22
- package/button/lib/filled-link-button.js.map +0 -1
- package/button/lib/link-button.d.ts +0 -25
- package/button/lib/link-button.js +0 -64
- package/button/lib/link-button.js.map +0 -1
- package/button/lib/outlined-link-button.d.ts +0 -12
- package/button/lib/outlined-link-button.js +0 -20
- package/button/lib/outlined-link-button.js.map +0 -1
- package/button/lib/state.d.ts +0 -10
- package/button/lib/state.js +0 -7
- package/button/lib/state.js.map +0 -1
- package/button/lib/text-link-button.d.ts +0 -10
- package/button/lib/text-link-button.js +0 -16
- package/button/lib/text-link-button.js.map +0 -1
- package/button/lib/tonal-link-button.d.ts +0 -14
- package/button/lib/tonal-link-button.js +0 -22
- package/button/lib/tonal-link-button.js.map +0 -1
- package/button/outlined-link-button.d.ts +0 -36
- package/button/outlined-link-button.js +0 -40
- package/button/outlined-link-button.js.map +0 -1
- package/button/text-link-button.d.ts +0 -34
- package/button/text-link-button.js +0 -38
- package/button/text-link-button.js.map +0 -1
- package/button/tonal-link-button.d.ts +0 -35
- package/button/tonal-link-button.js +0 -40
- package/button/tonal-link-button.js.map +0 -1
- package/chips/action/delete-action.d.ts +0 -18
- package/chips/action/delete-action.js +0 -20
- package/chips/action/delete-action.js.map +0 -1
- package/chips/action/lib/action.d.ts +0 -47
- package/chips/action/lib/action.js +0 -162
- package/chips/action/lib/action.js.map +0 -1
- package/chips/action/lib/constants.d.ts +0 -62
- package/chips/action/lib/constants.js +0 -69
- package/chips/action/lib/constants.js.map +0 -1
- package/chips/action/lib/delete-action.d.ts +0 -20
- package/chips/action/lib/delete-action.js +0 -65
- package/chips/action/lib/delete-action.js.map +0 -1
- package/chips/action/lib/events.d.ts +0 -14
- package/chips/action/lib/events.js +0 -16
- package/chips/action/lib/events.js.map +0 -1
- package/chips/action/lib/link-action.d.ts +0 -19
- package/chips/action/lib/link-action.js +0 -55
- package/chips/action/lib/link-action.js.map +0 -1
- package/chips/action/lib/presentational-action.d.ts +0 -15
- package/chips/action/lib/presentational-action.js +0 -30
- package/chips/action/lib/presentational-action.js.map +0 -1
- package/chips/action/lib/primary-action.d.ts +0 -28
- package/chips/action/lib/primary-action.js +0 -88
- package/chips/action/lib/primary-action.js.map +0 -1
- package/chips/action/lib/selectable-action.d.ts +0 -17
- package/chips/action/lib/selectable-action.js +0 -67
- package/chips/action/lib/selectable-action.js.map +0 -1
- package/chips/action/lib/types.d.ts +0 -23
- package/chips/action/lib/types.js +0 -7
- package/chips/action/lib/types.js.map +0 -1
- package/chips/action/link-action.d.ts +0 -18
- package/chips/action/link-action.js +0 -20
- package/chips/action/link-action.js.map +0 -1
- package/chips/action/presentational-action.d.ts +0 -18
- package/chips/action/presentational-action.js +0 -20
- package/chips/action/presentational-action.js.map +0 -1
- package/chips/action/primary-action.d.ts +0 -18
- package/chips/action/primary-action.js +0 -20
- package/chips/action/primary-action.js.map +0 -1
- package/chips/action/selectable-action.d.ts +0 -18
- package/chips/action/selectable-action.js +0 -20
- package/chips/action/selectable-action.js.map +0 -1
- package/chips/chip/lib/_assist-chip-theme.scss +0 -95
- package/chips/chip/lib/_chip-theme.scss +0 -1296
- package/chips/chip/lib/_chip.scss +0 -442
- package/chips/chip/lib/_filter-chip-theme.scss +0 -126
- package/chips/chip/lib/_input-chip-theme.scss +0 -87
- package/chips/chip/lib/_suggestion-chip-theme.scss +0 -88
- package/chips/chip/lib/action-chip.d.ts +0 -18
- package/chips/chip/lib/action-chip.js +0 -39
- package/chips/chip/lib/action-chip.js.map +0 -1
- package/chips/chip/lib/adapter.d.ts +0 -50
- package/chips/chip/lib/adapter.js +0 -7
- package/chips/chip/lib/adapter.js.map +0 -1
- package/chips/chip/lib/animationframe.d.ts +0 -31
- package/chips/chip/lib/animationframe.js +0 -66
- package/chips/chip/lib/animationframe.js.map +0 -1
- package/chips/chip/lib/chip.d.ts +0 -43
- package/chips/chip/lib/chip.js +0 -134
- package/chips/chip/lib/chip.js.map +0 -1
- package/chips/chip/lib/constants.d.ts +0 -43
- package/chips/chip/lib/constants.js +0 -48
- package/chips/chip/lib/constants.js.map +0 -1
- package/chips/chip/lib/foundation.d.ts +0 -41
- package/chips/chip/lib/foundation.js +0 -255
- package/chips/chip/lib/foundation.js.map +0 -1
- package/chips/chip/lib/link-chip.d.ts +0 -21
- package/chips/chip/lib/link-chip.js +0 -53
- package/chips/chip/lib/link-chip.js.map +0 -1
- package/chips/chip/lib/presentational-chip.d.ts +0 -18
- package/chips/chip/lib/presentational-chip.js +0 -39
- package/chips/chip/lib/presentational-chip.js.map +0 -1
- package/chips/chip/lib/selectable-chip.d.ts +0 -22
- package/chips/chip/lib/selectable-chip.js +0 -57
- package/chips/chip/lib/selectable-chip.js.map +0 -1
- package/chips/chip/lib/types.d.ts +0 -42
- package/chips/chip/lib/types.js +0 -7
- package/chips/chip/lib/types.js.map +0 -1
- package/chips/chipset/lib/_chip-set-theme.scss +0 -48
- package/chips/chipset/lib/_chip-set.scss +0 -46
- package/chips/chipset/lib/adapter.d.ts +0 -45
- package/chips/chipset/lib/adapter.js +0 -7
- package/chips/chipset/lib/adapter.js.map +0 -1
- package/chips/chipset/lib/constants.d.ts +0 -26
- package/chips/chipset/lib/constants.js +0 -30
- package/chips/chipset/lib/constants.js.map +0 -1
- package/chips/chipset/lib/foundation.d.ts +0 -68
- package/chips/chipset/lib/foundation.js +0 -314
- package/chips/chipset/lib/foundation.js.map +0 -1
- package/chips/chipset/lib/types.d.ts +0 -41
- package/chips/chipset/lib/types.js +0 -7
- package/chips/chipset/lib/types.js.map +0 -1
- package/controller/action-controller.d.ts +0 -147
- package/controller/action-controller.js +0 -286
- package/controller/action-controller.js.map +0 -1
- package/controller/events.js +0 -126
- package/controller/events.js.map +0 -1
- package/controller/form-associated.d.ts +0 -14
- package/controller/form-associated.js +0 -12
- package/controller/form-associated.js.map +0 -1
- package/controller/form-controller.d.ts +0 -66
- package/controller/form-controller.js +0 -82
- package/controller/form-controller.js.map +0 -1
- package/controller/foundation.d.ts +0 -24
- package/controller/foundation.js +0 -18
- package/controller/foundation.js.map +0 -1
- package/controller/observer-foundation.d.ts +0 -25
- package/controller/observer-foundation.js +0 -37
- package/controller/observer-foundation.js.map +0 -1
- package/controller/observer.d.ts +0 -52
- package/controller/observer.js +0 -149
- package/controller/observer.js.map +0 -1
- package/controller/shim-label-activation.d.ts +0 -18
- package/controller/shim-label-activation.js +0 -72
- package/controller/shim-label-activation.js.map +0 -1
- package/decorators/aria-property.d.ts +0 -32
- package/decorators/aria-property.js +0 -99
- package/decorators/aria-property.js.map +0 -1
- package/decorators/bound.d.ts +0 -40
- package/decorators/bound.js +0 -49
- package/decorators/bound.js.map +0 -1
- package/elevation/lib/_md-comp-elevation.scss +0 -23
- package/fab/_fab-extended.scss +0 -6
- package/fab/fab-extended.d.ts +0 -23
- package/fab/fab-extended.js +0 -29
- package/fab/fab-extended.js.map +0 -1
- package/fab/lib/_fab-extended.scss +0 -73
- package/fab/lib/fab-extended-styles.css.js +0 -9
- package/fab/lib/fab-extended-styles.css.js.map +0 -1
- package/fab/lib/fab-extended-styles.scss +0 -8
- package/fab/lib/fab-extended.d.ts +0 -19
- package/fab/lib/fab-extended.js +0 -28
- package/fab/lib/fab-extended.js.map +0 -1
- package/fab/lib/fab-shared-styles.css.js +0 -9
- package/fab/lib/fab-shared-styles.css.js.map +0 -1
- package/fab/lib/fab-shared-styles.scss +0 -8
- package/fab/lib/fab-shared.d.ts +0 -51
- package/fab/lib/fab-shared.js +0 -139
- package/fab/lib/fab-shared.js.map +0 -1
- package/field/lib/_md-comp-filled-field.scss +0 -72
- package/field/lib/_md-comp-outlined-field.scss +0 -74
- package/focus/lib/_md-comp-focus-ring.scss +0 -27
- package/focus/strong-focus.d.ts +0 -45
- package/focus/strong-focus.js +0 -86
- package/focus/strong-focus.js.map +0 -1
- package/iconbutton/filled-icon-button-toggle.d.ts +0 -31
- package/iconbutton/filled-icon-button-toggle.js +0 -40
- package/iconbutton/filled-icon-button-toggle.js.map +0 -1
- package/iconbutton/filled-link-icon-button.d.ts +0 -31
- package/iconbutton/filled-link-icon-button.js +0 -39
- package/iconbutton/filled-link-icon-button.js.map +0 -1
- package/iconbutton/filled-tonal-icon-button-toggle.d.ts +0 -31
- package/iconbutton/filled-tonal-icon-button-toggle.js +0 -40
- package/iconbutton/filled-tonal-icon-button-toggle.js.map +0 -1
- package/iconbutton/filled-tonal-link-icon-button.d.ts +0 -31
- package/iconbutton/filled-tonal-link-icon-button.js +0 -39
- package/iconbutton/filled-tonal-link-icon-button.js.map +0 -1
- package/iconbutton/lib/icon-button-toggle.d.ts +0 -63
- package/iconbutton/lib/icon-button-toggle.js +0 -157
- package/iconbutton/lib/icon-button-toggle.js.map +0 -1
- package/iconbutton/lib/link-icon-button.d.ts +0 -23
- package/iconbutton/lib/link-icon-button.js +0 -58
- package/iconbutton/lib/link-icon-button.js.map +0 -1
- package/iconbutton/outlined-icon-button-toggle.d.ts +0 -31
- package/iconbutton/outlined-icon-button-toggle.js +0 -39
- package/iconbutton/outlined-icon-button-toggle.js.map +0 -1
- package/iconbutton/outlined-link-icon-button.d.ts +0 -31
- package/iconbutton/outlined-link-icon-button.js +0 -39
- package/iconbutton/outlined-link-icon-button.js.map +0 -1
- package/iconbutton/standard-icon-button-toggle.d.ts +0 -31
- package/iconbutton/standard-icon-button-toggle.js +0 -39
- package/iconbutton/standard-icon-button-toggle.js.map +0 -1
- package/iconbutton/standard-link-icon-button.d.ts +0 -31
- package/iconbutton/standard-link-icon-button.js +0 -39
- package/iconbutton/standard-link-icon-button.js.map +0 -1
- package/list/lib/_tokens.scss +0 -80
- package/list/lib/avatar/_list-item-avatar.scss +0 -38
- package/list/lib/avatar/list-item-avatar-styles.css.js +0 -9
- package/list/lib/avatar/list-item-avatar-styles.css.js.map +0 -1
- package/list/lib/avatar/list-item-avatar-styles.scss +0 -8
- package/list/lib/avatar/list-item-avatar.d.ts +0 -16
- package/list/lib/avatar/list-item-avatar.js +0 -35
- package/list/lib/avatar/list-item-avatar.js.map +0 -1
- package/list/lib/divider/_list-divider.scss +0 -46
- package/list/lib/divider/list-divider-styles.css.js +0 -9
- package/list/lib/divider/list-divider-styles.css.js.map +0 -1
- package/list/lib/divider/list-divider-styles.scss +0 -8
- package/list/lib/divider/list-divider.d.ts +0 -13
- package/list/lib/divider/list-divider.js +0 -32
- package/list/lib/divider/list-divider.js.map +0 -1
- package/list/lib/icon/_list-item-icon.scss +0 -65
- package/list/lib/icon/list-item-icon-styles.css.js +0 -9
- package/list/lib/icon/list-item-icon-styles.css.js.map +0 -1
- package/list/lib/icon/list-item-icon-styles.scss +0 -8
- package/list/lib/icon/list-item-icon.d.ts +0 -12
- package/list/lib/icon/list-item-icon.js +0 -26
- package/list/lib/icon/list-item-icon.js.map +0 -1
- package/list/lib/image/_list-item-image.scss +0 -59
- package/list/lib/image/list-item-image-styles.css.js +0 -9
- package/list/lib/image/list-item-image-styles.css.js.map +0 -1
- package/list/lib/image/list-item-image-styles.scss +0 -8
- package/list/lib/image/list-item-image.d.ts +0 -14
- package/list/lib/image/list-item-image.js +0 -37
- package/list/lib/image/list-item-image.js.map +0 -1
- package/list/lib/video/_list-item-video.scss +0 -61
- package/list/lib/video/list-item-video-styles.css.js +0 -9
- package/list/lib/video/list-item-video-styles.css.js.map +0 -1
- package/list/lib/video/list-item-video-styles.scss +0 -8
- package/list/lib/video/list-item-video.d.ts +0 -14
- package/list/lib/video/list-item-video.js +0 -37
- package/list/lib/video/list-item-video.js.map +0 -1
- package/list/list-divider.d.ts +0 -19
- package/list/list-divider.js +0 -22
- package/list/list-divider.js.map +0 -1
- package/list/list-item-avatar.d.ts +0 -19
- package/list/list-item-avatar.js +0 -22
- package/list/list-item-avatar.js.map +0 -1
- package/list/list-item-icon.d.ts +0 -19
- package/list/list-item-icon.js +0 -22
- package/list/list-item-icon.js.map +0 -1
- package/list/list-item-image.d.ts +0 -19
- package/list/list-item-image.js +0 -22
- package/list/list-item-image.js.map +0 -1
- package/list/list-item-video.d.ts +0 -19
- package/list/list-item-video.js +0 -22
- package/list/list-item-video.js.map +0 -1
- package/localization/localize.d.ts +0 -15
- package/localization/localize.js +0 -18
- package/localization/localize.js.map +0 -1
- package/menu/lib/_menu-button.scss +0 -14
- package/menu/lib/adapter.d.ts +0 -66
- package/menu/lib/adapter.js +0 -7
- package/menu/lib/adapter.js.map +0 -1
- package/menu/lib/constants.d.ts +0 -22
- package/menu/lib/constants.js +0 -23
- package/menu/lib/constants.js.map +0 -1
- package/menu/lib/foundation.d.ts +0 -49
- package/menu/lib/foundation.js +0 -123
- package/menu/lib/foundation.js.map +0 -1
- package/menu/lib/menu-button-styles.css.js +0 -9
- package/menu/lib/menu-button-styles.css.js.map +0 -1
- package/menu/lib/menu-button-styles.scss +0 -8
- package/menu/lib/menu-button.d.ts +0 -27
- package/menu/lib/menu-button.js +0 -93
- package/menu/lib/menu-button.js.map +0 -1
- package/menu/menu-button.d.ts +0 -14
- package/menu/menu-button.js +0 -17
- package/menu/menu-button.js.map +0 -1
- package/menusurface/_menu-surface.scss +0 -6
- package/menusurface/lib/_md-comp-menu-surface.scss +0 -27
- package/menusurface/lib/_menu-surface.scss +0 -118
- package/menusurface/lib/adapter.d.ts +0 -46
- package/menusurface/lib/adapter.js +0 -7
- package/menusurface/lib/adapter.js.map +0 -1
- package/menusurface/lib/constants.d.ts +0 -71
- package/menusurface/lib/constants.js +0 -83
- package/menusurface/lib/constants.js.map +0 -1
- package/menusurface/lib/foundation.d.ts +0 -176
- package/menusurface/lib/foundation.js +0 -544
- package/menusurface/lib/foundation.js.map +0 -1
- package/menusurface/lib/menu-surface-styles.css.js +0 -9
- package/menusurface/lib/menu-surface-styles.css.js.map +0 -1
- package/menusurface/lib/menu-surface-styles.scss +0 -8
- package/menusurface/lib/menu-surface.d.ts +0 -62
- package/menusurface/lib/menu-surface.js +0 -347
- package/menusurface/lib/menu-surface.js.map +0 -1
- package/menusurface/lib/types.d.ts +0 -19
- package/menusurface/lib/types.js +0 -7
- package/menusurface/lib/types.js.map +0 -1
- package/menusurface/menu-surface.d.ts +0 -14
- package/menusurface/menu-surface.js +0 -17
- package/menusurface/menu-surface.js.map +0 -1
- package/motion/animation.d.ts +0 -63
- package/motion/animation.js +0 -66
- package/motion/animation.js.map +0 -1
- package/navigationbar/harness.d.ts +0 -19
- package/navigationbar/harness.js +0 -29
- package/navigationbar/harness.js.map +0 -1
- package/navigationbar/lib/_navigation-bar.scss +0 -66
- package/navigationbar/lib/constants.d.ts +0 -17
- package/navigationbar/lib/navigation-bar-styles.css.js +0 -9
- package/navigationbar/lib/navigation-bar-styles.css.js.map +0 -1
- package/navigationbar/lib/navigation-bar-styles.scss +0 -8
- package/navigationbar/lib/navigation-bar.d.ts +0 -27
- package/navigationbar/lib/navigation-bar.js +0 -141
- package/navigationbar/lib/navigation-bar.js.map +0 -1
- package/navigationbar/navigation-bar.d.ts +0 -19
- package/navigationbar/navigation-bar.js +0 -22
- package/navigationbar/navigation-bar.js.map +0 -1
- package/navigationdrawer/lib/_navigation-drawer-modal.scss +0 -105
- package/navigationdrawer/lib/_navigation-drawer.scss +0 -100
- package/navigationdrawer/lib/_shared.scss +0 -44
- package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js +0 -9
- package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js.map +0 -1
- package/navigationdrawer/lib/navigation-drawer-modal-styles.scss +0 -8
- package/navigationdrawer/lib/navigation-drawer-modal.d.ts +0 -24
- package/navigationdrawer/lib/navigation-drawer-modal.js +0 -105
- package/navigationdrawer/lib/navigation-drawer-modal.js.map +0 -1
- package/navigationdrawer/lib/navigation-drawer-styles.css.js +0 -9
- package/navigationdrawer/lib/navigation-drawer-styles.css.js.map +0 -1
- package/navigationdrawer/lib/navigation-drawer-styles.scss +0 -8
- package/navigationdrawer/lib/navigation-drawer.d.ts +0 -21
- package/navigationdrawer/lib/navigation-drawer.js +0 -87
- package/navigationdrawer/lib/navigation-drawer.js.map +0 -1
- package/navigationdrawer/lib/shared-styles.css.js +0 -9
- package/navigationdrawer/lib/shared-styles.css.js.map +0 -1
- package/navigationdrawer/lib/shared-styles.scss +0 -8
- package/navigationdrawer/navigation-drawer-modal.d.ts +0 -19
- package/navigationdrawer/navigation-drawer-modal.js +0 -23
- package/navigationdrawer/navigation-drawer-modal.js.map +0 -1
- package/navigationdrawer/navigation-drawer.d.ts +0 -19
- package/navigationdrawer/navigation-drawer.js +0 -23
- package/navigationdrawer/navigation-drawer.js.map +0 -1
- package/navigationtab/harness.d.ts +0 -13
- package/navigationtab/harness.js +0 -16
- package/navigationtab/harness.js.map +0 -1
- package/navigationtab/lib/_navigation-tab.scss +0 -274
- package/navigationtab/lib/navigation-tab-styles.css.js +0 -9
- package/navigationtab/lib/navigation-tab-styles.css.js.map +0 -1
- package/navigationtab/lib/navigation-tab-styles.scss +0 -8
- package/navigationtab/lib/navigation-tab.d.ts +0 -48
- package/navigationtab/lib/navigation-tab.js +0 -174
- package/navigationtab/lib/navigation-tab.js.map +0 -1
- package/navigationtab/lib/state.d.ts +0 -24
- package/navigationtab/lib/state.js.map +0 -1
- package/navigationtab/navigation-tab.d.ts +0 -19
- package/navigationtab/navigation-tab.js +0 -22
- package/navigationtab/navigation-tab.js.map +0 -1
- package/ripple/directive.d.ts +0 -63
- package/ripple/directive.js +0 -266
- package/ripple/directive.js.map +0 -1
- package/ripple/lib/_md-comp-ripple.scss +0 -29
- package/sass/_assert.scss +0 -21
- package/sass/_color-scheme.scss +0 -88
- package/sass/_color.scss +0 -166
- package/sass/_dom.scss +0 -52
- package/sass/_elevation.scss +0 -155
- package/sass/_feature-flags.scss +0 -117
- package/sass/_map-ext.scss +0 -25
- package/sass/_resolvers.scss +0 -16
- package/sass/_shape.scss +0 -106
- package/sass/_string-ext.scss +0 -128
- package/sass/_theme.scss +0 -245
- package/sass/_touch-target.scss +0 -22
- package/sass/_typography.scss +0 -114
- package/sass/_var.scss +0 -241
- package/segmentedbutton/lib/_outlined-segmented-button.scss +0 -42
- package/segmentedbutton/lib/_shared.scss +0 -388
- package/segmentedbutton/lib/outlined-segmented-button.d.ts +0 -15
- package/segmentedbutton/lib/outlined-segmented-button.js +0 -22
- package/segmentedbutton/lib/outlined-segmented-button.js.map +0 -1
- package/segmentedbutton/lib/outlined-styles.css.js +0 -9
- package/segmentedbutton/lib/outlined-styles.css.js.map +0 -1
- package/segmentedbutton/lib/outlined-styles.scss +0 -8
- package/segmentedbutton/lib/segmented-button.d.ts +0 -60
- package/segmentedbutton/lib/segmented-button.js +0 -229
- package/segmentedbutton/lib/segmented-button.js.map +0 -1
- package/segmentedbutton/lib/shared-styles.css.js +0 -9
- package/segmentedbutton/lib/shared-styles.css.js.map +0 -1
- package/segmentedbutton/lib/shared-styles.scss +0 -8
- package/segmentedbutton/outlined-segmented-button.d.ts +0 -21
- package/segmentedbutton/outlined-segmented-button.js +0 -25
- package/segmentedbutton/outlined-segmented-button.js.map +0 -1
- package/segmentedbuttonset/lib/_outlined-segmented-button-set.scss +0 -30
- package/segmentedbuttonset/lib/_shared.scss +0 -46
- package/segmentedbuttonset/lib/outlined-segmented-button-set.d.ts +0 -12
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js +0 -17
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js.map +0 -1
- package/segmentedbuttonset/lib/outlined-styles.css.js +0 -9
- package/segmentedbuttonset/lib/outlined-styles.css.js.map +0 -1
- package/segmentedbuttonset/lib/outlined-styles.scss +0 -8
- package/segmentedbuttonset/lib/segmented-button-set.d.ts +0 -34
- package/segmentedbuttonset/lib/segmented-button-set.js +0 -118
- package/segmentedbuttonset/lib/segmented-button-set.js.map +0 -1
- package/segmentedbuttonset/lib/shared-styles.scss +0 -8
- package/segmentedbuttonset/outlined-segmented-button-set.d.ts +0 -21
- package/segmentedbuttonset/outlined-segmented-button-set.js +0 -25
- package/segmentedbuttonset/outlined-segmented-button-set.js.map +0 -1
- package/tokens/v0_150/_index.scss +0 -107
- package/tokens/v0_150/_md-comp-assist-chip.scss +0 -109
- package/tokens/v0_150/_md-comp-badge.scss +0 -58
- package/tokens/v0_150/_md-comp-banner.scss +0 -116
- package/tokens/v0_150/_md-comp-bottom-app-bar.scss +0 -36
- package/tokens/v0_150/_md-comp-carousel-item.scss +0 -65
- package/tokens/v0_150/_md-comp-checkbox.scss +0 -147
- package/tokens/v0_150/_md-comp-circular-progress-indicator.scss +0 -39
- package/tokens/v0_150/_md-comp-data-table.scss +0 -100
- package/tokens/v0_150/_md-comp-date-input-modal.scss +0 -89
- package/tokens/v0_150/_md-comp-date-picker-docked.scss +0 -246
- package/tokens/v0_150/_md-comp-date-picker-modal.scss +0 -305
- package/tokens/v0_150/_md-comp-dialog.scss +0 -146
- package/tokens/v0_150/_md-comp-divider.scss +0 -25
- package/tokens/v0_150/_md-comp-elevated-button.scss +0 -91
- package/tokens/v0_150/_md-comp-elevated-card.scss +0 -59
- package/tokens/v0_150/_md-comp-extended-fab-branded.scss +0 -86
- package/tokens/v0_150/_md-comp-extended-fab-primary.scss +0 -94
- package/tokens/v0_150/_md-comp-extended-fab-secondary.scss +0 -95
- package/tokens/v0_150/_md-comp-extended-fab-surface.scss +0 -90
- package/tokens/v0_150/_md-comp-extended-fab-tertiary.scss +0 -97
- package/tokens/v0_150/_md-comp-fab-branded-large.scss +0 -61
- package/tokens/v0_150/_md-comp-fab-branded.scss +0 -60
- package/tokens/v0_150/_md-comp-fab-primary-large.scss +0 -65
- package/tokens/v0_150/_md-comp-fab-primary-small.scss +0 -65
- package/tokens/v0_150/_md-comp-fab-primary.scss +0 -65
- package/tokens/v0_150/_md-comp-fab-secondary-large.scss +0 -66
- package/tokens/v0_150/_md-comp-fab-secondary-small.scss +0 -66
- package/tokens/v0_150/_md-comp-fab-secondary.scss +0 -66
- package/tokens/v0_150/_md-comp-fab-surface-large.scss +0 -64
- package/tokens/v0_150/_md-comp-fab-surface-small.scss +0 -64
- package/tokens/v0_150/_md-comp-fab-surface.scss +0 -64
- package/tokens/v0_150/_md-comp-fab-tertiary-large.scss +0 -66
- package/tokens/v0_150/_md-comp-fab-tertiary-small.scss +0 -66
- package/tokens/v0_150/_md-comp-fab-tertiary.scss +0 -66
- package/tokens/v0_150/_md-comp-filled-autocomplete.scss +0 -268
- package/tokens/v0_150/_md-comp-filled-button.scss +0 -95
- package/tokens/v0_150/_md-comp-filled-card.scss +0 -60
- package/tokens/v0_150/_md-comp-filled-icon-button.scss +0 -79
- package/tokens/v0_150/_md-comp-filled-menu-button.scss +0 -98
- package/tokens/v0_150/_md-comp-filled-select.scss +0 -276
- package/tokens/v0_150/_md-comp-filled-text-field.scss +0 -190
- package/tokens/v0_150/_md-comp-filled-tonal-button.scss +0 -99
- package/tokens/v0_150/_md-comp-filled-tonal-icon-button.scss +0 -86
- package/tokens/v0_150/_md-comp-filter-chip.scss +0 -237
- package/tokens/v0_150/_md-comp-full-screen-dialog.scss +0 -161
- package/tokens/v0_150/_md-comp-icon-button.scss +0 -70
- package/tokens/v0_150/_md-comp-input-chip.scss +0 -234
- package/tokens/v0_150/_md-comp-linear-progress-indicator.scss +0 -41
- package/tokens/v0_150/_md-comp-list.scss +0 -257
- package/tokens/v0_150/_md-comp-menu.scss +0 -123
- package/tokens/v0_150/_md-comp-navigation-bar.scss +0 -121
- package/tokens/v0_150/_md-comp-navigation-drawer.scss +0 -168
- package/tokens/v0_150/_md-comp-navigation-rail.scss +0 -168
- package/tokens/v0_150/_md-comp-outlined-autocomplete.scss +0 -258
- package/tokens/v0_150/_md-comp-outlined-button.scss +0 -88
- package/tokens/v0_150/_md-comp-outlined-card.scss +0 -65
- package/tokens/v0_150/_md-comp-outlined-icon-button.scss +0 -81
- package/tokens/v0_150/_md-comp-outlined-menu-button.scss +0 -94
- package/tokens/v0_150/_md-comp-outlined-segmented-button.scss +0 -112
- package/tokens/v0_150/_md-comp-outlined-select.scss +0 -266
- package/tokens/v0_150/_md-comp-outlined-text-field.scss +0 -172
- package/tokens/v0_150/_md-comp-plain-tooltip.scss +0 -55
- package/tokens/v0_150/_md-comp-primary-navigation-tab.scss +0 -123
- package/tokens/v0_150/_md-comp-radio-button.scss +0 -68
- package/tokens/v0_150/_md-comp-rich-tooltip.scss +0 -121
- package/tokens/v0_150/_md-comp-scrim.scss +0 -25
- package/tokens/v0_150/_md-comp-search-bar.scss +0 -99
- package/tokens/v0_150/_md-comp-search-view.scss +0 -93
- package/tokens/v0_150/_md-comp-secondary-navigation-tab.scss +0 -86
- package/tokens/v0_150/_md-comp-sheet-bottom.scss +0 -45
- package/tokens/v0_150/_md-comp-sheet-floating.scss +0 -34
- package/tokens/v0_150/_md-comp-sheet-side.scss +0 -89
- package/tokens/v0_150/_md-comp-slider.scss +0 -116
- package/tokens/v0_150/_md-comp-snackbar.scss +0 -127
- package/tokens/v0_150/_md-comp-standard-menu-button.scss +0 -98
- package/tokens/v0_150/_md-comp-suggestion-chip.scss +0 -125
- package/tokens/v0_150/_md-comp-switch.scss +0 -145
- package/tokens/v0_150/_md-comp-text-button.scss +0 -81
- package/tokens/v0_150/_md-comp-time-input.scss +0 -218
- package/tokens/v0_150/_md-comp-time-picker.scss +0 -267
- package/tokens/v0_150/_md-comp-top-app-bar-large.scss +0 -63
- package/tokens/v0_150/_md-comp-top-app-bar-medium.scss +0 -63
- package/tokens/v0_150/_md-comp-top-app-bar-small-centered.scss +0 -67
- package/tokens/v0_150/_md-comp-top-app-bar-small.scss +0 -65
- package/tokens/v0_150/_md-ref-palette.scss +0 -107
- package/tokens/v0_150/_md-ref-typeface.scss +0 -21
- package/tokens/v0_150/_md-sys-color.scss +0 -706
- package/tokens/v0_150/_md-sys-elevation.scss +0 -30
- package/tokens/v0_150/_md-sys-motion.scss +0 -53
- package/tokens/v0_150/_md-sys-shape.scss +0 -30
- package/tokens/v0_150/_md-sys-state.scss +0 -19
- package/tokens/v0_150/_md-sys-typescale.scss +0 -285
- package/tokens/v0_150/index.test.scss +0 -584
- package/tokens/v0_150/lib.test.scss +0 -663
- package/types/aria.d.ts +0 -48
- package/types/keys.d.ts +0 -57
- /package/{autocomplete/lib/autocompletelist/autocomplete-list-styles.css.d.ts → chips/lib/assist-styles.css.d.ts} +0 -0
- /package/{autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.d.ts → chips/lib/chip-set-styles.css.d.ts} +0 -0
- /package/{autocomplete/lib/filled-styles.css.d.ts → chips/lib/elevated-styles.css.d.ts} +0 -0
- /package/{autocomplete/lib/outlined-styles.css.d.ts → chips/lib/filter-styles.css.d.ts} +0 -0
- /package/{autocomplete/lib/shared-styles.css.d.ts → chips/lib/input-styles.css.d.ts} +0 -0
- /package/{badge/lib/badge-styles.css.d.ts → chips/lib/selectable-styles.css.d.ts} +0 -0
- /package/{navigationdrawer → chips}/lib/shared-styles.css.d.ts +0 -0
- /package/{fab/lib/fab-extended-styles.css.d.ts → chips/lib/suggestion-styles.css.d.ts} +0 -0
- /package/{fab/lib/fab-shared-styles.css.d.ts → chips/lib/trailing-icon-styles.css.d.ts} +0 -0
- /package/{list/lib/avatar/list-item-avatar-styles.css.d.ts → circularprogress/lib/circular-progress-styles.css.d.ts} +0 -0
- /package/{list/lib/divider/list-divider-styles.css.d.ts → dialog/lib/dialog-styles.css.d.ts} +0 -0
- /package/{list/lib/icon/list-item-icon-styles.css.d.ts → divider/lib/divider-styles.css.d.ts} +0 -0
- /package/{list/lib/image/list-item-image-styles.css.d.ts → fab/lib/fab-branded-styles.css.d.ts} +0 -0
- /package/{list/lib/video/list-item-video-styles.css.d.ts → fab/lib/forced-colors-styles.css.d.ts} +0 -0
- /package/{segmentedbutton → fab}/lib/shared-styles.css.d.ts +0 -0
- /package/{controller → internal/controller}/events.d.ts +0 -0
- /package/{controller → internal/controller}/is-rtl.d.ts +0 -0
- /package/{controller → internal/controller}/is-rtl.js +0 -0
- /package/{controller → internal/controller}/is-rtl.js.map +0 -0
- /package/{controller → internal/controller}/string-converter.d.ts +0 -0
- /package/{controller → internal/controller}/string-converter.js +0 -0
- /package/{controller → internal/controller}/string-converter.js.map +0 -0
- /package/{motion → internal/motion}/_animation.scss +0 -0
- /package/{badge → labs/badge}/_badge.scss +0 -0
- /package/{menu/lib/menu-button-styles.css.d.ts → labs/badge/lib/badge-styles.css.d.ts} +0 -0
- /package/{navigationbar → labs/navigationbar}/_navigation-bar.scss +0 -0
- /package/{navigationbar → labs/navigationbar}/lib/constants.js +0 -0
- /package/{navigationbar → labs/navigationbar}/lib/constants.js.map +0 -0
- /package/{navigationbar → labs/navigationbar}/lib/navigation-bar-styles.css.d.ts +0 -0
- /package/{navigationbar → labs/navigationbar}/lib/state.d.ts +0 -0
- /package/{navigationbar → labs/navigationbar}/lib/state.js +0 -0
- /package/{navigationbar → labs/navigationbar}/lib/state.js.map +0 -0
- /package/{navigationdrawer → labs/navigationdrawer}/_navigation-drawer-modal.scss +0 -0
- /package/{navigationdrawer → labs/navigationdrawer}/_navigation-drawer.scss +0 -0
- /package/{navigationdrawer → labs/navigationdrawer}/lib/navigation-drawer-modal-styles.css.d.ts +0 -0
- /package/{navigationdrawer → labs/navigationdrawer}/lib/navigation-drawer-styles.css.d.ts +0 -0
- /package/{segmentedbuttonset → labs/navigationdrawer}/lib/shared-styles.css.d.ts +0 -0
- /package/{navigationtab → labs/navigationtab}/_navigation-tab.scss +0 -0
- /package/{navigationtab → labs/navigationtab}/lib/navigation-tab-styles.css.d.ts +0 -0
- /package/{navigationtab → labs/navigationtab}/lib/state.js +0 -0
- /package/{segmentedbutton → labs/segmentedbutton}/lib/outlined-styles.css.d.ts +0 -0
- /package/{menusurface/lib/menu-surface-styles.css.d.ts → labs/segmentedbutton/lib/shared-styles.css.d.ts} +0 -0
- /package/{segmentedbuttonset → labs/segmentedbuttonset}/lib/outlined-styles.css.d.ts +0 -0
- /package/{tokens/v0_150/index.test.css.d.ts → labs/segmentedbuttonset/lib/shared-styles.css.d.ts} +0 -0
- /package/{segmentedbuttonset → labs/segmentedbuttonset}/lib/shared-styles.css.js +0 -0
- /package/{segmentedbuttonset → labs/segmentedbuttonset}/lib/shared-styles.css.js.map +0 -0
- /package/{tokens/v0_150/lib.test.css.d.ts → linearprogress/lib/linear-progress-styles.css.d.ts} +0 -0
- /package/tokens/{v0_150 → v0_172}/index.test.css.js +0 -0
- /package/tokens/{v0_150 → v0_172}/index.test.css.js.map +0 -0
- /package/tokens/{v0_150 → v0_172}/lib.test.css.js +0 -0
- /package/tokens/{v0_150 → v0_172}/lib.test.css.js.map +0 -0
|
@@ -1,24 +1,121 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @requirecss {textfield.lib.shared_styles}
|
|
3
|
-
*
|
|
4
2
|
* @license
|
|
5
3
|
* Copyright 2021 Google LLC
|
|
6
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
7
5
|
*/
|
|
8
|
-
|
|
9
|
-
import {
|
|
6
|
+
var _a;
|
|
7
|
+
import { __decorate } from "tslib";
|
|
8
|
+
import { html, isServer, LitElement, nothing } from 'lit';
|
|
10
9
|
import { property, query, queryAssignedElements, state } from 'lit/decorators.js';
|
|
11
10
|
import { classMap } from 'lit/directives/class-map.js';
|
|
12
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
13
11
|
import { live } from 'lit/directives/live.js';
|
|
14
12
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
15
13
|
import { html as staticHtml } from 'lit/static-html.js';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { stringConverter } from '../../controller/string-converter.js';
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
import { requestUpdateOnAriaChange } from '../../internal/aria/delegate.js';
|
|
15
|
+
import { redispatchEvent } from '../../internal/controller/events.js';
|
|
16
|
+
import { stringConverter } from '../../internal/controller/string-converter.js';
|
|
17
|
+
/**
|
|
18
|
+
* A text field component.
|
|
19
|
+
*/
|
|
21
20
|
export class TextField extends LitElement {
|
|
21
|
+
/**
|
|
22
|
+
* The associated form element with which this element's value will submit.
|
|
23
|
+
*/
|
|
24
|
+
get form() {
|
|
25
|
+
return this.internals.form;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The labels this element is associated with.
|
|
29
|
+
*/
|
|
30
|
+
get labels() {
|
|
31
|
+
return this.internals.labels;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The HTML name to use in form submission.
|
|
35
|
+
*/
|
|
36
|
+
get name() {
|
|
37
|
+
return this.getAttribute('name') ?? '';
|
|
38
|
+
}
|
|
39
|
+
set name(name) {
|
|
40
|
+
this.setAttribute('name', name);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Gets or sets the direction in which selection occurred.
|
|
44
|
+
*/
|
|
45
|
+
get selectionDirection() {
|
|
46
|
+
return this.getInput().selectionDirection;
|
|
47
|
+
}
|
|
48
|
+
set selectionDirection(value) {
|
|
49
|
+
this.getInput().selectionDirection = value;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Gets or sets the end position or offset of a text selection.
|
|
53
|
+
*/
|
|
54
|
+
get selectionEnd() {
|
|
55
|
+
return this.getInput().selectionEnd;
|
|
56
|
+
}
|
|
57
|
+
set selectionEnd(value) {
|
|
58
|
+
this.getInput().selectionEnd = value;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Gets or sets the starting position or offset of a text selection.
|
|
62
|
+
*/
|
|
63
|
+
get selectionStart() {
|
|
64
|
+
return this.getInput().selectionStart;
|
|
65
|
+
}
|
|
66
|
+
set selectionStart(value) {
|
|
67
|
+
this.getInput().selectionStart = value;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns the native validation error message that would be displayed upon
|
|
71
|
+
* calling `reportValidity()`.
|
|
72
|
+
*
|
|
73
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage
|
|
74
|
+
*/
|
|
75
|
+
get validationMessage() {
|
|
76
|
+
return this.getInput().validationMessage;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns a ValidityState object that represents the validity states of the
|
|
80
|
+
* text field.
|
|
81
|
+
*
|
|
82
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity
|
|
83
|
+
*/
|
|
84
|
+
get validity() {
|
|
85
|
+
return this.getInput().validity;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The text field's value as a number.
|
|
89
|
+
*/
|
|
90
|
+
get valueAsNumber() {
|
|
91
|
+
return this.getInput().valueAsNumber;
|
|
92
|
+
}
|
|
93
|
+
set valueAsNumber(value) {
|
|
94
|
+
this.getInput().valueAsNumber = value;
|
|
95
|
+
this.value = this.getInput().value;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The text field's value as a Date.
|
|
99
|
+
*/
|
|
100
|
+
get valueAsDate() {
|
|
101
|
+
return this.getInput().valueAsDate;
|
|
102
|
+
}
|
|
103
|
+
set valueAsDate(value) {
|
|
104
|
+
this.getInput().valueAsDate = value;
|
|
105
|
+
this.value = this.getInput().value;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Returns whether an element will successfully validate based on forms
|
|
109
|
+
* validation rules and constraints.
|
|
110
|
+
*
|
|
111
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate
|
|
112
|
+
*/
|
|
113
|
+
get willValidate() {
|
|
114
|
+
return this.getInput().willValidate;
|
|
115
|
+
}
|
|
116
|
+
get hasError() {
|
|
117
|
+
return this.error || this.nativeError;
|
|
118
|
+
}
|
|
22
119
|
constructor() {
|
|
23
120
|
super();
|
|
24
121
|
this.disabled = false;
|
|
@@ -40,18 +137,8 @@ export class TextField extends LitElement {
|
|
|
40
137
|
this.required = false;
|
|
41
138
|
/**
|
|
42
139
|
* The current value of the text field. It is always a string.
|
|
43
|
-
*
|
|
44
|
-
* This is equal to `defaultValue` before user input.
|
|
45
140
|
*/
|
|
46
141
|
this.value = '';
|
|
47
|
-
/**
|
|
48
|
-
* The default value of the text field. Before user input, changing the
|
|
49
|
-
* default value will update `value` as well.
|
|
50
|
-
*
|
|
51
|
-
* When the text field is reset, its `value` will be set to this default
|
|
52
|
-
* value.
|
|
53
|
-
*/
|
|
54
|
-
this.defaultValue = '';
|
|
55
142
|
/**
|
|
56
143
|
* An optional prefix to display before the input value.
|
|
57
144
|
*/
|
|
@@ -78,16 +165,6 @@ export class TextField extends LitElement {
|
|
|
78
165
|
* LTR notation for fractions.
|
|
79
166
|
*/
|
|
80
167
|
this.textDirection = '';
|
|
81
|
-
// ARIA
|
|
82
|
-
// TODO(b/210730484): replace with @soyParam annotation
|
|
83
|
-
this.ariaAutoComplete = null;
|
|
84
|
-
this.ariaControls = null;
|
|
85
|
-
this.ariaActiveDescendant = null;
|
|
86
|
-
this.ariaExpanded = null;
|
|
87
|
-
// tslint:disable:decorator-placement
|
|
88
|
-
// @ts-ignore(b/264292293): Use `override` with TS 4.9+
|
|
89
|
-
this.role = null;
|
|
90
|
-
this.name = '';
|
|
91
168
|
// <input> properties
|
|
92
169
|
/**
|
|
93
170
|
* Defines the greatest value in the range of permitted values.
|
|
@@ -137,7 +214,6 @@ export class TextField extends LitElement {
|
|
|
137
214
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step
|
|
138
215
|
*/
|
|
139
216
|
this.step = '';
|
|
140
|
-
// TODO(b/237284412): replace with exported types
|
|
141
217
|
this.type = 'text';
|
|
142
218
|
/**
|
|
143
219
|
* Returns true when the text field has been interacted with. Native
|
|
@@ -151,19 +227,6 @@ export class TextField extends LitElement {
|
|
|
151
227
|
* to screen readers.
|
|
152
228
|
*/
|
|
153
229
|
this.refreshErrorAlert = false;
|
|
154
|
-
/**
|
|
155
|
-
* Returns true when the text field's `value` property has been changed from
|
|
156
|
-
* it's initial value.
|
|
157
|
-
*
|
|
158
|
-
* Setting `value` should always overwrite `defaultValue`, even when `value`
|
|
159
|
-
* is an empty string. This flag ensures that behavior.
|
|
160
|
-
*/
|
|
161
|
-
this.valueHasChanged = false;
|
|
162
|
-
/**
|
|
163
|
-
* Whether or not to ignore the next `value` change when computing
|
|
164
|
-
* `valueHasChanged`.
|
|
165
|
-
*/
|
|
166
|
-
this.ignoreNextValueChange = false;
|
|
167
230
|
/**
|
|
168
231
|
* Whether or not a native error has been reported via `reportValidity()`.
|
|
169
232
|
*/
|
|
@@ -173,97 +236,12 @@ export class TextField extends LitElement {
|
|
|
173
236
|
* `reportValidity()`.
|
|
174
237
|
*/
|
|
175
238
|
this.nativeErrorText = '';
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
this.addEventListener('click', this.handleClick);
|
|
183
|
-
this.addEventListener('focusin', this.handleFocusin);
|
|
184
|
-
this.addEventListener('focusout', this.handleFocusout);
|
|
185
|
-
}
|
|
186
|
-
// tslint:enable:decorator-placement
|
|
187
|
-
// FormElement
|
|
188
|
-
get form() {
|
|
189
|
-
return this.closest('form');
|
|
190
|
-
}
|
|
191
|
-
[getFormValue]() {
|
|
192
|
-
return this.value;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Gets or sets the direction in which selection occurred.
|
|
196
|
-
*/
|
|
197
|
-
get selectionDirection() {
|
|
198
|
-
return this.getInput().selectionDirection;
|
|
199
|
-
}
|
|
200
|
-
set selectionDirection(value) {
|
|
201
|
-
this.getInput().selectionDirection = value;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Gets or sets the end position or offset of a text selection.
|
|
205
|
-
*/
|
|
206
|
-
get selectionEnd() {
|
|
207
|
-
return this.getInput().selectionEnd;
|
|
208
|
-
}
|
|
209
|
-
set selectionEnd(value) {
|
|
210
|
-
this.getInput().selectionEnd = value;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Gets or sets the starting position or offset of a text selection.
|
|
214
|
-
*/
|
|
215
|
-
get selectionStart() {
|
|
216
|
-
return this.getInput().selectionStart;
|
|
217
|
-
}
|
|
218
|
-
set selectionStart(value) {
|
|
219
|
-
this.getInput().selectionStart = value;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Returns the native validation error message that would be displayed upon
|
|
223
|
-
* calling `reportValidity()`.
|
|
224
|
-
*
|
|
225
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage
|
|
226
|
-
*/
|
|
227
|
-
get validationMessage() {
|
|
228
|
-
return this.getInput().validationMessage;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Returns a ValidityState object that represents the validity states of the
|
|
232
|
-
* text field.
|
|
233
|
-
*
|
|
234
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity
|
|
235
|
-
*/
|
|
236
|
-
get validity() {
|
|
237
|
-
return this.getInput().validity;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* The text field's value as a number.
|
|
241
|
-
*/
|
|
242
|
-
get valueAsNumber() {
|
|
243
|
-
return this.getInput().valueAsNumber;
|
|
244
|
-
}
|
|
245
|
-
set valueAsNumber(value) {
|
|
246
|
-
this.getInput().valueAsNumber = value;
|
|
247
|
-
this.value = this.getInput().value;
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* The text field's value as a Date.
|
|
251
|
-
*/
|
|
252
|
-
get valueAsDate() {
|
|
253
|
-
return this.getInput().valueAsDate;
|
|
254
|
-
}
|
|
255
|
-
set valueAsDate(value) {
|
|
256
|
-
this.getInput().valueAsDate = value;
|
|
257
|
-
this.value = this.getInput().value;
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Returns whether an element will successfully validate based on forms
|
|
261
|
-
* validation rules and constraints.
|
|
262
|
-
*
|
|
263
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate
|
|
264
|
-
*/
|
|
265
|
-
get willValidate() {
|
|
266
|
-
return this.getInput().willValidate;
|
|
239
|
+
this.internals = this /* needed for closure */.attachInternals();
|
|
240
|
+
if (!isServer) {
|
|
241
|
+
this.addEventListener('click', this.focus);
|
|
242
|
+
this.addEventListener('focusin', this.handleFocusin);
|
|
243
|
+
this.addEventListener('focusout', this.handleFocusout);
|
|
244
|
+
}
|
|
267
245
|
}
|
|
268
246
|
/**
|
|
269
247
|
* Checks the text field's native validation and returns whether or not the
|
|
@@ -288,15 +266,7 @@ export class TextField extends LitElement {
|
|
|
288
266
|
// button, to the input when focus is requested.
|
|
289
267
|
return;
|
|
290
268
|
}
|
|
291
|
-
|
|
292
|
-
// delegating focus
|
|
293
|
-
this.getInput().focus();
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Unfocuses the text field.
|
|
297
|
-
*/
|
|
298
|
-
blur() {
|
|
299
|
-
this.getInput().blur();
|
|
269
|
+
super.focus();
|
|
300
270
|
}
|
|
301
271
|
/**
|
|
302
272
|
* Checks the text field's native validation and returns whether or not the
|
|
@@ -400,46 +370,62 @@ export class TextField extends LitElement {
|
|
|
400
370
|
*/
|
|
401
371
|
reset() {
|
|
402
372
|
this.dirty = false;
|
|
403
|
-
this.
|
|
404
|
-
this.ignoreNextValueChange = true;
|
|
405
|
-
this.value = this.defaultValue;
|
|
373
|
+
this.value = this.getAttribute('value') ?? '';
|
|
406
374
|
this.nativeError = false;
|
|
407
375
|
this.nativeErrorText = '';
|
|
408
376
|
}
|
|
409
|
-
|
|
377
|
+
attributeChangedCallback(attribute, newValue, oldValue) {
|
|
378
|
+
if (attribute === 'value' && this.dirty) {
|
|
379
|
+
// After user input, changing the value attribute no longer updates the
|
|
380
|
+
// text field's value (until reset). This matches native <input> behavior.
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
super.attributeChangedCallback(attribute, newValue, oldValue);
|
|
384
|
+
}
|
|
410
385
|
render() {
|
|
386
|
+
const classes = {
|
|
387
|
+
'disabled': this.disabled,
|
|
388
|
+
'error': !this.disabled && this.hasError,
|
|
389
|
+
};
|
|
411
390
|
return html `
|
|
412
|
-
<span class="
|
|
391
|
+
<span class="text-field ${classMap(classes)}">
|
|
413
392
|
${this.renderField()}
|
|
414
393
|
</span>
|
|
415
394
|
`;
|
|
416
395
|
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
396
|
+
updated(changedProperties) {
|
|
397
|
+
// Keep changedProperties arg so that subclasses may call it
|
|
398
|
+
// If a property such as `type` changes and causes the internal <input>
|
|
399
|
+
// value to change without dispatching an event, re-sync it.
|
|
400
|
+
const value = this.getInput().value;
|
|
401
|
+
this.internals.setFormValue(value);
|
|
402
|
+
if (this.value !== value) {
|
|
403
|
+
// Note this is typically inefficient in updated() since it schedules
|
|
404
|
+
// another update. However, it is needed for the <input> to fully render
|
|
405
|
+
// before checking its value.
|
|
406
|
+
this.value = value;
|
|
407
|
+
}
|
|
408
|
+
if (this.refreshErrorAlert) {
|
|
409
|
+
// The past render cycle removed the role="alert" from the error message.
|
|
410
|
+
// Re-add it after an animation frame to re-announce the error.
|
|
411
|
+
requestAnimationFrame(() => {
|
|
412
|
+
this.refreshErrorAlert = false;
|
|
413
|
+
});
|
|
414
|
+
}
|
|
427
415
|
}
|
|
428
|
-
/** @soyTemplate */
|
|
429
416
|
renderField() {
|
|
430
417
|
const prefix = this.renderPrefix();
|
|
431
418
|
const suffix = this.renderSuffix();
|
|
432
419
|
const input = this.renderInput();
|
|
433
|
-
const inputValue = this.getInputValue();
|
|
434
420
|
return staticHtml `<${this.fieldTag}
|
|
435
|
-
class="
|
|
421
|
+
class="field"
|
|
436
422
|
?disabled=${this.disabled}
|
|
437
|
-
?error=${this.
|
|
423
|
+
?error=${this.hasError}
|
|
438
424
|
?focused=${this.focused}
|
|
439
425
|
?hasEnd=${this.hasTrailingIcon}
|
|
440
426
|
?hasStart=${this.hasLeadingIcon}
|
|
441
427
|
.label=${this.label}
|
|
442
|
-
?populated=${!!
|
|
428
|
+
?populated=${!!this.value}
|
|
443
429
|
?required=${this.required}
|
|
444
430
|
>
|
|
445
431
|
${this.renderLeadingIcon()}
|
|
@@ -449,206 +435,115 @@ export class TextField extends LitElement {
|
|
|
449
435
|
${this.renderCounter()}
|
|
450
436
|
</${this.fieldTag}>`;
|
|
451
437
|
}
|
|
452
|
-
/**
|
|
453
|
-
* @soyTemplate
|
|
454
|
-
* @slotName start
|
|
455
|
-
*/
|
|
456
438
|
renderLeadingIcon() {
|
|
457
439
|
return html `
|
|
458
|
-
<span class="
|
|
459
|
-
slot="start">
|
|
440
|
+
<span class="icon leading" slot="start">
|
|
460
441
|
<slot name="leadingicon" @slotchange=${this.handleIconChange}></slot>
|
|
461
442
|
</span>
|
|
462
443
|
`;
|
|
463
444
|
}
|
|
464
|
-
/**
|
|
465
|
-
* @soyTemplate
|
|
466
|
-
* @slotName end
|
|
467
|
-
*/
|
|
468
445
|
renderTrailingIcon() {
|
|
469
446
|
return html `
|
|
470
|
-
<span class="
|
|
471
|
-
slot="end">
|
|
447
|
+
<span class="icon trailing" slot="end">
|
|
472
448
|
<slot name="trailingicon" @slotchange=${this.handleIconChange}></slot>
|
|
473
449
|
</span>
|
|
474
450
|
`;
|
|
475
451
|
}
|
|
476
|
-
/** @soyTemplate */
|
|
477
452
|
renderInput() {
|
|
478
|
-
// TODO(b/237283903): remove when custom isTruthy directive is supported
|
|
479
|
-
const placeholderValue = this.placeholder || undefined;
|
|
480
|
-
const ariaActiveDescendantValue = this.ariaActiveDescendant || undefined;
|
|
481
|
-
const ariaAutoCompleteValue = this.ariaAutoComplete || undefined;
|
|
482
|
-
const ariaControlsValue = this.ariaControls || undefined;
|
|
483
|
-
const ariaDescribedByValue = this.getAriaDescribedBy() || undefined;
|
|
484
|
-
const ariaExpandedValue = this.ariaExpanded || undefined;
|
|
485
|
-
const ariaLabelValue = this.ariaLabel || this.label || undefined;
|
|
486
|
-
const ariaLabelledByValue = this.ariaLabelledBy || undefined;
|
|
487
|
-
const maxValue = this.max || undefined;
|
|
488
|
-
const maxLengthValue = this.maxLength > -1 ? this.maxLength : undefined;
|
|
489
|
-
const minValue = this.min || undefined;
|
|
490
|
-
const minLengthValue = this.minLength > -1 ? this.minLength : undefined;
|
|
491
|
-
const patternValue = this.pattern || undefined;
|
|
492
|
-
const roleValue = this.role || undefined;
|
|
493
|
-
const stepValue = this.step || undefined;
|
|
494
|
-
/** @styleMap */
|
|
495
453
|
const style = { direction: this.textDirection };
|
|
496
454
|
// TODO(b/243805848): remove `as unknown as number` once lit analyzer is
|
|
497
455
|
// fixed
|
|
498
456
|
return html `<input
|
|
499
|
-
class="md3-text-field__input"
|
|
500
457
|
style=${styleMap(style)}
|
|
501
|
-
aria-
|
|
502
|
-
aria-
|
|
503
|
-
aria-
|
|
504
|
-
aria-
|
|
505
|
-
aria-
|
|
506
|
-
aria-invalid=${this.getError()}
|
|
507
|
-
aria-label=${ifDefined(ariaLabelValue)}
|
|
508
|
-
aria-labelledby=${ifDefined(ariaLabelledByValue)}
|
|
458
|
+
aria-autocomplete=${this.ariaAutoComplete || nothing}
|
|
459
|
+
aria-describedby=${this.getAriaDescribedBy() || nothing}
|
|
460
|
+
aria-expanded=${this.ariaExpanded || nothing}
|
|
461
|
+
aria-invalid=${this.hasError}
|
|
462
|
+
aria-label=${this.ariaLabel || this.label || nothing}
|
|
509
463
|
?disabled=${this.disabled}
|
|
510
|
-
max=${
|
|
511
|
-
maxlength=${
|
|
512
|
-
min=${
|
|
513
|
-
minlength=${
|
|
514
|
-
pattern=${
|
|
515
|
-
placeholder=${
|
|
516
|
-
role=${ifDefined(roleValue)}
|
|
464
|
+
max=${(this.max || nothing)}
|
|
465
|
+
maxlength=${this.maxLength > -1 ? this.maxLength : nothing}
|
|
466
|
+
min=${(this.min || nothing)}
|
|
467
|
+
minlength=${this.minLength > -1 ? this.minLength : nothing}
|
|
468
|
+
pattern=${this.pattern || nothing}
|
|
469
|
+
placeholder=${this.placeholder || nothing}
|
|
517
470
|
?readonly=${this.readOnly}
|
|
518
471
|
?required=${this.required}
|
|
519
|
-
step=${
|
|
472
|
+
step=${(this.step || nothing)}
|
|
520
473
|
type=${this.type}
|
|
521
|
-
.value=${live(this.
|
|
474
|
+
.value=${live(this.value)}
|
|
522
475
|
@change=${this.redispatchEvent}
|
|
523
476
|
@input=${this.handleInput}
|
|
524
477
|
@select=${this.redispatchEvent}
|
|
525
478
|
>`;
|
|
526
479
|
}
|
|
527
|
-
/** @soyTemplate */
|
|
528
|
-
getInputValue() {
|
|
529
|
-
const alwaysShowValue = this.dirty || this.valueHasChanged;
|
|
530
|
-
return alwaysShowValue ? this.value : this.defaultValue || this.value;
|
|
531
|
-
}
|
|
532
|
-
/** @soyTemplate */
|
|
533
480
|
getAriaDescribedBy() {
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
'';
|
|
481
|
+
const ids = [];
|
|
482
|
+
if (this.getSupportingText()) {
|
|
483
|
+
ids.push('support');
|
|
484
|
+
}
|
|
485
|
+
if (this.getCounterText()) {
|
|
486
|
+
ids.push('counter');
|
|
487
|
+
}
|
|
488
|
+
return ids.join(' ');
|
|
540
489
|
}
|
|
541
|
-
/** @soyTemplate */
|
|
542
490
|
renderPrefix() {
|
|
543
|
-
return this.prefixText
|
|
544
|
-
html `<span class="md3-text-field__prefix">${this.prefixText}</span>` :
|
|
545
|
-
html ``;
|
|
546
|
-
// TODO(b/217441842): Create shared function once argument bug is fixed
|
|
547
|
-
// return this.renderAffix(/* isSuffix */ false);
|
|
491
|
+
return this.renderAffix(this.prefixText, /* isSuffix */ false);
|
|
548
492
|
}
|
|
549
|
-
/** @soyTemplate */
|
|
550
493
|
renderSuffix() {
|
|
551
|
-
return this.suffixText
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
494
|
+
return this.renderAffix(this.suffixText, /* isSuffix */ true);
|
|
495
|
+
}
|
|
496
|
+
renderAffix(text, isSuffix) {
|
|
497
|
+
if (!text) {
|
|
498
|
+
return nothing;
|
|
499
|
+
}
|
|
500
|
+
const classes = {
|
|
501
|
+
'suffix': isSuffix,
|
|
502
|
+
'prefix': !isSuffix,
|
|
503
|
+
};
|
|
504
|
+
return html `<span class="${classMap(classes)}">${text}</span>`;
|
|
556
505
|
}
|
|
557
|
-
/**
|
|
558
|
-
* @soyTemplate
|
|
559
|
-
* @slotName supporting-text
|
|
560
|
-
*/
|
|
561
506
|
renderSupportingText() {
|
|
562
|
-
const shouldAlert = this.shouldErrorAnnounce();
|
|
563
507
|
const text = this.getSupportingText();
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
return
|
|
508
|
+
if (!text) {
|
|
509
|
+
return nothing;
|
|
510
|
+
}
|
|
511
|
+
return html `<span id="support"
|
|
512
|
+
slot="supporting-text"
|
|
513
|
+
role=${this.shouldErrorAnnounce() ? 'alert' : nothing}>${text}</span>`;
|
|
568
514
|
}
|
|
569
|
-
/** @soyTemplate */
|
|
570
515
|
getSupportingText() {
|
|
571
516
|
const errorText = this.getErrorText();
|
|
572
|
-
return this.
|
|
517
|
+
return this.hasError && errorText ? errorText : this.supportingText;
|
|
573
518
|
}
|
|
574
|
-
/** @soyTemplate */
|
|
575
519
|
getErrorText() {
|
|
576
520
|
return this.error ? this.errorText : this.nativeErrorText;
|
|
577
521
|
}
|
|
578
|
-
/** @soyTemplate */
|
|
579
522
|
shouldErrorAnnounce() {
|
|
580
523
|
// Announce if there is an error and error text visible.
|
|
581
524
|
// If refreshErrorAlert is true, do not announce. This will remove the
|
|
582
525
|
// role="alert" attribute. Another render cycle will happen after an
|
|
583
526
|
// animation frame to re-add the role.
|
|
584
|
-
return this.
|
|
527
|
+
return this.hasError && !!this.getErrorText() && !this.refreshErrorAlert;
|
|
585
528
|
}
|
|
586
|
-
/**
|
|
587
|
-
* @soyTemplate
|
|
588
|
-
* @slotName supporting-text-end
|
|
589
|
-
*/
|
|
590
529
|
renderCounter() {
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
|
|
530
|
+
const text = this.getCounterText();
|
|
531
|
+
if (!text) {
|
|
532
|
+
return nothing;
|
|
533
|
+
}
|
|
594
534
|
// TODO(b/244473435): add aria-label and announcements
|
|
595
|
-
return
|
|
535
|
+
return html `<span id="counter"
|
|
536
|
+
class="counter"
|
|
537
|
+
slot="supporting-text-end">${text}</span>`;
|
|
596
538
|
}
|
|
597
|
-
// TODO(b/244197198): replace with !!this.getCounterText()
|
|
598
|
-
/** @soyTemplate */
|
|
599
|
-
hasCounter() {
|
|
600
|
-
return this.maxLength > -1;
|
|
601
|
-
}
|
|
602
|
-
/** @soyTemplate */
|
|
603
539
|
getCounterText() {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
return this.hasCounter() ? html `${length} / ${this.maxLength}` : html ``;
|
|
607
|
-
}
|
|
608
|
-
update(changedProperties) {
|
|
609
|
-
// Consider a value change anything that is not the initial empty string
|
|
610
|
-
// value.
|
|
611
|
-
const valueHasChanged = changedProperties.has('value') &&
|
|
612
|
-
changedProperties.get('value') !== undefined;
|
|
613
|
-
if (valueHasChanged && !this.ignoreNextValueChange) {
|
|
614
|
-
this.valueHasChanged = true;
|
|
615
|
-
}
|
|
616
|
-
if (this.ignoreNextValueChange) {
|
|
617
|
-
this.ignoreNextValueChange = false;
|
|
618
|
-
}
|
|
619
|
-
super.update(changedProperties);
|
|
620
|
-
}
|
|
621
|
-
updated(changedProperties) {
|
|
622
|
-
// If a property such as `type` changes and causes the internal <input>
|
|
623
|
-
// value to change without dispatching an event, re-sync it.
|
|
624
|
-
const value = this.getInput().value;
|
|
625
|
-
if (this.value !== value) {
|
|
626
|
-
// Don't consider these updates (such as setting `defaultValue`) as
|
|
627
|
-
// the developer directly changing the `value`.
|
|
628
|
-
this.ignoreNextValueChange = true;
|
|
629
|
-
// Note this is typically inefficient in updated() since it schedules
|
|
630
|
-
// another update. However, it is needed for the <input> to fully render
|
|
631
|
-
// before checking its value.
|
|
632
|
-
this.value = value;
|
|
633
|
-
}
|
|
634
|
-
if (this.refreshErrorAlert) {
|
|
635
|
-
// The past render cycle removed the role="alert" from the error message.
|
|
636
|
-
// Re-add it after an animation frame to re-announce the error.
|
|
637
|
-
requestAnimationFrame(() => {
|
|
638
|
-
this.refreshErrorAlert = false;
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
/** @bubbleWizEvent */
|
|
643
|
-
handleClick() {
|
|
644
|
-
this.focus();
|
|
540
|
+
return this.maxLength > -1 ? `${this.value.length} / ${this.maxLength}` :
|
|
541
|
+
'';
|
|
645
542
|
}
|
|
646
|
-
|
|
647
|
-
handleFocusin(event) {
|
|
543
|
+
handleFocusin() {
|
|
648
544
|
this.focused = true;
|
|
649
545
|
}
|
|
650
|
-
|
|
651
|
-
handleFocusout(event) {
|
|
546
|
+
handleFocusout() {
|
|
652
547
|
if (this.matches(':focus-within')) {
|
|
653
548
|
// Changing focus to another child within the text field, like a button
|
|
654
549
|
return;
|
|
@@ -693,176 +588,108 @@ export class TextField extends LitElement {
|
|
|
693
588
|
this.hasLeadingIcon = this.leadingIcons.length > 0;
|
|
694
589
|
this.hasTrailingIcon = this.trailingIcons.length > 0;
|
|
695
590
|
}
|
|
591
|
+
/** @private */
|
|
592
|
+
formResetCallback() {
|
|
593
|
+
this.reset();
|
|
594
|
+
}
|
|
595
|
+
/** @private */
|
|
596
|
+
formStateRestoreCallback(state) {
|
|
597
|
+
this.value = state;
|
|
598
|
+
}
|
|
696
599
|
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
600
|
+
_a = TextField;
|
|
601
|
+
(() => {
|
|
602
|
+
requestUpdateOnAriaChange(_a);
|
|
603
|
+
})();
|
|
604
|
+
/** @nocollapse */
|
|
605
|
+
TextField.shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true };
|
|
606
|
+
/** @nocollapse */
|
|
607
|
+
TextField.formAssociated = true;
|
|
608
|
+
__decorate([
|
|
609
|
+
property({ type: Boolean, reflect: true })
|
|
701
610
|
], TextField.prototype, "disabled", void 0);
|
|
702
611
|
__decorate([
|
|
703
|
-
property({ type: Boolean, reflect: true })
|
|
704
|
-
__metadata("design:type", Object)
|
|
612
|
+
property({ type: Boolean, reflect: true })
|
|
705
613
|
], TextField.prototype, "error", void 0);
|
|
706
614
|
__decorate([
|
|
707
|
-
property(
|
|
708
|
-
__metadata("design:type", Object)
|
|
615
|
+
property()
|
|
709
616
|
], TextField.prototype, "errorText", void 0);
|
|
710
617
|
__decorate([
|
|
711
|
-
property(
|
|
712
|
-
__metadata("design:type", String)
|
|
618
|
+
property()
|
|
713
619
|
], TextField.prototype, "label", void 0);
|
|
714
620
|
__decorate([
|
|
715
|
-
property({ type: Boolean, reflect: true })
|
|
716
|
-
__metadata("design:type", Object)
|
|
621
|
+
property({ type: Boolean, reflect: true })
|
|
717
622
|
], TextField.prototype, "required", void 0);
|
|
718
623
|
__decorate([
|
|
719
|
-
property(
|
|
720
|
-
__metadata("design:type", Object)
|
|
624
|
+
property()
|
|
721
625
|
], TextField.prototype, "value", void 0);
|
|
722
626
|
__decorate([
|
|
723
|
-
property(
|
|
724
|
-
__metadata("design:type", Object)
|
|
725
|
-
], TextField.prototype, "defaultValue", void 0);
|
|
726
|
-
__decorate([
|
|
727
|
-
property({ type: String }),
|
|
728
|
-
__metadata("design:type", Object)
|
|
627
|
+
property()
|
|
729
628
|
], TextField.prototype, "prefixText", void 0);
|
|
730
629
|
__decorate([
|
|
731
|
-
property(
|
|
732
|
-
__metadata("design:type", Object)
|
|
630
|
+
property()
|
|
733
631
|
], TextField.prototype, "suffixText", void 0);
|
|
734
632
|
__decorate([
|
|
735
|
-
property({ type: Boolean })
|
|
736
|
-
__metadata("design:type", Object)
|
|
633
|
+
property({ type: Boolean })
|
|
737
634
|
], TextField.prototype, "hasLeadingIcon", void 0);
|
|
738
635
|
__decorate([
|
|
739
|
-
property({ type: Boolean })
|
|
740
|
-
__metadata("design:type", Object)
|
|
636
|
+
property({ type: Boolean })
|
|
741
637
|
], TextField.prototype, "hasTrailingIcon", void 0);
|
|
742
638
|
__decorate([
|
|
743
|
-
property(
|
|
744
|
-
__metadata("design:type", Object)
|
|
639
|
+
property()
|
|
745
640
|
], TextField.prototype, "supportingText", void 0);
|
|
746
641
|
__decorate([
|
|
747
|
-
property(
|
|
748
|
-
__metadata("design:type", Object)
|
|
642
|
+
property()
|
|
749
643
|
], TextField.prototype, "textDirection", void 0);
|
|
750
644
|
__decorate([
|
|
751
|
-
property(
|
|
752
|
-
ariaProperty // tslint:disable-line:no-new-decorators
|
|
753
|
-
,
|
|
754
|
-
__metadata("design:type", String)
|
|
755
|
-
], TextField.prototype, "ariaAutoComplete", void 0);
|
|
756
|
-
__decorate([
|
|
757
|
-
property({ type: String, attribute: 'data-aria-controls', noAccessor: true }),
|
|
758
|
-
ariaProperty // tslint:disable-line:no-new-decorators
|
|
759
|
-
,
|
|
760
|
-
__metadata("design:type", String)
|
|
761
|
-
], TextField.prototype, "ariaControls", void 0);
|
|
762
|
-
__decorate([
|
|
763
|
-
property({ type: String, attribute: 'data-aria-activedescendant', noAccessor: true }),
|
|
764
|
-
ariaProperty // tslint:disable-line:no-new-decorators
|
|
765
|
-
,
|
|
766
|
-
__metadata("design:type", String)
|
|
767
|
-
], TextField.prototype, "ariaActiveDescendant", void 0);
|
|
768
|
-
__decorate([
|
|
769
|
-
property({ type: String, attribute: 'data-aria-expanded', noAccessor: true }),
|
|
770
|
-
ariaProperty // tslint:disable-line:no-new-decorators
|
|
771
|
-
,
|
|
772
|
-
__metadata("design:type", String)
|
|
773
|
-
], TextField.prototype, "ariaExpanded", void 0);
|
|
774
|
-
__decorate([
|
|
775
|
-
property({ type: String, attribute: 'data-aria-label', noAccessor: true }),
|
|
776
|
-
ariaProperty // tslint:disable-line:no-new-decorators
|
|
777
|
-
,
|
|
778
|
-
__metadata("design:type", String)
|
|
779
|
-
], TextField.prototype, "ariaLabel", void 0);
|
|
780
|
-
__decorate([
|
|
781
|
-
property({ type: String, attribute: 'data-aria-labelledby', noAccessor: true }),
|
|
782
|
-
ariaProperty // tslint:disable-line:no-new-decorators
|
|
783
|
-
,
|
|
784
|
-
__metadata("design:type", String)
|
|
785
|
-
], TextField.prototype, "ariaLabelledBy", void 0);
|
|
786
|
-
__decorate([
|
|
787
|
-
property({ type: String, attribute: 'data-role', noAccessor: true }),
|
|
788
|
-
ariaProperty // tslint:disable-line:no-new-decorators
|
|
789
|
-
,
|
|
790
|
-
__metadata("design:type", String)
|
|
791
|
-
], TextField.prototype, "role", void 0);
|
|
792
|
-
__decorate([
|
|
793
|
-
property({ type: String, reflect: true, converter: stringConverter }),
|
|
794
|
-
__metadata("design:type", Object)
|
|
795
|
-
], TextField.prototype, "name", void 0);
|
|
796
|
-
__decorate([
|
|
797
|
-
property({ type: String }),
|
|
798
|
-
__metadata("design:type", Object)
|
|
645
|
+
property()
|
|
799
646
|
], TextField.prototype, "max", void 0);
|
|
800
647
|
__decorate([
|
|
801
|
-
property({ type: Number })
|
|
802
|
-
__metadata("design:type", Object)
|
|
648
|
+
property({ type: Number })
|
|
803
649
|
], TextField.prototype, "maxLength", void 0);
|
|
804
650
|
__decorate([
|
|
805
|
-
property(
|
|
806
|
-
__metadata("design:type", Object)
|
|
651
|
+
property()
|
|
807
652
|
], TextField.prototype, "min", void 0);
|
|
808
653
|
__decorate([
|
|
809
|
-
property({ type: Number })
|
|
810
|
-
__metadata("design:type", Object)
|
|
654
|
+
property({ type: Number })
|
|
811
655
|
], TextField.prototype, "minLength", void 0);
|
|
812
656
|
__decorate([
|
|
813
|
-
property(
|
|
814
|
-
__metadata("design:type", Object)
|
|
657
|
+
property()
|
|
815
658
|
], TextField.prototype, "pattern", void 0);
|
|
816
659
|
__decorate([
|
|
817
|
-
property({
|
|
818
|
-
__metadata("design:type", Object)
|
|
660
|
+
property({ reflect: true, converter: stringConverter })
|
|
819
661
|
], TextField.prototype, "placeholder", void 0);
|
|
820
662
|
__decorate([
|
|
821
|
-
property({ type: Boolean, reflect: true })
|
|
822
|
-
__metadata("design:type", Object)
|
|
663
|
+
property({ type: Boolean, reflect: true })
|
|
823
664
|
], TextField.prototype, "readOnly", void 0);
|
|
824
665
|
__decorate([
|
|
825
|
-
property(
|
|
826
|
-
__metadata("design:type", Object)
|
|
666
|
+
property()
|
|
827
667
|
], TextField.prototype, "step", void 0);
|
|
828
668
|
__decorate([
|
|
829
|
-
property({
|
|
830
|
-
__metadata("design:type", String)
|
|
669
|
+
property({ reflect: true })
|
|
831
670
|
], TextField.prototype, "type", void 0);
|
|
832
671
|
__decorate([
|
|
833
|
-
state()
|
|
834
|
-
__metadata("design:type", Object)
|
|
672
|
+
state()
|
|
835
673
|
], TextField.prototype, "dirty", void 0);
|
|
836
674
|
__decorate([
|
|
837
|
-
state()
|
|
838
|
-
__metadata("design:type", Object)
|
|
675
|
+
state()
|
|
839
676
|
], TextField.prototype, "focused", void 0);
|
|
840
677
|
__decorate([
|
|
841
|
-
state()
|
|
842
|
-
__metadata("design:type", Object)
|
|
678
|
+
state()
|
|
843
679
|
], TextField.prototype, "refreshErrorAlert", void 0);
|
|
844
680
|
__decorate([
|
|
845
|
-
state()
|
|
846
|
-
__metadata("design:type", Object)
|
|
847
|
-
], TextField.prototype, "valueHasChanged", void 0);
|
|
848
|
-
__decorate([
|
|
849
|
-
state(),
|
|
850
|
-
__metadata("design:type", Object)
|
|
681
|
+
state()
|
|
851
682
|
], TextField.prototype, "nativeError", void 0);
|
|
852
683
|
__decorate([
|
|
853
|
-
state()
|
|
854
|
-
__metadata("design:type", Object)
|
|
684
|
+
state()
|
|
855
685
|
], TextField.prototype, "nativeErrorText", void 0);
|
|
856
686
|
__decorate([
|
|
857
|
-
query('
|
|
858
|
-
__metadata("design:type", HTMLInputElement)
|
|
687
|
+
query('input')
|
|
859
688
|
], TextField.prototype, "input", void 0);
|
|
860
689
|
__decorate([
|
|
861
|
-
queryAssignedElements({ slot: 'leadingicon' })
|
|
862
|
-
__metadata("design:type", Array)
|
|
690
|
+
queryAssignedElements({ slot: 'leadingicon' })
|
|
863
691
|
], TextField.prototype, "leadingIcons", void 0);
|
|
864
692
|
__decorate([
|
|
865
|
-
queryAssignedElements({ slot: 'trailingicon' })
|
|
866
|
-
__metadata("design:type", Array)
|
|
693
|
+
queryAssignedElements({ slot: 'trailingicon' })
|
|
867
694
|
], TextField.prototype, "trailingIcons", void 0);
|
|
868
695
|
//# sourceMappingURL=text-field.js.map
|