@ds-gn/ui 0.0.0-stage → 0.5.0
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/README.md +155 -2
- package/THIRD_PARTY_NOTICES +167 -0
- package/assets/logo-full-dark.svg +4 -0
- package/assets/logo-full.svg +4 -0
- package/assets/logo-mark.svg +3 -0
- package/custom-elements.json +4696 -0
- package/dist/common/Base/Base.d.ts +22 -0
- package/dist/common/controllers/AuroraMeshController.d.ts +68 -0
- package/dist/common/controllers/AutoRotateController.d.ts +38 -0
- package/dist/common/controllers/BreakpointController.d.ts +30 -0
- package/dist/common/controllers/LayoutChangeController.d.ts +28 -0
- package/dist/common/controllers/WordCycleController.d.ts +36 -0
- package/dist/common/helpers/aurora-mesh.d.ts +11 -0
- package/dist/common/helpers/define-element.d.ts +14 -0
- package/dist/common/helpers/enum-creator.d.ts +2 -0
- package/dist/common/helpers/enum-validator.d.ts +1 -0
- package/dist/common/helpers/layout-change.d.ts +39 -0
- package/dist/common/helpers/layout-change.testing.d.ts +15 -0
- package/dist/common/helpers/logo.string.d.ts +23 -0
- package/dist/common/helpers/logo.string.js +43 -0
- package/dist/common/helpers/logo.utils.d.ts +8 -0
- package/dist/common/helpers/motion.d.ts +9 -0
- package/dist/common/helpers/story.utils.d.ts +32 -0
- package/dist/common/props/surface/surface.props.d.ts +6 -0
- package/dist/components/Background/src/Background.d.ts +44 -0
- package/dist/components/Background/src/Background.js +576 -0
- package/dist/components/Background/src/Background.props.d.ts +20 -0
- package/dist/components/Background/src/Background.props.js +47 -0
- package/dist/components/Background/src/Background.styles.d.ts +3 -0
- package/dist/components/Badge/src/Badge.d.ts +28 -0
- package/dist/components/Badge/src/Badge.js +429 -0
- package/dist/components/Badge/src/Badge.playground.d.ts +2 -0
- package/dist/components/Badge/src/Badge.props.d.ts +16 -0
- package/dist/components/Badge/src/Badge.props.js +44 -0
- package/dist/components/Badge/src/Badge.styles.d.ts +2 -0
- package/dist/components/Button/src/Button.d.ts +138 -0
- package/dist/components/Button/src/Button.js +1102 -0
- package/dist/components/Button/src/Button.playground.d.ts +2 -0
- package/dist/components/Button/src/Button.props.d.ts +47 -0
- package/dist/components/Button/src/Button.props.js +79 -0
- package/dist/components/Button/src/Button.styles.d.ts +11 -0
- package/dist/components/Card/src/Card.d.ts +39 -0
- package/dist/components/Card/src/Card.js +564 -0
- package/dist/components/Card/src/Card.playground.d.ts +2 -0
- package/dist/components/Card/src/Card.props.d.ts +22 -0
- package/dist/components/Card/src/Card.props.js +42 -0
- package/dist/components/Card/src/Card.styles.d.ts +11 -0
- package/dist/components/CodeBlock/src/CodeBlock.d.ts +18 -0
- package/dist/components/CodeBlock/src/CodeBlock.js +372 -0
- package/dist/components/CodeBlock/src/CodeBlock.props.d.ts +1 -0
- package/dist/components/CodeBlock/src/CodeBlock.props.js +5 -0
- package/dist/components/CodeBlock/src/CodeBlock.styles.d.ts +9 -0
- package/dist/components/Container/src/Container.d.ts +26 -0
- package/dist/components/Container/src/Container.js +354 -0
- package/dist/components/Container/src/Container.props.d.ts +20 -0
- package/dist/components/Container/src/Container.props.js +49 -0
- package/dist/components/Container/src/Container.styles.d.ts +2 -0
- package/dist/components/Divider/src/Divider.d.ts +23 -0
- package/dist/components/Divider/src/Divider.js +250 -0
- package/dist/components/Divider/src/Divider.props.d.ts +7 -0
- package/dist/components/Divider/src/Divider.props.js +34 -0
- package/dist/components/Divider/src/Divider.styles.d.ts +2 -0
- package/dist/components/FeatureItem/src/FeatureItem.d.ts +30 -0
- package/dist/components/FeatureItem/src/FeatureItem.js +368 -0
- package/dist/components/FeatureItem/src/FeatureItem.props.d.ts +10 -0
- package/dist/components/FeatureItem/src/FeatureItem.props.js +37 -0
- package/dist/components/FeatureItem/src/FeatureItem.styles.d.ts +3 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.d.ts +48 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.js +1333 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.props.d.ts +27 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.props.js +80 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.styles.d.ts +35 -0
- package/dist/components/Footer/src/Footer.d.ts +39 -0
- package/dist/components/Footer/src/Footer.js +361 -0
- package/dist/components/Footer/src/Footer.styles.d.ts +6 -0
- package/dist/components/FormBlock/src/FormBlock.d.ts +40 -0
- package/dist/components/FormBlock/src/FormBlock.js +476 -0
- package/dist/components/FormBlock/src/FormBlock.props.d.ts +5 -0
- package/dist/components/FormBlock/src/FormBlock.props.js +8 -0
- package/dist/components/FormBlock/src/FormBlock.styles.d.ts +6 -0
- package/dist/components/Grid/src/Grid.d.ts +35 -0
- package/dist/components/Grid/src/Grid.js +381 -0
- package/dist/components/Grid/src/Grid.props.d.ts +28 -0
- package/dist/components/Grid/src/Grid.props.js +57 -0
- package/dist/components/Grid/src/Grid.styles.d.ts +3 -0
- package/dist/components/Heading/src/Heading.d.ts +26 -0
- package/dist/components/Heading/src/Heading.js +755 -0
- package/dist/components/Heading/src/Heading.playground.d.ts +2 -0
- package/dist/components/Heading/src/Heading.props.d.ts +19 -0
- package/dist/components/Heading/src/Heading.props.js +47 -0
- package/dist/components/Heading/src/Heading.styles.d.ts +4 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.d.ts +28 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.js +288 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.playground.d.ts +2 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.props.d.ts +6 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.props.js +33 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.styles.d.ts +2 -0
- package/dist/components/Hero/src/Hero.d.ts +42 -0
- package/dist/components/Hero/src/Hero.js +506 -0
- package/dist/components/Hero/src/Hero.props.d.ts +22 -0
- package/dist/components/Hero/src/Hero.props.js +51 -0
- package/dist/components/Hero/src/Hero.styles.d.ts +10 -0
- package/dist/components/Icon/src/Icon.d.ts +67 -0
- package/dist/components/Icon/src/Icon.js +303 -0
- package/dist/components/Icon/src/Icon.props.d.ts +8 -0
- package/dist/components/Icon/src/Icon.props.js +35 -0
- package/dist/components/Icon/src/Icon.styles.d.ts +3 -0
- package/dist/components/Icon/src/icons/arrow-left.d.ts +1 -0
- package/dist/components/Icon/src/icons/arrow-left.js +6 -0
- package/dist/components/Icon/src/icons/arrow-right.d.ts +1 -0
- package/dist/components/Icon/src/icons/arrow-right.js +6 -0
- package/dist/components/Icon/src/icons/calendar.d.ts +1 -0
- package/dist/components/Icon/src/icons/calendar.js +6 -0
- package/dist/components/Icon/src/icons/check.d.ts +1 -0
- package/dist/components/Icon/src/icons/check.js +6 -0
- package/dist/components/Icon/src/icons/chevron-down.d.ts +1 -0
- package/dist/components/Icon/src/icons/chevron-down.js +6 -0
- package/dist/components/Icon/src/icons/chevron-left.d.ts +1 -0
- package/dist/components/Icon/src/icons/chevron-left.js +6 -0
- package/dist/components/Icon/src/icons/chevron-right.d.ts +1 -0
- package/dist/components/Icon/src/icons/chevron-right.js +6 -0
- package/dist/components/Icon/src/icons/chevron-up.d.ts +1 -0
- package/dist/components/Icon/src/icons/chevron-up.js +6 -0
- package/dist/components/Icon/src/icons/circle-alert.d.ts +1 -0
- package/dist/components/Icon/src/icons/circle-alert.js +6 -0
- package/dist/components/Icon/src/icons/circle-check.d.ts +1 -0
- package/dist/components/Icon/src/icons/circle-check.js +6 -0
- package/dist/components/Icon/src/icons/circle-x.d.ts +1 -0
- package/dist/components/Icon/src/icons/circle-x.js +6 -0
- package/dist/components/Icon/src/icons/copy.d.ts +1 -0
- package/dist/components/Icon/src/icons/copy.js +6 -0
- package/dist/components/Icon/src/icons/download.d.ts +1 -0
- package/dist/components/Icon/src/icons/download.js +6 -0
- package/dist/components/Icon/src/icons/ellipsis-vertical.d.ts +1 -0
- package/dist/components/Icon/src/icons/ellipsis-vertical.js +6 -0
- package/dist/components/Icon/src/icons/ellipsis.d.ts +1 -0
- package/dist/components/Icon/src/icons/ellipsis.js +6 -0
- package/dist/components/Icon/src/icons/external-link.d.ts +1 -0
- package/dist/components/Icon/src/icons/external-link.js +6 -0
- package/dist/components/Icon/src/icons/eye-off.d.ts +1 -0
- package/dist/components/Icon/src/icons/eye-off.js +6 -0
- package/dist/components/Icon/src/icons/eye.d.ts +1 -0
- package/dist/components/Icon/src/icons/eye.js +6 -0
- package/dist/components/Icon/src/icons/icon-names.d.ts +2 -0
- package/dist/components/Icon/src/icons/icon-names.js +36 -0
- package/dist/components/Icon/src/icons/index.d.ts +34 -0
- package/dist/components/Icon/src/icons/index.js +35 -0
- package/dist/components/Icon/src/icons/info.d.ts +1 -0
- package/dist/components/Icon/src/icons/info.js +6 -0
- package/dist/components/Icon/src/icons/loader.d.ts +1 -0
- package/dist/components/Icon/src/icons/loader.js +6 -0
- package/dist/components/Icon/src/icons/mail.d.ts +1 -0
- package/dist/components/Icon/src/icons/mail.js +6 -0
- package/dist/components/Icon/src/icons/menu.d.ts +1 -0
- package/dist/components/Icon/src/icons/menu.js +6 -0
- package/dist/components/Icon/src/icons/minus.d.ts +1 -0
- package/dist/components/Icon/src/icons/minus.js +6 -0
- package/dist/components/Icon/src/icons/pencil.d.ts +1 -0
- package/dist/components/Icon/src/icons/pencil.js +6 -0
- package/dist/components/Icon/src/icons/plus.d.ts +1 -0
- package/dist/components/Icon/src/icons/plus.js +6 -0
- package/dist/components/Icon/src/icons/search.d.ts +1 -0
- package/dist/components/Icon/src/icons/search.js +6 -0
- package/dist/components/Icon/src/icons/settings.d.ts +1 -0
- package/dist/components/Icon/src/icons/settings.js +6 -0
- package/dist/components/Icon/src/icons/trash-2.d.ts +1 -0
- package/dist/components/Icon/src/icons/trash-2.js +6 -0
- package/dist/components/Icon/src/icons/triangle-alert.d.ts +1 -0
- package/dist/components/Icon/src/icons/triangle-alert.js +6 -0
- package/dist/components/Icon/src/icons/upload.d.ts +1 -0
- package/dist/components/Icon/src/icons/upload.js +6 -0
- package/dist/components/Icon/src/icons/user.d.ts +1 -0
- package/dist/components/Icon/src/icons/user.js +6 -0
- package/dist/components/Icon/src/icons/x.d.ts +1 -0
- package/dist/components/Icon/src/icons/x.js +6 -0
- package/dist/components/Image/src/Image.d.ts +76 -0
- package/dist/components/Image/src/Image.js +456 -0
- package/dist/components/Image/src/Image.props.d.ts +35 -0
- package/dist/components/Image/src/Image.props.js +65 -0
- package/dist/components/Image/src/Image.styles.d.ts +4 -0
- package/dist/components/Input/src/Input.d.ts +60 -0
- package/dist/components/Input/src/Input.js +648 -0
- package/dist/components/Input/src/Input.playground.d.ts +2 -0
- package/dist/components/Input/src/Input.props.d.ts +13 -0
- package/dist/components/Input/src/Input.props.js +41 -0
- package/dist/components/Input/src/Input.styles.d.ts +6 -0
- package/dist/components/Modal/src/Modal.d.ts +166 -0
- package/dist/components/Modal/src/Modal.js +1434 -0
- package/dist/components/Modal/src/Modal.playground.d.ts +2 -0
- package/dist/components/Modal/src/Modal.props.d.ts +66 -0
- package/dist/components/Modal/src/Modal.props.js +65 -0
- package/dist/components/Modal/src/Modal.styles.d.ts +29 -0
- package/dist/components/Nav/src/Nav.d.ts +66 -0
- package/dist/components/Nav/src/Nav.js +750 -0
- package/dist/components/Nav/src/Nav.props.d.ts +8 -0
- package/dist/components/Nav/src/Nav.props.js +13 -0
- package/dist/components/Nav/src/Nav.styles.d.ts +10 -0
- package/dist/components/NavDropdownColumn/src/NavDropdownColumn.d.ts +17 -0
- package/dist/components/NavDropdownColumn/src/NavDropdownColumn.js +170 -0
- package/dist/components/NavDropdownColumn/src/NavDropdownColumn.styles.d.ts +1 -0
- package/dist/components/NavLink/src/NavLink.d.ts +191 -0
- package/dist/components/NavLink/src/NavLink.js +1916 -0
- package/dist/components/NavLink/src/NavLink.props.d.ts +38 -0
- package/dist/components/NavLink/src/NavLink.props.js +58 -0
- package/dist/components/NavLink/src/NavLink.styles.d.ts +22 -0
- package/dist/components/Stack/src/Stack.d.ts +30 -0
- package/dist/components/Stack/src/Stack.js +300 -0
- package/dist/components/Stack/src/Stack.props.d.ts +24 -0
- package/dist/components/Stack/src/Stack.props.js +53 -0
- package/dist/components/Stack/src/Stack.styles.d.ts +2 -0
- package/dist/components/Text/src/Text.d.ts +32 -0
- package/dist/components/Text/src/Text.js +327 -0
- package/dist/components/Text/src/Text.props.d.ts +23 -0
- package/dist/components/Text/src/Text.props.js +52 -0
- package/dist/components/Text/src/Text.styles.d.ts +2 -0
- package/dist/playground/types.d.ts +29 -0
- package/dist/playground-manifest.d.ts +6 -0
- package/dist/playground-manifest.js +556 -0
- package/dist/react/Background.d.ts +6 -0
- package/dist/react/Background.js +13 -0
- package/dist/react/Badge.d.ts +6 -0
- package/dist/react/Badge.js +13 -0
- package/dist/react/Button.d.ts +6 -0
- package/dist/react/Button.js +13 -0
- package/dist/react/Card.d.ts +6 -0
- package/dist/react/Card.js +13 -0
- package/dist/react/CodeBlock.d.ts +6 -0
- package/dist/react/CodeBlock.js +13 -0
- package/dist/react/Container.d.ts +6 -0
- package/dist/react/Container.js +13 -0
- package/dist/react/Divider.d.ts +6 -0
- package/dist/react/Divider.js +13 -0
- package/dist/react/FeatureItem.d.ts +6 -0
- package/dist/react/FeatureItem.js +13 -0
- package/dist/react/FeatureTabs.d.ts +6 -0
- package/dist/react/FeatureTabs.js +13 -0
- package/dist/react/Footer.d.ts +6 -0
- package/dist/react/Footer.js +13 -0
- package/dist/react/FormBlock.d.ts +6 -0
- package/dist/react/FormBlock.js +13 -0
- package/dist/react/Grid.d.ts +6 -0
- package/dist/react/Grid.js +13 -0
- package/dist/react/Heading.d.ts +6 -0
- package/dist/react/Heading.js +13 -0
- package/dist/react/HeadingBlock.d.ts +6 -0
- package/dist/react/HeadingBlock.js +13 -0
- package/dist/react/Hero.d.ts +6 -0
- package/dist/react/Hero.js +13 -0
- package/dist/react/Icon.d.ts +6 -0
- package/dist/react/Icon.js +13 -0
- package/dist/react/Image.d.ts +8 -0
- package/dist/react/Image.js +13 -0
- package/dist/react/Input.d.ts +8 -0
- package/dist/react/Input.js +13 -0
- package/dist/react/Modal.d.ts +10 -0
- package/dist/react/Modal.js +17 -0
- package/dist/react/Nav.d.ts +6 -0
- package/dist/react/Nav.js +13 -0
- package/dist/react/NavDropdownColumn.d.ts +6 -0
- package/dist/react/NavDropdownColumn.js +13 -0
- package/dist/react/NavLink.d.ts +8 -0
- package/dist/react/NavLink.js +13 -0
- package/dist/react/Stack.d.ts +6 -0
- package/dist/react/Stack.js +13 -0
- package/dist/react/Text.d.ts +6 -0
- package/dist/react/Text.js +13 -0
- package/dist/react/index.d.ts +24 -0
- package/dist/react/index.js +25 -0
- package/dist/surface/surface.props.js +33 -0
- package/package.json +352 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type FeatureTabIcon = 'terminal' | 'brain' | 'cpu' | 'palette' | 'plug' | 'shield';
|
|
2
|
+
export interface FeatureTabData {
|
|
3
|
+
id: string;
|
|
4
|
+
eyebrow: string;
|
|
5
|
+
title: string;
|
|
6
|
+
short: string;
|
|
7
|
+
desc: string;
|
|
8
|
+
code: string;
|
|
9
|
+
metric: string;
|
|
10
|
+
icon: FeatureTabIcon;
|
|
11
|
+
/** Primary CTA label for this tab. Omit to render no primary CTA. Content lives in the CMS. */
|
|
12
|
+
ctaLabel?: string;
|
|
13
|
+
/** Primary CTA link target (e.g. an in-page anchor like `#hero`). */
|
|
14
|
+
ctaHref?: string;
|
|
15
|
+
/** Optional secondary (ghost) CTA label. Omit to render no secondary CTA. */
|
|
16
|
+
ctaSecondaryLabel?: string;
|
|
17
|
+
/** Secondary CTA link target. */
|
|
18
|
+
ctaSecondaryHref?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const DEFAULT_FEATURES: FeatureTabData[];
|
|
21
|
+
export declare const DEFAULT_DURATION = 6000;
|
|
22
|
+
export declare const DEFAULT_CODE_PATH = "~/dsgn-system";
|
|
23
|
+
export declare const DEFAULT_ROTATING_LABEL = "auto-rotating";
|
|
24
|
+
export declare const DEFAULT_PAUSED_LABEL = "paused \u2014 click to resume";
|
|
25
|
+
export declare const DEFAULT_PAUSE_ARIA_LABEL = "Pause auto-rotate";
|
|
26
|
+
export declare const DEFAULT_RESUME_ARIA_LABEL = "Resume auto-rotate";
|
|
27
|
+
export declare const DEFAULT_TABS_ARIA_LABEL = "Features";
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// components/FeatureTabs/src/FeatureTabs.props.ts
|
|
2
|
+
var DEFAULT_FEATURES = [
|
|
3
|
+
{
|
|
4
|
+
id: "orchestrator",
|
|
5
|
+
eyebrow: "CLI",
|
|
6
|
+
title: "Orchestrator",
|
|
7
|
+
short: "Scaffold, generate, and build from one CLI.",
|
|
8
|
+
desc: "Three commands cover the full lifecycle. Adapters handle language, styling, and tooling so you never touch the wiring.",
|
|
9
|
+
code: "ds-gn create design-system",
|
|
10
|
+
metric: "3 commands",
|
|
11
|
+
icon: "terminal",
|
|
12
|
+
ctaLabel: "Join the waitlist",
|
|
13
|
+
ctaHref: "#hero"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: "authoring",
|
|
17
|
+
eyebrow: "Engine",
|
|
18
|
+
title: "Authoring brain",
|
|
19
|
+
short: "A canonical core composed by patch-based adapters.",
|
|
20
|
+
desc: "One canonical core template plus patch-based adapters composes your project. Change language, styling, or tooling without forking — just swap the adapter.",
|
|
21
|
+
code: "adapters/styling/tailwind",
|
|
22
|
+
metric: "1 core",
|
|
23
|
+
icon: "brain",
|
|
24
|
+
ctaLabel: "Join the waitlist",
|
|
25
|
+
ctaHref: "#hero"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "compiler",
|
|
29
|
+
eyebrow: "Build",
|
|
30
|
+
title: "Compiler",
|
|
31
|
+
short: "Tree-shakable ESM, types, and CSS — minified.",
|
|
32
|
+
desc: "Bundles components to tree-shakable ESM with types, compiles Tailwind or concatenates CSS, minified for prod. One step. No config tax.",
|
|
33
|
+
code: "bun build:ui",
|
|
34
|
+
metric: "46kb gzip",
|
|
35
|
+
icon: "cpu",
|
|
36
|
+
ctaLabel: "Join the waitlist",
|
|
37
|
+
ctaHref: "#hero"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "tokens",
|
|
41
|
+
eyebrow: "Tokens",
|
|
42
|
+
title: "Typed tokens",
|
|
43
|
+
short: "Semantic tokens, emitted to Tailwind, CSS, and shadow DOM.",
|
|
44
|
+
desc: "Semantic color, typography, and breakpoint tokens emit Tailwind @theme, public CSS variables, and shadow-DOM variables — type-checked across the chain.",
|
|
45
|
+
code: "--text-primary-on-light",
|
|
46
|
+
metric: "169 tokens",
|
|
47
|
+
icon: "palette",
|
|
48
|
+
ctaLabel: "Join the waitlist",
|
|
49
|
+
ctaHref: "#hero"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "adapters",
|
|
53
|
+
eyebrow: "Adapters",
|
|
54
|
+
title: "Stack-agnostic",
|
|
55
|
+
short: "Language, styling, and tooling — pick at compose time.",
|
|
56
|
+
desc: "Adapters express language, styling, and tooling as patches over the core — pick TypeScript or JS and Tailwind, Sass, or CSS without forking. The output is Lit web components that run in React, Vue, Svelte, or vanilla.",
|
|
57
|
+
code: "adapters/framework/lit",
|
|
58
|
+
metric: "7 adapters",
|
|
59
|
+
icon: "plug",
|
|
60
|
+
ctaLabel: "Join the waitlist",
|
|
61
|
+
ctaHref: "#hero"
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
var DEFAULT_DURATION = 6000;
|
|
65
|
+
var DEFAULT_CODE_PATH = "~/dsgn-system";
|
|
66
|
+
var DEFAULT_ROTATING_LABEL = "auto-rotating";
|
|
67
|
+
var DEFAULT_PAUSED_LABEL = "paused — click to resume";
|
|
68
|
+
var DEFAULT_PAUSE_ARIA_LABEL = "Pause auto-rotate";
|
|
69
|
+
var DEFAULT_RESUME_ARIA_LABEL = "Resume auto-rotate";
|
|
70
|
+
var DEFAULT_TABS_ARIA_LABEL = "Features";
|
|
71
|
+
export {
|
|
72
|
+
DEFAULT_CODE_PATH,
|
|
73
|
+
DEFAULT_DURATION,
|
|
74
|
+
DEFAULT_FEATURES,
|
|
75
|
+
DEFAULT_PAUSED_LABEL,
|
|
76
|
+
DEFAULT_PAUSE_ARIA_LABEL,
|
|
77
|
+
DEFAULT_RESUME_ARIA_LABEL,
|
|
78
|
+
DEFAULT_ROTATING_LABEL,
|
|
79
|
+
DEFAULT_TABS_ARIA_LABEL
|
|
80
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const headerClassNames: () => string;
|
|
2
|
+
export declare const tabsColClassNames: () => string;
|
|
3
|
+
export declare const tabListClassNames: () => string;
|
|
4
|
+
export declare const tabItemClassNames: () => string;
|
|
5
|
+
export declare const tabBtnClassNames: (active: boolean) => string;
|
|
6
|
+
export declare const railClassNames: () => string;
|
|
7
|
+
export declare const railFillClassNames: () => string;
|
|
8
|
+
export declare const tabInnerClassNames: () => string;
|
|
9
|
+
export declare const iconBadgeClassNames: (active: boolean, large?: boolean) => string;
|
|
10
|
+
export declare const tabMetaClassNames: () => string;
|
|
11
|
+
export declare const tabMetaRowClassNames: () => string;
|
|
12
|
+
export declare const tabEyebrowClassNames: (active: boolean) => string;
|
|
13
|
+
export declare const tabIndexClassNames: () => string;
|
|
14
|
+
export declare const tabTitleClassNames: () => string;
|
|
15
|
+
export declare const tabShortClassNames: () => string;
|
|
16
|
+
export declare const controlClassNames: () => string;
|
|
17
|
+
export declare const controlBtnClassNames: () => string;
|
|
18
|
+
export declare const controlDotClassNames: (rotating: boolean) => string;
|
|
19
|
+
export declare const detailClassNames: () => string;
|
|
20
|
+
export declare const patternOverlayStyles: () => Record<string, string>;
|
|
21
|
+
export declare const detailContentClassNames: (idx: number) => string;
|
|
22
|
+
export declare const detailHeaderClassNames: () => string;
|
|
23
|
+
export declare const detailEyebrowClassNames: () => string;
|
|
24
|
+
export declare const detailCounterClassNames: () => string;
|
|
25
|
+
export declare const detailTitleClassNames: () => string;
|
|
26
|
+
export declare const detailDescClassNames: () => string;
|
|
27
|
+
export declare const codeWrapClassNames: () => string;
|
|
28
|
+
export declare const ctaRowClassNames: () => string;
|
|
29
|
+
export declare const mobileProgressClassNames: () => string;
|
|
30
|
+
export declare const mobileProgressFillClassNames: () => string;
|
|
31
|
+
export declare const mobileNavClassNames: () => string;
|
|
32
|
+
export declare const dotsClassNames: () => string;
|
|
33
|
+
export declare const dotPipClassNames: () => string;
|
|
34
|
+
export declare const dotPipInnerClassNames: (active: boolean) => string;
|
|
35
|
+
export declare const playPauseClassNames: () => string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import '../../../types/global.d.ts';
|
|
2
|
+
import '../../Container/src/Container.js';
|
|
3
|
+
import { type CSSResultGroup } from 'lit';
|
|
4
|
+
import { Base } from '../../../common/Base/Base.js';
|
|
5
|
+
import { type SurfaceType } from '../../../common/props/surface/surface.props.js';
|
|
6
|
+
import { type ContainerPaddingType, type ContainerSizeType } from '../../Container/src/Container.props.js';
|
|
7
|
+
/**
|
|
8
|
+
* @slot logo - Brand or logo content.
|
|
9
|
+
* @slot col-1 - First footer column.
|
|
10
|
+
* @slot col-2 - Second footer column.
|
|
11
|
+
* @slot col-3 - Third footer column.
|
|
12
|
+
* @slot bottom - Bottom-row legal or secondary content.
|
|
13
|
+
*/
|
|
14
|
+
export declare class Footer extends Base {
|
|
15
|
+
static styles: CSSResultGroup;
|
|
16
|
+
/**
|
|
17
|
+
* Surface theme variant (light or dark)
|
|
18
|
+
*/
|
|
19
|
+
surface: SurfaceType;
|
|
20
|
+
/**
|
|
21
|
+
* Container max-width size
|
|
22
|
+
*/
|
|
23
|
+
containerSize: ContainerSizeType;
|
|
24
|
+
/**
|
|
25
|
+
* Container horizontal padding
|
|
26
|
+
*/
|
|
27
|
+
containerPaddingX: ContainerPaddingType;
|
|
28
|
+
/**
|
|
29
|
+
* Container vertical padding
|
|
30
|
+
*/
|
|
31
|
+
containerPaddingY: ContainerPaddingType;
|
|
32
|
+
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
33
|
+
render(): import("lit").TemplateResult<1>;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
'dsgn-footer': Footer;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// components/Footer/src/Footer.ts
|
|
13
|
+
import"../../Container/src/Container.js";
|
|
14
|
+
import { html as html2 } from "lit";
|
|
15
|
+
import { property } from "lit/decorators.js";
|
|
16
|
+
|
|
17
|
+
// common/Base/Base.ts
|
|
18
|
+
import { html, LitElement } from "lit";
|
|
19
|
+
|
|
20
|
+
// common/helpers/define-element.ts
|
|
21
|
+
var defineElement = (tag, ctor) => {
|
|
22
|
+
if (typeof customElements === "undefined")
|
|
23
|
+
return;
|
|
24
|
+
if (!customElements.get(tag))
|
|
25
|
+
customElements.define(tag, ctor);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// common/Base/Base.css
|
|
29
|
+
import { css } from "lit";
|
|
30
|
+
var styles = css`/* Base reset in @layer base ensures it comes before utilities in Tailwind v4 cascade
|
|
31
|
+
This prevents the reset from overriding component utility classes */
|
|
32
|
+
@layer base {
|
|
33
|
+
:host {
|
|
34
|
+
display: block;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
line-height: 1.5;
|
|
37
|
+
-webkit-text-size-adjust: 100%;
|
|
38
|
+
tab-size: 4;
|
|
39
|
+
font-family: var(
|
|
40
|
+
--default-font-family,
|
|
41
|
+
var(--font-sans, ui-sans-serif, system-ui, sans-serif)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
*,
|
|
46
|
+
*::before,
|
|
47
|
+
*::after {
|
|
48
|
+
box-sizing: inherit;
|
|
49
|
+
margin: 0;
|
|
50
|
+
padding: 0;
|
|
51
|
+
border: 0 solid;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host h1,
|
|
55
|
+
:host h2,
|
|
56
|
+
:host h3,
|
|
57
|
+
:host h4,
|
|
58
|
+
:host h5,
|
|
59
|
+
:host h6 {
|
|
60
|
+
font-size: inherit;
|
|
61
|
+
font-weight: inherit;
|
|
62
|
+
margin: 0;
|
|
63
|
+
padding: 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
var Base_default = styles;
|
|
68
|
+
|
|
69
|
+
// common/Base/Base.ts
|
|
70
|
+
class Base extends LitElement {
|
|
71
|
+
static styles = Base_default;
|
|
72
|
+
updateTheme(changedProperties, surface) {
|
|
73
|
+
if (changedProperties.has("surface")) {
|
|
74
|
+
if (surface) {
|
|
75
|
+
this.setAttribute("data-theme", surface);
|
|
76
|
+
} else {
|
|
77
|
+
this.removeAttribute("data-theme");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
emit(name, detail, options = {}) {
|
|
82
|
+
return this.dispatchEvent(new CustomEvent(name, {
|
|
83
|
+
detail,
|
|
84
|
+
bubbles: true,
|
|
85
|
+
composed: true,
|
|
86
|
+
cancelable: options.cancelable ?? false
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return html`<slot></slot>`;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
defineElement("dsgn-base", Base);
|
|
94
|
+
|
|
95
|
+
// common/helpers/enum-validator.ts
|
|
96
|
+
var enumValidator = (propName, enumSet, candidateValue) => {
|
|
97
|
+
if (!enumSet.has(candidateValue)) {
|
|
98
|
+
throw new Error(`Invalid prop ${propName} of value ${candidateValue}. Expected one of: ${Array.from(enumSet).join(", ")}`);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// common/helpers/enum-creator.ts
|
|
103
|
+
var enumCreator = (acceptableValues, propName, type, other = {}) => {
|
|
104
|
+
const acceptableValuesSet = new Set(acceptableValues);
|
|
105
|
+
return {
|
|
106
|
+
type,
|
|
107
|
+
hasChanged(newValue, oldValue) {
|
|
108
|
+
if (newValue !== oldValue) {
|
|
109
|
+
enumValidator(propName, acceptableValuesSet, newValue);
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
return false;
|
|
113
|
+
},
|
|
114
|
+
...other
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
// common/props/surface/surface.props.ts
|
|
119
|
+
var surfaceValues = {
|
|
120
|
+
LIGHT: "light",
|
|
121
|
+
DARK: "dark"
|
|
122
|
+
};
|
|
123
|
+
var surfaceProps = enumCreator(Object.values(surfaceValues), "surface", String, { reflect: true });
|
|
124
|
+
|
|
125
|
+
// components/Footer/src/Footer.ts
|
|
126
|
+
import {
|
|
127
|
+
containerPaddingValues,
|
|
128
|
+
containerPaddingXProps,
|
|
129
|
+
containerPaddingYProps,
|
|
130
|
+
containerSizeProps,
|
|
131
|
+
containerSizeValues
|
|
132
|
+
} from "../../Container/src/Container.props.js";
|
|
133
|
+
|
|
134
|
+
// components/Footer/src/Footer.css
|
|
135
|
+
import { css as css2 } from "lit";
|
|
136
|
+
var styles2 = css2`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
137
|
+
@layer properties;
|
|
138
|
+
@layer theme {
|
|
139
|
+
:root, :host {
|
|
140
|
+
--font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
141
|
+
'Noto Color Emoji';
|
|
142
|
+
--spacing: 0.25rem;
|
|
143
|
+
--text-sm: 0.875rem;
|
|
144
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
145
|
+
--color-outline: inherit;
|
|
146
|
+
--color-text-primary: inherit;
|
|
147
|
+
--color-text-tertiary: inherit;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
@layer utilities {
|
|
151
|
+
.static {
|
|
152
|
+
position: static;
|
|
153
|
+
}
|
|
154
|
+
.col-1 {
|
|
155
|
+
grid-column: 1;
|
|
156
|
+
}
|
|
157
|
+
.col-2 {
|
|
158
|
+
grid-column: 2;
|
|
159
|
+
}
|
|
160
|
+
.col-3 {
|
|
161
|
+
grid-column: 3;
|
|
162
|
+
}
|
|
163
|
+
.col-span-12 {
|
|
164
|
+
grid-column: span 12 / span 12;
|
|
165
|
+
}
|
|
166
|
+
.mt-8 {
|
|
167
|
+
margin-top: calc(var(--spacing) * 8);
|
|
168
|
+
}
|
|
169
|
+
.flex {
|
|
170
|
+
display: flex;
|
|
171
|
+
}
|
|
172
|
+
.grid {
|
|
173
|
+
display: grid;
|
|
174
|
+
}
|
|
175
|
+
.w-full {
|
|
176
|
+
width: 100%;
|
|
177
|
+
}
|
|
178
|
+
.flex-1 {
|
|
179
|
+
flex: 1;
|
|
180
|
+
}
|
|
181
|
+
.flex-shrink-0 {
|
|
182
|
+
flex-shrink: 0;
|
|
183
|
+
}
|
|
184
|
+
.grid-cols-12 {
|
|
185
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
186
|
+
}
|
|
187
|
+
.flex-col {
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
}
|
|
190
|
+
.gap-3 {
|
|
191
|
+
gap: calc(var(--spacing) * 3);
|
|
192
|
+
}
|
|
193
|
+
.gap-6 {
|
|
194
|
+
gap: calc(var(--spacing) * 6);
|
|
195
|
+
}
|
|
196
|
+
.gap-8 {
|
|
197
|
+
gap: calc(var(--spacing) * 8);
|
|
198
|
+
}
|
|
199
|
+
.border-t {
|
|
200
|
+
border-top-style: var(--tw-border-style);
|
|
201
|
+
border-top-width: 1px;
|
|
202
|
+
}
|
|
203
|
+
.border-outline {
|
|
204
|
+
border-color: var(--color-outline);
|
|
205
|
+
}
|
|
206
|
+
.pt-8 {
|
|
207
|
+
padding-top: calc(var(--spacing) * 8);
|
|
208
|
+
}
|
|
209
|
+
.font-sans {
|
|
210
|
+
font-family: var(--font-sans);
|
|
211
|
+
}
|
|
212
|
+
.text-sm {
|
|
213
|
+
font-size: var(--text-sm);
|
|
214
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
215
|
+
}
|
|
216
|
+
.text-text-primary {
|
|
217
|
+
color: var(--color-text-primary);
|
|
218
|
+
}
|
|
219
|
+
.text-text-tertiary {
|
|
220
|
+
color: var(--color-text-tertiary);
|
|
221
|
+
}
|
|
222
|
+
.sm\\:col-span-4 {
|
|
223
|
+
@media (width >= 40rem) {
|
|
224
|
+
grid-column: span 4 / span 4;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
.md\\:gap-8 {
|
|
228
|
+
@media (width >= 48rem) {
|
|
229
|
+
gap: calc(var(--spacing) * 8);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
.lg\\:w-1\\/3 {
|
|
233
|
+
@media (width >= 64rem) {
|
|
234
|
+
width: calc(1 / 3 * 100%);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
.lg\\:flex-row {
|
|
238
|
+
@media (width >= 64rem) {
|
|
239
|
+
flex-direction: row;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
.lg\\:gap-12 {
|
|
243
|
+
@media (width >= 64rem) {
|
|
244
|
+
gap: calc(var(--spacing) * 12);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
@property --dsgn-border-sweep-angle {
|
|
249
|
+
syntax: '<angle>';
|
|
250
|
+
inherits: false;
|
|
251
|
+
initial-value: 0deg;
|
|
252
|
+
}
|
|
253
|
+
@property --tw-border-style {
|
|
254
|
+
syntax: "*";
|
|
255
|
+
inherits: false;
|
|
256
|
+
initial-value: solid;
|
|
257
|
+
}
|
|
258
|
+
@layer properties {
|
|
259
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
260
|
+
*, ::before, ::after, ::backdrop {
|
|
261
|
+
--tw-border-style: solid;
|
|
262
|
+
--dsgn-border-sweep-angle: 0deg;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
`;
|
|
267
|
+
var Footer_default = styles2;
|
|
268
|
+
|
|
269
|
+
// ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
270
|
+
function r(e) {
|
|
271
|
+
var t, f, n = "";
|
|
272
|
+
if (typeof e == "string" || typeof e == "number")
|
|
273
|
+
n += e;
|
|
274
|
+
else if (typeof e == "object")
|
|
275
|
+
if (Array.isArray(e)) {
|
|
276
|
+
var o = e.length;
|
|
277
|
+
for (t = 0;t < o; t++)
|
|
278
|
+
e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
279
|
+
} else
|
|
280
|
+
for (f in e)
|
|
281
|
+
e[f] && (n && (n += " "), n += f);
|
|
282
|
+
return n;
|
|
283
|
+
}
|
|
284
|
+
function clsx() {
|
|
285
|
+
for (var e, t, f = 0, n = "", o = arguments.length;f < o; f++)
|
|
286
|
+
(e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
287
|
+
return n;
|
|
288
|
+
}
|
|
289
|
+
var clsx_default = clsx;
|
|
290
|
+
|
|
291
|
+
// components/Footer/src/Footer.styles.ts
|
|
292
|
+
var baseClasses = ["w-full", "font-sans"];
|
|
293
|
+
var classNames = () => clsx_default(baseClasses);
|
|
294
|
+
var topClasses = () => clsx_default("flex", "flex-col", "lg:flex-row", "gap-8", "lg:gap-12");
|
|
295
|
+
var logoClasses = () => clsx_default("flex", "flex-col", "gap-3", "lg:w-1/3", "flex-shrink-0", "text-text-primary");
|
|
296
|
+
var columnsWrapperClasses = () => clsx_default("flex-1", "grid", "grid-cols-12", "gap-6", "md:gap-8");
|
|
297
|
+
var columnClasses = () => clsx_default("col-span-12", "sm:col-span-4");
|
|
298
|
+
var bottomClasses = () => clsx_default("mt-8", "pt-8", "border-t", "border-outline", "text-text-tertiary", "text-sm");
|
|
299
|
+
|
|
300
|
+
// components/Footer/src/Footer.ts
|
|
301
|
+
class Footer extends Base {
|
|
302
|
+
constructor() {
|
|
303
|
+
super(...arguments);
|
|
304
|
+
this.surface = surfaceValues.DARK;
|
|
305
|
+
this.containerSize = containerSizeValues.XXL;
|
|
306
|
+
this.containerPaddingX = containerPaddingValues.SM;
|
|
307
|
+
this.containerPaddingY = containerPaddingValues.LG;
|
|
308
|
+
}
|
|
309
|
+
static styles = [Base.styles, Footer_default];
|
|
310
|
+
updated(changedProperties) {
|
|
311
|
+
super.updated(changedProperties);
|
|
312
|
+
this.updateTheme(changedProperties, this.surface);
|
|
313
|
+
}
|
|
314
|
+
render() {
|
|
315
|
+
return html2`
|
|
316
|
+
<footer class="${classNames()}">
|
|
317
|
+
<dsgn-container
|
|
318
|
+
size="${this.containerSize}"
|
|
319
|
+
padding-x="${this.containerPaddingX}"
|
|
320
|
+
padding-y="${this.containerPaddingY}"
|
|
321
|
+
>
|
|
322
|
+
<div class="${topClasses()}">
|
|
323
|
+
<div class="${logoClasses()}">
|
|
324
|
+
<slot name="logo"></slot>
|
|
325
|
+
</div>
|
|
326
|
+
<div class="${columnsWrapperClasses()}">
|
|
327
|
+
<div class="${columnClasses()}">
|
|
328
|
+
<slot name="col-1"></slot>
|
|
329
|
+
</div>
|
|
330
|
+
<div class="${columnClasses()}">
|
|
331
|
+
<slot name="col-2"></slot>
|
|
332
|
+
</div>
|
|
333
|
+
<div class="${columnClasses()}">
|
|
334
|
+
<slot name="col-3"></slot>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
</div>
|
|
338
|
+
<div class="${bottomClasses()}">
|
|
339
|
+
<slot name="bottom"></slot>
|
|
340
|
+
</div>
|
|
341
|
+
</dsgn-container>
|
|
342
|
+
</footer>
|
|
343
|
+
`;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
__legacyDecorateClassTS([
|
|
347
|
+
property({ ...surfaceProps })
|
|
348
|
+
], Footer.prototype, "surface", undefined);
|
|
349
|
+
__legacyDecorateClassTS([
|
|
350
|
+
property({ ...containerSizeProps, attribute: "container-size" })
|
|
351
|
+
], Footer.prototype, "containerSize", undefined);
|
|
352
|
+
__legacyDecorateClassTS([
|
|
353
|
+
property({ ...containerPaddingXProps })
|
|
354
|
+
], Footer.prototype, "containerPaddingX", undefined);
|
|
355
|
+
__legacyDecorateClassTS([
|
|
356
|
+
property({ ...containerPaddingYProps })
|
|
357
|
+
], Footer.prototype, "containerPaddingY", undefined);
|
|
358
|
+
defineElement("dsgn-footer", Footer);
|
|
359
|
+
export {
|
|
360
|
+
Footer
|
|
361
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const classNames: () => string;
|
|
2
|
+
export declare const topClasses: () => string;
|
|
3
|
+
export declare const logoClasses: () => string;
|
|
4
|
+
export declare const columnsWrapperClasses: () => string;
|
|
5
|
+
export declare const columnClasses: () => string;
|
|
6
|
+
export declare const bottomClasses: () => string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import '../../../types/global.d.ts';
|
|
2
|
+
import '../../Button/src/Button.js';
|
|
3
|
+
import '../../Input/src/Input.js';
|
|
4
|
+
import { type CSSResultGroup } from 'lit';
|
|
5
|
+
import { Base } from '../../../common/Base/Base.js';
|
|
6
|
+
import { type SurfaceType } from '../../../common/props/surface/surface.props.js';
|
|
7
|
+
import { type FormBlockAlignmentType } from './FormBlock.props.js';
|
|
8
|
+
/**
|
|
9
|
+
* @slot input - Form input control.
|
|
10
|
+
* @slot button - Form submission control.
|
|
11
|
+
* @slot note - Supporting form note.
|
|
12
|
+
* @slot success - Content shown after a successful submission.
|
|
13
|
+
*/
|
|
14
|
+
export declare class FormBlock extends Base {
|
|
15
|
+
static styles: CSSResultGroup;
|
|
16
|
+
surface: SurfaceType;
|
|
17
|
+
/** Horizontal alignment of the form row and supporting content. */
|
|
18
|
+
alignment: FormBlockAlignmentType;
|
|
19
|
+
/**
|
|
20
|
+
* Success state. Drives the fade/swap animation that hides the form row
|
|
21
|
+
* and reveals the `success` slot. Application code (or any consumer)
|
|
22
|
+
* flips this to `true` once submission completes; for convenience, the
|
|
23
|
+
* `dsgn-form-success` event also sets it. Set back to `false` to reset.
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
private _fading;
|
|
27
|
+
private _showSuccess;
|
|
28
|
+
private get _note();
|
|
29
|
+
private get _successSlot();
|
|
30
|
+
private _onFormSuccess;
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
34
|
+
render(): import("lit").TemplateResult<1>;
|
|
35
|
+
}
|
|
36
|
+
declare global {
|
|
37
|
+
interface HTMLElementTagNameMap {
|
|
38
|
+
'dsgn-form-block': FormBlock;
|
|
39
|
+
}
|
|
40
|
+
}
|