@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,1329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Selector '.md3-*' should only be used in this project.
|
|
8
|
+
// stylelint-disable selector-class-pattern --
|
|
9
|
+
// Internal styling for Chip MDC component.
|
|
10
|
+
|
|
11
|
+
@use 'sass:map';
|
|
12
|
+
@use 'sass:math';
|
|
13
|
+
@use 'sass:color';
|
|
14
|
+
|
|
15
|
+
@use '@material/web/compat/density/density';
|
|
16
|
+
@use '@material/web/compat/theme/keys';
|
|
17
|
+
@use '@material/web/compat/theme/state';
|
|
18
|
+
@use '@material/web/compat/theme/theme-color';
|
|
19
|
+
@use '@material/web/elevation/lib/elevation-theme';
|
|
20
|
+
@use '@material/web/ripple/ripple-theme';
|
|
21
|
+
@use '@material/web/sass/dom';
|
|
22
|
+
@use '@material/web/sass/resolvers';
|
|
23
|
+
@use '@material/web/sass/theme';
|
|
24
|
+
@use '@material/web/sass/typography';
|
|
25
|
+
// TODO(kainby): Uncomment when styles are traslated to md3 shape.
|
|
26
|
+
// @use '@material/web/sass/shape';
|
|
27
|
+
|
|
28
|
+
$height: 32px;
|
|
29
|
+
$minimum-height: 24px;
|
|
30
|
+
$maximum-height: $height;
|
|
31
|
+
$density-scale: density.$default-scale;
|
|
32
|
+
$density-config: (
|
|
33
|
+
height: (
|
|
34
|
+
default: $height,
|
|
35
|
+
maximum: $maximum-height,
|
|
36
|
+
minimum: $minimum-height,
|
|
37
|
+
),
|
|
38
|
+
);
|
|
39
|
+
$radius: math.div($height, 2);
|
|
40
|
+
$type-scale: body2;
|
|
41
|
+
$container-color: color.mix(
|
|
42
|
+
theme-color.prop-value(on-surface),
|
|
43
|
+
theme-color.prop-value(surface),
|
|
44
|
+
12%
|
|
45
|
+
);
|
|
46
|
+
$text-label-color: rgba(theme-color.prop-value(on-surface), 0.87);
|
|
47
|
+
$icon-color: rgba(theme-color.prop-value(on-surface), 0.87);
|
|
48
|
+
$checkmark-color: rgba(theme-color.prop-value(on-surface), 0.87);
|
|
49
|
+
$trailing-action-color: rgba(theme-color.prop-value(on-surface), 0.87);
|
|
50
|
+
$ripple-color: on-surface;
|
|
51
|
+
$checkmark-size: 20px;
|
|
52
|
+
$leading-icon-size: 20px;
|
|
53
|
+
$trailing-action-size: 18px;
|
|
54
|
+
$leading-padding: 12px;
|
|
55
|
+
$trailing-padding: 12px;
|
|
56
|
+
$avatar-size: 24px;
|
|
57
|
+
$avatar-leading-padding: 4px;
|
|
58
|
+
$avatar-trailing-padding: 8px;
|
|
59
|
+
$graphic-leading-padding: 6px;
|
|
60
|
+
$graphic-trailing-padding: 6px;
|
|
61
|
+
$trailing-action-leading-padding: 8px;
|
|
62
|
+
$trailing-action-trailing-padding: 8px;
|
|
63
|
+
$ripple-target: '.md3-chip__ripple';
|
|
64
|
+
$ripple-target-primary: '.md3-chip__ripple--primary';
|
|
65
|
+
$ripple-target-trailing: '.md3-chip__ripple--trailing';
|
|
66
|
+
|
|
67
|
+
// Filter chip colors
|
|
68
|
+
$filter-selected-container-color: color.mix(
|
|
69
|
+
theme-color.prop-value(on-surface),
|
|
70
|
+
$container-color,
|
|
71
|
+
8%
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
$_light-theme: (
|
|
75
|
+
container-elevation: null,
|
|
76
|
+
container-height: null,
|
|
77
|
+
container-shadow-color: null,
|
|
78
|
+
container-shape: null,
|
|
79
|
+
disabled-label-text-color: null,
|
|
80
|
+
disabled-label-text-opacity: null,
|
|
81
|
+
disabled-outline-color: null,
|
|
82
|
+
disabled-outline-opacity: null,
|
|
83
|
+
elevated-container-color: null,
|
|
84
|
+
elevated-container-elevation: null,
|
|
85
|
+
elevated-container-shadow-color: null,
|
|
86
|
+
container-surface-tint-layer-color: null,
|
|
87
|
+
elevated-disabled-container-color: null,
|
|
88
|
+
elevated-disabled-container-elevation: null,
|
|
89
|
+
elevated-disabled-container-opacity: null,
|
|
90
|
+
elevated-focus-container-elevation: null,
|
|
91
|
+
elevated-hover-container-elevation: null,
|
|
92
|
+
elevated-pressed-container-elevation: null,
|
|
93
|
+
elevated-selected-container-color: null,
|
|
94
|
+
elevated-selected-container-elevation: null,
|
|
95
|
+
elevated-unselected-container-color: null,
|
|
96
|
+
flat-container-elevation: null,
|
|
97
|
+
flat-disabled-outline-color: null,
|
|
98
|
+
flat-disabled-outline-opacity: null,
|
|
99
|
+
flat-disabled-selected-outline-color: null,
|
|
100
|
+
flat-disabled-selected-outline-opacity: null,
|
|
101
|
+
flat-disabled-unselected-outline-color: null,
|
|
102
|
+
flat-disabled-unselected-outline-opacity: null,
|
|
103
|
+
flat-focus-outline-color: null,
|
|
104
|
+
flat-outline-color: null,
|
|
105
|
+
flat-outline-width: null,
|
|
106
|
+
flat-selected-container-color: null,
|
|
107
|
+
flat-selected-focus-container-elevation: null,
|
|
108
|
+
flat-selected-hover-container-elevation: null,
|
|
109
|
+
flat-selected-outline-color: null,
|
|
110
|
+
flat-selected-outline-width: null,
|
|
111
|
+
flat-selected-pressed-container-elevation: null,
|
|
112
|
+
flat-unselected-focus-container-elevation: null,
|
|
113
|
+
flat-unselected-focus-outline-color: null,
|
|
114
|
+
flat-unselected-hover-container-elevation: null,
|
|
115
|
+
flat-unselected-outline-color: null,
|
|
116
|
+
flat-unselected-outline-width: null,
|
|
117
|
+
flat-unselected-pressed-container-elevation: null,
|
|
118
|
+
focus-label-text-color: null,
|
|
119
|
+
focus-outline-color: null,
|
|
120
|
+
focus-state-layer-color: null,
|
|
121
|
+
focus-state-layer-opacity: null,
|
|
122
|
+
hover-label-text-color: null,
|
|
123
|
+
hover-state-layer-color: null,
|
|
124
|
+
hover-state-layer-opacity: null,
|
|
125
|
+
label-text-color: null,
|
|
126
|
+
label-text-font: null,
|
|
127
|
+
label-text-line-height: null,
|
|
128
|
+
label-text-size: null,
|
|
129
|
+
label-text-tracking: null,
|
|
130
|
+
label-text-weight: null,
|
|
131
|
+
outline-color: null,
|
|
132
|
+
outline-width: null,
|
|
133
|
+
pressed-label-text-color: null,
|
|
134
|
+
pressed-state-layer-color: null,
|
|
135
|
+
pressed-state-layer-opacity: null,
|
|
136
|
+
selected-focus-label-text-color: null,
|
|
137
|
+
selected-focus-state-layer-color: null,
|
|
138
|
+
selected-focus-state-layer-opacity: null,
|
|
139
|
+
selected-hover-label-text-color: null,
|
|
140
|
+
selected-hover-state-layer-color: null,
|
|
141
|
+
selected-hover-state-layer-opacity: null,
|
|
142
|
+
selected-label-text-color: null,
|
|
143
|
+
selected-pressed-label-text-color: null,
|
|
144
|
+
selected-pressed-state-layer-color: null,
|
|
145
|
+
selected-pressed-state-layer-opacity: null,
|
|
146
|
+
unselected-focus-label-text-color: null,
|
|
147
|
+
unselected-focus-state-layer-color: null,
|
|
148
|
+
unselected-focus-state-layer-opacity: null,
|
|
149
|
+
unselected-hover-label-text-color: null,
|
|
150
|
+
unselected-hover-state-layer-color: null,
|
|
151
|
+
unselected-hover-state-layer-opacity: null,
|
|
152
|
+
unselected-label-text-color: null,
|
|
153
|
+
unselected-pressed-label-text-color: null,
|
|
154
|
+
unselected-pressed-state-layer-color: null,
|
|
155
|
+
unselected-pressed-state-layer-opacity: null,
|
|
156
|
+
with-avatar-avatar-shape: null,
|
|
157
|
+
with-avatar-avatar-size: null,
|
|
158
|
+
with-avatar-disabled-avatar-opacity: null,
|
|
159
|
+
with-icon-disabled-icon-color: null,
|
|
160
|
+
with-icon-disabled-icon-opacity: null,
|
|
161
|
+
with-icon-focus-icon-color: null,
|
|
162
|
+
with-icon-hover-icon-color: null,
|
|
163
|
+
with-icon-icon-color: null,
|
|
164
|
+
with-icon-icon-size: null,
|
|
165
|
+
with-icon-pressed-icon-color: null,
|
|
166
|
+
with-icon-selected-focus-icon-color: null,
|
|
167
|
+
with-icon-selected-hover-icon-color: null,
|
|
168
|
+
with-icon-selected-icon-color: null,
|
|
169
|
+
with-icon-selected-pressed-icon-color: null,
|
|
170
|
+
with-icon-unselected-focus-icon-color: null,
|
|
171
|
+
with-icon-unselected-hover-icon-color: null,
|
|
172
|
+
with-icon-unselected-icon-color: null,
|
|
173
|
+
with-icon-unselected-pressed-icon-color: null,
|
|
174
|
+
with-leading-icon-disabled-leading-icon-color: null,
|
|
175
|
+
with-leading-icon-disabled-leading-icon-opacity: null,
|
|
176
|
+
with-leading-icon-focus-leading-icon-color: null,
|
|
177
|
+
with-leading-icon-hover-leading-icon-color: null,
|
|
178
|
+
with-leading-icon-leading-icon-color: null,
|
|
179
|
+
with-leading-icon-leading-icon-size: null,
|
|
180
|
+
with-leading-icon-pressed-leading-icon-color: null,
|
|
181
|
+
with-trailing-icon-disabled-trailing-icon-color: null,
|
|
182
|
+
with-trailing-icon-disabled-trailing-icon-opacity: null,
|
|
183
|
+
with-trailing-icon-focus-trailing-icon-color: null,
|
|
184
|
+
with-trailing-icon-hover-trailing-icon-color: null,
|
|
185
|
+
with-trailing-icon-pressed-trailing-icon-color: null,
|
|
186
|
+
with-trailing-icon-trailing-icon-color: null,
|
|
187
|
+
with-trailing-icon-trailing-icon-size: null,
|
|
188
|
+
);
|
|
189
|
+
$_custom-property-prefix: 'chip';
|
|
190
|
+
|
|
191
|
+
@mixin theme($theme, $resolvers: resolvers.$material) {
|
|
192
|
+
@include theme.validate-theme($_light-theme, $theme);
|
|
193
|
+
$theme: _resolve-theme($theme, $resolvers: $resolvers);
|
|
194
|
+
@include keys.declare-custom-properties(
|
|
195
|
+
$theme,
|
|
196
|
+
$prefix: $_custom-property-prefix
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@mixin theme-styles($theme, $resolvers: resolvers.$material) {
|
|
201
|
+
@include theme.validate-theme-keys($_light-theme, $theme);
|
|
202
|
+
$theme: keys.create-theme-properties(
|
|
203
|
+
$theme,
|
|
204
|
+
$prefix: $_custom-property-prefix
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
@include _container-shape(map.get($theme, container-shape));
|
|
208
|
+
@include _avatar-shape(map.get($theme, with-avatar-avatar-shape));
|
|
209
|
+
@include graphic-size(map.get($theme, with-avatar-avatar-size));
|
|
210
|
+
@include height(map.get($theme, container-height));
|
|
211
|
+
@include elevation-theme.theme-styles((
|
|
212
|
+
surface-tint-layer-color:
|
|
213
|
+
map.get($theme, container-surface-tint-layer-color),
|
|
214
|
+
));
|
|
215
|
+
@include _container-elevation(
|
|
216
|
+
map.get($resolvers, elevation),
|
|
217
|
+
$shadow-color: map.get($theme, container-shadow-color),
|
|
218
|
+
$map: (default: map.get($theme, container-elevation))
|
|
219
|
+
);
|
|
220
|
+
@include _container-elevation(
|
|
221
|
+
map.get($resolvers, elevation),
|
|
222
|
+
$shadow-color: map.get($theme, flat-container-shadow-color),
|
|
223
|
+
$map: (enabled: map.get($theme, flat-container-elevation))
|
|
224
|
+
);
|
|
225
|
+
@include _container-elevation(
|
|
226
|
+
map.get($resolvers, elevation),
|
|
227
|
+
$shadow-color: map.get($theme, elevated-container-shadow-color),
|
|
228
|
+
$map: (
|
|
229
|
+
enabled: map.get($theme, elevated-container-elevation),
|
|
230
|
+
disabled: map.get($theme, elevated-disabled-container-elevation),
|
|
231
|
+
hover: map.get($theme, elevated-hover-container-elevation),
|
|
232
|
+
focus: map.get($theme, elevated-focus-container-elevation),
|
|
233
|
+
pressed: map.get($theme, elevated-pressed-container-elevation)
|
|
234
|
+
)
|
|
235
|
+
);
|
|
236
|
+
@include _selected-container-elevation(
|
|
237
|
+
map.get($resolvers, elevation),
|
|
238
|
+
$shadow-color: map.get($theme, elevated-container-shadow-color),
|
|
239
|
+
$map: (
|
|
240
|
+
enabled: map.get($theme, elevated-selected-container-elevation),
|
|
241
|
+
disabled: map.get($theme, elevated-selected-disabled-container-elevation),
|
|
242
|
+
hover: map.get($theme, elevated-selected-hover-container-elevation),
|
|
243
|
+
focus: map.get($theme, elevated-selected-focus-container-elevation),
|
|
244
|
+
pressed: map.get($theme, elevated-selected-pressed-container-elevation)
|
|
245
|
+
)
|
|
246
|
+
);
|
|
247
|
+
@include _selected-container-elevation(
|
|
248
|
+
map.get($resolvers, elevation),
|
|
249
|
+
$shadow-color: map.get($theme, elevated-container-shadow-color),
|
|
250
|
+
$map: (
|
|
251
|
+
enabled: map.get($theme, flat-selected-container-elevation),
|
|
252
|
+
disabled: map.get($theme, flat-selected-disabled-container-elevation),
|
|
253
|
+
hover: map.get($theme, flat-selected-hover-container-elevation),
|
|
254
|
+
focus: map.get($theme, flat-selected-focus-container-elevation),
|
|
255
|
+
pressed: map.get($theme, flat-selected-pressed-container-elevation)
|
|
256
|
+
)
|
|
257
|
+
);
|
|
258
|
+
@include _unselected-container-elevation(
|
|
259
|
+
map.get($resolvers, elevation),
|
|
260
|
+
$shadow-color: map.get($theme, elevated-container-shadow-color),
|
|
261
|
+
$map: (
|
|
262
|
+
enabled: map.get($theme, flat-unselected-container-elevation),
|
|
263
|
+
disabled: map.get($theme, flat-unselected-disabled-container-elevation),
|
|
264
|
+
hover: map.get($theme, flat-unselected-hover-container-elevation),
|
|
265
|
+
focus: map.get($theme, flat-unselected-focus-container-elevation),
|
|
266
|
+
pressed: map.get($theme, flat-unselected-pressed-container-elevation)
|
|
267
|
+
)
|
|
268
|
+
);
|
|
269
|
+
@include outline-color(
|
|
270
|
+
(
|
|
271
|
+
enabled: map.get($theme, flat-outline-color),
|
|
272
|
+
focus: map.get($theme, flat-focus-outline-color),
|
|
273
|
+
disabled: map.get($theme, flat-disabled-outline-color),
|
|
274
|
+
)
|
|
275
|
+
);
|
|
276
|
+
@include selected-outline-color(
|
|
277
|
+
(
|
|
278
|
+
enabled: map.get($theme, flat-selected-outline-color),
|
|
279
|
+
disabled: map.get($theme, flat-disabled-selected-outline-color),
|
|
280
|
+
)
|
|
281
|
+
);
|
|
282
|
+
@include _unselected-outline-color(
|
|
283
|
+
(
|
|
284
|
+
disabled: map.get($theme, flat-disabled-unselected-outline-color),
|
|
285
|
+
focus: map.get($theme, flat-unselected-focus-outline-color),
|
|
286
|
+
enabled: map.get($theme, flat-unselected-outline-color),
|
|
287
|
+
)
|
|
288
|
+
);
|
|
289
|
+
@include outline-width(map.get($theme, outline-width));
|
|
290
|
+
@include outline-width(map.get($theme, flat-outline-width));
|
|
291
|
+
@include _selected-outline-width(
|
|
292
|
+
map.get($theme, flat-selected-outline-width)
|
|
293
|
+
);
|
|
294
|
+
@include _unselected-outline-width(
|
|
295
|
+
map.get($theme, flat-unselected-outline-width)
|
|
296
|
+
);
|
|
297
|
+
@include container-color(
|
|
298
|
+
(
|
|
299
|
+
enabled: map.get($theme, elevated-container-color),
|
|
300
|
+
disabled: map.get($theme, elevated-disabled-container-color),
|
|
301
|
+
)
|
|
302
|
+
);
|
|
303
|
+
@include selected-container-color(
|
|
304
|
+
(
|
|
305
|
+
enabled: map.get($theme, elevated-selected-container-color),
|
|
306
|
+
)
|
|
307
|
+
);
|
|
308
|
+
@include selected-container-color(
|
|
309
|
+
(
|
|
310
|
+
enabled: map.get($theme, flat-selected-container-color),
|
|
311
|
+
)
|
|
312
|
+
);
|
|
313
|
+
@include _unselected-container-color(
|
|
314
|
+
(
|
|
315
|
+
enabled: map.get($theme, elevated-unselected-container-color),
|
|
316
|
+
)
|
|
317
|
+
);
|
|
318
|
+
@include _label-text-typography(
|
|
319
|
+
(
|
|
320
|
+
font: map.get($theme, label-text-font),
|
|
321
|
+
line-height: map.get($theme, label-text-line-height),
|
|
322
|
+
size: map.get($theme, label-text-size),
|
|
323
|
+
weight: map.get($theme, label-text-weight),
|
|
324
|
+
tracking: map.get($theme, label-text-tracking),
|
|
325
|
+
)
|
|
326
|
+
);
|
|
327
|
+
@include text-label-color(
|
|
328
|
+
(
|
|
329
|
+
enabled: map.get($theme, label-text-color),
|
|
330
|
+
hover: map.get($theme, hover-label-text-color),
|
|
331
|
+
focus: map.get($theme, focus-label-text-color),
|
|
332
|
+
pressed: map.get($theme, pressed-label-text-color),
|
|
333
|
+
disabled: map.get($theme, disabled-label-text-color),
|
|
334
|
+
)
|
|
335
|
+
);
|
|
336
|
+
@include selected-text-label-color(
|
|
337
|
+
(
|
|
338
|
+
enabled: map.get($theme, selected-label-text-color),
|
|
339
|
+
hover: map.get($theme, selected-hover-label-text-color),
|
|
340
|
+
focus: map.get($theme, selected-focus-label-text-color),
|
|
341
|
+
pressed: map.get($theme, selected-pressed-label-text-color),
|
|
342
|
+
disabled: map.get($theme, selected-disabled-label-text-color),
|
|
343
|
+
)
|
|
344
|
+
);
|
|
345
|
+
@include _unselected-text-label-color(
|
|
346
|
+
(
|
|
347
|
+
enabled: map.get($theme, unselected-label-text-color),
|
|
348
|
+
hover: map.get($theme, unselected-hover-label-text-color),
|
|
349
|
+
focus: map.get($theme, unselected-focus-label-text-color),
|
|
350
|
+
pressed: map.get($theme, unselected-pressed-label-text-color),
|
|
351
|
+
disabled: map.get($theme, unselected-disabled-label-text-color),
|
|
352
|
+
)
|
|
353
|
+
);
|
|
354
|
+
|
|
355
|
+
@include icon-size(map.get($theme, with-icon-icon-size));
|
|
356
|
+
@include icon-color(
|
|
357
|
+
(
|
|
358
|
+
enabled: map.get($theme, with-icon-icon-color),
|
|
359
|
+
disabled: map.get($theme, with-icon-disabled-icon-color),
|
|
360
|
+
hover: map.get($theme, with-icon-hover-icon-color),
|
|
361
|
+
focus: map.get($theme, with-icon-focus-icon-color),
|
|
362
|
+
pressed: map.get($theme, with-icon-pressed-icon-color),
|
|
363
|
+
)
|
|
364
|
+
);
|
|
365
|
+
@include _selected-icon-color(
|
|
366
|
+
(
|
|
367
|
+
enabled: map.get($theme, with-icon-selected-icon-color),
|
|
368
|
+
disabled: map.get($theme, with-icon-selected-disabled-icon-color),
|
|
369
|
+
hover: map.get($theme, with-icon-selected-hover-icon-color),
|
|
370
|
+
focus: map.get($theme, with-icon-selected-focus-icon-color),
|
|
371
|
+
pressed: map.get($theme, with-icon-selected-pressed-icon-color),
|
|
372
|
+
)
|
|
373
|
+
);
|
|
374
|
+
@include _unselected-icon-color(
|
|
375
|
+
(
|
|
376
|
+
enabled: map.get($theme, with-icon-unselected-icon-color),
|
|
377
|
+
disabled: map.get($theme, with-icon-unselected-disabled-icon-color),
|
|
378
|
+
hover: map.get($theme, with-icon-unselected-hover-icon-color),
|
|
379
|
+
focus: map.get($theme, with-icon-unselected-focus-icon-color),
|
|
380
|
+
pressed: map.get($theme, with-icon-unselected-pressed-icon-color),
|
|
381
|
+
)
|
|
382
|
+
);
|
|
383
|
+
@include icon-color(
|
|
384
|
+
(
|
|
385
|
+
disabled: map.get($theme, with-leading-icon-disabled-leading-icon-color),
|
|
386
|
+
focus: map.get($theme, with-leading-icon-focus-leading-icon-color),
|
|
387
|
+
hover: map.get($theme, with-leading-icon-hover-leading-icon-color),
|
|
388
|
+
enabled: map.get($theme, with-leading-icon-leading-icon-color),
|
|
389
|
+
pressed: map.get($theme, with-leading-icon-pressed-leading-icon-color),
|
|
390
|
+
)
|
|
391
|
+
);
|
|
392
|
+
@include trailing-action-color(
|
|
393
|
+
(
|
|
394
|
+
disabled: map.get($theme, with-trailing-icon-disabled-trailing-icon-color),
|
|
395
|
+
focus: map.get($theme, with-trailing-icon-focus-trailing-icon-color),
|
|
396
|
+
hover: map.get($theme, with-trailing-icon-hover-trailing-icon-color),
|
|
397
|
+
enabled: map.get($theme, with-trailing-icon-trailing-icon-color),
|
|
398
|
+
pressed: map.get($theme, with-trailing-icon-pressed-trailing-icon-color),
|
|
399
|
+
)
|
|
400
|
+
);
|
|
401
|
+
@include _ripple-theme(
|
|
402
|
+
(
|
|
403
|
+
focus-state-layer-color: map.get($theme, focus-state-layer-color),
|
|
404
|
+
focus-state-layer-opacity: map.get($theme, focus-state-layer-opacity),
|
|
405
|
+
hover-state-layer-color: map.get($theme, hover-state-layer-color),
|
|
406
|
+
hover-state-layer-opacity: map.get($theme, hover-state-layer-opacity),
|
|
407
|
+
pressed-state-layer-color: map.get($theme, pressed-state-layer-color),
|
|
408
|
+
pressed-state-layer-opacity: map.get($theme, pressed-state-layer-opacity),
|
|
409
|
+
)
|
|
410
|
+
);
|
|
411
|
+
@include _selected-ripple-theme(
|
|
412
|
+
(
|
|
413
|
+
focus-state-layer-color: map.get($theme, selected-focus-state-layer-color),
|
|
414
|
+
focus-state-layer-opacity:
|
|
415
|
+
map.get($theme, selected-focus-state-layer-opacity),
|
|
416
|
+
hover-state-layer-color: map.get($theme, selected-hover-state-layer-color),
|
|
417
|
+
hover-state-layer-opacity:
|
|
418
|
+
map.get($theme, selected-hover-state-layer-opacity),
|
|
419
|
+
pressed-state-layer-color:
|
|
420
|
+
map.get($theme, selected-pressed-state-layer-color),
|
|
421
|
+
pressed-state-layer-opacity:
|
|
422
|
+
map.get($theme, selected-pressed-state-layer-opacity),
|
|
423
|
+
)
|
|
424
|
+
);
|
|
425
|
+
@include _unselected-ripple-theme(
|
|
426
|
+
(
|
|
427
|
+
focus-state-layer-color:
|
|
428
|
+
map.get($theme, unselected-focus-state-layer-color),
|
|
429
|
+
focus-state-layer-opacity:
|
|
430
|
+
map.get($theme, unselected-focus-state-layer-opacity),
|
|
431
|
+
hover-state-layer-color:
|
|
432
|
+
map.get($theme, unselected-hover-state-layer-color),
|
|
433
|
+
hover-state-layer-opacity:
|
|
434
|
+
map.get($theme, unselected-hover-state-layer-opacity),
|
|
435
|
+
pressed-state-layer-color:
|
|
436
|
+
map.get($theme, unselected-pressed-state-layer-color),
|
|
437
|
+
pressed-state-layer-opacity:
|
|
438
|
+
map.get($theme, unselected-pressed-state-layer-opacity),
|
|
439
|
+
)
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
@function _resolve-theme($theme, $resolvers) {
|
|
444
|
+
$theme: elevation-theme.resolve-theme(
|
|
445
|
+
$theme,
|
|
446
|
+
map.get($resolvers, elevation),
|
|
447
|
+
$shadow-color-token: elevated-container-shadow-color,
|
|
448
|
+
$elevation-tokens: (
|
|
449
|
+
container-elevation,
|
|
450
|
+
elevated-container-elevation,
|
|
451
|
+
elevated-disabled-container-elevation,
|
|
452
|
+
elevated-focus-container-elevation,
|
|
453
|
+
elevated-hover-container-elevation,
|
|
454
|
+
elevated-pressed-container-elevation,
|
|
455
|
+
elevated-selected-container-elevation,
|
|
456
|
+
flat-container-elevation,
|
|
457
|
+
flat-selected-focus-container-elevation,
|
|
458
|
+
flat-selected-hover-container-elevation,
|
|
459
|
+
flat-selected-pressed-container-elevation,
|
|
460
|
+
flat-unselected-focus-container-elevation,
|
|
461
|
+
flat-unselected-hover-container-elevation,
|
|
462
|
+
flat-unselected-pressed-container-elevation
|
|
463
|
+
)
|
|
464
|
+
);
|
|
465
|
+
@return $theme;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
@mixin _ripple-theme($ripple-theme) {
|
|
469
|
+
.md3-chip__action--primary {
|
|
470
|
+
@include ripple-theme.theme(
|
|
471
|
+
(
|
|
472
|
+
focus-state-layer-color: map.get($ripple-theme, focus-state-layer-color),
|
|
473
|
+
focus-state-layer-opacity:
|
|
474
|
+
map.get($ripple-theme, focus-state-layer-opacity),
|
|
475
|
+
hover-state-layer-color: map.get($ripple-theme, hover-state-layer-color),
|
|
476
|
+
hover-state-layer-opacity:
|
|
477
|
+
map.get($ripple-theme, hover-state-layer-opacity),
|
|
478
|
+
pressed-state-layer-color:
|
|
479
|
+
map.get($ripple-theme, pressed-state-layer-color),
|
|
480
|
+
pressed-state-layer-opacity:
|
|
481
|
+
map.get($ripple-theme, pressed-state-layer-opacity),
|
|
482
|
+
),
|
|
483
|
+
$ripple-target: $ripple-target
|
|
484
|
+
);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
@mixin _selected-ripple-theme($ripple-theme) {
|
|
489
|
+
@include _is-selected() {
|
|
490
|
+
@include _ripple-theme($ripple-theme);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
@mixin _unselected-ripple-theme($ripple-theme) {
|
|
495
|
+
@include _is-unselected() {
|
|
496
|
+
@include _ripple-theme($ripple-theme);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
///
|
|
501
|
+
/// Sets the ripple color of the chip.
|
|
502
|
+
/// @param {Color} $color - The color of the ripple.
|
|
503
|
+
/// @param {Map} $opacity-map [null] - The optional opacity map for the states.
|
|
504
|
+
///
|
|
505
|
+
@mixin ripple-color($color, $opacity-map: null) {
|
|
506
|
+
@include _ripple-color($color, $opacity-map);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
///
|
|
510
|
+
/// Sets the selected ripple color of the chip.
|
|
511
|
+
/// @param {Color} $color - The color of the ripple.
|
|
512
|
+
/// @param {Map} $opacity-map [null] - The optional opacity map for the states.
|
|
513
|
+
///
|
|
514
|
+
@mixin selected-ripple-color($color, $opacity-map: null) {
|
|
515
|
+
&.md3-chip--selected {
|
|
516
|
+
@include ripple-color($color, $opacity-map);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
@mixin _ripple-color($color, $opacity-map) {
|
|
521
|
+
.md3-chip__action--primary {
|
|
522
|
+
// TODO(kainby): Translate to md3 ripple
|
|
523
|
+
// @include ripple-theme.states(
|
|
524
|
+
// $color: $color,
|
|
525
|
+
// $opacity-map: $opacity-map,
|
|
526
|
+
// $ripple-target: $ripple-target
|
|
527
|
+
// );
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
///
|
|
532
|
+
/// Sets the ripple color of the chip's trailing action.
|
|
533
|
+
/// @param {Color} $color - The color of the ripple.
|
|
534
|
+
/// @param {Map} $opacity-map [null] - The optional opacity map for the states.
|
|
535
|
+
///
|
|
536
|
+
@mixin trailing-action-ripple-color($color, $opacity-map: null) {
|
|
537
|
+
.md3-chip__action--trailing {
|
|
538
|
+
// TODO(kainby): Translate to md3 ripple
|
|
539
|
+
// @include ripple-theme.states(
|
|
540
|
+
// $color: $color,
|
|
541
|
+
// $opacity-map: $opacity-map,
|
|
542
|
+
// $ripple-target: $ripple-target
|
|
543
|
+
// );
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
///
|
|
548
|
+
/// Sets the size of the trailing action's ripple.
|
|
549
|
+
/// @param {Number} $size - The size of the ripple.
|
|
550
|
+
///
|
|
551
|
+
@mixin trailing-action-ripple-size($size) {
|
|
552
|
+
.md3-chip__ripple--trailing {
|
|
553
|
+
height: $size;
|
|
554
|
+
width: $size;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
///
|
|
559
|
+
/// Sets the density scale for the chip.
|
|
560
|
+
/// @param {Number | String} $density-scale - Density scale value for component.
|
|
561
|
+
/// Supported density scale values are `-2`, `-1`, `0`.
|
|
562
|
+
///
|
|
563
|
+
@mixin density($density-scale) {
|
|
564
|
+
$height: density.prop-value(
|
|
565
|
+
$density-config: $density-config,
|
|
566
|
+
$density-scale: $density-scale,
|
|
567
|
+
$property-name: height,
|
|
568
|
+
);
|
|
569
|
+
|
|
570
|
+
@include height($height);
|
|
571
|
+
|
|
572
|
+
@if $density-scale != 0 {
|
|
573
|
+
@include _reset-touch-target();
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
///
|
|
578
|
+
/// Resets touch target-related styles. This is called from the density mixin to
|
|
579
|
+
/// automatically remove the increased touch target, since dense components
|
|
580
|
+
/// don't have the same default a11y requirements.
|
|
581
|
+
/// @access private
|
|
582
|
+
///
|
|
583
|
+
@mixin _reset-touch-target() {
|
|
584
|
+
.md3-chip__action-touch {
|
|
585
|
+
display: none;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
///
|
|
590
|
+
/// Sets custom height for the chip.
|
|
591
|
+
/// @param {Number} $height - The height of the chip.
|
|
592
|
+
///
|
|
593
|
+
@mixin height($height) {
|
|
594
|
+
height: $height;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
@mixin _container-shape($radius) {
|
|
598
|
+
// TODO(kainby): Translate to md3 shape
|
|
599
|
+
// @include shape.radius($radius);
|
|
600
|
+
|
|
601
|
+
#{$ripple-target} {
|
|
602
|
+
// TODO(kainby): Translate to md3 shape
|
|
603
|
+
// @include shape.radius($radius);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.md3-chip__action--primary:before {
|
|
607
|
+
// TODO(kainby): Translate to md3 shape
|
|
608
|
+
// @include shape.radius($radius);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
@mixin _avatar-shape($radius) {
|
|
613
|
+
.md3-chip__icon--primary {
|
|
614
|
+
// TODO(kainby): Translate to md3 shape
|
|
615
|
+
// @include shape.radius($radius);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
///
|
|
620
|
+
/// Sets the shape radius of the chip.
|
|
621
|
+
/// @param {Number|List} $radius - Shape radius in `border-radius` CSS format.
|
|
622
|
+
/// @param {Boolean} $rtl-reflexive - True flips radius corners in RTL.
|
|
623
|
+
///
|
|
624
|
+
@mixin shape-radius(
|
|
625
|
+
$radius,
|
|
626
|
+
$rtl-reflexive: false,
|
|
627
|
+
$density-scale: $density-scale
|
|
628
|
+
) {
|
|
629
|
+
$height: density.prop-value(
|
|
630
|
+
$density-config: $density-config,
|
|
631
|
+
$density-scale: $density-scale,
|
|
632
|
+
$property-name: height,
|
|
633
|
+
);
|
|
634
|
+
|
|
635
|
+
// TODO(kainby): Translate to md3 shape
|
|
636
|
+
// @include shape.radius(
|
|
637
|
+
// $radius,
|
|
638
|
+
// $rtl-reflexive,
|
|
639
|
+
// $component-height: $height,
|
|
640
|
+
// );
|
|
641
|
+
|
|
642
|
+
// #{$ripple-target} {
|
|
643
|
+
// @include shape.radius(
|
|
644
|
+
// $radius,
|
|
645
|
+
// $rtl-reflexive,
|
|
646
|
+
// $component-height: $height,
|
|
647
|
+
// );
|
|
648
|
+
// }
|
|
649
|
+
|
|
650
|
+
// .md3-chip__action--primary:before {
|
|
651
|
+
// @include shape.radius(
|
|
652
|
+
// $radius,
|
|
653
|
+
// $rtl-reflexive,
|
|
654
|
+
// $component-height: $height,
|
|
655
|
+
// );
|
|
656
|
+
// }
|
|
657
|
+
|
|
658
|
+
// .md3-chip__icon--primary {
|
|
659
|
+
// @include shape.radius(
|
|
660
|
+
// $radius,
|
|
661
|
+
// $rtl-reflexive,
|
|
662
|
+
// $component-height: $height,
|
|
663
|
+
// );
|
|
664
|
+
// }
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
///
|
|
668
|
+
/// Sets the width of the chip outline.
|
|
669
|
+
/// @param {Number} $width - The width of the chip outline.
|
|
670
|
+
///
|
|
671
|
+
@mixin outline-width($width) {
|
|
672
|
+
.md3-chip__action--primary:before {
|
|
673
|
+
border-width: $width;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
@mixin _selected-outline-width($width) {
|
|
678
|
+
@include _is-selected() {
|
|
679
|
+
@include outline-width($width);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
@mixin _unselected-outline-width($width) {
|
|
684
|
+
@include _is-unselected() {
|
|
685
|
+
@include outline-width($width);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
///
|
|
690
|
+
/// Customizes the outline color, using a Color or state Map.
|
|
691
|
+
/// - To set only the default color, provide a single Color.
|
|
692
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
693
|
+
/// - Supported state Map keys: `default`, `enabled`, `focus`, `disabled`.
|
|
694
|
+
///
|
|
695
|
+
/// @example
|
|
696
|
+
/// @include outline-color(blue);
|
|
697
|
+
/// @include outline-color((disabled: gray));
|
|
698
|
+
///
|
|
699
|
+
/// @param {Color | Map} $color-or-map - The outline's color or a state Map
|
|
700
|
+
///
|
|
701
|
+
@mixin outline-color($color-or-map) {
|
|
702
|
+
@include _outline-color(state.get-default-state($color-or-map));
|
|
703
|
+
@include _is-enabled() {
|
|
704
|
+
@include _outline-color(state.get-enabled-state($color-or-map));
|
|
705
|
+
}
|
|
706
|
+
@include _focus-outline-color(state.get-focus-state($color-or-map));
|
|
707
|
+
@include _is-disabled() {
|
|
708
|
+
@include _outline-color(state.get-disabled-state($color-or-map));
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
@mixin _selected-outline-color($color-or-map) {
|
|
713
|
+
@include _is-selected() {
|
|
714
|
+
@include _outline-color($color-or-map);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
///
|
|
719
|
+
/// Customizes the selected outline color, using a Color or state Map.
|
|
720
|
+
/// - To set only the default color, provide a single Color.
|
|
721
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
722
|
+
/// - Supported state Map keys: `default`, `enabled`, `focus`, `disabled`.
|
|
723
|
+
///
|
|
724
|
+
/// @example
|
|
725
|
+
/// @include selected-outline-color(blue);
|
|
726
|
+
/// @include selected-outline-color((disabled: gray));
|
|
727
|
+
///
|
|
728
|
+
/// @param {Color | Map} $color-or-map - The outline's color or a state Map
|
|
729
|
+
///
|
|
730
|
+
@mixin selected-outline-color($color-or-map) {
|
|
731
|
+
@include _is-selected() {
|
|
732
|
+
@include outline-color($color-or-map);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
@mixin _unselected-outline-color($color-or-map) {
|
|
737
|
+
@include _is-unselected() {
|
|
738
|
+
@include outline-color($color-or-map);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
@mixin _outline-color($color) {
|
|
743
|
+
.md3-chip__action--primary:before {
|
|
744
|
+
@if $color {
|
|
745
|
+
border-color: $color;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
// TODO(b/206694742): Find a better solution.
|
|
749
|
+
@if $color == transparent {
|
|
750
|
+
@include dom.forced-colors-mode() {
|
|
751
|
+
border-color: CanvasText;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
@mixin _focus-outline-color($color) {
|
|
758
|
+
.md3-chip__action--primary:not(.md3-chip__action--presentational) {
|
|
759
|
+
// TODO(kainby): Translate to md3 ripple
|
|
760
|
+
// @include ripple-theme.focus() {
|
|
761
|
+
// &:before {
|
|
762
|
+
// @if $color {
|
|
763
|
+
// border-color: $color;
|
|
764
|
+
// }
|
|
765
|
+
// }
|
|
766
|
+
// }
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
///
|
|
771
|
+
/// Sets the style of the chip outline.
|
|
772
|
+
/// @param {String} $style - The style of the chip outline.
|
|
773
|
+
///
|
|
774
|
+
@mixin outline-style($style) {
|
|
775
|
+
.md3-chip__action--primary:before {
|
|
776
|
+
border-style: $style;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
///
|
|
781
|
+
/// Customizes the container color, using a Color or state Map.
|
|
782
|
+
/// - To set only the default color, provide a single Color.
|
|
783
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
784
|
+
/// - Supported state Map keys: `default`, `enabled`, `disabled`.
|
|
785
|
+
///
|
|
786
|
+
/// @example
|
|
787
|
+
/// @include container-color(blue);
|
|
788
|
+
/// @include container-color((disabled: gray));
|
|
789
|
+
///
|
|
790
|
+
/// @param {Color | Map} $color-or-map - The container's color or a state Map
|
|
791
|
+
///
|
|
792
|
+
@mixin container-color($color-or-map) {
|
|
793
|
+
@include _container-color(state.get-default-state($color-or-map));
|
|
794
|
+
@include _is-enabled() {
|
|
795
|
+
@include _container-color(state.get-enabled-state($color-or-map));
|
|
796
|
+
}
|
|
797
|
+
@include _is-disabled() {
|
|
798
|
+
@include _container-color(state.get-disabled-state($color-or-map));
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
///
|
|
803
|
+
/// Customizes the selected container color, using a Color or state Map.
|
|
804
|
+
/// - To set only the default color, provide a single Color.
|
|
805
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
806
|
+
/// - Supported state Map keys: `default`, `enabled`, `disabled`.
|
|
807
|
+
///
|
|
808
|
+
/// @example
|
|
809
|
+
/// @include selected-container-color(blue);
|
|
810
|
+
/// @include selected-container-color((disabled: gray));
|
|
811
|
+
///
|
|
812
|
+
/// @param {Color | Map} $color-or-map - The container's color or a state Map
|
|
813
|
+
///
|
|
814
|
+
@mixin selected-container-color($color-or-map) {
|
|
815
|
+
@include _is-selected() {
|
|
816
|
+
@include container-color($color-or-map);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
@mixin _unselected-container-color($color-or-map) {
|
|
821
|
+
@include _is-unselected() {
|
|
822
|
+
@include container-color($color-or-map);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
@mixin _container-color($color) {
|
|
827
|
+
@if $color {
|
|
828
|
+
background-color: $color;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
///
|
|
833
|
+
/// Customizes the text label color, using a Color or state Map.
|
|
834
|
+
/// - To set only the default color, provide a single Color.
|
|
835
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
836
|
+
/// - Supported state Map keys: `default`, `enabled`, `hover`, `focus`, `disabled`.
|
|
837
|
+
///
|
|
838
|
+
/// @example
|
|
839
|
+
/// @include text-label-color(blue);
|
|
840
|
+
/// @include text-label-color((disabled: gray));
|
|
841
|
+
///
|
|
842
|
+
/// @param {Color | Map} $color-or-map - The label's color or a state Map
|
|
843
|
+
///
|
|
844
|
+
@mixin text-label-color($color-or-map) {
|
|
845
|
+
@include _text-label-color(state.get-default-state($color-or-map));
|
|
846
|
+
@include _is-enabled() {
|
|
847
|
+
@include _text-label-color(state.get-enabled-state($color-or-map));
|
|
848
|
+
}
|
|
849
|
+
.md3-chip__action--primary:not(.md3-chip__action--presentational):hover {
|
|
850
|
+
@include _text-label-color(state.get-hover-state($color-or-map));
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.md3-chip__action--primary:not(.md3-chip__action--presentational) {
|
|
854
|
+
// TODO(kainby): Translate to md3 ripple
|
|
855
|
+
// @include ripple-theme.focus() {
|
|
856
|
+
// @include _text-label-color(state.get-focus-state($color-or-map));
|
|
857
|
+
// }
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
@include _is-disabled() {
|
|
861
|
+
@include _text-label-color(state.get-disabled-state($color-or-map));
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
@mixin _label-text-typography($typography-theme) {
|
|
866
|
+
.md3-chip__text-label {
|
|
867
|
+
@include typography.theme-styles($typography-theme);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
///
|
|
872
|
+
/// Customizes the selected text label color, using a Color or state Map.
|
|
873
|
+
/// - To set only the default color, provide a single Color.
|
|
874
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
875
|
+
/// - Supported state Map keys: `default`, `hover`, `focus`, `disabled`.
|
|
876
|
+
///
|
|
877
|
+
/// @example
|
|
878
|
+
/// @include selected-text-label-color(blue);
|
|
879
|
+
/// @include selected-text-label-color((disabled: gray));
|
|
880
|
+
///
|
|
881
|
+
/// @param {Color | Map} $color-or-map - The label's color or a state Map
|
|
882
|
+
///
|
|
883
|
+
@mixin selected-text-label-color($color-or-map) {
|
|
884
|
+
@include _is-selected() {
|
|
885
|
+
@include text-label-color($color-or-map);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
@mixin _unselected-text-label-color($color-or-map) {
|
|
890
|
+
@include _is-unselected() {
|
|
891
|
+
@include text-label-color($color-or-map);
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
@mixin _text-label-color($color) {
|
|
896
|
+
.md3-chip__text-label {
|
|
897
|
+
@if $color {
|
|
898
|
+
color: $color;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
///
|
|
904
|
+
/// Sets the type scale of the text label.
|
|
905
|
+
/// @param {String} $type-scale - The type scale of the text label.
|
|
906
|
+
///
|
|
907
|
+
@mixin text-label-type-scale($type-scale) {
|
|
908
|
+
.md3-chip__text-label {
|
|
909
|
+
// TODO(kainby): Translate to md3 typography
|
|
910
|
+
// @include typography.typography($type-scale);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
///
|
|
915
|
+
/// Sets the size of the graphic.
|
|
916
|
+
/// @param {Number} $size - The size of the graphic.
|
|
917
|
+
///
|
|
918
|
+
@mixin graphic-size($size) {
|
|
919
|
+
// Expose the width as a readable custom property that can be used when
|
|
920
|
+
// computing the chip bounding client rect as an additive value for the chip
|
|
921
|
+
// width. This solves for selectable chips without icons growing/shrinking as
|
|
922
|
+
// they toggle their selected state. The ripple dimensions will have been
|
|
923
|
+
// computed based on the unselected bounding client react which will not have
|
|
924
|
+
// enough horizontal space to account for the growth in width.
|
|
925
|
+
&.md3-chip--selectable:not(.md3-chip--with-primary-icon) {
|
|
926
|
+
@if $size {
|
|
927
|
+
@include theme.property(--md3-chip-graphic-selected-width, $size);
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.md3-chip__graphic {
|
|
932
|
+
height: $size;
|
|
933
|
+
width: $size;
|
|
934
|
+
font-size: $size;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
///
|
|
939
|
+
/// Customizes the icon color, using a Color or state Map.
|
|
940
|
+
/// - To set only the default color, provide a single Color.
|
|
941
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
942
|
+
/// - Supported state Map keys: `default`, `enabled`, `focus`, `disabled`.
|
|
943
|
+
///
|
|
944
|
+
/// @example
|
|
945
|
+
/// @include icon-color(blue);
|
|
946
|
+
/// @include icon-color((disabled: gray));
|
|
947
|
+
///
|
|
948
|
+
/// @param {Color | Map} $color-or-map - The icon's color or a state Map
|
|
949
|
+
///
|
|
950
|
+
@mixin icon-color($color-or-map) {
|
|
951
|
+
@include _icon-color(state.get-default-state($color-or-map));
|
|
952
|
+
|
|
953
|
+
@include _is-enabled() {
|
|
954
|
+
@include _icon-color(state.get-enabled-state($color-or-map));
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.md3-chip__action--primary:not(.md3-chip__action--presentational):hover {
|
|
958
|
+
@include _icon-color(state.get-hover-state($color-or-map));
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.md3-chip__action--primary:not(.md3-chip__action--presentational) {
|
|
962
|
+
// TODO(kainby): Translate to md3 ripple
|
|
963
|
+
// @include ripple-theme.focus() {
|
|
964
|
+
// @include _icon-color(state.get-focus-state($color-or-map));
|
|
965
|
+
// }
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
@include _is-disabled() {
|
|
969
|
+
@include _icon-color(state.get-disabled-state($color-or-map));
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
@mixin _selected-icon-color($color-or-map) {
|
|
974
|
+
@include checkmark-color($color-or-map);
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
@mixin _unselected-icon-color($color-or-map) {
|
|
978
|
+
@include _is-unselected() {
|
|
979
|
+
@include icon-color($color-or-map);
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
@mixin _icon-color($color) {
|
|
984
|
+
.md3-chip__icon--primary {
|
|
985
|
+
color: $color;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
///
|
|
990
|
+
/// Customizes the icon container color, using a Color or state Map.
|
|
991
|
+
/// - To set only the default color, provide a single Color.
|
|
992
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
993
|
+
/// - Supported state Map keys: `default`, `hover`, `focus`, `disabled`.
|
|
994
|
+
///
|
|
995
|
+
/// @example
|
|
996
|
+
/// @include icon-container-color(blue);
|
|
997
|
+
/// @include icon-container-color((disabled: gray));
|
|
998
|
+
///
|
|
999
|
+
/// @param {Color | Map} $color-or-map - The icon's container color or a state Map
|
|
1000
|
+
///
|
|
1001
|
+
@mixin icon-container-color($color-or-map) {
|
|
1002
|
+
@include _icon-container-color(
|
|
1003
|
+
state.get-default-state($color-or-map)
|
|
1004
|
+
);
|
|
1005
|
+
|
|
1006
|
+
.md3-chip__action--primary:not(.md3-chip__action--presentational):hover {
|
|
1007
|
+
@include _icon-container-color(
|
|
1008
|
+
state.get-hover-state($color-or-map)
|
|
1009
|
+
);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.md3-chip__action--primary:not(.md3-chip__action--presentational) {
|
|
1013
|
+
// TODO(kainby): Translate to md3 ripple
|
|
1014
|
+
// @include ripple-theme.focus() {
|
|
1015
|
+
// @include _icon-container-color(
|
|
1016
|
+
// state.get-focus-state($color-or-map)
|
|
1017
|
+
// );
|
|
1018
|
+
// }
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
&.md3-chip--disabled {
|
|
1022
|
+
@include _icon-container-color(
|
|
1023
|
+
state.get-disabled-state($color-or-map)
|
|
1024
|
+
);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
@mixin _icon-container-color($color) {
|
|
1029
|
+
.md3-chip__icon--primary {
|
|
1030
|
+
@if $color {
|
|
1031
|
+
background-color: $color;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
///
|
|
1037
|
+
/// Sets the size of the icon.
|
|
1038
|
+
/// @param {Number} $size - The size of the icon.
|
|
1039
|
+
///
|
|
1040
|
+
@mixin icon-size($size) {
|
|
1041
|
+
.md3-chip__icon--primary {
|
|
1042
|
+
height: $size;
|
|
1043
|
+
width: $size;
|
|
1044
|
+
font-size: $size;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
///
|
|
1049
|
+
/// Sets the size of the trailing action.
|
|
1050
|
+
/// @param {Number} $size - The size of the trailing action.
|
|
1051
|
+
///
|
|
1052
|
+
@mixin trailing-action-size($size) {
|
|
1053
|
+
.md3-chip__icon--trailing {
|
|
1054
|
+
height: $size;
|
|
1055
|
+
width: $size;
|
|
1056
|
+
font-size: $size;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
///
|
|
1061
|
+
/// Customizes the trailing action color, using a Color or state Map.
|
|
1062
|
+
/// - To set only the default color, provide a single Color.
|
|
1063
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
1064
|
+
/// - Supported state Map keys: `default`, `hover`, `focus`, `disabled`.
|
|
1065
|
+
///
|
|
1066
|
+
/// @example
|
|
1067
|
+
/// @include trailing-action-color(blue);
|
|
1068
|
+
/// @include trailing-action-color((disabled: gray));
|
|
1069
|
+
///
|
|
1070
|
+
/// @param {Color | Map} $color-or-map - The trailing action's color or a state Map
|
|
1071
|
+
///
|
|
1072
|
+
@mixin trailing-action-color($color-or-map) {
|
|
1073
|
+
@include _trailing-action-color(
|
|
1074
|
+
state.get-default-state($color-or-map)
|
|
1075
|
+
);
|
|
1076
|
+
|
|
1077
|
+
@include _is-enabled() {
|
|
1078
|
+
@include _trailing-action-color(
|
|
1079
|
+
state.get-enabled-state($color-or-map)
|
|
1080
|
+
);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.md3-chip__action--trailing:hover {
|
|
1084
|
+
@include _trailing-action-color(
|
|
1085
|
+
state.get-hover-state($color-or-map)
|
|
1086
|
+
);
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.md3-chip__action--trailing {
|
|
1090
|
+
// TODO(kainby): Translate to md3 ripple
|
|
1091
|
+
// @include ripple-theme.focus() {
|
|
1092
|
+
// @include _trailing-action-color(
|
|
1093
|
+
// state.get-focus-state($color-or-map)
|
|
1094
|
+
// );
|
|
1095
|
+
// }
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
@include _is-disabled() {
|
|
1099
|
+
@include _trailing-action-color(
|
|
1100
|
+
state.get-disabled-state($color-or-map)
|
|
1101
|
+
);
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
@mixin _trailing-action-color($color) {
|
|
1106
|
+
.md3-chip__icon--trailing {
|
|
1107
|
+
@if $color {
|
|
1108
|
+
color: $color;
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
///
|
|
1114
|
+
/// Sets the size of the checkmark.
|
|
1115
|
+
/// @param {Number} $size - The size of the checkmark.
|
|
1116
|
+
///
|
|
1117
|
+
@mixin checkmark-size($size) {
|
|
1118
|
+
.md3-chip__checkmark {
|
|
1119
|
+
height: $size;
|
|
1120
|
+
width: $size;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
///
|
|
1125
|
+
/// Customizes the checkmark color, using a Color or state Map.
|
|
1126
|
+
/// - To set only the default color, provide a single Color.
|
|
1127
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
1128
|
+
/// - Supported state Map keys: `default`, `enabled`, `hover`, `focus`, `disabled`.
|
|
1129
|
+
///
|
|
1130
|
+
/// @example
|
|
1131
|
+
/// @include checkmark-color(blue);
|
|
1132
|
+
/// @include checkmark-color((disabled: gray));
|
|
1133
|
+
///
|
|
1134
|
+
/// @param {Color | Map} $color-or-map - The checkmark's color or a state Map
|
|
1135
|
+
///
|
|
1136
|
+
@mixin checkmark-color($color-or-map) {
|
|
1137
|
+
@include _checkmark-color(state.get-default-state($color-or-map));
|
|
1138
|
+
|
|
1139
|
+
@include _is-enabled() {
|
|
1140
|
+
@include _checkmark-color(state.get-enabled-state($color-or-map));
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.md3-chip__action--primary:not(.md3-chip__action--presentational):hover {
|
|
1144
|
+
@include _checkmark-color(state.get-hover-state($color-or-map));
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.md3-chip__action--primary {
|
|
1148
|
+
// TODO(kainby): Translate to md3 ripple
|
|
1149
|
+
// @include ripple-theme.focus() {
|
|
1150
|
+
// @include _checkmark-color(state.get-focus-state($color-or-map));
|
|
1151
|
+
// }
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
@include _is-disabled() {
|
|
1155
|
+
@include _checkmark-color(state.get-disabled-state($color-or-map));
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
@mixin _checkmark-color($color) {
|
|
1160
|
+
.md3-chip__checkmark {
|
|
1161
|
+
@if $color {
|
|
1162
|
+
color: $color;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
///
|
|
1168
|
+
/// Customizes the checkmark container color, using a Color or state Map.
|
|
1169
|
+
/// - To set only the default color, provide a single Color.
|
|
1170
|
+
/// - To set one or more state colors, provide a state Map with optional keys.
|
|
1171
|
+
/// - Supported state Map keys: `default`, `hover`, `focus`, `disabled`.
|
|
1172
|
+
///
|
|
1173
|
+
/// @example
|
|
1174
|
+
/// @include checkmark-container-color(blue);
|
|
1175
|
+
/// @include checkmark-container-color((disabled: gray));
|
|
1176
|
+
///
|
|
1177
|
+
/// @param {Color | Map} $color-or-map - The checkmark container's color or a state Map
|
|
1178
|
+
///
|
|
1179
|
+
@mixin checkmark-container-color($color-or-map) {
|
|
1180
|
+
@include _checkmark-container-color(
|
|
1181
|
+
state.get-default-state($color-or-map)
|
|
1182
|
+
);
|
|
1183
|
+
|
|
1184
|
+
&.md3-chip--disabled {
|
|
1185
|
+
@include _checkmark-container-color(
|
|
1186
|
+
state.get-disabled-state($color-or-map)
|
|
1187
|
+
);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
@mixin _checkmark-container-color($color) {
|
|
1192
|
+
.md3-chip__checkmark-background {
|
|
1193
|
+
@if $color {
|
|
1194
|
+
background-color: $color;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
///
|
|
1200
|
+
/// Sets the horizontal padding for the chip.
|
|
1201
|
+
/// @param {Number} $leading - The leading padding for the chip.
|
|
1202
|
+
/// @param {Number} $trailing [$leading] - The trailing padding for the chip.
|
|
1203
|
+
///
|
|
1204
|
+
@mixin horizontal-padding($leading, $trailing: $leading) {
|
|
1205
|
+
.md3-chip__action--primary {
|
|
1206
|
+
padding-inline: $leading $trailing;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
///
|
|
1211
|
+
/// Sets the horizontal padding for chips with a graphic.
|
|
1212
|
+
/// @param {Number} $graphic-leading - The leading padding for the graphic.
|
|
1213
|
+
/// @param {Number} $graphic-trailing - The trailing padding for the graphic.
|
|
1214
|
+
/// @param {Number} $primary-trailing - The trailing padding for the primary action.
|
|
1215
|
+
///
|
|
1216
|
+
@mixin with-graphic-horizontal-padding(
|
|
1217
|
+
$graphic-leading,
|
|
1218
|
+
$graphic-trailing,
|
|
1219
|
+
$primary-trailing
|
|
1220
|
+
) {
|
|
1221
|
+
&.md3-chip--with-primary-graphic {
|
|
1222
|
+
.md3-chip__graphic {
|
|
1223
|
+
padding-inline: $graphic-leading $graphic-trailing;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
.md3-chip__action--primary {
|
|
1227
|
+
padding-inline-end: $primary-trailing;
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
///
|
|
1233
|
+
/// Sets the horizontal padding for chips with a trailing action.
|
|
1234
|
+
/// @param {Number} $primary-leading - The leading padding for the primary action.
|
|
1235
|
+
/// @param {Number} $trailing-action-leading - The leading padding for the trailing action.
|
|
1236
|
+
/// @param {Number} $trailing-action-trailing - The trailing padding for the trailing action.
|
|
1237
|
+
///
|
|
1238
|
+
@mixin with-trailing-action-horizontal-padding(
|
|
1239
|
+
$primary-leading,
|
|
1240
|
+
$trailing-action-leading,
|
|
1241
|
+
$trailing-action-trailing
|
|
1242
|
+
) {
|
|
1243
|
+
&.md3-chip--with-trailing-action {
|
|
1244
|
+
.md3-chip__action--trailing {
|
|
1245
|
+
padding-inline: $trailing-action-leading $trailing-action-trailing;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
#{$ripple-target-trailing} {
|
|
1249
|
+
inset-inline-start: $trailing-action-leading;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
.md3-chip__action--primary {
|
|
1253
|
+
padding-inline-start: $primary-leading;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
///
|
|
1259
|
+
/// Sets the horizontal padding for chips with a graphic and trailing action.
|
|
1260
|
+
/// @param {Number} $graphic-leading - The leading padding for the graphic.
|
|
1261
|
+
/// @param {Number} $graphic-trailing - The trailing padding for the graphic.
|
|
1262
|
+
/// @param {Number} $trailing-action-leading - The leading padding for the trailing action.
|
|
1263
|
+
/// @param {Number} $trailing-action-trailing - The trailing padding for the trailing action.
|
|
1264
|
+
///
|
|
1265
|
+
@mixin with-graphic-and-trailing-action-horizontal-padding(
|
|
1266
|
+
$graphic-leading,
|
|
1267
|
+
$graphic-trailing,
|
|
1268
|
+
$trailing-action-leading,
|
|
1269
|
+
$trailing-action-trailing
|
|
1270
|
+
) {
|
|
1271
|
+
&.md3-chip--with-primary-graphic.md3-chip--with-trailing-action {
|
|
1272
|
+
.md3-chip__graphic {
|
|
1273
|
+
padding-inline: $graphic-leading $graphic-trailing;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
.md3-chip__action--trailing {
|
|
1277
|
+
padding-inline: $trailing-action-leading $trailing-action-trailing;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
#{$ripple-target-trailing} {
|
|
1281
|
+
inset-inline-start: $trailing-action-leading;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.md3-chip__action--primary {
|
|
1285
|
+
padding-inline: 0 0;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
@mixin _container-elevation($resolver, $shadow-color, $map) {
|
|
1291
|
+
// TODO(kainby): Use M3 resolver.
|
|
1292
|
+
@include elevation-theme.theme-styles((shadow: $shadow-color));
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
@mixin _selected-container-elevation($resolver, $shadow-color, $map) {
|
|
1296
|
+
@include _is-selected() {
|
|
1297
|
+
@include _container-elevation($resolver, $shadow-color, $map);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
@mixin _unselected-container-elevation($resolver, $shadow-color, $map) {
|
|
1302
|
+
@include _is-unselected() {
|
|
1303
|
+
@include _container-elevation($resolver, $shadow-color, $map);
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
@mixin _is-enabled() {
|
|
1308
|
+
&:not(.md3-chip--disabled) {
|
|
1309
|
+
@content;
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
@mixin _is-disabled() {
|
|
1314
|
+
&.md3-chip--disabled {
|
|
1315
|
+
@content;
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
@mixin _is-selected() {
|
|
1320
|
+
&.md3-chip--selected {
|
|
1321
|
+
@content;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
@mixin _is-unselected() {
|
|
1326
|
+
&:not(.md3-chip--selected) {
|
|
1327
|
+
@content;
|
|
1328
|
+
}
|
|
1329
|
+
}
|