@m3e/core 1.0.0-rc.2 → 1.0.0-rc.4
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/dist/a11y.js.map +1 -1
- package/dist/a11y.min.js.map +1 -1
- package/dist/css-custom-data.json +20 -0
- package/dist/custom-elements.json +263 -50
- package/dist/html-custom-data.json +22 -0
- package/dist/index.js +242 -15
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +43 -32
- package/dist/index.min.js.map +1 -1
- 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 +47 -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 +34 -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 +26 -0
- package/dist/src/shared/mixins/Labelled.d.ts.map +1 -0
- package/dist/src/shared/mixins/LinkButton.d.ts +46 -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 +87 -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 +77 -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 +49 -0
- package/dist/src/shared/primitives/PseudoCheckboxElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/PseudoRadioElement.d.ts +40 -0
- package/dist/src/shared/primitives/PseudoRadioElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/RippleElement.d.ts +109 -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 +61 -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 +46 -0
- package/dist/src/shared/primitives/SlideElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/StateLayerElement.d.ts +76 -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/TextHighlightElement.d.ts +81 -0
- package/dist/src/shared/primitives/TextHighlightElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/TextOverflowElement.d.ts +38 -0
- package/dist/src/shared/primitives/TextOverflowElement.d.ts.map +1 -0
- package/dist/src/shared/primitives/index.d.ts +14 -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/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component design tokens that control the `M3eElevationElement`.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const ElevationToken: {
|
|
6
|
+
readonly liftDuration: import("lit").CSSResult;
|
|
7
|
+
readonly liftEasing: import("lit").CSSResult;
|
|
8
|
+
readonly settleDuration: import("lit").CSSResult;
|
|
9
|
+
readonly settleEasing: import("lit").CSSResult;
|
|
10
|
+
readonly level: import("lit").CSSResult;
|
|
11
|
+
readonly hoverLevel: import("lit").CSSResult;
|
|
12
|
+
readonly focusLevel: import("lit").CSSResult;
|
|
13
|
+
readonly pressedLevel: import("lit").CSSResult;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=ElevationToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElevationToken.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/ElevationToken.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;CASjB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
+
declare const M3eFocusRingElement_base: import("../mixins/Constructor").Constructor<import("..").HtmlForMixin> & import("../mixins/Constructor").Constructor & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* A focus ring used to depict a strong focus indicator.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `m3e-focus-ring` component is an absolute positioned element used to provide a strong focus indicator.
|
|
8
|
+
* The parenting element must be a relative positioned focusable element and allow for overflow.
|
|
9
|
+
*
|
|
10
|
+
* The component can be attached to an interactive element using the `for` attribute or programmatically using the `attach` method.
|
|
11
|
+
* The focus ring is displayed when the interactive element receives visible focus and hidden when focus is lost.
|
|
12
|
+
* This can be disabled using the `disabled` attribute.
|
|
13
|
+
*
|
|
14
|
+
* Alternately, you can use the `show` and `hide` methods to programmatically control the focus ring.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* The following example illustrates attaching a focus ring to an interactive element. In this example, the parenting div
|
|
18
|
+
* has relative positioning and is given an `id` referenced by `m3e-focus-ring` using the `for` attribute. Note that `#myDiv`
|
|
19
|
+
* is not used when specifying the attached element's identifier. The `#` is inferred.
|
|
20
|
+
*
|
|
21
|
+
* ```html
|
|
22
|
+
* <div id="myDiv" tabindex="0" style="position: relative;">
|
|
23
|
+
* <m3e-focus-ring for="myDiv"></m3e-focus-ring>
|
|
24
|
+
* <div>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @tag m3e-focus-ring
|
|
28
|
+
*
|
|
29
|
+
* @attr disabled - Whether the focus events will not trigger the focus ring. Focus rings can be still controlled manually by using the `show` and `hide` methods.
|
|
30
|
+
* @attr inward - Whether the focus ring animates inward instead of outward.
|
|
31
|
+
*
|
|
32
|
+
* @cssprop --m3e-focus-ring-color - The color of the focus ring.
|
|
33
|
+
* @cssprop --m3e-focus-ring-duration - The duration of the focus ring animation.
|
|
34
|
+
* @cssprop --m3e-focus-ring-growth-factor - The factor by which the focus ring grows.
|
|
35
|
+
* @cssprop --m3e-focus-ring-thickness - The thickness of the focus ring.
|
|
36
|
+
* @cssprop --m3e-focus-ring-visibility - The visibility of the focus ring.
|
|
37
|
+
*/
|
|
38
|
+
export declare class M3eFocusRingElement extends M3eFocusRingElement_base {
|
|
39
|
+
#private;
|
|
40
|
+
/** The styles of the element. */
|
|
41
|
+
static styles: CSSResultGroup;
|
|
42
|
+
/** @private */ private readonly _outline?;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the focus ring animates inward instead of outward.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
inward: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the focus events will not trigger the focus ring.
|
|
50
|
+
* Focus rings can be still controlled manually by using the `show` and `hide` methods.
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
/** Launches a manual focus ring. */
|
|
55
|
+
show(): void;
|
|
56
|
+
/** Hides the focus ring. */
|
|
57
|
+
hide(): 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 render(): unknown;
|
|
68
|
+
/** @inheritdoc */
|
|
69
|
+
protected updated(_changedProperties: PropertyValues<this>): void;
|
|
70
|
+
}
|
|
71
|
+
declare global {
|
|
72
|
+
interface HTMLElementTagNameMap {
|
|
73
|
+
"m3e-focus-ring": M3eFocusRingElement;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=FocusRingElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusRingElement.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/FocusRingElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;;AAQ5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBACa,mBAAoB,SAAQ,wBAAiC;;IACxE,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CA8DpC;IAQF,eAAe,CAAoB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAc;IAE3E;;;OAGG;IACyC,MAAM,UAAS;IAE3D;;;;OAIG;IACyC,QAAQ,UAAS;IAE7D,oCAAoC;IACpC,IAAI,IAAI,IAAI;IAIZ,4BAA4B;IAC5B,IAAI,IAAI,IAAI;IAIZ,kBAAkB;IACT,MAAM,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAK3C,kBAAkB;IACT,MAAM,IAAI,IAAI;IAOvB,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;IACT,oBAAoB,IAAI,IAAI;IAKrC,kBAAkB;cACC,MAAM,IAAI,OAAO;IAIpC,kBAAkB;cACC,OAAO,CAAC,kBAAkB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;CAkB3E;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,mBAAmB,CAAC;KACvC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component design tokens that control the `M3eFocusRingElement`.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const FocusRingToken: {
|
|
6
|
+
/** The color of the focus ring. */
|
|
7
|
+
readonly color: import("lit").CSSResult;
|
|
8
|
+
/** The duration of the focus ring animation. */
|
|
9
|
+
readonly duration: import("lit").CSSResult;
|
|
10
|
+
/** The thickness of the focus ring. */
|
|
11
|
+
readonly thickness: import("lit").CSSResult;
|
|
12
|
+
/** The visibility of the focus ring. */
|
|
13
|
+
readonly visibility: import("lit").CSSResult;
|
|
14
|
+
/** The factor by which the focus ring grows. */
|
|
15
|
+
readonly growthFactor: import("lit").CSSResult;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=FocusRingToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusRingToken.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/FocusRingToken.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,cAAc;IACzB,mCAAmC;;IAGnC,gDAAgD;;IAGhD,uCAAuC;;IAGvC,wCAAwC;;IAGxC,gDAAgD;;CAExC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
declare const M3ePseudoCheckboxElement_base: import("../mixins/Constructor").Constructor<import("..").CheckedIndeterminateMixin> & import("../mixins/Constructor").Constructor<import("..").DisabledMixin> & import("../mixins/Constructor").Constructor & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* An element which looks like a checkbox.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `m3e-pseudo-checkbox` component is a pseudo-checkbox supporting checked, indeterminate, and disabled
|
|
8
|
+
* states. It is customizable via CSS properties for expressive, accessible UI design.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* The following example illustrates how to render a checked pseudo-checkbox.
|
|
12
|
+
* ```html
|
|
13
|
+
* <m3e-pseudo-checkbox checked></m3e-pseudo-checkbox>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @tag m3e-pseudo-checkbox
|
|
17
|
+
*
|
|
18
|
+
* @attr checked - A value indicating whether the element is checked.
|
|
19
|
+
* @attr disabled - A value indicating whether the element is disabled.
|
|
20
|
+
* @attr indeterminate - A value indicating whether the element's checked state is indeterminate.
|
|
21
|
+
*
|
|
22
|
+
* @cssprop --m3e-checkbox-icon-size - Size of the checkbox icon.
|
|
23
|
+
* @cssprop --m3e-checkbox-container-shape - Border radius of the checkbox container.
|
|
24
|
+
* @cssprop --m3e-checkbox-unselected-outline-thickness - Outline thickness for unselected state.
|
|
25
|
+
* @cssprop --m3e-checkbox-unselected-outline-color - Outline color for unselected state.
|
|
26
|
+
* @cssprop --m3e-checkbox-selected-container-color - Background color for selected state.
|
|
27
|
+
* @cssprop --m3e-checkbox-selected-icon-color - Icon color for selected state.
|
|
28
|
+
* @cssprop --m3e-checkbox-unselected-disabled-outline-color - Outline color for unselected disabled state.
|
|
29
|
+
* @cssprop --m3e-checkbox-unselected-disabled-outline-opacity - Outline opacity for unselected disabled state.
|
|
30
|
+
* @cssprop --m3e-checkbox-selected-disabled-container-color - Background color for selected disabled state.
|
|
31
|
+
* @cssprop --m3e-checkbox-selected-disabled-container-opacity - Background opacity for selected disabled state.
|
|
32
|
+
* @cssprop --m3e-checkbox-selected-disabled-icon-color - Icon color for selected disabled state.
|
|
33
|
+
* @cssprop --m3e-checkbox-selected-disabled-icon-opacity - Icon opacity for selected disabled state.
|
|
34
|
+
*/
|
|
35
|
+
export declare class M3ePseudoCheckboxElement extends M3ePseudoCheckboxElement_base {
|
|
36
|
+
/** The styles of the element. */
|
|
37
|
+
static styles: CSSResultGroup;
|
|
38
|
+
/** @inheritdoc */
|
|
39
|
+
connectedCallback(): void;
|
|
40
|
+
/** @inheritdoc */
|
|
41
|
+
protected render(): unknown;
|
|
42
|
+
}
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
"m3e-pseudo-checkbox": M3ePseudoCheckboxElement;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=PseudoCheckboxElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PseudoCheckboxElement.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/PseudoCheckboxElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBACa,wBAAyB,SAAQ,6BAAwD;IACpG,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CA6CpC;IAEF,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;cACC,MAAM,IAAI,OAAO;CAarC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,wBAAwB,CAAC;KACjD;CACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
declare const M3ePseudoRadioElement_base: import("../mixins/Constructor").Constructor<import("..").CheckedMixin> & import("../mixins/Constructor").Constructor<import("..").DisabledMixin> & import("../mixins/Constructor").Constructor & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* An element which looks like a radio button.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `m3e-pseudo-radio` component is a pseudo-radio supporting checked and disabled
|
|
8
|
+
* states. It is customizable via CSS properties for expressive, accessible UI design.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* The following example illustrates how to render a checked pseudo-radio.
|
|
12
|
+
* ```html
|
|
13
|
+
* <m3e-pseudo-radio checked></m3e-pseudo-radio>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @tag m3e-pseudo-radio
|
|
17
|
+
*
|
|
18
|
+
* @attr checked - A value indicating whether the element is checked.
|
|
19
|
+
* @attr disabled - A value indicating whether the element is disabled.
|
|
20
|
+
*
|
|
21
|
+
* @cssprop --m3e-radio-icon-size - Size of the radio icon.
|
|
22
|
+
* @cssprop --m3e-radio-unselected-icon-color - Color of the unselected radio icon.
|
|
23
|
+
* @cssprop --m3e-radio-selected-icon-color - Color of the selected radio icon.
|
|
24
|
+
* @cssprop --m3e-radio-disabled-icon-color - Color of the disabled radio icon.
|
|
25
|
+
*/
|
|
26
|
+
export declare class M3ePseudoRadioElement extends M3ePseudoRadioElement_base {
|
|
27
|
+
/** The styles of the element. */
|
|
28
|
+
static styles: CSSResultGroup;
|
|
29
|
+
/** @inheritdoc */
|
|
30
|
+
connectedCallback(): void;
|
|
31
|
+
/** @inheritdoc */
|
|
32
|
+
protected render(): unknown;
|
|
33
|
+
}
|
|
34
|
+
declare global {
|
|
35
|
+
interface HTMLElementTagNameMap {
|
|
36
|
+
"m3e-pseudo-radio": M3ePseudoRadioElement;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=PseudoRadioElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PseudoRadioElement.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/PseudoRadioElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AAM5D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBACa,qBAAsB,SAAQ,0BAA2C;IACpF,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAwBpC;IAEF,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;cACC,MAAM,IAAI,OAAO;CAUrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
+
declare const M3eRippleElement_base: import("../mixins/Constructor").Constructor<import("..").HtmlForMixin> & import("../mixins/Constructor").Constructor & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Connects user input to screen reactions using ripples.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `m3e-ripple` component is an absolute positioned element used to depict a ripple.
|
|
8
|
+
* The parenting element must be a relative positioned element.
|
|
9
|
+
*
|
|
10
|
+
* The component can be attached to an interactive element using the `for` attribute or programmatically using the `attach` method.
|
|
11
|
+
* The ripple is displayed when the interactive element is pressed and hidden when released. This can be disabled using the `disabled` attribute.
|
|
12
|
+
*
|
|
13
|
+
* The pressed state actives either using both pointer and keyboard events. For keyboard events, `SPACE` and `ENTER` activate a ripple.
|
|
14
|
+
* You can disabled whether the `ENTER` key actives a ripple using the `disable-enter` attribute.
|
|
15
|
+
*
|
|
16
|
+
* Alternately, you can use the `show` and `hide` methods to programmatically control the ripple.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* The following example illustrates attaching a ripple to an interactive element. In this example, the parenting div
|
|
20
|
+
* has relative positioning and is given an `id` referenced by `m3e-ripple` using the `for` attribute. Note that `#myDiv`
|
|
21
|
+
* is not used when specifying the attached element's identifier. The `#` is inferred.
|
|
22
|
+
*
|
|
23
|
+
* ```html
|
|
24
|
+
* <div id="myDiv" tabindex="0" style="position: relative;">
|
|
25
|
+
* <m3e-ripple for="myDiv"></m3e-ripple>
|
|
26
|
+
* <div>
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @tag m3e-ripple
|
|
30
|
+
*
|
|
31
|
+
* @attr centered - Whether the ripple always originates from the center of the element's bounds, rather than originating from the location of the click event.
|
|
32
|
+
* @attr disable-enter - Whether the ripple is disabled when the enter key is pressed.
|
|
33
|
+
* @attr disabled - Whether click events will not trigger the ripple. Ripples can be still controlled manually by using the `show` and 'hide' methods.
|
|
34
|
+
* @attr for - The identifier of the interactive control to which this element is attached.
|
|
35
|
+
* @attr radius - The radius, in pixels, of the ripple.
|
|
36
|
+
* @attr unbounded - Whether the ripple is visible outside the element's bounds.
|
|
37
|
+
*
|
|
38
|
+
* @cssprop --m3e-ripple-color - The color of the ripple.
|
|
39
|
+
* @cssprop --m3e-ripple-enter-duration - The duration for the enter animation (expansion from point of contact).
|
|
40
|
+
* @cssprop --m3e-ripple-exit-duration - The duration for the exit animation (fade-out).
|
|
41
|
+
* @cssprop --m3e-ripple-opacity - The opacity of the ripple.
|
|
42
|
+
* @cssprop --m3e-ripple-scale-factor - The factor by which to scale the ripple.
|
|
43
|
+
* @cssprop --m3e-ripple-shape - The shape of the ripple.
|
|
44
|
+
*/
|
|
45
|
+
export declare class M3eRippleElement extends M3eRippleElement_base {
|
|
46
|
+
#private;
|
|
47
|
+
/** The styles of the element. */
|
|
48
|
+
static styles: CSSResultGroup;
|
|
49
|
+
/**
|
|
50
|
+
* Whether click events will not trigger the ripple.
|
|
51
|
+
* Ripples can be still controlled manually by using the `show` and 'hide' methods.
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the ripple is disabled when the enter key is pressed.
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
disableEnter: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the ripple always originates from the center of the element's bounds, rather
|
|
62
|
+
* than originating from the location of the click event.
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
centered: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the ripple is visible outside the element's bounds.
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
unbounded: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The radius, in pixels, of the ripple.
|
|
73
|
+
* @default null
|
|
74
|
+
*/
|
|
75
|
+
radius: number | null;
|
|
76
|
+
/**
|
|
77
|
+
* The element that triggers the ripple when click events are received.
|
|
78
|
+
* @default null
|
|
79
|
+
*/
|
|
80
|
+
trigger: string | HTMLElement | null;
|
|
81
|
+
/** Whether the ripple is currently visible to the user. */
|
|
82
|
+
get visible(): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Launches a manual ripple.
|
|
85
|
+
* @param {number} x The x-coordinate, relative to the viewport, at which to present the ripple.
|
|
86
|
+
* @param {number} y The y-coordinate, relative to the viewport, at which to present the ripple.
|
|
87
|
+
* @param {boolean} [persistent=false] Whether the ripple will persist until hidden.
|
|
88
|
+
*/
|
|
89
|
+
show(x: number, y: number, persistent?: boolean): void;
|
|
90
|
+
/** Manually hides the ripple. */
|
|
91
|
+
hide(): void;
|
|
92
|
+
/** @inheritdoc */
|
|
93
|
+
attach(control: HTMLElement): void;
|
|
94
|
+
/** @inheritdoc */
|
|
95
|
+
detach(): void;
|
|
96
|
+
/** @inheritdoc */
|
|
97
|
+
connectedCallback(): void;
|
|
98
|
+
/** @inheritdoc */
|
|
99
|
+
disconnectedCallback(): void;
|
|
100
|
+
/** @inheritdoc */
|
|
101
|
+
protected updated(_changedProperties: PropertyValues<this>): void;
|
|
102
|
+
}
|
|
103
|
+
declare global {
|
|
104
|
+
interface HTMLElementTagNameMap {
|
|
105
|
+
"m3e-ripple": M3eRippleElement;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export {};
|
|
109
|
+
//# sourceMappingURL=RippleElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RippleElement.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/RippleElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;;AAStE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBACa,gBAAiB,SAAQ,qBAAiC;;IACrE,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAmEpC;IAUF;;;;OAIG;IACyC,QAAQ,UAAS;IAE7D;;;OAGG;IACqE,YAAY,UAAS;IAE7F;;;;OAIG;IACyC,QAAQ,UAAS;IAE7D;;;OAGG;IACyC,SAAS,UAAS;IAE9D;;;OAGG;IACyB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEzD;;;OAGG;IACS,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAQ;IAExD,2DAA2D;IAC3D,IAAI,OAAO,YAEV;IAED;;;;;OAKG;IACH,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,GAAE,OAAe,GAAG,IAAI;IAqC7D,iCAAiC;IACjC,IAAI,IAAI,IAAI;IAIZ,kBAAkB;IACT,MAAM,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAK3C,kBAAkB;IACT,MAAM,IAAI,IAAI;IAOvB,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;IACT,oBAAoB,IAAI,IAAI;IAKrC,kBAAkB;cACC,OAAO,CAAC,kBAAkB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;CAiC3E;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component design tokens that control the `M3eRippleElement`.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const RippleToken: {
|
|
6
|
+
readonly color: import("lit").CSSResult;
|
|
7
|
+
readonly opacity: import("lit").CSSResult;
|
|
8
|
+
readonly enterDuration: import("lit").CSSResult;
|
|
9
|
+
readonly exitDuration: import("lit").CSSResult;
|
|
10
|
+
readonly scaleFactor: import("lit").CSSResult;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=RippleToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RippleToken.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/RippleToken.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
+
import { ScrollDividers } from "./ScrollDividers";
|
|
3
|
+
/**
|
|
4
|
+
* A vertically oriented content container which presents dividers above and below content when scrolled.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `m3e-scroll-container` component provides a vertically oriented scrollable container with dynamic
|
|
8
|
+
* dividers above and below content. Designed according to Material 3 principles, it supports custom scrollbar
|
|
9
|
+
* thickness, divider styling, and focus ring theming via CSS custom properties.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* This example shows a scrollable container with dividers above and below the content, and thin scrollbars enabled.
|
|
13
|
+
* ```html
|
|
14
|
+
* <m3e-scroll-container dividers="above-below" thin>
|
|
15
|
+
* <div>Scrollable content goes here</div>
|
|
16
|
+
* </m3e-scroll-container>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @tag m3e-scroll-container
|
|
20
|
+
*
|
|
21
|
+
* @slot - Renders the scrollable content.
|
|
22
|
+
*
|
|
23
|
+
* @attr dividers - The dividers used to separate scrollable content.
|
|
24
|
+
* @attr thin - Whether to present thin scrollbars.
|
|
25
|
+
*
|
|
26
|
+
* @cssprop --m3e-divider-thickness - Thickness of the divider lines above and below content.
|
|
27
|
+
* @cssprop --m3e-divider-color - Color of the divider lines when visible.
|
|
28
|
+
* @cssprop --m3e-focus-ring-color - Color of the focus ring outline.
|
|
29
|
+
* @cssprop --m3e-focus-ring-thickness - Thickness of the focus ring outline.
|
|
30
|
+
* @cssprop --m3e-focus-ring-factor - Animation factor for focus ring thickness.
|
|
31
|
+
* @cssprop --m3e-focus-ring-duration - Duration of the focus ring animation.
|
|
32
|
+
*/
|
|
33
|
+
export declare class M3eScrollContainerElement extends LitElement {
|
|
34
|
+
#private;
|
|
35
|
+
/** The styles of the element. */
|
|
36
|
+
static styles: CSSResultGroup;
|
|
37
|
+
/**
|
|
38
|
+
* The dividers used to separate scrollable content.
|
|
39
|
+
* @default "above-below"
|
|
40
|
+
*/
|
|
41
|
+
dividers: ScrollDividers;
|
|
42
|
+
/**
|
|
43
|
+
* Whether to present thin scrollbars.
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
thin: boolean;
|
|
47
|
+
/** @inheritdoc */
|
|
48
|
+
disconnectedCallback(): void;
|
|
49
|
+
/** @inheritdoc */
|
|
50
|
+
protected update(changedProperties: PropertyValues<this>): void;
|
|
51
|
+
/** @inheritdoc */
|
|
52
|
+
protected render(): unknown;
|
|
53
|
+
/** @private */
|
|
54
|
+
private _updateScroll;
|
|
55
|
+
}
|
|
56
|
+
declare global {
|
|
57
|
+
interface HTMLElementTagNameMap {
|
|
58
|
+
"m3e-scroll-container": M3eScrollContainerElement;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=ScrollContainerElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollContainerElement.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/ScrollContainerElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAM5E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBACa,yBAA0B,SAAQ,UAAU;;IACvD,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAmDpC;IAIF;;;OAGG;IACS,QAAQ,EAAE,cAAc,CAAiB;IAErD;;;OAGG;IACyC,IAAI,UAAS;IAEzD,kBAAkB;IACT,oBAAoB,IAAI,IAAI;IAKrC,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAWxE,kBAAkB;cACC,MAAM,IAAI,OAAO;IAIpC,eAAe;IAEf,OAAO,CAAC,aAAa;CAStB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,yBAAyB,CAAC;KACnD;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollDividers.d.ts","sourceRoot":"","sources":["../../../../src/shared/primitives/ScrollDividers.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* A carousel-like container used to horizontally cycle through slotted items.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* The following example illustrates the use of `m3e-slide` to cycle through content.
|
|
7
|
+
* In this example, `selected-index` is set to `1` so that "Content at index 1" is presented
|
|
8
|
+
* by the component.
|
|
9
|
+
* ```html
|
|
10
|
+
* <m3e-slide selected-index="1">
|
|
11
|
+
* <div>Content at index 0</div>
|
|
12
|
+
* <div>Content at index 1</div>
|
|
13
|
+
* <div>Content at index 2</div>
|
|
14
|
+
* <div>Content at index 3</div>
|
|
15
|
+
* </m3e-slide>
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @tag m3e-slide
|
|
19
|
+
*
|
|
20
|
+
* @attr selected-index - The zero-based index of the visible item.
|
|
21
|
+
*
|
|
22
|
+
* @cssprop --m3e-slide-animation-duration - The duration of transitions between slotted items.
|
|
23
|
+
*/
|
|
24
|
+
export declare class M3eSlide extends LitElement {
|
|
25
|
+
#private;
|
|
26
|
+
/** The styles of the element. */
|
|
27
|
+
static styles: CSSResultGroup;
|
|
28
|
+
/** @private */ private readonly _items;
|
|
29
|
+
/**
|
|
30
|
+
* The zero-based index of the visible item.
|
|
31
|
+
* @default null
|
|
32
|
+
*/
|
|
33
|
+
selectedIndex: number | null;
|
|
34
|
+
/** @inheritdoc */
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
/** @inheritdoc */
|
|
37
|
+
protected update(changedProperties: PropertyValues<this>): void;
|
|
38
|
+
/** @inheritdoc */
|
|
39
|
+
protected render(): unknown;
|
|
40
|
+
}
|
|
41
|
+
declare global {
|
|
42
|
+
interface HTMLElementTagNameMap {
|
|
43
|
+
"m3e-slide": M3eSlide;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# 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;AAKvF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,QAAS,SAAQ,UAAU;;IACtC,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,76 @@
|
|
|
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
|
+
* Provides focus and hover state layer treatment for an interactive element.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `m3e-state-layer` component is an absolute positioned element used to depict hover and focus overlays.
|
|
8
|
+
* The parenting element must be a relative positioned element.
|
|
9
|
+
*
|
|
10
|
+
* This element can be attached to an interactive element using the `for` attribute or programmatically using the `attach` method.
|
|
11
|
+
* The state layer is displayed when the interactive element is either hovered or focused. This can be disabled using
|
|
12
|
+
* the `disabled` attribute.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* The following example illustrates attaching a state layer to an interactive element. In this example, the parenting div
|
|
16
|
+
* has relative positioning and is given an `id` referenced by `m3e-state-layer` using the `for` attribute. Note that `#myDiv`
|
|
17
|
+
* is not used when specifying the attached element's identifier. The `#` is inferred.
|
|
18
|
+
*
|
|
19
|
+
* ```html
|
|
20
|
+
* <div id="myDiv" tabindex="0" style="position: relative;">
|
|
21
|
+
* <m3e-state-layer for="myDiv"></m3e-state-layer>
|
|
22
|
+
* <div>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @tag m3e-state-layer
|
|
26
|
+
*
|
|
27
|
+
* @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.
|
|
28
|
+
*
|
|
29
|
+
* @cssprop --m3e-state-layer-duration - Duration of state layer changes.
|
|
30
|
+
* @cssprop --m3e-state-layer-easing - Easing curve of state layer changes.
|
|
31
|
+
* @cssprop --m3e-state-layer-focus-color - Color on hover.
|
|
32
|
+
* @cssprop --m3e-state-layer-focus-opacity - Opacity on focus.
|
|
33
|
+
* @cssprop --m3e-state-layer-hover-color - Color on hover.
|
|
34
|
+
* @cssprop --m3e-state-layer-hover-opacity - Opacity on hover.
|
|
35
|
+
*/
|
|
36
|
+
export declare class M3eStateLayerElement extends M3eStateLayerElement_base {
|
|
37
|
+
#private;
|
|
38
|
+
/** The styles of the element. */
|
|
39
|
+
static styles: CSSResultGroup;
|
|
40
|
+
/** @private */ private readonly _layer?;
|
|
41
|
+
/**
|
|
42
|
+
* Whether hover and focus event will not trigger the state layer. State layers can still
|
|
43
|
+
* be controlled manually using the `show` and `hide` methods.
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Launches a manual state layer.
|
|
49
|
+
* @param {"hover" | "focused"} state The state of the layer to show.
|
|
50
|
+
*/
|
|
51
|
+
show(state: "hover" | "focused"): void;
|
|
52
|
+
/**
|
|
53
|
+
* Hides the state layer.
|
|
54
|
+
* @param {"hover" | "focused"} state The state of the layer to hide.
|
|
55
|
+
*/
|
|
56
|
+
hide(state: "hover" | "focused"): void;
|
|
57
|
+
/** @inheritdoc */
|
|
58
|
+
attach(control: HTMLElement): void;
|
|
59
|
+
/** @inheritdoc */
|
|
60
|
+
detach(): void;
|
|
61
|
+
/** @inheritdoc */
|
|
62
|
+
connectedCallback(): void;
|
|
63
|
+
/** @inheritdoc */
|
|
64
|
+
disconnectedCallback(): void;
|
|
65
|
+
/** @inheritdoc */
|
|
66
|
+
protected updated(_changedProperties: PropertyValues<this>): void;
|
|
67
|
+
/** @inheritdoc */
|
|
68
|
+
protected render(): unknown;
|
|
69
|
+
}
|
|
70
|
+
declare global {
|
|
71
|
+
interface HTMLElementTagNameMap {
|
|
72
|
+
"m3e-state-layer": M3eStateLayerElement;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
76
|
+
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;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"}
|