@sandlada/mdc 0.1.0-20250907.a
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 +21 -0
- package/LICENSES/LICENSE-APACHE-2.0.txt +202 -0
- package/README.md +43 -0
- package/build/all.d.ts +24 -0
- package/build/all.d.ts.map +1 -0
- package/build/all.js +1 -0
- package/build/class-map-DlMb2KKL.js +11 -0
- package/build/color-CigMJnjV.js +1 -0
- package/build/component-definitions/badge.definition.d.ts +15 -0
- package/build/component-definitions/badge.definition.d.ts.map +1 -0
- package/build/component-definitions/badge.definition.js +6 -0
- package/build/component-definitions/button.definition.d.ts +1017 -0
- package/build/component-definitions/button.definition.d.ts.map +1 -0
- package/build/component-definitions/button.definition.js +6 -0
- package/build/component-definitions/card.definition.d.ts +99 -0
- package/build/component-definitions/card.definition.d.ts.map +1 -0
- package/build/component-definitions/card.definition.js +6 -0
- package/build/component-definitions/checkbox.definition.d.ts +74 -0
- package/build/component-definitions/checkbox.definition.d.ts.map +1 -0
- package/build/component-definitions/checkbox.definition.js +6 -0
- package/build/component-definitions/dialog.definition.d.ts +74 -0
- package/build/component-definitions/dialog.definition.d.ts.map +1 -0
- package/build/component-definitions/dialog.definition.js +1 -0
- package/build/component-definitions/divider.definition.d.ts +5 -0
- package/build/component-definitions/divider.definition.d.ts.map +1 -0
- package/build/component-definitions/divider.definition.js +6 -0
- package/build/component-definitions/elevation.definition.d.ts +5 -0
- package/build/component-definitions/elevation.definition.d.ts.map +1 -0
- package/build/component-definitions/elevation.definition.js +6 -0
- package/build/component-definitions/fab.definition.d.ts +643 -0
- package/build/component-definitions/fab.definition.d.ts.map +1 -0
- package/build/component-definitions/fab.definition.js +6 -0
- package/build/component-definitions/focus-ring.definition.d.ts +13 -0
- package/build/component-definitions/focus-ring.definition.d.ts.map +1 -0
- package/build/component-definitions/focus-ring.definition.js +6 -0
- package/build/component-definitions/icon-button.definition.d.ts +718 -0
- package/build/component-definitions/icon-button.definition.d.ts.map +1 -0
- package/build/component-definitions/icon-button.definition.js +6 -0
- package/build/component-definitions/icon.definition.d.ts +10 -0
- package/build/component-definitions/icon.definition.d.ts.map +1 -0
- package/build/component-definitions/icon.definition.js +6 -0
- package/build/component-definitions/navigation-bar.definition.d.ts +36 -0
- package/build/component-definitions/navigation-bar.definition.d.ts.map +1 -0
- package/build/component-definitions/navigation-bar.definition.js +1 -0
- package/build/component-definitions/navigation-rail.definition.d.ts +37 -0
- package/build/component-definitions/navigation-rail.definition.d.ts.map +1 -0
- package/build/component-definitions/navigation-rail.definition.js +1 -0
- package/build/component-definitions/navigation-tab.definition.d.ts +337 -0
- package/build/component-definitions/navigation-tab.definition.d.ts.map +1 -0
- package/build/component-definitions/navigation-tab.definition.js +23 -0
- package/build/component-definitions/progress-indicator.definition.d.ts +52 -0
- package/build/component-definitions/progress-indicator.definition.d.ts.map +1 -0
- package/build/component-definitions/progress-indicator.definition.js +1 -0
- package/build/component-definitions/radio-button.definition.d.ts +29 -0
- package/build/component-definitions/radio-button.definition.d.ts.map +1 -0
- package/build/component-definitions/radio-button.definition.js +6 -0
- package/build/component-definitions/ripple.definition.d.ts +9 -0
- package/build/component-definitions/ripple.definition.d.ts.map +1 -0
- package/build/component-definitions/ripple.definition.js +6 -0
- package/build/component-definitions/search.definition.d.ts +47 -0
- package/build/component-definitions/search.definition.d.ts.map +1 -0
- package/build/component-definitions/search.definition.js +1 -0
- package/build/component-definitions/slider.definition.d.ts +80 -0
- package/build/component-definitions/slider.definition.d.ts.map +1 -0
- package/build/component-definitions/slider.definition.js +1 -0
- package/build/component-definitions/switch.definition.d.ts +84 -0
- package/build/component-definitions/switch.definition.d.ts.map +1 -0
- package/build/component-definitions/switch.definition.js +6 -0
- package/build/components/button/base-button.d.ts +100 -0
- package/build/components/button/base-button.d.ts.map +1 -0
- package/build/components/button/base-button.js +1 -0
- package/build/components/button/button.d.ts +34 -0
- package/build/components/button/button.d.ts.map +1 -0
- package/build/components/button/button.js +1 -0
- package/build/components/button/button.style.d.ts +2 -0
- package/build/components/button/button.style.d.ts.map +1 -0
- package/build/components/button/button.style.js +468 -0
- package/build/components/button/toggle-button.d.ts +71 -0
- package/build/components/button/toggle-button.d.ts.map +1 -0
- package/build/components/button/toggle-button.js +1 -0
- package/build/components/button-group/base-button-group.d.ts +6 -0
- package/build/components/button-group/base-button-group.d.ts.map +1 -0
- package/build/components/button-group/base-button-group.js +1 -0
- package/build/components/button-group/connected-button-group.d.ts +8 -0
- package/build/components/button-group/connected-button-group.d.ts.map +1 -0
- package/build/components/button-group/connected-button-group.js +1 -0
- package/build/components/button-group/standard-button-group.d.ts +4 -0
- package/build/components/button-group/standard-button-group.d.ts.map +1 -0
- package/build/components/button-group/standard-button-group.js +1 -0
- package/build/components/dialog/base-dialog.d.ts +42 -0
- package/build/components/dialog/base-dialog.d.ts.map +1 -0
- package/build/components/dialog/base-dialog.js +1 -0
- package/build/components/dialog/basic-dialog.d.ts +10 -0
- package/build/components/dialog/basic-dialog.d.ts.map +1 -0
- package/build/components/dialog/basic-dialog.js +1 -0
- package/build/components/dialog/dialog-action.d.ts +62 -0
- package/build/components/dialog/dialog-action.d.ts.map +1 -0
- package/build/components/dialog/dialog-action.js +1 -0
- package/build/components/dialog/dialog-animations.d.ts +48 -0
- package/build/components/dialog/dialog-animations.d.ts.map +1 -0
- package/build/components/dialog/dialog-animations.js +6 -0
- package/build/components/dialog/dialog.style.d.ts +2 -0
- package/build/components/dialog/dialog.style.d.ts.map +1 -0
- package/build/components/dialog/dialog.style.js +217 -0
- package/build/components/divider/divider.d.ts +18 -0
- package/build/components/divider/divider.d.ts.map +1 -0
- package/build/components/divider/divider.js +1 -0
- package/build/components/divider/divider.style.d.ts +2 -0
- package/build/components/divider/divider.style.d.ts.map +1 -0
- package/build/components/divider/divider.style.js +6 -0
- package/build/components/elevation/elevation.d.ts +46 -0
- package/build/components/elevation/elevation.d.ts.map +1 -0
- package/build/components/elevation/elevation.js +1 -0
- package/build/components/elevation/elevation.style.d.ts +2 -0
- package/build/components/elevation/elevation.style.d.ts.map +1 -0
- package/build/components/elevation/elevation.style.js +6 -0
- package/build/components/fab/base-extended-fab.d.ts +23 -0
- package/build/components/fab/base-extended-fab.d.ts.map +1 -0
- package/build/components/fab/base-extended-fab.js +1 -0
- package/build/components/fab/base-fab.d.ts +47 -0
- package/build/components/fab/base-fab.d.ts.map +1 -0
- package/build/components/fab/base-fab.js +1 -0
- package/build/components/fab/fab.d.ts +29 -0
- package/build/components/fab/fab.d.ts.map +1 -0
- package/build/components/fab/fab.js +1 -0
- package/build/components/fab/fab.style.d.ts +2 -0
- package/build/components/fab/fab.style.d.ts.map +1 -0
- package/build/components/fab/fab.style.js +180 -0
- package/build/components/focus-ring/focus-ring.d.ts +56 -0
- package/build/components/focus-ring/focus-ring.d.ts.map +1 -0
- package/build/components/focus-ring/focus-ring.js +1 -0
- package/build/components/focus-ring/focus-ring.style.d.ts +2 -0
- package/build/components/focus-ring/focus-ring.style.d.ts.map +1 -0
- package/build/components/focus-ring/focus-ring.style.js +108 -0
- package/build/components/icon/icon.d.ts +50 -0
- package/build/components/icon/icon.d.ts.map +1 -0
- package/build/components/icon/icon.js +1 -0
- package/build/components/icon/icon.style.d.ts +2 -0
- package/build/components/icon/icon.style.d.ts.map +1 -0
- package/build/components/icon/icon.style.js +6 -0
- package/build/components/icon-button/base-icon-button.d.ts +69 -0
- package/build/components/icon-button/base-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/base-icon-button.js +1 -0
- package/build/components/icon-button/icon-button.d.ts +24 -0
- package/build/components/icon-button/icon-button.d.ts.map +1 -0
- package/build/components/icon-button/icon-button.js +1 -0
- package/build/components/icon-button/icon-button.style.d.ts +2 -0
- package/build/components/icon-button/icon-button.style.d.ts.map +1 -0
- package/build/components/icon-button/icon-button.style.js +357 -0
- package/build/components/icon-button/toggle-icon-button.d.ts +68 -0
- package/build/components/icon-button/toggle-icon-button.d.ts.map +1 -0
- package/build/components/icon-button/toggle-icon-button.js +1 -0
- package/build/components/navigation-bar/navigation-bar-animations.d.ts +21 -0
- package/build/components/navigation-bar/navigation-bar-animations.d.ts.map +1 -0
- package/build/components/navigation-bar/navigation-bar-animations.js +1 -0
- package/build/components/navigation-bar/navigation-bar.d.ts +75 -0
- package/build/components/navigation-bar/navigation-bar.d.ts.map +1 -0
- package/build/components/navigation-bar/navigation-bar.js +1 -0
- package/build/components/navigation-bar/navigation-bar.style.d.ts +2 -0
- package/build/components/navigation-bar/navigation-bar.style.d.ts.map +1 -0
- package/build/components/navigation-bar/navigation-bar.style.js +1 -0
- package/build/components/navigation-item/base-navigation-tab.d.ts +67 -0
- package/build/components/navigation-item/base-navigation-tab.d.ts.map +1 -0
- package/build/components/navigation-item/base-navigation-tab.js +1 -0
- package/build/components/navigation-item/navigation-bar-tab.d.ts +30 -0
- package/build/components/navigation-item/navigation-bar-tab.d.ts.map +1 -0
- package/build/components/navigation-item/navigation-bar-tab.js +1 -0
- package/build/components/navigation-item/navigation-rail-tab.d.ts +32 -0
- package/build/components/navigation-item/navigation-rail-tab.d.ts.map +1 -0
- package/build/components/navigation-item/navigation-rail-tab.js +1 -0
- package/build/components/navigation-item/navigation-tab-sigle-selection-controller.d.ts +37 -0
- package/build/components/navigation-item/navigation-tab-sigle-selection-controller.d.ts.map +1 -0
- package/build/components/navigation-item/navigation-tab-sigle-selection-controller.js +6 -0
- package/build/components/navigation-item/navigation-tab.d.ts +6 -0
- package/build/components/navigation-item/navigation-tab.d.ts.map +1 -0
- package/build/components/navigation-item/navigation-tab.js +1 -0
- package/build/components/navigation-item/navigation-tab.style.d.ts +3 -0
- package/build/components/navigation-item/navigation-tab.style.d.ts.map +1 -0
- package/build/components/navigation-item/navigation-tab.style.js +353 -0
- package/build/components/navigation-rail/navigation-rail-animations.d.ts +21 -0
- package/build/components/navigation-rail/navigation-rail-animations.d.ts.map +1 -0
- package/build/components/navigation-rail/navigation-rail-animations.js +1 -0
- package/build/components/navigation-rail/navigation-rail.d.ts +94 -0
- package/build/components/navigation-rail/navigation-rail.d.ts.map +1 -0
- package/build/components/navigation-rail/navigation-rail.js +1 -0
- package/build/components/navigation-rail/navigation-rail.style.d.ts +2 -0
- package/build/components/navigation-rail/navigation-rail.style.d.ts.map +1 -0
- package/build/components/navigation-rail/navigation-rail.style.js +1 -0
- package/build/components/progress-indicator/base-progress-indicator.d.ts +33 -0
- package/build/components/progress-indicator/base-progress-indicator.d.ts.map +1 -0
- package/build/components/progress-indicator/base-progress-indicator.js +1 -0
- package/build/components/progress-indicator/linear-progress-indicator.d.ts +47 -0
- package/build/components/progress-indicator/linear-progress-indicator.d.ts.map +1 -0
- package/build/components/progress-indicator/linear-progress-indicator.js +1 -0
- package/build/components/progress-indicator/progress-indicator.style.d.ts +2 -0
- package/build/components/progress-indicator/progress-indicator.style.d.ts.map +1 -0
- package/build/components/progress-indicator/progress-indicator.style.js +154 -0
- package/build/components/radio-button/radio-button.d.ts +49 -0
- package/build/components/radio-button/radio-button.d.ts.map +1 -0
- package/build/components/radio-button/radio-button.js +1 -0
- package/build/components/radio-button/radio-button.style.d.ts +2 -0
- package/build/components/radio-button/radio-button.style.d.ts.map +1 -0
- package/build/components/radio-button/radio-button.style.js +143 -0
- package/build/components/ripple/ripple-action.d.ts +62 -0
- package/build/components/ripple/ripple-action.d.ts.map +1 -0
- package/build/components/ripple/ripple-action.js +10 -0
- package/build/components/ripple/ripple.d.ts +55 -0
- package/build/components/ripple/ripple.d.ts.map +1 -0
- package/build/components/ripple/ripple.js +1 -0
- package/build/components/ripple/ripple.style.d.ts +2 -0
- package/build/components/ripple/ripple.style.d.ts.map +1 -0
- package/build/components/ripple/ripple.style.js +6 -0
- package/build/components/search/search-bar.d.ts +30 -0
- package/build/components/search/search-bar.d.ts.map +1 -0
- package/build/components/search/search-bar.js +1 -0
- package/build/components/search/search-bar.style.d.ts +2 -0
- package/build/components/search/search-bar.style.d.ts.map +1 -0
- package/build/components/search/search-bar.style.js +1 -0
- package/build/components/slider/base-slider.d.ts +58 -0
- package/build/components/slider/base-slider.d.ts.map +1 -0
- package/build/components/slider/base-slider.js +1 -0
- package/build/components/slider/slider.d.ts +3 -0
- package/build/components/slider/slider.d.ts.map +1 -0
- package/build/components/slider/slider.js +1 -0
- package/build/components/switch/switch.d.ts +45 -0
- package/build/components/switch/switch.d.ts.map +1 -0
- package/build/components/switch/switch.js +1 -0
- package/build/components/switch/switch.style.d.ts +2 -0
- package/build/components/switch/switch.style.d.ts.map +1 -0
- package/build/components/switch/switch.style.js +329 -0
- package/build/components/typography/typography.d.ts +44 -0
- package/build/components/typography/typography.d.ts.map +1 -0
- package/build/components/typography/typography.js +1 -0
- package/build/components/typography/typography.styles.d.ts +3 -0
- package/build/components/typography/typography.styles.d.ts.map +1 -0
- package/build/components/typography/typography.styles.js +6 -0
- package/build/components/wave/base-wave.d.ts +12 -0
- package/build/components/wave/base-wave.d.ts.map +1 -0
- package/build/components/wave/base-wave.js +1 -0
- package/build/components/wave/circular-wave.d.ts +37 -0
- package/build/components/wave/circular-wave.d.ts.map +1 -0
- package/build/components/wave/circular-wave.js +1 -0
- package/build/components/wave/linear-wave.d.ts +26 -0
- package/build/components/wave/linear-wave.d.ts.map +1 -0
- package/build/components/wave/linear-wave.js +1 -0
- package/build/custom-element-Dz3n6kSt.js +6 -0
- package/build/definitions.d.ts +18 -0
- package/build/definitions.d.ts.map +1 -0
- package/build/definitions.js +1 -0
- package/build/duration-CDKuKTyT.js +1 -0
- package/build/easing-5hHInU7b.js +1 -0
- package/build/elevation-dUQez_WX.js +1 -0
- package/build/lit-element-Ho-VPzO1.js +22 -0
- package/build/property-Ck1wIidx.js +6 -0
- package/build/query-DifSdHBD.js +11 -0
- package/build/query-assigned-elements-CAhlPqtD.js +6 -0
- package/build/shape-CrZ0CLVJ.js +1 -0
- package/build/state--U2hSgGK.js +6 -0
- package/build/state-C-haZXan.js +1 -0
- package/build/tslib.es6-CmLYFWVC.js +1 -0
- package/build/typescale-Bh1NLwSE.js +1 -0
- package/build/utils/aria/aria.d.ts +71 -0
- package/build/utils/aria/aria.d.ts.map +1 -0
- package/build/utils/aria/aria.js +6 -0
- package/build/utils/aria/delegate.d.ts +55 -0
- package/build/utils/aria/delegate.d.ts.map +1 -0
- package/build/utils/aria/delegate.js +7 -0
- package/build/utils/behaviors/connected-promise-resolve.d.ts +8 -0
- package/build/utils/behaviors/connected-promise-resolve.d.ts.map +1 -0
- package/build/utils/behaviors/connected-promise-resolve.js +1 -0
- package/build/utils/behaviors/constraint-validation.d.ts +134 -0
- package/build/utils/behaviors/constraint-validation.d.ts.map +1 -0
- package/build/utils/behaviors/constraint-validation.js +6 -0
- package/build/utils/behaviors/element-internals.d.ts +46 -0
- package/build/utils/behaviors/element-internals.d.ts.map +1 -0
- package/build/utils/behaviors/element-internals.js +6 -0
- package/build/utils/behaviors/mixin.d.ts +55 -0
- package/build/utils/behaviors/mixin.d.ts.map +1 -0
- package/build/utils/behaviors/mixin.js +1 -0
- package/build/utils/behaviors/validators/checkbox-validator.d.ts +36 -0
- package/build/utils/behaviors/validators/checkbox-validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/checkbox-validator.js +6 -0
- package/build/utils/behaviors/validators/radio-validator.d.ts +39 -0
- package/build/utils/behaviors/validators/radio-validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/radio-validator.js +6 -0
- package/build/utils/behaviors/validators/select-validator.d.ts +36 -0
- package/build/utils/behaviors/validators/select-validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/select-validator.js +6 -0
- package/build/utils/behaviors/validators/text-field-validator.d.ts +111 -0
- package/build/utils/behaviors/validators/text-field-validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/text-field-validator.js +6 -0
- package/build/utils/behaviors/validators/validator.d.ts +97 -0
- package/build/utils/behaviors/validators/validator.d.ts.map +1 -0
- package/build/utils/behaviors/validators/validator.js +6 -0
- package/build/utils/controller/attachable-controller.d.ts +116 -0
- package/build/utils/controller/attachable-controller.d.ts.map +1 -0
- package/build/utils/controller/attachable-controller.js +9 -0
- package/build/utils/controller/form-submitter.d.ts +71 -0
- package/build/utils/controller/form-submitter.d.ts.map +1 -0
- package/build/utils/controller/form-submitter.js +6 -0
- package/build/utils/controller/selection-controller.d.ts +24 -0
- package/build/utils/controller/selection-controller.d.ts.map +1 -0
- package/build/utils/controller/selection-controller.js +1 -0
- package/build/utils/controller/single-selection-controller.d.ts +46 -0
- package/build/utils/controller/single-selection-controller.d.ts.map +1 -0
- package/build/utils/controller/single-selection-controller.js +6 -0
- package/build/utils/event/dispatch-hook.d.ts +86 -0
- package/build/utils/event/dispatch-hook.d.ts.map +1 -0
- package/build/utils/event/dispatch-hook.js +6 -0
- package/build/utils/event/form-label-activation.d.ts +56 -0
- package/build/utils/event/form-label-activation.d.ts.map +1 -0
- package/build/utils/event/form-label-activation.js +6 -0
- package/build/utils/event/redispatch-event.d.ts +28 -0
- package/build/utils/event/redispatch-event.d.ts.map +1 -0
- package/build/utils/event/redispatch-event.js +6 -0
- package/build/utils/form/form-associated.d.ts +200 -0
- package/build/utils/form/form-associated.d.ts.map +1 -0
- package/build/utils/form/form-associated.js +1 -0
- package/build/utils/string/to-kebab-case.d.ts +11 -0
- package/build/utils/string/to-kebab-case.d.ts.map +1 -0
- package/build/utils/string/to-kebab-case.js +6 -0
- package/build/utils/tokens/create-logic-shape-tokens.d.ts +14 -0
- package/build/utils/tokens/create-logic-shape-tokens.d.ts.map +1 -0
- package/build/utils/tokens/create-logic-shape-tokens.js +6 -0
- package/build/utils/tokens/create-var.d.ts +14 -0
- package/build/utils/tokens/create-var.d.ts.map +1 -0
- package/build/utils/tokens/create-var.js +6 -0
- package/build/utils/tokens/create-wrapped-tokens.d.ts +25 -0
- package/build/utils/tokens/create-wrapped-tokens.d.ts.map +1 -0
- package/build/utils/tokens/create-wrapped-tokens.js +6 -0
- package/build/utils/tokens/exclude-tokens.d.ts +7 -0
- package/build/utils/tokens/exclude-tokens.d.ts.map +1 -0
- package/build/utils/tokens/exclude-tokens.js +6 -0
- package/build/utils/tokens/index.d.ts +12 -0
- package/build/utils/tokens/index.d.ts.map +1 -0
- package/build/utils/tokens/index.js +1 -0
- package/build/utils/tokens/override-component-tokens.d.ts +34 -0
- package/build/utils/tokens/override-component-tokens.d.ts.map +1 -0
- package/build/utils/tokens/override-component-tokens.js +6 -0
- package/build/utils/tokens/string-tokens.d.ts +14 -0
- package/build/utils/tokens/string-tokens.d.ts.map +1 -0
- package/build/utils/tokens/string-tokens.js +6 -0
- package/build/utils/uuid/generate-uuid.d.ts +19 -0
- package/build/utils/uuid/generate-uuid.d.ts.map +1 -0
- package/build/utils/uuid/generate-uuid.js +6 -0
- package/build/utils.d.ts +3 -0
- package/build/utils.d.ts.map +1 -0
- package/build/utils.js +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{t as s}from"../../custom-element-Dz3n6kSt.js";import"../../lit-element-Ho-VPzO1.js";import{BaseExtendedFab as e}from"./base-extended-fab.js";import{fabStyles as o}from"./fab.style.js";import"../../property-Ck1wIidx.js";import"../../state--U2hSgGK.js";import"../../class-map-DlMb2KKL.js";import"./base-fab.js";import"../../query-DifSdHBD.js";import"../../utils/event/form-label-activation.js";import"../../component-definitions/fab.definition.js";import"../../color-CigMJnjV.js";import"../../elevation-dUQez_WX.js";import"../../shape-CrZ0CLVJ.js";import"../../state-C-haZXan.js";import"../../typescale-Bh1NLwSE.js";import"../../utils/tokens/create-logic-shape-tokens.js";import"../../utils/tokens/create-wrapped-tokens.js";import"../../utils/tokens/override-component-tokens.js";import"../../utils/tokens/string-tokens.js";let i=class extends e{static{this.styles=o}};i=t([s("mdc-fab")],i);export{i as MDCFab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fab.style.d.ts","sourceRoot":"","sources":["../../../src/components/fab/fab.style.ts"],"names":[],"mappings":"AAyOA,eAAO,MAAM,SAAS,2BAoBrB,CAAA"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import{a as e,r as t}from"../../lit-element-Ho-VPzO1.js";import{TertiaryExtendedFabDefinition as a,SecondaryExtendedFabDefinition as n,PrimaryExtendedFabDefinition as r,TonalTertiaryExtendedFabDefinition as i,TonalSecondaryExtendedFabDefinition as o,TonalPrimaryExtendedFabDefinition as l}from"../../component-definitions/fab.definition.js";import{createWrappedTokens as s}from"../../utils/tokens/create-wrapped-tokens.js";import{overrideComponentTokens as c}from"../../utils/tokens/override-component-tokens.js";import{stringTokens as d}from"../../utils/tokens/string-tokens.js";import"../../color-CigMJnjV.js";import"../../elevation-dUQez_WX.js";import"../../shape-CrZ0CLVJ.js";import"../../state-C-haZXan.js";import"../../typescale-Bh1NLwSE.js";import"../../utils/tokens/create-logic-shape-tokens.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/const m={tpe:s("--mdc-fab",l),tse:s("--mdc-fab",o),tte:s("--mdc-fab",i),pe:s("--mdc-fab",r),se:s("--mdc-fab",n),te:s("--mdc-fab",a)},v=d(m.tpe),h=d(m.tse),u=d(m.tte),b=d(m.pe),p=d(m.se),g=d(m.te),_=e`
|
|
7
|
+
button.small {
|
|
8
|
+
border-end-end-radius: min(var(--_small-container-shape-end-end), calc(var(--_small-container-height) / 2));
|
|
9
|
+
border-end-start-radius: min(var(--_small-container-shape-end-start), calc(var(--_small-container-height) / 2));
|
|
10
|
+
border-start-end-radius: min(var(--_small-container-shape-start-end), calc(var(--_small-container-height) / 2));
|
|
11
|
+
border-start-start-radius: min(var(--_small-container-shape-start-start), calc(var(--_small-container-height) / 2));
|
|
12
|
+
}
|
|
13
|
+
button.medium {
|
|
14
|
+
border-end-end-radius: min(var(--_medium-container-shape-end-end), calc(var(--_medium-container-height) / 2));
|
|
15
|
+
border-end-start-radius: min(var(--_medium-container-shape-end-start), calc(var(--_medium-container-height) / 2));
|
|
16
|
+
border-start-end-radius: min(var(--_medium-container-shape-start-end), calc(var(--_medium-container-height) / 2));
|
|
17
|
+
border-start-start-radius: min(var(--_medium-container-shape-start-start), calc(var(--_medium-container-height) / 2));
|
|
18
|
+
}
|
|
19
|
+
button.large {
|
|
20
|
+
border-end-end-radius: min(var(--_large-container-shape-end-end), calc(var(--_large-container-height) / 2));
|
|
21
|
+
border-end-start-radius: min(var(--_large-container-shape-end-start), calc(var(--_large-container-height) / 2));
|
|
22
|
+
border-start-end-radius: min(var(--_large-container-shape-start-end), calc(var(--_large-container-height) / 2));
|
|
23
|
+
border-start-start-radius: min(var(--_large-container-shape-start-start), calc(var(--_large-container-height) / 2));
|
|
24
|
+
}
|
|
25
|
+
`,f=e`
|
|
26
|
+
button.small .label {
|
|
27
|
+
font-family: var(--_small-label-font);
|
|
28
|
+
line-height: var(--_small-label-line-height);
|
|
29
|
+
font-size: var(--_small-label-size);
|
|
30
|
+
letter-spacing: var(--_small-label-tracking);
|
|
31
|
+
font-weight: var(--_small-label-weight);
|
|
32
|
+
}
|
|
33
|
+
button.medium .label {
|
|
34
|
+
font-family: var(--_medium-label-font);
|
|
35
|
+
line-height: var(--_medium-label-line-height);
|
|
36
|
+
font-size: var(--_medium-label-size);
|
|
37
|
+
letter-spacing: var(--_medium-label-tracking);
|
|
38
|
+
font-weight: var(--_medium-label-weight);
|
|
39
|
+
}
|
|
40
|
+
button.large .label {
|
|
41
|
+
font-family: var(--_large-label-font);
|
|
42
|
+
line-height: var(--_large-label-line-height);
|
|
43
|
+
font-size: var(--_large-label-size);
|
|
44
|
+
letter-spacing: var(--_large-label-tracking);
|
|
45
|
+
font-weight: var(--_large-label-weight);
|
|
46
|
+
}
|
|
47
|
+
button .label {
|
|
48
|
+
color: var(--_label-color);
|
|
49
|
+
}
|
|
50
|
+
button:hover .label {
|
|
51
|
+
color: var(--_hovered-label-color);
|
|
52
|
+
}
|
|
53
|
+
button:focus-within .label {
|
|
54
|
+
color: var(--_focused-label-color);
|
|
55
|
+
}
|
|
56
|
+
button:active .label {
|
|
57
|
+
color: var(--_pressed-label-color);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
button .label {
|
|
61
|
+
}
|
|
62
|
+
button:not(.extended.has-label) .label {
|
|
63
|
+
display: none;
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
66
|
+
`,$=e`
|
|
67
|
+
:host([variant="primary"]) {${b};}
|
|
68
|
+
:host([variant="secondary"]) {${p};}
|
|
69
|
+
:host([variant="tertiary"]) {${g};}
|
|
70
|
+
:host([variant="tonal-primary"]) {${v};}
|
|
71
|
+
:host([variant="tonal-secondary"]) {${h};}
|
|
72
|
+
:host([variant="tonal-tertiary"]) {${u};}
|
|
73
|
+
`,y=e`
|
|
74
|
+
button {
|
|
75
|
+
all: unset;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
position: relative;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
background: var(--_container-color);
|
|
81
|
+
transition-property: width, background, padding;
|
|
82
|
+
transition-duration: 200ms;
|
|
83
|
+
}
|
|
84
|
+
button.extended {
|
|
85
|
+
width: fit-content;
|
|
86
|
+
}
|
|
87
|
+
button:not(.extended) {
|
|
88
|
+
place-content: center;
|
|
89
|
+
}
|
|
90
|
+
button:not(.extended).small {
|
|
91
|
+
width: var(--_small-container-width);
|
|
92
|
+
}
|
|
93
|
+
button:not(.extended).medium {
|
|
94
|
+
width: var(--_medium-container-width);
|
|
95
|
+
}
|
|
96
|
+
button:not(.extended).large {
|
|
97
|
+
width: var(--_large-container-width);
|
|
98
|
+
}
|
|
99
|
+
button.small {
|
|
100
|
+
gap: var(--_small-icon-label-space);
|
|
101
|
+
height: var(--_small-container-height);
|
|
102
|
+
}
|
|
103
|
+
button.medium {
|
|
104
|
+
gap: var(--_medium-icon-label-space);
|
|
105
|
+
height: var(--_medium-container-height);
|
|
106
|
+
}
|
|
107
|
+
button.large {
|
|
108
|
+
gap: var(--_large-icon-label-space);
|
|
109
|
+
height: var(--_large-container-height);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
button.extended.small {
|
|
113
|
+
padding-inline-start: var(--_small-leading-space);
|
|
114
|
+
padding-inline-end: var(--_small-trailing-space);
|
|
115
|
+
}
|
|
116
|
+
button.extended.medium {
|
|
117
|
+
padding-inline-start: var(--_medium-leading-space);
|
|
118
|
+
padding-inline-end: var(--_medium-trailing-space);
|
|
119
|
+
}
|
|
120
|
+
button.extended.large {
|
|
121
|
+
padding-inline-start: var(--_large-leading-space);
|
|
122
|
+
padding-inline-end: var(--_large-trailing-space);
|
|
123
|
+
}
|
|
124
|
+
`,w=[(()=>{const t=e=>d(c("--mdc-elevation",{level:`var(--_${e}container-elevation)`}));return e`
|
|
125
|
+
mdc-elevation {
|
|
126
|
+
${d(c("--mdc-elevation",{"shadow-color":"var(--_container-shadow-color)"}))};
|
|
127
|
+
${t("")};
|
|
128
|
+
}
|
|
129
|
+
button:hover mdc-elevation {${t("hovered-")};}
|
|
130
|
+
button:focus-within mdc-elevation {${t("focused-")};}
|
|
131
|
+
button:active mdc-elevation {${t("pressed-")};}
|
|
132
|
+
`})(),(()=>{const t=e=>d(c("--mdc-focus-ring",{"shape-end-end":`var(--_${e}-container-shape-end-end)`,"shape-end-start":`var(--_${e}-container-shape-end-start)`,"shape-start-end":`var(--_${e}-container-shape-start-end)`,"shape-start-start":`var(--_${e}-container-shape-start-start)`}));return e`
|
|
133
|
+
.button.small mdc-focus-ring {${t("small")};}
|
|
134
|
+
.button.medium mdc-focus-ring {${t("medium")};}
|
|
135
|
+
.button.large mdc-focus-ring {${t("large")};}
|
|
136
|
+
`})(),(()=>{const t=d(c("--mdc-ripple",{"hovered-color":"var(--_hovered-state-layer-color)","hovered-opacity":"var(--_hovered-state-layer-opacity)","pressed-color":"var(--_pressed-state-layer-color)","pressed-opacity":"var(--_pressed-state-layer-opacity)"}));return e`
|
|
137
|
+
button mdc-ripple {${t};}
|
|
138
|
+
`})(),(()=>{const a=e=>t(`\n inline-size: var(--_${e}-icon-size);\n block-size: var(--_${e}-icon-size);\n font-size: var(--_${e}-icon-size);\n `);return e`
|
|
139
|
+
.icon,
|
|
140
|
+
::slotted([name="icon"]) {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
position: relative;
|
|
143
|
+
writing-mode: horizontal-tb;
|
|
144
|
+
fill: currentColor;
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
}
|
|
147
|
+
button.small :is(.icon, ::slotted([name="icon"])) {${a("small")};}
|
|
148
|
+
button.medium :is(.icon, ::slotted([name="icon"])) {${a("medium")};}
|
|
149
|
+
button.large :is(.icon, ::slotted([name="icon"])) {${a("large")};}
|
|
150
|
+
button.small .icon mdc-icon {${d(c("--mdc-icon",{size:"var(--_small-icon-size)"}))};}
|
|
151
|
+
button.medium .icon mdc-icon {${d(c("--mdc-icon",{size:"var(--_medium-icon-size)"}))};}
|
|
152
|
+
button.large .icon mdc-icon {${d(c("--mdc-icon",{size:"var(--_large-icon-size)"}))};}
|
|
153
|
+
|
|
154
|
+
button :is(.icon, ::slotted([name="icon"])) {
|
|
155
|
+
color: var(--_icon-color);
|
|
156
|
+
}
|
|
157
|
+
button:hover :is(.icon, ::slotted([name="icon"])) {
|
|
158
|
+
color: var(--_hovered-icon-color);
|
|
159
|
+
}
|
|
160
|
+
button:focus-within :is(.icon, ::slotted([name="icon"])) {
|
|
161
|
+
color: var(--_focused-icon-color);
|
|
162
|
+
}
|
|
163
|
+
button:active :is(.icon, ::slotted([name="icon"])) {
|
|
164
|
+
color: var(--_pressed-icon-color);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
button:not(.has-icon) .icon {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
`})(),_,f,$,y,e`
|
|
171
|
+
@layer mdc.extended-fab.base {
|
|
172
|
+
:host {
|
|
173
|
+
border: none;
|
|
174
|
+
outline: none;
|
|
175
|
+
user-select: none;
|
|
176
|
+
display: inline-flex;
|
|
177
|
+
vertical-align: top;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`];export{w as fabStyles};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*
|
|
6
|
+
* [Modified by Kai-Orion & Sandlada]
|
|
7
|
+
*/
|
|
8
|
+
import { LitElement } from 'lit';
|
|
9
|
+
import { type IAttachable } from '../../utils/controller/attachable-controller';
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
"mdc-focus-ring": FocusRing;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The parent element of the focus ring used to provide perspective focus
|
|
17
|
+
* must be set to relative and the tabindex must not be -1.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```html
|
|
21
|
+
* <div tabindex="0" class="my-box">
|
|
22
|
+
* <mdc-focus-ring></mdc-focus-ring>
|
|
23
|
+
* </div>
|
|
24
|
+
* <style>
|
|
25
|
+
* .my-box {
|
|
26
|
+
* position: relative;
|
|
27
|
+
* height: 40px;
|
|
28
|
+
* width: 72px;
|
|
29
|
+
* background: red;
|
|
30
|
+
* border: none;
|
|
31
|
+
* outline: none;
|
|
32
|
+
* }
|
|
33
|
+
* </style>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @version
|
|
37
|
+
* Material Design 3
|
|
38
|
+
*/
|
|
39
|
+
export declare class FocusRing extends LitElement implements IAttachable {
|
|
40
|
+
static styles: import("lit").CSSResult;
|
|
41
|
+
inward: boolean;
|
|
42
|
+
shapeInherit: boolean;
|
|
43
|
+
private attachableController;
|
|
44
|
+
get htmlFor(): string | null;
|
|
45
|
+
set htmlFor(htmlFor: string | null);
|
|
46
|
+
get control(): HTMLElement | null;
|
|
47
|
+
set control(control: HTMLElement | null);
|
|
48
|
+
attach(control: HTMLElement): void;
|
|
49
|
+
detach(): void;
|
|
50
|
+
get visible(): boolean;
|
|
51
|
+
set visible(value: boolean);
|
|
52
|
+
private focusRingEvents;
|
|
53
|
+
private onControlChange;
|
|
54
|
+
private handleEvent;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=focus-ring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus-ring.d.ts","sourceRoot":"","sources":["../../../src/components/focus-ring/focus-ring.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAY,UAAU,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,8CAA8C,CAAA;AAGrG,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,gBAAgB,EAAE,SAAS,CAAA;KAC9B;CACJ;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBACa,SAAU,SAAQ,UAAW,YAAW,WAAW;IAE5D,OAAgB,MAAM,0BAAS;IAGxB,MAAM,UAAQ;IAGd,YAAY,UAAO;IAE1B,OAAO,CAAC,oBAAoB,CAAkE;IAE9F,IAAI,OAAO,IAGU,MAAM,GAAG,IAAI,CADjC;IACD,IAAI,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,EAEjC;IAED,IAAI,OAAO,IAGU,WAAW,GAAG,IAAI,CADtC;IACD,IAAI,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,EAEtC;IAEM,MAAM,CAAC,OAAO,EAAE,WAAW;IAG3B,MAAM;IAIb,IAAW,OAAO,IAGQ,OAAO,CADhC;IACD,IAAW,OAAO,CAAC,KAAK,EAAE,OAAO,EAEhC;IAED,OAAO,CAAC,eAAe,CAItB;IACD,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,WAAW;CAetB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{i as e}from"../../lit-element-Ho-VPzO1.js";import{t as o}from"../../custom-element-Dz3n6kSt.js";import{n as s}from"../../property-Ck1wIidx.js";import{AttachableController as i}from"../../utils/controller/attachable-controller.js";import{styles as r}from"./focus-ring.style.js";import"../../easing-5hHInU7b.js";import"../../component-definitions/focus-ring.definition.js";import"../../color-CigMJnjV.js";import"../../duration-CDKuKTyT.js";import"../../shape-CrZ0CLVJ.js";import"../../utils/tokens/create-logic-shape-tokens.js";import"../../utils/tokens/create-wrapped-tokens.js";import"../../utils/tokens/string-tokens.js";let n=class extends e{constructor(){super(...arguments),this.inward=!1,this.shapeInherit=!0,this.attachableController=new i(this,this.onControlChange.bind(this)),this.focusRingEvents=["focusin","focusout","pointerdown"]}static{this.styles=r}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}get visible(){return this.hasAttribute("visible")}set visible(t){this.toggleAttribute("visible",t)}onControlChange(t,e){for(const o of this.focusRingEvents)t?.removeEventListener(o,this.handleEvent.bind(this)),e?.addEventListener(o,this.handleEvent.bind(this))}handleEvent(t){switch(t.type){case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}}};t([s({type:Boolean})],n.prototype,"inward",void 0),t([s({type:Boolean,reflect:!0,attribute:"shape-inherit"})],n.prototype,"shapeInherit",void 0),n=t([o("mdc-focus-ring")],n);export{n as FocusRing};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus-ring.style.d.ts","sourceRoot":"","sources":["../../../src/components/focus-ring/focus-ring.style.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM,yBAsGlB,CAAA"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import{E as r}from"../../easing-5hHInU7b.js";import{r as a,a as t}from"../../lit-element-Ho-VPzO1.js";import{FocusRingDefinition as e}from"../../component-definitions/focus-ring.definition.js";import{createWrappedTokens as o}from"../../utils/tokens/create-wrapped-tokens.js";import{stringTokens as i}from"../../utils/tokens/string-tokens.js";import"../../color-CigMJnjV.js";import"../../duration-CDKuKTyT.js";import"../../shape-CrZ0CLVJ.js";import"../../utils/tokens/create-logic-shape-tokens.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/const s=t`
|
|
7
|
+
|
|
8
|
+
@layer mdc.focus-ring.variable {
|
|
9
|
+
:host {
|
|
10
|
+
${i(o("--mdc-focus-ring",e))}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@layer mdc.focus-ring.base {
|
|
15
|
+
|
|
16
|
+
:host {
|
|
17
|
+
animation-delay: 0s, calc(var(--_duration) * 0.25);
|
|
18
|
+
animation-duration: calc(var(--_duration) * 0.25), calc(var(--_duration) * 0.75);
|
|
19
|
+
animation-timing-function: ${a(r.Emphasized)};
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
color: var(--_color);
|
|
22
|
+
display: none;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
position: absolute;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([disabled]) {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([visible]) {
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host(:not([inward])) {
|
|
36
|
+
animation-name: outward-grow, outward-shrink;
|
|
37
|
+
inset: calc(-1 * var(--_outward-offset));
|
|
38
|
+
outline: var(--_width) solid currentColor;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([inward]) {
|
|
42
|
+
animation-name: inward-grow, inward-shrink;
|
|
43
|
+
border: var(--_width) solid currentColor;
|
|
44
|
+
inset: var(--_inward-offset);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([shape-inherit]) {
|
|
48
|
+
border-end-end-radius: inherit;
|
|
49
|
+
border-end-start-radius: inherit;
|
|
50
|
+
border-start-end-radius: inherit;
|
|
51
|
+
border-start-start-radius: inherit;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host(:not([shape-inherit])) {
|
|
55
|
+
&:not([inward]) {
|
|
56
|
+
border-end-end-radius: calc(var(--_shape-end-end) + var(--_outward-offset));
|
|
57
|
+
border-end-start-radius: calc(var(--_shape-end-start) + var(--_outward-offset));
|
|
58
|
+
border-start-end-radius: calc(var(--_shape-start-end) + var(--_outward-offset));
|
|
59
|
+
border-start-start-radius: calc(var(--_shape-start-start) + var(--_outward-offset));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&[inward] {
|
|
63
|
+
border-end-end-radius: calc(var(--_shape-end-end) - var(--_inward-offset));
|
|
64
|
+
border-end-start-radius: calc(var(--_shape-end-start) - var(--_inward-offset));
|
|
65
|
+
border-start-end-radius: calc(var(--_shape-start-end) - var(--_inward-offset));
|
|
66
|
+
border-start-start-radius: calc(var(--_shape-start-start) - var(--_inward-offset));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@keyframes outward-grow {
|
|
71
|
+
from {
|
|
72
|
+
outline-width: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
to {
|
|
76
|
+
outline-width: var(--_active-width);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@keyframes outward-shrink {
|
|
81
|
+
from {
|
|
82
|
+
outline-width: var(--_active-width);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@keyframes inward-grow {
|
|
87
|
+
from {
|
|
88
|
+
border-width: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
to {
|
|
92
|
+
border-width: var(--_active-width);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@keyframes inward-shrink {
|
|
97
|
+
from {
|
|
98
|
+
border-width: var(--_active-width);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (prefers-reduced-motion) {
|
|
103
|
+
:host {
|
|
104
|
+
animation: none;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
`;export{s as styles};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Sandlada & Kai Orion
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
"mdc-icon": Icon;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
declare const Icon_base: import("../../utils/behaviors/mixin").MixinReturn<typeof LitElement>;
|
|
13
|
+
/**
|
|
14
|
+
* mdc-icon sets the size and font by default.
|
|
15
|
+
*
|
|
16
|
+
* If you use an external font, the global style of the external font
|
|
17
|
+
* will override the style of `@layer` mdc.icon.base.
|
|
18
|
+
*
|
|
19
|
+
* Because the priority of `@layer` style is lower than that of global style,
|
|
20
|
+
* you need to manually cancel the font size of the external style
|
|
21
|
+
* to make the font style of mdc-icon take effect.
|
|
22
|
+
*
|
|
23
|
+
* The following code example shows an icon delete
|
|
24
|
+
* modified by the external class style `.material-symbols-outlined`.
|
|
25
|
+
* You must set `style="font-size: unset;"` to make the mdc-icon icon size display normally.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```html
|
|
29
|
+
* <mdc-filled-tonal-button size="extra-large">
|
|
30
|
+
* Filled Button with Icon
|
|
31
|
+
* <mdc-icon slot="icon">
|
|
32
|
+
* <span class="material-symbols-outlined" style="font-size: unset;">
|
|
33
|
+
* delete
|
|
34
|
+
* </span>
|
|
35
|
+
* </mdc-icon>
|
|
36
|
+
* </mdc-filled-tonal-button>
|
|
37
|
+
* ```
|
|
38
|
+
* @version
|
|
39
|
+
* Material Design
|
|
40
|
+
*
|
|
41
|
+
* @link
|
|
42
|
+
* https://m3.material.io/styles/icons/overview
|
|
43
|
+
*/
|
|
44
|
+
export declare class Icon extends Icon_base {
|
|
45
|
+
static styles: import("lit").CSSResult;
|
|
46
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
47
|
+
connectedCallback(): void;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAA;AAMtC,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,UAAU,EAAE,IAAI,CAAA;KACnB;CACJ;;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,IAAK,SAAQ,SAA8B;IAEpD,OAAgB,MAAM,0BAAS;cAEZ,MAAM;IAMhB,iBAAiB;CAU7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{i as e,x as i}from"../../lit-element-Ho-VPzO1.js";import{t as s}from"../../custom-element-Dz3n6kSt.js";import{mixinDelegatesAria as o}from"../../utils/aria/delegate.js";import{styles as r}from"./icon.style.js";import"../../utils/aria/aria.js";import"../../component-definitions/icon.definition.js";import"../../utils/tokens/create-wrapped-tokens.js";import"../../utils/tokens/string-tokens.js";let n=class extends(o(e)){static{this.styles=r}render(){return i`<slot></slot>`}connectedCallback(){super.connectedCallback();const{ariaHidden:t}=this;"false"!==t?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")}};n=t([s("mdc-icon")],n);export{n as Icon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.style.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.style.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,MAAM,yBAkDlB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as e}from"../../lit-element-Ho-VPzO1.js";import{IconDefinition as t}from"../../component-definitions/icon.definition.js";import{createWrappedTokens as i}from"../../utils/tokens/create-wrapped-tokens.js";import{stringTokens as o}from"../../utils/tokens/string-tokens.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/const n=e`@layer mdc.icon{@layer variable{:host{${o(i("--mdc-icon",t))}}}@layer base{:host{font-size:var(--_size);width:var(--_size);height:var(--_size);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--_font);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}}}`;export{n as styles};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement, type TemplateResult } from 'lit';
|
|
7
|
+
declare const BaseIconButton_base: import("../../utils/behaviors/mixin").MixinReturn<import("../../utils/behaviors/mixin").MixinReturn<typeof LitElement, import("../../utils/behaviors/element-internals").WithElementInternals>>;
|
|
8
|
+
/**
|
|
9
|
+
* The icon-button component only supports inserting one icon.
|
|
10
|
+
*
|
|
11
|
+
* Provides 2 components:
|
|
12
|
+
* - mdc-icon-button
|
|
13
|
+
* - mdc-toggle-icon-button
|
|
14
|
+
*
|
|
15
|
+
* It is available in variants:
|
|
16
|
+
* - filled
|
|
17
|
+
* - filled-tonal
|
|
18
|
+
* - outlined
|
|
19
|
+
* - standard
|
|
20
|
+
*
|
|
21
|
+
* It is available in 5 sizes:
|
|
22
|
+
* - extra-small
|
|
23
|
+
* - small
|
|
24
|
+
* - medium
|
|
25
|
+
* - large
|
|
26
|
+
* - extra-large
|
|
27
|
+
*
|
|
28
|
+
* It is available in 3 widths:
|
|
29
|
+
* - narrow
|
|
30
|
+
* - default (default)
|
|
31
|
+
* - wide
|
|
32
|
+
*
|
|
33
|
+
* It is available in 2 shapes:
|
|
34
|
+
* - round (default)
|
|
35
|
+
* - square
|
|
36
|
+
*
|
|
37
|
+
* @version
|
|
38
|
+
* Material Design 3 - Expressive
|
|
39
|
+
*
|
|
40
|
+
* @link
|
|
41
|
+
* https://m3.material.io/components/icon-buttons/specs
|
|
42
|
+
*/
|
|
43
|
+
export declare abstract class BaseIconButton extends BaseIconButton_base {
|
|
44
|
+
static styles: import("lit").CSSResult[];
|
|
45
|
+
abstract disabled: boolean;
|
|
46
|
+
variant: 'filled' | 'filled-tonal' | 'outlined' | 'standard';
|
|
47
|
+
size: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
48
|
+
width: 'narrow' | 'default' | 'wide';
|
|
49
|
+
shape: 'round' | 'square';
|
|
50
|
+
disableMorph: boolean;
|
|
51
|
+
protected readonly buttonElement: HTMLElement | null;
|
|
52
|
+
focus(): void;
|
|
53
|
+
blur(): void;
|
|
54
|
+
constructor();
|
|
55
|
+
protected getRenderClasses(): {
|
|
56
|
+
[x: string]: boolean;
|
|
57
|
+
container: boolean;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
'disable-morph': boolean;
|
|
60
|
+
};
|
|
61
|
+
protected render(): TemplateResult;
|
|
62
|
+
protected renderBackground: () => TemplateResult<1>;
|
|
63
|
+
protected renderOutline: () => TemplateResult<1>;
|
|
64
|
+
protected renderIcon: () => TemplateResult<1>;
|
|
65
|
+
protected renderTouchTarget(): TemplateResult<1>;
|
|
66
|
+
protected handleClick(e: MouseEvent): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=base-icon-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/base-icon-button.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAkB,UAAU,EAAW,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;;AAS9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,8BAAsB,cAAe,SAAQ,mBAAqD;IAE9F,OAAgB,MAAM,4BAAmB;IAEzC,SAAgB,QAAQ,EAAE,OAAO,CAAA;IAG1B,OAAO,EAAE,QAAQ,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,CAAa;IAGzE,IAAI,EAAE,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,CAAU;IAG5E,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAY;IAGhD,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAU;IAGnC,YAAY,EAAE,OAAO,CAAQ;IAGpC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAG,WAAW,GAAG,IAAI,CAAA;IAErC,KAAK;IAGL,IAAI;;IAYpB,SAAS,CAAC,gBAAgB;;;;;;cAYP,MAAM,IAAI,cAAc;IAsB3C,SAAS,CAAC,gBAAgB,0BAAmE;IAC7F,SAAS,CAAC,aAAa,0BAA+D;IACtF,SAAS,CAAC,UAAU,0BAA4B;IAChD,SAAS,CAAC,iBAAiB;cAEX,WAAW,CAAC,CAAC,EAAE,UAAU;CAa5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{i as e,x as i,E as s}from"../../lit-element-Ho-VPzO1.js";import{n as r}from"../../property-Ck1wIidx.js";import{e as o}from"../../query-DifSdHBD.js";import{e as a}from"../../class-map-DlMb2KKL.js";import{mixinDelegatesAria as n}from"../../utils/aria/delegate.js";import{mixinElementInternals as d}from"../../utils/behaviors/element-internals.js";import{isActivationClick as p,dispatchActivationClick as l}from"../../utils/event/form-label-activation.js";import{iconButtonStyles as h}from"./icon-button.style.js";import"../../utils/aria/aria.js";import"../../component-definitions/icon-button.definition.js";import"../../color-CigMJnjV.js";import"../../shape-CrZ0CLVJ.js";import"../../state-C-haZXan.js";import"../../utils/tokens/create-logic-shape-tokens.js";import"../../utils/tokens/create-wrapped-tokens.js";import"../../utils/tokens/override-component-tokens.js";import"../../utils/tokens/string-tokens.js";class u extends(n(d(e))){static{this.styles=h}focus(){this.buttonElement?.focus()}blur(){this.buttonElement?.blur()}constructor(){super(),this.variant="standard",this.size="small",this.width="default",this.shape="round",this.disableMorph=!1,this.renderBackground=()=>i`<span class="background" aria-hidden="true"></span>`,this.renderOutline=()=>i`<span class="outline" aria-hidden="true"></span>`,this.renderIcon=()=>i`<slot></slot>`,this.addEventListener("click",this.handleClick.bind(this))}getRenderClasses(){return{container:!0,[this.variant]:!0,[this.size]:!0,[this.width]:!0,[this.shape]:!0,disabled:this.disabled,"disable-morph":this.disableMorph}}render(){const{ariaHasPopup:t,ariaExpanded:e,ariaLabel:r}=this;return i`<button class="${a(this.getRenderClasses())}" id="button" ?disabled="${this.disabled}" aria-disabled="${this.disabled}" aria-label="${r||s}" aria-haspopup="${t||s}" aria-expanded="${e||s}">${"outlined"===this.variant?this.renderOutline():s} ${this.renderIcon()} ${this.renderBackground()} ${this.renderTouchTarget()}<mdc-ripple for="button" part="ripple" .disabled="${this.disabled}"></mdc-ripple><mdc-focus-ring for="button" part="focus-ring" .disabled="${this.disabled}"></mdc-focus-ring></button>`}renderTouchTarget(){return i`<span class="touch-target" aria-hidden="true"></span>`}async handleClick(t){if(this.disabled)return t.stopImmediatePropagation(),void t.preventDefault();p(t)&&this.buttonElement&&(await 0,this.focus(),l(this.buttonElement))}}t([r({type:String})],u.prototype,"variant",void 0),t([r({type:String})],u.prototype,"size",void 0),t([r({type:String})],u.prototype,"width",void 0),t([r({type:String})],u.prototype,"shape",void 0),t([r({type:Boolean,attribute:"disable-morph"})],u.prototype,"disableMorph",void 0),t([o("#button")],u.prototype,"buttonElement",void 0);export{u as BaseIconButton};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type FormSubmitter, type FormSubmitterType } from '../../utils/controller/form-submitter';
|
|
2
|
+
import { BaseIconButton } from './base-icon-button';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
"mdc-icon-button": MDCIconButton;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @version
|
|
10
|
+
* Material Design 3 - Expressive
|
|
11
|
+
*
|
|
12
|
+
* @link
|
|
13
|
+
* https://m3.material.io/components/icon-buttons/specs
|
|
14
|
+
*/
|
|
15
|
+
export declare class MDCIconButton extends BaseIconButton implements FormSubmitter {
|
|
16
|
+
static readonly formAssociated = true;
|
|
17
|
+
get name(): string;
|
|
18
|
+
set name(name: string);
|
|
19
|
+
get form(): HTMLFormElement | null;
|
|
20
|
+
type: FormSubmitterType;
|
|
21
|
+
value: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/icon-button.ts"],"names":[],"mappings":"AAOA,OAAO,EAAsB,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AACtH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEnD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,iBAAiB,EAAE,aAAa,CAAA;KACnC;CACJ;AAED;;;;;;GAMG;AACH,qBACa,aAAc,SAAQ,cAAe,YAAW,aAAa;IAEtE,MAAM,CAAC,QAAQ,CAAC,cAAc,QAAO;IAKrC,IAAW,IAAI,IAGO,MAAM,CAD3B;IACD,IAAW,IAAI,CAAC,IAAI,EAAE,MAAM,EAE3B;IAED,IAAW,IAAI,2BAEd;IAGM,IAAI,EAAE,iBAAiB,CAAW;IAGlC,KAAK,EAAE,MAAM,CAAK;IAGT,QAAQ,UAAQ;CAEnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{t as e}from"../../custom-element-Dz3n6kSt.js";import{n as o}from"../../property-Ck1wIidx.js";import{internals as s}from"../../utils/behaviors/element-internals.js";import{setupFormSubmitter as i}from"../../utils/controller/form-submitter.js";import{BaseIconButton as r}from"./base-icon-button.js";import"../../lit-element-Ho-VPzO1.js";import"../../query-DifSdHBD.js";import"../../class-map-DlMb2KKL.js";import"../../utils/aria/delegate.js";import"../../utils/aria/aria.js";import"../../utils/event/form-label-activation.js";import"./icon-button.style.js";import"../../component-definitions/icon-button.definition.js";import"../../color-CigMJnjV.js";import"../../shape-CrZ0CLVJ.js";import"../../state-C-haZXan.js";import"../../utils/tokens/create-logic-shape-tokens.js";import"../../utils/tokens/create-wrapped-tokens.js";import"../../utils/tokens/override-component-tokens.js";import"../../utils/tokens/string-tokens.js";var m;let n=class extends r{constructor(){super(...arguments),this.type="submit",this.value="",this.disabled=!1}static{m=this}static{this.formAssociated=!0}static{i(m)}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get form(){return this[s].form}};t([o({type:String})],n.prototype,"type",void 0),t([o({type:String,reflect:!0})],n.prototype,"value",void 0),t([o({type:Boolean,reflect:!0})],n.prototype,"disabled",void 0),n=m=t([e("mdc-icon-button")],n);export{n as MDCIconButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.style.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/icon-button.style.ts"],"names":[],"mappings":"AA4aA,eAAO,MAAM,gBAAgB,2BAW5B,CAAA"}
|