@m3e/core 1.0.0-rc.1
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 +22 -0
- package/NOTICE.md +8 -0
- package/README.md +59 -0
- package/cem.config.mjs +16 -0
- package/demo/index.html +58 -0
- package/dist/a11y.js +1431 -0
- package/dist/a11y.js.map +1 -0
- package/dist/a11y.min.js +87 -0
- package/dist/a11y.min.js.map +1 -0
- package/dist/anchoring.js +1748 -0
- package/dist/anchoring.js.map +1 -0
- package/dist/anchoring.min.js +7 -0
- package/dist/anchoring.min.js.map +1 -0
- package/dist/bidi.js +106 -0
- package/dist/bidi.js.map +1 -0
- package/dist/bidi.min.js +16 -0
- package/dist/bidi.min.js.map +1 -0
- package/dist/css-custom-data.json +257 -0
- package/dist/custom-elements.json +13504 -0
- package/dist/html-custom-data.json +199 -0
- package/dist/index.js +4342 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +520 -0
- package/dist/index.min.js.map +1 -0
- package/dist/layout.js +64 -0
- package/dist/layout.js.map +1 -0
- package/dist/layout.min.js +15 -0
- package/dist/layout.min.js.map +1 -0
- package/dist/platform.js +56 -0
- package/dist/platform.js.map +1 -0
- package/dist/platform.min.js +15 -0
- package/dist/platform.min.js.map +1 -0
- package/dist/src/a11y/AriaDescriber.d.ts +31 -0
- package/dist/src/a11y/AriaDescriber.d.ts.map +1 -0
- package/dist/src/a11y/FocusTrapElement.d.ts +25 -0
- package/dist/src/a11y/FocusTrapElement.d.ts.map +1 -0
- package/dist/src/a11y/InteractivityChecker.d.ts +22 -0
- package/dist/src/a11y/InteractivityChecker.d.ts.map +1 -0
- package/dist/src/a11y/LiveAnnouncer.d.ts +56 -0
- package/dist/src/a11y/LiveAnnouncer.d.ts.map +1 -0
- package/dist/src/a11y/aria-reference.d.ts +30 -0
- package/dist/src/a11y/aria-reference.d.ts.map +1 -0
- package/dist/src/a11y/index.d.ts +8 -0
- package/dist/src/a11y/index.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/KeyCode.d.ts +118 -0
- package/dist/src/a11y/keycodes/KeyCode.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/ModifierKeys.d.ts +5 -0
- package/dist/src/a11y/keycodes/ModifierKeys.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/getKeyCode.d.ts +7 -0
- package/dist/src/a11y/keycodes/getKeyCode.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/hasModifierKey.d.ts +9 -0
- package/dist/src/a11y/keycodes/hasModifierKey.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/index.d.ts +6 -0
- package/dist/src/a11y/keycodes/index.d.ts.map +1 -0
- package/dist/src/a11y/keycodes/isModifierAllowed.d.ts +9 -0
- package/dist/src/a11y/keycodes/isModifierAllowed.d.ts.map +1 -0
- package/dist/src/a11y/list-key/FocusKeyManager.d.ts +17 -0
- package/dist/src/a11y/list-key/FocusKeyManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/ListKeyManager.d.ts +114 -0
- package/dist/src/a11y/list-key/ListKeyManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/ListManager.d.ts +37 -0
- package/dist/src/a11y/list-key/ListManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/RadioKeyManager.d.ts +20 -0
- package/dist/src/a11y/list-key/RadioKeyManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/RovingTabIndexManager.d.ts +22 -0
- package/dist/src/a11y/list-key/RovingTabIndexManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/SelectionManager.d.ts +46 -0
- package/dist/src/a11y/list-key/SelectionManager.d.ts.map +1 -0
- package/dist/src/a11y/list-key/Typeahead.d.ts +64 -0
- package/dist/src/a11y/list-key/Typeahead.d.ts.map +1 -0
- package/dist/src/a11y/list-key/index.d.ts +8 -0
- package/dist/src/a11y/list-key/index.d.ts.map +1 -0
- package/dist/src/a11y/visuallyHide.d.ts +6 -0
- package/dist/src/a11y/visuallyHide.d.ts.map +1 -0
- package/dist/src/anchoring/AnchorOptions.d.ts +15 -0
- package/dist/src/anchoring/AnchorOptions.d.ts.map +1 -0
- package/dist/src/anchoring/AnchorPosition.d.ts +3 -0
- package/dist/src/anchoring/AnchorPosition.d.ts.map +1 -0
- package/dist/src/anchoring/index.d.ts +4 -0
- package/dist/src/anchoring/index.d.ts.map +1 -0
- package/dist/src/anchoring/positionAnchor.d.ts +12 -0
- package/dist/src/anchoring/positionAnchor.d.ts.map +1 -0
- package/dist/src/bidi/Directionality.d.ts +27 -0
- package/dist/src/bidi/Directionality.d.ts.map +1 -0
- package/dist/src/bidi/index.d.ts +2 -0
- package/dist/src/bidi/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/layout/Breakpoint.d.ts +26 -0
- package/dist/src/layout/Breakpoint.d.ts.map +1 -0
- package/dist/src/layout/BreakpointObserver.d.ts +18 -0
- package/dist/src/layout/BreakpointObserver.d.ts.map +1 -0
- package/dist/src/layout/index.d.ts +3 -0
- package/dist/src/layout/index.d.ts.map +1 -0
- package/dist/src/platform/Platform.d.ts +34 -0
- package/dist/src/platform/Platform.d.ts.map +1 -0
- package/dist/src/platform/index.d.ts +2 -0
- package/dist/src/platform/index.d.ts.map +1 -0
- package/dist/src/shared/controllers/FocusController.d.ts +30 -0
- package/dist/src/shared/controllers/FocusController.d.ts.map +1 -0
- package/dist/src/shared/controllers/HoverController.d.ts +40 -0
- package/dist/src/shared/controllers/HoverController.d.ts.map +1 -0
- package/dist/src/shared/controllers/IntersectionController.d.ts +40 -0
- package/dist/src/shared/controllers/IntersectionController.d.ts.map +1 -0
- package/dist/src/shared/controllers/LongPressController.d.ts +32 -0
- package/dist/src/shared/controllers/LongPressController.d.ts.map +1 -0
- package/dist/src/shared/controllers/MonitorControllerBase.d.ts +62 -0
- package/dist/src/shared/controllers/MonitorControllerBase.d.ts.map +1 -0
- package/dist/src/shared/controllers/MutationController.d.ts +37 -0
- package/dist/src/shared/controllers/MutationController.d.ts.map +1 -0
- package/dist/src/shared/controllers/PressedController.d.ts +45 -0
- package/dist/src/shared/controllers/PressedController.d.ts.map +1 -0
- package/dist/src/shared/controllers/ResizeController.d.ts +40 -0
- package/dist/src/shared/controllers/ResizeController.d.ts.map +1 -0
- package/dist/src/shared/controllers/ScrollController.d.ts +34 -0
- package/dist/src/shared/controllers/ScrollController.d.ts.map +1 -0
- package/dist/src/shared/controllers/index.d.ts +9 -0
- package/dist/src/shared/controllers/index.d.ts.map +1 -0
- package/dist/src/shared/decorators/debounce.d.ts +7 -0
- package/dist/src/shared/decorators/debounce.d.ts.map +1 -0
- package/dist/src/shared/decorators/index.d.ts +2 -0
- package/dist/src/shared/decorators/index.d.ts.map +1 -0
- package/dist/src/shared/directives/index.d.ts +2 -0
- package/dist/src/shared/directives/index.d.ts.map +1 -0
- package/dist/src/shared/directives/safeStyleMap.d.ts +44 -0
- package/dist/src/shared/directives/safeStyleMap.d.ts.map +1 -0
- package/dist/src/shared/index.d.ts +8 -0
- package/dist/src/shared/index.d.ts.map +1 -0
- package/dist/src/shared/mixins/AttachInternals.d.ts +24 -0
- package/dist/src/shared/mixins/AttachInternals.d.ts.map +1 -0
- package/dist/src/shared/mixins/Checked.d.ts +24 -0
- package/dist/src/shared/mixins/Checked.d.ts.map +1 -0
- package/dist/src/shared/mixins/CheckedIndeterminate.d.ts +25 -0
- package/dist/src/shared/mixins/CheckedIndeterminate.d.ts.map +1 -0
- package/dist/src/shared/mixins/CheckedOrSelected.d.ts +23 -0
- package/dist/src/shared/mixins/CheckedOrSelected.d.ts.map +1 -0
- package/dist/src/shared/mixins/ConstraintValidation.d.ts +48 -0
- package/dist/src/shared/mixins/ConstraintValidation.d.ts.map +1 -0
- package/dist/src/shared/mixins/Constructor.d.ts +3 -0
- package/dist/src/shared/mixins/Constructor.d.ts.map +1 -0
- package/dist/src/shared/mixins/Dirty.d.ts +27 -0
- package/dist/src/shared/mixins/Dirty.d.ts.map +1 -0
- package/dist/src/shared/mixins/Disabled.d.ts +25 -0
- package/dist/src/shared/mixins/Disabled.d.ts.map +1 -0
- package/dist/src/shared/mixins/DisabledInteractive.d.ts +25 -0
- package/dist/src/shared/mixins/DisabledInteractive.d.ts.map +1 -0
- package/dist/src/shared/mixins/EventAttribute.d.ts +11 -0
- package/dist/src/shared/mixins/EventAttribute.d.ts.map +1 -0
- package/dist/src/shared/mixins/Focusable.d.ts +11 -0
- package/dist/src/shared/mixins/Focusable.d.ts.map +1 -0
- package/dist/src/shared/mixins/FormAssociated.d.ts +34 -0
- package/dist/src/shared/mixins/FormAssociated.d.ts.map +1 -0
- package/dist/src/shared/mixins/FormSubmitter.d.ts +31 -0
- package/dist/src/shared/mixins/FormSubmitter.d.ts.map +1 -0
- package/dist/src/shared/mixins/HtmlFor.d.ts +30 -0
- package/dist/src/shared/mixins/HtmlFor.d.ts.map +1 -0
- package/dist/src/shared/mixins/KeyboardClick.d.ts +11 -0
- package/dist/src/shared/mixins/KeyboardClick.d.ts.map +1 -0
- package/dist/src/shared/mixins/Labelled.d.ts +22 -0
- package/dist/src/shared/mixins/Labelled.d.ts.map +1 -0
- package/dist/src/shared/mixins/LinkButton.d.ts +36 -0
- package/dist/src/shared/mixins/LinkButton.d.ts.map +1 -0
- package/dist/src/shared/mixins/ReadOnly.d.ts +25 -0
- package/dist/src/shared/mixins/ReadOnly.d.ts.map +1 -0
- package/dist/src/shared/mixins/Required.d.ts +26 -0
- package/dist/src/shared/mixins/Required.d.ts.map +1 -0
- package/dist/src/shared/mixins/RequiredConstraintValidation.d.ts +21 -0
- package/dist/src/shared/mixins/RequiredConstraintValidation.d.ts.map +1 -0
- package/dist/src/shared/mixins/Role.d.ts +13 -0
- package/dist/src/shared/mixins/Role.d.ts.map +1 -0
- package/dist/src/shared/mixins/Selected.d.ts +24 -0
- package/dist/src/shared/mixins/Selected.d.ts.map +1 -0
- package/dist/src/shared/mixins/Touched.d.ts +27 -0
- package/dist/src/shared/mixins/Touched.d.ts.map +1 -0
- package/dist/src/shared/mixins/Vertical.d.ts +24 -0
- package/dist/src/shared/mixins/Vertical.d.ts.map +1 -0
- package/dist/src/shared/mixins/hasKeys.d.ts +9 -0
- package/dist/src/shared/mixins/hasKeys.d.ts.map +1 -0
- package/dist/src/shared/mixins/index.d.ts +25 -0
- package/dist/src/shared/mixins/index.d.ts.map +1 -0
- package/dist/src/shared/primitives/CollapsibleElement.d.ts +58 -0
- package/dist/src/shared/primitives/CollapsibleElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/ElevationElement.d.ts +88 -0
- package/dist/src/shared/primitives/ElevationElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/ElevationLevel.d.ts +3 -0
- package/dist/src/shared/primitives/ElevationLevel.d.ts.map +1 -0
- package/dist/src/shared/primitives/ElevationToken.d.ts +15 -0
- package/dist/src/shared/primitives/ElevationToken.d.ts.map +1 -0
- package/dist/src/shared/primitives/FocusRingElement.d.ts +78 -0
- package/dist/src/shared/primitives/FocusRingElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/FocusRingToken.d.ts +17 -0
- package/dist/src/shared/primitives/FocusRingToken.d.ts.map +1 -0
- package/dist/src/shared/primitives/PseudoCheckboxElement.d.ts +50 -0
- package/dist/src/shared/primitives/PseudoCheckboxElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/PseudoRadioElement.d.ts +41 -0
- package/dist/src/shared/primitives/PseudoRadioElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/RippleElement.d.ts +110 -0
- package/dist/src/shared/primitives/RippleElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/RippleToken.d.ts +12 -0
- package/dist/src/shared/primitives/RippleToken.d.ts.map +1 -0
- package/dist/src/shared/primitives/ScrollContainerElement.d.ts +64 -0
- package/dist/src/shared/primitives/ScrollContainerElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/ScrollDividers.d.ts +3 -0
- package/dist/src/shared/primitives/ScrollDividers.d.ts.map +1 -0
- package/dist/src/shared/primitives/SlideElement.d.ts +48 -0
- package/dist/src/shared/primitives/SlideElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/StateLayerElement.d.ts +77 -0
- package/dist/src/shared/primitives/StateLayerElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/StateLayerToken.d.ts +13 -0
- package/dist/src/shared/primitives/StateLayerToken.d.ts.map +1 -0
- package/dist/src/shared/primitives/TextOverflowElement.d.ts +39 -0
- package/dist/src/shared/primitives/TextOverflowElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/index.d.ts +13 -0
- package/dist/src/shared/primitives/index.d.ts.map +1 -0
- package/dist/src/shared/tokens/ColorToken.d.ts +96 -0
- package/dist/src/shared/tokens/ColorToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/DensityToken.d.ts +15 -0
- package/dist/src/shared/tokens/DensityToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/DesignToken.d.ts +366 -0
- package/dist/src/shared/tokens/DesignToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/ElevationToken.d.ts +16 -0
- package/dist/src/shared/tokens/ElevationToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/MotionToken.d.ts +69 -0
- package/dist/src/shared/tokens/MotionToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/ScrollbarToken.d.ts +10 -0
- package/dist/src/shared/tokens/ScrollbarToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/ShapeToken.d.ts +79 -0
- package/dist/src/shared/tokens/ShapeToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/StateToken.d.ts +10 -0
- package/dist/src/shared/tokens/StateToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/TypescaleToken.d.ts +220 -0
- package/dist/src/shared/tokens/TypescaleToken.d.ts.map +1 -0
- package/dist/src/shared/tokens/index.d.ts +2 -0
- package/dist/src/shared/tokens/index.d.ts.map +1 -0
- package/dist/src/shared/utils/getTextContent.d.ts +8 -0
- package/dist/src/shared/utils/getTextContent.d.ts.map +1 -0
- package/dist/src/shared/utils/guid.d.ts +6 -0
- package/dist/src/shared/utils/guid.d.ts.map +1 -0
- package/dist/src/shared/utils/hasAssignedNodes.d.ts +7 -0
- package/dist/src/shared/utils/hasAssignedNodes.d.ts.map +1 -0
- package/dist/src/shared/utils/index.d.ts +6 -0
- package/dist/src/shared/utils/index.d.ts.map +1 -0
- package/dist/src/shared/utils/prefersReducedMotion.d.ts +6 -0
- package/dist/src/shared/utils/prefersReducedMotion.d.ts.map +1 -0
- package/dist/src/shared/utils/scrollIntoViewIfNeeded.d.ts +8 -0
- package/dist/src/shared/utils/scrollIntoViewIfNeeded.d.ts.map +1 -0
- package/eslint.config.mjs +21 -0
- package/package.json +87 -0
- package/rollup.config.js +132 -0
- package/src/a11y/AriaDescriber.ts +130 -0
- package/src/a11y/FocusTrapElement.ts +136 -0
- package/src/a11y/InteractivityChecker.ts +62 -0
- package/src/a11y/LiveAnnouncer.ts +143 -0
- package/src/a11y/aria-reference.ts +51 -0
- package/src/a11y/index.ts +8 -0
- package/src/a11y/keycodes/KeyCode.ts +128 -0
- package/src/a11y/keycodes/ModifierKeys.ts +5 -0
- package/src/a11y/keycodes/getKeyCode.ts +8 -0
- package/src/a11y/keycodes/hasModifierKey.ts +11 -0
- package/src/a11y/keycodes/index.ts +5 -0
- package/src/a11y/keycodes/isModifierAllowed.ts +12 -0
- package/src/a11y/list-key/FocusKeyManager.ts +25 -0
- package/src/a11y/list-key/ListKeyManager.ts +350 -0
- package/src/a11y/list-key/ListManager.ts +66 -0
- package/src/a11y/list-key/RadioKeyManager.ts +49 -0
- package/src/a11y/list-key/RovingTabIndexManager.ts +56 -0
- package/src/a11y/list-key/SelectionManager.ts +132 -0
- package/src/a11y/list-key/Typeahead.ts +131 -0
- package/src/a11y/list-key/index.ts +7 -0
- package/src/a11y/visuallyHide.ts +18 -0
- package/src/anchoring/AnchorOptions.ts +19 -0
- package/src/anchoring/AnchorPosition.ts +14 -0
- package/src/anchoring/index.ts +3 -0
- package/src/anchoring/positionAnchor.ts +53 -0
- package/src/bidi/Directionality.ts +85 -0
- package/src/bidi/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/layout/Breakpoint.ts +26 -0
- package/src/layout/BreakpointObserver.ts +44 -0
- package/src/layout/index.ts +2 -0
- package/src/platform/Platform.ts +67 -0
- package/src/platform/index.ts +1 -0
- package/src/shared/controllers/FocusController.ts +60 -0
- package/src/shared/controllers/HoverController.ts +140 -0
- package/src/shared/controllers/IntersectionController.ts +81 -0
- package/src/shared/controllers/LongPressController.ts +87 -0
- package/src/shared/controllers/MonitorControllerBase.ts +99 -0
- package/src/shared/controllers/MutationController.ts +89 -0
- package/src/shared/controllers/PressedController.ts +137 -0
- package/src/shared/controllers/ResizeController.ts +83 -0
- package/src/shared/controllers/ScrollController.ts +100 -0
- package/src/shared/controllers/index.ts +8 -0
- package/src/shared/decorators/debounce.ts +19 -0
- package/src/shared/decorators/index.ts +1 -0
- package/src/shared/directives/index.ts +1 -0
- package/src/shared/directives/safeStyleMap.ts +108 -0
- package/src/shared/index.ts +7 -0
- package/src/shared/mixins/AttachInternals.ts +48 -0
- package/src/shared/mixins/Checked.ts +50 -0
- package/src/shared/mixins/CheckedIndeterminate.ts +47 -0
- package/src/shared/mixins/CheckedOrSelected.ts +36 -0
- package/src/shared/mixins/ConstraintValidation.ts +213 -0
- package/src/shared/mixins/Constructor.ts +2 -0
- package/src/shared/mixins/Dirty.ts +71 -0
- package/src/shared/mixins/Disabled.ts +49 -0
- package/src/shared/mixins/DisabledInteractive.ts +78 -0
- package/src/shared/mixins/EventAttribute.ts +25 -0
- package/src/shared/mixins/Focusable.ts +52 -0
- package/src/shared/mixins/FormAssociated.ts +152 -0
- package/src/shared/mixins/FormSubmitter.ts +123 -0
- package/src/shared/mixins/HtmlFor.ts +89 -0
- package/src/shared/mixins/KeyboardClick.ts +46 -0
- package/src/shared/mixins/Labelled.ts +88 -0
- package/src/shared/mixins/LinkButton.ts +169 -0
- package/src/shared/mixins/ReadOnly.ts +48 -0
- package/src/shared/mixins/Required.ts +50 -0
- package/src/shared/mixins/RequiredConstraintValidation.ts +45 -0
- package/src/shared/mixins/Role.ts +134 -0
- package/src/shared/mixins/Selected.ts +50 -0
- package/src/shared/mixins/Touched.ts +71 -0
- package/src/shared/mixins/Vertical.ts +44 -0
- package/src/shared/mixins/hasKeys.ts +10 -0
- package/src/shared/mixins/index.ts +24 -0
- package/src/shared/primitives/CollapsibleElement.ts +227 -0
- package/src/shared/primitives/ElevationElement.ts +254 -0
- package/src/shared/primitives/ElevationLevel.ts +2 -0
- package/src/shared/primitives/ElevationToken.ts +18 -0
- package/src/shared/primitives/FocusRingElement.ts +199 -0
- package/src/shared/primitives/FocusRingToken.ts +24 -0
- package/src/shared/primitives/PseudoCheckboxElement.ts +116 -0
- package/src/shared/primitives/PseudoRadioElement.ts +83 -0
- package/src/shared/primitives/RippleElement.ts +289 -0
- package/src/shared/primitives/RippleToken.ts +15 -0
- package/src/shared/primitives/ScrollContainerElement.ts +151 -0
- package/src/shared/primitives/ScrollDividers.ts +2 -0
- package/src/shared/primitives/SlideElement.ts +128 -0
- package/src/shared/primitives/StateLayerElement.ts +191 -0
- package/src/shared/primitives/StateLayerToken.ts +16 -0
- package/src/shared/primitives/TextOverflowElement.ts +60 -0
- package/src/shared/primitives/index.ts +12 -0
- package/src/shared/tokens/ColorToken.ts +142 -0
- package/src/shared/tokens/DensityToken.ts +23 -0
- package/src/shared/tokens/DesignToken.ts +35 -0
- package/src/shared/tokens/ElevationToken.ts +115 -0
- package/src/shared/tokens/MotionToken.ts +107 -0
- package/src/shared/tokens/ScrollbarToken.ts +13 -0
- package/src/shared/tokens/ShapeToken.ts +138 -0
- package/src/shared/tokens/StateToken.ts +13 -0
- package/src/shared/tokens/TypescaleToken.ts +230 -0
- package/src/shared/tokens/index.ts +1 -0
- package/src/shared/utils/getTextContent.ts +31 -0
- package/src/shared/utils/guid.ts +11 -0
- package/src/shared/utils/hasAssignedNodes.ts +8 -0
- package/src/shared/utils/index.ts +5 -0
- package/src/shared/utils/prefersReducedMotion.ts +9 -0
- package/src/shared/utils/scrollIntoViewIfNeeded.ts +18 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
+
declare const M3eSlide_base: import("../mixins/Constructor").Constructor & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* A carousel-like container used to horizontally cycle through slotted items.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* The following example illustrates the use of `m3e-slide` to cycle through content.
|
|
8
|
+
* In this example, `selected-index` is set to `1` so that "Content at index 1" is presented
|
|
9
|
+
* by the component.
|
|
10
|
+
* ```html
|
|
11
|
+
* <m3e-slide selected-index="1">
|
|
12
|
+
* <div>Content at index 0</div>
|
|
13
|
+
* <div>Content at index 1</div>
|
|
14
|
+
* <div>Content at index 2</div>
|
|
15
|
+
* <div>Content at index 3</div>
|
|
16
|
+
* </m3e-slide>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @tag m3e-slide
|
|
20
|
+
*
|
|
21
|
+
* @attr selected-index - The zero-based index of the visible item.
|
|
22
|
+
*
|
|
23
|
+
* @cssprop --m3e-slide-animation-duration - The duration of transitions between slotted items.
|
|
24
|
+
*/
|
|
25
|
+
export declare class M3eSlide extends M3eSlide_base {
|
|
26
|
+
#private;
|
|
27
|
+
/** The styles of the element. */
|
|
28
|
+
static styles: CSSResultGroup;
|
|
29
|
+
/** @private */ private readonly _items;
|
|
30
|
+
/**
|
|
31
|
+
* The zero-based index of the visible item.
|
|
32
|
+
* @default null
|
|
33
|
+
*/
|
|
34
|
+
selectedIndex: number | null;
|
|
35
|
+
/** @inheritdoc */
|
|
36
|
+
connectedCallback(): void;
|
|
37
|
+
/** @inheritdoc */
|
|
38
|
+
protected update(changedProperties: PropertyValues<this>): void;
|
|
39
|
+
/** @inheritdoc */
|
|
40
|
+
protected render(): unknown;
|
|
41
|
+
}
|
|
42
|
+
declare global {
|
|
43
|
+
interface HTMLElementTagNameMap {
|
|
44
|
+
"m3e-slide": M3eSlide;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=SlideElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlideElement.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/SlideElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;;AAMvF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,QAAS,SAAQ,aAAwB;;IACpD,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAsCpC;IAEF,eAAe,CAA2C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IAE9F;;;OAGG;IACqE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE5G,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAoBxE,kBAAkB;cACC,MAAM,IAAI,OAAO;CAcrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
+
declare const M3eStateLayerElement_base: import("../mixins/Constructor").Constructor<import("..").HtmlForMixin> & import("../mixins/Constructor").Constructor & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* @summary
|
|
5
|
+
* Provides focus and hover state layer treatment for an interactive element.
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* The `m3e-state-layer` component is an absolute positioned element used to depict hover and focus overlays.
|
|
9
|
+
* The parenting element must be a relative positioned element.
|
|
10
|
+
*
|
|
11
|
+
* This element can be attached to an interactive element using the `for` attribute or programmatically using the `attach` method.
|
|
12
|
+
* The state layer is displayed when the interactive element is either hovered or focused. This can be disabled using
|
|
13
|
+
* the `disabled` attribute.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* The following example illustrates attaching a state layer to an interactive element. In this example, the parenting div
|
|
17
|
+
* has relative positioning and is given an `id` referenced by `m3e-state-layer` using the `for` attribute. Note that `#myDiv`
|
|
18
|
+
* is not used when specifying the attached element's identifier. The `#` is inferred.
|
|
19
|
+
*
|
|
20
|
+
* ```html
|
|
21
|
+
* <div id="myDiv" tabindex="0" style="position: relative;">
|
|
22
|
+
* <m3e-state-layer for="myDiv"></m3e-state-layer>
|
|
23
|
+
* <div>
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @tag m3e-state-layer
|
|
27
|
+
*
|
|
28
|
+
* @attr disabled - Whether hover and focus event will not trigger the state layer.Whether hover and focus event will not trigger the state layer. State layers can still be controlled manually using the `show` and `hide` methods.
|
|
29
|
+
*
|
|
30
|
+
* @cssprop --m3e-state-layer-duration - Duration of state layer changes.
|
|
31
|
+
* @cssprop --m3e-state-layer-easing - Easing curve of state layer changes.
|
|
32
|
+
* @cssprop --m3e-state-layer-focus-color - Color on hover.
|
|
33
|
+
* @cssprop --m3e-state-layer-focus-opacity - Opacity on focus.
|
|
34
|
+
* @cssprop --m3e-state-layer-hover-color - Color on hover.
|
|
35
|
+
* @cssprop --m3e-state-layer-hover-opacity - Opacity on hover.
|
|
36
|
+
*/
|
|
37
|
+
export declare class M3eStateLayerElement extends M3eStateLayerElement_base {
|
|
38
|
+
#private;
|
|
39
|
+
/** The styles of the element. */
|
|
40
|
+
static styles: CSSResultGroup;
|
|
41
|
+
/** @private */ private readonly _layer?;
|
|
42
|
+
/**
|
|
43
|
+
* Whether hover and focus event will not trigger the state layer. State layers can still
|
|
44
|
+
* be controlled manually using the `show` and `hide` methods.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Launches a manual state layer.
|
|
50
|
+
* @param {"hover" | "focused"} state The state of the layer to show.
|
|
51
|
+
*/
|
|
52
|
+
show(state: "hover" | "focused"): void;
|
|
53
|
+
/**
|
|
54
|
+
* Hides the state layer.
|
|
55
|
+
* @param {"hover" | "focused"} state The state of the layer to hide.
|
|
56
|
+
*/
|
|
57
|
+
hide(state: "hover" | "focused"): void;
|
|
58
|
+
/** @inheritdoc */
|
|
59
|
+
attach(control: HTMLElement): void;
|
|
60
|
+
/** @inheritdoc */
|
|
61
|
+
detach(): void;
|
|
62
|
+
/** @inheritdoc */
|
|
63
|
+
connectedCallback(): void;
|
|
64
|
+
/** @inheritdoc */
|
|
65
|
+
disconnectedCallback(): void;
|
|
66
|
+
/** @inheritdoc */
|
|
67
|
+
protected updated(_changedProperties: PropertyValues<this>): void;
|
|
68
|
+
/** @inheritdoc */
|
|
69
|
+
protected render(): unknown;
|
|
70
|
+
}
|
|
71
|
+
declare global {
|
|
72
|
+
interface HTMLElementTagNameMap {
|
|
73
|
+
"m3e-state-layer": M3eStateLayerElement;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=StateLayerElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StateLayerElement.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/StateLayerElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;;AAQvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBACa,oBAAqB,SAAQ,yBAAiC;;IACzE,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAkCpC;IAcF,eAAe,CAAkB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAc;IAEvE;;;;OAIG;IACyC,QAAQ,UAAS;IAE7D;;;OAGG;IACH,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;IAItC;;;OAGG;IACH,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;IAItC,kBAAkB;IACT,MAAM,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAM3C,kBAAkB;IACT,MAAM,IAAI,IAAI;IAQvB,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;IACT,oBAAoB,IAAI,IAAI;IAOrC,kBAAkB;cACC,OAAO,CAAC,kBAAkB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAS1E,kBAAkB;cACC,MAAM,IAAI,OAAO;CAyBrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component design tokens that control the `M3eStateLayerElement`.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const StateLayerToken: {
|
|
6
|
+
readonly hoverColor: import("lit").CSSResult;
|
|
7
|
+
readonly hoverOpacity: import("lit").CSSResult;
|
|
8
|
+
readonly focusColor: import("lit").CSSResult;
|
|
9
|
+
readonly focusOpacity: import("lit").CSSResult;
|
|
10
|
+
readonly duration: import("lit").CSSResult;
|
|
11
|
+
readonly easing: import("lit").CSSResult;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=StateLayerToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StateLayerToken.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/StateLayerToken.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;CAOlB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* @summary
|
|
4
|
+
* An inline container which presents an ellipsis when content overflows.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `m3e-text-overflow` component truncates inline content with an ellipsis when it
|
|
8
|
+
* exceeds the available width. It's intended for use inside flex or otherwise
|
|
9
|
+
* constrained containers to preserve layout while providing predictable, single-line
|
|
10
|
+
* truncation behavior for long text.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* A typical usage inside a flex container where the heading and trailing actions are
|
|
14
|
+
* constrained, allowing the center text to truncate with an ellipsis.
|
|
15
|
+
*
|
|
16
|
+
* ```html
|
|
17
|
+
* <div style="display:flex;align-items:center;gap:12px;">
|
|
18
|
+
* <m3e-icon name="menu"></m3e-icon>
|
|
19
|
+
* <m3e-text-overflow>Very long title or breadcrumb that should truncate gracefully</m3e-text-overflow>
|
|
20
|
+
* <m3e-icon name="more_vert"></m3e-icon>
|
|
21
|
+
* </div>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @tag m3e-text-overflow
|
|
25
|
+
*
|
|
26
|
+
* @slot - Renders the content to truncate with an ellipsis.
|
|
27
|
+
*/
|
|
28
|
+
export declare class M3eTextOverflowElement extends LitElement {
|
|
29
|
+
/** The styles of the element. */
|
|
30
|
+
static styles: CSSResultGroup;
|
|
31
|
+
/** @inheritdoc */
|
|
32
|
+
protected render(): unknown;
|
|
33
|
+
}
|
|
34
|
+
declare global {
|
|
35
|
+
interface HTMLElementTagNameMap {
|
|
36
|
+
"m3e-text-overflow": M3eTextOverflowElement;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=TextOverflowElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextOverflowElement.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/TextOverflowElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IACpD,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAepC;IAEF,kBAAkB;cACC,MAAM,IAAI,OAAO;CAGrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,sBAAsB,CAAC;KAC7C;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./CollapsibleElement";
|
|
2
|
+
export * from "./ElevationElement";
|
|
3
|
+
export * from "./ElevationLevel";
|
|
4
|
+
export * from "./FocusRingElement";
|
|
5
|
+
export * from "./PseudoCheckboxElement";
|
|
6
|
+
export * from "./PseudoRadioElement";
|
|
7
|
+
export * from "./RippleElement";
|
|
8
|
+
export * from "./ScrollContainerElement";
|
|
9
|
+
export * from "./ScrollDividers";
|
|
10
|
+
export * from "./SlideElement";
|
|
11
|
+
export * from "./StateLayerElement";
|
|
12
|
+
export * from "./TextOverflowElement";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/** Design tokens that control color. */
|
|
2
|
+
export declare const ColorToken: {
|
|
3
|
+
/** High-emphasis fills, texts, and icons against surface. */
|
|
4
|
+
readonly primary: import("lit").CSSResult;
|
|
5
|
+
/** Text and icons against primary. */
|
|
6
|
+
readonly onPrimary: import("lit").CSSResult;
|
|
7
|
+
/** Standout fill color against surface, for key components. */
|
|
8
|
+
readonly primaryContainer: import("lit").CSSResult;
|
|
9
|
+
/** Text and icons against primary container. */
|
|
10
|
+
readonly onPrimaryContainer: import("lit").CSSResult;
|
|
11
|
+
/** High-emphasis fills, texts, and icons that maintain the same tone in light and dark themes. */
|
|
12
|
+
readonly primaryFixed: import("lit").CSSResult;
|
|
13
|
+
/** High-emphasis fills, texts, and icons that maintain the same stronger tone in light and dark themes. */
|
|
14
|
+
readonly primaryFixedDim: import("lit").CSSResult;
|
|
15
|
+
/** Text and icons against fixed primary. */
|
|
16
|
+
readonly onPrimaryFixed: import("lit").CSSResult;
|
|
17
|
+
/** Lower-emphasis text and icons against fixed primary. */
|
|
18
|
+
readonly onPrimaryFixedVariant: import("lit").CSSResult;
|
|
19
|
+
/** Less prominent fills, text, and icons against surface. */
|
|
20
|
+
readonly secondary: import("lit").CSSResult;
|
|
21
|
+
/** Text and icons against secondary. */
|
|
22
|
+
readonly onSecondary: import("lit").CSSResult;
|
|
23
|
+
/** Less prominent fill color against surface, for recessive components. */
|
|
24
|
+
readonly secondaryContainer: import("lit").CSSResult;
|
|
25
|
+
/** Text and icons against secondary container. */
|
|
26
|
+
readonly onSecondaryContainer: import("lit").CSSResult;
|
|
27
|
+
/** Less prominent fills, texts, and icons that maintain the same tone in light and dark themes. */
|
|
28
|
+
readonly secondaryFixed: import("lit").CSSResult;
|
|
29
|
+
/** Less prominent fills, texts, and icons that maintain the same stronger tone in light and dark themes. */
|
|
30
|
+
readonly secondaryFixedDim: import("lit").CSSResult;
|
|
31
|
+
/** Text and icons against fixed secondary. */
|
|
32
|
+
readonly onSecondaryFixed: import("lit").CSSResult;
|
|
33
|
+
/** Lower-emphasis text and icons against fixed secondary. */
|
|
34
|
+
readonly onSecondaryFixedVariant: import("lit").CSSResult;
|
|
35
|
+
/** Complementary fills, text, and icons against surface. */
|
|
36
|
+
readonly tertiary: import("lit").CSSResult;
|
|
37
|
+
/** Text and icons against tertiary. */
|
|
38
|
+
readonly onTertiary: import("lit").CSSResult;
|
|
39
|
+
/** Complementary container color against surface. */
|
|
40
|
+
readonly tertiaryContainer: import("lit").CSSResult;
|
|
41
|
+
/** Text and icons against tertiary container. */
|
|
42
|
+
readonly onTertiaryContainer: import("lit").CSSResult;
|
|
43
|
+
/** Complementary fills, texts, and icons that maintain the same tone in light and dark themes. */
|
|
44
|
+
readonly tertiaryFixed: import("lit").CSSResult;
|
|
45
|
+
/** Complementary fills, texts, and icons that maintain the same stronger tone in light and dark themes. */
|
|
46
|
+
readonly tertiaryFixedDim: import("lit").CSSResult;
|
|
47
|
+
/** Text and icons against fixed tertiary. */
|
|
48
|
+
readonly onTertiaryFixed: import("lit").CSSResult;
|
|
49
|
+
/** Lower-emphasis text and icons against fixed tertiary. */
|
|
50
|
+
readonly onTertiaryFixedVariant: import("lit").CSSResult;
|
|
51
|
+
/** Attention-grabbing color against surface for fills, icons, and text, indicating urgency. */
|
|
52
|
+
readonly error: import("lit").CSSResult;
|
|
53
|
+
/** Text and icons against error. */
|
|
54
|
+
readonly onError: import("lit").CSSResult;
|
|
55
|
+
/** Attention-grabbing fill color against surface. */
|
|
56
|
+
readonly errorContainer: import("lit").CSSResult;
|
|
57
|
+
/** Text and icons against error container. */
|
|
58
|
+
readonly onErrorContainer: import("lit").CSSResult;
|
|
59
|
+
/** Default color for backgrounds. */
|
|
60
|
+
readonly surface: import("lit").CSSResult;
|
|
61
|
+
/** Text and icons against any surface color. */
|
|
62
|
+
readonly onSurface: import("lit").CSSResult;
|
|
63
|
+
/** Lower-emphasis color for text and icons against any surface color. */
|
|
64
|
+
readonly onSurfaceVariant: import("lit").CSSResult;
|
|
65
|
+
/** Lowest-emphasis container color. */
|
|
66
|
+
readonly surfaceContainerLowest: import("lit").CSSResult;
|
|
67
|
+
/** Low-emphasis container color. */
|
|
68
|
+
readonly surfaceContainerLow: import("lit").CSSResult;
|
|
69
|
+
/** Default container color. */
|
|
70
|
+
readonly surfaceContainer: import("lit").CSSResult;
|
|
71
|
+
/** High-emphasis container color. */
|
|
72
|
+
readonly surfaceContainerHigh: import("lit").CSSResult;
|
|
73
|
+
/** Highest-emphasis container color. */
|
|
74
|
+
readonly surfaceContainerHighest: import("lit").CSSResult;
|
|
75
|
+
/** Dimmest surface color in light and dark themes. */
|
|
76
|
+
readonly surfaceDim: import("lit").CSSResult;
|
|
77
|
+
/** Brightest surface color in light and dark themes. */
|
|
78
|
+
readonly surfaceBright: import("lit").CSSResult;
|
|
79
|
+
/** Alternate surface color, can be used for active states. */
|
|
80
|
+
readonly surfaceVariant: import("lit").CSSResult;
|
|
81
|
+
/** Background fills for elements which contrast against surface. */
|
|
82
|
+
readonly inverseSurface: import("lit").CSSResult;
|
|
83
|
+
/** Text and icons against inverse surface. */
|
|
84
|
+
readonly inverseOnSurface: import("lit").CSSResult;
|
|
85
|
+
/** Primary text and icons against inverse surface. */
|
|
86
|
+
readonly inversePrimary: import("lit").CSSResult;
|
|
87
|
+
/** Important boundaries, such as a text field outline. */
|
|
88
|
+
readonly outline: import("lit").CSSResult;
|
|
89
|
+
/** Decorative elements, such as dividers. */
|
|
90
|
+
readonly outlineVariant: import("lit").CSSResult;
|
|
91
|
+
/** Elevation shadow color. */
|
|
92
|
+
readonly shadow: import("lit").CSSResult;
|
|
93
|
+
/** Backdrop which obscures underlying content. */
|
|
94
|
+
readonly scrim: import("lit").CSSResult;
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=ColorToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorToken.d.ts","sourceRoot":"","sources":["../../../../src/shared/tokens/ColorToken.ts"],"names":[],"mappings":"AAEA,wCAAwC;AACxC,eAAO,MAAM,UAAU;IACrB,6DAA6D;;IAG7D,sCAAsC;;IAGtC,+DAA+D;;IAG/D,gDAAgD;;IAGhD,kGAAkG;;IAGlG,2GAA2G;;IAG3G,4CAA4C;;IAG5C,2DAA2D;;IAG3D,6DAA6D;;IAG7D,wCAAwC;;IAGxC,2EAA2E;;IAG3E,kDAAkD;;IAGlD,mGAAmG;;IAGnG,4GAA4G;;IAG5G,8CAA8C;;IAG9C,6DAA6D;;IAG7D,4DAA4D;;IAG5D,uCAAuC;;IAGvC,qDAAqD;;IAGrD,iDAAiD;;IAGjD,kGAAkG;;IAGlG,2GAA2G;;IAG3G,6CAA6C;;IAG7C,4DAA4D;;IAG5D,+FAA+F;;IAG/F,oCAAoC;;IAGpC,qDAAqD;;IAGrD,8CAA8C;;IAG9C,qCAAqC;;IAGrC,gDAAgD;;IAGhD,yEAAyE;;IAGzE,uCAAuC;;IAGvC,oCAAoC;;IAGpC,+BAA+B;;IAG/B,qCAAqC;;IAGrC,wCAAwC;;IAGxC,sDAAsD;;IAGtD,wDAAwD;;IAGxD,8DAA8D;;IAG9D,oEAAoE;;IAGpE,8CAA8C;;IAG9C,sDAAsD;;IAGtD,0DAA0D;;IAG1D,6CAA6C;;IAG7C,8BAA8B;;IAG9B,kDAAkD;;CAE1C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSResult } from "lit";
|
|
2
|
+
/** Design tokens that control density. */
|
|
3
|
+
export declare const DensityToken: {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a CSS `calc` that calculates a dimension based on density.
|
|
6
|
+
* @param {number} minScale The minimum supported scale.
|
|
7
|
+
* @returns {CSSResult} A CSS `calc` used to calculate a dimension based on density.
|
|
8
|
+
*/
|
|
9
|
+
readonly calc: (minScale: number) => CSSResult;
|
|
10
|
+
/** Base density multiplier. */
|
|
11
|
+
readonly scale: CSSResult;
|
|
12
|
+
/** Spatial unit used to scale component dimensions based on density. */
|
|
13
|
+
readonly size: CSSResult;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=DensityToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DensityToken.d.ts","sourceRoot":"","sources":["../../../../src/shared/tokens/DensityToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,KAAK,CAAC;AAU3C,0CAA0C;AAC1C,eAAO,MAAM,YAAY;IAGvB;;;;OAIG;8BACY,MAAM,KAAG,SAAS;IAhBjC,+BAA+B;;IAG/B,wEAAwE;;CAgBhE,CAAC"}
|