@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,13 @@
|
|
|
1
|
+
// frameworks/react/Divider.ts
|
|
2
|
+
import { Divider as DividerElement } from "@ds-gn/ui/divider";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Divider = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-divider",
|
|
8
|
+
elementClass: DividerElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Divider
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FeatureItem as FeatureItemElement } from '@ds-gn/ui/feature-item';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-feature-item>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-feature-item>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FeatureItem: import("@lit/react").ReactWebComponent<FeatureItemElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/FeatureItem.ts
|
|
2
|
+
import { FeatureItem as FeatureItemElement } from "@ds-gn/ui/feature-item";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var FeatureItem = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-feature-item",
|
|
8
|
+
elementClass: FeatureItemElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
FeatureItem
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FeatureTabs as FeatureTabsElement } from '@ds-gn/ui/feature-tabs';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-feature-tabs>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-feature-tabs>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FeatureTabs: import("@lit/react").ReactWebComponent<FeatureTabsElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/FeatureTabs.ts
|
|
2
|
+
import { FeatureTabs as FeatureTabsElement } from "@ds-gn/ui/feature-tabs";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var FeatureTabs = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-feature-tabs",
|
|
8
|
+
elementClass: FeatureTabsElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
FeatureTabs
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Footer as FooterElement } from '@ds-gn/ui/footer';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-footer>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-footer>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Footer: import("@lit/react").ReactWebComponent<FooterElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Footer.ts
|
|
2
|
+
import { Footer as FooterElement } from "@ds-gn/ui/footer";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Footer = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-footer",
|
|
8
|
+
elementClass: FooterElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Footer
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormBlock as FormBlockElement } from '@ds-gn/ui/form-block';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-form-block>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-form-block>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FormBlock: import("@lit/react").ReactWebComponent<FormBlockElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/FormBlock.ts
|
|
2
|
+
import { FormBlock as FormBlockElement } from "@ds-gn/ui/form-block";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var FormBlock = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-form-block",
|
|
8
|
+
elementClass: FormBlockElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
FormBlock
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Grid as GridElement } from '@ds-gn/ui/grid';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-grid>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-grid>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Grid: import("@lit/react").ReactWebComponent<GridElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Grid.ts
|
|
2
|
+
import { Grid as GridElement } from "@ds-gn/ui/grid";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Grid = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-grid",
|
|
8
|
+
elementClass: GridElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Grid
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Heading as HeadingElement } from '@ds-gn/ui/heading';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-heading>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-heading>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Heading: import("@lit/react").ReactWebComponent<HeadingElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Heading.ts
|
|
2
|
+
import { Heading as HeadingElement } from "@ds-gn/ui/heading";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Heading = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-heading",
|
|
8
|
+
elementClass: HeadingElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Heading
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HeadingBlock as HeadingBlockElement } from '@ds-gn/ui/heading-block';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-heading-block>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-heading-block>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const HeadingBlock: import("@lit/react").ReactWebComponent<HeadingBlockElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/HeadingBlock.ts
|
|
2
|
+
import { HeadingBlock as HeadingBlockElement } from "@ds-gn/ui/heading-block";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var HeadingBlock = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-heading-block",
|
|
8
|
+
elementClass: HeadingBlockElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
HeadingBlock
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Hero as HeroElement } from '@ds-gn/ui/hero';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-hero>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-hero>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Hero: import("@lit/react").ReactWebComponent<HeroElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Hero.ts
|
|
2
|
+
import { Hero as HeroElement } from "@ds-gn/ui/hero";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Hero = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-hero",
|
|
8
|
+
elementClass: HeroElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Hero
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Icon as IconElement } from '@ds-gn/ui/icon';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-icon>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-icon>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Icon: import("@lit/react").ReactWebComponent<IconElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Icon.ts
|
|
2
|
+
import { Icon as IconElement } from "@ds-gn/ui/icon";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Icon = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-icon",
|
|
8
|
+
elementClass: IconElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Icon
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Image as ImageElement } from '@ds-gn/ui/image';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-image>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-image>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Image: import("@lit/react").ReactWebComponent<ImageElement, {
|
|
7
|
+
onDsgnImageError: string;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Image.ts
|
|
2
|
+
import { Image as ImageElement } from "@ds-gn/ui/image";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Image = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-image",
|
|
8
|
+
elementClass: ImageElement,
|
|
9
|
+
events: { onDsgnImageError: "dsgn-image-error" }
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Image
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Input as InputElement } from '@ds-gn/ui/input';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-input>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-input>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Input: import("@lit/react").ReactWebComponent<InputElement, {
|
|
7
|
+
onDsgnInput: string;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Input.ts
|
|
2
|
+
import { Input as InputElement } from "@ds-gn/ui/input";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Input = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-input",
|
|
8
|
+
elementClass: InputElement,
|
|
9
|
+
events: { onDsgnInput: "dsgn-input" }
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Input
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Modal as ModalElement } from '@ds-gn/ui/modal';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-modal>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-modal>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Modal: import("@lit/react").ReactWebComponent<ModalElement, {
|
|
7
|
+
onDsgnModalOpen: string;
|
|
8
|
+
onDsgnModalRequestClose: string;
|
|
9
|
+
onDsgnModalClose: string;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// frameworks/react/Modal.ts
|
|
2
|
+
import { Modal as ModalElement } from "@ds-gn/ui/modal";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Modal = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-modal",
|
|
8
|
+
elementClass: ModalElement,
|
|
9
|
+
events: {
|
|
10
|
+
onDsgnModalOpen: "dsgn-modal-open",
|
|
11
|
+
onDsgnModalRequestClose: "dsgn-modal-request-close",
|
|
12
|
+
onDsgnModalClose: "dsgn-modal-close"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
Modal
|
|
17
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Nav as NavElement } from '@ds-gn/ui/nav';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-nav>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-nav>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Nav: import("@lit/react").ReactWebComponent<NavElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Nav.ts
|
|
2
|
+
import { Nav as NavElement } from "@ds-gn/ui/nav";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Nav = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-nav",
|
|
8
|
+
elementClass: NavElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Nav
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NavDropdownColumn as NavDropdownColumnElement } from '@ds-gn/ui/nav-dropdown-column';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-nav-dropdown-column>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-nav-dropdown-column>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const NavDropdownColumn: import("@lit/react").ReactWebComponent<NavDropdownColumnElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/NavDropdownColumn.ts
|
|
2
|
+
import { NavDropdownColumn as NavDropdownColumnElement } from "@ds-gn/ui/nav-dropdown-column";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var NavDropdownColumn = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-nav-dropdown-column",
|
|
8
|
+
elementClass: NavDropdownColumnElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
NavDropdownColumn
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NavLink as NavLinkElement } from '@ds-gn/ui/nav-link';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-nav-link>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-nav-link>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const NavLink: import("@lit/react").ReactWebComponent<NavLinkElement, {
|
|
7
|
+
onDsgnNavLinkToggle: string;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/NavLink.ts
|
|
2
|
+
import { NavLink as NavLinkElement } from "@ds-gn/ui/nav-link";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var NavLink = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-nav-link",
|
|
8
|
+
elementClass: NavLinkElement,
|
|
9
|
+
events: { onDsgnNavLinkToggle: "dsgn-nav-link-toggle" }
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
NavLink
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Stack as StackElement } from '@ds-gn/ui/stack';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-stack>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-stack>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Stack: import("@lit/react").ReactWebComponent<StackElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Stack.ts
|
|
2
|
+
import { Stack as StackElement } from "@ds-gn/ui/stack";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Stack = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-stack",
|
|
8
|
+
elementClass: StackElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Stack
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Text as TextElement } from '@ds-gn/ui/text';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-text>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-text>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Text: import("@lit/react").ReactWebComponent<TextElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Text.ts
|
|
2
|
+
import { Text as TextElement } from "@ds-gn/ui/text";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Text = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-text",
|
|
8
|
+
elementClass: TextElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Text
|
|
13
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { Background } from './Background.js';
|
|
2
|
+
export { Badge } from './Badge.js';
|
|
3
|
+
export { Button } from './Button.js';
|
|
4
|
+
export { Card } from './Card.js';
|
|
5
|
+
export { CodeBlock } from './CodeBlock.js';
|
|
6
|
+
export { Container } from './Container.js';
|
|
7
|
+
export { Divider } from './Divider.js';
|
|
8
|
+
export { FeatureItem } from './FeatureItem.js';
|
|
9
|
+
export { FeatureTabs } from './FeatureTabs.js';
|
|
10
|
+
export { Footer } from './Footer.js';
|
|
11
|
+
export { FormBlock } from './FormBlock.js';
|
|
12
|
+
export { Grid } from './Grid.js';
|
|
13
|
+
export { Heading } from './Heading.js';
|
|
14
|
+
export { HeadingBlock } from './HeadingBlock.js';
|
|
15
|
+
export { Hero } from './Hero.js';
|
|
16
|
+
export { Icon } from './Icon.js';
|
|
17
|
+
export { Image } from './Image.js';
|
|
18
|
+
export { Input } from './Input.js';
|
|
19
|
+
export { Modal } from './Modal.js';
|
|
20
|
+
export { Nav } from './Nav.js';
|
|
21
|
+
export { NavDropdownColumn } from './NavDropdownColumn.js';
|
|
22
|
+
export { NavLink } from './NavLink.js';
|
|
23
|
+
export { Stack } from './Stack.js';
|
|
24
|
+
export { Text } from './Text.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// AUTO-GENERATED by build/generate-react.ts from custom-elements.json. Do not edit.
|
|
2
|
+
export { Background } from './Background.js';
|
|
3
|
+
export { Badge } from './Badge.js';
|
|
4
|
+
export { Button } from './Button.js';
|
|
5
|
+
export { Card } from './Card.js';
|
|
6
|
+
export { CodeBlock } from './CodeBlock.js';
|
|
7
|
+
export { Container } from './Container.js';
|
|
8
|
+
export { Divider } from './Divider.js';
|
|
9
|
+
export { FeatureItem } from './FeatureItem.js';
|
|
10
|
+
export { FeatureTabs } from './FeatureTabs.js';
|
|
11
|
+
export { Footer } from './Footer.js';
|
|
12
|
+
export { FormBlock } from './FormBlock.js';
|
|
13
|
+
export { Grid } from './Grid.js';
|
|
14
|
+
export { Heading } from './Heading.js';
|
|
15
|
+
export { HeadingBlock } from './HeadingBlock.js';
|
|
16
|
+
export { Hero } from './Hero.js';
|
|
17
|
+
export { Icon } from './Icon.js';
|
|
18
|
+
export { Image } from './Image.js';
|
|
19
|
+
export { Input } from './Input.js';
|
|
20
|
+
export { Modal } from './Modal.js';
|
|
21
|
+
export { Nav } from './Nav.js';
|
|
22
|
+
export { NavDropdownColumn } from './NavDropdownColumn.js';
|
|
23
|
+
export { NavLink } from './NavLink.js';
|
|
24
|
+
export { Stack } from './Stack.js';
|
|
25
|
+
export { Text } from './Text.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// common/helpers/enum-validator.ts
|
|
2
|
+
var enumValidator = (propName, enumSet, candidateValue) => {
|
|
3
|
+
if (!enumSet.has(candidateValue)) {
|
|
4
|
+
throw new Error(`Invalid prop ${propName} of value ${candidateValue}. Expected one of: ${Array.from(enumSet).join(", ")}`);
|
|
5
|
+
}
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
// common/helpers/enum-creator.ts
|
|
9
|
+
var enumCreator = (acceptableValues, propName, type, other = {}) => {
|
|
10
|
+
const acceptableValuesSet = new Set(acceptableValues);
|
|
11
|
+
return {
|
|
12
|
+
type,
|
|
13
|
+
hasChanged(newValue, oldValue) {
|
|
14
|
+
if (newValue !== oldValue) {
|
|
15
|
+
enumValidator(propName, acceptableValuesSet, newValue);
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
},
|
|
20
|
+
...other
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// common/props/surface/surface.props.ts
|
|
25
|
+
var surfaceValues = {
|
|
26
|
+
LIGHT: "light",
|
|
27
|
+
DARK: "dark"
|
|
28
|
+
};
|
|
29
|
+
var surfaceProps = enumCreator(Object.values(surfaceValues), "surface", String, { reflect: true });
|
|
30
|
+
export {
|
|
31
|
+
surfaceProps,
|
|
32
|
+
surfaceValues
|
|
33
|
+
};
|