@material/web 0.1.0-alpha.0
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 +34 -0
- package/actionelement/action-element.d.ts +79 -0
- package/actionelement/action-element.js +97 -0
- package/actionelement/action-element.js.map +1 -0
- package/badge/badge.d.ts +19 -0
- package/badge/badge.js +22 -0
- package/badge/badge.js.map +1 -0
- package/badge/lib/_badge-theme.scss +118 -0
- package/badge/lib/_badge.scss +41 -0
- package/badge/lib/badge-styles.css.d.ts +1 -0
- package/badge/lib/badge-styles.css.js +9 -0
- package/badge/lib/badge-styles.css.js.map +1 -0
- package/badge/lib/badge-styles.scss +16 -0
- package/badge/lib/badge.d.ts +15 -0
- package/badge/lib/badge.js +31 -0
- package/badge/lib/badge.js.map +1 -0
- package/button/_elevated-button.scss +8 -0
- package/button/_filled-button.scss +8 -0
- package/button/_outlined-button.scss +8 -0
- package/button/_text-button.scss +8 -0
- package/button/_tonal-button.scss +8 -0
- package/button/elevated-button.d.ts +19 -0
- package/button/elevated-button.js +24 -0
- package/button/elevated-button.js.map +1 -0
- package/button/elevated-link-button.d.ts +19 -0
- package/button/elevated-link-button.js +24 -0
- package/button/elevated-link-button.js.map +1 -0
- package/button/filled-button.d.ts +19 -0
- package/button/filled-button.js +23 -0
- package/button/filled-button.js.map +1 -0
- package/button/filled-link-button.d.ts +19 -0
- package/button/filled-link-button.js +23 -0
- package/button/filled-link-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/lib/_button-theme.scss +204 -0
- package/button/lib/_button.scss +88 -0
- package/button/lib/_elevated-button-theme.scss +53 -0
- package/button/lib/_elevated-button.scss +8 -0
- package/button/lib/_elevation-theme.scss +94 -0
- package/button/lib/_filled-button-theme.scss +53 -0
- package/button/lib/_filled-button.scss +8 -0
- package/button/lib/_icon-theme.scss +67 -0
- package/button/lib/_icon.scss +49 -0
- package/button/lib/_outlined-button-theme.scss +112 -0
- package/button/lib/_outlined-button.scss +25 -0
- package/button/lib/_text-button-theme.scss +57 -0
- package/button/lib/_text-button.scss +8 -0
- package/button/lib/_tonal-button-theme.scss +53 -0
- package/button/lib/_tonal-button.scss +8 -0
- package/button/lib/_touch-target.scss +16 -0
- package/button/lib/button.d.ts +76 -0
- package/button/lib/button.js +238 -0
- package/button/lib/button.js.map +1 -0
- package/button/lib/elevated-button.d.ts +15 -0
- package/button/lib/elevated-button.js +22 -0
- package/button/lib/elevated-button.js.map +1 -0
- package/button/lib/elevated-link-button.d.ts +15 -0
- package/button/lib/elevated-link-button.js +22 -0
- package/button/lib/elevated-link-button.js.map +1 -0
- package/button/lib/elevated-styles.css.d.ts +1 -0
- package/button/lib/elevated-styles.css.js +9 -0
- package/button/lib/elevated-styles.css.js.map +1 -0
- package/button/lib/elevated-styles.scss +18 -0
- package/button/lib/filled-button.d.ts +12 -0
- package/button/lib/filled-button.js +17 -0
- package/button/lib/filled-button.js.map +1 -0
- package/button/lib/filled-link-button.d.ts +12 -0
- package/button/lib/filled-link-button.js +17 -0
- package/button/lib/filled-link-button.js.map +1 -0
- package/button/lib/filled-styles.css.d.ts +1 -0
- package/button/lib/filled-styles.css.js +9 -0
- package/button/lib/filled-styles.css.js.map +1 -0
- package/button/lib/filled-styles.scss +16 -0
- package/button/lib/link-button.d.ts +17 -0
- package/button/lib/link-button.js +53 -0
- package/button/lib/link-button.js.map +1 -0
- package/button/lib/outlined-button.d.ts +15 -0
- package/button/lib/outlined-button.js +22 -0
- package/button/lib/outlined-button.js.map +1 -0
- package/button/lib/outlined-link-button.d.ts +15 -0
- package/button/lib/outlined-link-button.js +22 -0
- package/button/lib/outlined-link-button.js.map +1 -0
- package/button/lib/outlined-styles.css.d.ts +1 -0
- package/button/lib/outlined-styles.css.js +9 -0
- package/button/lib/outlined-styles.css.js.map +1 -0
- package/button/lib/outlined-styles.scss +18 -0
- package/button/lib/shared-styles.css.d.ts +1 -0
- package/button/lib/shared-styles.css.js +9 -0
- package/button/lib/shared-styles.css.js.map +1 -0
- package/button/lib/shared-styles.scss +12 -0
- package/button/lib/state.d.ts +10 -0
- package/button/lib/state.js +7 -0
- package/button/lib/state.js.map +1 -0
- package/button/lib/text-button.d.ts +12 -0
- package/button/lib/text-button.js +17 -0
- package/button/lib/text-button.js.map +1 -0
- package/button/lib/text-link-button.d.ts +12 -0
- package/button/lib/text-link-button.js +17 -0
- package/button/lib/text-link-button.js.map +1 -0
- package/button/lib/text-styles.css.d.ts +1 -0
- package/button/lib/text-styles.css.js +9 -0
- package/button/lib/text-styles.css.js.map +1 -0
- package/button/lib/text-styles.scss +16 -0
- package/button/lib/tonal-button.d.ts +12 -0
- package/button/lib/tonal-button.js +17 -0
- package/button/lib/tonal-button.js.map +1 -0
- package/button/lib/tonal-link-button.d.ts +12 -0
- package/button/lib/tonal-link-button.js +17 -0
- package/button/lib/tonal-link-button.js.map +1 -0
- package/button/lib/tonal-styles.css.d.ts +1 -0
- package/button/lib/tonal-styles.css.js +9 -0
- package/button/lib/tonal-styles.css.js.map +1 -0
- package/button/lib/tonal-styles.scss +16 -0
- package/button/outlined-button.d.ts +19 -0
- package/button/outlined-button.js +23 -0
- package/button/outlined-button.js.map +1 -0
- package/button/outlined-link-button.d.ts +19 -0
- package/button/outlined-link-button.js +23 -0
- package/button/outlined-link-button.js.map +1 -0
- package/button/text-button.d.ts +19 -0
- package/button/text-button.js +23 -0
- package/button/text-button.js.map +1 -0
- package/button/text-link-button.d.ts +19 -0
- package/button/text-link-button.js +23 -0
- package/button/text-link-button.js.map +1 -0
- package/button/tonal-button.d.ts +19 -0
- package/button/tonal-button.js +23 -0
- package/button/tonal-button.js.map +1 -0
- package/button/tonal-link-button.d.ts +19 -0
- package/button/tonal-link-button.js +23 -0
- package/button/tonal-link-button.js.map +1 -0
- package/checkbox/_checkbox.scss +1 -0
- package/checkbox/checkbox.d.ts +15 -0
- package/checkbox/checkbox.js +18 -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/lib/_checkbox-theme.scss +532 -0
- package/checkbox/lib/_checkbox.scss +424 -0
- package/checkbox/lib/checkbox-styles.css.d.ts +1 -0
- package/checkbox/lib/checkbox-styles.css.js +9 -0
- package/checkbox/lib/checkbox-styles.css.js.map +1 -0
- package/checkbox/lib/checkbox-styles.scss +15 -0
- package/checkbox/lib/checkbox.d.ts +56 -0
- package/checkbox/lib/checkbox.js +238 -0
- package/checkbox/lib/checkbox.js.map +1 -0
- package/chips/action/lib/action.d.ts +34 -0
- package/chips/action/lib/action.js +83 -0
- package/chips/action/lib/action.js.map +1 -0
- package/chips/action/lib/adapter.d.ts +21 -0
- package/chips/action/lib/adapter.js +7 -0
- package/chips/action/lib/adapter.js.map +1 -0
- package/chips/action/lib/constants.d.ts +62 -0
- package/chips/action/lib/constants.js +69 -0
- package/chips/action/lib/constants.js.map +1 -0
- package/chips/action/lib/foundation.d.ts +31 -0
- package/chips/action/lib/foundation.js +151 -0
- package/chips/action/lib/foundation.js.map +1 -0
- package/chips/action/lib/link-action.d.ts +17 -0
- package/chips/action/lib/link-action.js +43 -0
- package/chips/action/lib/link-action.js.map +1 -0
- package/chips/action/lib/presentational-action.d.ts +15 -0
- package/chips/action/lib/presentational-action.js +30 -0
- package/chips/action/lib/presentational-action.js.map +1 -0
- package/chips/action/lib/primary-action.d.ts +29 -0
- package/chips/action/lib/primary-action.js +83 -0
- package/chips/action/lib/primary-action.js.map +1 -0
- package/chips/action/lib/primary-foundation.d.ts +16 -0
- package/chips/action/lib/primary-foundation.js +24 -0
- package/chips/action/lib/primary-foundation.js.map +1 -0
- package/chips/action/lib/selectable-action.d.ts +17 -0
- package/chips/action/lib/selectable-action.js +57 -0
- package/chips/action/lib/selectable-action.js.map +1 -0
- package/chips/action/lib/trailing-action.d.ts +20 -0
- package/chips/action/lib/trailing-action.js +62 -0
- package/chips/action/lib/trailing-action.js.map +1 -0
- package/chips/action/lib/trailing-foundation.d.ts +16 -0
- package/chips/action/lib/trailing-foundation.js +23 -0
- package/chips/action/lib/trailing-foundation.js.map +1 -0
- package/chips/action/lib/types.d.ts +23 -0
- package/chips/action/lib/types.js +7 -0
- package/chips/action/lib/types.js.map +1 -0
- package/chips/chip/lib/_assist-chip-theme.scss +101 -0
- package/chips/chip/lib/_chip-theme.scss +1329 -0
- package/chips/chip/lib/_chip.scss +427 -0
- package/chips/chip/lib/_filter-chip-theme.scss +132 -0
- package/chips/chip/lib/_input-chip-theme.scss +103 -0
- package/chips/chip/lib/_suggestion-chip-theme.scss +94 -0
- package/chips/chip/lib/adapter.d.ts +50 -0
- package/chips/chip/lib/adapter.js +7 -0
- package/chips/chip/lib/adapter.js.map +1 -0
- package/chips/chip/lib/constants.d.ts +43 -0
- package/chips/chip/lib/constants.js +48 -0
- package/chips/chip/lib/constants.js.map +1 -0
- package/chips/chip/lib/foundation.d.ts +41 -0
- package/chips/chip/lib/foundation.js +256 -0
- package/chips/chip/lib/foundation.js.map +1 -0
- package/chips/chip/lib/types.d.ts +42 -0
- package/chips/chip/lib/types.js +7 -0
- package/chips/chip/lib/types.js.map +1 -0
- package/chips/chipset/lib/_chip-set-theme.scss +48 -0
- package/chips/chipset/lib/_chip-set.scss +46 -0
- package/chips/chipset/lib/adapter.d.ts +45 -0
- package/chips/chipset/lib/adapter.js +7 -0
- package/chips/chipset/lib/adapter.js.map +1 -0
- package/chips/chipset/lib/constants.d.ts +26 -0
- package/chips/chipset/lib/constants.js +30 -0
- package/chips/chipset/lib/constants.js.map +1 -0
- package/chips/chipset/lib/foundation.d.ts +68 -0
- package/chips/chipset/lib/foundation.js +316 -0
- package/chips/chipset/lib/foundation.js.map +1 -0
- package/chips/chipset/lib/types.d.ts +41 -0
- package/chips/chipset/lib/types.js +7 -0
- package/chips/chipset/lib/types.js.map +1 -0
- package/compat/animation/animationframe.d.ts +31 -0
- package/compat/animation/animationframe.js +65 -0
- package/compat/animation/animationframe.js.map +1 -0
- package/compat/base/aria-property.d.ts +39 -0
- package/compat/base/aria-property.js +93 -0
- package/compat/base/aria-property.js.map +1 -0
- package/compat/base/foundation.d.ts +44 -0
- package/compat/base/foundation.js +45 -0
- package/compat/base/foundation.js.map +1 -0
- package/compat/base/observer.d.ts +16 -0
- package/compat/base/observer.js +43 -0
- package/compat/base/observer.js.map +1 -0
- package/compat/base/utils.d.ts +7 -0
- package/compat/base/utils.js +39 -0
- package/compat/base/utils.js.map +1 -0
- package/compat/density/_density.scss +106 -0
- package/compat/dom/keyboard.d.ts +33 -0
- package/compat/dom/keyboard.js +109 -0
- package/compat/dom/keyboard.js.map +1 -0
- package/compat/theme/_color-palette.scss +277 -0
- package/compat/theme/_css.scss +92 -0
- package/compat/theme/_custom-properties.scss +309 -0
- package/compat/theme/_gss.scss +45 -0
- package/compat/theme/_keys.scss +507 -0
- package/compat/theme/_map-ext.scss +68 -0
- package/compat/theme/_replace.scss +108 -0
- package/compat/theme/_selector-ext.scss +522 -0
- package/compat/theme/_shadow-dom.scss +474 -0
- package/compat/theme/_state.scss +752 -0
- package/compat/theme/_theme-color.scss +344 -0
- package/compat/theme/_theme.scss +334 -0
- package/compat/touchtarget/_touch-target.scss +56 -0
- package/controller/action-controller.d.ts +147 -0
- package/controller/action-controller.js +286 -0
- package/controller/action-controller.js.map +1 -0
- package/controller/events.d.ts +27 -0
- package/controller/events.js +40 -0
- package/controller/events.js.map +1 -0
- package/controller/form-controller.d.ts +59 -0
- package/controller/form-controller.js +68 -0
- package/controller/form-controller.js.map +1 -0
- package/controller/foundation.d.ts +24 -0
- package/controller/foundation.js +18 -0
- package/controller/foundation.js.map +1 -0
- package/controller/observer-foundation.d.ts +25 -0
- package/controller/observer-foundation.js +37 -0
- package/controller/observer-foundation.js.map +1 -0
- package/controller/observer.d.ts +52 -0
- package/controller/observer.js +149 -0
- package/controller/observer.js.map +1 -0
- package/controller/string-converter.d.ts +9 -0
- package/controller/string-converter.js +14 -0
- package/controller/string-converter.js.map +1 -0
- package/decorators/aria-property.d.ts +32 -0
- package/decorators/aria-property.js +99 -0
- package/decorators/aria-property.js.map +1 -0
- package/decorators/bound.d.ts +40 -0
- package/decorators/bound.js +49 -0
- package/decorators/bound.js.map +1 -0
- package/elevation/lib/_elevation-overlay-theme.scss +31 -0
- package/elevation/lib/_elevation-overlay.scss +18 -0
- package/elevation/lib/_elevation-theme.scss +88 -0
- package/elevation/lib/_surface.scss +18 -0
- package/elevation/lib/elevation-overlay-styles.css.d.ts +1 -0
- package/elevation/lib/elevation-overlay-styles.css.js +9 -0
- package/elevation/lib/elevation-overlay-styles.css.js.map +1 -0
- package/elevation/lib/elevation-overlay-styles.scss +9 -0
- package/fab/_fab-extended.scss +11 -0
- package/fab/_fab.scss +20 -0
- package/fab/fab-extended.d.ts +23 -0
- package/fab/fab-extended.js +30 -0
- package/fab/fab-extended.js.map +1 -0
- package/fab/fab.d.ts +23 -0
- package/fab/fab.js +30 -0
- package/fab/fab.js.map +1 -0
- package/fab/harness.d.ts +14 -0
- package/fab/harness.js +16 -0
- package/fab/harness.js.map +1 -0
- package/fab/lib/_fab-extended-theme.scss +108 -0
- package/fab/lib/_fab-extended.scss +39 -0
- package/fab/lib/_fab-shared-theme.scss +202 -0
- package/fab/lib/_fab-shared.scss +114 -0
- package/fab/lib/_fab-theme.scss +107 -0
- package/fab/lib/_fab.scss +17 -0
- package/fab/lib/fab-extended-styles.css.d.ts +1 -0
- package/fab/lib/fab-extended-styles.css.js +9 -0
- package/fab/lib/fab-extended-styles.css.js.map +1 -0
- package/fab/lib/fab-extended-styles.scss +16 -0
- package/fab/lib/fab-extended.d.ts +19 -0
- package/fab/lib/fab-extended.js +28 -0
- package/fab/lib/fab-extended.js.map +1 -0
- package/fab/lib/fab-shared-styles.css.d.ts +1 -0
- package/fab/lib/fab-shared-styles.css.js +9 -0
- package/fab/lib/fab-shared-styles.css.js.map +1 -0
- package/fab/lib/fab-shared-styles.scss +8 -0
- package/fab/lib/fab-shared.d.ts +50 -0
- package/fab/lib/fab-shared.js +138 -0
- package/fab/lib/fab-shared.js.map +1 -0
- package/fab/lib/fab-styles.css.d.ts +1 -0
- package/fab/lib/fab-styles.css.js +9 -0
- package/fab/lib/fab-styles.css.js.map +1 -0
- package/fab/lib/fab-styles.scss +16 -0
- package/fab/lib/fab.d.ts +17 -0
- package/fab/lib/fab.js +23 -0
- package/fab/lib/fab.js.map +1 -0
- package/field/_filled-field.scss +8 -0
- package/field/_outlined-field.scss +8 -0
- package/field/filled-field.d.ts +19 -0
- package/field/filled-field.js +23 -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/lib/_content-theme.scss +80 -0
- package/field/lib/_content.scss +63 -0
- package/field/lib/_field-theme.scss +15 -0
- package/field/lib/_field.scss +52 -0
- package/field/lib/_filled-field-theme.scss +382 -0
- package/field/lib/_filled-field.scss +129 -0
- package/field/lib/_label-theme.scss +123 -0
- package/field/lib/_label.scss +49 -0
- package/field/lib/_outlined-field-theme.scss +311 -0
- package/field/lib/_outlined-field.scss +194 -0
- package/field/lib/_supporting-text-theme.scss +107 -0
- package/field/lib/_supporting-text.scss +20 -0
- package/field/lib/field.d.ts +56 -0
- package/field/lib/field.js +253 -0
- package/field/lib/field.js.map +1 -0
- package/field/lib/filled-field.d.ts +23 -0
- package/field/lib/filled-field.js +83 -0
- package/field/lib/filled-field.js.map +1 -0
- package/field/lib/filled-styles.css.d.ts +1 -0
- package/field/lib/filled-styles.css.js +9 -0
- package/field/lib/filled-styles.css.js.map +1 -0
- package/field/lib/filled-styles.scss +16 -0
- package/field/lib/outlined-field.d.ts +19 -0
- package/field/lib/outlined-field.js +46 -0
- package/field/lib/outlined-field.js.map +1 -0
- package/field/lib/outlined-styles.css.d.ts +1 -0
- package/field/lib/outlined-styles.css.js +9 -0
- package/field/lib/outlined-styles.css.js.map +1 -0
- package/field/lib/outlined-styles.scss +16 -0
- package/field/lib/shared-styles.css.d.ts +1 -0
- package/field/lib/shared-styles.css.js +9 -0
- package/field/lib/shared-styles.css.js.map +1 -0
- package/field/lib/shared-styles.scss +14 -0
- package/field/outlined-field.d.ts +19 -0
- package/field/outlined-field.js +23 -0
- package/field/outlined-field.js.map +1 -0
- package/focus/focus-ring.d.ts +19 -0
- package/focus/focus-ring.js +22 -0
- package/focus/focus-ring.js.map +1 -0
- package/focus/lib/_focus-ring-theme.scss +89 -0
- package/focus/lib/_focus-ring.scss +41 -0
- package/focus/lib/focus-ring-styles.css.d.ts +1 -0
- package/focus/lib/focus-ring-styles.css.js +9 -0
- package/focus/lib/focus-ring-styles.css.js.map +1 -0
- package/focus/lib/focus-ring-styles.scss +16 -0
- package/focus/lib/focus-ring.d.ts +15 -0
- package/focus/lib/focus-ring.js +31 -0
- package/focus/lib/focus-ring.js.map +1 -0
- package/focus/strong-focus.d.ts +43 -0
- package/focus/strong-focus.js +84 -0
- package/focus/strong-focus.js.map +1 -0
- package/formfield/formfield.d.ts +19 -0
- package/formfield/formfield.js +22 -0
- package/formfield/formfield.js.map +1 -0
- package/formfield/lib/_formfield-theme.scss +41 -0
- package/formfield/lib/_formfield.scss +40 -0
- package/formfield/lib/formfield-styles.css.d.ts +1 -0
- package/formfield/lib/formfield-styles.css.js +9 -0
- package/formfield/lib/formfield-styles.css.js.map +1 -0
- package/formfield/lib/formfield-styles.scss +16 -0
- package/formfield/lib/formfield.d.ts +22 -0
- package/formfield/lib/formfield.js +73 -0
- package/formfield/lib/formfield.js.map +1 -0
- package/icon/icon.d.ts +19 -0
- package/icon/icon.js +22 -0
- package/icon/icon.js.map +1 -0
- package/icon/lib/icon-styles.css.d.ts +1 -0
- package/icon/lib/icon-styles.css.js +9 -0
- package/icon/lib/icon-styles.css.js.map +1 -0
- package/icon/lib/icon-styles.scss +25 -0
- package/icon/lib/icon.d.ts +11 -0
- package/icon/lib/icon.js +14 -0
- package/icon/lib/icon.js.map +1 -0
- package/iconbutton/_filled-icon-button.scss +7 -0
- package/iconbutton/_outlined-icon-button.scss +7 -0
- package/iconbutton/_standard-icon-button.scss +7 -0
- package/iconbutton/filled-icon-button-toggle.d.ts +19 -0
- package/iconbutton/filled-icon-button-toggle.js +28 -0
- package/iconbutton/filled-icon-button-toggle.js.map +1 -0
- package/iconbutton/filled-icon-button.d.ts +19 -0
- package/iconbutton/filled-icon-button.js +27 -0
- package/iconbutton/filled-icon-button.js.map +1 -0
- package/iconbutton/filled-link-icon-button.d.ts +19 -0
- package/iconbutton/filled-link-icon-button.js +27 -0
- package/iconbutton/filled-link-icon-button.js.map +1 -0
- package/iconbutton/filled-tonal-icon-button-toggle.d.ts +19 -0
- package/iconbutton/filled-tonal-icon-button-toggle.js +28 -0
- package/iconbutton/filled-tonal-icon-button-toggle.js.map +1 -0
- package/iconbutton/filled-tonal-icon-button.d.ts +19 -0
- package/iconbutton/filled-tonal-icon-button.js +27 -0
- package/iconbutton/filled-tonal-icon-button.js.map +1 -0
- package/iconbutton/filled-tonal-link-icon-button.d.ts +19 -0
- package/iconbutton/filled-tonal-link-icon-button.js +27 -0
- package/iconbutton/filled-tonal-link-icon-button.js.map +1 -0
- package/iconbutton/harness.d.ts +14 -0
- package/iconbutton/harness.js +16 -0
- package/iconbutton/harness.js.map +1 -0
- package/iconbutton/lib/_filled-icon-button-theme.scss +138 -0
- package/iconbutton/lib/_filled-icon-button.scss +8 -0
- package/iconbutton/lib/_filled-tonal-icon-button-theme.scss +144 -0
- package/iconbutton/lib/_filled-tonal-icon-button.scss +8 -0
- package/iconbutton/lib/_icon-button-theme.scss +163 -0
- package/iconbutton/lib/_icon-button.scss +91 -0
- package/iconbutton/lib/_outlined-icon-button-theme.scss +187 -0
- package/iconbutton/lib/_outlined-icon-button.scss +30 -0
- package/iconbutton/lib/_standard-icon-button-theme.scss +107 -0
- package/iconbutton/lib/_standard-icon-button.scss +13 -0
- package/iconbutton/lib/filled-styles.css.d.ts +1 -0
- package/iconbutton/lib/filled-styles.css.js +9 -0
- package/iconbutton/lib/filled-styles.css.js.map +1 -0
- package/iconbutton/lib/filled-styles.scss +18 -0
- package/iconbutton/lib/filled-tonal-styles.css.d.ts +1 -0
- package/iconbutton/lib/filled-tonal-styles.css.js +9 -0
- package/iconbutton/lib/filled-tonal-styles.css.js.map +1 -0
- package/iconbutton/lib/filled-tonal-styles.scss +18 -0
- package/iconbutton/lib/icon-button-styles.css.d.ts +1 -0
- package/iconbutton/lib/icon-button-styles.css.js +9 -0
- package/iconbutton/lib/icon-button-styles.css.js.map +1 -0
- package/iconbutton/lib/icon-button-styles.scss +8 -0
- package/iconbutton/lib/icon-button-toggle.d.ts +44 -0
- package/iconbutton/lib/icon-button-toggle.js +155 -0
- package/iconbutton/lib/icon-button-toggle.js.map +1 -0
- package/iconbutton/lib/icon-button.d.ts +50 -0
- package/iconbutton/lib/icon-button.js +154 -0
- package/iconbutton/lib/icon-button.js.map +1 -0
- package/iconbutton/lib/link-icon-button.d.ts +14 -0
- package/iconbutton/lib/link-icon-button.js +53 -0
- package/iconbutton/lib/link-icon-button.js.map +1 -0
- package/iconbutton/lib/outlined-styles.css.d.ts +1 -0
- package/iconbutton/lib/outlined-styles.css.js +9 -0
- package/iconbutton/lib/outlined-styles.css.js.map +1 -0
- package/iconbutton/lib/outlined-styles.scss +18 -0
- package/iconbutton/lib/standard-styles.css.d.ts +1 -0
- package/iconbutton/lib/standard-styles.css.js +9 -0
- package/iconbutton/lib/standard-styles.css.js.map +1 -0
- package/iconbutton/lib/standard-styles.scss +18 -0
- package/iconbutton/outlined-icon-button-toggle.d.ts +19 -0
- package/iconbutton/outlined-icon-button-toggle.js +27 -0
- package/iconbutton/outlined-icon-button-toggle.js.map +1 -0
- package/iconbutton/outlined-icon-button.d.ts +19 -0
- package/iconbutton/outlined-icon-button.js +27 -0
- package/iconbutton/outlined-icon-button.js.map +1 -0
- package/iconbutton/outlined-link-icon-button.d.ts +19 -0
- package/iconbutton/outlined-link-icon-button.js +27 -0
- package/iconbutton/outlined-link-icon-button.js.map +1 -0
- package/iconbutton/standard-icon-button-toggle.d.ts +19 -0
- package/iconbutton/standard-icon-button-toggle.js +27 -0
- package/iconbutton/standard-icon-button-toggle.js.map +1 -0
- package/iconbutton/standard-icon-button.d.ts +19 -0
- package/iconbutton/standard-icon-button.js +27 -0
- package/iconbutton/standard-icon-button.js.map +1 -0
- package/iconbutton/standard-link-icon-button.d.ts +19 -0
- package/iconbutton/standard-link-icon-button.js +27 -0
- package/iconbutton/standard-link-icon-button.js.map +1 -0
- package/list/_list-item.scss +7 -0
- package/list/_list.scss +7 -0
- package/list/harness.d.ts +19 -0
- package/list/harness.js +24 -0
- package/list/harness.js.map +1 -0
- package/list/lib/_list-theme.scss +51 -0
- package/list/lib/_list.scss +41 -0
- package/list/lib/_tokens.scss +80 -0
- package/list/lib/avatar/_list-item-avatar-theme.scss +30 -0
- package/list/lib/avatar/_list-item-avatar.scss +14 -0
- package/list/lib/avatar/list-item-avatar-styles.css.d.ts +1 -0
- package/list/lib/avatar/list-item-avatar-styles.css.js +9 -0
- package/list/lib/avatar/list-item-avatar-styles.css.js.map +1 -0
- package/list/lib/avatar/list-item-avatar-styles.scss +20 -0
- package/list/lib/avatar/list-item-avatar.d.ts +16 -0
- package/list/lib/avatar/list-item-avatar.js +35 -0
- package/list/lib/avatar/list-item-avatar.js.map +1 -0
- package/list/lib/divider/_list-divider-theme.scss +30 -0
- package/list/lib/divider/_list-divider.scss +14 -0
- package/list/lib/divider/list-divider-styles.css.d.ts +1 -0
- package/list/lib/divider/list-divider-styles.css.js +9 -0
- package/list/lib/divider/list-divider-styles.css.js.map +1 -0
- package/list/lib/divider/list-divider-styles.scss +18 -0
- package/list/lib/divider/list-divider.d.ts +13 -0
- package/list/lib/divider/list-divider.js +30 -0
- package/list/lib/divider/list-divider.js.map +1 -0
- package/list/lib/icon/_list-item-icon-theme.scss +32 -0
- package/list/lib/icon/_list-item-icon.scss +35 -0
- package/list/lib/icon/list-item-icon-styles.css.d.ts +1 -0
- package/list/lib/icon/list-item-icon-styles.css.js +9 -0
- package/list/lib/icon/list-item-icon-styles.css.js.map +1 -0
- package/list/lib/icon/list-item-icon-styles.scss +20 -0
- package/list/lib/icon/list-item-icon.d.ts +12 -0
- package/list/lib/icon/list-item-icon.js +26 -0
- package/list/lib/icon/list-item-icon.js.map +1 -0
- package/list/lib/image/_list-item-image-theme.scss +36 -0
- package/list/lib/image/_list-item-image.scss +16 -0
- package/list/lib/image/list-item-image-styles.css.d.ts +1 -0
- package/list/lib/image/list-item-image-styles.css.js +9 -0
- package/list/lib/image/list-item-image-styles.css.js.map +1 -0
- package/list/lib/image/list-item-image-styles.scss +20 -0
- package/list/lib/image/list-item-image.d.ts +14 -0
- package/list/lib/image/list-item-image.js +37 -0
- package/list/lib/image/list-item-image.js.map +1 -0
- package/list/lib/list-styles.css.d.ts +1 -0
- package/list/lib/list-styles.css.js +9 -0
- package/list/lib/list-styles.css.js.map +1 -0
- package/list/lib/list-styles.scss +16 -0
- package/list/lib/list.d.ts +41 -0
- package/list/lib/list.js +168 -0
- package/list/lib/list.js.map +1 -0
- package/list/lib/listitem/_list-item-theme.scss +337 -0
- package/list/lib/listitem/_list-item.scss +133 -0
- package/list/lib/listitem/harness.d.ts +13 -0
- package/list/lib/listitem/harness.js +16 -0
- package/list/lib/listitem/harness.js.map +1 -0
- package/list/lib/listitem/list-item-styles.css.d.ts +1 -0
- package/list/lib/listitem/list-item-styles.css.js +9 -0
- package/list/lib/listitem/list-item-styles.css.js.map +1 -0
- package/list/lib/listitem/list-item-styles.scss +16 -0
- package/list/lib/listitem/list-item.d.ts +73 -0
- package/list/lib/listitem/list-item.js +258 -0
- package/list/lib/listitem/list-item.js.map +1 -0
- package/list/lib/video/_list-item-video-theme.scss +36 -0
- package/list/lib/video/_list-item-video.scss +18 -0
- package/list/lib/video/list-item-video-styles.css.d.ts +1 -0
- package/list/lib/video/list-item-video-styles.css.js +9 -0
- package/list/lib/video/list-item-video-styles.css.js.map +1 -0
- package/list/lib/video/list-item-video-styles.scss +20 -0
- package/list/lib/video/list-item-video.d.ts +14 -0
- package/list/lib/video/list-item-video.js +37 -0
- package/list/lib/video/list-item-video.js.map +1 -0
- package/list/list-divider.d.ts +19 -0
- package/list/list-divider.js +22 -0
- package/list/list-divider.js.map +1 -0
- package/list/list-item-avatar.d.ts +19 -0
- package/list/list-item-avatar.js +22 -0
- package/list/list-item-avatar.js.map +1 -0
- package/list/list-item-icon.d.ts +19 -0
- package/list/list-item-icon.js +22 -0
- package/list/list-item-icon.js.map +1 -0
- package/list/list-item-image.d.ts +19 -0
- package/list/list-item-image.js +22 -0
- package/list/list-item-image.js.map +1 -0
- package/list/list-item-video.d.ts +19 -0
- package/list/list-item-video.js +22 -0
- package/list/list-item-video.js.map +1 -0
- package/list/list-item.d.ts +19 -0
- package/list/list-item.js +22 -0
- package/list/list-item.js.map +1 -0
- package/list/list.d.ts +19 -0
- package/list/list.js +22 -0
- package/list/list.js.map +1 -0
- package/menu/harness.d.ts +15 -0
- package/menu/harness.js +17 -0
- package/menu/harness.js.map +1 -0
- package/menu/lib/_menu-button.scss +14 -0
- package/menu/lib/_menu-theme.scss +118 -0
- package/menu/lib/_menu.scss +8 -0
- package/menu/lib/adapter.d.ts +66 -0
- package/menu/lib/adapter.js +7 -0
- package/menu/lib/adapter.js.map +1 -0
- package/menu/lib/constants.d.ts +22 -0
- package/menu/lib/constants.js +23 -0
- package/menu/lib/constants.js.map +1 -0
- package/menu/lib/foundation.d.ts +49 -0
- package/menu/lib/foundation.js +123 -0
- package/menu/lib/foundation.js.map +1 -0
- package/menu/lib/menu-button-styles.css.d.ts +1 -0
- package/menu/lib/menu-button-styles.css.js +9 -0
- package/menu/lib/menu-button-styles.css.js.map +1 -0
- package/menu/lib/menu-button-styles.scss +9 -0
- package/menu/lib/menu-button.d.ts +27 -0
- package/menu/lib/menu-button.js +93 -0
- package/menu/lib/menu-button.js.map +1 -0
- package/menu/lib/menu-styles.css.d.ts +1 -0
- package/menu/lib/menu-styles.css.js +9 -0
- package/menu/lib/menu-styles.css.js.map +1 -0
- package/menu/lib/menu-styles.scss +17 -0
- package/menu/lib/menu.d.ts +62 -0
- package/menu/lib/menu.js +334 -0
- package/menu/lib/menu.js.map +1 -0
- package/menu/lib/menuitem/harness.d.ts +11 -0
- package/menu/lib/menuitem/harness.js +12 -0
- package/menu/lib/menuitem/harness.js.map +1 -0
- package/menu/lib/menuitem/menu-item.d.ts +11 -0
- package/menu/lib/menuitem/menu-item.js +14 -0
- package/menu/lib/menuitem/menu-item.js.map +1 -0
- package/menu/lib/types.d.ts +23 -0
- package/menu/lib/types.js +7 -0
- package/menu/lib/types.js.map +1 -0
- package/menu/menu-button.d.ts +14 -0
- package/menu/menu-button.js +17 -0
- package/menu/menu-button.js.map +1 -0
- package/menu/menu-item.d.ts +14 -0
- package/menu/menu-item.js +17 -0
- package/menu/menu-item.js.map +1 -0
- package/menu/menu.d.ts +14 -0
- package/menu/menu.js +17 -0
- package/menu/menu.js.map +1 -0
- package/menusurface/_menu-surface.scss +7 -0
- package/menusurface/lib/_menu-surface-theme.scss +58 -0
- package/menusurface/lib/_menu-surface.scss +85 -0
- package/menusurface/lib/adapter.d.ts +46 -0
- package/menusurface/lib/adapter.js +7 -0
- package/menusurface/lib/adapter.js.map +1 -0
- package/menusurface/lib/constants.d.ts +71 -0
- package/menusurface/lib/constants.js +83 -0
- package/menusurface/lib/constants.js.map +1 -0
- package/menusurface/lib/foundation.d.ts +176 -0
- package/menusurface/lib/foundation.js +544 -0
- package/menusurface/lib/foundation.js.map +1 -0
- package/menusurface/lib/menu-surface-styles.css.d.ts +1 -0
- package/menusurface/lib/menu-surface-styles.css.js +9 -0
- package/menusurface/lib/menu-surface-styles.css.js.map +1 -0
- package/menusurface/lib/menu-surface-styles.scss +16 -0
- package/menusurface/lib/menu-surface.d.ts +58 -0
- package/menusurface/lib/menu-surface.js +386 -0
- package/menusurface/lib/menu-surface.js.map +1 -0
- package/menusurface/lib/types.d.ts +19 -0
- package/menusurface/lib/types.js +7 -0
- package/menusurface/lib/types.js.map +1 -0
- package/menusurface/menu-surface.d.ts +14 -0
- package/menusurface/menu-surface.js +17 -0
- package/menusurface/menu-surface.js.map +1 -0
- package/motion/_animation.scss +33 -0
- package/motion/animation.d.ts +63 -0
- package/motion/animation.js +66 -0
- package/motion/animation.js.map +1 -0
- package/navigationbar/_navigation-bar.scss +7 -0
- package/navigationbar/harness.d.ts +19 -0
- package/navigationbar/harness.js +29 -0
- package/navigationbar/harness.js.map +1 -0
- package/navigationbar/lib/_navigation-bar-theme.scss +87 -0
- package/navigationbar/lib/_navigation-bar.scss +28 -0
- package/navigationbar/lib/constants.d.ts +17 -0
- package/navigationbar/lib/constants.js +7 -0
- package/navigationbar/lib/constants.js.map +1 -0
- package/navigationbar/lib/navigation-bar-styles.css.d.ts +1 -0
- package/navigationbar/lib/navigation-bar-styles.css.js +9 -0
- package/navigationbar/lib/navigation-bar-styles.css.js.map +1 -0
- package/navigationbar/lib/navigation-bar-styles.scss +20 -0
- package/navigationbar/lib/navigation-bar.d.ts +26 -0
- package/navigationbar/lib/navigation-bar.js +150 -0
- package/navigationbar/lib/navigation-bar.js.map +1 -0
- package/navigationbar/lib/state.d.ts +23 -0
- package/navigationbar/lib/state.js +7 -0
- package/navigationbar/lib/state.js.map +1 -0
- package/navigationbar/navigation-bar.d.ts +19 -0
- package/navigationbar/navigation-bar.js +22 -0
- package/navigationbar/navigation-bar.js.map +1 -0
- package/navigationdrawer/_navigation-drawer-modal.scss +6 -0
- package/navigationdrawer/_navigation-drawer.scss +6 -0
- package/navigationdrawer/lib/_navigation-drawer-modal-theme.scss +138 -0
- package/navigationdrawer/lib/_navigation-drawer-modal.scss +78 -0
- package/navigationdrawer/lib/_navigation-drawer-theme.scss +113 -0
- package/navigationdrawer/lib/_navigation-drawer.scss +64 -0
- package/navigationdrawer/lib/navigation-drawer-modal-styles.css.d.ts +1 -0
- package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js +9 -0
- package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js.map +1 -0
- package/navigationdrawer/lib/navigation-drawer-modal-styles.scss +12 -0
- package/navigationdrawer/lib/navigation-drawer-modal.d.ts +24 -0
- package/navigationdrawer/lib/navigation-drawer-modal.js +106 -0
- package/navigationdrawer/lib/navigation-drawer-modal.js.map +1 -0
- package/navigationdrawer/lib/navigation-drawer-styles.css.d.ts +1 -0
- package/navigationdrawer/lib/navigation-drawer-styles.css.js +9 -0
- package/navigationdrawer/lib/navigation-drawer-styles.css.js.map +1 -0
- package/navigationdrawer/lib/navigation-drawer-styles.scss +18 -0
- package/navigationdrawer/lib/navigation-drawer.d.ts +20 -0
- package/navigationdrawer/lib/navigation-drawer.js +87 -0
- package/navigationdrawer/lib/navigation-drawer.js.map +1 -0
- package/navigationdrawer/navigation-drawer-modal.d.ts +19 -0
- package/navigationdrawer/navigation-drawer-modal.js +22 -0
- package/navigationdrawer/navigation-drawer-modal.js.map +1 -0
- package/navigationdrawer/navigation-drawer.d.ts +19 -0
- package/navigationdrawer/navigation-drawer.js +22 -0
- package/navigationdrawer/navigation-drawer.js.map +1 -0
- package/navigationtab/_navigation-tab.scss +7 -0
- package/navigationtab/harness.d.ts +13 -0
- package/navigationtab/harness.js +16 -0
- package/navigationtab/harness.js.map +1 -0
- package/navigationtab/lib/_navigation-tab-theme.scss +343 -0
- package/navigationtab/lib/_navigation-tab.scss +127 -0
- package/navigationtab/lib/navigation-tab-styles.css.d.ts +1 -0
- package/navigationtab/lib/navigation-tab-styles.css.js +9 -0
- package/navigationtab/lib/navigation-tab-styles.css.js.map +1 -0
- package/navigationtab/lib/navigation-tab-styles.scss +21 -0
- package/navigationtab/lib/navigation-tab.d.ts +48 -0
- package/navigationtab/lib/navigation-tab.js +174 -0
- package/navigationtab/lib/navigation-tab.js.map +1 -0
- package/navigationtab/lib/state.d.ts +24 -0
- package/navigationtab/lib/state.js +7 -0
- package/navigationtab/lib/state.js.map +1 -0
- package/navigationtab/navigation-tab.d.ts +19 -0
- package/navigationtab/navigation-tab.js +22 -0
- package/navigationtab/navigation-tab.js.map +1 -0
- package/package.json +48 -0
- package/radio/_radio.scss +1 -0
- package/radio/harness.d.ts +13 -0
- package/radio/harness.js +16 -0
- package/radio/harness.js.map +1 -0
- package/radio/lib/_radio-theme.scss +376 -0
- package/radio/lib/_radio.scss +131 -0
- package/radio/lib/radio-styles.css.d.ts +1 -0
- package/radio/lib/radio-styles.css.js +9 -0
- package/radio/lib/radio-styles.css.js.map +1 -0
- package/radio/lib/radio-styles.scss +14 -0
- package/radio/lib/radio.d.ts +93 -0
- package/radio/lib/radio.js +302 -0
- package/radio/lib/radio.js.map +1 -0
- package/radio/lib/single-selection-controller.d.ts +167 -0
- package/radio/lib/single-selection-controller.js +289 -0
- package/radio/lib/single-selection-controller.js.map +1 -0
- package/radio/radio.d.ts +15 -0
- package/radio/radio.js +18 -0
- package/radio/radio.js.map +1 -0
- package/ripple/_index.scss +6 -0
- package/ripple/_ripple-theme.scss +6 -0
- package/ripple/lib/_ripple-theme.scss +98 -0
- package/ripple/lib/_ripple.scss +84 -0
- package/ripple/lib/ripple-styles.css.d.ts +1 -0
- package/ripple/lib/ripple-styles.css.js +9 -0
- package/ripple/lib/ripple-styles.css.js.map +1 -0
- package/ripple/lib/ripple-styles.scss +16 -0
- package/ripple/lib/ripple.d.ts +62 -0
- package/ripple/lib/ripple.js +215 -0
- package/ripple/lib/ripple.js.map +1 -0
- package/ripple/ripple.d.ts +19 -0
- package/ripple/ripple.js +22 -0
- package/ripple/ripple.js.map +1 -0
- package/sass/_assert.scss +16 -0
- package/sass/_color.scss +186 -0
- package/sass/_dom.scss +52 -0
- package/sass/_elevation.scss +155 -0
- package/sass/_feature-flags.scss +117 -0
- package/sass/_map-ext.scss +25 -0
- package/sass/_resolvers.scss +16 -0
- package/sass/_shape.scss +106 -0
- package/sass/_string-ext.scss +128 -0
- package/sass/_theme.scss +245 -0
- package/sass/_touch-target.scss +22 -0
- package/sass/_typography.scss +114 -0
- package/sass/_var.scss +241 -0
- package/segmentedbutton/lib/_outlined-segmented-button-theme.scss +167 -0
- package/segmentedbutton/lib/_outlined-segmented-button.scss +18 -0
- package/segmentedbutton/lib/_segmented-button-theme.scss +316 -0
- package/segmentedbutton/lib/_segmented-button.scss +159 -0
- package/segmentedbutton/lib/outlined-segmented-button.d.ts +15 -0
- package/segmentedbutton/lib/outlined-segmented-button.js +22 -0
- package/segmentedbutton/lib/outlined-segmented-button.js.map +1 -0
- package/segmentedbutton/lib/outlined-styles.css.d.ts +1 -0
- package/segmentedbutton/lib/outlined-styles.css.js +9 -0
- package/segmentedbutton/lib/outlined-styles.css.js.map +1 -0
- package/segmentedbutton/lib/outlined-styles.scss +17 -0
- package/segmentedbutton/lib/segmented-button-styles.css.d.ts +1 -0
- package/segmentedbutton/lib/segmented-button-styles.css.js +9 -0
- package/segmentedbutton/lib/segmented-button-styles.css.js.map +1 -0
- package/segmentedbutton/lib/segmented-button-styles.scss +8 -0
- package/segmentedbutton/lib/segmented-button.d.ts +60 -0
- package/segmentedbutton/lib/segmented-button.js +229 -0
- package/segmentedbutton/lib/segmented-button.js.map +1 -0
- package/segmentedbutton/outlined-segmented-button.d.ts +21 -0
- package/segmentedbutton/outlined-segmented-button.js +25 -0
- package/segmentedbutton/outlined-segmented-button.js.map +1 -0
- package/segmentedbuttonset/lib/_outlined-segmented-button-set-theme.scss +53 -0
- package/segmentedbuttonset/lib/_outlined-segmented-button-set.scss +12 -0
- package/segmentedbuttonset/lib/_segmented-button-set-theme.scss +41 -0
- package/segmentedbuttonset/lib/_segmented-button-set.scss +21 -0
- package/segmentedbuttonset/lib/outlined-segmented-button-set.d.ts +12 -0
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js +17 -0
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js.map +1 -0
- package/segmentedbuttonset/lib/outlined-styles.css.d.ts +1 -0
- package/segmentedbuttonset/lib/outlined-styles.css.js +9 -0
- package/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -0
- package/segmentedbuttonset/lib/outlined-styles.scss +17 -0
- package/segmentedbuttonset/lib/segmented-button-set.d.ts +34 -0
- package/segmentedbuttonset/lib/segmented-button-set.js +118 -0
- package/segmentedbuttonset/lib/segmented-button-set.js.map +1 -0
- package/segmentedbuttonset/lib/shared-styles.css.d.ts +1 -0
- package/segmentedbuttonset/lib/shared-styles.css.js +9 -0
- package/segmentedbuttonset/lib/shared-styles.css.js.map +1 -0
- package/segmentedbuttonset/lib/shared-styles.scss +8 -0
- package/segmentedbuttonset/outlined-segmented-button-set.d.ts +21 -0
- package/segmentedbuttonset/outlined-segmented-button-set.js +25 -0
- package/segmentedbuttonset/outlined-segmented-button-set.js.map +1 -0
- package/switch/_switch.scss +7 -0
- package/switch/harness.d.ts +13 -0
- package/switch/harness.js +16 -0
- package/switch/harness.js.map +1 -0
- package/switch/lib/_switch-handle-theme.scss +137 -0
- package/switch/lib/_switch-icon-theme.scss +52 -0
- package/switch/lib/_switch-theme.scss +232 -0
- package/switch/lib/_switch-track-theme.scss +117 -0
- package/switch/lib/_switch.scss +210 -0
- package/switch/lib/switch-styles.css.d.ts +1 -0
- package/switch/lib/switch-styles.css.js +9 -0
- package/switch/lib/switch-styles.css.js.map +1 -0
- package/switch/lib/switch-styles.scss +11 -0
- package/switch/lib/switch.d.ts +59 -0
- package/switch/lib/switch.js +223 -0
- package/switch/lib/switch.js.map +1 -0
- package/switch/switch.d.ts +19 -0
- package/switch/switch.js +22 -0
- package/switch/switch.js.map +1 -0
- package/textfield/_filled-text-field.scss +9 -0
- package/textfield/_outlined-text-field.scss +9 -0
- package/textfield/filled-text-field.d.ts +21 -0
- package/textfield/filled-text-field.js +31 -0
- package/textfield/filled-text-field.js.map +1 -0
- package/textfield/harness.d.ts +51 -0
- package/textfield/harness.js +118 -0
- package/textfield/harness.js.map +1 -0
- package/textfield/lib/_filled-text-field-theme.scss +203 -0
- package/textfield/lib/_icon-theme.scss +100 -0
- package/textfield/lib/_icon.scss +18 -0
- package/textfield/lib/_input-theme.scss +91 -0
- package/textfield/lib/_input.scss +38 -0
- package/textfield/lib/_outlined-text-field-theme.scss +186 -0
- package/textfield/lib/_text-field.scss +28 -0
- package/textfield/lib/filled-forced-colors-styles.css.d.ts +1 -0
- package/textfield/lib/filled-forced-colors-styles.css.js +9 -0
- package/textfield/lib/filled-forced-colors-styles.css.js.map +1 -0
- package/textfield/lib/filled-forced-colors-styles.scss +17 -0
- package/textfield/lib/filled-styles.css.d.ts +1 -0
- package/textfield/lib/filled-styles.css.js +9 -0
- package/textfield/lib/filled-styles.css.js.map +1 -0
- package/textfield/lib/filled-styles.scss +15 -0
- package/textfield/lib/filled-text-field.d.ts +12 -0
- package/textfield/lib/filled-text-field.js +17 -0
- package/textfield/lib/filled-text-field.js.map +1 -0
- package/textfield/lib/outlined-forced-colors-styles.css.d.ts +1 -0
- package/textfield/lib/outlined-forced-colors-styles.css.js +9 -0
- package/textfield/lib/outlined-forced-colors-styles.css.js.map +1 -0
- package/textfield/lib/outlined-forced-colors-styles.scss +17 -0
- package/textfield/lib/outlined-styles.css.d.ts +1 -0
- package/textfield/lib/outlined-styles.css.js +9 -0
- package/textfield/lib/outlined-styles.css.js.map +1 -0
- package/textfield/lib/outlined-styles.scss +15 -0
- package/textfield/lib/outlined-text-field.d.ts +12 -0
- package/textfield/lib/outlined-text-field.js +17 -0
- package/textfield/lib/outlined-text-field.js.map +1 -0
- package/textfield/lib/shared-styles.css.d.ts +1 -0
- package/textfield/lib/shared-styles.css.js +9 -0
- package/textfield/lib/shared-styles.css.js.map +1 -0
- package/textfield/lib/shared-styles.scss +12 -0
- package/textfield/lib/text-field.d.ts +319 -0
- package/textfield/lib/text-field.js +707 -0
- package/textfield/lib/text-field.js.map +1 -0
- package/textfield/outlined-text-field.d.ts +21 -0
- package/textfield/outlined-text-field.js +31 -0
- package/textfield/outlined-text-field.js.map +1 -0
- package/tokens/_index.scss +6 -0
- package/tokens/latest/_index.scss +186 -0
- package/tokens/latest/_md-comp-assist-chip.scss +98 -0
- package/tokens/latest/_md-comp-badge.scss +51 -0
- package/tokens/latest/_md-comp-banner.scss +99 -0
- package/tokens/latest/_md-comp-bottom-app-bar.scss +36 -0
- package/tokens/latest/_md-comp-checkbox.scss +119 -0
- package/tokens/latest/_md-comp-circular-progress-indicator.scss +37 -0
- package/tokens/latest/_md-comp-date-input-modal.scss +76 -0
- package/tokens/latest/_md-comp-date-picker-docked.scss +210 -0
- package/tokens/latest/_md-comp-date-picker-modal.scss +254 -0
- package/tokens/latest/_md-comp-dialog.scss +115 -0
- package/tokens/latest/_md-comp-divider.scss +25 -0
- package/tokens/latest/_md-comp-elevated-button.scss +83 -0
- package/tokens/latest/_md-comp-elevated-card.scss +59 -0
- package/tokens/latest/_md-comp-extended-fab-branded.scss +77 -0
- package/tokens/latest/_md-comp-extended-fab-primary.scss +80 -0
- package/tokens/latest/_md-comp-extended-fab-secondary.scss +83 -0
- package/tokens/latest/_md-comp-extended-fab-surface.scss +81 -0
- package/tokens/latest/_md-comp-extended-fab-tertiary.scss +80 -0
- package/tokens/latest/_md-comp-fab-branded-large.scss +59 -0
- package/tokens/latest/_md-comp-fab-branded.scss +58 -0
- package/tokens/latest/_md-comp-fab-primary-large.scss +61 -0
- package/tokens/latest/_md-comp-fab-primary-small.scss +61 -0
- package/tokens/latest/_md-comp-fab-primary.scss +61 -0
- package/tokens/latest/_md-comp-fab-secondary-large.scss +63 -0
- package/tokens/latest/_md-comp-fab-secondary-small.scss +62 -0
- package/tokens/latest/_md-comp-fab-secondary.scss +63 -0
- package/tokens/latest/_md-comp-fab-surface-large.scss +62 -0
- package/tokens/latest/_md-comp-fab-surface-small.scss +62 -0
- package/tokens/latest/_md-comp-fab-surface.scss +62 -0
- package/tokens/latest/_md-comp-fab-tertiary-large.scss +61 -0
- package/tokens/latest/_md-comp-fab-tertiary-small.scss +61 -0
- package/tokens/latest/_md-comp-fab-tertiary.scss +61 -0
- package/tokens/latest/_md-comp-filled-autocomplete.scss +235 -0
- package/tokens/latest/_md-comp-filled-button.scss +87 -0
- package/tokens/latest/_md-comp-filled-card.scss +59 -0
- package/tokens/latest/_md-comp-filled-icon-button.scss +72 -0
- package/tokens/latest/_md-comp-filled-menu-button.scss +89 -0
- package/tokens/latest/_md-comp-filled-select.scss +243 -0
- package/tokens/latest/_md-comp-filled-text-field.scss +146 -0
- package/tokens/latest/_md-comp-filled-tonal-button.scss +88 -0
- package/tokens/latest/_md-comp-filled-tonal-icon-button.scss +83 -0
- package/tokens/latest/_md-comp-filter-chip.scss +172 -0
- package/tokens/latest/_md-comp-full-screen-dialog.scss +131 -0
- package/tokens/latest/_md-comp-icon-button.scss +66 -0
- package/tokens/latest/_md-comp-input-chip.scss +112 -0
- package/tokens/latest/_md-comp-linear-progress-indicator.scss +39 -0
- package/tokens/latest/_md-comp-list.scss +205 -0
- package/tokens/latest/_md-comp-menu.scss +113 -0
- package/tokens/latest/_md-comp-navigation-bar.scss +97 -0
- package/tokens/latest/_md-comp-navigation-drawer.scss +137 -0
- package/tokens/latest/_md-comp-navigation-rail.scss +132 -0
- package/tokens/latest/_md-comp-outlined-autocomplete.scss +223 -0
- package/tokens/latest/_md-comp-outlined-button.scss +80 -0
- package/tokens/latest/_md-comp-outlined-card.scss +65 -0
- package/tokens/latest/_md-comp-outlined-icon-button.scss +68 -0
- package/tokens/latest/_md-comp-outlined-menu-button.scss +83 -0
- package/tokens/latest/_md-comp-outlined-segmented-button.scss +97 -0
- package/tokens/latest/_md-comp-outlined-select.scss +231 -0
- package/tokens/latest/_md-comp-outlined-text-field.scss +140 -0
- package/tokens/latest/_md-comp-plain-tooltip.scss +46 -0
- package/tokens/latest/_md-comp-primary-navigation-tab.scss +110 -0
- package/tokens/latest/_md-comp-radio-button.scss +58 -0
- package/tokens/latest/_md-comp-rich-tooltip.scss +98 -0
- package/tokens/latest/_md-comp-search-bar.scss +84 -0
- package/tokens/latest/_md-comp-search-view.scss +79 -0
- package/tokens/latest/_md-comp-secondary-navigation-tab.scss +78 -0
- package/tokens/latest/_md-comp-sheet-bottom.scss +41 -0
- package/tokens/latest/_md-comp-sheet-floating.scss +34 -0
- package/tokens/latest/_md-comp-sheet-side.scss +75 -0
- package/tokens/latest/_md-comp-slider.scss +105 -0
- package/tokens/latest/_md-comp-snackbar.scss +91 -0
- package/tokens/latest/_md-comp-standard-menu-button.scss +82 -0
- package/tokens/latest/_md-comp-suggestion-chip.scss +90 -0
- package/tokens/latest/_md-comp-switch.scss +126 -0
- package/tokens/latest/_md-comp-text-button.scss +75 -0
- package/tokens/latest/_md-comp-time-input.scss +184 -0
- package/tokens/latest/_md-comp-time-picker.scss +235 -0
- package/tokens/latest/_md-comp-top-app-bar-large.scss +57 -0
- package/tokens/latest/_md-comp-top-app-bar-medium.scss +56 -0
- package/tokens/latest/_md-comp-top-app-bar-small-centered.scss +60 -0
- package/tokens/latest/_md-comp-top-app-bar-small.scss +58 -0
- package/tokens/latest/_md-ref-palette.scss +95 -0
- package/tokens/latest/_md-ref-typeface.scss +20 -0
- package/tokens/latest/_md-sys-color.scss +1006 -0
- package/tokens/latest/_md-sys-elevation.scss +30 -0
- package/tokens/latest/_md-sys-motion.scss +51 -0
- package/tokens/latest/_md-sys-shape.scss +26 -0
- package/tokens/latest/_md-sys-state.scss +19 -0
- package/tokens/latest/_md-sys-typescale.scss +204 -0
- package/tokens/v0_75/_index.scss +154 -0
- package/tokens/v0_75/_md-comp-assist-chip.scss +98 -0
- package/tokens/v0_75/_md-comp-badge.scss +51 -0
- package/tokens/v0_75/_md-comp-banner.scss +99 -0
- package/tokens/v0_75/_md-comp-bottom-app-bar.scss +36 -0
- package/tokens/v0_75/_md-comp-checkbox.scss +59 -0
- package/tokens/v0_75/_md-comp-circular-progress-indicator.scss +37 -0
- package/tokens/v0_75/_md-comp-dialog.scss +102 -0
- package/tokens/v0_75/_md-comp-elevated-button.scss +83 -0
- package/tokens/v0_75/_md-comp-elevated-card.scss +56 -0
- package/tokens/v0_75/_md-comp-extended-fab-branded.scss +77 -0
- package/tokens/v0_75/_md-comp-extended-fab-primary.scss +80 -0
- package/tokens/v0_75/_md-comp-extended-fab-secondary.scss +83 -0
- package/tokens/v0_75/_md-comp-extended-fab-surface.scss +81 -0
- package/tokens/v0_75/_md-comp-extended-fab-tertiary.scss +80 -0
- package/tokens/v0_75/_md-comp-fab-branded-large.scss +59 -0
- package/tokens/v0_75/_md-comp-fab-branded.scss +58 -0
- package/tokens/v0_75/_md-comp-fab-primary-large.scss +61 -0
- package/tokens/v0_75/_md-comp-fab-primary-small.scss +61 -0
- package/tokens/v0_75/_md-comp-fab-primary.scss +61 -0
- package/tokens/v0_75/_md-comp-fab-secondary-large.scss +63 -0
- package/tokens/v0_75/_md-comp-fab-secondary-small.scss +62 -0
- package/tokens/v0_75/_md-comp-fab-secondary.scss +63 -0
- package/tokens/v0_75/_md-comp-fab-surface-large.scss +62 -0
- package/tokens/v0_75/_md-comp-fab-surface-small.scss +62 -0
- package/tokens/v0_75/_md-comp-fab-surface.scss +62 -0
- package/tokens/v0_75/_md-comp-fab-tertiary-large.scss +61 -0
- package/tokens/v0_75/_md-comp-fab-tertiary-small.scss +61 -0
- package/tokens/v0_75/_md-comp-fab-tertiary.scss +61 -0
- package/tokens/v0_75/_md-comp-filled-button-tonal.scss +84 -0
- package/tokens/v0_75/_md-comp-filled-button.scss +87 -0
- package/tokens/v0_75/_md-comp-filled-card.scss +56 -0
- package/tokens/v0_75/_md-comp-filled-icon-button.scss +72 -0
- package/tokens/v0_75/_md-comp-filled-text-field.scss +142 -0
- package/tokens/v0_75/_md-comp-filled-tonal-button.scss +88 -0
- package/tokens/v0_75/_md-comp-filled-tonal-icon-button.scss +83 -0
- package/tokens/v0_75/_md-comp-filter-chip.scss +172 -0
- package/tokens/v0_75/_md-comp-full-screen-dialog.scss +131 -0
- package/tokens/v0_75/_md-comp-icon-button.scss +79 -0
- package/tokens/v0_75/_md-comp-input-chip.scss +112 -0
- package/tokens/v0_75/_md-comp-linear-progress-indicator.scss +39 -0
- package/tokens/v0_75/_md-comp-list.scss +205 -0
- package/tokens/v0_75/_md-comp-menu.scss +113 -0
- package/tokens/v0_75/_md-comp-navigation-bar.scss +131 -0
- package/tokens/v0_75/_md-comp-navigation-drawer.scss +137 -0
- package/tokens/v0_75/_md-comp-navigation-rail.scss +136 -0
- package/tokens/v0_75/_md-comp-outlined-button.scss +80 -0
- package/tokens/v0_75/_md-comp-outlined-card.scss +62 -0
- package/tokens/v0_75/_md-comp-outlined-icon-button.scss +68 -0
- package/tokens/v0_75/_md-comp-outlined-segmented-button.scss +96 -0
- package/tokens/v0_75/_md-comp-outlined-text-field.scss +136 -0
- package/tokens/v0_75/_md-comp-primary-navigation-tab.scss +116 -0
- package/tokens/v0_75/_md-comp-radio-button.scss +58 -0
- package/tokens/v0_75/_md-comp-rich-tooltip.scss +98 -0
- package/tokens/v0_75/_md-comp-secondary-navigation-tab.scss +75 -0
- package/tokens/v0_75/_md-comp-slider.scss +129 -0
- package/tokens/v0_75/_md-comp-snackbar.scss +77 -0
- package/tokens/v0_75/_md-comp-suggestion-chip.scss +90 -0
- package/tokens/v0_75/_md-comp-switch.scss +92 -0
- package/tokens/v0_75/_md-comp-text-button.scss +75 -0
- package/tokens/v0_75/_md-comp-top-app-bar-compact-centered.scss +53 -0
- package/tokens/v0_75/_md-comp-top-app-bar-compact.scss +43 -0
- package/tokens/v0_75/_md-comp-top-app-bar-large.scss +57 -0
- package/tokens/v0_75/_md-comp-top-app-bar-medium.scss +56 -0
- package/tokens/v0_75/_md-comp-top-app-bar-small-centered.scss +60 -0
- package/tokens/v0_75/_md-comp-top-app-bar-small.scss +58 -0
- package/tokens/v0_75/_md-ref-palette.scss +186 -0
- package/tokens/v0_75/_md-ref-typeface.scss +25 -0
- package/tokens/v0_75/_md-sys-color.scss +86 -0
- package/tokens/v0_75/_md-sys-elevation.scss +30 -0
- package/tokens/v0_75/_md-sys-motion.scss +61 -0
- package/tokens/v0_75/_md-sys-shape.scss +29 -0
- package/tokens/v0_75/_md-sys-state.scss +19 -0
- package/tokens/v0_75/_md-sys-typescale.scss +252 -0
- package/tokens/v0_93/_index.scss +184 -0
- package/tokens/v0_93/_md-comp-assist-chip.scss +98 -0
- package/tokens/v0_93/_md-comp-badge.scss +51 -0
- package/tokens/v0_93/_md-comp-banner.scss +99 -0
- package/tokens/v0_93/_md-comp-bottom-app-bar.scss +36 -0
- package/tokens/v0_93/_md-comp-checkbox.scss +119 -0
- package/tokens/v0_93/_md-comp-circular-progress-indicator.scss +37 -0
- package/tokens/v0_93/_md-comp-date-input-modal.scss +76 -0
- package/tokens/v0_93/_md-comp-date-picker-docked.scss +210 -0
- package/tokens/v0_93/_md-comp-date-picker-modal.scss +254 -0
- package/tokens/v0_93/_md-comp-dialog.scss +101 -0
- package/tokens/v0_93/_md-comp-divider.scss +25 -0
- package/tokens/v0_93/_md-comp-elevated-button.scss +83 -0
- package/tokens/v0_93/_md-comp-elevated-card.scss +59 -0
- package/tokens/v0_93/_md-comp-extended-fab-branded.scss +77 -0
- package/tokens/v0_93/_md-comp-extended-fab-primary.scss +80 -0
- package/tokens/v0_93/_md-comp-extended-fab-secondary.scss +83 -0
- package/tokens/v0_93/_md-comp-extended-fab-surface.scss +81 -0
- package/tokens/v0_93/_md-comp-extended-fab-tertiary.scss +80 -0
- package/tokens/v0_93/_md-comp-fab-branded-large.scss +59 -0
- package/tokens/v0_93/_md-comp-fab-branded.scss +58 -0
- package/tokens/v0_93/_md-comp-fab-primary-large.scss +61 -0
- package/tokens/v0_93/_md-comp-fab-primary-small.scss +61 -0
- package/tokens/v0_93/_md-comp-fab-primary.scss +61 -0
- package/tokens/v0_93/_md-comp-fab-secondary-large.scss +63 -0
- package/tokens/v0_93/_md-comp-fab-secondary-small.scss +62 -0
- package/tokens/v0_93/_md-comp-fab-secondary.scss +63 -0
- package/tokens/v0_93/_md-comp-fab-surface-large.scss +62 -0
- package/tokens/v0_93/_md-comp-fab-surface-small.scss +62 -0
- package/tokens/v0_93/_md-comp-fab-surface.scss +62 -0
- package/tokens/v0_93/_md-comp-fab-tertiary-large.scss +61 -0
- package/tokens/v0_93/_md-comp-fab-tertiary-small.scss +61 -0
- package/tokens/v0_93/_md-comp-fab-tertiary.scss +61 -0
- package/tokens/v0_93/_md-comp-filled-autocomplete.scss +235 -0
- package/tokens/v0_93/_md-comp-filled-button.scss +87 -0
- package/tokens/v0_93/_md-comp-filled-card.scss +59 -0
- package/tokens/v0_93/_md-comp-filled-icon-button.scss +72 -0
- package/tokens/v0_93/_md-comp-filled-menu-button.scss +89 -0
- package/tokens/v0_93/_md-comp-filled-select.scss +243 -0
- package/tokens/v0_93/_md-comp-filled-text-field.scss +146 -0
- package/tokens/v0_93/_md-comp-filled-tonal-button.scss +88 -0
- package/tokens/v0_93/_md-comp-filled-tonal-icon-button.scss +83 -0
- package/tokens/v0_93/_md-comp-filter-chip.scss +172 -0
- package/tokens/v0_93/_md-comp-full-screen-dialog.scss +131 -0
- package/tokens/v0_93/_md-comp-icon-button.scss +66 -0
- package/tokens/v0_93/_md-comp-input-chip.scss +112 -0
- package/tokens/v0_93/_md-comp-linear-progress-indicator.scss +39 -0
- package/tokens/v0_93/_md-comp-list.scss +205 -0
- package/tokens/v0_93/_md-comp-menu.scss +113 -0
- package/tokens/v0_93/_md-comp-navigation-bar.scss +97 -0
- package/tokens/v0_93/_md-comp-navigation-drawer.scss +137 -0
- package/tokens/v0_93/_md-comp-navigation-rail.scss +132 -0
- package/tokens/v0_93/_md-comp-outlined-autocomplete.scss +223 -0
- package/tokens/v0_93/_md-comp-outlined-button.scss +80 -0
- package/tokens/v0_93/_md-comp-outlined-card.scss +65 -0
- package/tokens/v0_93/_md-comp-outlined-icon-button.scss +68 -0
- package/tokens/v0_93/_md-comp-outlined-menu-button.scss +83 -0
- package/tokens/v0_93/_md-comp-outlined-segmented-button.scss +97 -0
- package/tokens/v0_93/_md-comp-outlined-select.scss +231 -0
- package/tokens/v0_93/_md-comp-outlined-text-field.scss +140 -0
- package/tokens/v0_93/_md-comp-plain-tooltip.scss +46 -0
- package/tokens/v0_93/_md-comp-primary-navigation-tab.scss +110 -0
- package/tokens/v0_93/_md-comp-radio-button.scss +58 -0
- package/tokens/v0_93/_md-comp-rich-tooltip.scss +98 -0
- package/tokens/v0_93/_md-comp-search-bar.scss +84 -0
- package/tokens/v0_93/_md-comp-search-view.scss +79 -0
- package/tokens/v0_93/_md-comp-secondary-navigation-tab.scss +78 -0
- package/tokens/v0_93/_md-comp-sheet-bottom.scss +41 -0
- package/tokens/v0_93/_md-comp-sheet-side.scss +75 -0
- package/tokens/v0_93/_md-comp-slider.scss +105 -0
- package/tokens/v0_93/_md-comp-snackbar.scss +91 -0
- package/tokens/v0_93/_md-comp-standard-menu-button.scss +82 -0
- package/tokens/v0_93/_md-comp-suggestion-chip.scss +90 -0
- package/tokens/v0_93/_md-comp-switch.scss +126 -0
- package/tokens/v0_93/_md-comp-text-button.scss +75 -0
- package/tokens/v0_93/_md-comp-time-input.scss +184 -0
- package/tokens/v0_93/_md-comp-time-picker.scss +235 -0
- package/tokens/v0_93/_md-comp-top-app-bar-large.scss +57 -0
- package/tokens/v0_93/_md-comp-top-app-bar-medium.scss +56 -0
- package/tokens/v0_93/_md-comp-top-app-bar-small-centered.scss +60 -0
- package/tokens/v0_93/_md-comp-top-app-bar-small.scss +58 -0
- package/tokens/v0_93/_md-ref-palette.scss +95 -0
- package/tokens/v0_93/_md-ref-typeface.scss +20 -0
- package/tokens/v0_93/_md-sys-color.scss +1006 -0
- package/tokens/v0_93/_md-sys-elevation.scss +30 -0
- package/tokens/v0_93/_md-sys-motion.scss +51 -0
- package/tokens/v0_93/_md-sys-shape.scss +26 -0
- package/tokens/v0_93/_md-sys-state.scss +19 -0
- package/tokens/v0_93/_md-sys-typescale.scss +204 -0
- package/types/aria.d.ts +48 -0
- package/types/keys.d.ts +57 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @requirecss {field.lib.shared_styles}
|
|
3
|
+
*
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2021 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*/
|
|
8
|
+
import { __decorate, __metadata } from "tslib";
|
|
9
|
+
import { createAnimationSignal, Easing } from '@material/web/motion/animation.js';
|
|
10
|
+
import { html, LitElement } from 'lit';
|
|
11
|
+
import { property, queryAsync, state } from 'lit/decorators.js';
|
|
12
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
13
|
+
/** @soyCompatible */
|
|
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.populated = false;
|
|
21
|
+
this.required = false;
|
|
22
|
+
/**
|
|
23
|
+
* Whether or not the field has leading content.
|
|
24
|
+
*/
|
|
25
|
+
this.hasStart = false;
|
|
26
|
+
/**
|
|
27
|
+
* Whether or not the field has trailing content.
|
|
28
|
+
*/
|
|
29
|
+
this.hasEnd = false;
|
|
30
|
+
this.isAnimating = false;
|
|
31
|
+
this.labelAnimationSignal = createAnimationSignal();
|
|
32
|
+
}
|
|
33
|
+
/** @soyTemplate */
|
|
34
|
+
render() {
|
|
35
|
+
return html `
|
|
36
|
+
<span class="md3-field ${classMap(this.getRenderClasses())}">
|
|
37
|
+
${this.renderContainer()}
|
|
38
|
+
${this.renderSupportingText()}
|
|
39
|
+
</span>
|
|
40
|
+
`;
|
|
41
|
+
}
|
|
42
|
+
/** @soyTemplate */
|
|
43
|
+
renderContainer() {
|
|
44
|
+
return html `
|
|
45
|
+
<span class="md3-field__container">
|
|
46
|
+
${this.renderContainerContents()}
|
|
47
|
+
</span>
|
|
48
|
+
`;
|
|
49
|
+
}
|
|
50
|
+
/** @soyTemplate */
|
|
51
|
+
getRenderClasses() {
|
|
52
|
+
return {
|
|
53
|
+
'md3-field--disabled': this.disabled,
|
|
54
|
+
'md3-field--error': this.error,
|
|
55
|
+
'md3-field--focused': this.focused,
|
|
56
|
+
'md3-field--with-start': this.hasStart,
|
|
57
|
+
'md3-field--with-end': this.hasEnd,
|
|
58
|
+
'md3-field--populated': this.populated,
|
|
59
|
+
'md3-field--required': this.required,
|
|
60
|
+
'md3-field--no-label': !this.label,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/** @soyTemplate */
|
|
64
|
+
renderContainerContents() {
|
|
65
|
+
return html `
|
|
66
|
+
<span class="md3-field__start">
|
|
67
|
+
<slot name="start"></slot>
|
|
68
|
+
</span>
|
|
69
|
+
<span class="md3-field__middle">${this.renderMiddleContents()}</span>
|
|
70
|
+
<span class="md3-field__end">
|
|
71
|
+
<slot name="end"></slot>
|
|
72
|
+
</span>
|
|
73
|
+
`;
|
|
74
|
+
}
|
|
75
|
+
/** @soyTemplate */
|
|
76
|
+
renderMiddleContents() {
|
|
77
|
+
return html `
|
|
78
|
+
<span class="md3-field__content"><slot></slot></span>
|
|
79
|
+
`;
|
|
80
|
+
}
|
|
81
|
+
/** @soyTemplate */
|
|
82
|
+
renderFloatingLabel() {
|
|
83
|
+
const visible = (this.focused || this.populated) && !this.isAnimating;
|
|
84
|
+
/** @classMap */
|
|
85
|
+
const classes = { 'md3-field__label--hidden': !visible };
|
|
86
|
+
return html `
|
|
87
|
+
<span class="md3-field__label md3-field__label--floating ${classMap(classes)}"
|
|
88
|
+
aria-hidden=${!visible}
|
|
89
|
+
>${this.renderLabelText()}</span>
|
|
90
|
+
`;
|
|
91
|
+
// TODO(b/217441842): Create shared function once argument bug is fixed
|
|
92
|
+
// return this.renderLabel(LabelType.FLOATING);
|
|
93
|
+
}
|
|
94
|
+
/** @soyTemplate */
|
|
95
|
+
renderRestingLabel() {
|
|
96
|
+
const visible = !(this.focused || this.populated) || this.isAnimating;
|
|
97
|
+
/** @classMap */
|
|
98
|
+
const classes = { 'md3-field__label--hidden': !visible };
|
|
99
|
+
return html `
|
|
100
|
+
<span class="md3-field__label md3-field__label--resting ${classMap(classes)}"
|
|
101
|
+
aria-hidden=${!visible}
|
|
102
|
+
>${this.renderLabelText()}</span>
|
|
103
|
+
`;
|
|
104
|
+
// TODO(b/217441842): Create shared function once argument bug is fixed
|
|
105
|
+
// return this.renderLabel(LabelType.RESTING);
|
|
106
|
+
}
|
|
107
|
+
/** @soyTemplate */
|
|
108
|
+
renderLabelText() {
|
|
109
|
+
const labelText = this.label ?? '';
|
|
110
|
+
const optionalAsterisk = this.required && labelText ? '*' : '';
|
|
111
|
+
return labelText + optionalAsterisk;
|
|
112
|
+
}
|
|
113
|
+
/** @soyTemplate */
|
|
114
|
+
renderSupportingText() {
|
|
115
|
+
return html `
|
|
116
|
+
<span class="md3-field__supporting-text">
|
|
117
|
+
<span class="md3-field__supporting-text-start">
|
|
118
|
+
<slot name="supporting-text"></slot>
|
|
119
|
+
</span>
|
|
120
|
+
<span class="md3-field__supporting-text-end">
|
|
121
|
+
<slot name="supporting-text-end"></slot>
|
|
122
|
+
</span>
|
|
123
|
+
</span>
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
update(props) {
|
|
127
|
+
// Client-side property updates
|
|
128
|
+
// When disabling, remove focus styles if focused.
|
|
129
|
+
if (this.disabled && this.focused) {
|
|
130
|
+
props.set('focused', true);
|
|
131
|
+
this.focused = false;
|
|
132
|
+
}
|
|
133
|
+
// Animate if focused or populated change.
|
|
134
|
+
this.animateLabelIfNeeded({
|
|
135
|
+
wasFocused: props.get('focused'),
|
|
136
|
+
wasPopulated: props.get('populated')
|
|
137
|
+
});
|
|
138
|
+
super.update(props);
|
|
139
|
+
}
|
|
140
|
+
async animateLabelIfNeeded({ wasFocused, wasPopulated }) {
|
|
141
|
+
if (!this.label) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
wasFocused ?? (wasFocused = this.focused);
|
|
145
|
+
wasPopulated ?? (wasPopulated = this.populated);
|
|
146
|
+
const wasFloating = wasFocused || wasPopulated;
|
|
147
|
+
const shouldBeFloating = this.focused || this.populated;
|
|
148
|
+
if (wasFloating === shouldBeFloating) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
this.isAnimating = true;
|
|
152
|
+
const signal = this.labelAnimationSignal.start();
|
|
153
|
+
// Only one label is visible at a time for clearer text rendering.
|
|
154
|
+
// The resting label is visible and used during animation. At the end of the
|
|
155
|
+
// animation, it will either remain visible (if resting) or hide and the
|
|
156
|
+
// floating label will be shown.
|
|
157
|
+
const labelEl = await this.restingLabelEl;
|
|
158
|
+
const keyframes = await this.getLabelKeyframes();
|
|
159
|
+
if (signal.aborted) {
|
|
160
|
+
// Don't animate if this animation was requested to stop while getting
|
|
161
|
+
// the label element or calculating keyframes
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
// We don't use forward filling because if the dimensions of the text field
|
|
165
|
+
// change (leading icon removed, density changes, etc), then the animation
|
|
166
|
+
// will be inaccurate.
|
|
167
|
+
//
|
|
168
|
+
// Re-calculating the animation each time will prevent any visual glitches
|
|
169
|
+
// from appearing.
|
|
170
|
+
// TODO(b/241113345): use animation tokens
|
|
171
|
+
const animation = labelEl.animate(keyframes, { duration: 150, easing: Easing.STANDARD });
|
|
172
|
+
signal.addEventListener('abort', () => {
|
|
173
|
+
// Cancel if requested (another animation starts playing).
|
|
174
|
+
animation.cancel();
|
|
175
|
+
});
|
|
176
|
+
animation.addEventListener('finish', () => {
|
|
177
|
+
// At the end of the animation, update the visible label.
|
|
178
|
+
this.isAnimating = false;
|
|
179
|
+
this.labelAnimationSignal.finish();
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
async getLabelKeyframes() {
|
|
183
|
+
const floatingLabelEl = await this.floatingLabelEl;
|
|
184
|
+
const restingLabelEl = await this.restingLabelEl;
|
|
185
|
+
const { x: floatingX, y: floatingY, width: floatingWidth, height: floatingHeight } = floatingLabelEl.getBoundingClientRect();
|
|
186
|
+
const { x: restingX, y: restingY, width: restingWidth, height: restingHeight } = restingLabelEl.getBoundingClientRect();
|
|
187
|
+
// Scale by width ratio instead of font size since letter-spacing will scale
|
|
188
|
+
// incorrectly. Using the width we can better approximate the adjusted
|
|
189
|
+
// scale and compensate for tracking.
|
|
190
|
+
const scale = floatingWidth / restingWidth;
|
|
191
|
+
const xDelta = floatingX - restingX;
|
|
192
|
+
// The line-height of the resting and floating label are different. When
|
|
193
|
+
// we move the resting label up to the floating label's position, it won't
|
|
194
|
+
// exactly match because of this. We need to adjust by half of what the
|
|
195
|
+
// final scaled resting label's height will be.
|
|
196
|
+
const yDelta = floatingY - restingY +
|
|
197
|
+
Math.round((floatingHeight - restingHeight * scale) / 2);
|
|
198
|
+
// Create the two transforms: resting to floating (using the calculations
|
|
199
|
+
// above), and floating to resting (re-setting the transform to initial
|
|
200
|
+
// values).
|
|
201
|
+
const floatTransform = `translateX(${xDelta}px) translateY(calc(-50% + ${yDelta}px)) scale(${scale})`;
|
|
202
|
+
const restTransform = `translateX(0) translateY(-50%) scale(1)`;
|
|
203
|
+
if (this.focused || this.populated) {
|
|
204
|
+
return [{ transform: restTransform }, { transform: floatTransform }];
|
|
205
|
+
}
|
|
206
|
+
return [{ transform: floatTransform }, { transform: restTransform }];
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
__decorate([
|
|
210
|
+
property({ type: Boolean }),
|
|
211
|
+
__metadata("design:type", Object)
|
|
212
|
+
], Field.prototype, "disabled", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
property({ type: Boolean }),
|
|
215
|
+
__metadata("design:type", Object)
|
|
216
|
+
], Field.prototype, "error", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
property({ type: Boolean }),
|
|
219
|
+
__metadata("design:type", Object)
|
|
220
|
+
], Field.prototype, "focused", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
property({ type: String }),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], Field.prototype, "label", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
property({ type: Boolean }),
|
|
227
|
+
__metadata("design:type", Object)
|
|
228
|
+
], Field.prototype, "populated", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
property({ type: Boolean }),
|
|
231
|
+
__metadata("design:type", Object)
|
|
232
|
+
], Field.prototype, "required", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
property({ type: Boolean }),
|
|
235
|
+
__metadata("design:type", Object)
|
|
236
|
+
], Field.prototype, "hasStart", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
property({ type: Boolean }),
|
|
239
|
+
__metadata("design:type", Object)
|
|
240
|
+
], Field.prototype, "hasEnd", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
state(),
|
|
243
|
+
__metadata("design:type", Object)
|
|
244
|
+
], Field.prototype, "isAnimating", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
queryAsync('.md3-field__label--floating'),
|
|
247
|
+
__metadata("design:type", Promise)
|
|
248
|
+
], Field.prototype, "floatingLabelEl", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
queryAsync('.md3-field__label--resting'),
|
|
251
|
+
__metadata("design:type", Promise)
|
|
252
|
+
], Field.prototype, "restingLabelEl", void 0);
|
|
253
|
+
//# sourceMappingURL=field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.js","sourceRoot":"","sources":["field.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAC,qBAAqB,EAAE,MAAM,EAAC,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAC,IAAI,EAAE,UAAU,EAAiC,MAAM,KAAK,CAAC;AACrE,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAY,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAEhE,qBAAqB;AACrB,MAAM,OAAO,KAAM,SAAQ,UAAU;IAArC;;QAC6B,aAAQ,GAAG,KAAK,CAAC;QACjB,UAAK,GAAG,KAAK,CAAC;QACd,YAAO,GAAG,KAAK,CAAC;QAEhB,cAAS,GAAG,KAAK,CAAC;QAClB,aAAQ,GAAG,KAAK,CAAC;QAE5C;;WAEG;QACwB,aAAQ,GAAG,KAAK,CAAC;QAC5C;;WAEG;QACwB,WAAM,GAAG,KAAK,CAAC;QAEvB,gBAAW,GAAG,KAAK,CAAC;QAEpB,yBAAoB,GAAG,qBAAqB,EAAE,CAAC;IAgOpE,CAAC;IAzNC,mBAAmB;IACV,MAAM;QACb,OAAO,IAAI,CAAA;+BACgB,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;UACtD,IAAI,CAAC,eAAe,EAAE;UACtB,IAAI,CAAC,oBAAoB,EAAE;;KAEhC,CAAC;IACJ,CAAC;IAED,mBAAmB;IACT,eAAe;QACvB,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,uBAAuB,EAAE;;KAEnC,CAAC;IACJ,CAAC;IAED,mBAAmB;IACT,gBAAgB;QACxB,OAAO;YACL,qBAAqB,EAAE,IAAI,CAAC,QAAQ;YACpC,kBAAkB,EAAE,IAAI,CAAC,KAAK;YAC9B,oBAAoB,EAAE,IAAI,CAAC,OAAO;YAClC,uBAAuB,EAAE,IAAI,CAAC,QAAQ;YACtC,qBAAqB,EAAE,IAAI,CAAC,MAAM;YAClC,sBAAsB,EAAE,IAAI,CAAC,SAAS;YACtC,qBAAqB,EAAE,IAAI,CAAC,QAAQ;YACpC,qBAAqB,EAAE,CAAC,IAAI,CAAC,KAAK;SACnC,CAAC;IACJ,CAAC;IAED,mBAAmB;IACT,uBAAuB;QAC/B,OAAO,IAAI,CAAA;;;;wCAIyB,IAAI,CAAC,oBAAoB,EAAE;;;;KAI9D,CAAC;IACJ,CAAC;IAED,mBAAmB;IACT,oBAAoB;QAC5B,OAAO,IAAI,CAAA;;KAEV,CAAC;IACJ,CAAC;IAED,mBAAmB;IACT,mBAAmB;QAC3B,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;QACtE,gBAAgB;QAChB,MAAM,OAAO,GAAG,EAAC,0BAA0B,EAAE,CAAC,OAAO,EAAC,CAAC;QACvD,OAAO,IAAI,CAAA;iEAEP,QAAQ,CAAC,OAAO,CAAC;sBACH,CAAC,OAAO;SACrB,IAAI,CAAC,eAAe,EAAE;KAC1B,CAAC;QAEF,uEAAuE;QACvE,+CAA+C;IACjD,CAAC;IAED,mBAAmB;IACT,kBAAkB;QAC1B,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC;QACtE,gBAAgB;QAChB,MAAM,OAAO,GAAG,EAAC,0BAA0B,EAAE,CAAC,OAAO,EAAC,CAAC;QACvD,OAAO,IAAI,CAAA;gEAEP,QAAQ,CAAC,OAAO,CAAC;sBACH,CAAC,OAAO;SACrB,IAAI,CAAC,eAAe,EAAE;KAC1B,CAAC;QAEF,uEAAuE;QACvE,8CAA8C;IAChD,CAAC;IAED,mBAAmB;IACT,eAAe;QACvB,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACnC,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,OAAO,SAAS,GAAG,gBAAgB,CAAC;IACtC,CAAC;IAED,mBAAmB;IACT,oBAAoB;QAC5B,OAAO,IAAI,CAAA;;;;;;;;;KASV,CAAC;IACJ,CAAC;IAEkB,MAAM,CAAC,KAA4B;QACpD,+BAA+B;QAE/B,kDAAkD;QAClD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,EAAE;YACjC,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAC3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;SACtB;QAED,0CAA0C;QAC1C,IAAI,CAAC,oBAAoB,CAAC;YACxB,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC;YAChC,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC;SACrC,CAAC,CAAC;QAEH,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAES,KAAK,CAAC,oBAAoB,CAAC,EAAC,UAAU,EAAE,YAAY,EAG7D;QACC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,OAAO;SACR;QAED,UAAU,KAAV,UAAU,GAAK,IAAI,CAAC,OAAO,EAAC;QAC5B,YAAY,KAAZ,YAAY,GAAK,IAAI,CAAC,SAAS,EAAC;QAChC,MAAM,WAAW,GAAG,UAAU,IAAI,YAAY,CAAC;QAC/C,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC;QACxD,IAAI,WAAW,KAAK,gBAAgB,EAAE;YACpC,OAAO;SACR;QAED,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAC;QAEjD,kEAAkE;QAClE,4EAA4E;QAC5E,wEAAwE;QACxE,gCAAgC;QAChC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC;QAC1C,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACjD,IAAI,MAAM,CAAC,OAAO,EAAE;YAClB,sEAAsE;YACtE,6CAA6C;YAC7C,OAAO;SACR;QAED,2EAA2E;QAC3E,0EAA0E;QAC1E,sBAAsB;QACtB,EAAE;QACF,0EAA0E;QAC1E,kBAAkB;QAClB,0CAA0C;QAC1C,MAAM,SAAS,GACX,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAC,CAAC,CAAC;QAEzE,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YACpC,0DAA0D;YAC1D,SAAS,CAAC,MAAM,EAAE,CAAC;QACrB,CAAC,CAAC,CAAC;QAEH,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE;YACxC,yDAAyD;YACzD,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YACzB,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC;IAES,KAAK,CAAC,iBAAiB;QAC/B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC;QACnD,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC;QACjD,MAAM,EACJ,CAAC,EAAE,SAAS,EACZ,CAAC,EAAE,SAAS,EACZ,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,cAAc,EACvB,GAAG,eAAe,CAAC,qBAAqB,EAAE,CAAC;QAC5C,MAAM,EACJ,CAAC,EAAE,QAAQ,EACX,CAAC,EAAE,QAAQ,EACX,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,aAAa,EACtB,GAAG,cAAc,CAAC,qBAAqB,EAAE,CAAC;QAC3C,4EAA4E;QAC5E,sEAAsE;QACtE,qCAAqC;QACrC,MAAM,KAAK,GAAG,aAAa,GAAG,YAAY,CAAC;QAC3C,MAAM,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;QACpC,wEAAwE;QACxE,0EAA0E;QAC1E,uEAAuE;QACvE,+CAA+C;QAC/C,MAAM,MAAM,GAAG,SAAS,GAAG,QAAQ;YAC/B,IAAI,CAAC,KAAK,CAAC,CAAC,cAAc,GAAG,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAE7D,yEAAyE;QACzE,uEAAuE;QACvE,WAAW;QACX,MAAM,cAAc,GAAG,cAAc,MAAM,8BACvC,MAAM,cAAc,KAAK,GAAG,CAAC;QACjC,MAAM,aAAa,GAAG,yCAAyC,CAAC;QAEhE,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE;YAClC,OAAO,CAAC,EAAC,SAAS,EAAE,aAAa,EAAC,EAAE,EAAC,SAAS,EAAE,cAAc,EAAC,CAAC,CAAC;SAClE;QAED,OAAO,CAAC,EAAC,SAAS,EAAE,cAAc,EAAC,EAAE,EAAC,SAAS,EAAE,aAAa,EAAC,CAAC,CAAC;IACnE,CAAC;CACF;AAlP4B;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;uCAAkB;AACjB;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;oCAAe;AACd;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;sCAAiB;AACjB;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;oCAAgB;AACd;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;wCAAmB;AAClB;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;uCAAkB;AAKjB;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;uCAAkB;AAIjB;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;qCAAgB;AAEjC;IAAR,KAAK,EAAE;;0CAA+B;AAKvC;IADC,UAAU,CAAC,6BAA6B,CAAC;;8CACgB;AAE1D;IADC,UAAU,CAAC,4BAA4B,CAAC;;6CACgB","sourcesContent":["/**\n * @requirecss {field.lib.shared_styles}\n *\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {createAnimationSignal, Easing} from '@material/web/motion/animation.js';\nimport {html, LitElement, PropertyValues, TemplateResult} from 'lit';\nimport {property, queryAsync, state} from 'lit/decorators.js';\nimport {ClassInfo, classMap} from 'lit/directives/class-map.js';\n\n/** @soyCompatible */\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: String}) label?: string;\n @property({type: Boolean}) populated = false;\n @property({type: Boolean}) required = false;\n\n /**\n * Whether or not the field has leading content.\n */\n @property({type: Boolean}) hasStart = false;\n /**\n * Whether or not the field has trailing content.\n */\n @property({type: Boolean}) hasEnd = false;\n\n @state() protected isAnimating = false;\n\n protected readonly labelAnimationSignal = createAnimationSignal();\n\n @queryAsync('.md3-field__label--floating')\n protected readonly floatingLabelEl!: Promise<HTMLElement>;\n @queryAsync('.md3-field__label--resting')\n protected readonly restingLabelEl!: Promise<HTMLElement>;\n\n /** @soyTemplate */\n override render(): TemplateResult {\n return html`\n <span class=\"md3-field ${classMap(this.getRenderClasses())}\">\n ${this.renderContainer()}\n ${this.renderSupportingText()}\n </span>\n `;\n }\n\n /** @soyTemplate */\n protected renderContainer(): TemplateResult {\n return html`\n <span class=\"md3-field__container\">\n ${this.renderContainerContents()}\n </span>\n `;\n }\n\n /** @soyTemplate */\n protected getRenderClasses(): ClassInfo {\n return {\n 'md3-field--disabled': this.disabled,\n 'md3-field--error': this.error,\n 'md3-field--focused': this.focused,\n 'md3-field--with-start': this.hasStart,\n 'md3-field--with-end': this.hasEnd,\n 'md3-field--populated': this.populated,\n 'md3-field--required': this.required,\n 'md3-field--no-label': !this.label,\n };\n }\n\n /** @soyTemplate */\n protected renderContainerContents(): TemplateResult {\n return html`\n <span class=\"md3-field__start\">\n <slot name=\"start\"></slot>\n </span>\n <span class=\"md3-field__middle\">${this.renderMiddleContents()}</span>\n <span class=\"md3-field__end\">\n <slot name=\"end\"></slot>\n </span>\n `;\n }\n\n /** @soyTemplate */\n protected renderMiddleContents(): TemplateResult {\n return html`\n <span class=\"md3-field__content\"><slot></slot></span>\n `;\n }\n\n /** @soyTemplate */\n protected renderFloatingLabel(): TemplateResult {\n const visible = (this.focused || this.populated) && !this.isAnimating;\n /** @classMap */\n const classes = {'md3-field__label--hidden': !visible};\n return html`\n <span class=\"md3-field__label md3-field__label--floating ${\n classMap(classes)}\"\n aria-hidden=${!visible}\n >${this.renderLabelText()}</span>\n `;\n\n // TODO(b/217441842): Create shared function once argument bug is fixed\n // return this.renderLabel(LabelType.FLOATING);\n }\n\n /** @soyTemplate */\n protected renderRestingLabel(): TemplateResult {\n const visible = !(this.focused || this.populated) || this.isAnimating;\n /** @classMap */\n const classes = {'md3-field__label--hidden': !visible};\n return html`\n <span class=\"md3-field__label md3-field__label--resting ${\n classMap(classes)}\"\n aria-hidden=${!visible}\n >${this.renderLabelText()}</span>\n `;\n\n // TODO(b/217441842): Create shared function once argument bug is fixed\n // return this.renderLabel(LabelType.RESTING);\n }\n\n /** @soyTemplate */\n protected renderLabelText(): string {\n const labelText = this.label ?? '';\n const optionalAsterisk = this.required && labelText ? '*' : '';\n return labelText + optionalAsterisk;\n }\n\n /** @soyTemplate */\n protected renderSupportingText(): TemplateResult {\n return html`\n <span class=\"md3-field__supporting-text\">\n <span class=\"md3-field__supporting-text-start\">\n <slot name=\"supporting-text\"></slot>\n </span>\n <span class=\"md3-field__supporting-text-end\">\n <slot name=\"supporting-text-end\"></slot>\n </span>\n </span>\n `;\n }\n\n protected override update(props: PropertyValues<Field>) {\n // Client-side property updates\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 this.animateLabelIfNeeded({\n wasFocused: props.get('focused'),\n wasPopulated: props.get('populated')\n });\n\n super.update(props);\n }\n\n protected async animateLabelIfNeeded({wasFocused, wasPopulated}: {\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 const signal = this.labelAnimationSignal.start();\n\n // Only one label is visible at a time for clearer text rendering.\n // The resting label is visible and used during animation. At the end of the\n // animation, it will either remain visible (if resting) or hide and the\n // floating label will be shown.\n const labelEl = await this.restingLabelEl;\n const keyframes = await this.getLabelKeyframes();\n if (signal.aborted) {\n // Don't animate if this animation was requested to stop while getting\n // the label element or calculating keyframes\n return;\n }\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 const animation =\n labelEl.animate(keyframes, {duration: 150, easing: Easing.STANDARD});\n\n signal.addEventListener('abort', () => {\n // Cancel if requested (another animation starts playing).\n animation.cancel();\n });\n\n animation.addEventListener('finish', () => {\n // At the end of the animation, update the visible label.\n this.isAnimating = false;\n this.labelAnimationSignal.finish();\n });\n }\n\n protected async getLabelKeyframes() {\n const floatingLabelEl = await this.floatingLabelEl;\n const restingLabelEl = await this.restingLabelEl;\n const {\n x: floatingX,\n y: floatingY,\n width: floatingWidth,\n height: floatingHeight\n } = floatingLabelEl.getBoundingClientRect();\n const {\n x: restingX,\n y: restingY,\n width: restingWidth,\n height: restingHeight\n } = restingLabelEl.getBoundingClientRect();\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.\n const scale = floatingWidth / restingWidth;\n const xDelta = floatingX - restingX;\n // The line-height of the resting and floating label are different. When\n // we move the resting label up to the floating label's position, it won't\n // exactly match because of this. We need to adjust by half of what the\n // final scaled resting label's height will be.\n const yDelta = floatingY - restingY +\n Math.round((floatingHeight - restingHeight * scale) / 2);\n\n // Create the two transforms: resting to floating (using the calculations\n // above), and floating to resting (re-setting the transform to initial\n // values).\n const floatTransform = `translateX(${xDelta}px) translateY(calc(-50% + ${\n yDelta}px)) scale(${scale})`;\n const restTransform = `translateX(0) translateY(-50%) scale(1)`;\n\n if (this.focused || this.populated) {\n return [{transform: restTransform}, {transform: floatTransform}];\n }\n\n return [{transform: floatTransform}, {transform: restTransform}];\n }\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
7
|
+
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
8
|
+
import { Field } from './field.js';
|
|
9
|
+
/** @soyCompatible */
|
|
10
|
+
export declare class FilledField extends Field {
|
|
11
|
+
protected strokeTransformOrigin: string;
|
|
12
|
+
/** @soyTemplate */
|
|
13
|
+
protected getRenderClasses(): ClassInfo;
|
|
14
|
+
/** @soyTemplate */
|
|
15
|
+
protected renderContainer(): TemplateResult;
|
|
16
|
+
/** @soyTemplate */
|
|
17
|
+
protected renderContainerContents(): TemplateResult;
|
|
18
|
+
/** @soyTemplate */
|
|
19
|
+
protected renderMiddleContents(): TemplateResult;
|
|
20
|
+
protected handleClick(event: MouseEvent | TouchEvent): void;
|
|
21
|
+
protected update(props: PropertyValues<this>): void;
|
|
22
|
+
protected updateStrokeTransformOrigin(event?: MouseEvent | TouchEvent): Promise<void>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate, __metadata } from "tslib";
|
|
7
|
+
import { html } from 'lit';
|
|
8
|
+
import { state } from 'lit/decorators.js';
|
|
9
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
10
|
+
import { Field } from './field.js';
|
|
11
|
+
/** @soyCompatible */
|
|
12
|
+
export class FilledField extends Field {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.strokeTransformOrigin = '';
|
|
16
|
+
}
|
|
17
|
+
/** @soyTemplate */
|
|
18
|
+
getRenderClasses() {
|
|
19
|
+
return {
|
|
20
|
+
...super.getRenderClasses(),
|
|
21
|
+
'md3-field--filled': true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/** @soyTemplate */
|
|
25
|
+
renderContainer() {
|
|
26
|
+
return html `
|
|
27
|
+
<span class="md3-field__container" @click=${this.handleClick}>
|
|
28
|
+
${this.renderContainerContents()}
|
|
29
|
+
</span>
|
|
30
|
+
`;
|
|
31
|
+
}
|
|
32
|
+
/** @soyTemplate */
|
|
33
|
+
renderContainerContents() {
|
|
34
|
+
/** @styleMap */
|
|
35
|
+
const strokeStyle = { transformOrigin: this.strokeTransformOrigin };
|
|
36
|
+
return html `
|
|
37
|
+
<span class="md3-field__state-layer"></span>
|
|
38
|
+
${super.renderContainerContents()}
|
|
39
|
+
<span class="md3-field__active-indicator"
|
|
40
|
+
style="${styleMap(strokeStyle)}"></span>
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
/** @soyTemplate */
|
|
44
|
+
renderMiddleContents() {
|
|
45
|
+
return html `
|
|
46
|
+
${this.renderFloatingLabel()}
|
|
47
|
+
${this.renderRestingLabel()}
|
|
48
|
+
${super.renderMiddleContents()}
|
|
49
|
+
`;
|
|
50
|
+
}
|
|
51
|
+
handleClick(event) {
|
|
52
|
+
if (this.disabled) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
this.updateStrokeTransformOrigin(event);
|
|
56
|
+
}
|
|
57
|
+
update(props) {
|
|
58
|
+
// Upon losing focus, the stroke resets to expanding from the center, such
|
|
59
|
+
// as when re-focusing with a keyboard.
|
|
60
|
+
const unfocusing = props.has('focused') && !this.focused;
|
|
61
|
+
if (unfocusing) {
|
|
62
|
+
this.updateStrokeTransformOrigin();
|
|
63
|
+
}
|
|
64
|
+
super.update(props);
|
|
65
|
+
}
|
|
66
|
+
async updateStrokeTransformOrigin(event) {
|
|
67
|
+
let transformOrigin = '';
|
|
68
|
+
if (event) {
|
|
69
|
+
// Can't use instanceof TouchEvent since Firefox does not provide the
|
|
70
|
+
// constructor globally.
|
|
71
|
+
const isTouchEvent = 'touches' in event;
|
|
72
|
+
const eventX = isTouchEvent ? event.touches[0].clientX : event.clientX;
|
|
73
|
+
const rootRect = this.getBoundingClientRect();
|
|
74
|
+
transformOrigin = `${eventX - rootRect.x}px`;
|
|
75
|
+
}
|
|
76
|
+
this.strokeTransformOrigin = transformOrigin;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
__decorate([
|
|
80
|
+
state(),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], FilledField.prototype, "strokeTransformOrigin", void 0);
|
|
83
|
+
//# 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,EAAiC,MAAM,KAAK,CAAC;AACzD,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEjC,qBAAqB;AACrB,MAAM,OAAO,WAAY,SAAQ,KAAK;IAAtC;;QACqB,0BAAqB,GAAG,EAAE,CAAC;IAwEhD,CAAC;IAtEC,mBAAmB;IACA,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,mBAAmB,EAAE,IAAI;SAC1B,CAAC;IACJ,CAAC;IAED,mBAAmB;IACA,eAAe;QAChC,OAAO,IAAI,CAAA;kDACmC,IAAI,CAAC,WAAW;UACxD,IAAI,CAAC,uBAAuB,EAAE;;KAEnC,CAAC;IACJ,CAAC;IAED,mBAAmB;IACA,uBAAuB;QACxC,gBAAgB;QAChB,MAAM,WAAW,GAAG,EAAC,eAAe,EAAE,IAAI,CAAC,qBAAqB,EAAC,CAAC;QAClE,OAAO,IAAI,CAAA;;QAEP,KAAK,CAAC,uBAAuB,EAAE;;iBAEtB,QAAQ,CAAC,WAAW,CAAC;KACjC,CAAC;IACJ,CAAC;IAED,mBAAmB;IACA,oBAAoB;QACrC,OAAO,IAAI,CAAA;QACP,IAAI,CAAC,mBAAmB,EAAE;QAC1B,IAAI,CAAC,kBAAkB,EAAE;QACzB,KAAK,CAAC,oBAAoB,EAAE;KAC/B,CAAC;IACJ,CAAC;IAES,WAAW,CAAC,KAA4B;QAChD,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,OAAO;SACR;QAED,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IAEkB,MAAM,CAAC,KAA2B;QACnD,0EAA0E;QAC1E,uCAAuC;QACvC,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QACzD,IAAI,UAAU,EAAE;YACd,IAAI,CAAC,2BAA2B,EAAE,CAAC;SACpC;QAED,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAES,KAAK,CAAC,2BAA2B,CAAC,KAA6B;QACvE,IAAI,eAAe,GAAG,EAAE,CAAC;QACzB,IAAI,KAAK,EAAE;YACT,qEAAqE;YACrE,wBAAwB;YACxB,MAAM,YAAY,GAAG,SAAS,IAAI,KAAK,CAAC;YACxC,MAAM,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;YACvE,MAAM,QAAQ,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC9C,eAAe,GAAG,GAAG,MAAM,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC;SAC9C;QAED,IAAI,CAAC,qBAAqB,GAAG,eAAe,CAAC;IAC/C,CAAC;CACF;AAxEU;IAAR,KAAK,EAAE;;0DAAsC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {html, PropertyValues, TemplateResult} from 'lit';\nimport {state} from 'lit/decorators.js';\nimport {ClassInfo} from 'lit/directives/class-map.js';\nimport {styleMap} from 'lit/directives/style-map.js';\n\nimport {Field} from './field.js';\n\n/** @soyCompatible */\nexport class FilledField extends Field {\n @state() protected strokeTransformOrigin = '';\n\n /** @soyTemplate */\n protected override getRenderClasses(): ClassInfo {\n return {\n ...super.getRenderClasses(),\n 'md3-field--filled': true,\n };\n }\n\n /** @soyTemplate */\n protected override renderContainer(): TemplateResult {\n return html`\n <span class=\"md3-field__container\" @click=${this.handleClick}>\n ${this.renderContainerContents()}\n </span>\n `;\n }\n\n /** @soyTemplate */\n protected override renderContainerContents(): TemplateResult {\n /** @styleMap */\n const strokeStyle = {transformOrigin: this.strokeTransformOrigin};\n return html`\n <span class=\"md3-field__state-layer\"></span>\n ${super.renderContainerContents()}\n <span class=\"md3-field__active-indicator\"\n style=\"${styleMap(strokeStyle)}\"></span>\n `;\n }\n\n /** @soyTemplate */\n protected override renderMiddleContents(): TemplateResult {\n return html`\n ${this.renderFloatingLabel()}\n ${this.renderRestingLabel()}\n ${super.renderMiddleContents()}\n `;\n }\n\n protected handleClick(event: MouseEvent|TouchEvent) {\n if (this.disabled) {\n return;\n }\n\n this.updateStrokeTransformOrigin(event);\n }\n\n protected override update(props: PropertyValues<this>) {\n // Upon losing focus, the stroke resets to expanding from the center, such\n // as when re-focusing with a keyboard.\n const unfocusing = props.has('focused') && !this.focused;\n if (unfocusing) {\n this.updateStrokeTransformOrigin();\n }\n\n super.update(props);\n }\n\n protected async updateStrokeTransformOrigin(event?: MouseEvent|TouchEvent) {\n let transformOrigin = '';\n if (event) {\n // Can't use instanceof TouchEvent since Firefox does not provide the\n // constructor globally.\n const isTouchEvent = 'touches' in event;\n const eventX = isTouchEvent ? event.touches[0].clientX : event.clientX;\n const rootRect = this.getBoundingClientRect();\n transformOrigin = `${eventX - rootRect.x}px`;\n }\n\n this.strokeTransformOrigin = transformOrigin;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
export const styles = css `.md3-field--filled .md3-field__container{overflow:hidden;z-index:0}.md3-field--filled .md3-field__container::before,.md3-field--filled .md3-field__container::after{border-radius:inherit;content:"";display:flex;height:100%;position:absolute;width:100%;z-index:-1}.md3-field--filled .md3-field__container::after{visibility:hidden}.md3-field--filled:not(.md3-field--disabled):hover .md3-field__state-layer{visibility:visible}.md3-field--filled .md3-field__label--floating{position:absolute;top:0}.md3-field__state-layer{border-radius:inherit;height:100%;position:absolute;width:100%;visibility:hidden;z-index:-1}.md3-field__active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%}.md3-field__active-indicator::before,.md3-field__active-indicator::after{border-bottom-style:solid;inset:auto 0 0 0;content:"";position:absolute;width:100%}.md3-field__active-indicator::after{opacity:0;transform:scaleX(0);transform-origin:inherit;transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),transform 0s ease 150ms}.md3-field--focused .md3-field__active-indicator::after{opacity:1;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-field--filled .md3-field__container{flex-basis:var(--md-filled-field-container-height, 56px)}.md3-field--filled .md3-field__content{color:var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:hover .md3-field__content{color:var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled.md3-field--focused .md3-field__content{color:var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled.md3-field--disabled .md3-field__content{color:var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__content{color:var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__content{color:var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__content{color:var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled.md3-field--disabled.md3-field--no-label .md3-field__content,.md3-field--filled.md3-field--disabled.md3-field--focused .md3-field__content,.md3-field--filled.md3-field--disabled.md3-field--populated .md3-field__content{opacity:var(--md-filled-field-disabled-content-opacity, 0.38)}.md3-field--filled .md3-field__label{color:var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled:hover .md3-field__label{color:var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled.md3-field--focused .md3-field__label{color:var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4))}.md3-field--filled.md3-field--disabled .md3-field__label{color:var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__label{color:var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__label{color:var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b))}.md3-field--filled:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__label{color:var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled .md3-field__label{font-family:var(--md-filled-field-label-text-font, Roboto);font-weight:var(--md-filled-field-label-text-weight, 400);letter-spacing:var(--md-filled-field-label-text-tracking, 0.03125rem)}.md3-field--filled .md3-field__label--resting{font-size:var(--md-filled-field-label-text-size, 1rem);line-height:var(--md-filled-field-label-text-line-height, 1.5rem)}.md3-field--filled .md3-field__label--floating{font-size:var(--md-filled-field-label-text-populated-size, 0.75rem);line-height:var(--md-filled-field-label-text-populated-line-height, 1rem)}.md3-field--filled.md3-field--disabled .md3-field__label:not(.md3-field__label--hidden){opacity:var(--md-filled-field-disabled-label-text-opacity, 0.38)}.md3-field--filled .md3-field__supporting-text{color:var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled:hover .md3-field__supporting-text{color:var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled.md3-field--focus .md3-field__supporting-text{color:var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled.md3-field--disabled .md3-field__supporting-text{color:var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__supporting-text{color:var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__supporting-text{color:var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled:not(.md3-field--disabled).md3-field--error.md3-field--focus .md3-field__supporting-text{color:var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled .md3-field__supporting-text{font-family:var(--md-filled-field-supporting-text-font, Roboto);font-size:var(--md-filled-field-supporting-text-size, 0.75rem);font-weight:var(--md-filled-field-supporting-text-weight, 400);letter-spacing:var(--md-filled-field-supporting-text-tracking, 0.025rem);line-height:var(--md-filled-field-supporting-text-line-height, 1rem)}.md3-field--filled.md3-field--disabled .md3-field__supporting-text{opacity:var(--md-filled-field-disabled-supporting-text-opacity, 0.38)}.md3-field--filled .md3-field__supporting-text{padding:0 var(--md-filled-field-supporting-text-padding, 16px)}.md3-field--filled .md3-field__supporting-text-start ::slotted(:not(:empty)),.md3-field--filled .md3-field__supporting-text-end ::slotted(:not(:empty)){padding-top:var(--md-filled-field-supporting-text-padding-top, 4px)}.md3-field--filled .md3-field__supporting-text-end ::slotted(:not(:empty)){padding-inline-start:var(--md-filled-field-supporting-text-padding, 16px)}.md3-field--filled .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled:hover .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled .md3-field__active-indicator::after{border-bottom-color:var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4))}.md3-field--filled.md3-field--disabled .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__active-indicator::after{border-bottom-color:var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled.md3-field--disabled .md3-field__active-indicator::before{opacity:var(--md-filled-field-disabled-active-indicator-opacity, 0.38)}.md3-field--filled .md3-field__active-indicator::before{border-bottom-width:var(--md-filled-field-active-indicator-height, 1px)}.md3-field--filled:hover .md3-field__active-indicator::before{border-bottom-width:var(--md-filled-field-hover-active-indicator-height, 1px)}.md3-field--filled.md3-field--disabled .md3-field__active-indicator::before{border-bottom-width:var(--md-filled-field-disabled-active-indicator-height, 1px)}.md3-field--filled .md3-field__active-indicator::after{border-bottom-width:var(--md-filled-field-focus-active-indicator-height, 2px)}.md3-field--filled .md3-field__container::before{background:var(--md-filled-field-container-color, var(--md-sys-color-surface-variant, #e7e0ec))}.md3-field--filled.md3-field--disabled .md3-field__container::before{background:var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled.md3-field--disabled .md3-field__container::before{opacity:var(--md-filled-field-disabled-container-opacity, 0.04)}.md3-field--filled:not(.md3-field--with-start) .md3-field__start{padding-inline-start:var(--md-filled-field-container-padding-horizontal, 16px)}.md3-field--filled:not(.md3-field--with-end) .md3-field__end{padding-inline-end:var(--md-filled-field-container-padding-horizontal, 16px)}.md3-field--filled .md3-field__container{padding-top:var(--md-filled-field-container-padding-vertical, 8px);padding-bottom:var(--md-filled-field-container-padding-vertical, 8px)}.md3-field--filled .md3-field__container{border-start-start-radius:var(--md-filled-field-container-shape-start-start, 4px);border-start-end-radius:var(--md-filled-field-container-shape-start-end, 4px);border-end-end-radius:var(--md-filled-field-container-shape-end-end, 0);border-end-start-radius:var(--md-filled-field-container-shape-end-start, 0)}.md3-field--filled:not(.md3-field--no-label) .md3-field__middle{padding-top:var(--md-filled-field-label-text-populated-line-height, 1rem)}.md3-field--filled:hover .md3-field__state-layer{background:var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__state-layer{background:var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:hover .md3-field__state-layer{opacity:var(--md-filled-field-hover-state-layer-opacity, 0.08)}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__state-layer{opacity:var(--md-filled-field-error-hover-state-layer-opacity, 0.08)}/*# sourceMappingURL=filled-styles.css.map */
|
|
8
|
+
`;
|
|
9
|
+
//# sourceMappingURL=filled-styles.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filled-styles.css.js","sourceRoot":"","sources":["filled-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`.md3-field--filled .md3-field__container{overflow:hidden;z-index:0}.md3-field--filled .md3-field__container::before,.md3-field--filled .md3-field__container::after{border-radius:inherit;content:\"\";display:flex;height:100%;position:absolute;width:100%;z-index:-1}.md3-field--filled .md3-field__container::after{visibility:hidden}.md3-field--filled:not(.md3-field--disabled):hover .md3-field__state-layer{visibility:visible}.md3-field--filled .md3-field__label--floating{position:absolute;top:0}.md3-field__state-layer{border-radius:inherit;height:100%;position:absolute;width:100%;visibility:hidden;z-index:-1}.md3-field__active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%}.md3-field__active-indicator::before,.md3-field__active-indicator::after{border-bottom-style:solid;inset:auto 0 0 0;content:\"\";position:absolute;width:100%}.md3-field__active-indicator::after{opacity:0;transform:scaleX(0);transform-origin:inherit;transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),transform 0s ease 150ms}.md3-field--focused .md3-field__active-indicator::after{opacity:1;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-field--filled .md3-field__container{flex-basis:var(--md-filled-field-container-height, 56px)}.md3-field--filled .md3-field__content{color:var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:hover .md3-field__content{color:var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled.md3-field--focused .md3-field__content{color:var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled.md3-field--disabled .md3-field__content{color:var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__content{color:var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__content{color:var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__content{color:var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled.md3-field--disabled.md3-field--no-label .md3-field__content,.md3-field--filled.md3-field--disabled.md3-field--focused .md3-field__content,.md3-field--filled.md3-field--disabled.md3-field--populated .md3-field__content{opacity:var(--md-filled-field-disabled-content-opacity, 0.38)}.md3-field--filled .md3-field__label{color:var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled:hover .md3-field__label{color:var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled.md3-field--focused .md3-field__label{color:var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4))}.md3-field--filled.md3-field--disabled .md3-field__label{color:var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__label{color:var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__label{color:var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b))}.md3-field--filled:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__label{color:var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled .md3-field__label{font-family:var(--md-filled-field-label-text-font, Roboto);font-weight:var(--md-filled-field-label-text-weight, 400);letter-spacing:var(--md-filled-field-label-text-tracking, 0.03125rem)}.md3-field--filled .md3-field__label--resting{font-size:var(--md-filled-field-label-text-size, 1rem);line-height:var(--md-filled-field-label-text-line-height, 1.5rem)}.md3-field--filled .md3-field__label--floating{font-size:var(--md-filled-field-label-text-populated-size, 0.75rem);line-height:var(--md-filled-field-label-text-populated-line-height, 1rem)}.md3-field--filled.md3-field--disabled .md3-field__label:not(.md3-field__label--hidden){opacity:var(--md-filled-field-disabled-label-text-opacity, 0.38)}.md3-field--filled .md3-field__supporting-text{color:var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled:hover .md3-field__supporting-text{color:var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled.md3-field--focus .md3-field__supporting-text{color:var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled.md3-field--disabled .md3-field__supporting-text{color:var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__supporting-text{color:var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__supporting-text{color:var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled:not(.md3-field--disabled).md3-field--error.md3-field--focus .md3-field__supporting-text{color:var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled .md3-field__supporting-text{font-family:var(--md-filled-field-supporting-text-font, Roboto);font-size:var(--md-filled-field-supporting-text-size, 0.75rem);font-weight:var(--md-filled-field-supporting-text-weight, 400);letter-spacing:var(--md-filled-field-supporting-text-tracking, 0.025rem);line-height:var(--md-filled-field-supporting-text-line-height, 1rem)}.md3-field--filled.md3-field--disabled .md3-field__supporting-text{opacity:var(--md-filled-field-disabled-supporting-text-opacity, 0.38)}.md3-field--filled .md3-field__supporting-text{padding:0 var(--md-filled-field-supporting-text-padding, 16px)}.md3-field--filled .md3-field__supporting-text-start ::slotted(:not(:empty)),.md3-field--filled .md3-field__supporting-text-end ::slotted(:not(:empty)){padding-top:var(--md-filled-field-supporting-text-padding-top, 4px)}.md3-field--filled .md3-field__supporting-text-end ::slotted(:not(:empty)){padding-inline-start:var(--md-filled-field-supporting-text-padding, 16px)}.md3-field--filled .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--filled:hover .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled .md3-field__active-indicator::after{border-bottom-color:var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4))}.md3-field--filled.md3-field--disabled .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__active-indicator::before{border-bottom-color:var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b))}.md3-field--filled:not(.md3-field--disabled).md3-field--error .md3-field__active-indicator::after{border-bottom-color:var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e))}.md3-field--filled.md3-field--disabled .md3-field__active-indicator::before{opacity:var(--md-filled-field-disabled-active-indicator-opacity, 0.38)}.md3-field--filled .md3-field__active-indicator::before{border-bottom-width:var(--md-filled-field-active-indicator-height, 1px)}.md3-field--filled:hover .md3-field__active-indicator::before{border-bottom-width:var(--md-filled-field-hover-active-indicator-height, 1px)}.md3-field--filled.md3-field--disabled .md3-field__active-indicator::before{border-bottom-width:var(--md-filled-field-disabled-active-indicator-height, 1px)}.md3-field--filled .md3-field__active-indicator::after{border-bottom-width:var(--md-filled-field-focus-active-indicator-height, 2px)}.md3-field--filled .md3-field__container::before{background:var(--md-filled-field-container-color, var(--md-sys-color-surface-variant, #e7e0ec))}.md3-field--filled.md3-field--disabled .md3-field__container::before{background:var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled.md3-field--disabled .md3-field__container::before{opacity:var(--md-filled-field-disabled-container-opacity, 0.04)}.md3-field--filled:not(.md3-field--with-start) .md3-field__start{padding-inline-start:var(--md-filled-field-container-padding-horizontal, 16px)}.md3-field--filled:not(.md3-field--with-end) .md3-field__end{padding-inline-end:var(--md-filled-field-container-padding-horizontal, 16px)}.md3-field--filled .md3-field__container{padding-top:var(--md-filled-field-container-padding-vertical, 8px);padding-bottom:var(--md-filled-field-container-padding-vertical, 8px)}.md3-field--filled .md3-field__container{border-start-start-radius:var(--md-filled-field-container-shape-start-start, 4px);border-start-end-radius:var(--md-filled-field-container-shape-start-end, 4px);border-end-end-radius:var(--md-filled-field-container-shape-end-end, 0);border-end-start-radius:var(--md-filled-field-container-shape-end-start, 0)}.md3-field--filled:not(.md3-field--no-label) .md3-field__middle{padding-top:var(--md-filled-field-label-text-populated-line-height, 1rem)}.md3-field--filled:hover .md3-field__state-layer{background:var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__state-layer{background:var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--filled:hover .md3-field__state-layer{opacity:var(--md-filled-field-hover-state-layer-opacity, 0.08)}.md3-field--filled:not(.md3-field--disabled).md3-field--error:hover .md3-field__state-layer{opacity:var(--md-filled-field-error-hover-state-layer-opacity, 0.08)}/*# sourceMappingURL=filled-styles.css.map */\n`;\n "]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2021 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
// stylelint-disable selector-class-pattern --
|
|
7
|
+
// Selector '.md3-*' should only be used in this project.
|
|
8
|
+
|
|
9
|
+
@use './filled-field-theme';
|
|
10
|
+
@use './filled-field';
|
|
11
|
+
|
|
12
|
+
@include filled-field.static-styles;
|
|
13
|
+
|
|
14
|
+
.md3-field--filled {
|
|
15
|
+
@include filled-field-theme.theme-styles(filled-field-theme.$light-theme);
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { TemplateResult } from 'lit';
|
|
7
|
+
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
8
|
+
import { Field } from './field.js';
|
|
9
|
+
/** @soyCompatible */
|
|
10
|
+
export declare class OutlinedField extends Field {
|
|
11
|
+
/** @soyTemplate */
|
|
12
|
+
protected getRenderClasses(): ClassInfo;
|
|
13
|
+
/** @soyTemplate */
|
|
14
|
+
protected renderContainerContents(): TemplateResult;
|
|
15
|
+
/** @soyTemplate */
|
|
16
|
+
protected renderOutline(): TemplateResult;
|
|
17
|
+
/** @soyTemplate */
|
|
18
|
+
protected renderMiddleContents(): TemplateResult;
|
|
19
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
/** @soyCompatible */
|
|
9
|
+
export class OutlinedField extends Field {
|
|
10
|
+
/** @soyTemplate */
|
|
11
|
+
getRenderClasses() {
|
|
12
|
+
return {
|
|
13
|
+
...super.getRenderClasses(),
|
|
14
|
+
'md3-field--outlined': true,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/** @soyTemplate */
|
|
18
|
+
renderContainerContents() {
|
|
19
|
+
return html `
|
|
20
|
+
${this.renderOutline()}
|
|
21
|
+
${super.renderContainerContents()}
|
|
22
|
+
`;
|
|
23
|
+
}
|
|
24
|
+
/** @soyTemplate */
|
|
25
|
+
renderOutline() {
|
|
26
|
+
return html `
|
|
27
|
+
<span class="md3-field__outline">
|
|
28
|
+
<span class="md3-field__outline-start"></span>
|
|
29
|
+
<span class="md3-field__outline-notch">
|
|
30
|
+
<span class="md3-field__outline-panel-inactive"></span>
|
|
31
|
+
<span class="md3-field__outline-panel-active"></span>
|
|
32
|
+
${this.renderFloatingLabel()}
|
|
33
|
+
</span>
|
|
34
|
+
<span class="md3-field__outline-end"></span>
|
|
35
|
+
</span>
|
|
36
|
+
`;
|
|
37
|
+
}
|
|
38
|
+
/** @soyTemplate */
|
|
39
|
+
renderMiddleContents() {
|
|
40
|
+
return html `
|
|
41
|
+
${this.renderRestingLabel()}
|
|
42
|
+
${super.renderMiddleContents()}
|
|
43
|
+
`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# 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,EAAiB,MAAM,KAAK,CAAC;AAGzC,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEjC,qBAAqB;AACrB,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,mBAAmB;IACA,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,qBAAqB,EAAE,IAAI;SAC5B,CAAC;IACJ,CAAC;IAED,mBAAmB;IACA,uBAAuB;QACxC,OAAO,IAAI,CAAA;QACP,IAAI,CAAC,aAAa,EAAE;QACpB,KAAK,CAAC,uBAAuB,EAAE;KAClC,CAAC;IACJ,CAAC;IAED,mBAAmB;IACT,aAAa;QACrB,OAAO,IAAI,CAAA;;;;;;YAMH,IAAI,CAAC,mBAAmB,EAAE;;;;KAIjC,CAAC;IACJ,CAAC;IAED,mBAAmB;IACA,oBAAoB;QACrC,OAAO,IAAI,CAAA;QACP,IAAI,CAAC,kBAAkB,EAAE;QACzB,KAAK,CAAC,oBAAoB,EAAE;KAC/B,CAAC;IACJ,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {html, TemplateResult} from 'lit';\nimport {ClassInfo} from 'lit/directives/class-map.js';\n\nimport {Field} from './field.js';\n\n/** @soyCompatible */\nexport class OutlinedField extends Field {\n /** @soyTemplate */\n protected override getRenderClasses(): ClassInfo {\n return {\n ...super.getRenderClasses(),\n 'md3-field--outlined': true,\n };\n }\n\n /** @soyTemplate */\n protected override renderContainerContents(): TemplateResult {\n return html`\n ${this.renderOutline()}\n ${super.renderContainerContents()}\n `;\n }\n\n /** @soyTemplate */\n protected renderOutline(): TemplateResult {\n return html`\n <span class=\"md3-field__outline\">\n <span class=\"md3-field__outline-start\"></span>\n <span class=\"md3-field__outline-notch\">\n <span class=\"md3-field__outline-panel-inactive\"></span>\n <span class=\"md3-field__outline-panel-active\"></span>\n ${this.renderFloatingLabel()}\n </span>\n <span class=\"md3-field__outline-end\"></span>\n </span>\n `;\n }\n\n /** @soyTemplate */\n protected override renderMiddleContents(): TemplateResult {\n return html`\n ${this.renderRestingLabel()}\n ${super.renderMiddleContents()}\n `;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
export const styles = css `.md3-field__outline{display:flex;pointer-events:none;height:100%;position:absolute;width:100%}.md3-field__outline-start::before,.md3-field__outline-start::after,.md3-field__outline-panel-inactive::before,.md3-field__outline-panel-inactive::after,.md3-field__outline-panel-active::before,.md3-field__outline-panel-active::after,.md3-field__outline-end::before,.md3-field__outline-end::after{border:inherit;content:"";inset:0;position:absolute}.md3-field__outline-start,.md3-field__outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.md3-field__outline-start::before,.md3-field__outline-start::after,.md3-field__outline-end::before,.md3-field__outline-end::after{border-bottom-style:solid;border-top-style:solid}.md3-field__outline-start::after,.md3-field__outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-field--focused .md3-field__outline-start::after,.md3-field--focused .md3-field__outline-end::after{opacity:1}.md3-field__outline-start::before,.md3-field__outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0}.md3-field__outline-end{flex-grow:1}.md3-field__outline-end::before,.md3-field__outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.md3-field__outline-notch{align-items:flex-start;border:inherit;display:flex;position:relative}.md3-field--no-label .md3-field__outline-notch{display:none}.md3-field__outline-panel-inactive,.md3-field__outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.md3-field__outline-panel-inactive::before,.md3-field__outline-panel-inactive::after,.md3-field__outline-panel-active::before,.md3-field__outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-field__outline-panel-inactive::before,.md3-field__outline-panel-active::before{right:50%;transform-origin:top left}.md3-field__outline-panel-inactive::after,.md3-field__outline-panel-active::after{left:50%;transform-origin:top right}.md3-field--populated .md3-field__outline-panel-inactive::before,.md3-field--populated .md3-field__outline-panel-inactive::after,.md3-field--focused .md3-field__outline-panel-inactive::before,.md3-field--focused .md3-field__outline-panel-inactive::after,.md3-field--populated .md3-field__outline-panel-active::before,.md3-field--populated .md3-field__outline-panel-active::after,.md3-field--focused .md3-field__outline-panel-active::before,.md3-field--focused .md3-field__outline-panel-active::after{transform:scaleX(0)}.md3-field__outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-field--focused .md3-field__outline-panel-active{opacity:1}.md3-field--outlined .md3-field__container{flex-basis:var(--md-outlined-field-container-height, 56px)}.md3-field--outlined .md3-field__content{color:var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:hover .md3-field__content{color:var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--focused .md3-field__content{color:var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--disabled .md3-field__content{color:var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error .md3-field__content{color:var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error:hover .md3-field__content{color:var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__content{color:var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--disabled.md3-field--no-label .md3-field__content,.md3-field--outlined.md3-field--disabled.md3-field--focused .md3-field__content,.md3-field--outlined.md3-field--disabled.md3-field--populated .md3-field__content{opacity:var(--md-outlined-field-disabled-content-opacity, 0.38)}.md3-field--outlined .md3-field__label{color:var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--outlined:hover .md3-field__label{color:var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--focused .md3-field__label{color:var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4))}.md3-field--outlined.md3-field--disabled .md3-field__label{color:var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error .md3-field__label{color:var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error:hover .md3-field__label{color:var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__label{color:var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined .md3-field__label{font-family:var(--md-outlined-field-label-text-font, Roboto);font-weight:var(--md-outlined-field-label-text-weight, 400);letter-spacing:var(--md-outlined-field-label-text-tracking, 0.03125rem)}.md3-field--outlined .md3-field__label--resting{font-size:var(--md-outlined-field-label-text-size, 1rem);line-height:var(--md-outlined-field-label-text-line-height, 1.5rem)}.md3-field--outlined .md3-field__label--floating{font-size:var(--md-outlined-field-label-text-populated-size, 0.75rem);line-height:var(--md-outlined-field-label-text-populated-line-height, 1rem)}.md3-field--outlined.md3-field--disabled .md3-field__label:not(.md3-field__label--hidden){opacity:var(--md-outlined-field-disabled-label-text-opacity, 0.38)}.md3-field--outlined .md3-field__supporting-text{color:var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--outlined:hover .md3-field__supporting-text{color:var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--outlined.md3-field--focus .md3-field__supporting-text{color:var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--outlined.md3-field--disabled .md3-field__supporting-text{color:var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error .md3-field__supporting-text{color:var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error:hover .md3-field__supporting-text{color:var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error.md3-field--focus .md3-field__supporting-text{color:var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined .md3-field__supporting-text{font-family:var(--md-outlined-field-supporting-text-font, Roboto);font-size:var(--md-outlined-field-supporting-text-size, 0.75rem);font-weight:var(--md-outlined-field-supporting-text-weight, 400);letter-spacing:var(--md-outlined-field-supporting-text-tracking, 0.025rem);line-height:var(--md-outlined-field-supporting-text-line-height, 1rem)}.md3-field--outlined.md3-field--disabled .md3-field__supporting-text{opacity:var(--md-outlined-field-disabled-supporting-text-opacity, 0.38)}.md3-field--outlined .md3-field__supporting-text{padding:0 var(--md-outlined-field-supporting-text-padding, 16px)}.md3-field--outlined .md3-field__supporting-text-start ::slotted(:not(:empty)),.md3-field--outlined .md3-field__supporting-text-end ::slotted(:not(:empty)){padding-top:var(--md-outlined-field-supporting-text-padding-top, 4px)}.md3-field--outlined .md3-field__supporting-text-end ::slotted(:not(:empty)){padding-inline-start:var(--md-outlined-field-supporting-text-padding, 16px)}.md3-field--outlined .md3-field__label--floating{transform:translateY(calc(-100% + var(--md-outlined-field-label-text-padding-bottom, 8px)))}.md3-field--outlined .md3-field__outline-start,.md3-field--outlined:not(.md3-field--with-start) .md3-field__start{padding-inline-start:max(var(--md-outlined-field-container-padding-horizontal, 16px),max(var(--md-outlined-field-container-shape-start-start, 4px),var(--md-outlined-field-container-shape-end-start, 4px)) + var(--md-outlined-field-outline-label-padding, 4px))}.md3-field--outlined:not(.md3-field--with-end) .md3-field__end{padding-inline-end:max(var(--md-outlined-field-container-padding-horizontal, 16px),max(var(--md-outlined-field-container-shape-start-end, 4px),var(--md-outlined-field-container-shape-end-end, 4px)))}.md3-field--outlined .md3-field__outline{border-start-start-radius:var(--md-outlined-field-container-shape-start-start, 4px);border-start-end-radius:var(--md-outlined-field-container-shape-start-end, 4px);border-end-end-radius:var(--md-outlined-field-container-shape-end-end, 4px);border-end-start-radius:var(--md-outlined-field-container-shape-end-start, 4px)}.md3-field--outlined .md3-field__outline{border-color:var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));color:var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e))}.md3-field--outlined:hover .md3-field__outline{border-color:var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1c1b1f));color:var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--focused .md3-field__outline{border-color:var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));color:var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4))}.md3-field--outlined.md3-field--disabled .md3-field__outline{border-color:var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1c1b1f));color:var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error .md3-field__outline{border-color:var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));color:var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error:hover .md3-field__outline{border-color:var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));color:var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__outline{border-color:var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));color:var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined .md3-field__outline-start::before,.md3-field--outlined .md3-field__outline-start::after{margin-inline-end:var(--md-outlined-field-outline-label-padding, 4px)}.md3-field--outlined .md3-field__outline-notch{padding:0 var(--md-outlined-field-outline-label-padding, 4px);margin-inline-start:calc(-1 * var(--md-outlined-field-outline-label-padding, 4px));margin-inline-end:var(--md-outlined-field-outline-label-padding, 4px)}.md3-field--outlined .md3-field__outline-end{margin-inline-start:calc(-1 * var(--md-outlined-field-outline-label-padding, 4px))}.md3-field--outlined.md3-field--disabled .md3-field__outline-start,.md3-field--outlined.md3-field--disabled .md3-field__outline-end,.md3-field--outlined.md3-field--disabled .md3-field__outline-panel-inactive{opacity:var(--md-outlined-field-disabled-outline-opacity, 0.12)}.md3-field--outlined .md3-field__outline-notch{max-width:calc(100% - 2 * var(--md-outlined-field-container-padding-horizontal, 16px))}.md3-field--outlined .md3-field__outline-start::before,.md3-field--outlined .md3-field__outline-end::before,.md3-field--outlined .md3-field__outline-panel-inactive,.md3-field--outlined .md3-field__outline-panel-inactive::before,.md3-field--outlined .md3-field__outline-panel-inactive::after{border-width:var(--md-outlined-field-outline-width, 1px)}.md3-field--outlined:hover .md3-field__outline-start::before,.md3-field--outlined:hover .md3-field__outline-end::before,.md3-field--outlined:hover .md3-field__outline-panel-inactive,.md3-field--outlined:hover .md3-field__outline-panel-inactive::before,.md3-field--outlined:hover .md3-field__outline-panel-inactive::after{border-width:var(--md-outlined-field-hover-outline-width, 1px)}.md3-field--outlined .md3-field__outline-start::after,.md3-field--outlined .md3-field__outline-end::after,.md3-field--outlined .md3-field__outline-panel-active,.md3-field--outlined .md3-field__outline-panel-active::before,.md3-field--outlined .md3-field__outline-panel-active::after{border-width:var(--md-outlined-field-focus-outline-width, 2px)}.md3-field--outlined.md3-field--disabled .md3-field__outline-start::before,.md3-field--outlined.md3-field--disabled .md3-field__outline-end::before,.md3-field--outlined.md3-field--disabled .md3-field__outline-panel-inactive,.md3-field--outlined.md3-field--disabled .md3-field__outline-panel-inactive::before,.md3-field--outlined.md3-field--disabled .md3-field__outline-panel-inactive::after{border-width:var(--md-outlined-field-disabled-outline-width, 1px)}/*# sourceMappingURL=outlined-styles.css.map */
|
|
8
|
+
`;
|
|
9
|
+
//# sourceMappingURL=outlined-styles.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outlined-styles.css.js","sourceRoot":"","sources":["outlined-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`.md3-field__outline{display:flex;pointer-events:none;height:100%;position:absolute;width:100%}.md3-field__outline-start::before,.md3-field__outline-start::after,.md3-field__outline-panel-inactive::before,.md3-field__outline-panel-inactive::after,.md3-field__outline-panel-active::before,.md3-field__outline-panel-active::after,.md3-field__outline-end::before,.md3-field__outline-end::after{border:inherit;content:\"\";inset:0;position:absolute}.md3-field__outline-start,.md3-field__outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.md3-field__outline-start::before,.md3-field__outline-start::after,.md3-field__outline-end::before,.md3-field__outline-end::after{border-bottom-style:solid;border-top-style:solid}.md3-field__outline-start::after,.md3-field__outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-field--focused .md3-field__outline-start::after,.md3-field--focused .md3-field__outline-end::after{opacity:1}.md3-field__outline-start::before,.md3-field__outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0}.md3-field__outline-end{flex-grow:1}.md3-field__outline-end::before,.md3-field__outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.md3-field__outline-notch{align-items:flex-start;border:inherit;display:flex;position:relative}.md3-field--no-label .md3-field__outline-notch{display:none}.md3-field__outline-panel-inactive,.md3-field__outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.md3-field__outline-panel-inactive::before,.md3-field__outline-panel-inactive::after,.md3-field__outline-panel-active::before,.md3-field__outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-field__outline-panel-inactive::before,.md3-field__outline-panel-active::before{right:50%;transform-origin:top left}.md3-field__outline-panel-inactive::after,.md3-field__outline-panel-active::after{left:50%;transform-origin:top right}.md3-field--populated .md3-field__outline-panel-inactive::before,.md3-field--populated .md3-field__outline-panel-inactive::after,.md3-field--focused .md3-field__outline-panel-inactive::before,.md3-field--focused .md3-field__outline-panel-inactive::after,.md3-field--populated .md3-field__outline-panel-active::before,.md3-field--populated .md3-field__outline-panel-active::after,.md3-field--focused .md3-field__outline-panel-active::before,.md3-field--focused .md3-field__outline-panel-active::after{transform:scaleX(0)}.md3-field__outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-field--focused .md3-field__outline-panel-active{opacity:1}.md3-field--outlined .md3-field__container{flex-basis:var(--md-outlined-field-container-height, 56px)}.md3-field--outlined .md3-field__content{color:var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:hover .md3-field__content{color:var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--focused .md3-field__content{color:var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--disabled .md3-field__content{color:var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error .md3-field__content{color:var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error:hover .md3-field__content{color:var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__content{color:var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--disabled.md3-field--no-label .md3-field__content,.md3-field--outlined.md3-field--disabled.md3-field--focused .md3-field__content,.md3-field--outlined.md3-field--disabled.md3-field--populated .md3-field__content{opacity:var(--md-outlined-field-disabled-content-opacity, 0.38)}.md3-field--outlined .md3-field__label{color:var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--outlined:hover .md3-field__label{color:var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--focused .md3-field__label{color:var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4))}.md3-field--outlined.md3-field--disabled .md3-field__label{color:var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error .md3-field__label{color:var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error:hover .md3-field__label{color:var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__label{color:var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined .md3-field__label{font-family:var(--md-outlined-field-label-text-font, Roboto);font-weight:var(--md-outlined-field-label-text-weight, 400);letter-spacing:var(--md-outlined-field-label-text-tracking, 0.03125rem)}.md3-field--outlined .md3-field__label--resting{font-size:var(--md-outlined-field-label-text-size, 1rem);line-height:var(--md-outlined-field-label-text-line-height, 1.5rem)}.md3-field--outlined .md3-field__label--floating{font-size:var(--md-outlined-field-label-text-populated-size, 0.75rem);line-height:var(--md-outlined-field-label-text-populated-line-height, 1rem)}.md3-field--outlined.md3-field--disabled .md3-field__label:not(.md3-field__label--hidden){opacity:var(--md-outlined-field-disabled-label-text-opacity, 0.38)}.md3-field--outlined .md3-field__supporting-text{color:var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--outlined:hover .md3-field__supporting-text{color:var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--outlined.md3-field--focus .md3-field__supporting-text{color:var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-field--outlined.md3-field--disabled .md3-field__supporting-text{color:var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error .md3-field__supporting-text{color:var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error:hover .md3-field__supporting-text{color:var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error.md3-field--focus .md3-field__supporting-text{color:var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined .md3-field__supporting-text{font-family:var(--md-outlined-field-supporting-text-font, Roboto);font-size:var(--md-outlined-field-supporting-text-size, 0.75rem);font-weight:var(--md-outlined-field-supporting-text-weight, 400);letter-spacing:var(--md-outlined-field-supporting-text-tracking, 0.025rem);line-height:var(--md-outlined-field-supporting-text-line-height, 1rem)}.md3-field--outlined.md3-field--disabled .md3-field__supporting-text{opacity:var(--md-outlined-field-disabled-supporting-text-opacity, 0.38)}.md3-field--outlined .md3-field__supporting-text{padding:0 var(--md-outlined-field-supporting-text-padding, 16px)}.md3-field--outlined .md3-field__supporting-text-start ::slotted(:not(:empty)),.md3-field--outlined .md3-field__supporting-text-end ::slotted(:not(:empty)){padding-top:var(--md-outlined-field-supporting-text-padding-top, 4px)}.md3-field--outlined .md3-field__supporting-text-end ::slotted(:not(:empty)){padding-inline-start:var(--md-outlined-field-supporting-text-padding, 16px)}.md3-field--outlined .md3-field__label--floating{transform:translateY(calc(-100% + var(--md-outlined-field-label-text-padding-bottom, 8px)))}.md3-field--outlined .md3-field__outline-start,.md3-field--outlined:not(.md3-field--with-start) .md3-field__start{padding-inline-start:max(var(--md-outlined-field-container-padding-horizontal, 16px),max(var(--md-outlined-field-container-shape-start-start, 4px),var(--md-outlined-field-container-shape-end-start, 4px)) + var(--md-outlined-field-outline-label-padding, 4px))}.md3-field--outlined:not(.md3-field--with-end) .md3-field__end{padding-inline-end:max(var(--md-outlined-field-container-padding-horizontal, 16px),max(var(--md-outlined-field-container-shape-start-end, 4px),var(--md-outlined-field-container-shape-end-end, 4px)))}.md3-field--outlined .md3-field__outline{border-start-start-radius:var(--md-outlined-field-container-shape-start-start, 4px);border-start-end-radius:var(--md-outlined-field-container-shape-start-end, 4px);border-end-end-radius:var(--md-outlined-field-container-shape-end-end, 4px);border-end-start-radius:var(--md-outlined-field-container-shape-end-start, 4px)}.md3-field--outlined .md3-field__outline{border-color:var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));color:var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e))}.md3-field--outlined:hover .md3-field__outline{border-color:var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1c1b1f));color:var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined.md3-field--focused .md3-field__outline{border-color:var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));color:var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4))}.md3-field--outlined.md3-field--disabled .md3-field__outline{border-color:var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1c1b1f));color:var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error .md3-field__outline{border-color:var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));color:var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error:hover .md3-field__outline{border-color:var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));color:var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b))}.md3-field--outlined:not(.md3-field--disabled).md3-field--error.md3-field--focused .md3-field__outline{border-color:var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));color:var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e))}.md3-field--outlined .md3-field__outline-start::before,.md3-field--outlined .md3-field__outline-start::after{margin-inline-end:var(--md-outlined-field-outline-label-padding, 4px)}.md3-field--outlined .md3-field__outline-notch{padding:0 var(--md-outlined-field-outline-label-padding, 4px);margin-inline-start:calc(-1 * var(--md-outlined-field-outline-label-padding, 4px));margin-inline-end:var(--md-outlined-field-outline-label-padding, 4px)}.md3-field--outlined .md3-field__outline-end{margin-inline-start:calc(-1 * var(--md-outlined-field-outline-label-padding, 4px))}.md3-field--outlined.md3-field--disabled .md3-field__outline-start,.md3-field--outlined.md3-field--disabled .md3-field__outline-end,.md3-field--outlined.md3-field--disabled .md3-field__outline-panel-inactive{opacity:var(--md-outlined-field-disabled-outline-opacity, 0.12)}.md3-field--outlined .md3-field__outline-notch{max-width:calc(100% - 2 * var(--md-outlined-field-container-padding-horizontal, 16px))}.md3-field--outlined .md3-field__outline-start::before,.md3-field--outlined .md3-field__outline-end::before,.md3-field--outlined .md3-field__outline-panel-inactive,.md3-field--outlined .md3-field__outline-panel-inactive::before,.md3-field--outlined .md3-field__outline-panel-inactive::after{border-width:var(--md-outlined-field-outline-width, 1px)}.md3-field--outlined:hover .md3-field__outline-start::before,.md3-field--outlined:hover .md3-field__outline-end::before,.md3-field--outlined:hover .md3-field__outline-panel-inactive,.md3-field--outlined:hover .md3-field__outline-panel-inactive::before,.md3-field--outlined:hover .md3-field__outline-panel-inactive::after{border-width:var(--md-outlined-field-hover-outline-width, 1px)}.md3-field--outlined .md3-field__outline-start::after,.md3-field--outlined .md3-field__outline-end::after,.md3-field--outlined .md3-field__outline-panel-active,.md3-field--outlined .md3-field__outline-panel-active::before,.md3-field--outlined .md3-field__outline-panel-active::after{border-width:var(--md-outlined-field-focus-outline-width, 2px)}.md3-field--outlined.md3-field--disabled .md3-field__outline-start::before,.md3-field--outlined.md3-field--disabled .md3-field__outline-end::before,.md3-field--outlined.md3-field--disabled .md3-field__outline-panel-inactive,.md3-field--outlined.md3-field--disabled .md3-field__outline-panel-inactive::before,.md3-field--outlined.md3-field--disabled .md3-field__outline-panel-inactive::after{border-width:var(--md-outlined-field-disabled-outline-width, 1px)}/*# sourceMappingURL=outlined-styles.css.map */\n`;\n "]}
|