@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,556 @@
|
|
|
1
|
+
// AUTO-GENERATED by build/generate-playground-manifest.ts. Do not edit.
|
|
2
|
+
export const playgroundManifest = [
|
|
3
|
+
{
|
|
4
|
+
"tag": "dsgn-badge",
|
|
5
|
+
"module": "@ds-gn/ui/badge",
|
|
6
|
+
"props": [
|
|
7
|
+
{
|
|
8
|
+
"name": "surface",
|
|
9
|
+
"attribute": "surface",
|
|
10
|
+
"control": "select",
|
|
11
|
+
"default": "dark",
|
|
12
|
+
"label": "Surface",
|
|
13
|
+
"options": [
|
|
14
|
+
"dark",
|
|
15
|
+
"light"
|
|
16
|
+
],
|
|
17
|
+
"includeDefault": true
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "variant",
|
|
21
|
+
"attribute": "variant",
|
|
22
|
+
"control": "select",
|
|
23
|
+
"default": "default",
|
|
24
|
+
"label": "Variant",
|
|
25
|
+
"options": [
|
|
26
|
+
"default",
|
|
27
|
+
"brand",
|
|
28
|
+
"accent",
|
|
29
|
+
"success",
|
|
30
|
+
"warning",
|
|
31
|
+
"error"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "size",
|
|
36
|
+
"attribute": "size",
|
|
37
|
+
"control": "select",
|
|
38
|
+
"default": "md",
|
|
39
|
+
"label": "Size",
|
|
40
|
+
"options": [
|
|
41
|
+
"sm",
|
|
42
|
+
"md"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"slots": [
|
|
47
|
+
{
|
|
48
|
+
"default": "New",
|
|
49
|
+
"label": "Content"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"tag": "dsgn-button",
|
|
55
|
+
"module": "@ds-gn/ui/button",
|
|
56
|
+
"props": [
|
|
57
|
+
{
|
|
58
|
+
"name": "surface",
|
|
59
|
+
"attribute": "surface",
|
|
60
|
+
"control": "select",
|
|
61
|
+
"default": "dark",
|
|
62
|
+
"label": "Surface",
|
|
63
|
+
"options": [
|
|
64
|
+
"dark",
|
|
65
|
+
"light"
|
|
66
|
+
],
|
|
67
|
+
"includeDefault": true
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "appearance",
|
|
71
|
+
"attribute": "appearance",
|
|
72
|
+
"control": "select",
|
|
73
|
+
"default": "solid",
|
|
74
|
+
"label": "Appearance",
|
|
75
|
+
"options": [
|
|
76
|
+
"solid",
|
|
77
|
+
"outline",
|
|
78
|
+
"ghost",
|
|
79
|
+
"link",
|
|
80
|
+
"inline",
|
|
81
|
+
"mono-solid",
|
|
82
|
+
"mono-outline",
|
|
83
|
+
"gradient"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "buttonWeight",
|
|
88
|
+
"attribute": "button-weight",
|
|
89
|
+
"control": "select",
|
|
90
|
+
"default": "semibold",
|
|
91
|
+
"label": "Weight",
|
|
92
|
+
"options": [
|
|
93
|
+
"normal",
|
|
94
|
+
"medium",
|
|
95
|
+
"semibold",
|
|
96
|
+
"bold"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "size",
|
|
101
|
+
"attribute": "size",
|
|
102
|
+
"control": "select",
|
|
103
|
+
"default": "md",
|
|
104
|
+
"label": "Size",
|
|
105
|
+
"options": [
|
|
106
|
+
"sm",
|
|
107
|
+
"md",
|
|
108
|
+
"lg"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "type",
|
|
113
|
+
"attribute": "type",
|
|
114
|
+
"control": "select",
|
|
115
|
+
"default": "button",
|
|
116
|
+
"label": "Type",
|
|
117
|
+
"options": [
|
|
118
|
+
"button",
|
|
119
|
+
"submit",
|
|
120
|
+
"reset"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "iconName",
|
|
125
|
+
"attribute": "icon-name",
|
|
126
|
+
"control": "select",
|
|
127
|
+
"default": "",
|
|
128
|
+
"label": "Icon",
|
|
129
|
+
"options": [
|
|
130
|
+
"",
|
|
131
|
+
"arrowLeft",
|
|
132
|
+
"arrowRight",
|
|
133
|
+
"calendar",
|
|
134
|
+
"check",
|
|
135
|
+
"chevronDown",
|
|
136
|
+
"chevronLeft",
|
|
137
|
+
"chevronRight",
|
|
138
|
+
"chevronUp",
|
|
139
|
+
"circleAlert",
|
|
140
|
+
"circleCheck",
|
|
141
|
+
"circleX",
|
|
142
|
+
"copy",
|
|
143
|
+
"download",
|
|
144
|
+
"ellipsis",
|
|
145
|
+
"ellipsisVertical",
|
|
146
|
+
"externalLink",
|
|
147
|
+
"eye",
|
|
148
|
+
"eyeOff",
|
|
149
|
+
"info",
|
|
150
|
+
"loader",
|
|
151
|
+
"mail",
|
|
152
|
+
"menu",
|
|
153
|
+
"minus",
|
|
154
|
+
"pencil",
|
|
155
|
+
"plus",
|
|
156
|
+
"search",
|
|
157
|
+
"settings",
|
|
158
|
+
"trash2",
|
|
159
|
+
"triangleAlert",
|
|
160
|
+
"upload",
|
|
161
|
+
"user",
|
|
162
|
+
"x"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "iconPosition",
|
|
167
|
+
"attribute": "icon-position",
|
|
168
|
+
"control": "select",
|
|
169
|
+
"default": "leading",
|
|
170
|
+
"label": "Icon Position",
|
|
171
|
+
"options": [
|
|
172
|
+
"leading",
|
|
173
|
+
"trailing",
|
|
174
|
+
"only"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "disabled",
|
|
179
|
+
"attribute": "disabled",
|
|
180
|
+
"control": "boolean",
|
|
181
|
+
"default": false,
|
|
182
|
+
"label": "Disabled"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "loading",
|
|
186
|
+
"attribute": "loading",
|
|
187
|
+
"control": "boolean",
|
|
188
|
+
"default": false,
|
|
189
|
+
"label": "Loading"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "href",
|
|
193
|
+
"attribute": "href",
|
|
194
|
+
"control": "text",
|
|
195
|
+
"default": "",
|
|
196
|
+
"label": "Link URL"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "target",
|
|
200
|
+
"attribute": "target",
|
|
201
|
+
"control": "select",
|
|
202
|
+
"default": "_self",
|
|
203
|
+
"label": "Target",
|
|
204
|
+
"options": [
|
|
205
|
+
"_self",
|
|
206
|
+
"_blank"
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"slots": [
|
|
211
|
+
{
|
|
212
|
+
"default": "Get started",
|
|
213
|
+
"label": "Content"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"tag": "dsgn-card",
|
|
219
|
+
"module": "@ds-gn/ui/card",
|
|
220
|
+
"props": [
|
|
221
|
+
{
|
|
222
|
+
"name": "surface",
|
|
223
|
+
"attribute": "surface",
|
|
224
|
+
"control": "select",
|
|
225
|
+
"default": "dark",
|
|
226
|
+
"label": "Surface",
|
|
227
|
+
"options": [
|
|
228
|
+
"dark",
|
|
229
|
+
"light"
|
|
230
|
+
],
|
|
231
|
+
"includeDefault": true
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "variant",
|
|
235
|
+
"attribute": "variant",
|
|
236
|
+
"control": "select",
|
|
237
|
+
"default": "outlined",
|
|
238
|
+
"label": "Variant",
|
|
239
|
+
"options": [
|
|
240
|
+
"elevated",
|
|
241
|
+
"outlined"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "padding",
|
|
246
|
+
"attribute": "padding",
|
|
247
|
+
"control": "select",
|
|
248
|
+
"default": "md",
|
|
249
|
+
"label": "Padding",
|
|
250
|
+
"options": [
|
|
251
|
+
"none",
|
|
252
|
+
"sm",
|
|
253
|
+
"md",
|
|
254
|
+
"lg"
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"slots": [
|
|
259
|
+
{
|
|
260
|
+
"name": "footer",
|
|
261
|
+
"default": "Built with DS-GN",
|
|
262
|
+
"label": "Footer"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"nested": [
|
|
266
|
+
{
|
|
267
|
+
"tag": "dsgn-badge",
|
|
268
|
+
"slot": "badge",
|
|
269
|
+
"label": "Badge"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"tag": "dsgn-heading",
|
|
273
|
+
"slot": "heading",
|
|
274
|
+
"label": "Heading"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"tag": "dsgn-heading",
|
|
280
|
+
"module": "@ds-gn/ui/heading",
|
|
281
|
+
"props": [
|
|
282
|
+
{
|
|
283
|
+
"name": "surface",
|
|
284
|
+
"attribute": "surface",
|
|
285
|
+
"control": "select",
|
|
286
|
+
"default": "dark",
|
|
287
|
+
"label": "Surface",
|
|
288
|
+
"options": [
|
|
289
|
+
"dark",
|
|
290
|
+
"light"
|
|
291
|
+
],
|
|
292
|
+
"includeDefault": true
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "headingSize",
|
|
296
|
+
"attribute": "heading-size",
|
|
297
|
+
"control": "select",
|
|
298
|
+
"default": "h3",
|
|
299
|
+
"label": "Size",
|
|
300
|
+
"options": [
|
|
301
|
+
"h1",
|
|
302
|
+
"h2",
|
|
303
|
+
"h3",
|
|
304
|
+
"h4",
|
|
305
|
+
"h5",
|
|
306
|
+
"h6",
|
|
307
|
+
"hero"
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "headingWeight",
|
|
312
|
+
"attribute": "heading-weight",
|
|
313
|
+
"control": "select",
|
|
314
|
+
"default": "semibold",
|
|
315
|
+
"label": "Weight",
|
|
316
|
+
"options": [
|
|
317
|
+
"normal",
|
|
318
|
+
"semibold",
|
|
319
|
+
"bold",
|
|
320
|
+
"extrabold"
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"slots": [
|
|
325
|
+
{
|
|
326
|
+
"default": "A flexible card",
|
|
327
|
+
"label": "Content"
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"tag": "dsgn-heading-block",
|
|
333
|
+
"module": "@ds-gn/ui/heading-block",
|
|
334
|
+
"props": [
|
|
335
|
+
{
|
|
336
|
+
"name": "surface",
|
|
337
|
+
"attribute": "surface",
|
|
338
|
+
"control": "select",
|
|
339
|
+
"default": "dark",
|
|
340
|
+
"label": "Surface",
|
|
341
|
+
"options": [
|
|
342
|
+
"dark",
|
|
343
|
+
"light"
|
|
344
|
+
],
|
|
345
|
+
"includeDefault": true
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "alignment",
|
|
349
|
+
"attribute": "alignment",
|
|
350
|
+
"control": "select",
|
|
351
|
+
"default": "start",
|
|
352
|
+
"label": "Alignment",
|
|
353
|
+
"options": [
|
|
354
|
+
"start",
|
|
355
|
+
"center"
|
|
356
|
+
]
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
"slots": [
|
|
360
|
+
{
|
|
361
|
+
"name": "eyebrow",
|
|
362
|
+
"default": "Featured",
|
|
363
|
+
"label": "Eyebrow"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "description",
|
|
367
|
+
"default": "Compose nested components with their own controls.",
|
|
368
|
+
"label": "Description"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"nested": [
|
|
372
|
+
{
|
|
373
|
+
"tag": "dsgn-heading",
|
|
374
|
+
"slot": "heading",
|
|
375
|
+
"label": "Heading"
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"tag": "dsgn-input",
|
|
381
|
+
"module": "@ds-gn/ui/input",
|
|
382
|
+
"props": [
|
|
383
|
+
{
|
|
384
|
+
"name": "surface",
|
|
385
|
+
"attribute": "surface",
|
|
386
|
+
"control": "select",
|
|
387
|
+
"default": "dark",
|
|
388
|
+
"label": "Surface",
|
|
389
|
+
"options": [
|
|
390
|
+
"dark",
|
|
391
|
+
"light"
|
|
392
|
+
],
|
|
393
|
+
"includeDefault": true
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "type",
|
|
397
|
+
"attribute": "type",
|
|
398
|
+
"control": "select",
|
|
399
|
+
"default": "text",
|
|
400
|
+
"label": "Type",
|
|
401
|
+
"options": [
|
|
402
|
+
"text",
|
|
403
|
+
"email"
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "size",
|
|
408
|
+
"attribute": "size",
|
|
409
|
+
"control": "select",
|
|
410
|
+
"default": "md",
|
|
411
|
+
"label": "Size",
|
|
412
|
+
"options": [
|
|
413
|
+
"sm",
|
|
414
|
+
"md",
|
|
415
|
+
"lg"
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "label",
|
|
420
|
+
"attribute": "label",
|
|
421
|
+
"control": "text",
|
|
422
|
+
"default": "Email address",
|
|
423
|
+
"label": "Label"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "placeholder",
|
|
427
|
+
"attribute": "placeholder",
|
|
428
|
+
"control": "text",
|
|
429
|
+
"default": "you@example.com",
|
|
430
|
+
"label": "Placeholder"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "value",
|
|
434
|
+
"attribute": "value",
|
|
435
|
+
"control": "text",
|
|
436
|
+
"default": "",
|
|
437
|
+
"label": "Value"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "disabled",
|
|
441
|
+
"attribute": "disabled",
|
|
442
|
+
"control": "boolean",
|
|
443
|
+
"default": false,
|
|
444
|
+
"label": "Disabled"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "required",
|
|
448
|
+
"attribute": "required",
|
|
449
|
+
"control": "boolean",
|
|
450
|
+
"default": false,
|
|
451
|
+
"label": "Required"
|
|
452
|
+
}
|
|
453
|
+
],
|
|
454
|
+
"slots": []
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"tag": "dsgn-modal",
|
|
458
|
+
"module": "@ds-gn/ui/modal",
|
|
459
|
+
"props": [
|
|
460
|
+
{
|
|
461
|
+
"name": "surface",
|
|
462
|
+
"attribute": "surface",
|
|
463
|
+
"control": "select",
|
|
464
|
+
"default": "dark",
|
|
465
|
+
"label": "Surface",
|
|
466
|
+
"options": [
|
|
467
|
+
"dark",
|
|
468
|
+
"light"
|
|
469
|
+
],
|
|
470
|
+
"includeDefault": true
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "open",
|
|
474
|
+
"attribute": "open",
|
|
475
|
+
"control": "boolean",
|
|
476
|
+
"default": false,
|
|
477
|
+
"label": "Open"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "placement",
|
|
481
|
+
"attribute": "placement",
|
|
482
|
+
"control": "select",
|
|
483
|
+
"default": "center",
|
|
484
|
+
"label": "Placement",
|
|
485
|
+
"options": [
|
|
486
|
+
"center",
|
|
487
|
+
"left",
|
|
488
|
+
"right",
|
|
489
|
+
"top",
|
|
490
|
+
"bottom"
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "motion",
|
|
495
|
+
"attribute": "motion",
|
|
496
|
+
"control": "select",
|
|
497
|
+
"default": "inherit",
|
|
498
|
+
"label": "Motion",
|
|
499
|
+
"options": [
|
|
500
|
+
"inherit",
|
|
501
|
+
"none",
|
|
502
|
+
"center",
|
|
503
|
+
"left",
|
|
504
|
+
"right",
|
|
505
|
+
"top",
|
|
506
|
+
"bottom"
|
|
507
|
+
]
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "size",
|
|
511
|
+
"attribute": "size",
|
|
512
|
+
"control": "select",
|
|
513
|
+
"default": "md",
|
|
514
|
+
"label": "Size",
|
|
515
|
+
"options": [
|
|
516
|
+
"sm",
|
|
517
|
+
"md",
|
|
518
|
+
"lg",
|
|
519
|
+
"xl",
|
|
520
|
+
"full"
|
|
521
|
+
]
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "noBackdropDismiss",
|
|
525
|
+
"attribute": "no-backdrop-dismiss",
|
|
526
|
+
"control": "boolean",
|
|
527
|
+
"default": false,
|
|
528
|
+
"label": "Block backdrop dismiss"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "noEscapeDismiss",
|
|
532
|
+
"attribute": "no-escape-dismiss",
|
|
533
|
+
"control": "boolean",
|
|
534
|
+
"default": false,
|
|
535
|
+
"label": "Block Escape dismiss"
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
"slots": [
|
|
539
|
+
{
|
|
540
|
+
"name": "heading",
|
|
541
|
+
"default": "Delete project",
|
|
542
|
+
"label": "Heading"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "description",
|
|
546
|
+
"default": "This removes the project and everything in it.",
|
|
547
|
+
"label": "Description"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"default": "Members lose access immediately. This cannot be undone.",
|
|
551
|
+
"label": "Content"
|
|
552
|
+
}
|
|
553
|
+
]
|
|
554
|
+
}
|
|
555
|
+
];
|
|
556
|
+
export default playgroundManifest;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Background as BackgroundElement } from '@ds-gn/ui/background';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-background>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-background>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Background: import("@lit/react").ReactWebComponent<BackgroundElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Background.ts
|
|
2
|
+
import { Background as BackgroundElement } from "@ds-gn/ui/background";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Background = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-background",
|
|
8
|
+
elementClass: BackgroundElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Background
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Badge as BadgeElement } from '@ds-gn/ui/badge';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-badge>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-badge>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Badge: import("@lit/react").ReactWebComponent<BadgeElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Badge.ts
|
|
2
|
+
import { Badge as BadgeElement } from "@ds-gn/ui/badge";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Badge = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-badge",
|
|
8
|
+
elementClass: BadgeElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Badge
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Button as ButtonElement } from '@ds-gn/ui/button';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-button>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-button>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Button: import("@lit/react").ReactWebComponent<ButtonElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Button.ts
|
|
2
|
+
import { Button as ButtonElement } from "@ds-gn/ui/button";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Button = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-button",
|
|
8
|
+
elementClass: ButtonElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Button
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Card as CardElement } from '@ds-gn/ui/card';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-card>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-card>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Card: import("@lit/react").ReactWebComponent<CardElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Card.ts
|
|
2
|
+
import { Card as CardElement } from "@ds-gn/ui/card";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Card = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-card",
|
|
8
|
+
elementClass: CardElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Card
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CodeBlock as CodeBlockElement } from '@ds-gn/ui/code-block';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-code-block>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-code-block>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CodeBlock: import("@lit/react").ReactWebComponent<CodeBlockElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/CodeBlock.ts
|
|
2
|
+
import { CodeBlock as CodeBlockElement } from "@ds-gn/ui/code-block";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var CodeBlock = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-code-block",
|
|
8
|
+
elementClass: CodeBlockElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
CodeBlock
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Container as ContainerElement } from '@ds-gn/ui/container';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-container>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-container>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Container: import("@lit/react").ReactWebComponent<ContainerElement, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// frameworks/react/Container.ts
|
|
2
|
+
import { Container as ContainerElement } from "@ds-gn/ui/container";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
var Container = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: "dsgn-container",
|
|
8
|
+
elementClass: ContainerElement,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
Container
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Divider as DividerElement } from '@ds-gn/ui/divider';
|
|
2
|
+
/**
|
|
3
|
+
* React wrapper for the `<dsgn-divider>` element. Import-safe under Node SSR: emits an
|
|
4
|
+
* inert `<dsgn-divider>` tag on the server and upgrades on the client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Divider: import("@lit/react").ReactWebComponent<DividerElement, {}>;
|