material-web-evo 10002.10001.10000
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 +202 -0
- package/README.md +9 -0
- package/all.d.ts +97 -0
- package/all.js +106 -0
- package/all.js.map +1 -0
- package/button/_elevated-button.scss +6 -0
- package/button/_filled-button.scss +6 -0
- package/button/_filled-tonal-button.scss +6 -0
- package/button/_outlined-button.scss +6 -0
- package/button/_text-button.scss +6 -0
- package/button/elevated-button.d.ts +37 -0
- package/button/elevated-button.js +44 -0
- package/button/elevated-button.js.map +1 -0
- package/button/filled-button.d.ts +35 -0
- package/button/filled-button.js +42 -0
- package/button/filled-button.js.map +1 -0
- package/button/filled-tonal-button.d.ts +36 -0
- package/button/filled-tonal-button.js +43 -0
- package/button/filled-tonal-button.js.map +1 -0
- package/button/harness.d.ts +13 -0
- package/button/harness.js +16 -0
- package/button/harness.js.map +1 -0
- package/button/internal/_elevated-button.scss +37 -0
- package/button/internal/_elevation.scss +69 -0
- package/button/internal/_filled-button.scss +37 -0
- package/button/internal/_filled-tonal-button.scss +37 -0
- package/button/internal/_icon.scss +38 -0
- package/button/internal/_outlined-button.scss +87 -0
- package/button/internal/_shared.scss +178 -0
- package/button/internal/_text-button.scss +41 -0
- package/button/internal/_touch-target.scss +23 -0
- package/button/internal/button.d.ts +81 -0
- package/button/internal/button.js +204 -0
- package/button/internal/button.js.map +1 -0
- package/button/internal/elevated-button.d.ts +13 -0
- package/button/internal/elevated-button.js +17 -0
- package/button/internal/elevated-button.js.map +1 -0
- package/button/internal/elevated-styles.css +1 -0
- package/button/internal/elevated-styles.css.map +1 -0
- package/button/internal/elevated-styles.d.ts +1 -0
- package/button/internal/elevated-styles.js +10 -0
- package/button/internal/elevated-styles.js.map +1 -0
- package/button/internal/elevated-styles.scss +10 -0
- package/button/internal/filled-button.d.ts +13 -0
- package/button/internal/filled-button.js +17 -0
- package/button/internal/filled-button.js.map +1 -0
- package/button/internal/filled-styles.css +1 -0
- package/button/internal/filled-styles.css.map +1 -0
- package/button/internal/filled-styles.d.ts +1 -0
- package/button/internal/filled-styles.js +10 -0
- package/button/internal/filled-styles.js.map +1 -0
- package/button/internal/filled-styles.scss +10 -0
- package/button/internal/filled-tonal-button.d.ts +13 -0
- package/button/internal/filled-tonal-button.js +17 -0
- package/button/internal/filled-tonal-button.js.map +1 -0
- package/button/internal/filled-tonal-styles.css +1 -0
- package/button/internal/filled-tonal-styles.css.map +1 -0
- package/button/internal/filled-tonal-styles.d.ts +1 -0
- package/button/internal/filled-tonal-styles.js +10 -0
- package/button/internal/filled-tonal-styles.js.map +1 -0
- package/button/internal/filled-tonal-styles.scss +10 -0
- package/button/internal/outlined-button.d.ts +12 -0
- package/button/internal/outlined-button.js +16 -0
- package/button/internal/outlined-button.js.map +1 -0
- package/button/internal/outlined-styles.css +1 -0
- package/button/internal/outlined-styles.css.map +1 -0
- package/button/internal/outlined-styles.d.ts +1 -0
- package/button/internal/outlined-styles.js +10 -0
- package/button/internal/outlined-styles.js.map +1 -0
- package/button/internal/outlined-styles.scss +10 -0
- package/button/internal/shared-elevation-styles.css +1 -0
- package/button/internal/shared-elevation-styles.css.map +1 -0
- package/button/internal/shared-elevation-styles.d.ts +1 -0
- package/button/internal/shared-elevation-styles.js +10 -0
- package/button/internal/shared-elevation-styles.js.map +1 -0
- package/button/internal/shared-elevation-styles.scss +10 -0
- package/button/internal/shared-styles.css +1 -0
- package/button/internal/shared-styles.css.map +1 -0
- package/button/internal/shared-styles.d.ts +1 -0
- package/button/internal/shared-styles.js +10 -0
- package/button/internal/shared-styles.js.map +1 -0
- package/button/internal/shared-styles.scss +14 -0
- package/button/internal/text-button.d.ts +11 -0
- package/button/internal/text-button.js +12 -0
- package/button/internal/text-button.js.map +1 -0
- package/button/internal/text-styles.css +1 -0
- package/button/internal/text-styles.css.map +1 -0
- package/button/internal/text-styles.d.ts +1 -0
- package/button/internal/text-styles.js +10 -0
- package/button/internal/text-styles.js.map +1 -0
- package/button/internal/text-styles.scss +10 -0
- package/button/outlined-button.d.ts +37 -0
- package/button/outlined-button.js +39 -0
- package/button/outlined-button.js.map +1 -0
- package/button/text-button.d.ts +35 -0
- package/button/text-button.js +37 -0
- package/button/text-button.js.map +1 -0
- package/checkbox/_checkbox.scss +6 -0
- package/checkbox/checkbox.d.ts +28 -0
- package/checkbox/checkbox.js +29 -0
- package/checkbox/checkbox.js.map +1 -0
- package/checkbox/harness.d.ts +13 -0
- package/checkbox/harness.js +16 -0
- package/checkbox/harness.js.map +1 -0
- package/checkbox/internal/_checkbox.scss +392 -0
- package/checkbox/internal/checkbox-styles.css +1 -0
- package/checkbox/internal/checkbox-styles.css.map +1 -0
- package/checkbox/internal/checkbox-styles.d.ts +1 -0
- package/checkbox/internal/checkbox-styles.js +10 -0
- package/checkbox/internal/checkbox-styles.js.map +1 -0
- package/checkbox/internal/checkbox-styles.scss +10 -0
- package/checkbox/internal/checkbox.d.ts +72 -0
- package/checkbox/internal/checkbox.js +192 -0
- package/checkbox/internal/checkbox.js.map +1 -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 +21 -0
- package/chips/assist-chip.js +24 -0
- package/chips/assist-chip.js.map +1 -0
- package/chips/chip-set.d.ts +21 -0
- package/chips/chip-set.js +22 -0
- package/chips/chip-set.js.map +1 -0
- package/chips/filter-chip.d.ts +21 -0
- package/chips/filter-chip.js +32 -0
- package/chips/filter-chip.js.map +1 -0
- package/chips/harness.d.ts +14 -0
- package/chips/harness.js +37 -0
- package/chips/harness.js.map +1 -0
- package/chips/input-chip.d.ts +21 -0
- package/chips/input-chip.js +30 -0
- package/chips/input-chip.js.map +1 -0
- package/chips/internal/_assist-chip.scss +43 -0
- package/chips/internal/_chip-set.scss +12 -0
- package/chips/internal/_elevated.scss +70 -0
- package/chips/internal/_filter-chip.scss +56 -0
- package/chips/internal/_input-chip.scss +83 -0
- package/chips/internal/_selectable.scss +78 -0
- package/chips/internal/_shared.scss +248 -0
- package/chips/internal/_suggestion-chip.scss +43 -0
- package/chips/internal/_trailing-icon.scss +81 -0
- package/chips/internal/assist-chip.d.ts +24 -0
- package/chips/internal/assist-chip.js +79 -0
- package/chips/internal/assist-chip.js.map +1 -0
- package/chips/internal/assist-styles.css +1 -0
- package/chips/internal/assist-styles.css.map +1 -0
- package/chips/internal/assist-styles.d.ts +1 -0
- package/chips/internal/assist-styles.js +10 -0
- package/chips/internal/assist-styles.js.map +1 -0
- package/chips/internal/assist-styles.scss +10 -0
- package/chips/internal/chip-set-styles.css +1 -0
- package/chips/internal/chip-set-styles.css.map +1 -0
- package/chips/internal/chip-set-styles.d.ts +1 -0
- package/chips/internal/chip-set-styles.js +10 -0
- package/chips/internal/chip-set-styles.js.map +1 -0
- package/chips/internal/chip-set-styles.scss +10 -0
- package/chips/internal/chip-set.d.ts +19 -0
- package/chips/internal/chip-set.js +128 -0
- package/chips/internal/chip-set.js.map +1 -0
- package/chips/internal/chip.d.ts +84 -0
- package/chips/internal/chip.js +161 -0
- package/chips/internal/chip.js.map +1 -0
- package/chips/internal/elevated-styles.css +1 -0
- package/chips/internal/elevated-styles.css.map +1 -0
- package/chips/internal/elevated-styles.d.ts +1 -0
- package/chips/internal/elevated-styles.js +10 -0
- package/chips/internal/elevated-styles.js.map +1 -0
- package/chips/internal/elevated-styles.scss +10 -0
- package/chips/internal/filter-chip.d.ts +39 -0
- package/chips/internal/filter-chip.js +124 -0
- package/chips/internal/filter-chip.js.map +1 -0
- package/chips/internal/filter-styles.css +1 -0
- package/chips/internal/filter-styles.css.map +1 -0
- package/chips/internal/filter-styles.d.ts +1 -0
- package/chips/internal/filter-styles.js +10 -0
- package/chips/internal/filter-styles.js.map +1 -0
- package/chips/internal/filter-styles.scss +10 -0
- package/chips/internal/input-chip.d.ts +31 -0
- package/chips/internal/input-chip.js +117 -0
- package/chips/internal/input-chip.js.map +1 -0
- package/chips/internal/input-styles.css +1 -0
- package/chips/internal/input-styles.css.map +1 -0
- package/chips/internal/input-styles.d.ts +1 -0
- package/chips/internal/input-styles.js +10 -0
- package/chips/internal/input-styles.js.map +1 -0
- package/chips/internal/input-styles.scss +10 -0
- package/chips/internal/multi-action-chip.d.ts +23 -0
- package/chips/internal/multi-action-chip.js +99 -0
- package/chips/internal/multi-action-chip.js.map +1 -0
- package/chips/internal/selectable-styles.css +1 -0
- package/chips/internal/selectable-styles.css.map +1 -0
- package/chips/internal/selectable-styles.d.ts +1 -0
- package/chips/internal/selectable-styles.js +10 -0
- package/chips/internal/selectable-styles.js.map +1 -0
- package/chips/internal/selectable-styles.scss +10 -0
- package/chips/internal/shared-styles.css +1 -0
- package/chips/internal/shared-styles.css.map +1 -0
- package/chips/internal/shared-styles.d.ts +1 -0
- package/chips/internal/shared-styles.js +10 -0
- package/chips/internal/shared-styles.js.map +1 -0
- package/chips/internal/shared-styles.scss +10 -0
- package/chips/internal/suggestion-chip.d.ts +11 -0
- package/chips/internal/suggestion-chip.js +14 -0
- package/chips/internal/suggestion-chip.js.map +1 -0
- package/chips/internal/suggestion-styles.css +1 -0
- package/chips/internal/suggestion-styles.css.map +1 -0
- package/chips/internal/suggestion-styles.d.ts +1 -0
- package/chips/internal/suggestion-styles.js +10 -0
- package/chips/internal/suggestion-styles.js.map +1 -0
- package/chips/internal/suggestion-styles.scss +10 -0
- package/chips/internal/trailing-icon-styles.css +1 -0
- package/chips/internal/trailing-icon-styles.css.map +1 -0
- package/chips/internal/trailing-icon-styles.d.ts +1 -0
- package/chips/internal/trailing-icon-styles.js +10 -0
- package/chips/internal/trailing-icon-styles.js.map +1 -0
- package/chips/internal/trailing-icon-styles.scss +10 -0
- package/chips/internal/trailing-icons.d.ts +16 -0
- package/chips/internal/trailing-icons.js +48 -0
- package/chips/internal/trailing-icons.js.map +1 -0
- package/chips/suggestion-chip.d.ts +21 -0
- package/chips/suggestion-chip.js +24 -0
- package/chips/suggestion-chip.js.map +1 -0
- package/color/_color.scss +197 -0
- package/common.d.ts +59 -0
- package/common.js +68 -0
- package/common.js.map +1 -0
- package/dialog/_dialog.scss +6 -0
- package/dialog/dialog.d.ts +42 -0
- package/dialog/dialog.js +43 -0
- package/dialog/dialog.js.map +1 -0
- package/dialog/harness.d.ts +13 -0
- package/dialog/harness.js +16 -0
- package/dialog/harness.js.map +1 -0
- package/dialog/internal/_dialog.scss +248 -0
- package/dialog/internal/animations.d.ts +47 -0
- package/dialog/internal/animations.js +119 -0
- package/dialog/internal/animations.js.map +1 -0
- package/dialog/internal/dialog-styles.css +1 -0
- package/dialog/internal/dialog-styles.css.map +1 -0
- package/dialog/internal/dialog-styles.d.ts +1 -0
- package/dialog/internal/dialog-styles.js +10 -0
- package/dialog/internal/dialog-styles.js.map +1 -0
- package/dialog/internal/dialog-styles.scss +10 -0
- package/dialog/internal/dialog.d.ts +131 -0
- package/dialog/internal/dialog.js +556 -0
- package/dialog/internal/dialog.js.map +1 -0
- package/divider/_divider.scss +6 -0
- package/divider/divider.d.ts +25 -0
- package/divider/divider.js +26 -0
- package/divider/divider.js.map +1 -0
- package/divider/internal/_divider.scss +61 -0
- package/divider/internal/divider-styles.css +1 -0
- package/divider/internal/divider-styles.css.map +1 -0
- package/divider/internal/divider-styles.d.ts +1 -0
- package/divider/internal/divider-styles.js +10 -0
- package/divider/internal/divider-styles.js.map +1 -0
- package/divider/internal/divider-styles.scss +10 -0
- package/divider/internal/divider.d.ts +23 -0
- package/divider/internal/divider.js +38 -0
- package/divider/internal/divider.js.map +1 -0
- package/elevation/_elevation.scss +6 -0
- package/elevation/elevation.d.ts +23 -0
- package/elevation/elevation.js +24 -0
- package/elevation/elevation.js.map +1 -0
- package/elevation/internal/_elevation.scss +176 -0
- package/elevation/internal/elevation-styles.css +1 -0
- package/elevation/internal/elevation-styles.css.map +1 -0
- package/elevation/internal/elevation-styles.d.ts +1 -0
- package/elevation/internal/elevation-styles.js +10 -0
- package/elevation/internal/elevation-styles.js.map +1 -0
- package/elevation/internal/elevation-styles.scss +10 -0
- package/elevation/internal/elevation.d.ts +13 -0
- package/elevation/internal/elevation.js +21 -0
- package/elevation/internal/elevation.js.map +1 -0
- package/fab/_fab.scss +7 -0
- package/fab/branded-fab.d.ts +57 -0
- package/fab/branded-fab.js +55 -0
- package/fab/branded-fab.js.map +1 -0
- package/fab/fab.d.ts +44 -0
- package/fab/fab.js +45 -0
- package/fab/fab.js.map +1 -0
- package/fab/harness.d.ts +13 -0
- package/fab/harness.js +16 -0
- package/fab/harness.js.map +1 -0
- package/fab/internal/_fab-branded.scss +37 -0
- package/fab/internal/_fab.scss +206 -0
- package/fab/internal/_shared.scss +248 -0
- package/fab/internal/fab-branded-styles.css +1 -0
- package/fab/internal/fab-branded-styles.css.map +1 -0
- package/fab/internal/fab-branded-styles.d.ts +1 -0
- package/fab/internal/fab-branded-styles.js +10 -0
- package/fab/internal/fab-branded-styles.js.map +1 -0
- package/fab/internal/fab-branded-styles.scss +10 -0
- package/fab/internal/fab-styles.css +1 -0
- package/fab/internal/fab-styles.css.map +1 -0
- package/fab/internal/fab-styles.d.ts +1 -0
- package/fab/internal/fab-styles.js +10 -0
- package/fab/internal/fab-styles.js.map +1 -0
- package/fab/internal/fab-styles.scss +10 -0
- package/fab/internal/fab.d.ts +25 -0
- package/fab/internal/fab.js +30 -0
- package/fab/internal/fab.js.map +1 -0
- package/fab/internal/forced-colors-styles.css +1 -0
- package/fab/internal/forced-colors-styles.css.map +1 -0
- package/fab/internal/forced-colors-styles.d.ts +1 -0
- package/fab/internal/forced-colors-styles.js +10 -0
- package/fab/internal/forced-colors-styles.js.map +1 -0
- package/fab/internal/forced-colors-styles.scss +29 -0
- package/fab/internal/shared-styles.css +1 -0
- package/fab/internal/shared-styles.css.map +1 -0
- package/fab/internal/shared-styles.d.ts +1 -0
- package/fab/internal/shared-styles.js +10 -0
- package/fab/internal/shared-styles.js.map +1 -0
- package/fab/internal/shared-styles.scss +10 -0
- package/fab/internal/shared.d.ts +44 -0
- package/fab/internal/shared.js +92 -0
- package/fab/internal/shared.js.map +1 -0
- package/field/_filled-field.scss +6 -0
- package/field/_outlined-field.scss +6 -0
- package/field/filled-field.d.ts +20 -0
- package/field/filled-field.js +22 -0
- package/field/filled-field.js.map +1 -0
- package/field/harness.d.ts +16 -0
- package/field/harness.js +29 -0
- package/field/harness.js.map +1 -0
- package/field/internal/_content.scss +208 -0
- package/field/internal/_filled-field.scss +208 -0
- package/field/internal/_label.scss +102 -0
- package/field/internal/_outlined-field.scss +344 -0
- package/field/internal/_shared.scss +78 -0
- package/field/internal/_supporting-text.scss +61 -0
- package/field/internal/field.d.ts +67 -0
- package/field/internal/field.js +357 -0
- package/field/internal/field.js.map +1 -0
- package/field/internal/filled-field.d.ts +13 -0
- package/field/internal/filled-field.js +22 -0
- package/field/internal/filled-field.js.map +1 -0
- package/field/internal/filled-styles.css +1 -0
- package/field/internal/filled-styles.css.map +1 -0
- package/field/internal/filled-styles.d.ts +1 -0
- package/field/internal/filled-styles.js +10 -0
- package/field/internal/filled-styles.js.map +1 -0
- package/field/internal/filled-styles.scss +8 -0
- package/field/internal/outlined-field.d.ts +12 -0
- package/field/internal/outlined-field.js +26 -0
- package/field/internal/outlined-field.js.map +1 -0
- package/field/internal/outlined-styles.css +1 -0
- package/field/internal/outlined-styles.css.map +1 -0
- package/field/internal/outlined-styles.d.ts +1 -0
- package/field/internal/outlined-styles.js +10 -0
- package/field/internal/outlined-styles.js.map +1 -0
- package/field/internal/outlined-styles.scss +7 -0
- package/field/internal/shared-styles.css +1 -0
- package/field/internal/shared-styles.css.map +1 -0
- package/field/internal/shared-styles.d.ts +1 -0
- package/field/internal/shared-styles.js +10 -0
- package/field/internal/shared-styles.js.map +1 -0
- package/field/internal/shared-styles.scss +8 -0
- package/field/outlined-field.d.ts +20 -0
- package/field/outlined-field.js +22 -0
- package/field/outlined-field.js.map +1 -0
- package/focus/_focus-ring.scss +6 -0
- package/focus/internal/_focus-ring.scss +113 -0
- package/focus/internal/focus-ring-styles.css +1 -0
- package/focus/internal/focus-ring-styles.css.map +1 -0
- package/focus/internal/focus-ring-styles.d.ts +1 -0
- package/focus/internal/focus-ring-styles.js +10 -0
- package/focus/internal/focus-ring-styles.js.map +1 -0
- package/focus/internal/focus-ring-styles.scss +10 -0
- package/focus/internal/focus-ring.d.ts +39 -0
- package/focus/internal/focus-ring.js +100 -0
- package/focus/internal/focus-ring.js.map +1 -0
- package/focus/md-focus-ring.d.ts +21 -0
- package/focus/md-focus-ring.js +22 -0
- package/focus/md-focus-ring.js.map +1 -0
- package/icon/_icon.scss +6 -0
- package/icon/icon.d.ts +20 -0
- package/icon/icon.js +21 -0
- package/icon/icon.js.map +1 -0
- package/icon/internal/_icon.scss +76 -0
- package/icon/internal/icon-styles.css +1 -0
- package/icon/internal/icon-styles.css.map +1 -0
- package/icon/internal/icon-styles.d.ts +1 -0
- package/icon/internal/icon-styles.js +10 -0
- package/icon/internal/icon-styles.js.map +1 -0
- package/icon/internal/icon-styles.scss +10 -0
- package/icon/internal/icon.d.ts +13 -0
- package/icon/internal/icon.js +28 -0
- package/icon/internal/icon.js.map +1 -0
- package/iconbutton/_filled-icon-button.scss +6 -0
- package/iconbutton/_filled-tonal-icon-button.scss +6 -0
- package/iconbutton/_icon-button.scss +6 -0
- package/iconbutton/_outlined-icon-button.scss +6 -0
- package/iconbutton/filled-icon-button.d.ts +39 -0
- package/iconbutton/filled-icon-button.js +42 -0
- package/iconbutton/filled-icon-button.js.map +1 -0
- package/iconbutton/filled-tonal-icon-button.d.ts +39 -0
- package/iconbutton/filled-tonal-icon-button.js +42 -0
- package/iconbutton/filled-tonal-icon-button.js.map +1 -0
- package/iconbutton/harness.d.ts +13 -0
- package/iconbutton/harness.js +19 -0
- package/iconbutton/harness.js.map +1 -0
- package/iconbutton/icon-button.d.ts +38 -0
- package/iconbutton/icon-button.js +41 -0
- package/iconbutton/icon-button.js.map +1 -0
- package/iconbutton/internal/_filled-icon-button.scss +146 -0
- package/iconbutton/internal/_filled-tonal-icon-button.scss +146 -0
- package/iconbutton/internal/_icon-button.scss +131 -0
- package/iconbutton/internal/_outlined-icon-button.scss +157 -0
- package/iconbutton/internal/_shared.scss +117 -0
- package/iconbutton/internal/filled-styles.css +1 -0
- package/iconbutton/internal/filled-styles.css.map +1 -0
- package/iconbutton/internal/filled-styles.d.ts +1 -0
- package/iconbutton/internal/filled-styles.js +10 -0
- package/iconbutton/internal/filled-styles.js.map +1 -0
- package/iconbutton/internal/filled-styles.scss +10 -0
- package/iconbutton/internal/filled-tonal-styles.css +1 -0
- package/iconbutton/internal/filled-tonal-styles.css.map +1 -0
- package/iconbutton/internal/filled-tonal-styles.d.ts +1 -0
- package/iconbutton/internal/filled-tonal-styles.js +10 -0
- package/iconbutton/internal/filled-tonal-styles.js.map +1 -0
- package/iconbutton/internal/filled-tonal-styles.scss +10 -0
- package/iconbutton/internal/icon-button.d.ts +106 -0
- package/iconbutton/internal/icon-button.js +260 -0
- package/iconbutton/internal/icon-button.js.map +1 -0
- package/iconbutton/internal/outlined-styles.css +1 -0
- package/iconbutton/internal/outlined-styles.css.map +1 -0
- package/iconbutton/internal/outlined-styles.d.ts +1 -0
- package/iconbutton/internal/outlined-styles.js +10 -0
- package/iconbutton/internal/outlined-styles.js.map +1 -0
- package/iconbutton/internal/outlined-styles.scss +10 -0
- package/iconbutton/internal/shared-styles.css +1 -0
- package/iconbutton/internal/shared-styles.css.map +1 -0
- package/iconbutton/internal/shared-styles.d.ts +1 -0
- package/iconbutton/internal/shared-styles.js +10 -0
- package/iconbutton/internal/shared-styles.js.map +1 -0
- package/iconbutton/internal/shared-styles.scss +10 -0
- package/iconbutton/internal/standard-styles.css +1 -0
- package/iconbutton/internal/standard-styles.css.map +1 -0
- package/iconbutton/internal/standard-styles.d.ts +1 -0
- package/iconbutton/internal/standard-styles.js +10 -0
- package/iconbutton/internal/standard-styles.js.map +1 -0
- package/iconbutton/internal/standard-styles.scss +10 -0
- package/iconbutton/outlined-icon-button.d.ts +38 -0
- package/iconbutton/outlined-icon-button.js +41 -0
- package/iconbutton/outlined-icon-button.js.map +1 -0
- package/internal/aria/aria.d.ts +103 -0
- package/internal/aria/aria.js +81 -0
- package/internal/aria/aria.js.map +1 -0
- package/internal/aria/delegate.d.ts +54 -0
- package/internal/aria/delegate.js +176 -0
- package/internal/aria/delegate.js.map +1 -0
- package/internal/controller/attachable-controller.d.ts +114 -0
- package/internal/controller/attachable-controller.js +121 -0
- package/internal/controller/attachable-controller.js.map +1 -0
- package/internal/controller/form-submitter.d.ts +70 -0
- package/internal/controller/form-submitter.js +69 -0
- package/internal/controller/form-submitter.js.map +1 -0
- package/internal/controller/is-rtl.d.ts +14 -0
- package/internal/controller/is-rtl.js +18 -0
- package/internal/controller/is-rtl.js.map +1 -0
- package/internal/controller/string-converter.d.ts +9 -0
- package/internal/controller/string-converter.js +14 -0
- package/internal/controller/string-converter.js.map +1 -0
- package/internal/events/dispatch-hooks.d.ts +85 -0
- package/internal/events/dispatch-hooks.js +151 -0
- package/internal/events/dispatch-hooks.js.map +1 -0
- package/internal/events/form-label-activation.d.ts +55 -0
- package/internal/events/form-label-activation.js +96 -0
- package/internal/events/form-label-activation.js.map +1 -0
- package/internal/events/redispatch-event.d.ts +27 -0
- package/internal/events/redispatch-event.js +40 -0
- package/internal/events/redispatch-event.js.map +1 -0
- package/internal/motion/_animation.scss +33 -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/_var.scss +237 -0
- package/labs/badge/_badge.scss +6 -0
- package/labs/badge/badge.d.ts +19 -0
- package/labs/badge/badge.js +20 -0
- package/labs/badge/badge.js.map +1 -0
- package/labs/badge/internal/_badge.scss +76 -0
- package/labs/badge/internal/badge-styles.css +1 -0
- package/labs/badge/internal/badge-styles.css.map +1 -0
- package/labs/badge/internal/badge-styles.d.ts +1 -0
- package/labs/badge/internal/badge-styles.js +10 -0
- package/labs/badge/internal/badge-styles.js.map +1 -0
- package/labs/badge/internal/badge-styles.scss +10 -0
- package/labs/badge/internal/badge.d.ts +13 -0
- package/labs/badge/internal/badge.js +28 -0
- package/labs/badge/internal/badge.js.map +1 -0
- package/labs/behaviors/constraint-validation.d.ts +133 -0
- package/labs/behaviors/constraint-validation.js +131 -0
- package/labs/behaviors/constraint-validation.js.map +1 -0
- package/labs/behaviors/element-internals.d.ts +45 -0
- package/labs/behaviors/element-internals.js +46 -0
- package/labs/behaviors/element-internals.js.map +1 -0
- package/labs/behaviors/focusable.d.ts +39 -0
- package/labs/behaviors/focusable.js +87 -0
- package/labs/behaviors/focusable.js.map +1 -0
- package/labs/behaviors/form-associated.d.ts +199 -0
- package/labs/behaviors/form-associated.js +175 -0
- package/labs/behaviors/form-associated.js.map +1 -0
- package/labs/behaviors/mixin.d.ts +54 -0
- package/labs/behaviors/mixin.js +7 -0
- package/labs/behaviors/mixin.js.map +1 -0
- package/labs/behaviors/on-report-validity.d.ts +71 -0
- package/labs/behaviors/on-report-validity.js +289 -0
- package/labs/behaviors/on-report-validity.js.map +1 -0
- package/labs/behaviors/validators/checkbox-validator.d.ts +35 -0
- package/labs/behaviors/validators/checkbox-validator.js +32 -0
- package/labs/behaviors/validators/checkbox-validator.js.map +1 -0
- package/labs/behaviors/validators/radio-validator.d.ts +38 -0
- package/labs/behaviors/validators/radio-validator.js +65 -0
- package/labs/behaviors/validators/radio-validator.js.map +1 -0
- package/labs/behaviors/validators/select-validator.d.ts +35 -0
- package/labs/behaviors/validators/select-validator.js +33 -0
- package/labs/behaviors/validators/select-validator.js.map +1 -0
- package/labs/behaviors/validators/text-field-validator.d.ts +110 -0
- package/labs/behaviors/validators/text-field-validator.js +154 -0
- package/labs/behaviors/validators/text-field-validator.js.map +1 -0
- package/labs/behaviors/validators/validator.d.ts +96 -0
- package/labs/behaviors/validators/validator.js +73 -0
- package/labs/behaviors/validators/validator.js.map +1 -0
- package/labs/card/_elevated-card.scss +6 -0
- package/labs/card/_filled-card.scss +6 -0
- package/labs/card/_outlined-card.scss +6 -0
- package/labs/card/elevated-card.d.ts +19 -0
- package/labs/card/elevated-card.js +21 -0
- package/labs/card/elevated-card.js.map +1 -0
- package/labs/card/filled-card.d.ts +19 -0
- package/labs/card/filled-card.js +21 -0
- package/labs/card/filled-card.js.map +1 -0
- package/labs/card/internal/_elevated-card.scss +35 -0
- package/labs/card/internal/_filled-card.scss +35 -0
- package/labs/card/internal/_outlined-card.scss +40 -0
- package/labs/card/internal/_shared.scss +62 -0
- package/labs/card/internal/card.d.ts +13 -0
- package/labs/card/internal/card.js +21 -0
- package/labs/card/internal/card.js.map +1 -0
- package/labs/card/internal/elevated-styles.css +1 -0
- package/labs/card/internal/elevated-styles.css.map +1 -0
- package/labs/card/internal/elevated-styles.d.ts +1 -0
- package/labs/card/internal/elevated-styles.js +10 -0
- package/labs/card/internal/elevated-styles.js.map +1 -0
- package/labs/card/internal/elevated-styles.scss +10 -0
- package/labs/card/internal/filled-styles.css +1 -0
- package/labs/card/internal/filled-styles.css.map +1 -0
- package/labs/card/internal/filled-styles.d.ts +1 -0
- package/labs/card/internal/filled-styles.js +10 -0
- package/labs/card/internal/filled-styles.js.map +1 -0
- package/labs/card/internal/filled-styles.scss +10 -0
- package/labs/card/internal/outlined-styles.css +1 -0
- package/labs/card/internal/outlined-styles.css.map +1 -0
- package/labs/card/internal/outlined-styles.d.ts +1 -0
- package/labs/card/internal/outlined-styles.js +10 -0
- package/labs/card/internal/outlined-styles.js.map +1 -0
- package/labs/card/internal/outlined-styles.scss +10 -0
- package/labs/card/internal/shared-styles.css +1 -0
- package/labs/card/internal/shared-styles.css.map +1 -0
- package/labs/card/internal/shared-styles.d.ts +1 -0
- package/labs/card/internal/shared-styles.js +10 -0
- package/labs/card/internal/shared-styles.js.map +1 -0
- package/labs/card/internal/shared-styles.scss +10 -0
- package/labs/card/outlined-card.d.ts +19 -0
- package/labs/card/outlined-card.js +21 -0
- package/labs/card/outlined-card.js.map +1 -0
- package/labs/item/internal/_item.scss +99 -0
- package/labs/item/internal/item-styles.css +1 -0
- package/labs/item/internal/item-styles.css.map +1 -0
- package/labs/item/internal/item-styles.d.ts +1 -0
- package/labs/item/internal/item-styles.js +10 -0
- package/labs/item/internal/item-styles.js.map +1 -0
- package/labs/item/internal/item-styles.scss +10 -0
- package/labs/item/internal/item.d.ts +22 -0
- package/labs/item/internal/item.js +78 -0
- package/labs/item/internal/item.js.map +1 -0
- package/labs/item/item.d.ts +74 -0
- package/labs/item/item.js +75 -0
- package/labs/item/item.js.map +1 -0
- package/labs/navigationbar/_navigation-bar.scss +6 -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/internal/_navigation-bar.scss +70 -0
- package/labs/navigationbar/internal/constants.d.ts +17 -0
- package/labs/navigationbar/internal/constants.js +7 -0
- package/labs/navigationbar/internal/constants.js.map +1 -0
- package/labs/navigationbar/internal/navigation-bar-styles.css +1 -0
- package/labs/navigationbar/internal/navigation-bar-styles.css.map +1 -0
- package/labs/navigationbar/internal/navigation-bar-styles.d.ts +1 -0
- package/labs/navigationbar/internal/navigation-bar-styles.js +10 -0
- package/labs/navigationbar/internal/navigation-bar-styles.js.map +1 -0
- package/labs/navigationbar/internal/navigation-bar-styles.scss +10 -0
- package/labs/navigationbar/internal/navigation-bar.d.ts +32 -0
- package/labs/navigationbar/internal/navigation-bar.js +144 -0
- package/labs/navigationbar/internal/navigation-bar.js.map +1 -0
- package/labs/navigationbar/internal/state.d.ts +23 -0
- package/labs/navigationbar/internal/state.js +7 -0
- package/labs/navigationbar/internal/state.js.map +1 -0
- package/labs/navigationbar/navigation-bar.d.ts +19 -0
- package/labs/navigationbar/navigation-bar.js +20 -0
- package/labs/navigationbar/navigation-bar.js.map +1 -0
- package/labs/navigationdrawer/_navigation-drawer-modal.scss +6 -0
- package/labs/navigationdrawer/_navigation-drawer.scss +6 -0
- package/labs/navigationdrawer/internal/_navigation-drawer-modal.scss +110 -0
- package/labs/navigationdrawer/internal/_navigation-drawer.scss +97 -0
- package/labs/navigationdrawer/internal/_shared.scss +31 -0
- package/labs/navigationdrawer/internal/navigation-drawer-modal-styles.css +1 -0
- package/labs/navigationdrawer/internal/navigation-drawer-modal-styles.css.map +1 -0
- package/labs/navigationdrawer/internal/navigation-drawer-modal-styles.d.ts +1 -0
- package/labs/navigationdrawer/internal/navigation-drawer-modal-styles.js +10 -0
- package/labs/navigationdrawer/internal/navigation-drawer-modal-styles.js.map +1 -0
- package/labs/navigationdrawer/internal/navigation-drawer-modal-styles.scss +10 -0
- package/labs/navigationdrawer/internal/navigation-drawer-modal.d.ts +24 -0
- package/labs/navigationdrawer/internal/navigation-drawer-modal.js +87 -0
- package/labs/navigationdrawer/internal/navigation-drawer-modal.js.map +1 -0
- package/labs/navigationdrawer/internal/navigation-drawer-styles.css +1 -0
- package/labs/navigationdrawer/internal/navigation-drawer-styles.css.map +1 -0
- package/labs/navigationdrawer/internal/navigation-drawer-styles.d.ts +1 -0
- package/labs/navigationdrawer/internal/navigation-drawer-styles.js +10 -0
- package/labs/navigationdrawer/internal/navigation-drawer-styles.js.map +1 -0
- package/labs/navigationdrawer/internal/navigation-drawer-styles.scss +10 -0
- package/labs/navigationdrawer/internal/navigation-drawer.d.ts +22 -0
- package/labs/navigationdrawer/internal/navigation-drawer.js +70 -0
- package/labs/navigationdrawer/internal/navigation-drawer.js.map +1 -0
- package/labs/navigationdrawer/internal/shared-styles.css +1 -0
- package/labs/navigationdrawer/internal/shared-styles.css.map +1 -0
- package/labs/navigationdrawer/internal/shared-styles.d.ts +1 -0
- package/labs/navigationdrawer/internal/shared-styles.js +10 -0
- package/labs/navigationdrawer/internal/shared-styles.js.map +1 -0
- package/labs/navigationdrawer/internal/shared-styles.scss +10 -0
- package/labs/navigationdrawer/navigation-drawer-modal.d.ts +18 -0
- package/labs/navigationdrawer/navigation-drawer-modal.js +21 -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 +21 -0
- package/labs/navigationdrawer/navigation-drawer.js.map +1 -0
- package/labs/navigationtab/_navigation-tab.scss +6 -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/internal/_navigation-tab.scss +264 -0
- package/labs/navigationtab/internal/navigation-tab-styles.css +1 -0
- package/labs/navigationtab/internal/navigation-tab-styles.css.map +1 -0
- package/labs/navigationtab/internal/navigation-tab-styles.d.ts +1 -0
- package/labs/navigationtab/internal/navigation-tab-styles.js +10 -0
- package/labs/navigationtab/internal/navigation-tab-styles.js.map +1 -0
- package/labs/navigationtab/internal/navigation-tab-styles.scss +10 -0
- package/labs/navigationtab/internal/navigation-tab.d.ts +38 -0
- package/labs/navigationtab/internal/navigation-tab.js +132 -0
- package/labs/navigationtab/internal/navigation-tab.js.map +1 -0
- package/labs/navigationtab/internal/state.d.ts +18 -0
- package/labs/navigationtab/internal/state.js +7 -0
- package/labs/navigationtab/internal/state.js.map +1 -0
- package/labs/navigationtab/navigation-tab.d.ts +19 -0
- package/labs/navigationtab/navigation-tab.js +20 -0
- package/labs/navigationtab/navigation-tab.js.map +1 -0
- package/labs/segmentedbutton/internal/_outlined-segmented-button.scss +42 -0
- package/labs/segmentedbutton/internal/_shared.scss +361 -0
- package/labs/segmentedbutton/internal/outlined-segmented-button.d.ts +24 -0
- package/labs/segmentedbutton/internal/outlined-segmented-button.js +22 -0
- package/labs/segmentedbutton/internal/outlined-segmented-button.js.map +1 -0
- package/labs/segmentedbutton/internal/outlined-styles.css +1 -0
- package/labs/segmentedbutton/internal/outlined-styles.css.map +1 -0
- package/labs/segmentedbutton/internal/outlined-styles.d.ts +1 -0
- package/labs/segmentedbutton/internal/outlined-styles.js +10 -0
- package/labs/segmentedbutton/internal/outlined-styles.js.map +1 -0
- package/labs/segmentedbutton/internal/outlined-styles.scss +10 -0
- package/labs/segmentedbutton/internal/segmented-button.d.ts +49 -0
- package/labs/segmentedbutton/internal/segmented-button.js +170 -0
- package/labs/segmentedbutton/internal/segmented-button.js.map +1 -0
- package/labs/segmentedbutton/internal/shared-styles.css +1 -0
- package/labs/segmentedbutton/internal/shared-styles.css.map +1 -0
- package/labs/segmentedbutton/internal/shared-styles.d.ts +1 -0
- package/labs/segmentedbutton/internal/shared-styles.js +10 -0
- package/labs/segmentedbutton/internal/shared-styles.js.map +1 -0
- package/labs/segmentedbutton/internal/shared-styles.scss +10 -0
- package/labs/segmentedbutton/outlined-segmented-button.d.ts +21 -0
- package/labs/segmentedbutton/outlined-segmented-button.js +23 -0
- package/labs/segmentedbutton/outlined-segmented-button.js.map +1 -0
- package/labs/segmentedbuttonset/internal/_outlined-segmented-button-set.scss +40 -0
- package/labs/segmentedbuttonset/internal/_shared.scss +33 -0
- package/labs/segmentedbuttonset/internal/outlined-segmented-button-set.d.ts +14 -0
- package/labs/segmentedbuttonset/internal/outlined-segmented-button-set.js +18 -0
- package/labs/segmentedbuttonset/internal/outlined-segmented-button-set.js.map +1 -0
- package/labs/segmentedbuttonset/internal/outlined-styles.css +1 -0
- package/labs/segmentedbuttonset/internal/outlined-styles.css.map +1 -0
- package/labs/segmentedbuttonset/internal/outlined-styles.d.ts +1 -0
- package/labs/segmentedbuttonset/internal/outlined-styles.js +10 -0
- package/labs/segmentedbuttonset/internal/outlined-styles.js.map +1 -0
- package/labs/segmentedbuttonset/internal/outlined-styles.scss +10 -0
- package/labs/segmentedbuttonset/internal/segmented-button-set.d.ts +33 -0
- package/labs/segmentedbuttonset/internal/segmented-button-set.js +112 -0
- package/labs/segmentedbuttonset/internal/segmented-button-set.js.map +1 -0
- package/labs/segmentedbuttonset/internal/shared-styles.css +1 -0
- package/labs/segmentedbuttonset/internal/shared-styles.css.map +1 -0
- package/labs/segmentedbuttonset/internal/shared-styles.d.ts +1 -0
- package/labs/segmentedbuttonset/internal/shared-styles.js +10 -0
- package/labs/segmentedbuttonset/internal/shared-styles.js.map +1 -0
- package/labs/segmentedbuttonset/internal/shared-styles.scss +10 -0
- package/labs/segmentedbuttonset/outlined-segmented-button-set.d.ts +21 -0
- package/labs/segmentedbuttonset/outlined-segmented-button-set.js +23 -0
- package/labs/segmentedbuttonset/outlined-segmented-button-set.js.map +1 -0
- package/list/_list-item.scss +6 -0
- package/list/_list.scss +6 -0
- package/list/harness.d.ts +45 -0
- package/list/harness.js +49 -0
- package/list/harness.js.map +1 -0
- package/list/internal/_list.scss +43 -0
- package/list/internal/list-controller.d.ts +114 -0
- package/list/internal/list-controller.js +186 -0
- package/list/internal/list-controller.js.map +1 -0
- package/list/internal/list-navigation-helpers.d.ts +136 -0
- package/list/internal/list-navigation-helpers.js +230 -0
- package/list/internal/list-navigation-helpers.js.map +1 -0
- package/list/internal/list-styles.css +1 -0
- package/list/internal/list-styles.css.map +1 -0
- package/list/internal/list-styles.d.ts +1 -0
- package/list/internal/list-styles.js +10 -0
- package/list/internal/list-styles.js.map +1 -0
- package/list/internal/list-styles.scss +10 -0
- package/list/internal/list.d.ts +44 -0
- package/list/internal/list.js +71 -0
- package/list/internal/list.js.map +1 -0
- package/list/internal/listitem/_list-item.scss +163 -0
- package/list/internal/listitem/harness.d.ts +27 -0
- package/list/internal/listitem/harness.js +25 -0
- package/list/internal/listitem/harness.js.map +1 -0
- package/list/internal/listitem/list-item-styles.css +1 -0
- package/list/internal/listitem/list-item-styles.css.map +1 -0
- package/list/internal/listitem/list-item-styles.d.ts +1 -0
- package/list/internal/listitem/list-item-styles.js +10 -0
- package/list/internal/listitem/list-item-styles.js.map +1 -0
- package/list/internal/listitem/list-item-styles.scss +10 -0
- package/list/internal/listitem/list-item.d.ts +80 -0
- package/list/internal/listitem/list-item.js +192 -0
- package/list/internal/listitem/list-item.js.map +1 -0
- package/list/list-item.d.ts +54 -0
- package/list/list-item.js +54 -0
- package/list/list-item.js.map +1 -0
- package/list/list.d.ts +34 -0
- package/list/list.js +35 -0
- package/list/list.js.map +1 -0
- package/menu/_menu-item.scss +6 -0
- package/menu/_menu.scss +6 -0
- package/menu/harness.d.ts +21 -0
- package/menu/harness.js +38 -0
- package/menu/harness.js.map +1 -0
- package/menu/internal/_menu.scss +143 -0
- package/menu/internal/controllers/menuItemController.d.ts +126 -0
- package/menu/internal/controllers/menuItemController.js +138 -0
- package/menu/internal/controllers/menuItemController.js.map +1 -0
- package/menu/internal/controllers/shared.d.ts +229 -0
- package/menu/internal/controllers/shared.js +137 -0
- package/menu/internal/controllers/shared.js.map +1 -0
- package/menu/internal/controllers/surfacePositionController.d.ts +174 -0
- package/menu/internal/controllers/surfacePositionController.js +394 -0
- package/menu/internal/controllers/surfacePositionController.js.map +1 -0
- package/menu/internal/controllers/typeaheadController.d.ts +157 -0
- package/menu/internal/controllers/typeaheadController.js +259 -0
- package/menu/internal/controllers/typeaheadController.js.map +1 -0
- package/menu/internal/menu-styles.css +1 -0
- package/menu/internal/menu-styles.css.map +1 -0
- package/menu/internal/menu-styles.d.ts +1 -0
- package/menu/internal/menu-styles.js +10 -0
- package/menu/internal/menu-styles.js.map +1 -0
- package/menu/internal/menu-styles.scss +10 -0
- package/menu/internal/menu.d.ts +317 -0
- package/menu/internal/menu.js +914 -0
- package/menu/internal/menu.js.map +1 -0
- package/menu/internal/menuitem/_menu-item.scss +180 -0
- package/menu/internal/menuitem/harness.d.ts +13 -0
- package/menu/internal/menuitem/harness.js +12 -0
- package/menu/internal/menuitem/harness.js.map +1 -0
- package/menu/internal/menuitem/menu-item-styles.css +1 -0
- package/menu/internal/menuitem/menu-item-styles.css.map +1 -0
- package/menu/internal/menuitem/menu-item-styles.d.ts +1 -0
- package/menu/internal/menuitem/menu-item-styles.js +10 -0
- package/menu/internal/menuitem/menu-item-styles.js.map +1 -0
- package/menu/internal/menuitem/menu-item-styles.scss +10 -0
- package/menu/internal/menuitem/menu-item.d.ts +85 -0
- package/menu/internal/menuitem/menu-item.js +211 -0
- package/menu/internal/menuitem/menu-item.js.map +1 -0
- package/menu/internal/submenu/_sub-menu.scss +12 -0
- package/menu/internal/submenu/sub-menu-styles.css +1 -0
- package/menu/internal/submenu/sub-menu-styles.css.map +1 -0
- package/menu/internal/submenu/sub-menu-styles.d.ts +1 -0
- package/menu/internal/submenu/sub-menu-styles.js +10 -0
- package/menu/internal/submenu/sub-menu-styles.js.map +1 -0
- package/menu/internal/submenu/sub-menu-styles.scss +10 -0
- package/menu/internal/submenu/sub-menu.d.ts +102 -0
- package/menu/internal/submenu/sub-menu.js +364 -0
- package/menu/internal/submenu/sub-menu.js.map +1 -0
- package/menu/internal/types.d.ts +23 -0
- package/menu/internal/types.js +7 -0
- package/menu/internal/types.js.map +1 -0
- package/menu/menu-item.d.ts +32 -0
- package/menu/menu-item.js +31 -0
- package/menu/menu-item.js.map +1 -0
- package/menu/menu.d.ts +68 -0
- package/menu/menu.js +67 -0
- package/menu/menu.js.map +1 -0
- package/menu/sub-menu.d.ts +63 -0
- package/menu/sub-menu.js +64 -0
- package/menu/sub-menu.js.map +1 -0
- package/migrations/v2/query-selector-aria.d.ts +22 -0
- package/migrations/v2/query-selector-aria.js +30 -0
- package/migrations/v2/query-selector-aria.js.map +1 -0
- package/package.json +184 -0
- package/progress/_circular-progress.scss +6 -0
- package/progress/_linear-progress.scss +6 -0
- package/progress/circular-progress.d.ts +28 -0
- package/progress/circular-progress.js +29 -0
- package/progress/circular-progress.js.map +1 -0
- package/progress/harness.d.ts +20 -0
- package/progress/harness.js +25 -0
- package/progress/harness.js.map +1 -0
- package/progress/internal/_circular-progress.scss +287 -0
- package/progress/internal/_linear-progress.scss +335 -0
- package/progress/internal/circular-progress-styles.css +1 -0
- package/progress/internal/circular-progress-styles.css.map +1 -0
- package/progress/internal/circular-progress-styles.d.ts +1 -0
- package/progress/internal/circular-progress-styles.js +10 -0
- package/progress/internal/circular-progress-styles.js.map +1 -0
- package/progress/internal/circular-progress-styles.scss +8 -0
- package/progress/internal/circular-progress.d.ts +14 -0
- package/progress/internal/circular-progress.js +50 -0
- package/progress/internal/circular-progress.js.map +1 -0
- package/progress/internal/linear-progress-styles.css +1 -0
- package/progress/internal/linear-progress-styles.css.map +1 -0
- package/progress/internal/linear-progress-styles.d.ts +1 -0
- package/progress/internal/linear-progress-styles.js +10 -0
- package/progress/internal/linear-progress-styles.js.map +1 -0
- package/progress/internal/linear-progress-styles.scss +8 -0
- package/progress/internal/linear-progress.d.ts +17 -0
- package/progress/internal/linear-progress.js +54 -0
- package/progress/internal/linear-progress.js.map +1 -0
- package/progress/internal/progress.d.ts +36 -0
- package/progress/internal/progress.js +71 -0
- package/progress/internal/progress.js.map +1 -0
- package/progress/linear-progress.d.ts +27 -0
- package/progress/linear-progress.js +28 -0
- package/progress/linear-progress.js.map +1 -0
- package/radio/_radio.scss +6 -0
- package/radio/harness.d.ts +13 -0
- package/radio/harness.js +16 -0
- package/radio/harness.js.map +1 -0
- package/radio/internal/_radio.scss +203 -0
- package/radio/internal/radio-styles.css +1 -0
- package/radio/internal/radio-styles.css.map +1 -0
- package/radio/internal/radio-styles.d.ts +1 -0
- package/radio/internal/radio-styles.js +10 -0
- package/radio/internal/radio-styles.js.map +1 -0
- package/radio/internal/radio-styles.scss +10 -0
- package/radio/internal/radio.d.ts +55 -0
- package/radio/internal/radio.js +172 -0
- package/radio/internal/radio.js.map +1 -0
- package/radio/internal/single-selection-controller.d.ts +80 -0
- package/radio/internal/single-selection-controller.js +199 -0
- package/radio/internal/single-selection-controller.js.map +1 -0
- package/radio/radio.d.ts +31 -0
- package/radio/radio.js +32 -0
- package/radio/radio.js.map +1 -0
- package/ripple/_ripple.scss +6 -0
- package/ripple/internal/_ripple.scss +92 -0
- package/ripple/internal/ripple-styles.css +1 -0
- package/ripple/internal/ripple-styles.css.map +1 -0
- package/ripple/internal/ripple-styles.d.ts +1 -0
- package/ripple/internal/ripple-styles.js +10 -0
- package/ripple/internal/ripple-styles.js.map +1 -0
- package/ripple/internal/ripple-styles.scss +10 -0
- package/ripple/internal/ripple.d.ts +76 -0
- package/ripple/internal/ripple.js +423 -0
- package/ripple/internal/ripple.js.map +1 -0
- package/ripple/ripple.d.ts +28 -0
- package/ripple/ripple.js +29 -0
- package/ripple/ripple.js.map +1 -0
- package/select/_filled-select.scss +6 -0
- package/select/_outlined-select.scss +6 -0
- package/select/filled-select.d.ts +42 -0
- package/select/filled-select.js +44 -0
- package/select/filled-select.js.map +1 -0
- package/select/harness.d.ts +25 -0
- package/select/harness.js +58 -0
- package/select/harness.js.map +1 -0
- package/select/internal/_filled-select.scss +191 -0
- package/select/internal/_outlined-select.scss +164 -0
- package/select/internal/_shared.scss +102 -0
- package/select/internal/filled-select-styles.css +1 -0
- package/select/internal/filled-select-styles.css.map +1 -0
- package/select/internal/filled-select-styles.d.ts +1 -0
- package/select/internal/filled-select-styles.js +10 -0
- package/select/internal/filled-select-styles.js.map +1 -0
- package/select/internal/filled-select-styles.scss +10 -0
- package/select/internal/filled-select.d.ts +10 -0
- package/select/internal/filled-select.js +16 -0
- package/select/internal/filled-select.js.map +1 -0
- package/select/internal/outlined-select-styles.css +1 -0
- package/select/internal/outlined-select-styles.css.map +1 -0
- package/select/internal/outlined-select-styles.d.ts +1 -0
- package/select/internal/outlined-select-styles.js +10 -0
- package/select/internal/outlined-select-styles.js.map +1 -0
- package/select/internal/outlined-select-styles.scss +10 -0
- package/select/internal/outlined-select.d.ts +10 -0
- package/select/internal/outlined-select.js +16 -0
- package/select/internal/outlined-select.js.map +1 -0
- package/select/internal/select.d.ts +269 -0
- package/select/internal/select.js +758 -0
- package/select/internal/select.js.map +1 -0
- package/select/internal/selectoption/harness.d.ts +11 -0
- package/select/internal/selectoption/harness.js +12 -0
- package/select/internal/selectoption/harness.js.map +1 -0
- package/select/internal/selectoption/select-option.d.ts +112 -0
- package/select/internal/selectoption/select-option.js +196 -0
- package/select/internal/selectoption/select-option.js.map +1 -0
- package/select/internal/selectoption/selectOptionController.d.ts +71 -0
- package/select/internal/selectoption/selectOptionController.js +115 -0
- package/select/internal/selectoption/selectOptionController.js.map +1 -0
- package/select/internal/shared-styles.css +1 -0
- package/select/internal/shared-styles.css.map +1 -0
- package/select/internal/shared-styles.d.ts +1 -0
- package/select/internal/shared-styles.js +10 -0
- package/select/internal/shared-styles.js.map +1 -0
- package/select/internal/shared-styles.scss +10 -0
- package/select/internal/shared.d.ts +18 -0
- package/select/internal/shared.js +23 -0
- package/select/internal/shared.js.map +1 -0
- package/select/outlined-select.d.ts +42 -0
- package/select/outlined-select.js +44 -0
- package/select/outlined-select.js.map +1 -0
- package/select/select-option.d.ts +46 -0
- package/select/select-option.js +46 -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/internal/_slider.scss +519 -0
- package/slider/internal/forced-colors-styles.css +1 -0
- package/slider/internal/forced-colors-styles.css.map +1 -0
- package/slider/internal/forced-colors-styles.d.ts +1 -0
- package/slider/internal/forced-colors-styles.js +10 -0
- package/slider/internal/forced-colors-styles.js.map +1 -0
- package/slider/internal/forced-colors-styles.scss +88 -0
- package/slider/internal/slider-styles.css +1 -0
- package/slider/internal/slider-styles.css.map +1 -0
- package/slider/internal/slider-styles.d.ts +1 -0
- package/slider/internal/slider-styles.js +10 -0
- package/slider/internal/slider-styles.js.map +1 -0
- package/slider/internal/slider-styles.scss +8 -0
- package/slider/internal/slider.d.ts +178 -0
- package/slider/internal/slider.js +714 -0
- package/slider/internal/slider.js.map +1 -0
- package/slider/slider.d.ts +32 -0
- package/slider/slider.js +34 -0
- package/slider/slider.js.map +1 -0
- package/switch/_switch.scss +6 -0
- package/switch/harness.d.ts +13 -0
- package/switch/harness.js +16 -0
- package/switch/harness.js.map +1 -0
- package/switch/internal/_handle.scss +183 -0
- package/switch/internal/_icon.scss +119 -0
- package/switch/internal/_switch.scss +101 -0
- package/switch/internal/_track.scss +124 -0
- package/switch/internal/switch-styles.css +1 -0
- package/switch/internal/switch-styles.css.map +1 -0
- package/switch/internal/switch-styles.d.ts +1 -0
- package/switch/internal/switch-styles.js +10 -0
- package/switch/internal/switch-styles.js.map +1 -0
- package/switch/internal/switch-styles.scss +10 -0
- package/switch/internal/switch.d.ts +75 -0
- package/switch/internal/switch.js +219 -0
- package/switch/internal/switch.js.map +1 -0
- package/switch/switch.d.ts +25 -0
- package/switch/switch.js +26 -0
- package/switch/switch.js.map +1 -0
- package/tabs/_primary-tab.scss +6 -0
- package/tabs/_secondary-tab.scss +6 -0
- package/tabs/harness.d.ts +23 -0
- package/tabs/harness.js +51 -0
- package/tabs/harness.js.map +1 -0
- package/tabs/internal/_primary-tab.scss +46 -0
- package/tabs/internal/_secondary-tab.scss +37 -0
- package/tabs/internal/_tab.scss +199 -0
- package/tabs/internal/_tabs.scss +47 -0
- package/tabs/internal/primary-tab-styles.css +1 -0
- package/tabs/internal/primary-tab-styles.css.map +1 -0
- package/tabs/internal/primary-tab-styles.d.ts +1 -0
- package/tabs/internal/primary-tab-styles.js +10 -0
- package/tabs/internal/primary-tab-styles.js.map +1 -0
- package/tabs/internal/primary-tab-styles.scss +10 -0
- package/tabs/internal/primary-tab.d.ts +18 -0
- package/tabs/internal/primary-tab.js +30 -0
- package/tabs/internal/primary-tab.js.map +1 -0
- package/tabs/internal/secondary-tab-styles.css +1 -0
- package/tabs/internal/secondary-tab-styles.css.map +1 -0
- package/tabs/internal/secondary-tab-styles.d.ts +1 -0
- package/tabs/internal/secondary-tab-styles.js +10 -0
- package/tabs/internal/secondary-tab-styles.js.map +1 -0
- package/tabs/internal/secondary-tab-styles.scss +10 -0
- package/tabs/internal/secondary-tab.d.ts +12 -0
- package/tabs/internal/secondary-tab.js +16 -0
- package/tabs/internal/secondary-tab.js.map +1 -0
- package/tabs/internal/tab-styles.css +1 -0
- package/tabs/internal/tab-styles.css.map +1 -0
- package/tabs/internal/tab-styles.d.ts +1 -0
- package/tabs/internal/tab-styles.js +10 -0
- package/tabs/internal/tab-styles.js.map +1 -0
- package/tabs/internal/tab-styles.scss +10 -0
- package/tabs/internal/tab.d.ts +65 -0
- package/tabs/internal/tab.js +204 -0
- package/tabs/internal/tab.js.map +1 -0
- package/tabs/internal/tabs-styles.css +1 -0
- package/tabs/internal/tabs-styles.css.map +1 -0
- package/tabs/internal/tabs-styles.d.ts +1 -0
- package/tabs/internal/tabs-styles.js +10 -0
- package/tabs/internal/tabs-styles.js.map +1 -0
- package/tabs/internal/tabs-styles.scss +10 -0
- package/tabs/internal/tabs.d.ts +78 -0
- package/tabs/internal/tabs.js +291 -0
- package/tabs/internal/tabs.js.map +1 -0
- package/tabs/primary-tab.d.ts +21 -0
- package/tabs/primary-tab.js +24 -0
- package/tabs/primary-tab.js.map +1 -0
- package/tabs/secondary-tab.d.ts +21 -0
- package/tabs/secondary-tab.js +24 -0
- package/tabs/secondary-tab.js.map +1 -0
- package/tabs/tabs.d.ts +21 -0
- package/tabs/tabs.js +23 -0
- package/tabs/tabs.js.map +1 -0
- package/testing/harness.d.ts +371 -0
- package/testing/harness.js +737 -0
- package/testing/harness.js.map +1 -0
- package/testing/transform-pseudo-classes.d.ts +39 -0
- package/testing/transform-pseudo-classes.js +172 -0
- package/testing/transform-pseudo-classes.js.map +1 -0
- package/textfield/_filled-text-field.scss +6 -0
- package/textfield/_outlined-text-field.scss +6 -0
- package/textfield/filled-text-field.d.ts +23 -0
- package/textfield/filled-text-field.js +28 -0
- package/textfield/filled-text-field.js.map +1 -0
- package/textfield/harness.d.ts +51 -0
- package/textfield/harness.js +112 -0
- package/textfield/harness.js.map +1 -0
- package/textfield/internal/_filled-text-field.scss +154 -0
- package/textfield/internal/_icon.scss +36 -0
- package/textfield/internal/_input.scss +91 -0
- package/textfield/internal/_outlined-text-field.scss +134 -0
- package/textfield/internal/_shared.scss +49 -0
- package/textfield/internal/filled-styles.css +1 -0
- package/textfield/internal/filled-styles.css.map +1 -0
- package/textfield/internal/filled-styles.d.ts +1 -0
- package/textfield/internal/filled-styles.js +10 -0
- package/textfield/internal/filled-styles.js.map +1 -0
- package/textfield/internal/filled-styles.scss +10 -0
- package/textfield/internal/filled-text-field.d.ts +13 -0
- package/textfield/internal/filled-text-field.js +18 -0
- package/textfield/internal/filled-text-field.js.map +1 -0
- package/textfield/internal/outlined-styles.css +1 -0
- package/textfield/internal/outlined-styles.css.map +1 -0
- package/textfield/internal/outlined-styles.d.ts +1 -0
- package/textfield/internal/outlined-styles.js +10 -0
- package/textfield/internal/outlined-styles.js.map +1 -0
- package/textfield/internal/outlined-styles.scss +10 -0
- package/textfield/internal/outlined-text-field.d.ts +13 -0
- package/textfield/internal/outlined-text-field.js +18 -0
- package/textfield/internal/outlined-text-field.js.map +1 -0
- package/textfield/internal/shared-styles.css +1 -0
- package/textfield/internal/shared-styles.css.map +1 -0
- package/textfield/internal/shared-styles.d.ts +1 -0
- package/textfield/internal/shared-styles.js +10 -0
- package/textfield/internal/shared-styles.js.map +1 -0
- package/textfield/internal/shared-styles.scss +10 -0
- package/textfield/internal/text-field.d.ts +338 -0
- package/textfield/internal/text-field.js +724 -0
- package/textfield/internal/text-field.js.map +1 -0
- package/textfield/outlined-text-field.d.ts +23 -0
- package/textfield/outlined-text-field.js +28 -0
- package/textfield/outlined-text-field.js.map +1 -0
- package/tokens/_index.scss +66 -0
- package/tokens/_md-comp-assist-chip.scss +153 -0
- package/tokens/_md-comp-badge.scss +39 -0
- package/tokens/_md-comp-checkbox.scss +156 -0
- package/tokens/_md-comp-circular-progress.scss +79 -0
- package/tokens/_md-comp-dialog.scss +112 -0
- package/tokens/_md-comp-divider.scss +43 -0
- package/tokens/_md-comp-elevated-button.scss +143 -0
- package/tokens/_md-comp-elevated-card.scss +80 -0
- package/tokens/_md-comp-elevation.scss +48 -0
- package/tokens/_md-comp-fab-branded.scss +155 -0
- package/tokens/_md-comp-fab.scss +296 -0
- package/tokens/_md-comp-filled-button.scss +143 -0
- package/tokens/_md-comp-filled-card.scss +80 -0
- package/tokens/_md-comp-filled-field.scss +293 -0
- package/tokens/_md-comp-filled-icon-button.scss +119 -0
- package/tokens/_md-comp-filled-select.scss +198 -0
- package/tokens/_md-comp-filled-text-field.scss +200 -0
- package/tokens/_md-comp-filled-tonal-button.scss +143 -0
- package/tokens/_md-comp-filled-tonal-icon-button.scss +123 -0
- package/tokens/_md-comp-filter-chip.scss +265 -0
- package/tokens/_md-comp-focus-ring.scss +78 -0
- package/tokens/_md-comp-full-screen-dialog.scss +25 -0
- package/tokens/_md-comp-icon-button.scss +94 -0
- package/tokens/_md-comp-icon.scss +46 -0
- package/tokens/_md-comp-input-chip.scss +247 -0
- package/tokens/_md-comp-item.scss +88 -0
- package/tokens/_md-comp-linear-progress.scss +64 -0
- package/tokens/_md-comp-list-item.scss +173 -0
- package/tokens/_md-comp-list.scss +44 -0
- package/tokens/_md-comp-menu-item.scss +125 -0
- package/tokens/_md-comp-menu.scss +59 -0
- package/tokens/_md-comp-navigation-bar.scss +44 -0
- package/tokens/_md-comp-navigation-drawer.scss +44 -0
- package/tokens/_md-comp-outlined-button.scss +139 -0
- package/tokens/_md-comp-outlined-card.scss +86 -0
- package/tokens/_md-comp-outlined-field.scss +268 -0
- package/tokens/_md-comp-outlined-icon-button.scss +117 -0
- package/tokens/_md-comp-outlined-segmented-button.scss +123 -0
- package/tokens/_md-comp-outlined-select.scss +186 -0
- package/tokens/_md-comp-outlined-text-field.scss +187 -0
- package/tokens/_md-comp-primary-tab.scss +160 -0
- package/tokens/_md-comp-radio.scss +86 -0
- package/tokens/_md-comp-ripple.scss +48 -0
- package/tokens/_md-comp-secondary-tab.scss +158 -0
- package/tokens/_md-comp-slider.scss +117 -0
- package/tokens/_md-comp-suggestion-chip.scss +157 -0
- package/tokens/_md-comp-switch.scss +187 -0
- package/tokens/_md-comp-test-table.scss +43 -0
- package/tokens/_md-comp-text-button.scss +132 -0
- package/tokens/_md-ref-palette.scss +112 -0
- package/tokens/_md-ref-typeface.scss +46 -0
- package/tokens/_md-sys-color.scss +119 -0
- package/tokens/_md-sys-elevation.scss +31 -0
- package/tokens/_md-sys-motion.scss +12 -0
- package/tokens/_md-sys-shape.scss +102 -0
- package/tokens/_md-sys-state.scss +12 -0
- package/tokens/_md-sys-typescale.scss +149 -0
- package/tokens/internal/_shape.scss +93 -0
- package/tokens/internal/_validate.scss +109 -0
- package/tokens/v0_192/_index.scss +107 -0
- package/tokens/v0_192/_md-comp-assist-chip.scss +111 -0
- package/tokens/v0_192/_md-comp-badge.scss +61 -0
- package/tokens/v0_192/_md-comp-banner.scss +76 -0
- package/tokens/v0_192/_md-comp-bottom-app-bar.scss +36 -0
- package/tokens/v0_192/_md-comp-carousel-item.scss +66 -0
- package/tokens/v0_192/_md-comp-checkbox.scss +129 -0
- package/tokens/v0_192/_md-comp-circular-progress-indicator.scss +41 -0
- package/tokens/v0_192/_md-comp-data-table.scss +99 -0
- package/tokens/v0_192/_md-comp-date-input-modal.scss +90 -0
- package/tokens/v0_192/_md-comp-date-picker-docked.scss +247 -0
- package/tokens/v0_192/_md-comp-date-picker-modal.scss +306 -0
- package/tokens/v0_192/_md-comp-dialog.scss +124 -0
- package/tokens/v0_192/_md-comp-divider.scss +28 -0
- package/tokens/v0_192/_md-comp-elevated-button.scss +92 -0
- package/tokens/v0_192/_md-comp-elevated-card.scss +60 -0
- package/tokens/v0_192/_md-comp-extended-fab-branded.scss +89 -0
- package/tokens/v0_192/_md-comp-extended-fab-primary.scss +97 -0
- package/tokens/v0_192/_md-comp-extended-fab-secondary.scss +98 -0
- package/tokens/v0_192/_md-comp-extended-fab-surface.scss +93 -0
- package/tokens/v0_192/_md-comp-extended-fab-tertiary.scss +98 -0
- package/tokens/v0_192/_md-comp-fab-branded-large.scss +63 -0
- package/tokens/v0_192/_md-comp-fab-branded.scss +63 -0
- package/tokens/v0_192/_md-comp-fab-primary-large.scss +68 -0
- package/tokens/v0_192/_md-comp-fab-primary-small.scss +68 -0
- package/tokens/v0_192/_md-comp-fab-primary.scss +68 -0
- package/tokens/v0_192/_md-comp-fab-secondary-large.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-secondary-small.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-secondary.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-surface-large.scss +67 -0
- package/tokens/v0_192/_md-comp-fab-surface-small.scss +67 -0
- package/tokens/v0_192/_md-comp-fab-surface.scss +67 -0
- package/tokens/v0_192/_md-comp-fab-tertiary-large.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-tertiary-small.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-tertiary.scss +69 -0
- package/tokens/v0_192/_md-comp-filled-autocomplete.scss +239 -0
- package/tokens/v0_192/_md-comp-filled-button.scss +92 -0
- package/tokens/v0_192/_md-comp-filled-card.scss +62 -0
- package/tokens/v0_192/_md-comp-filled-icon-button.scss +83 -0
- package/tokens/v0_192/_md-comp-filled-menu-button.scss +101 -0
- package/tokens/v0_192/_md-comp-filled-select.scss +273 -0
- package/tokens/v0_192/_md-comp-filled-text-field.scss +193 -0
- package/tokens/v0_192/_md-comp-filled-tonal-button.scss +102 -0
- package/tokens/v0_192/_md-comp-filled-tonal-icon-button.scss +90 -0
- package/tokens/v0_192/_md-comp-filter-chip.scss +210 -0
- package/tokens/v0_192/_md-comp-full-screen-dialog.scss +114 -0
- package/tokens/v0_192/_md-comp-icon-button.scss +74 -0
- package/tokens/v0_192/_md-comp-input-chip.scss +187 -0
- package/tokens/v0_192/_md-comp-linear-progress-indicator.scss +43 -0
- package/tokens/v0_192/_md-comp-list.scss +255 -0
- package/tokens/v0_192/_md-comp-menu.scss +44 -0
- package/tokens/v0_192/_md-comp-navigation-bar.scss +115 -0
- package/tokens/v0_192/_md-comp-navigation-drawer.scss +165 -0
- package/tokens/v0_192/_md-comp-navigation-rail.scss +119 -0
- package/tokens/v0_192/_md-comp-outlined-autocomplete.scss +229 -0
- package/tokens/v0_192/_md-comp-outlined-button.scss +87 -0
- package/tokens/v0_192/_md-comp-outlined-card.scss +66 -0
- package/tokens/v0_192/_md-comp-outlined-icon-button.scss +83 -0
- package/tokens/v0_192/_md-comp-outlined-menu-button.scss +97 -0
- package/tokens/v0_192/_md-comp-outlined-segmented-button.scss +115 -0
- package/tokens/v0_192/_md-comp-outlined-select.scss +263 -0
- package/tokens/v0_192/_md-comp-outlined-text-field.scss +174 -0
- package/tokens/v0_192/_md-comp-plain-tooltip.scss +58 -0
- package/tokens/v0_192/_md-comp-primary-navigation-tab.scss +124 -0
- package/tokens/v0_192/_md-comp-radio-button.scss +71 -0
- package/tokens/v0_192/_md-comp-rich-tooltip.scss +122 -0
- package/tokens/v0_192/_md-comp-scrim.scss +28 -0
- package/tokens/v0_192/_md-comp-search-bar.scss +100 -0
- package/tokens/v0_192/_md-comp-search-view.scss +94 -0
- package/tokens/v0_192/_md-comp-secondary-navigation-tab.scss +87 -0
- package/tokens/v0_192/_md-comp-sheet-bottom.scss +46 -0
- package/tokens/v0_192/_md-comp-sheet-floating.scss +35 -0
- package/tokens/v0_192/_md-comp-sheet-side.scss +94 -0
- package/tokens/v0_192/_md-comp-slider.scss +118 -0
- package/tokens/v0_192/_md-comp-snackbar.scss +130 -0
- package/tokens/v0_192/_md-comp-standard-menu-button.scss +101 -0
- package/tokens/v0_192/_md-comp-suggestion-chip.scss +127 -0
- package/tokens/v0_192/_md-comp-switch.scss +141 -0
- package/tokens/v0_192/_md-comp-text-button.scss +80 -0
- package/tokens/v0_192/_md-comp-time-input.scss +220 -0
- package/tokens/v0_192/_md-comp-time-picker.scss +267 -0
- package/tokens/v0_192/_md-comp-top-app-bar-large.scss +64 -0
- package/tokens/v0_192/_md-comp-top-app-bar-medium.scss +64 -0
- package/tokens/v0_192/_md-comp-top-app-bar-small-centered.scss +71 -0
- package/tokens/v0_192/_md-comp-top-app-bar-small.scss +67 -0
- package/tokens/v0_192/_md-ref-palette.scss +109 -0
- package/tokens/v0_192/_md-ref-typeface.scss +23 -0
- package/tokens/v0_192/_md-sys-color.scss +135 -0
- package/tokens/v0_192/_md-sys-elevation.scss +24 -0
- package/tokens/v0_192/_md-sys-motion.scss +55 -0
- package/tokens/v0_192/_md-sys-shape.scss +33 -0
- package/tokens/v0_192/_md-sys-state.scss +22 -0
- package/tokens/v0_192/_md-sys-typescale.scss +286 -0
- package/tokens/v0_192/index.test.css +1 -0
- package/tokens/v0_192/index.test.css.map +1 -0
- package/tokens/v0_192/index.test.scss +584 -0
- package/tokens/v0_192/lib.test.css +1 -0
- package/tokens/v0_192/lib.test.css.map +1 -0
- package/tokens/v0_192/lib.test.scss +663 -0
- package/typography/_typeface.scss +49 -0
- package/typography/_typescale.scss +157 -0
- package/typography/md-typescale-styles.css +1 -0
- package/typography/md-typescale-styles.css.map +1 -0
- package/typography/md-typescale-styles.d.ts +1 -0
- package/typography/md-typescale-styles.js +10 -0
- package/typography/md-typescale-styles.js.map +1 -0
- package/typography/md-typescale-styles.scss +11 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate } from "tslib";
|
|
7
|
+
import { html, LitElement, nothing, render, } from 'lit';
|
|
8
|
+
import { property, query, queryAssignedElements, state } from 'lit/decorators.js';
|
|
9
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
10
|
+
import { EASING } from '../../internal/motion/animation.js';
|
|
11
|
+
/**
|
|
12
|
+
* A field component.
|
|
13
|
+
*/
|
|
14
|
+
export class Field extends LitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.disabled = false;
|
|
18
|
+
this.error = false;
|
|
19
|
+
this.focused = false;
|
|
20
|
+
this.alwaysFloatingLabel = false;
|
|
21
|
+
this.label = '';
|
|
22
|
+
this.noAsterisk = false;
|
|
23
|
+
this.populated = false;
|
|
24
|
+
this.required = false;
|
|
25
|
+
this.resizable = false;
|
|
26
|
+
this.supportingText = '';
|
|
27
|
+
this.errorText = '';
|
|
28
|
+
this.count = -1;
|
|
29
|
+
this.max = -1;
|
|
30
|
+
/**
|
|
31
|
+
* Whether or not the field has leading content.
|
|
32
|
+
*/
|
|
33
|
+
this.hasStart = false;
|
|
34
|
+
/**
|
|
35
|
+
* Whether or not the field has trailing content.
|
|
36
|
+
*/
|
|
37
|
+
this.hasEnd = false;
|
|
38
|
+
this.isAnimating = false;
|
|
39
|
+
/**
|
|
40
|
+
* When set to true, the error text's `role="alert"` will be removed, then
|
|
41
|
+
* re-added after an animation frame. This will re-announce an error message
|
|
42
|
+
* to screen readers.
|
|
43
|
+
*/
|
|
44
|
+
this.refreshErrorAlert = false;
|
|
45
|
+
this.disableTransitions = false;
|
|
46
|
+
}
|
|
47
|
+
get counterText() {
|
|
48
|
+
// Count and max are typed as number, but can be set to null when Lit removes
|
|
49
|
+
// their attributes. These getters coerce back to a number for calculations.
|
|
50
|
+
const countAsNumber = this.count ?? -1;
|
|
51
|
+
const maxAsNumber = this.max ?? -1;
|
|
52
|
+
// Counter does not show if count is negative, or max is negative or 0.
|
|
53
|
+
if (countAsNumber < 0 || maxAsNumber <= 0) {
|
|
54
|
+
return '';
|
|
55
|
+
}
|
|
56
|
+
return `${countAsNumber} / ${maxAsNumber}`;
|
|
57
|
+
}
|
|
58
|
+
get supportingOrErrorText() {
|
|
59
|
+
return this.error && this.errorText ? this.errorText : this.supportingText;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Re-announces the field's error supporting text to screen readers.
|
|
63
|
+
*
|
|
64
|
+
* Error text announces to screen readers anytime it is visible and changes.
|
|
65
|
+
* Use the method to re-announce the message when the text has not changed,
|
|
66
|
+
* but announcement is still needed (such as for `reportValidity()`).
|
|
67
|
+
*/
|
|
68
|
+
reannounceError() {
|
|
69
|
+
this.refreshErrorAlert = true;
|
|
70
|
+
}
|
|
71
|
+
update(props) {
|
|
72
|
+
// Client-side property updates
|
|
73
|
+
const isDisabledChanging = props.has('disabled') && props.get('disabled') !== undefined;
|
|
74
|
+
if (isDisabledChanging) {
|
|
75
|
+
this.disableTransitions = true;
|
|
76
|
+
}
|
|
77
|
+
// When disabling, remove focus styles if focused.
|
|
78
|
+
if (this.disabled && this.focused) {
|
|
79
|
+
props.set('focused', true);
|
|
80
|
+
this.focused = false;
|
|
81
|
+
}
|
|
82
|
+
// Animate if focused or populated change.
|
|
83
|
+
if (!this.alwaysFloatingLabel) {
|
|
84
|
+
this.animateLabelIfNeeded({
|
|
85
|
+
wasFocused: props.get('focused'),
|
|
86
|
+
wasPopulated: props.get('populated'),
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
super.update(props);
|
|
90
|
+
}
|
|
91
|
+
render() {
|
|
92
|
+
const floatingLabel = this.renderLabel(/*isFloating*/ true);
|
|
93
|
+
const restingLabel = this.renderLabel(/*isFloating*/ false);
|
|
94
|
+
const outline = this.renderOutline?.(floatingLabel);
|
|
95
|
+
const classes = {
|
|
96
|
+
'disabled': this.disabled,
|
|
97
|
+
'disable-transitions': this.disableTransitions,
|
|
98
|
+
'error': this.error && !this.disabled,
|
|
99
|
+
'focused': this.focused,
|
|
100
|
+
'floatingLabel': this.alwaysFloatingLabel,
|
|
101
|
+
'with-start': this.hasStart,
|
|
102
|
+
'with-end': this.hasEnd,
|
|
103
|
+
'populated': this.populated,
|
|
104
|
+
'resizable': this.resizable,
|
|
105
|
+
'required': this.required,
|
|
106
|
+
'no-label': !this.label,
|
|
107
|
+
};
|
|
108
|
+
return html `
|
|
109
|
+
<div class="field ${classMap(classes)}">
|
|
110
|
+
<div class="container-overflow">
|
|
111
|
+
${this.renderBackground?.()} ${this.renderIndicator?.()} ${outline}
|
|
112
|
+
<div class="container">
|
|
113
|
+
<div class="start">
|
|
114
|
+
<slot name="start"></slot>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="middle">
|
|
117
|
+
<div class="label-wrapper">
|
|
118
|
+
${restingLabel} ${outline ? nothing : floatingLabel}
|
|
119
|
+
</div>
|
|
120
|
+
<div class="content">
|
|
121
|
+
<slot></slot>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="end">
|
|
125
|
+
<slot name="end"></slot>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
${this.renderSupportingText()}
|
|
130
|
+
</div>
|
|
131
|
+
`;
|
|
132
|
+
}
|
|
133
|
+
updated(changed) {
|
|
134
|
+
if (changed.has('supportingText') ||
|
|
135
|
+
changed.has('errorText') ||
|
|
136
|
+
changed.has('count') ||
|
|
137
|
+
changed.has('max')) {
|
|
138
|
+
this.updateSlottedAriaDescribedBy();
|
|
139
|
+
}
|
|
140
|
+
if (this.refreshErrorAlert) {
|
|
141
|
+
// The past render cycle removed the role="alert" from the error message.
|
|
142
|
+
// Re-add it after an animation frame to re-announce the error.
|
|
143
|
+
requestAnimationFrame(() => {
|
|
144
|
+
this.refreshErrorAlert = false;
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
if (this.disableTransitions) {
|
|
148
|
+
requestAnimationFrame(() => {
|
|
149
|
+
this.disableTransitions = false;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
renderSupportingText() {
|
|
154
|
+
const { supportingOrErrorText, counterText } = this;
|
|
155
|
+
if (!supportingOrErrorText && !counterText) {
|
|
156
|
+
return nothing;
|
|
157
|
+
}
|
|
158
|
+
// Always render the supporting text span so that our `space-around`
|
|
159
|
+
// container puts the counter at the end.
|
|
160
|
+
const start = html `<span>${supportingOrErrorText}</span>`;
|
|
161
|
+
// Conditionally render counter so we don't render the extra `gap`.
|
|
162
|
+
// TODO(b/244473435): add aria-label and announcements
|
|
163
|
+
const end = counterText
|
|
164
|
+
? html `<span class="counter">${counterText}</span>`
|
|
165
|
+
: nothing;
|
|
166
|
+
// Announce if there is an error and error text visible.
|
|
167
|
+
// If refreshErrorAlert is true, do not announce. This will remove the
|
|
168
|
+
// role="alert" attribute. Another render cycle will happen after an
|
|
169
|
+
// animation frame to re-add the role.
|
|
170
|
+
const shouldErrorAnnounce = this.error && this.errorText && !this.refreshErrorAlert;
|
|
171
|
+
const role = shouldErrorAnnounce ? 'alert' : nothing;
|
|
172
|
+
return html `
|
|
173
|
+
<div class="supporting-text" role=${role}>${start}${end}</div>
|
|
174
|
+
<slot
|
|
175
|
+
name="aria-describedby"
|
|
176
|
+
@slotchange=${this.updateSlottedAriaDescribedBy}></slot>
|
|
177
|
+
`;
|
|
178
|
+
}
|
|
179
|
+
updateSlottedAriaDescribedBy() {
|
|
180
|
+
for (const element of this.slottedAriaDescribedBy) {
|
|
181
|
+
render(html `${this.supportingOrErrorText} ${this.counterText}`, element);
|
|
182
|
+
element.setAttribute('hidden', '');
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
renderLabel(isFloating) {
|
|
186
|
+
if (!this.label) {
|
|
187
|
+
return nothing;
|
|
188
|
+
}
|
|
189
|
+
let visible;
|
|
190
|
+
if (isFloating) {
|
|
191
|
+
// Floating label is visible when focused/populated or when animating.
|
|
192
|
+
visible = this.alwaysFloatingLabel ? true : this.focused || this.populated || this.isAnimating;
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
// Resting label is visible when unfocused. It is never visible while
|
|
196
|
+
// animating.
|
|
197
|
+
visible = this.alwaysFloatingLabel ? false : !this.focused && !this.populated && !this.isAnimating;
|
|
198
|
+
}
|
|
199
|
+
const classes = {
|
|
200
|
+
'hidden': !visible,
|
|
201
|
+
'floating': isFloating,
|
|
202
|
+
'resting': !isFloating,
|
|
203
|
+
};
|
|
204
|
+
// Add '*' if a label is present and the field is required
|
|
205
|
+
const labelText = `${this.label}${this.required && !this.noAsterisk ? '*' : ''}`;
|
|
206
|
+
return html `
|
|
207
|
+
<span class="label ${classMap(classes)}" aria-hidden=${!visible}
|
|
208
|
+
>${labelText}</span
|
|
209
|
+
>
|
|
210
|
+
`;
|
|
211
|
+
}
|
|
212
|
+
animateLabelIfNeeded({ wasFocused, wasPopulated, }) {
|
|
213
|
+
if (!this.label) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
wasFocused ??= this.focused;
|
|
217
|
+
wasPopulated ??= this.populated;
|
|
218
|
+
const wasFloating = wasFocused || wasPopulated;
|
|
219
|
+
const shouldBeFloating = this.focused || this.populated;
|
|
220
|
+
if (wasFloating === shouldBeFloating) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
this.isAnimating = true;
|
|
224
|
+
this.labelAnimation?.cancel();
|
|
225
|
+
// Only one label is visible at a time for clearer text rendering.
|
|
226
|
+
// The floating label is visible and used during animation. At the end of
|
|
227
|
+
// the animation, it will either remain visible (if floating) or hide and
|
|
228
|
+
// the resting label will be shown.
|
|
229
|
+
//
|
|
230
|
+
// We don't use forward filling because if the dimensions of the text field
|
|
231
|
+
// change (leading icon removed, density changes, etc), then the animation
|
|
232
|
+
// will be inaccurate.
|
|
233
|
+
//
|
|
234
|
+
// Re-calculating the animation each time will prevent any visual glitches
|
|
235
|
+
// from appearing.
|
|
236
|
+
// TODO(b/241113345): use animation tokens
|
|
237
|
+
this.labelAnimation = this.floatingLabelEl?.animate(this.getLabelKeyframes(), { duration: 150, easing: EASING.STANDARD });
|
|
238
|
+
this.labelAnimation?.addEventListener('finish', () => {
|
|
239
|
+
// At the end of the animation, update the visible label.
|
|
240
|
+
this.isAnimating = false;
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
getLabelKeyframes() {
|
|
244
|
+
const { floatingLabelEl, restingLabelEl } = this;
|
|
245
|
+
if (!floatingLabelEl || !restingLabelEl) {
|
|
246
|
+
return [];
|
|
247
|
+
}
|
|
248
|
+
const { x: floatingX, y: floatingY, height: floatingHeight, } = floatingLabelEl.getBoundingClientRect();
|
|
249
|
+
const { x: restingX, y: restingY, height: restingHeight, } = restingLabelEl.getBoundingClientRect();
|
|
250
|
+
const floatingScrollWidth = floatingLabelEl.scrollWidth;
|
|
251
|
+
const restingScrollWidth = restingLabelEl.scrollWidth;
|
|
252
|
+
// Scale by width ratio instead of font size since letter-spacing will scale
|
|
253
|
+
// incorrectly. Using the width we can better approximate the adjusted
|
|
254
|
+
// scale and compensate for tracking and overflow.
|
|
255
|
+
// (use scrollWidth instead of width to account for clipped labels)
|
|
256
|
+
const scale = restingScrollWidth / floatingScrollWidth;
|
|
257
|
+
const xDelta = restingX - floatingX;
|
|
258
|
+
// The line-height of the resting and floating label are different. When
|
|
259
|
+
// we move the floating label down to the resting label's position, it won't
|
|
260
|
+
// exactly match because of this. We need to adjust by half of what the
|
|
261
|
+
// final scaled floating label's height will be.
|
|
262
|
+
const yDelta = restingY -
|
|
263
|
+
floatingY +
|
|
264
|
+
Math.round((restingHeight - floatingHeight * scale) / 2);
|
|
265
|
+
// Create the two transforms: floating to resting (using the calculations
|
|
266
|
+
// above), and resting to floating (re-setting the transform to initial
|
|
267
|
+
// values).
|
|
268
|
+
const restTransform = `translateX(${xDelta}px) translateY(${yDelta}px) scale(${scale})`;
|
|
269
|
+
const floatTransform = `translateX(0) translateY(0) scale(1)`;
|
|
270
|
+
// Constrain the floating labels width to a scaled percentage of the
|
|
271
|
+
// resting label's width. This will prevent long clipped labels from
|
|
272
|
+
// overflowing the container.
|
|
273
|
+
const restingClientWidth = restingLabelEl.clientWidth;
|
|
274
|
+
const isRestingClipped = restingScrollWidth > restingClientWidth;
|
|
275
|
+
const width = isRestingClipped ? `${restingClientWidth / scale}px` : '';
|
|
276
|
+
if (this.focused || this.populated) {
|
|
277
|
+
return [
|
|
278
|
+
{ transform: restTransform, width },
|
|
279
|
+
{ transform: floatTransform, width },
|
|
280
|
+
];
|
|
281
|
+
}
|
|
282
|
+
return [
|
|
283
|
+
{ transform: floatTransform, width },
|
|
284
|
+
{ transform: restTransform, width },
|
|
285
|
+
];
|
|
286
|
+
}
|
|
287
|
+
getSurfacePositionClientRect() {
|
|
288
|
+
return this.containerEl.getBoundingClientRect();
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
__decorate([
|
|
292
|
+
property({ type: Boolean })
|
|
293
|
+
], Field.prototype, "disabled", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
property({ type: Boolean })
|
|
296
|
+
], Field.prototype, "error", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
property({ type: Boolean })
|
|
299
|
+
], Field.prototype, "focused", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
property({ type: Boolean, attribute: 'always-floating-label' })
|
|
302
|
+
], Field.prototype, "alwaysFloatingLabel", void 0);
|
|
303
|
+
__decorate([
|
|
304
|
+
property()
|
|
305
|
+
], Field.prototype, "label", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
property({ type: Boolean, attribute: 'no-asterisk' })
|
|
308
|
+
], Field.prototype, "noAsterisk", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
property({ type: Boolean })
|
|
311
|
+
], Field.prototype, "populated", void 0);
|
|
312
|
+
__decorate([
|
|
313
|
+
property({ type: Boolean })
|
|
314
|
+
], Field.prototype, "required", void 0);
|
|
315
|
+
__decorate([
|
|
316
|
+
property({ type: Boolean })
|
|
317
|
+
], Field.prototype, "resizable", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
property({ attribute: 'supporting-text' })
|
|
320
|
+
], Field.prototype, "supportingText", void 0);
|
|
321
|
+
__decorate([
|
|
322
|
+
property({ attribute: 'error-text' })
|
|
323
|
+
], Field.prototype, "errorText", void 0);
|
|
324
|
+
__decorate([
|
|
325
|
+
property({ type: Number })
|
|
326
|
+
], Field.prototype, "count", void 0);
|
|
327
|
+
__decorate([
|
|
328
|
+
property({ type: Number })
|
|
329
|
+
], Field.prototype, "max", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
property({ type: Boolean, attribute: 'has-start' })
|
|
332
|
+
], Field.prototype, "hasStart", void 0);
|
|
333
|
+
__decorate([
|
|
334
|
+
property({ type: Boolean, attribute: 'has-end' })
|
|
335
|
+
], Field.prototype, "hasEnd", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
queryAssignedElements({ slot: 'aria-describedby' })
|
|
338
|
+
], Field.prototype, "slottedAriaDescribedBy", void 0);
|
|
339
|
+
__decorate([
|
|
340
|
+
state()
|
|
341
|
+
], Field.prototype, "isAnimating", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
state()
|
|
344
|
+
], Field.prototype, "refreshErrorAlert", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
state()
|
|
347
|
+
], Field.prototype, "disableTransitions", void 0);
|
|
348
|
+
__decorate([
|
|
349
|
+
query('.label.floating')
|
|
350
|
+
], Field.prototype, "floatingLabelEl", void 0);
|
|
351
|
+
__decorate([
|
|
352
|
+
query('.label.resting')
|
|
353
|
+
], Field.prototype, "restingLabelEl", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
query('.container')
|
|
356
|
+
], Field.prototype, "containerEl", void 0);
|
|
357
|
+
//# sourceMappingURL=field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.js","sourceRoot":"","sources":["field.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n html,\n LitElement,\n nothing,\n PropertyValues,\n render,\n TemplateResult,\n} from 'lit';\nimport {property, query, queryAssignedElements, state} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\n\nimport {EASING} from '../../internal/motion/animation.js';\n\n/**\n * A field component.\n */\nexport class Field extends LitElement {\n @property({type: Boolean}) disabled = false;\n @property({type: Boolean}) error = false;\n @property({type: Boolean}) focused = false;\n @property({type: Boolean, attribute: 'always-floating-label'}) alwaysFloatingLabel = false;\n @property() label = '';\n @property({type: Boolean, attribute: 'no-asterisk'}) noAsterisk = false;\n @property({type: Boolean}) populated = false;\n @property({type: Boolean}) required = false;\n @property({type: Boolean}) resizable = false;\n @property({attribute: 'supporting-text'}) supportingText = '';\n @property({attribute: 'error-text'}) errorText = '';\n @property({type: Number}) count = -1;\n @property({type: Number}) max = -1;\n\n /**\n * Whether or not the field has leading content.\n */\n @property({type: Boolean, attribute: 'has-start'}) hasStart = false;\n\n /**\n * Whether or not the field has trailing content.\n */\n @property({type: Boolean, attribute: 'has-end'}) hasEnd = false;\n\n @queryAssignedElements({slot: 'aria-describedby'})\n private readonly slottedAriaDescribedBy!: HTMLElement[];\n\n private get counterText() {\n // Count and max are typed as number, but can be set to null when Lit removes\n // their attributes. These getters coerce back to a number for calculations.\n const countAsNumber = this.count ?? -1;\n const maxAsNumber = this.max ?? -1;\n // Counter does not show if count is negative, or max is negative or 0.\n if (countAsNumber < 0 || maxAsNumber <= 0) {\n return '';\n }\n\n return `${countAsNumber} / ${maxAsNumber}`;\n }\n\n private get supportingOrErrorText() {\n return this.error && this.errorText ? this.errorText : this.supportingText;\n }\n\n @state() private isAnimating = false;\n private labelAnimation?: Animation;\n /**\n * When set to true, the error text's `role=\"alert\"` will be removed, then\n * re-added after an animation frame. This will re-announce an error message\n * to screen readers.\n */\n @state() private refreshErrorAlert = false;\n @state() private disableTransitions = false;\n @query('.label.floating')\n private readonly floatingLabelEl!: HTMLElement | null;\n @query('.label.resting') private readonly restingLabelEl!: HTMLElement | null;\n @query('.container') private readonly containerEl!: HTMLElement | null;\n\n /**\n * Re-announces the field's error supporting text to screen readers.\n *\n * Error text announces to screen readers anytime it is visible and changes.\n * Use the method to re-announce the message when the text has not changed,\n * but announcement is still needed (such as for `reportValidity()`).\n */\n reannounceError() {\n this.refreshErrorAlert = true;\n }\n\n protected override update(props: PropertyValues<Field>) {\n // Client-side property updates\n const isDisabledChanging =\n props.has('disabled') && props.get('disabled') !== undefined;\n if (isDisabledChanging) {\n this.disableTransitions = true;\n }\n\n // When disabling, remove focus styles if focused.\n if (this.disabled && this.focused) {\n props.set('focused', true);\n this.focused = false;\n }\n\n // Animate if focused or populated change.\n if(!this.alwaysFloatingLabel) {\n this.animateLabelIfNeeded({\n wasFocused: props.get('focused'),\n wasPopulated: props.get('populated'),\n });\n }\n\n super.update(props);\n }\n\n protected override render() {\n const floatingLabel = this.renderLabel(/*isFloating*/ true);\n const restingLabel = this.renderLabel(/*isFloating*/ false);\n const outline = this.renderOutline?.(floatingLabel);\n const classes = {\n 'disabled': this.disabled,\n 'disable-transitions': this.disableTransitions,\n 'error': this.error && !this.disabled,\n 'focused': this.focused,\n 'floatingLabel': this.alwaysFloatingLabel,\n 'with-start': this.hasStart,\n 'with-end': this.hasEnd,\n 'populated': this.populated,\n 'resizable': this.resizable,\n 'required': this.required,\n 'no-label': !this.label,\n };\n\n return html`\n <div class=\"field ${classMap(classes)}\">\n <div class=\"container-overflow\">\n ${this.renderBackground?.()} ${this.renderIndicator?.()} ${outline}\n <div class=\"container\">\n <div class=\"start\">\n <slot name=\"start\"></slot>\n </div>\n <div class=\"middle\">\n <div class=\"label-wrapper\">\n ${restingLabel} ${outline ? nothing : floatingLabel}\n </div>\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n <div class=\"end\">\n <slot name=\"end\"></slot>\n </div>\n </div>\n </div>\n ${this.renderSupportingText()}\n </div>\n `;\n }\n\n protected override updated(changed: PropertyValues<Field>) {\n if (\n changed.has('supportingText') ||\n changed.has('errorText') ||\n changed.has('count') ||\n changed.has('max')\n ) {\n this.updateSlottedAriaDescribedBy();\n }\n\n if (this.refreshErrorAlert) {\n // The past render cycle removed the role=\"alert\" from the error message.\n // Re-add it after an animation frame to re-announce the error.\n requestAnimationFrame(() => {\n this.refreshErrorAlert = false;\n });\n }\n\n if (this.disableTransitions) {\n requestAnimationFrame(() => {\n this.disableTransitions = false;\n });\n }\n }\n\n protected renderBackground?(): TemplateResult;\n protected renderIndicator?(): TemplateResult;\n protected renderOutline?(floatingLabel: unknown): TemplateResult;\n\n private renderSupportingText() {\n const {supportingOrErrorText, counterText} = this;\n if (!supportingOrErrorText && !counterText) {\n return nothing;\n }\n\n // Always render the supporting text span so that our `space-around`\n // container puts the counter at the end.\n const start = html`<span>${supportingOrErrorText}</span>`;\n // Conditionally render counter so we don't render the extra `gap`.\n // TODO(b/244473435): add aria-label and announcements\n const end = counterText\n ? html`<span class=\"counter\">${counterText}</span>`\n : nothing;\n\n // Announce if there is an error and error text visible.\n // If refreshErrorAlert is true, do not announce. This will remove the\n // role=\"alert\" attribute. Another render cycle will happen after an\n // animation frame to re-add the role.\n const shouldErrorAnnounce =\n this.error && this.errorText && !this.refreshErrorAlert;\n const role = shouldErrorAnnounce ? 'alert' : nothing;\n return html`\n <div class=\"supporting-text\" role=${role}>${start}${end}</div>\n <slot\n name=\"aria-describedby\"\n @slotchange=${this.updateSlottedAriaDescribedBy}></slot>\n `;\n }\n\n private updateSlottedAriaDescribedBy() {\n for (const element of this.slottedAriaDescribedBy) {\n render(html`${this.supportingOrErrorText} ${this.counterText}`, element);\n element.setAttribute('hidden', '');\n }\n }\n\n private renderLabel(isFloating: boolean) {\n if (!this.label) {\n return nothing;\n }\n\n let visible: boolean;\n if (isFloating) {\n // Floating label is visible when focused/populated or when animating.\n visible = this.alwaysFloatingLabel ? true : this.focused || this.populated || this.isAnimating;\n } else {\n // Resting label is visible when unfocused. It is never visible while\n // animating.\n visible = this.alwaysFloatingLabel ? false : !this.focused && !this.populated && !this.isAnimating;\n }\n\n const classes = {\n 'hidden': !visible,\n 'floating': isFloating,\n 'resting': !isFloating,\n };\n\n // Add '*' if a label is present and the field is required\n const labelText = `${this.label}${\n this.required && !this.noAsterisk ? '*' : ''\n }`;\n\n return html`\n <span class=\"label ${classMap(classes)}\" aria-hidden=${!visible}\n >${labelText}</span\n >\n `;\n }\n\n private animateLabelIfNeeded({\n wasFocused,\n wasPopulated,\n }: {\n wasFocused?: boolean;\n wasPopulated?: boolean;\n }) {\n if (!this.label) {\n return;\n }\n\n wasFocused ??= this.focused;\n wasPopulated ??= this.populated;\n const wasFloating = wasFocused || wasPopulated;\n const shouldBeFloating = this.focused || this.populated;\n if (wasFloating === shouldBeFloating) {\n return;\n }\n\n this.isAnimating = true;\n this.labelAnimation?.cancel();\n\n // Only one label is visible at a time for clearer text rendering.\n // The floating label is visible and used during animation. At the end of\n // the animation, it will either remain visible (if floating) or hide and\n // the resting label will be shown.\n //\n // We don't use forward filling because if the dimensions of the text field\n // change (leading icon removed, density changes, etc), then the animation\n // will be inaccurate.\n //\n // Re-calculating the animation each time will prevent any visual glitches\n // from appearing.\n // TODO(b/241113345): use animation tokens\n this.labelAnimation = this.floatingLabelEl?.animate(\n this.getLabelKeyframes(),\n {duration: 150, easing: EASING.STANDARD},\n );\n\n this.labelAnimation?.addEventListener('finish', () => {\n // At the end of the animation, update the visible label.\n this.isAnimating = false;\n });\n }\n\n private getLabelKeyframes() {\n const {floatingLabelEl, restingLabelEl} = this;\n if (!floatingLabelEl || !restingLabelEl) {\n return [];\n }\n\n const {\n x: floatingX,\n y: floatingY,\n height: floatingHeight,\n } = floatingLabelEl.getBoundingClientRect();\n const {\n x: restingX,\n y: restingY,\n height: restingHeight,\n } = restingLabelEl.getBoundingClientRect();\n const floatingScrollWidth = floatingLabelEl.scrollWidth;\n const restingScrollWidth = restingLabelEl.scrollWidth;\n // Scale by width ratio instead of font size since letter-spacing will scale\n // incorrectly. Using the width we can better approximate the adjusted\n // scale and compensate for tracking and overflow.\n // (use scrollWidth instead of width to account for clipped labels)\n const scale = restingScrollWidth / floatingScrollWidth;\n const xDelta = restingX - floatingX;\n // The line-height of the resting and floating label are different. When\n // we move the floating label down to the resting label's position, it won't\n // exactly match because of this. We need to adjust by half of what the\n // final scaled floating label's height will be.\n const yDelta =\n restingY -\n floatingY +\n Math.round((restingHeight - floatingHeight * scale) / 2);\n\n // Create the two transforms: floating to resting (using the calculations\n // above), and resting to floating (re-setting the transform to initial\n // values).\n const restTransform = `translateX(${xDelta}px) translateY(${yDelta}px) scale(${scale})`;\n const floatTransform = `translateX(0) translateY(0) scale(1)`;\n\n // Constrain the floating labels width to a scaled percentage of the\n // resting label's width. This will prevent long clipped labels from\n // overflowing the container.\n const restingClientWidth = restingLabelEl.clientWidth;\n const isRestingClipped = restingScrollWidth > restingClientWidth;\n const width = isRestingClipped ? `${restingClientWidth / scale}px` : '';\n if (this.focused || this.populated) {\n return [\n {transform: restTransform, width},\n {transform: floatTransform, width},\n ];\n }\n\n return [\n {transform: floatTransform, width},\n {transform: restTransform, width},\n ];\n }\n\n getSurfacePositionClientRect() {\n return this.containerEl!.getBoundingClientRect();\n }\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Field } from './field.js';
|
|
7
|
+
/**
|
|
8
|
+
* A filled field component.
|
|
9
|
+
*/
|
|
10
|
+
export declare class FilledField extends Field {
|
|
11
|
+
protected renderBackground(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
protected renderIndicator(): import("lit-html").TemplateResult<1>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { html } from 'lit';
|
|
7
|
+
import { Field } from './field.js';
|
|
8
|
+
/**
|
|
9
|
+
* A filled field component.
|
|
10
|
+
*/
|
|
11
|
+
export class FilledField extends Field {
|
|
12
|
+
renderBackground() {
|
|
13
|
+
return html `
|
|
14
|
+
<div class="background"></div>
|
|
15
|
+
<div class="state-layer"></div>
|
|
16
|
+
`;
|
|
17
|
+
}
|
|
18
|
+
renderIndicator() {
|
|
19
|
+
return html `<div class="active-indicator"></div>`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=filled-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filled-field.js","sourceRoot":"","sources":["filled-field.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;IACjB,gBAAgB;QACjC,OAAO,IAAI,CAAA;;;KAGV,CAAC;IACJ,CAAC;IAEkB,eAAe;QAChC,OAAO,IAAI,CAAA,sCAAsC,CAAC;IACpD,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {html} from 'lit';\n\nimport {Field} from './field.js';\n\n/**\n * A filled field component.\n */\nexport class FilledField extends Field {\n protected override renderBackground() {\n return html`\n <div class=\"background\"></div>\n <div class=\"state-layer\"></div>\n `;\n }\n\n protected override renderIndicator() {\n return html`<div class=\"active-indicator\"></div>`;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer styles{:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-filled-field-content-space, 16px);--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px);--_with-leading-content-leading-space: var(--md-filled-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-filled-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)))}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:"";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}}@layer hcm{@media(forced-colors: active){.disabled .active-indicator::before{border-color:GrayText;opacity:1}}}/*# sourceMappingURL=filled-styles.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["_filled-field.scss"],"names":[],"mappings":"AA6CE,cACE,MAII,4oUAIJ,yBAEE,sBACA,QACA,oBACA,kBAGF,YACE,mCAGF,aACE,kBAGF,yCACE,mBAGF,gBACE,kBACA,iCAGF,uCACE,0CAGF,qCACE,yCAGF,kBACE,iBAGA,oBACA,kBACA,WACA,UAEA,mDAEE,mFAEA,iBACA,WACA,kBACA,WAIF,yBACE,UACA,oDAKJ,kCACE,UAGF,8CACE,2CAGF,4CACE,0CAGF,yDACE,+CACA,0FAKF,mDAEE,8CACA,yFAKF,iCACE,yDACA,0DAIF,yBACE,yDACA,0DAGF,oBACE,2CACA,0CAGF,oCACE,4DACA,6DACA,kDAGF,sBACE,4CACA,2CAGF,iCACE,yDAGF,uCACE,+DAGF,0BACE,iDACA,gDAIF,gCACE,+DAKF,sBACE,6CAEA,6DAGF,wBACE,2CAIJ,WACE,8BACE,oCACE,sBACA","file":"filled-styles.css"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
// Generated stylesheet for ./field/internal/filled-styles.css.
|
|
7
|
+
import { css } from 'lit';
|
|
8
|
+
export const styles = css `@layer styles{:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-filled-field-content-space, 16px);--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px);--_with-leading-content-leading-space: var(--md-filled-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-filled-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)))}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:"";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}}@layer hcm{@media(forced-colors: active){.disabled .active-indicator::before{border-color:GrayText;opacity:1}}}
|
|
9
|
+
`;
|
|
10
|
+
//# sourceMappingURL=filled-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filled-styles.js","sourceRoot":"","sources":["filled-styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,+DAA+D;AAC/D,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACxB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2024 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./field/internal/filled-styles.css.\nimport {css} from 'lit';\nexport const styles = css`@layer styles{:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-filled-field-content-space, 16px);--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px);--_with-leading-content-leading-space: var(--md-filled-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-filled-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)))}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:\"\";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}}@layer hcm{@media(forced-colors: active){.disabled .active-indicator::before{border-color:GrayText;opacity:1}}}\n`;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Field } from './field.js';
|
|
7
|
+
/**
|
|
8
|
+
* An outlined field component.
|
|
9
|
+
*/
|
|
10
|
+
export declare class OutlinedField extends Field {
|
|
11
|
+
protected renderOutline(floatingLabel: unknown): import("lit-html").TemplateResult<1>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { html } from 'lit';
|
|
7
|
+
import { Field } from './field.js';
|
|
8
|
+
/**
|
|
9
|
+
* An outlined field component.
|
|
10
|
+
*/
|
|
11
|
+
export class OutlinedField extends Field {
|
|
12
|
+
renderOutline(floatingLabel) {
|
|
13
|
+
return html `
|
|
14
|
+
<div class="outline">
|
|
15
|
+
<div class="outline-start"></div>
|
|
16
|
+
<div class="outline-notch">
|
|
17
|
+
<div class="outline-panel-inactive"></div>
|
|
18
|
+
<div class="outline-panel-active"></div>
|
|
19
|
+
<div class="outline-label">${floatingLabel}</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="outline-end"></div>
|
|
22
|
+
</div>
|
|
23
|
+
`;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=outlined-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outlined-field.js","sourceRoot":"","sources":["outlined-field.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACnB,aAAa,CAAC,aAAsB;QACrD,OAAO,IAAI,CAAA;;;;;;uCAMwB,aAAa;;;;KAI/C,CAAC;IACJ,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {html} from 'lit';\n\nimport {Field} from './field.js';\n\n/**\n * An outlined field component.\n */\nexport class OutlinedField extends Field {\n protected override renderOutline(floatingLabel: unknown) {\n return html`\n <div class=\"outline\">\n <div class=\"outline-start\"></div>\n <div class=\"outline-notch\">\n <div class=\"outline-panel-inactive\"></div>\n <div class=\"outline-panel-active\"></div>\n <div class=\"outline-label\">${floatingLabel}</div>\n </div>\n <div class=\"outline-end\"></div>\n </div>\n `;\n }\n}\n"]}
|