@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,44 @@
|
|
|
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-typography": Typography;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
type TypographyVariant = 'display-large' | 'display-medium' | 'display-small' | 'headline-large' | 'headline-medium' | 'headline-small' | 'title-large' | 'title-medium' | 'title-small' | 'body-large' | 'body-medium' | 'body-small' | 'label-large' | 'label-medium' | 'label-small';
|
|
13
|
+
/**
|
|
14
|
+
* Used to display text.
|
|
15
|
+
*
|
|
16
|
+
* Provides 5 series:
|
|
17
|
+
* - display
|
|
18
|
+
* - headline
|
|
19
|
+
* - title
|
|
20
|
+
* - body
|
|
21
|
+
* - label
|
|
22
|
+
*
|
|
23
|
+
* Each series provides 3 sizes:
|
|
24
|
+
* - small
|
|
25
|
+
* - medium
|
|
26
|
+
* - large
|
|
27
|
+
*
|
|
28
|
+
* In the M3 Expressive update, a new emphasized option was added.
|
|
29
|
+
* Enabling emphasized will make the font bold.
|
|
30
|
+
*
|
|
31
|
+
* @version
|
|
32
|
+
* Material Design 3 - Expressive
|
|
33
|
+
*
|
|
34
|
+
* @link
|
|
35
|
+
* https://m3.material.io/styles/typography/overview
|
|
36
|
+
*/
|
|
37
|
+
export declare class Typography extends LitElement {
|
|
38
|
+
static styles: import("lit").CSSResult;
|
|
39
|
+
emphasized: boolean;
|
|
40
|
+
variant: TypographyVariant;
|
|
41
|
+
protected render(): unknown;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/components/typography/typography.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAA;AAItC,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,gBAAgB,EAAE,UAAU,CAAA;KAC/B;CACJ;AAED,KAAK,iBAAiB,GAClB,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,iBAAiB,GACjB,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,aAAa,GACb,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,cAAc,GACd,aAAa,CAAA;AAEjB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBACa,UAAW,SAAQ,UAAU;IAEtC,OAAgB,MAAM,0BAAmB;IAGlC,UAAU,EAAE,OAAO,CAAQ;IAG3B,OAAO,EAAE,iBAAiB,CAAgB;cAE9B,MAAM,IAAI,OAAO;CAKvC"}
|
|
@@ -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 r}from"../../custom-element-Dz3n6kSt.js";import{n as o}from"../../property-Ck1wIidx.js";import{typographyStyles as p}from"./typography.styles.js";import"../../typescale-Bh1NLwSE.js";import"../../utils/string/to-kebab-case.js";import"../../utils/tokens/create-wrapped-tokens.js";let i=class extends e{constructor(){super(...arguments),this.emphasized=!1,this.variant="body-medium"}static{this.styles=p}render(){return s`<slot></slot>`}};t([o({type:Boolean,reflect:!0})],i.prototype,"emphasized",void 0),t([o({type:String,reflect:!0})],i.prototype,"variant",void 0),i=t([r("mdc-typography")],i);export{i as Typography};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.styles.d.ts","sourceRoot":"","sources":["../../../src/components/typography/typography.styles.ts"],"names":[],"mappings":"AAMA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAA;AAapC,eAAO,MAAM,gBAAgB,WAkP5B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{T as e}from"../../typescale-Bh1NLwSE.js";import{a as i}from"../../lit-element-Ho-VPzO1.js";import{toKebabCase as t}from"../../utils/string/to-kebab-case.js";import{createWrappedTokens as a}from"../../utils/tokens/create-wrapped-tokens.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/const l=a("--mdc-typography",Object.entries(e).reduce((e,[i,a])=>({...e,[t(i)]:a}),{})),h=i`@layer mdc.typography{:host(:not([emphasized])[variant=display-large]){font-family:${l["--_display-large-font"]};font-size:${l["--_display-large-size"]};font-weight:${l["--_display-large-weight"]};line-height:${l["--_display-large-line-height"]};letter-spacing:${l["--_display-large-tracking"]}}:host(:not([emphasized])[variant=display-medium]){font-family:${l["--_display-medium-font"]};font-size:${l["--_display-medium-size"]};font-weight:${l["--_display-medium-weight"]};line-height:${l["--_display-medium-line-height"]};letter-spacing:${l["--_display-medium-tracking"]}}:host(:not([emphasized])[variant=display-small]){font-family:${l["--_display-small-font"]};font-size:${l["--_display-small-size"]};font-weight:${l["--_display-small-weight"]};line-height:${l["--_display-small-line-height"]};letter-spacing:${l["--_display-small-tracking"]}}:host(:not([emphasized])[variant=headline-large]){font-family:${l["--_headline-large-font"]};font-size:${l["--_headline-large-size"]};font-weight:${l["--_headline-large-weight"]};line-height:${l["--_headline-large-line-height"]};letter-spacing:${l["--_headline-large-tracking"]}}:host(:not([emphasized])[variant=headline-medium]){font-family:${l["--_headline-medium-font"]};font-size:${l["--_headline-medium-size"]};font-weight:${l["--_headline-medium-weight"]};line-height:${l["--_headline-medium-line-height"]};letter-spacing:${l["--_headline-medium-tracking"]}}:host(:not([emphasized])[variant=headline-small]){font-family:${l["--_headline-small-font"]};font-size:${l["--_headline-small-size"]};font-weight:${l["--_headline-small-weight"]};line-height:${l["--_headline-small-line-height"]};letter-spacing:${l["--_headline-small-tracking"]}}:host(:not([emphasized])[variant=title-large]){font-family:${l["--_title-large-font"]};font-size:${l["--_title-large-size"]};font-weight:${l["--_title-large-weight"]};line-height:${l["--_title-large-line-height"]};letter-spacing:${l["--_title-large-tracking"]}}:host(:not([emphasized])[variant=title-medium]){font-family:${l["--_title-medium-font"]};font-size:${l["--_title-medium-size"]};font-weight:${l["--_title-medium-weight"]};line-height:${l["--_title-medium-line-height"]};letter-spacing:${l["--_title-medium-tracking"]}}:host(:not([emphasized])[variant=title-small]){font-family:${l["--_title-small-font"]};font-size:${l["--_title-small-size"]};font-weight:${l["--_title-small-weight"]};line-height:${l["--_title-small-line-height"]};letter-spacing:${l["--_title-small-tracking"]}}:host(:not([emphasized])[variant=label-large]){font-family:${l["--_label-large-font"]};font-size:${l["--_label-large-size"]};font-weight:${l["--_label-large-weight"]};line-height:${l["--_label-large-line-height"]};letter-spacing:${l["--_label-large-tracking"]}}:host(:not([emphasized])[variant=label-medium]){font-family:${l["--_label-medium-font"]};font-size:${l["--_label-medium-size"]};font-weight:${l["--_label-medium-weight"]};line-height:${l["--_label-medium-line-height"]};letter-spacing:${l["--_label-medium-tracking"]}}:host(:not([emphasized])[variant=label-small]){font-family:${l["--_label-small-font"]};font-size:${l["--_label-small-size"]};font-weight:${l["--_label-small-weight"]};line-height:${l["--_label-small-line-height"]};letter-spacing:${l["--_label-small-tracking"]}}:host(:not([emphasized])[variant=body-large]){font-family:${l["--_body-large-font"]};font-size:${l["--_body-large-size"]};font-weight:${l["--_body-large-weight"]};line-height:${l["--_body-large-line-height"]};letter-spacing:${l["--_body-large-tracking"]}}:host(:not([emphasized])[variant=body-medium]){font-family:${l["--_body-medium-font"]};font-size:${l["--_body-medium-size"]};font-weight:${l["--_body-medium-weight"]};line-height:${l["--_body-medium-line-height"]};letter-spacing:${l["--_body-medium-tracking"]}}:host(:not([emphasized])[variant=body-small]){font-family:${l["--_body-small-font"]};font-size:${l["--_body-small-size"]};font-weight:${l["--_body-small-weight"]};line-height:${l["--_body-small-line-height"]};letter-spacing:${l["--_body-small-tracking"]}}:host([emphasized][variant=display-large]){font-family:${l["--_emphasized-display-large-font"]};font-size:${l["--_emphasized-display-large-size"]};font-weight:${l["--_emphasized-display-large-weight"]};line-height:${l["--_emphasized-display-large-line-height"]};letter-spacing:${l["--_emphasized-display-large-tracking"]}}:host([emphasized][variant=display-medium]){font-family:${l["--_emphasized-display-medium-font"]};font-size:${l["--_emphasized-display-medium-size"]};font-weight:${l["--_emphasized-display-medium-weight"]};line-height:${l["--_emphasized-display-medium-line-height"]};letter-spacing:${l["--_emphasized-display-medium-tracking"]}}:host([emphasized][variant=display-small]){font-family:${l["--_emphasized-display-small-font"]};font-size:${l["--_emphasized-display-small-size"]};font-weight:${l["--_emphasized-display-small-weight"]};line-height:${l["--_emphasized-display-small-line-height"]};letter-spacing:${l["--_emphasized-display-small-tracking"]}}:host([emphasized][variant=headline-large]){font-family:${l["--_emphasized-headline-large-font"]};font-size:${l["--_emphasized-headline-large-size"]};font-weight:${l["--_emphasized-headline-large-weight"]};line-height:${l["--_emphasized-headline-large-line-height"]};letter-spacing:${l["--_emphasized-headline-large-tracking"]}}:host([emphasized][variant=headline-medium]){font-family:${l["--_emphasized-headline-medium-font"]};font-size:${l["--_emphasized-headline-medium-size"]};font-weight:${l["--_emphasized-headline-medium-weight"]};line-height:${l["--_emphasized-headline-medium-line-height"]};letter-spacing:${l["--_emphasized-headline-medium-tracking"]}}:host([emphasized][variant=headline-small]){font-family:${l["--_emphasized-headline-small-font"]};font-size:${l["--_emphasized-headline-small-size"]};font-weight:${l["--_emphasized-headline-small-weight"]};line-height:${l["--_emphasized-headline-small-line-height"]};letter-spacing:${l["--_emphasized-headline-small-tracking"]}}:host([emphasized][variant=title-large]){font-family:${l["--_emphasized-title-large-font"]};font-size:${l["--_emphasized-title-large-size"]};font-weight:${l["--_emphasized-title-large-weight"]};line-height:${l["--_emphasized-title-large-line-height"]};letter-spacing:${l["--_emphasized-title-large-tracking"]}}:host([emphasized][variant=title-medium]){font-family:${l["--_emphasized-title-medium-font"]};font-size:${l["--_emphasized-title-medium-size"]};font-weight:${l["--_emphasized-title-medium-weight"]};line-height:${l["--_emphasized-title-medium-line-height"]};letter-spacing:${l["--_emphasized-title-medium-tracking"]}}:host([emphasized][variant=title-small]){font-family:${l["--_emphasized-title-small-font"]};font-size:${l["--_emphasized-title-small-size"]};font-weight:${l["--_emphasized-title-small-weight"]};line-height:${l["--_emphasized-title-small-line-height"]};letter-spacing:${l["--_emphasized-title-small-tracking"]}}:host([emphasized][variant=label-large]){font-family:${l["--_emphasized-label-large-font"]};font-size:${l["--_emphasized-label-large-size"]};font-weight:${l["--_emphasized-label-large-weight"]};line-height:${l["--_emphasized-label-large-line-height"]};letter-spacing:${l["--_emphasized-label-large-tracking"]}}:host([emphasized][variant=label-medium]){font-family:${l["--_emphasized-label-medium-font"]};font-size:${l["--_emphasized-label-medium-size"]};font-weight:${l["--_emphasized-label-medium-weight"]};line-height:${l["--_emphasized-label-medium-line-height"]};letter-spacing:${l["--_emphasized-label-medium-tracking"]}}:host([emphasized][variant=label-small]){font-family:${l["--_emphasized-label-small-font"]};font-size:${l["--_emphasized-label-small-size"]};font-weight:${l["--_emphasized-label-small-weight"]};line-height:${l["--_emphasized-label-small-line-height"]};letter-spacing:${l["--_emphasized-label-small-tracking"]}}:host([emphasized][variant=body-large]){font-family:${l["--_emphasized-body-large-font"]};font-size:${l["--_emphasized-body-large-size"]};font-weight:${l["--_emphasized-body-large-weight"]};line-height:${l["--_emphasized-body-large-line-height"]};letter-spacing:${l["--_emphasized-body-large-tracking"]}}:host([emphasized][variant=body-medium]){font-family:${l["--_emphasized-body-medium-font"]};font-size:${l["--_emphasized-body-medium-size"]};font-weight:${l["--_emphasized-body-medium-weight"]};line-height:${l["--_emphasized-body-medium-line-height"]};letter-spacing:${l["--_emphasized-body-medium-tracking"]}}:host([emphasized][variant=body-small]){font-family:${l["--_emphasized-body-small-font"]};font-size:${l["--_emphasized-body-small-size"]};font-weight:${l["--_emphasized-body-small-weight"]};line-height:${l["--_emphasized-body-small-line-height"]};letter-spacing:${l["--_emphasized-body-small-tracking"]}}}`;export{h as typographyStyles};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Kai-Orion & Sandlada
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
export declare class BaseWave extends LitElement {
|
|
8
|
+
wavelength: number;
|
|
9
|
+
waveAmplitude: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=base-wave.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-wave.d.ts","sourceRoot":"","sources":["../../../src/components/wave/base-wave.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAGhC,qBAAa,QAAS,SAAQ,UAAU;IAG7B,UAAU,EAAE,MAAM,CAAK;IAGvB,aAAa,EAAE,MAAM,CAAI;IAGzB,MAAM,EAAE,MAAM,CAAI;CAE5B"}
|
|
@@ -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 o}from"../../property-Ck1wIidx.js";class p extends e{constructor(){super(...arguments),this.wavelength=12,this.waveAmplitude=4,this.height=4}}t([o({type:Number})],p.prototype,"wavelength",void 0),t([o({type:Number,attribute:"wave-amplitude"})],p.prototype,"waveAmplitude",void 0),t([o({type:Number})],p.prototype,"height",void 0);export{p as BaseWave};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseWave } from './base-wave';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
"mdc-circular": CircularWave;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export declare class CircularWave extends BaseWave {
|
|
8
|
+
/**
|
|
9
|
+
* The base radius of the circle around which the wave oscillates.
|
|
10
|
+
*/
|
|
11
|
+
radius: number;
|
|
12
|
+
/**
|
|
13
|
+
* The number of waves (crests) around the circle's circumference.
|
|
14
|
+
*/
|
|
15
|
+
waveCount: number;
|
|
16
|
+
/**
|
|
17
|
+
* Animation speed.
|
|
18
|
+
*/
|
|
19
|
+
speed: number;
|
|
20
|
+
/**
|
|
21
|
+
* The current phase shift of the wave.
|
|
22
|
+
*/
|
|
23
|
+
phase: number;
|
|
24
|
+
private _canvas;
|
|
25
|
+
private _ctx;
|
|
26
|
+
private _resizeObserver;
|
|
27
|
+
private _animationFrameId;
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
disconnectedCallback(): void;
|
|
30
|
+
protected updated(changedProperties: Map<string, unknown>): void;
|
|
31
|
+
private _drawWave;
|
|
32
|
+
private _drawPerfectCircle;
|
|
33
|
+
private _animate;
|
|
34
|
+
static styles: import("lit").CSSResult;
|
|
35
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=circular-wave.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circular-wave.d.ts","sourceRoot":"","sources":["../../../src/components/wave/circular-wave.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,cAAc,EAAE,YAAY,CAAA;KAC/B;CACJ;AAED,qBACa,YAAa,SAAQ,QAAQ;IACtC;;OAEG;IAEI,MAAM,EAAE,MAAM,CAAM;IAE3B;;OAEG;IAEI,SAAS,EAAE,MAAM,CAAM;IAE9B;;OAEG;IAEI,KAAK,EAAE,MAAM,CAAQ;IAE5B;;OAEG;IAEI,KAAK,EAAE,MAAM,CAAK;IAGzB,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,IAAI,CAA2B;IACvC,OAAO,CAAC,eAAe,CAAiB;IACxC,OAAO,CAAC,iBAAiB,CAAa;IAE7B,iBAAiB;IAOjB,oBAAoB;cAMV,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAKzE,OAAO,CAAC,SAAS;IAqDjB,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,QAAQ;IAUhB,OAAgB,MAAM,0BAYpB;IAEO,MAAM;CAGlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{a as e,x as i}from"../../lit-element-Ho-VPzO1.js";import{t as s}from"../../custom-element-Dz3n6kSt.js";import{n as a}from"../../property-Ck1wIidx.js";import{e as r}from"../../query-DifSdHBD.js";import{BaseWave as o}from"./base-wave.js";let h=class extends o{constructor(){super(...arguments),this.radius=80,this.waveCount=20,this.speed=.05,this.phase=0,this._animationFrameId=0}connectedCallback(){super.connectedCallback(),this._animate(),this._resizeObserver=new ResizeObserver(()=>this.requestUpdate()),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._animationFrameId&&cancelAnimationFrame(this._animationFrameId),this._resizeObserver&&this._resizeObserver.disconnect()}updated(t){super.updated(t),this._drawWave()}_drawWave(){if(!this._canvas)return;if(!this._ctx){const t=this._canvas.getContext("2d");if(!t)return;this._ctx=t}const t=window.devicePixelRatio||1,e=this.getBoundingClientRect();this._canvas.width=e.width*t,this._canvas.height=e.height*t,this._ctx.scale(t,t);const{width:i,height:s}=e;if(this._ctx.clearRect(0,0,i,s),this._ctx.lineWidth=this.height,this._ctx.strokeStyle=getComputedStyle(this).getPropertyValue("color")||"purple",this._ctx.lineCap="round",this._ctx.lineJoin="round",0===this.waveAmplitude||0===this.waveCount)return void this._drawPerfectCircle(i/2,s/2);this._ctx.beginPath();const a=i/2,r=s/2;for(let t=0;t<=360;t++){const e=t/360*2*Math.PI,i=e*this.waveCount+this.phase,s=this.radius+this.waveAmplitude*Math.sin(i),o=a+s*Math.cos(e),h=r+s*Math.sin(e);0===t?this._ctx.moveTo(o,h):this._ctx.lineTo(o,h)}this._ctx.closePath(),this._ctx.stroke()}_drawPerfectCircle(t,e){this._ctx.beginPath(),this._ctx.arc(t,e,this.radius,0,2*Math.PI),this._ctx.stroke()}_animate(){0!==this.speed&&this.isConnected?(this.phase+=this.speed,this.requestUpdate(),this._animationFrameId=requestAnimationFrame(()=>this._animate())):this._animationFrameId=0}static{this.styles=e`:host{display:inline-block;width:250px;aspect-ratio:1/1;color:var(--mdc-circular-wave-color,var(--mdc-wave-color,var(--md-sys-color-primary,var(--md-sys-palette-primary-40,#6750a4))))}canvas{display:block;width:100%;height:100%}`}render(){return i`<canvas></canvas>`}};t([a({type:Number})],h.prototype,"radius",void 0),t([a({type:Number,attribute:"wave-count"})],h.prototype,"waveCount",void 0),t([a({type:Number})],h.prototype,"speed",void 0),t([a({type:Number})],h.prototype,"phase",void 0),t([r("canvas")],h.prototype,"_canvas",void 0),h=t([s("mdc-circular-wave")],h);export{h as CircularWave};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseWave } from './base-wave';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
"mdc-linear-wave": LinearWave;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export declare class LinearWave extends BaseWave {
|
|
8
|
+
/**
|
|
9
|
+
* The thickness of the wave line.
|
|
10
|
+
*/
|
|
11
|
+
height: number;
|
|
12
|
+
speed: number;
|
|
13
|
+
phase: number;
|
|
14
|
+
private _canvas;
|
|
15
|
+
private _ctx;
|
|
16
|
+
private _resizeObserver;
|
|
17
|
+
private _animationFrameId;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
protected updated(changedProperties: Map<string, unknown>): void;
|
|
21
|
+
private _drawWave;
|
|
22
|
+
private _animate;
|
|
23
|
+
static styles: import("lit").CSSResult;
|
|
24
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=linear-wave.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linear-wave.d.ts","sourceRoot":"","sources":["../../../src/components/wave/linear-wave.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,iBAAiB,EAAE,UAAU,CAAA;KAChC;CACJ;AAID,qBACa,UAAW,SAAQ,QAAQ;IAEpC;;OAEG;IAEa,MAAM,EAAE,MAAM,CAAK;IAG5B,KAAK,EAAE,MAAM,CAAO;IAGpB,KAAK,EAAE,MAAM,CAAK;IAGzB,OAAO,CAAC,OAAO,CAAqB;IAEpC,OAAO,CAAC,IAAI,CAA4B;IACxC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,iBAAiB,CAAa;IAG7B,iBAAiB;IAOjB,oBAAoB;cAMV,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMzE,OAAO,CAAC,SAAS;IA6EjB,OAAO,CAAC,QAAQ;IAUhB,OAAgB,MAAM,0BAcpB;IAEO,MAAM;CAGlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{a as e,x as i}from"../../lit-element-Ho-VPzO1.js";import{t as s}from"../../custom-element-Dz3n6kSt.js";import{n as a}from"../../property-Ck1wIidx.js";import{e as r}from"../../query-DifSdHBD.js";import{BaseWave as h}from"./base-wave.js";let o=class extends h{constructor(){super(...arguments),this.height=8,this.speed=.1,this.phase=0,this._animationFrameId=0}connectedCallback(){super.connectedCallback(),this._animate(),this._resizeObserver=new ResizeObserver(()=>this.requestUpdate()),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._animationFrameId&&cancelAnimationFrame(this._animationFrameId),this._resizeObserver&&this._resizeObserver.disconnect()}updated(t){super.updated(t),this._drawWave()}_drawWave(){if(!this._canvas)return;if(!this._ctx){const t=this._canvas.getContext("2d");if(!t)return;this._ctx=t}const t=window.devicePixelRatio||1,e=this.getBoundingClientRect();this._canvas.width=e.width*t,this._canvas.height=e.height*t,this._ctx.scale(t,t);const{width:i,height:s}=e;if(this._ctx.clearRect(0,0,i,s),this._ctx.lineWidth=this.height,this._ctx.strokeStyle=getComputedStyle(this).getPropertyValue("color")||"purple",this._ctx.lineCap="round",this._ctx.lineJoin="round",0===this.waveAmplitude||0===this.wavelength){this._ctx.beginPath();const t=s/2;return this._ctx.moveTo(0,t),this._ctx.lineTo(i,t),void this._ctx.stroke()}this._ctx.beginPath();const a=this.waveAmplitude,r=this.wavelength,h=r/2,o=.38*h,n=s/2;let c=-h-this.phase/(2*Math.PI)*r%r;const d=c/r*2*Math.PI;let p=n-a*Math.cos(d);this._ctx.moveTo(c,p);let m=!0;for(;c<i;){const t=c+h,e=n+(m?a:-a),i=c+o,s=p,r=t-o,d=e;this._ctx.bezierCurveTo(i,s,r,d,t,e),c=t,p=e,m=!m}this._ctx.stroke()}_animate(){0!==this.speed&&this.isConnected?(this.phase+=this.speed/10,this.requestUpdate(),this._animationFrameId=requestAnimationFrame(()=>this._animate())):this._animationFrameId=0}static{this.styles=e`:host{display:block;width:100%;height:fit-content;min-height:50px;color:var(--mdc-linear-wave-color,var(--mdc-wave-color,var(--md-sys-color-primary,var(--md-sys-palette-primary-40,#6750a4))))}canvas{display:block;height:auto}`}render(){return i`<canvas></canvas>`}};t([a({type:Number})],o.prototype,"height",void 0),t([a({type:Number})],o.prototype,"speed",void 0),t([a({type:Number})],o.prototype,"phase",void 0),t([r("canvas")],o.prototype,"_canvas",void 0),o=t([s("mdc-linear-wave")],o);export{o as LinearWave};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './component-definitions/badge.definition';
|
|
2
|
+
export * from './component-definitions/button.definition';
|
|
3
|
+
export * from './component-definitions/checkbox.definition';
|
|
4
|
+
export * from './component-definitions/dialog.definition';
|
|
5
|
+
export * from './component-definitions/divider.definition';
|
|
6
|
+
export * from './component-definitions/elevation.definition';
|
|
7
|
+
export * from './component-definitions/fab.definition';
|
|
8
|
+
export * from './component-definitions/focus-ring.definition';
|
|
9
|
+
export * from './component-definitions/icon-button.definition';
|
|
10
|
+
export * from './component-definitions/icon.definition';
|
|
11
|
+
export * from './component-definitions/navigation-bar.definition';
|
|
12
|
+
export * from './component-definitions/navigation-rail.definition';
|
|
13
|
+
export * from './component-definitions/navigation-tab.definition';
|
|
14
|
+
export * from './component-definitions/progress-indicator.definition';
|
|
15
|
+
export * from './component-definitions/radio-button.definition';
|
|
16
|
+
export * from './component-definitions/ripple.definition';
|
|
17
|
+
export * from './component-definitions/switch.definition';
|
|
18
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../src/definitions.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,2CAA2C,CAAA;AACzD,cAAc,4CAA4C,CAAA;AAC1D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,wCAAwC,CAAA;AACtD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,yCAAyC,CAAA;AACvD,cAAc,mDAAmD,CAAA;AACjE,cAAc,oDAAoD,CAAA;AAClE,cAAc,mDAAmD,CAAA;AACjE,cAAc,uDAAuD,CAAA;AACrE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,2CAA2C,CAAA;AACzD,cAAc,2CAA2C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{BadgeDefinition}from"./component-definitions/badge.definition.js";export{ElevatedButtonDefinition,FilledButtonDefinition,FilledTonalButtonDefinition,OutlinedButtonDefinition,TextButtonDefinition}from"./component-definitions/button.definition.js";export{CheckboxDefinition}from"./component-definitions/checkbox.definition.js";export{BasicDialogDefinition,FullscreenDialogDefinition}from"./component-definitions/dialog.definition.js";export{DividerDefinition}from"./component-definitions/divider.definition.js";export{ElevationDefinition}from"./component-definitions/elevation.definition.js";export{PrimaryExtendedFabDefinition,PrimaryFabDefinition,SecondaryExtendedFabDefinition,SecondaryFabDefinition,TertiaryExtendedFabDefinition,TertiaryFabDefinition,TonalPrimaryExtendedFabDefinition,TonalPrimaryFabDefinition,TonalSecondaryExtendedFabDefinition,TonalSecondaryFabDefinition,TonalTertiaryExtendedFabDefinition,TonalTertiaryFabDefinition}from"./component-definitions/fab.definition.js";export{FocusRingDefinition}from"./component-definitions/focus-ring.definition.js";export{FilledIconButtonDefinition,FilledTonalIconButtonDefinition,OutlinedIconButtonDefinition,StandardIconButtonDefinition}from"./component-definitions/icon-button.definition.js";export{IconDefinition}from"./component-definitions/icon.definition.js";export{NavigationBarDefinition}from"./component-definitions/navigation-bar.definition.js";export{NavigationRailDefinition}from"./component-definitions/navigation-rail.definition.js";export{NavigationBarTabDefinition,NavigationBarXRTabDefinition,NavigationRailTabDefinition,NavigationRailXRTabDefinition}from"./component-definitions/navigation-tab.definition.js";export{CircularProgressIndicatorDefinition,LinearProgressIndicatorDefinition}from"./component-definitions/progress-indicator.definition.js";export{RadioButtonDefinition}from"./component-definitions/radio-button.definition.js";export{RippleDefinition}from"./component-definitions/ripple.definition.js";export{SwitchDefinition}from"./component-definitions/switch.definition.js";import"./color-CigMJnjV.js";import"./shape-CrZ0CLVJ.js";import"./typescale-Bh1NLwSE.js";import"./elevation-dUQez_WX.js";import"./state-C-haZXan.js";import"./utils/tokens/create-logic-shape-tokens.js";import"./lit-element-Ho-VPzO1.js";import"./duration-CDKuKTyT.js";import"./utils/controller/attachable-controller.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class t{static Short1="50ms";static Short2="100ms";static Short3="150ms";static Short4="200ms";static Medium1="250ms";static Medium2="300ms";static Medium3="350ms";static Medium4="400ms";static Long1="450ms";static Long2="500ms";static Long3="550ms";static Long4="600ms";static ExtraLong1="700ms";static ExtraLong2="800ms";static ExtraLong3="900ms";static ExtraLong4="1000ms";static ExpressiveFastSpatial="350ms";static ExpressiveDefaultSpatial="500ms";static ExpressiveSlowSpatial="650ms";static ExpressiveFastEffects="150ms";static ExpressiveDefaultEffects="200ms";static ExpressiveSlowEffects="300ms";static StandardFastSpatial="350ms";static StandardDefaultSpatial="500ms";static StandardSlowSpatial="750ms";static StandardFastEffects="150ms";static StandardDefaultEffects="200ms";static StandardSlowEffects="300ms"}export{t as D};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class e{static Standard="cubic-bezier(0.20, 0.00, 0.0, 1.00)";static StandardAccelerate="cubic-bezier(0.30, 0.00, 1.0, 1.00)";static StandardDecelerate="cubic-bezier(0.00, 0.00, 0.0, 1.00)";static Emphasized="cubic-bezier(0.20, 0.00, 0.0, 1.00)";static EmphasizedAccelerate="cubic-bezier(0.30, 0.00, 0.8, 0.15)";static EmphasizedDecelerate="cubic-bezier(0.05, 0.70, 0.1, 1.00)";static Legacy="cubic-bezier(0.40, 0.00, 0.2, 1.00)";static LegacyAccelerate="cubic-bezier(0.40, 0.00, 1.0, 1.00)";static LegacyDecelerate="cubic-bezier(0.00, 0.00, 0.2, 1.00)";static Linear="cubic-bezier(0.00, 0.00, 1.0, 1.00)";static ExpressiveFastSpatial="cubic-bezier(0.42, 1.67, 0.21, 0.90)";static ExpressiveDefaultSpatial="cubic-bezier(0.38, 1.21, 0.22, 1.00)";static ExpressiveSlowSpatial="cubic-bezier(0.39, 1.29, 0.35, 0.98)";static ExpressiveFastEffects="cubic-bezier(0.31, 0.94, 0.34, 1.00)";static ExpressiveDefaultEffects="cubic-bezier(0.34, 0.80, 0.34, 1.00)";static ExpressiveSlowEffects="cubic-bezier(0.34, 0.88, 0.34, 1.00)";static StandardFastSpatial="cubic-bezier(0.27, 1.06, 0.18, 1.00)";static StandardDefaultSpatial="cubic-bezier(0.27, 1.06, 0.18, 1.00)";static StandardSlowSpatial="cubic-bezier(0.27, 1.06, 0.18, 1.00)";static StandardFastEffects="cubic-bezier(0.31, 0.94, 0.34, 1.00)";static StandardDefaultEffects="cubic-bezier(0.34, 0.80, 0.34, 1.00)";static StandardSlowEffects="cubic-bezier(0.34, 0.88, 0.34, 1.00)"}export{e as E};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class e{static Level0="var(--md-sys-elevation-level-0, 0)";static Level1="var(--md-sys-elevation-level-1, 1)";static Level2="var(--md-sys-elevation-level-2, 3)";static Level3="var(--md-sys-elevation-level-3, 6)";static Level4="var(--md-sys-elevation-level-4, 8)";static Level5="var(--md-sys-elevation-level-5, 12)"}export{e as E};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),i=new WeakMap;let n=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(s,t))}return t}toString(){return this.cssText}};const r=t=>new n("string"==typeof t?t:t+"",void 0,s),o=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new n(i,t,s)},h=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t,{is:a,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:p,getPrototypeOf:u}=Object,$=globalThis,_=$.trustedTypes,f=_?_.emptyScript:"",A=$.reactiveElementPolyfillSupport,m=(t,e)=>t,y={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},g=(t,e)=>!a(t,e),v={attribute:!0,type:String,converter:y,reflect:!1,useDefault:!1,hasChanged:g};
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/Symbol.metadata??=Symbol("metadata"),$.litPropertyMetadata??=new WeakMap;let E=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);n?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=u(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,e=[...d(t),...p(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of i){const i=document.createElement("style"),n=t.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const n=(void 0!==s.converter?.toAttribute?s.converter:y).toAttribute(e,s.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:y;this._$Em=i,this[i]=n.fromAttribute(e,t.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,n=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??g)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[m("elementProperties")]=new Map,E[m("finalized")]=new Map,A?.({ReactiveElement:E}),($.reactiveElementVersions??=[]).push("2.1.0");
|
|
12
|
+
/**
|
|
13
|
+
* @license
|
|
14
|
+
* Copyright 2017 Google LLC
|
|
15
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
+
*/
|
|
17
|
+
const S=globalThis,b=S.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,x="?"+P,U=`<${x}>`,O=document,H=()=>O.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,N="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,D=/>/g,L=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,z=/"/g,B=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),W=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),q=new WeakMap,J=O.createTreeWalker(O,129);function K(t,e){if(!T(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==w?w.createHTML(e):e}const Z=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":3===e?"<math>":"",o=R;for(let e=0;e<s;e++){const s=t[e];let h,a,l=-1,c=0;for(;c<s.length&&(o.lastIndex=c,a=o.exec(s),null!==a);)c=o.lastIndex,o===R?"!--"===a[1]?o=k:void 0!==a[1]?o=D:void 0!==a[2]?(B.test(a[2])&&(n=RegExp("</"+a[2],"g")),o=L):void 0!==a[3]&&(o=L):o===L?">"===a[0]?(o=n??R,l=-1):void 0===a[1]?l=-2:(l=o.lastIndex-a[2].length,h=a[1],o=void 0===a[3]?L:'"'===a[3]?z:j):o===z||o===j?o=L:o===k||o===D?o=R:(o=L,n=void 0);const d=o===L&&t[e+1].startsWith("/>")?" ":"";r+=o===R?s+U:l>=0?(i.push(h),s.slice(0,l)+C+s.slice(l)+P+d):s+P+(-2===l?e:d)}return[K(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class F{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0;const o=t.length-1,h=this.parts,[a,l]=Z(t,e);if(this.el=F.createElement(a,s),J.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=J.nextNode())&&h.length<o;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(C)){const e=l[r++],s=i.getAttribute(t).split(P),o=/([.?@])?(.*)/.exec(e);h.push({type:1,index:n,name:o[2],strings:s,ctor:"."===o[1]?tt:"?"===o[1]?et:"@"===o[1]?st:Y}),i.removeAttribute(t)}else t.startsWith(P)&&(h.push({type:6,index:n}),i.removeAttribute(t));if(B.test(i.tagName)){const t=i.textContent.split(P),e=t.length-1;if(e>0){i.textContent=b?b.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],H()),J.nextNode(),h.push({type:2,index:++n});i.append(t[e],H())}}}else if(8===i.nodeType)if(i.data===x)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(P,t+1));)h.push({type:7,index:n}),t+=P.length-1}n++}}static createElement(t,e){const s=O.createElement("template");return s.innerHTML=t,s}}function G(t,e,s=t,i){if(e===W)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const r=M(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=G(t,n._$AS(t,e.values),n,i)),e}class Q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??O).importNode(e,!0);J.currentNode=i;let n=J.nextNode(),r=0,o=0,h=s[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new X(n,n.nextSibling,this,t):1===h.type?e=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(e=new it(n,this,t)),this._$AV.push(e),h=s[++o]}r!==h?.index&&(n=J.nextNode(),r++)}return J.currentNode=O,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class X{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),M(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==W&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>T(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==V&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=F.createElement(K(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new Q(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new F(t)),e}k(t){T(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new X(this.O(H()),this.O(H()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Y{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=V}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=G(this,t,e,0),r=!M(t)||t!==this._$AH&&t!==W,r&&(this._$AH=t);else{const i=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=G(this,i[s+o],e,o),h===W&&(h=this._$AH[o]),r||=!M(h)||h!==this._$AH[o],h===V?t=V:t!==V&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!i&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class tt extends Y{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}class et extends Y{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==V)}}class st extends Y{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=G(this,t,e,0)??V)===W)return;const s=this._$AH,i=t===V&&s!==V||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==V&&(s===V||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const nt=S.litHtmlPolyfillSupport;nt?.(F,X),(S.litHtmlVersions??=[]).push("3.3.0");const rt=(t,e,s)=>{const i=s?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=s?.renderBefore??null;i._$litPart$=n=new X(e.insertBefore(H(),t),t,void 0,s??{})}return n._$AI(t),n
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/},ot=globalThis;class ht extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=rt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return W}}ht._$litElement$=!0,ht.finalized=!0,ot.litElementHydrateSupport?.({LitElement:ht});const at=ot.litElementPolyfillSupport;at?.({LitElement:ht}),(ot.litElementVersions??=[]).push("4.2.0");export{rt as B,V as E,W as T,o as a,g as f,ht as i,r,y as u,I as x};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{f as t,u as e}from"./lit-element-Ho-VPzO1.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/const r={attribute:!0,type:String,converter:e,reflect:!1,hasChanged:t},o=(t=r,e,o)=>{const{kind:s,metadata:n}=o;let a=globalThis.litPropertyMetadata.get(n);if(void 0===a&&globalThis.litPropertyMetadata.set(n,a=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),a.set(o.name,t),"accessor"===s){const{name:r}=o;return{set(o){const s=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,s,t)},init(e){return void 0!==e&&this.C(r,void 0,t,e),e}}}if("setter"===s){const{name:r}=o;return function(o){const s=this[r];e.call(this,o),this.requestUpdate(r,s,t)}}throw Error("Unsupported decorator location: "+s)};function s(t){return(e,r)=>"object"==typeof r?o(t,e,r):((t,e,r)=>{const o=e.hasOwnProperty(r);return e.constructor.createProperty(r,t),o?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}export{s as n};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const e=(e,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&"object"!=typeof r&&Object.defineProperty(e,r,t),t);
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/function r(r,t){return(t,o,n)=>e(t,o,{get(){return e=this,e.renderRoot?.querySelector(r)??null;var e}})}export{e as a,r as e};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as e}from"./query-DifSdHBD.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/function t(t){return(r,o)=>{const{slot:n,selector:s}={},c="slot"+(n?`[name=${n}]`:":not([name])");return e(r,o,{get(){const e=this.renderRoot?.querySelector(c),r=e?.assignedElements(t)??[];return void 0===s?r:r.filter(e=>e.matches(s))}})}}export{t as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class a{static None="var(--md-sys-shape-corner-none, 0px)";static ExtraSmall="var(--md-sys-shape-corner-extra-small, 4px)";static Small="var(--md-sys-shape-corner-small, 8px)";static Medium="var(--md-sys-shape-corner-medium, 12px)";static Large="var(--md-sys-shape-corner-large, 16px)";static LargeIncreased="var(--md-sys-shape-corner-large-increased, 20px)";static ExtraLarge="var(--md-sys-shape-corner-extra-large, 28px)";static ExtraLargeIncreased="var(--md-sys-shape-corner-extra-large-increased, 32px)";static ExtraExtraLarge="var(--md-sys-shape-corner-extra-extra-large, 48px)";static Full="var(--md-sys-shape-corner-full, calc(infinity * 1px))"}export{a as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class t{static DraggedStateLayerOpacity="0.16";static FocusedStateLayerOpacity="0.12";static HoveredStateLayerOpacity="0.08";static PressedStateLayerOpacity="0.12";static FocusIndicator=class{static Thickness="3px";static OuterOffset="2px"}}export{t as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,r,t,o){var c,f=arguments.length,n=f<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,r,t,o);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(n=(f<3?c(n):f>3?c(r,t,n):c(r,t))||n);return f>3&&n&&Object.defineProperty(r,t,n),n}"function"==typeof SuppressedError&&SuppressedError;export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class i{static Brand="Roboto";static Plain="Roboto";static WeightBold="700";static WeightMedium="500";static WeightRegular="400"}class a{static DisplayLargeFont=i.Plain;static DisplayLargeSize="57px";static DisplayLargeTracking="-0.25px";static DisplayLargeLineHeight="64px";static DisplayLargeWeight=i.WeightRegular;static DisplayMediumFont=i.Plain;static DisplayMediumSize="45px";static DisplayMediumTracking="0px";static DisplayMediumLineHeight="52px";static DisplayMediumWeight=i.WeightRegular;static DisplaySmallFont=i.Plain;static DisplaySmallSize="36px";static DisplaySmallTracking="0px";static DisplaySmallLineHeight="44px";static DisplaySmallWeight=i.WeightRegular;static HeadlineLargeFont=i.Plain;static HeadlineLargeSize="32px";static HeadlineLargeTracking="0px";static HeadlineLargeLineHeight="40px";static HeadlineLargeWeight=i.WeightRegular;static HeadlineMediumFont=i.Plain;static HeadlineMediumSize="28px";static HeadlineMediumTracking="0px";static HeadlineMediumLineHeight="36px";static HeadlineMediumWeight=i.WeightRegular;static HeadlineSmallFont=i.Plain;static HeadlineSmallSize="24px";static HeadlineSmallTracking="0px";static HeadlineSmallLineHeight="32px";static HeadlineSmallWeight=i.WeightRegular;static TitleLargeFont=i.Plain;static TitleLargeSize="22px";static TitleLargeTracking="0px";static TitleLargeLineHeight="28px";static TitleLargeWeight=i.WeightRegular;static TitleMediumFont=i.Plain;static TitleMediumSize="16px";static TitleMediumTracking="0.15px";static TitleMediumLineHeight="24px";static TitleMediumWeight=i.WeightMedium;static TitleSmallFont=i.Plain;static TitleSmallSize="14px";static TitleSmallTracking="0.1px";static TitleSmallLineHeight="20px";static TitleSmallWeight=i.WeightMedium;static BodyLargeFont=i.Plain;static BodyLargeSize="16px";static BodyLargeTracking="0.5px";static BodyLargeLineHeight="24px";static BodyLargeWeight=i.WeightRegular;static BodyMediumFont=i.Plain;static BodyMediumSize="14px";static BodyMediumTracking="0.25px";static BodyMediumLineHeight="20px";static BodyMediumWeight=i.WeightRegular;static BodySmallFont=i.Plain;static BodySmallSize="12px";static BodySmallTracking="0.4px";static BodySmallLineHeight="16px";static BodySmallWeight=i.WeightRegular;static LabelLargeFont=i.Plain;static LabelLargeSize="14px";static LabelLargeTracking="0.1px";static LabelLargeLineHeight="20px";static LabelLargeWeight=i.WeightMedium;static LabelMediumFont=i.Plain;static LabelMediumSize="12px";static LabelMediumTracking="0.5px";static LabelMediumLineHeight="16px";static LabelMediumWeight=i.WeightMedium;static LabelSmallFont=i.Plain;static LabelSmallSize="11px";static LabelSmallTracking="0.5px";static LabelSmallLineHeight="16px";static LabelSmallWeight=i.WeightMedium;static EmphasizedDisplayLargeFont=i.Plain;static EmphasizedDisplayLargeSize="57px";static EmphasizedDisplayLargeTracking="-0.25px";static EmphasizedDisplayLargeLineHeight="64px";static EmphasizedDisplayLargeWeight=i.WeightMedium;static EmphasizedDisplayMediumFont=i.Plain;static EmphasizedDisplayMediumSize="45px";static EmphasizedDisplayMediumTracking="0px";static EmphasizedDisplayMediumLineHeight="52px";static EmphasizedDisplayMediumWeight=i.WeightMedium;static EmphasizedDisplaySmallFont=i.Plain;static EmphasizedDisplaySmallSize="36px";static EmphasizedDisplaySmallTracking="0px";static EmphasizedDisplaySmallLineHeight="44px";static EmphasizedDisplaySmallWeight=i.WeightMedium;static EmphasizedHeadlineLargeFont=i.Plain;static EmphasizedHeadlineLargeSize="32px";static EmphasizedHeadlineLargeTracking="0px";static EmphasizedHeadlineLargeLineHeight="40px";static EmphasizedHeadlineLargeWeight=i.WeightMedium;static EmphasizedHeadlineMediumFont=i.Plain;static EmphasizedHeadlineMediumSize="28px";static EmphasizedHeadlineMediumTracking="0px";static EmphasizedHeadlineMediumLineHeight="36px";static EmphasizedHeadlineMediumWeight=i.WeightMedium;static EmphasizedHeadlineSmallFont=i.Plain;static EmphasizedHeadlineSmallSize="24px";static EmphasizedHeadlineSmallTracking="0px";static EmphasizedHeadlineSmallLineHeight="32px";static EmphasizedHeadlineSmallWeight=i.WeightMedium;static EmphasizedTitleLargeFont=i.Plain;static EmphasizedTitleLargeSize="22px";static EmphasizedTitleLargeTracking="0px";static EmphasizedTitleLargeLineHeight="28px";static EmphasizedTitleLargeWeight=i.WeightMedium;static EmphasizedTitleMediumFont=i.Plain;static EmphasizedTitleMediumSize="16px";static EmphasizedTitleMediumTracking="0.15px";static EmphasizedTitleMediumLineHeight="24px";static EmphasizedTitleMediumWeight=i.WeightBold;static EmphasizedTitleSmallFont=i.Plain;static EmphasizedTitleSmallSize="14px";static EmphasizedTitleSmallTracking="0.1px";static EmphasizedTitleSmallLineHeight="20px";static EmphasizedTitleSmallWeight=i.WeightBold;static EmphasizedBodyLargeFont=i.Plain;static EmphasizedBodyLargeSize="16px";static EmphasizedBodyLargeTracking="0.5px";static EmphasizedBodyLargeLineHeight="24px";static EmphasizedBodyLargeWeight=i.WeightMedium;static EmphasizedBodyMediumFont=i.Plain;static EmphasizedBodyMediumSize="14px";static EmphasizedBodyMediumTracking="0.25px";static EmphasizedBodyMediumLineHeight="20px";static EmphasizedBodyMediumWeight=i.WeightMedium;static EmphasizedBodySmallFont=i.Plain;static EmphasizedBodySmallSize="12px";static EmphasizedBodySmallTracking="0.4px";static EmphasizedBodySmallLineHeight="16px";static EmphasizedBodySmallWeight=i.WeightMedium;static EmphasizedLabelLargeFont=i.Plain;static EmphasizedLabelLargeSize="14px";static EmphasizedLabelLargeTracking="0.1px";static EmphasizedLabelLargeLineHeight="20px";static EmphasizedLabelLargeWeight=i.WeightBold;static EmphasizedLabelMediumFont=i.Plain;static EmphasizedLabelMediumSize="12px";static EmphasizedLabelMediumTracking="0.5px";static EmphasizedLabelMediumLineHeight="16px";static EmphasizedLabelMediumWeight=i.WeightBold;static EmphasizedLabelSmallFont=i.Plain;static EmphasizedLabelSmallSize="11px";static EmphasizedLabelSmallTracking="0.5px";static EmphasizedLabelSmallLineHeight="16px";static EmphasizedLabelSmallWeight=i.WeightBold}export{a as T};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export type AriaProperty = keyof ARIAMixin;
|
|
7
|
+
export declare const AriaProperties: Set<"ariaAtomic" | "ariaAutoComplete" | "ariaBrailleLabel" | "ariaBrailleRoleDescription" | "ariaBusy" | "ariaChecked" | "ariaColCount" | "ariaColIndex" | "ariaColIndexText" | "ariaColSpan" | "ariaCurrent" | "ariaDescription" | "ariaDisabled" | "ariaExpanded" | "ariaHasPopup" | "ariaHidden" | "ariaInvalid" | "ariaKeyShortcuts" | "ariaLabel" | "ariaLevel" | "ariaLive" | "ariaModal" | "ariaMultiLine" | "ariaMultiSelectable" | "ariaOrientation" | "ariaPlaceholder" | "ariaPosInSet" | "ariaPressed" | "ariaReadOnly" | "ariaRelevant" | "ariaRequired" | "ariaRoleDescription" | "ariaRowCount" | "ariaRowIndex" | "ariaRowIndexText" | "ariaRowSpan" | "ariaSelected" | "ariaSetSize" | "ariaSort" | "ariaValueMax" | "ariaValueMin" | "ariaValueNow" | "ariaValueText" | "role">;
|
|
8
|
+
type AriaPropertyToAttribute<K extends string> = K extends `aria${infer Suffix}Element${infer OptS}` ? `aria-${Lowercase<Suffix>}` : K extends `aria${infer Suffix}` ? `aria-${Lowercase<Suffix>}` : K;
|
|
9
|
+
export type AriaAttribute = AriaPropertyToAttribute<AriaProperty>;
|
|
10
|
+
export declare const AriaAttributes: Set<AriaAttribute>;
|
|
11
|
+
export declare function isARIAAttribute(attribute: string): attribute is AriaAttribute;
|
|
12
|
+
export declare function ariaPropertyToAttribute<K extends AriaProperty>(property: K): AriaPropertyToAttribute<K>;
|
|
13
|
+
/**
|
|
14
|
+
* An extension of `ARIAMixin` that enforces strict value types for aria
|
|
15
|
+
* properties.
|
|
16
|
+
*
|
|
17
|
+
* This is needed for correct typing in render functions with lit analyzer.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* render() {
|
|
21
|
+
* const {ariaLabel} = this as ARIAMixinStrict;
|
|
22
|
+
* return html`
|
|
23
|
+
* <button aria-label=${ariaLabel || nothing}>
|
|
24
|
+
* <slot></slot>
|
|
25
|
+
* </button>
|
|
26
|
+
* `;
|
|
27
|
+
* }
|
|
28
|
+
*/
|
|
29
|
+
export interface AriaMixinStrict extends ARIAMixin {
|
|
30
|
+
ariaAtomic: 'true' | 'false' | null;
|
|
31
|
+
ariaAutoComplete: 'none' | 'inline' | 'list' | 'both' | null;
|
|
32
|
+
ariaBusy: 'true' | 'false' | null;
|
|
33
|
+
ariaChecked: 'true' | 'false' | null;
|
|
34
|
+
ariaColCount: `${number}` | null;
|
|
35
|
+
ariaColIndex: `${number}` | null;
|
|
36
|
+
ariaColSpan: `${number}` | null;
|
|
37
|
+
ariaCurrent: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false' | null;
|
|
38
|
+
ariaDisabled: 'true' | 'false' | null;
|
|
39
|
+
ariaExpanded: 'true' | 'false' | null;
|
|
40
|
+
ariaHasPopup: 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | null;
|
|
41
|
+
ariaHidden: 'true' | 'false' | null;
|
|
42
|
+
ariaInvalid: 'true' | 'false' | null;
|
|
43
|
+
ariaKeyShortcuts: string | null;
|
|
44
|
+
ariaLabel: string | null;
|
|
45
|
+
ariaLevel: `${number}` | null;
|
|
46
|
+
ariaLive: 'assertive' | 'off' | 'polite' | null;
|
|
47
|
+
ariaModal: 'true' | 'false' | null;
|
|
48
|
+
ariaMultiLine: 'true' | 'false' | null;
|
|
49
|
+
ariaMultiSelectable: 'true' | 'false' | null;
|
|
50
|
+
ariaOrientation: 'horizontal' | 'vertical' | 'undefined' | null;
|
|
51
|
+
ariaPlaceholder: string | null;
|
|
52
|
+
ariaPosInSet: `${number}` | null;
|
|
53
|
+
ariaPressed: 'true' | 'false' | null;
|
|
54
|
+
ariaReadOnly: 'true' | 'false' | null;
|
|
55
|
+
ariaRequired: 'true' | 'false' | null;
|
|
56
|
+
ariaRoleDescription: string | null;
|
|
57
|
+
ariaRowCount: `${number}` | null;
|
|
58
|
+
ariaRowIndex: `${number}` | null;
|
|
59
|
+
ariaRowSpan: `${number}` | null;
|
|
60
|
+
ariaSelected: 'true' | 'false' | null;
|
|
61
|
+
ariaSetSize: `${number}` | null;
|
|
62
|
+
ariaSort: 'ascending' | 'descending' | 'none' | 'other' | null;
|
|
63
|
+
ariaValueMax: `${number}` | null;
|
|
64
|
+
ariaValueMin: `${number}` | null;
|
|
65
|
+
ariaValueNow: `${number}` | null;
|
|
66
|
+
ariaValueText: string | null;
|
|
67
|
+
role: AriaRole | null;
|
|
68
|
+
}
|
|
69
|
+
export type AriaRole = 'alert' | 'alertdialog' | 'button' | 'checkbox' | 'dialog' | 'gridcell' | 'link' | 'log' | 'marquee' | 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'option' | 'progressbar' | 'radio' | 'scrollbar' | 'searchbox' | 'slider' | 'spinbutton' | 'status' | 'switch' | 'tab' | 'tabpanel' | 'textbox' | 'timer' | 'tooltip' | 'treeitem' | 'combobox' | 'grid' | 'listbox' | 'menu' | 'menubar' | 'radiogroup' | 'tablist' | 'tree' | 'treegrid' | 'application' | 'article' | 'cell' | 'columnheader' | 'definition' | 'directory' | 'document' | 'feed' | 'figure' | 'group' | 'heading' | 'img' | 'list' | 'listitem' | 'math' | 'none' | 'note' | 'presentation' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'separator' | 'table' | 'term' | 'text' | 'toolbar' | 'banner' | 'complementary' | 'contentinfo' | 'form' | 'main' | 'navigation' | 'region' | 'search' | 'doc-abstract' | 'doc-acknowledgments' | 'doc-afterword' | 'doc-appendix' | 'doc-backlink' | 'doc-biblioentry' | 'doc-bibliography' | 'doc-biblioref' | 'doc-chapter' | 'doc-colophon' | 'doc-conclusion' | 'doc-cover' | 'doc-credit' | 'doc-credits' | 'doc-dedication' | 'doc-endnote' | 'doc-endnotes' | 'doc-epigraph' | 'doc-epilogue' | 'doc-errata' | 'doc-example' | 'doc-footnote' | 'doc-foreword' | 'doc-glossary' | 'doc-glossref' | 'doc-index' | 'doc-introduction' | 'doc-noteref' | 'doc-notice' | 'doc-pagebreak' | 'doc-pagelist' | 'doc-part' | 'doc-preface' | 'doc-prologue' | 'doc-pullquote' | 'doc-qna' | 'doc-subtitle' | 'doc-tip' | 'doc-toc';
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=aria.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aria.d.ts","sourceRoot":"","sources":["../../../src/utils/aria/aria.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,SAAS,CAAA;AAiD1C,eAAO,MAAM,cAAc,mwBAA+B,CAAA;AAI1D,KAAK,uBAAuB,CAAC,CAAC,SAAS,MAAM,IAEzC,CAAC,SAAS,OAAO,MAAM,MAAM,UAAU,MAAM,IAAI,EAAE,GACjD,QAAQ,SAAS,CAAC,MAAM,CAAC,EAAE,GAC3B,CAAC,SAAS,OAAO,MAAM,MAAM,EAAE,GAC/B,QAAQ,SAAS,CAAC,MAAM,CAAC,EAAE,GAC3B,CAAC,CAAA;AAEP,MAAM,MAAM,aAAa,GAAG,uBAAuB,CAAC,YAAY,CAAC,CAAA;AAEjE,eAAO,MAAM,cAAc,oBAA+E,CAAA;AAE1G,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,IAAI,aAAa,CAE7E;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,YAAY,EAAE,QAAQ,EAAE,CAAC,GAK7C,uBAAuB,CAAC,CAAC,CAAC,CAEvD;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAC9C,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACnC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IAC5D,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACjC,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACpC,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,WAAW,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B,WAAW,EACT,MAAM,GACN,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,CAAA;IACN,YAAY,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACrC,YAAY,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACrC,YAAY,EACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,GACR,IAAI,CAAA;IACN,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACnC,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACpC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAC7B,QAAQ,EAAE,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAA;IAC/C,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAClC,aAAa,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACtC,mBAAmB,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAC5C,eAAe,EAAE,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,IAAI,CAAA;IAC/D,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACpC,YAAY,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACrC,YAAY,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACrC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,WAAW,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B,YAAY,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACrC,WAAW,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B,QAAQ,EAAE,WAAW,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAC9D,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,MAAM,QAAQ,GACd,OAAO,GACP,aAAa,GACb,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,UAAU,GACV,MAAM,GACN,KAAK,GACL,SAAS,GACT,UAAU,GACV,kBAAkB,GAClB,eAAe,GACf,QAAQ,GACR,aAAa,GACb,OAAO,GACP,WAAW,GACX,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,UAAU,GACV,SAAS,GACT,OAAO,GACP,SAAS,GACT,UAAU,GACV,UAAU,GACV,MAAM,GACN,SAAS,GACT,MAAM,GACN,SAAS,GACT,YAAY,GACZ,SAAS,GACT,MAAM,GACN,UAAU,GACV,aAAa,GACb,SAAS,GACT,MAAM,GACN,cAAc,GACd,YAAY,GACZ,WAAW,GACX,UAAU,GACV,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,KAAK,GACL,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,GACN,MAAM,GACN,cAAc,GACd,QAAQ,GACR,KAAK,GACL,UAAU,GACV,WAAW,GACX,WAAW,GACX,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,QAAQ,GACR,eAAe,GACf,aAAa,GACb,MAAM,GACN,MAAM,GACN,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,qBAAqB,GACrB,eAAe,GACf,cAAc,GACd,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,eAAe,GACf,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,YAAY,GACZ,aAAa,GACb,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,cAAc,GACd,cAAc,GACd,YAAY,GACZ,aAAa,GACb,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,aAAa,GACb,YAAY,GACZ,eAAe,GACf,cAAc,GACd,UAAU,GACV,aAAa,GACb,cAAc,GACd,eAAe,GACf,SAAS,GACT,cAAc,GACd,SAAS,GACT,SAAS,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
const a=new Set(["ariaAtomic","ariaAutoComplete","ariaBrailleLabel","ariaBrailleRoleDescription","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColIndexText","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowIndexText","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","role"]),e=new Set(a.values().map(r));function i(a){return e.has(a)}function r(a){return a.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}export{e as AriaAttributes,a as AriaProperties,r as ariaPropertyToAttribute,i as isARIAAttribute};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
import type { MixinBase, MixinReturn } from '../behaviors/mixin';
|
|
8
|
+
/**
|
|
9
|
+
* Mixes in aria delegation for elements that delegate focus and aria to inner
|
|
10
|
+
* shadow root elements.
|
|
11
|
+
*
|
|
12
|
+
* This mixin fixes invalid aria announcements with shadow roots, caused by
|
|
13
|
+
* duplicate aria attributes on both the host and the inner shadow root element.
|
|
14
|
+
*
|
|
15
|
+
* Note: this mixin **does not yet support** ID reference attributes, such as
|
|
16
|
+
* `aria-labelledby` or `aria-controls`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* class MyButton extends mixinDelegatesAria(LitElement) {
|
|
21
|
+
* static shadowRootOptions = {mode: 'open', delegatesFocus: true};
|
|
22
|
+
*
|
|
23
|
+
* render() {
|
|
24
|
+
* return html`
|
|
25
|
+
* <button aria-label=${this.ariaLabel || nothing}>
|
|
26
|
+
* <slot></slot>
|
|
27
|
+
* </button>
|
|
28
|
+
* `;
|
|
29
|
+
* }
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
* ```html
|
|
33
|
+
* <my-button aria-label="Plus one">+1</my-button>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* Use `ARIAMixinStrict` for lit analyzer strict types, such as the "role"
|
|
37
|
+
* attribute.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* return html`
|
|
42
|
+
* <button role=${(this as ARIAMixinStrict).role || nothing}>
|
|
43
|
+
* <slot></slot>
|
|
44
|
+
* </button>
|
|
45
|
+
* `;
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* In the future, updates to the Accessibility Object Model (AOM) will provide
|
|
49
|
+
* built-in aria delegation features that will replace this mixin.
|
|
50
|
+
*
|
|
51
|
+
* @param base The class to mix functionality into.
|
|
52
|
+
* @return The provided class with aria delegation mixed in.
|
|
53
|
+
*/
|
|
54
|
+
export declare function mixinDelegatesAria<T extends MixinBase<LitElement>>(base: T): MixinReturn<T>;
|
|
55
|
+
//# sourceMappingURL=delegate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../../src/utils/aria/delegate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAA6B,MAAM,KAAK,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAQhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,CAAC,UAAU,CAAC,EAC9D,IAAI,EAAE,CAAC,GACR,WAAW,CAAC,CAAC,CAAC,CAoEhB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"../../lit-element-Ho-VPzO1.js";import{AriaProperties as t,ariaPropertyToAttribute as e,isARIAAttribute as r}from"./aria.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2023 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
const s=Symbol("privateIgnoreAttributeChangesFor");function a(a){var n;class o extends a{constructor(){super(...arguments),this[n]=new Set}static{n=s}attributeChangedCallback(t,e,a){if(!r(t))return void super.attributeChangedCallback(t,e,a);if(this[s].has(t))return;this[s].add(t),this.removeAttribute(t),this[s].delete(t);const i=u(t);null===a?delete this.dataset[i]:this.dataset[i]=a,this.requestUpdate(u(t),e)}getAttribute(t){return r(t)?super.getAttribute(i(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),r(t)&&(super.removeAttribute(i(t)),this.requestUpdate())}}return function(r){for(const s of t){const t=e(s),a=i(t),n=u(t);r.createProperty(s,{attribute:t,noAccessor:!0}),r.createProperty(Symbol(a),{attribute:a,noAccessor:!0}),Object.defineProperty(r.prototype,s,{configurable:!0,enumerable:!0,get(){return this.dataset[n]??null},set(t){const e=this.dataset[n]??null;t!==e&&(null===t?delete this.dataset[n]:this.dataset[n]=t,this.requestUpdate(s,e))}})}}(o),o}function i(t){return`data-${t}`}function u(t){return t.replace(/-\w/,t=>t[1].toUpperCase())}export{a as mixinDelegatesAria};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type LitElement } from 'lit';
|
|
2
|
+
import type { MixinBase, MixinReturn } from './mixin';
|
|
3
|
+
export interface IConnectedPromiseResolve {
|
|
4
|
+
isConnectedPromiseResolve: () => void;
|
|
5
|
+
isConnectedPromise: Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare function mixinConnectedPromiseResolve<T extends MixinBase<LitElement>>(base: T): MixinReturn<T, IConnectedPromiseResolve>;
|
|
8
|
+
//# sourceMappingURL=connected-promise-resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connected-promise-resolve.d.ts","sourceRoot":"","sources":["../../../src/utils/behaviors/connected-promise-resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErD,MAAM,WAAW,wBAAwB;IACrC,yBAAyB,EAAE,MAAM,IAAI,CAAA;IACrC,kBAAkB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;CACpC;AAED,wBAAgB,4BAA4B,CAAC,CAAC,SAAS,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE,wBAAwB,CAAC,CAuB/H"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../lit-element-Ho-VPzO1.js";function e(e){return class extends e{constructor(){super(...arguments),this.isConnectedPromise=this.getIsConnectedPromise()}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}}}export{e as mixinConnectedPromiseResolve};
|