@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
|
+
{"version":3,"file":"base-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/base-dialog.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C;;;;;;;GAOG;AACH,8BAAsB,UAAW,SAAQ,YAAY;IAGjC,KAAK,EAAE,OAAO,CAAQ;IAGtB,WAAW,EAAE,MAAM,CAAK;IAGjC,IAAI,EAAE,OAAO,GAAG,EAAE,CAAK;IAE9B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAA;IAE3B,mBAC4B,MAAM,EAAG,iBAAiB,GAAG,IAAI,CAAA;IAC7D,mBAC4B,KAAK,EAAG,iBAAiB,GAAG,IAAI,CAAA;IAC5D,mBAC4B,SAAS,EAAG,iBAAiB,GAAG,IAAI,CAAA;IAChE,mBAC4B,QAAQ,EAAG,iBAAiB,GAAG,IAAI,CAAA;IAC/D,mBAC4B,OAAO,EAAG,iBAAiB,GAAG,IAAI,CAAA;IAC9D,mBAC4B,OAAO,EAAG,iBAAiB,GAAG,IAAI,CAAA;IAC9D,mBAC4B,QAAQ,EAAG,WAAW,GAAG,IAAI,CAAA;IACzD,mBAC4B,SAAS,EAAG,WAAW,GAAG,IAAI,CAAA;IAC1D,mBAC4B,YAAY,EAAG,WAAW,GAAG,IAAI,CAAA;IAC7D,mBAC4B,cAAc,EAAG,WAAW,GAAG,IAAI,CAAA;IAI/D,OAAO,CAAC,WAAW,CAAS;IAE5B,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,OAAO,CAAS;;cAWL,MAAM,IAAI,OAAO;IAOpC,SAAS,CAAC,WAAW;IAMrB,SAAS,CAAC,YAAY;IAmCtB,SAAS,CAAC,mBAAmB;IAO7B,SAAS,CAAC,kBAAkB;IAO5B,SAAS,CAAC,aAAa;IAQvB,SAAS,CAAC,aAAa;IAcd,iBAAiB;IAKjB,oBAAoB;IAO7B,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,gBAAgB;CAM3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"../../tslib.es6-CmLYFWVC.js";import{x as t,E as i}from"../../lit-element-Ho-VPzO1.js";import{n as o}from"../../property-Ck1wIidx.js";import{r as s}from"../../state--U2hSgGK.js";import{e as n}from"../../query-DifSdHBD.js";import{e as r}from"../../class-map-DlMb2KKL.js";import{DialogAction as a}from"./dialog-action.js";import"../../utils/aria/delegate.js";import"../../utils/aria/aria.js";import"../../utils/event/redispatch-event.js";import"./dialog-animations.js";import"../../easing-5hHInU7b.js";class l extends a{constructor(){super(),this.quick=!1,this.returnValue="",this.type="",this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.treewalker=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT)}render(){return t`${this.renderScrim()} ${this.renderDialog()}`}renderScrim(){return t`<span aria-hidden="true" class="scrim"></span>`}renderDialog(){const{ariaLabel:e}=this,o=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),s=r({"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:o,"show-top-divider":o&&!this.isAtScrollTop,"show-bottom-divider":o&&!this.isAtScrollBottom});return t`<dialog class="${s}" aria-label="${e||i}" role="${"alert"===this.type?"alertdialog":i}" .returnValue="${this.returnValue}" @cancel="${this.handleCancel}" @click="${this.handleDialogClick}" @close="${this.handleClose}" @keydown="${this.handleKeydown}"><div class="container" @click="${this.handleContentClick}"><div class="headline">${this.renderHeadlineIcon()} ${this.renderHeadlineLabel()}<mdc-divider></mdc-divider></div>${this.renderContent()} ${this.renderActions()}</div></dialog>`}renderHeadlineLabel(){return t`<h2 id="headline" .aria-hidden="${!this.hasHeadline||i}"><slot name="headline" @slotchange="${this.handleHeadlineChange}"></slot></h2>`}renderHeadlineIcon(){return t`<div class="icon" aria-hidden="true"><slot name="icon" @slotchange="${this.handleIconChange}"></slot></div>`}renderActions(){return t`<div class="actions"><mdc-divider></mdc-divider><slot name="actions" @slotchange="${this.handleActionsChange}"></slot></div>`}renderContent(){return t`<div class="scroller"><div class="content"><div class="top anchor"></div><slot name="content"></slot><div class="bottom anchor"></div></div></div>`}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}handleHeadlineChange(e){const t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){const t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements().length>0}}e([o({type:Boolean})],l.prototype,"quick",void 0),e([o({type:String,attribute:!1})],l.prototype,"returnValue",void 0),e([o({type:String,attribute:!1})],l.prototype,"type",void 0),e([n("dialog")],l.prototype,"dialog",void 0),e([n(".scrim")],l.prototype,"scrim",void 0),e([n(".container")],l.prototype,"container",void 0),e([n(".headline")],l.prototype,"headline",void 0),e([n(".content")],l.prototype,"content",void 0),e([n(".actions")],l.prototype,"actions",void 0),e([n(".scroller")],l.prototype,"scroller",void 0),e([n(".top.anchor")],l.prototype,"topAnchor",void 0),e([n(".bottom.anchor")],l.prototype,"bottomAnchor",void 0),e([n(".focus-trap")],l.prototype,"firstFocusTrap",void 0),e([s()],l.prototype,"hasHeadline",void 0),e([s()],l.prototype,"hasActions",void 0),e([s()],l.prototype,"hasIcon",void 0);export{l as BaseDialog};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseDialog } from './base-dialog';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
"mdc-basic-dialog": BasicDialog;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export declare class BasicDialog extends BaseDialog {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=basic-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basic-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/basic-dialog.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,kBAAkB,EAAE,WAAW,CAAA;KAClC;CACJ;AAED,qBACa,WAAY,SAAQ,UAAU;IACvC,OAAgB,MAAM,0BAAmB;CAC5C"}
|
|
@@ -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{BaseDialog as i}from"./base-dialog.js";import{basicDialogStyle as o}from"./dialog.style.js";import"../../property-Ck1wIidx.js";import"../../state--U2hSgGK.js";import"../../query-DifSdHBD.js";import"../../class-map-DlMb2KKL.js";import"./dialog-action.js";import"../../utils/aria/delegate.js";import"../../utils/aria/aria.js";import"../../utils/event/redispatch-event.js";import"./dialog-animations.js";import"../../easing-5hHInU7b.js";import"../../color-CigMJnjV.js";import"../../component-definitions/dialog.definition.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/string-tokens.js";let e=class extends i{static{this.styles=o}};e=t([s("mdc-basic-dialog")],e);export{e as BasicDialog};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*
|
|
6
|
+
* [Modified by Kai-Orion & Sandlada]
|
|
7
|
+
*/
|
|
8
|
+
import { LitElement } from 'lit';
|
|
9
|
+
declare const DialogAction_base: import("../../utils/behaviors/mixin").MixinReturn<typeof LitElement>;
|
|
10
|
+
export declare abstract class DialogAction extends DialogAction_base {
|
|
11
|
+
returnValue: string;
|
|
12
|
+
quick: boolean;
|
|
13
|
+
protected readonly dialog: HTMLDialogElement | null;
|
|
14
|
+
protected readonly scrim: HTMLDialogElement | null;
|
|
15
|
+
protected readonly container: HTMLDialogElement | null;
|
|
16
|
+
protected readonly headline: HTMLDialogElement | null;
|
|
17
|
+
protected readonly content: HTMLDialogElement | null;
|
|
18
|
+
protected readonly actions: HTMLDialogElement | null;
|
|
19
|
+
protected readonly scroller: HTMLElement | null;
|
|
20
|
+
protected readonly topAnchor: HTMLElement | null;
|
|
21
|
+
protected readonly bottomAnchor: HTMLElement | null;
|
|
22
|
+
protected readonly firstFocusTrap: HTMLElement | null;
|
|
23
|
+
get open(): boolean;
|
|
24
|
+
set open(value: boolean);
|
|
25
|
+
protected isAtScrollTop: boolean;
|
|
26
|
+
protected isAtScrollBottom: boolean;
|
|
27
|
+
protected isOpen: boolean;
|
|
28
|
+
protected isOpening: boolean;
|
|
29
|
+
protected isConnectedPromiseResolve: () => void;
|
|
30
|
+
protected isConnectedPromise: Promise<void>;
|
|
31
|
+
protected nextClickIsFromContent: boolean;
|
|
32
|
+
protected intersectionObserver?: IntersectionObserver;
|
|
33
|
+
protected cancelAnimations?: AbortController;
|
|
34
|
+
protected escapePressedWithoutCancel: boolean;
|
|
35
|
+
protected getIsConnectedPromise(): Promise<void>;
|
|
36
|
+
private get getCloseAnimation();
|
|
37
|
+
private get getOpenAnimation();
|
|
38
|
+
constructor();
|
|
39
|
+
protected firstUpdated(): void;
|
|
40
|
+
show(): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Closes the dialog and fires a cancelable `close` event. After a dialog's
|
|
43
|
+
* animation, a `closed` event is fired.
|
|
44
|
+
*
|
|
45
|
+
* @param returnValue A return value usually indicating which button was used
|
|
46
|
+
* to close a dialog. If a dialog is canceled by clicking the scrim or
|
|
47
|
+
* pressing Escape, it will not change the return value after closing.
|
|
48
|
+
* @return A Promise that resolves after the animation is finished and the
|
|
49
|
+
* `closed` event was fired.
|
|
50
|
+
*/
|
|
51
|
+
close(returnValue?: string): Promise<void>;
|
|
52
|
+
private animateDialog;
|
|
53
|
+
protected handleDialogClick(): void;
|
|
54
|
+
protected handleContentClick(): void;
|
|
55
|
+
protected handleSubmit(event: SubmitEvent): void;
|
|
56
|
+
protected handleCancel(event: Event): void;
|
|
57
|
+
protected handleClose(): void;
|
|
58
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
59
|
+
private handleAnchorIntersection;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=dialog-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-action.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-action.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAY,UAAU,EAAE,MAAM,KAAK,CAAA;;AAM1C,8BAAsB,YAAa,SAAQ,iBAA8B;IAE7D,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;IAEtB,mBAA2B,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC3D,mBAA2B,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC1D,mBAA2B,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9D,mBAA2B,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC7D,mBAA2B,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5D,mBAA2B,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5D,mBAA2B,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAA;IACvD,mBAA2B,SAAS,EAAE,WAAW,GAAG,IAAI,CAAA;IACxD,mBAA2B,YAAY,EAAE,WAAW,GAAG,IAAI,CAAA;IAC3D,mBAA2B,cAAc,EAAE,WAAW,GAAG,IAAI,CAAA;IAE7D,IACW,IAAI,IAAI,OAAO,CAEzB;IACD,IAAW,IAAI,CAAC,KAAK,EAAE,OAAO,EAY7B;IAGD,SAAS,CAAC,aAAa,UAAS;IAEhC,SAAS,CAAC,gBAAgB,UAAS;IAEnC,SAAS,CAAC,MAAM,UAAQ;IACxB,SAAS,CAAC,SAAS,UAAQ;IAC3B,SAAS,CAAC,yBAAyB,EAAG,MAAM,IAAI,CAAA;IAChD,SAAS,CAAC,kBAAkB,gBAA+B;IAC3D,SAAS,CAAC,sBAAsB,UAAS;IACzC,SAAS,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;IACrD,SAAS,CAAC,gBAAgB,CAAC,EAAE,eAAe,CAAA;IAC5C,SAAS,CAAC,0BAA0B,UAAQ;IAE5C,SAAS,CAAC,qBAAqB;IAM/B,OAAO,KAAK,iBAAiB,GAE5B;IACD,OAAO,KAAK,gBAAgB,GAE3B;;cAUkB,YAAY;IAclB,IAAI;IAuCjB;;;;;;;;;OASG;IACU,KAAK,CAAC,WAAW,SAAmB;YAgCnC,aAAa;IAuD3B,SAAS,CAAC,iBAAiB;IAoB3B,SAAS,CAAC,kBAAkB;IAI5B,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,WAAW;IAYzC,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK;IAiBnC,SAAS,CAAC,WAAW;IAQrB,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,aAAa;IAe5C,OAAO,CAAC,wBAAwB;CAUnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{i as e}from"../../lit-element-Ho-VPzO1.js";import{n as i}from"../../property-Ck1wIidx.js";import{r as s}from"../../state--U2hSgGK.js";import{mixinDelegatesAria as n}from"../../utils/aria/delegate.js";import{redispatchEvent as o}from"../../utils/event/redispatch-event.js";import{DialogDefaultCloseAnimation as r,DialogDefaultOpenAnimation as a}from"./dialog-animations.js";import"../../utils/aria/aria.js";import"../../easing-5hHInU7b.js";class h extends(n(e)){get open(){return this.isOpen}set open(t){t!==this.isOpen&&(this.isOpen=t,t?(this.setAttribute("open",""),this.show?.()):(this.removeAttribute("open"),this.close?.()))}getIsConnectedPromise(){return new Promise(t=>{this.isConnectedPromiseResolve=t})}get getCloseAnimation(){return r}get getOpenAnimation(){return a}constructor(){super(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.nextClickIsFromContent=!1,this.escapePressedWithoutCancel=!1,this.addEventListener("submit",this.handleSubmit.bind(this))}firstUpdated(){this.intersectionObserver=new IntersectionObserver(t=>{for(const e of t)this.handleAnchorIntersection(e)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}async show(){this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;const t=this.dialog;if(t.open||!this.isOpening)return void(this.isOpening=!1);if(!this.dispatchEvent(new Event("open",{cancelable:!0})))return this.open=!1,void(this.isOpening=!1);t.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),this.querySelector("[autofocus]")?.focus(),await this.animateDialog(this.getOpenAnimation),this.dispatchEvent(new Event("opened")),this.isOpening=!1}async close(t=this.returnValue){if(this.isOpening=!1,!this.isConnected)return void(this.open=!1);await this.updateComplete;const e=this.dialog;if(!e.open||this.isOpening)return void(this.open=!1);const i=this.returnValue;this.returnValue=t;this.dispatchEvent(new Event("close",{cancelable:!0}))?(await this.animateDialog(this.getCloseAnimation),e.close(t),this.open=!1,this.dispatchEvent(new Event("closed"))):this.returnValue=i}async animateDialog(t){if(this.cancelAnimations?.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:e,scrim:i,container:s,headline:n,content:o,actions:r}=this;if(!(e&&i&&s&&n&&o&&r))return;const{container:a,dialog:h,scrim:c,headline:l,content:p,actions:d}=t,m=[[e,h??[]],[i,c??[]],[s,a??[]],[n,l??[]],[o,p??[]],[r,d??[]]],u=[];for(const[t,e]of m)for(const i of e){const e=t.animate(...i);this.cancelAnimations.signal.addEventListener("abort",()=>{e.cancel()}),u.push(e)}await Promise.all(u.map(t=>t.finished.catch(()=>{})))}handleDialogClick(){if(this.nextClickIsFromContent)return void(this.nextClickIsFromContent=!1);!this.dispatchEvent(new Event("cancel",{cancelable:!0}))||this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(t){const e=t.target,{submitter:i}=t;"dialog"===e.getAttribute("method")&&i&&this.close(i.getAttribute("value")??this.returnValue)}handleCancel(t){if(t.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const e=o(this,t);t.preventDefault(),e||this.close()}handleClose(){this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,this.dialog?.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(t){"Escape"===t.key&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}handleAnchorIntersection(t){const{target:e,isIntersecting:i}=t;e===this.topAnchor&&(this.isAtScrollTop=i),e===this.bottomAnchor&&(this.isAtScrollBottom=i)}}t([i({type:Boolean,noAccessor:!0})],h.prototype,"open",null),t([s()],h.prototype,"isAtScrollTop",void 0),t([s()],h.prototype,"isAtScrollBottom",void 0);export{h as DialogAction};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* A dialog animation's arguments. See `Element.prototype.animate`.
|
|
8
|
+
*/
|
|
9
|
+
export type DialogAnimationArgs = Parameters<Element['animate']>;
|
|
10
|
+
/**
|
|
11
|
+
* A collection of dialog animations. Each element of a dialog may have multiple
|
|
12
|
+
* animations.
|
|
13
|
+
*/
|
|
14
|
+
export interface DialogAnimation {
|
|
15
|
+
/**
|
|
16
|
+
* Animations for the dialog itself.
|
|
17
|
+
*/
|
|
18
|
+
dialog?: DialogAnimationArgs[];
|
|
19
|
+
/**
|
|
20
|
+
* Animations for the scrim backdrop.
|
|
21
|
+
*/
|
|
22
|
+
scrim?: DialogAnimationArgs[];
|
|
23
|
+
/**
|
|
24
|
+
* Animations for the container of the dialog.
|
|
25
|
+
*/
|
|
26
|
+
container?: DialogAnimationArgs[];
|
|
27
|
+
/**
|
|
28
|
+
* Animations for the headline section.
|
|
29
|
+
*/
|
|
30
|
+
headline?: DialogAnimationArgs[];
|
|
31
|
+
/**
|
|
32
|
+
* Animations for the contents section.
|
|
33
|
+
*/
|
|
34
|
+
content?: DialogAnimationArgs[];
|
|
35
|
+
/**
|
|
36
|
+
* Animations for the actions section.
|
|
37
|
+
*/
|
|
38
|
+
actions?: DialogAnimationArgs[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The default dialog open animation.
|
|
42
|
+
*/
|
|
43
|
+
export declare const DialogDefaultOpenAnimation: DialogAnimation;
|
|
44
|
+
/**
|
|
45
|
+
* The default dialog close animation.
|
|
46
|
+
*/
|
|
47
|
+
export declare const DialogDefaultCloseAnimation: DialogAnimation;
|
|
48
|
+
//# sourceMappingURL=dialog-animations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-animations.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-animations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAE9B;;OAEG;IACH,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAEjC;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,eAoDxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,eAoDzC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{E as a}from"../../easing-5hHInU7b.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2023 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/const i={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:a.Emphasized}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:"linear"}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:"linear",pseudoElement:"::before"}],[[{height:"35%"},{height:"100%"}],{duration:500,easing:a.Emphasized,pseudoElement:"::before"}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:"linear",fill:"forwards"}]]},e={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:a.EmphasizedAccelerate}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:a.EmphasizedAccelerate,pseudoElement:"::before"}],[[{opacity:"1"},{opacity:"0"}],{delay:100,duration:50,easing:"linear",pseudoElement:"::before"}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]]};export{e as DialogDefaultCloseAnimation,i as DialogDefaultOpenAnimation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.style.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.style.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB,yBAmN5B,CAAA"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import{C as e}from"../../color-CigMJnjV.js";import{r as i,a as t}from"../../lit-element-Ho-VPzO1.js";import{BasicDialogDefinition as o}from"../../component-definitions/dialog.definition.js";import{createWrappedTokens as n}from"../../utils/tokens/create-wrapped-tokens.js";import{stringTokens as a}from"../../utils/tokens/string-tokens.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 r=t`
|
|
7
|
+
@layer mdc.basic-dialog.variable { :host{${a(n("--mdc-basic-dialog",o))};} }
|
|
8
|
+
@layer mdc.basic-dialog.base {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
:host {
|
|
12
|
+
border-start-start-radius: var(--_container-shape-start-start);
|
|
13
|
+
border-start-end-radius: var(--_container-shape-start-end);
|
|
14
|
+
border-end-end-radius: var(--_container-shape-end-end);
|
|
15
|
+
border-end-start-radius: var(--_container-shape-end-start);
|
|
16
|
+
display: contents;
|
|
17
|
+
margin: auto;
|
|
18
|
+
max-height: min(560px, calc(100% - 48px));
|
|
19
|
+
max-width: min(560px, calc(100% - 48px));
|
|
20
|
+
min-height: 140px;
|
|
21
|
+
min-width: 280px;
|
|
22
|
+
position: fixed;
|
|
23
|
+
height: fit-content;
|
|
24
|
+
width: fit-content;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
dialog {
|
|
28
|
+
background: transparent;
|
|
29
|
+
border: none;
|
|
30
|
+
border-radius: inherit;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
height: inherit;
|
|
33
|
+
margin: inherit;
|
|
34
|
+
max-height: inherit;
|
|
35
|
+
max-width: inherit;
|
|
36
|
+
min-height: inherit;
|
|
37
|
+
min-width: inherit;
|
|
38
|
+
outline: none;
|
|
39
|
+
overflow: visible;
|
|
40
|
+
padding: 0;
|
|
41
|
+
width: inherit;
|
|
42
|
+
}
|
|
43
|
+
dialog[open] {
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
::backdrop {
|
|
48
|
+
background: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.scrim {
|
|
52
|
+
background: ${i(e.Scrim)};
|
|
53
|
+
display: none;
|
|
54
|
+
inset: 0;
|
|
55
|
+
opacity: 32%;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
position: fixed;
|
|
58
|
+
z-index: 1;
|
|
59
|
+
}
|
|
60
|
+
:host([open]) .scrim {
|
|
61
|
+
display: flex;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
h2 {
|
|
65
|
+
all: unset;
|
|
66
|
+
align-self: stretch;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.headline {
|
|
70
|
+
align-items: center;
|
|
71
|
+
color: var(--_headline-label-color);
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
font-family: var(--_headline-label-font);
|
|
75
|
+
font-size: var(--_headline-label-size);
|
|
76
|
+
line-height: var(--_headline-label-line-height);
|
|
77
|
+
font-weight: var(--_headline-label-weight);
|
|
78
|
+
position: relative;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
slot[name='headline']::slotted(*) {
|
|
82
|
+
align-items: center;
|
|
83
|
+
align-self: stretch;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
display: flex;
|
|
86
|
+
gap: 8px;
|
|
87
|
+
padding: 24px 24px 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.icon {
|
|
91
|
+
display: flex;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
slot[name='icon']::slotted(*) {
|
|
95
|
+
fill: currentColor;
|
|
96
|
+
margin-top: 24px;
|
|
97
|
+
color: var(--_icon-color);
|
|
98
|
+
font-size: var(--_icon-size);
|
|
99
|
+
height: var(--_icon-size);
|
|
100
|
+
width: var(--_icon-size);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.has-icon slot[name='headline']::slotted(*) {
|
|
104
|
+
justify-content: center;
|
|
105
|
+
padding-top: 16px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.scrollable slot[name='headline']::slotted(*) {
|
|
109
|
+
padding-bottom: 16px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.scrollable.has-headline slot[name='content']::slotted(*) {
|
|
113
|
+
padding-top: 8px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.container {
|
|
117
|
+
border-radius: inherit;
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
flex-grow: 1;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
position: relative;
|
|
123
|
+
transform-origin: top;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.container::before {
|
|
127
|
+
background: var(--_container-color);
|
|
128
|
+
border-radius: inherit;
|
|
129
|
+
content: '';
|
|
130
|
+
inset: 0;
|
|
131
|
+
position: absolute;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.scroller {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex: 1;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
z-index: 1;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.scrollable .scroller {
|
|
143
|
+
overflow-y: scroll;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.content {
|
|
147
|
+
color: var(--_supporting-text-label-color);
|
|
148
|
+
font-family: var(--_supporting-text-label-font);
|
|
149
|
+
font-size: var(--_supporting-text-label-size);
|
|
150
|
+
line-height: var(--_supporting-text-label-line-height);
|
|
151
|
+
font-weight: var(--_supporting-text-label-weight);
|
|
152
|
+
flex: 1;
|
|
153
|
+
height: min-content;
|
|
154
|
+
position: relative;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
slot[name='content']::slotted(*) {
|
|
158
|
+
display: block;
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
padding: 16px 24px 24px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.anchor {
|
|
164
|
+
position: absolute;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.top.anchor {
|
|
168
|
+
top: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.bottom.anchor {
|
|
172
|
+
bottom: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.actions {
|
|
176
|
+
position: relative;
|
|
177
|
+
box-sizing: border-box;
|
|
178
|
+
display: flex;
|
|
179
|
+
gap: 8px;
|
|
180
|
+
padding: 16px 24px 24px;
|
|
181
|
+
justify-content: flex-end;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
slot[name='actions']::slotted(*) {
|
|
185
|
+
box-sizing: border-box;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.has-actions slot[name='content']::slotted(*) {
|
|
189
|
+
padding-bottom: 8px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
mdc-divider {
|
|
193
|
+
display: none;
|
|
194
|
+
position: absolute;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.has-headline.show-top-divider .headline mdc-divider,
|
|
198
|
+
.has-actions.show-bottom-divider .actions mdc-divider {
|
|
199
|
+
display: flex;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.headline mdc-divider {
|
|
203
|
+
bottom: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.actions mdc-divider {
|
|
207
|
+
top: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media (forced-colors: active) {
|
|
211
|
+
dialog {
|
|
212
|
+
outline: 2px solid WindowText;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
`;export{r as basicDialogStyle};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
"mdc-divider": Divider;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class Divider extends LitElement {
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
inset: boolean;
|
|
15
|
+
insetStart: boolean;
|
|
16
|
+
insetEnd: boolean;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=divider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../../src/components/divider/divider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAIhC,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,aAAa,EAAE,OAAO,CAAA;KACzB;CACJ;AAED,qBACa,OAAQ,SAAQ,UAAU;IAEnC,OAAgB,MAAM,0BAAgB;IAG/B,KAAK,UAAQ;IAGb,UAAU,UAAQ;IAGlB,QAAQ,UAAQ;CAE1B"}
|
|
@@ -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 i}from"../../custom-element-Dz3n6kSt.js";import{n as o}from"../../property-Ck1wIidx.js";import{DividerStyles as s}from"./divider.style.js";import"../../component-definitions/divider.definition.js";import"../../color-CigMJnjV.js";import"../../utils/tokens/create-wrapped-tokens.js";import"../../utils/tokens/string-tokens.js";let r=class extends e{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}static{this.styles=s}};t([o({type:Boolean,reflect:!0})],r.prototype,"inset",void 0),t([o({type:Boolean,reflect:!0,attribute:"inset-start"})],r.prototype,"insetStart",void 0),t([o({type:Boolean,reflect:!0,attribute:"inset-end"})],r.prototype,"insetEnd",void 0),r=t([i("mdc-divider")],r);export{r as Divider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.style.d.ts","sourceRoot":"","sources":["../../../src/components/divider/divider.style.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa,yBAoCzB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as t}from"../../lit-element-Ho-VPzO1.js";import{DividerDefinition as o}from"../../component-definitions/divider.definition.js";import{createWrappedTokens as e}from"../../utils/tokens/create-wrapped-tokens.js";import{stringTokens as i}from"../../utils/tokens/string-tokens.js";import"../../color-CigMJnjV.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/const r=t`@layer mdc.divider.variant{:host{${i(e("--mdc-divider",o))}}}@layer mdc.divider.base{:host{box-sizing:border-box;color:var(--_color);display:flex;height:var(--_thickness);width:100%}:host([inset-start]),:host([inset]){padding-inline-start:16px}:host([inset-end]),:host([inset]){padding-inline-end:16px}:host::before{background:currentColor;content:'';height:100%;width:100%}@media (forced-colors:active){:host::before{background:CanvasText}}}`;export{r as DividerStyles};
|
|
@@ -0,0 +1,46 @@
|
|
|
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-elevation": Elevation;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Elevation is not a concept that is explicitly categorized as a component.
|
|
14
|
+
*
|
|
15
|
+
* It represents the shadow of an object and is usually used to express the level at which an object is located.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```html
|
|
19
|
+
* <button class="button">
|
|
20
|
+
* <mdc-elevation></mdc-elevation>
|
|
21
|
+
* </button>
|
|
22
|
+
* <style>
|
|
23
|
+
* .button {
|
|
24
|
+
* position: relative;
|
|
25
|
+
* --mdc-elevation-level: 3;
|
|
26
|
+
* }
|
|
27
|
+
* .button:hover {
|
|
28
|
+
* --mdc-elevation-level: 4;
|
|
29
|
+
* }
|
|
30
|
+
* .button:active {
|
|
31
|
+
* --mdc-elevation-level: 2;
|
|
32
|
+
* }
|
|
33
|
+
* </style>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @version
|
|
37
|
+
* Material Design 3
|
|
38
|
+
*
|
|
39
|
+
* @link
|
|
40
|
+
* https://m3.material.io/styles/elevation/overview
|
|
41
|
+
*/
|
|
42
|
+
export declare class Elevation extends LitElement {
|
|
43
|
+
static styles: import("lit").CSSResult;
|
|
44
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=elevation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation.d.ts","sourceRoot":"","sources":["../../../src/components/elevation/elevation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAA;AAItC,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,eAAe,EAAE,SAAS,CAAA;KAC7B;CACJ;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBACa,SAAU,SAAQ,UAAU;IAErC,OAAgB,MAAM,0BAAS;cAEZ,MAAM;CAM5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{i as e,x as s}from"../../lit-element-Ho-VPzO1.js";import{t as o}from"../../custom-element-Dz3n6kSt.js";import{styles as i}from"./elevation.style.js";import"../../component-definitions/elevation.definition.js";import"../../color-CigMJnjV.js";import"../../elevation-dUQez_WX.js";import"../../utils/tokens/create-wrapped-tokens.js";import"../../utils/tokens/string-tokens.js";let n=class extends e{static{this.styles=i}render(){return s`<span aria-hidden="true" class="elevation"></span>`}};n=t([o("mdc-elevation")],n);export{n as Elevation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation.style.d.ts","sourceRoot":"","sources":["../../../src/components/elevation/elevation.style.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,MAAM,yBAuElB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as l}from"../../lit-element-Ho-VPzO1.js";import{ElevationDefinition as a}from"../../component-definitions/elevation.definition.js";import{createWrappedTokens as e}from"../../utils/tokens/create-wrapped-tokens.js";import{stringTokens as r}from"../../utils/tokens/string-tokens.js";import"../../color-CigMJnjV.js";import"../../elevation-dUQez_WX.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/const o=l`@layer mdc.elevation{@layer variable{:host{${r(e("--mdc-elevation",a))}}}@layer base{:host{display:flex;pointer-events:none}.elevation,.elevation::after,.elevation::before,:host{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-timing-function:inherit}.elevation::after,.elevation::before{content:'';transition-property:box-shadow,opacity}.elevation::before{opacity:.3;--l1-y:clamp(0, var(--_level), 1);--l4-y:clamp(0, var(--_level) - 3, 1);--l5-y:calc(2 * clamp(0, var(--_level) - 4, 1));--y:calc(1px * (var(--l1-y) + var(--l4-y) + var(--l5-y)));--l1-blur:calc(2 * clamp(0, var(--_level), 1));--l3-blur:clamp(0, var(--_level) - 2, 1);--l5-blur:clamp(0, var(--_level) - 4, 1);--blur:calc(1px * (var(--l1-blur) + var(--l3-blur) + var(--l5-blur)));box-shadow:0 var(--y) var(--blur) 0 var(--_shadow-color)}.elevation::after{opacity:.15;--l1-y:clamp(0, var(--_level), 1);--l2-y:clamp(0, var(--_level) - 1, 1);--l3to5-y:calc(2 * clamp(0, var(--_level) - 2, 3));--y:calc(1px * (var(--l1-y) + var(--l2-y) + var(--l3to5-y)));--l1to2-blur:calc(3 * clamp(0, var(--_level), 2));--l3to5-blur:calc(2 * clamp(0, var(--_level) - 2, 3));--blur:calc(1px * (var(--l1to2-blur) + var(--l3to5-blur)));--l1to4-spread:clamp(0, var(--_level), 4);--l5-spread:calc(2 * clamp(0, var(--_level) - 4, 1));--spread:calc(1px * (var(--l1to4-spread) + var(--l5-spread)));box-shadow:0 var(--y) var(--blur) var(--spread) var(--_shadow-color)}}}`;export{o as styles};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseFab } from './base-fab';
|
|
2
|
+
/**
|
|
3
|
+
* Extended Fab components provide an icon and an label (optional).
|
|
4
|
+
*
|
|
5
|
+
* @version
|
|
6
|
+
* Material Design 3 - Expressive
|
|
7
|
+
*
|
|
8
|
+
* @link
|
|
9
|
+
* https://m3.material.io/components/floating-action-button/overview
|
|
10
|
+
*/
|
|
11
|
+
export declare abstract class BaseExtendedFab extends BaseFab {
|
|
12
|
+
extended: boolean;
|
|
13
|
+
private hasLabel;
|
|
14
|
+
protected render(): unknown;
|
|
15
|
+
protected renderLabel(): import("lit-html").TemplateResult<1>;
|
|
16
|
+
protected getRenderClasses(): {
|
|
17
|
+
'has-label': boolean;
|
|
18
|
+
extended: boolean;
|
|
19
|
+
'has-icon': boolean;
|
|
20
|
+
};
|
|
21
|
+
private handleLabelSlotChange;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=base-extended-fab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-extended-fab.d.ts","sourceRoot":"","sources":["../../../src/components/fab/base-extended-fab.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC;;;;;;;;GAQG;AACH,8BAAsB,eAAgB,SAAQ,OAAO;IAG1C,QAAQ,EAAE,OAAO,CAAQ;IAGhC,OAAO,CAAC,QAAQ,CAAiB;cAEd,MAAM,IAAI,OAAO;IAapC,SAAS,CAAC,WAAW;cAQF,gBAAgB;;;;;IAQnC,OAAO,CAAC,qBAAqB;CAIhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"../../tslib.es6-CmLYFWVC.js";import{x as t}from"../../lit-element-Ho-VPzO1.js";import{n as s}from"../../property-Ck1wIidx.js";import{r}from"../../state--U2hSgGK.js";import{e as a}from"../../class-map-DlMb2KKL.js";import{BaseFab as o}from"./base-fab.js";import"../../query-DifSdHBD.js";import"../../utils/event/form-label-activation.js";class l extends o{constructor(){super(...arguments),this.extended=!1,this.hasLabel=!1}render(){return t`<button class="${a(this.getRenderClasses())}"><mdc-ripple part="ripple"></mdc-ripple><mdc-focus-ring part="focus-ring"></mdc-focus-ring><mdc-elevation part="elevation"></mdc-elevation>${this.renderIcon()} ${this.renderLabel()}</button>`}renderLabel(){return t`<span class="label"><slot @slotchange="${this.handleLabelSlotChange}"></slot></span>`}getRenderClasses(){return{...super.getRenderClasses(),"has-label":this.hasLabel,extended:this.extended}}handleLabelSlotChange(e){this.hasLabel=e.target.assignedElements().length>0}}e([s({type:Boolean})],l.prototype,"extended",void 0),e([r()],l.prototype,"hasLabel",void 0);export{l as BaseExtendedFab};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
/**
|
|
8
|
+
* Fab components provide an icon.
|
|
9
|
+
*
|
|
10
|
+
* @see
|
|
11
|
+
* The fab component is the simplest button. Do not use the fab component in the form.
|
|
12
|
+
*
|
|
13
|
+
* Available in 6 variants:
|
|
14
|
+
* - variant="primary"
|
|
15
|
+
* - variant="secondary"
|
|
16
|
+
* - variant="tertiary"
|
|
17
|
+
* - variant="tonal-primary"
|
|
18
|
+
* - variant="tonal-secondary" (default)
|
|
19
|
+
* - variant="tonal-tertiary"
|
|
20
|
+
*
|
|
21
|
+
* The fab component is available in 3 sizes:
|
|
22
|
+
* - size="small" (default)
|
|
23
|
+
* - size="medium"
|
|
24
|
+
* - size="large"
|
|
25
|
+
*
|
|
26
|
+
* @version
|
|
27
|
+
* Material Design 3 - Expressive
|
|
28
|
+
*
|
|
29
|
+
* @link
|
|
30
|
+
* https://m3.material.io/components/floating-action-button/overview
|
|
31
|
+
*/
|
|
32
|
+
export declare abstract class BaseFab extends LitElement {
|
|
33
|
+
private buttonElement;
|
|
34
|
+
variant: 'primary' | 'secondary' | 'tertiary' | 'tonal-primary' | 'tonal-secondary' | 'tonal-tertiary';
|
|
35
|
+
size: 'small' | 'medium' | 'large';
|
|
36
|
+
private hasIcon;
|
|
37
|
+
protected getRenderClasses(): {
|
|
38
|
+
[x: string]: boolean;
|
|
39
|
+
'has-icon': boolean;
|
|
40
|
+
};
|
|
41
|
+
constructor();
|
|
42
|
+
protected render(): unknown;
|
|
43
|
+
protected renderIcon(): import("lit-html").TemplateResult<1>;
|
|
44
|
+
private handleClick;
|
|
45
|
+
private handleIconSlotChange;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=base-fab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-fab.d.ts","sourceRoot":"","sources":["../../../src/components/fab/base-fab.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAkB,UAAU,EAAE,MAAM,KAAK,CAAA;AAKhD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,8BAAsB,OAAQ,SAAQ,UAAU;IAG5C,OAAO,CAAC,aAAa,CAAqB;IAGnC,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,GAAG,iBAAiB,GAAG,gBAAgB,CAAoB;IAG1H,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAU;IAGnD,OAAO,CAAC,OAAO,CAAiB;IAEhC,SAAS,CAAC,gBAAgB;;;;;cAgBP,MAAM,IAAI,OAAO;IAYpC,SAAS,CAAC,UAAU;IAQpB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,oBAAoB;CAG/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{i as e,x as s}from"../../lit-element-Ho-VPzO1.js";import{n}from"../../property-Ck1wIidx.js";import{r as o}from"../../state--U2hSgGK.js";import{e as i}from"../../query-DifSdHBD.js";import{e as r}from"../../class-map-DlMb2KKL.js";import{isActivationClick as a,dispatchActivationClick as l}from"../../utils/event/form-label-activation.js";class c extends e{getRenderClasses(){return{[this.variant]:!0,[this.size]:!0,"has-icon":this.hasIcon}}constructor(){super(),this.variant="tonal-secondary",this.size="small",this.hasIcon=!1,this.addEventListener("click",this.handleClick.bind(this))}render(){return s`<button class="${r(this.getRenderClasses())}"><mdc-ripple part="ripple"></mdc-ripple><mdc-focus-ring part="focus-ring"></mdc-focus-ring><mdc-elevation part="elevation"></mdc-elevation>${this.renderIcon()}</button>`}renderIcon(){return s`<span class="icon"><slot name="icon" .aria-hidden="${this.ariaLabel}" @slotchange="${this.handleIconSlotChange}"></slot></span>`}handleClick(t){a(t)&&this.buttonElement&&l(this.buttonElement)}handleIconSlotChange(t){this.hasIcon=t.target.assignedElements().length>0}}t([i(".button")],c.prototype,"buttonElement",void 0),t([n({type:String,reflect:!0})],c.prototype,"variant",void 0),t([n({type:String})],c.prototype,"size",void 0),t([o()],c.prototype,"hasIcon",void 0);export{c as BaseFab};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseExtendedFab } from './base-extended-fab';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
"mdc-fab": MDCFab;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Fab provides a label and an icon.
|
|
9
|
+
*
|
|
10
|
+
* Note that the tag must be wrapped with a span or div tag.
|
|
11
|
+
* The label is not displayed by default, and the label is displayed through the extended attribute:
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <mdc-fab variant="primary" extended>
|
|
16
|
+
* <span>FAB</span>
|
|
17
|
+
* </mdc-fab>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @version
|
|
21
|
+
* Material Design 3 - Expressive
|
|
22
|
+
*
|
|
23
|
+
* @link
|
|
24
|
+
* https://m3.material.io/components/floating-action-button/overview
|
|
25
|
+
*/
|
|
26
|
+
export declare class MDCFab extends BaseExtendedFab {
|
|
27
|
+
static styles: import("lit").CSSResult[];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=fab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fab.d.ts","sourceRoot":"","sources":["../../../src/components/fab/fab.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGrD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,SAAS,EAAE,MAAM,CAAA;KACpB;CACJ;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBACa,MAAO,SAAQ,eAAe;IACvC,OAAgB,MAAM,4BAAY;CACrC"}
|