@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.
Files changed (271) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +155 -2
  3. package/THIRD_PARTY_NOTICES +167 -0
  4. package/assets/logo-full-dark.svg +4 -0
  5. package/assets/logo-full.svg +4 -0
  6. package/assets/logo-mark.svg +3 -0
  7. package/custom-elements.json +4696 -0
  8. package/dist/common/Base/Base.d.ts +22 -0
  9. package/dist/common/controllers/AuroraMeshController.d.ts +68 -0
  10. package/dist/common/controllers/AutoRotateController.d.ts +38 -0
  11. package/dist/common/controllers/BreakpointController.d.ts +30 -0
  12. package/dist/common/controllers/LayoutChangeController.d.ts +28 -0
  13. package/dist/common/controllers/WordCycleController.d.ts +36 -0
  14. package/dist/common/helpers/aurora-mesh.d.ts +11 -0
  15. package/dist/common/helpers/define-element.d.ts +14 -0
  16. package/dist/common/helpers/enum-creator.d.ts +2 -0
  17. package/dist/common/helpers/enum-validator.d.ts +1 -0
  18. package/dist/common/helpers/layout-change.d.ts +39 -0
  19. package/dist/common/helpers/layout-change.testing.d.ts +15 -0
  20. package/dist/common/helpers/logo.string.d.ts +23 -0
  21. package/dist/common/helpers/logo.string.js +43 -0
  22. package/dist/common/helpers/logo.utils.d.ts +8 -0
  23. package/dist/common/helpers/motion.d.ts +9 -0
  24. package/dist/common/helpers/story.utils.d.ts +32 -0
  25. package/dist/common/props/surface/surface.props.d.ts +6 -0
  26. package/dist/components/Background/src/Background.d.ts +44 -0
  27. package/dist/components/Background/src/Background.js +576 -0
  28. package/dist/components/Background/src/Background.props.d.ts +20 -0
  29. package/dist/components/Background/src/Background.props.js +47 -0
  30. package/dist/components/Background/src/Background.styles.d.ts +3 -0
  31. package/dist/components/Badge/src/Badge.d.ts +28 -0
  32. package/dist/components/Badge/src/Badge.js +429 -0
  33. package/dist/components/Badge/src/Badge.playground.d.ts +2 -0
  34. package/dist/components/Badge/src/Badge.props.d.ts +16 -0
  35. package/dist/components/Badge/src/Badge.props.js +44 -0
  36. package/dist/components/Badge/src/Badge.styles.d.ts +2 -0
  37. package/dist/components/Button/src/Button.d.ts +138 -0
  38. package/dist/components/Button/src/Button.js +1102 -0
  39. package/dist/components/Button/src/Button.playground.d.ts +2 -0
  40. package/dist/components/Button/src/Button.props.d.ts +47 -0
  41. package/dist/components/Button/src/Button.props.js +79 -0
  42. package/dist/components/Button/src/Button.styles.d.ts +11 -0
  43. package/dist/components/Card/src/Card.d.ts +39 -0
  44. package/dist/components/Card/src/Card.js +564 -0
  45. package/dist/components/Card/src/Card.playground.d.ts +2 -0
  46. package/dist/components/Card/src/Card.props.d.ts +22 -0
  47. package/dist/components/Card/src/Card.props.js +42 -0
  48. package/dist/components/Card/src/Card.styles.d.ts +11 -0
  49. package/dist/components/CodeBlock/src/CodeBlock.d.ts +18 -0
  50. package/dist/components/CodeBlock/src/CodeBlock.js +372 -0
  51. package/dist/components/CodeBlock/src/CodeBlock.props.d.ts +1 -0
  52. package/dist/components/CodeBlock/src/CodeBlock.props.js +5 -0
  53. package/dist/components/CodeBlock/src/CodeBlock.styles.d.ts +9 -0
  54. package/dist/components/Container/src/Container.d.ts +26 -0
  55. package/dist/components/Container/src/Container.js +354 -0
  56. package/dist/components/Container/src/Container.props.d.ts +20 -0
  57. package/dist/components/Container/src/Container.props.js +49 -0
  58. package/dist/components/Container/src/Container.styles.d.ts +2 -0
  59. package/dist/components/Divider/src/Divider.d.ts +23 -0
  60. package/dist/components/Divider/src/Divider.js +250 -0
  61. package/dist/components/Divider/src/Divider.props.d.ts +7 -0
  62. package/dist/components/Divider/src/Divider.props.js +34 -0
  63. package/dist/components/Divider/src/Divider.styles.d.ts +2 -0
  64. package/dist/components/FeatureItem/src/FeatureItem.d.ts +30 -0
  65. package/dist/components/FeatureItem/src/FeatureItem.js +368 -0
  66. package/dist/components/FeatureItem/src/FeatureItem.props.d.ts +10 -0
  67. package/dist/components/FeatureItem/src/FeatureItem.props.js +37 -0
  68. package/dist/components/FeatureItem/src/FeatureItem.styles.d.ts +3 -0
  69. package/dist/components/FeatureTabs/src/FeatureTabs.d.ts +48 -0
  70. package/dist/components/FeatureTabs/src/FeatureTabs.js +1333 -0
  71. package/dist/components/FeatureTabs/src/FeatureTabs.props.d.ts +27 -0
  72. package/dist/components/FeatureTabs/src/FeatureTabs.props.js +80 -0
  73. package/dist/components/FeatureTabs/src/FeatureTabs.styles.d.ts +35 -0
  74. package/dist/components/Footer/src/Footer.d.ts +39 -0
  75. package/dist/components/Footer/src/Footer.js +361 -0
  76. package/dist/components/Footer/src/Footer.styles.d.ts +6 -0
  77. package/dist/components/FormBlock/src/FormBlock.d.ts +40 -0
  78. package/dist/components/FormBlock/src/FormBlock.js +476 -0
  79. package/dist/components/FormBlock/src/FormBlock.props.d.ts +5 -0
  80. package/dist/components/FormBlock/src/FormBlock.props.js +8 -0
  81. package/dist/components/FormBlock/src/FormBlock.styles.d.ts +6 -0
  82. package/dist/components/Grid/src/Grid.d.ts +35 -0
  83. package/dist/components/Grid/src/Grid.js +381 -0
  84. package/dist/components/Grid/src/Grid.props.d.ts +28 -0
  85. package/dist/components/Grid/src/Grid.props.js +57 -0
  86. package/dist/components/Grid/src/Grid.styles.d.ts +3 -0
  87. package/dist/components/Heading/src/Heading.d.ts +26 -0
  88. package/dist/components/Heading/src/Heading.js +755 -0
  89. package/dist/components/Heading/src/Heading.playground.d.ts +2 -0
  90. package/dist/components/Heading/src/Heading.props.d.ts +19 -0
  91. package/dist/components/Heading/src/Heading.props.js +47 -0
  92. package/dist/components/Heading/src/Heading.styles.d.ts +4 -0
  93. package/dist/components/HeadingBlock/src/HeadingBlock.d.ts +28 -0
  94. package/dist/components/HeadingBlock/src/HeadingBlock.js +288 -0
  95. package/dist/components/HeadingBlock/src/HeadingBlock.playground.d.ts +2 -0
  96. package/dist/components/HeadingBlock/src/HeadingBlock.props.d.ts +6 -0
  97. package/dist/components/HeadingBlock/src/HeadingBlock.props.js +33 -0
  98. package/dist/components/HeadingBlock/src/HeadingBlock.styles.d.ts +2 -0
  99. package/dist/components/Hero/src/Hero.d.ts +42 -0
  100. package/dist/components/Hero/src/Hero.js +506 -0
  101. package/dist/components/Hero/src/Hero.props.d.ts +22 -0
  102. package/dist/components/Hero/src/Hero.props.js +51 -0
  103. package/dist/components/Hero/src/Hero.styles.d.ts +10 -0
  104. package/dist/components/Icon/src/Icon.d.ts +67 -0
  105. package/dist/components/Icon/src/Icon.js +303 -0
  106. package/dist/components/Icon/src/Icon.props.d.ts +8 -0
  107. package/dist/components/Icon/src/Icon.props.js +35 -0
  108. package/dist/components/Icon/src/Icon.styles.d.ts +3 -0
  109. package/dist/components/Icon/src/icons/arrow-left.d.ts +1 -0
  110. package/dist/components/Icon/src/icons/arrow-left.js +6 -0
  111. package/dist/components/Icon/src/icons/arrow-right.d.ts +1 -0
  112. package/dist/components/Icon/src/icons/arrow-right.js +6 -0
  113. package/dist/components/Icon/src/icons/calendar.d.ts +1 -0
  114. package/dist/components/Icon/src/icons/calendar.js +6 -0
  115. package/dist/components/Icon/src/icons/check.d.ts +1 -0
  116. package/dist/components/Icon/src/icons/check.js +6 -0
  117. package/dist/components/Icon/src/icons/chevron-down.d.ts +1 -0
  118. package/dist/components/Icon/src/icons/chevron-down.js +6 -0
  119. package/dist/components/Icon/src/icons/chevron-left.d.ts +1 -0
  120. package/dist/components/Icon/src/icons/chevron-left.js +6 -0
  121. package/dist/components/Icon/src/icons/chevron-right.d.ts +1 -0
  122. package/dist/components/Icon/src/icons/chevron-right.js +6 -0
  123. package/dist/components/Icon/src/icons/chevron-up.d.ts +1 -0
  124. package/dist/components/Icon/src/icons/chevron-up.js +6 -0
  125. package/dist/components/Icon/src/icons/circle-alert.d.ts +1 -0
  126. package/dist/components/Icon/src/icons/circle-alert.js +6 -0
  127. package/dist/components/Icon/src/icons/circle-check.d.ts +1 -0
  128. package/dist/components/Icon/src/icons/circle-check.js +6 -0
  129. package/dist/components/Icon/src/icons/circle-x.d.ts +1 -0
  130. package/dist/components/Icon/src/icons/circle-x.js +6 -0
  131. package/dist/components/Icon/src/icons/copy.d.ts +1 -0
  132. package/dist/components/Icon/src/icons/copy.js +6 -0
  133. package/dist/components/Icon/src/icons/download.d.ts +1 -0
  134. package/dist/components/Icon/src/icons/download.js +6 -0
  135. package/dist/components/Icon/src/icons/ellipsis-vertical.d.ts +1 -0
  136. package/dist/components/Icon/src/icons/ellipsis-vertical.js +6 -0
  137. package/dist/components/Icon/src/icons/ellipsis.d.ts +1 -0
  138. package/dist/components/Icon/src/icons/ellipsis.js +6 -0
  139. package/dist/components/Icon/src/icons/external-link.d.ts +1 -0
  140. package/dist/components/Icon/src/icons/external-link.js +6 -0
  141. package/dist/components/Icon/src/icons/eye-off.d.ts +1 -0
  142. package/dist/components/Icon/src/icons/eye-off.js +6 -0
  143. package/dist/components/Icon/src/icons/eye.d.ts +1 -0
  144. package/dist/components/Icon/src/icons/eye.js +6 -0
  145. package/dist/components/Icon/src/icons/icon-names.d.ts +2 -0
  146. package/dist/components/Icon/src/icons/icon-names.js +36 -0
  147. package/dist/components/Icon/src/icons/index.d.ts +34 -0
  148. package/dist/components/Icon/src/icons/index.js +35 -0
  149. package/dist/components/Icon/src/icons/info.d.ts +1 -0
  150. package/dist/components/Icon/src/icons/info.js +6 -0
  151. package/dist/components/Icon/src/icons/loader.d.ts +1 -0
  152. package/dist/components/Icon/src/icons/loader.js +6 -0
  153. package/dist/components/Icon/src/icons/mail.d.ts +1 -0
  154. package/dist/components/Icon/src/icons/mail.js +6 -0
  155. package/dist/components/Icon/src/icons/menu.d.ts +1 -0
  156. package/dist/components/Icon/src/icons/menu.js +6 -0
  157. package/dist/components/Icon/src/icons/minus.d.ts +1 -0
  158. package/dist/components/Icon/src/icons/minus.js +6 -0
  159. package/dist/components/Icon/src/icons/pencil.d.ts +1 -0
  160. package/dist/components/Icon/src/icons/pencil.js +6 -0
  161. package/dist/components/Icon/src/icons/plus.d.ts +1 -0
  162. package/dist/components/Icon/src/icons/plus.js +6 -0
  163. package/dist/components/Icon/src/icons/search.d.ts +1 -0
  164. package/dist/components/Icon/src/icons/search.js +6 -0
  165. package/dist/components/Icon/src/icons/settings.d.ts +1 -0
  166. package/dist/components/Icon/src/icons/settings.js +6 -0
  167. package/dist/components/Icon/src/icons/trash-2.d.ts +1 -0
  168. package/dist/components/Icon/src/icons/trash-2.js +6 -0
  169. package/dist/components/Icon/src/icons/triangle-alert.d.ts +1 -0
  170. package/dist/components/Icon/src/icons/triangle-alert.js +6 -0
  171. package/dist/components/Icon/src/icons/upload.d.ts +1 -0
  172. package/dist/components/Icon/src/icons/upload.js +6 -0
  173. package/dist/components/Icon/src/icons/user.d.ts +1 -0
  174. package/dist/components/Icon/src/icons/user.js +6 -0
  175. package/dist/components/Icon/src/icons/x.d.ts +1 -0
  176. package/dist/components/Icon/src/icons/x.js +6 -0
  177. package/dist/components/Image/src/Image.d.ts +76 -0
  178. package/dist/components/Image/src/Image.js +456 -0
  179. package/dist/components/Image/src/Image.props.d.ts +35 -0
  180. package/dist/components/Image/src/Image.props.js +65 -0
  181. package/dist/components/Image/src/Image.styles.d.ts +4 -0
  182. package/dist/components/Input/src/Input.d.ts +60 -0
  183. package/dist/components/Input/src/Input.js +648 -0
  184. package/dist/components/Input/src/Input.playground.d.ts +2 -0
  185. package/dist/components/Input/src/Input.props.d.ts +13 -0
  186. package/dist/components/Input/src/Input.props.js +41 -0
  187. package/dist/components/Input/src/Input.styles.d.ts +6 -0
  188. package/dist/components/Modal/src/Modal.d.ts +166 -0
  189. package/dist/components/Modal/src/Modal.js +1434 -0
  190. package/dist/components/Modal/src/Modal.playground.d.ts +2 -0
  191. package/dist/components/Modal/src/Modal.props.d.ts +66 -0
  192. package/dist/components/Modal/src/Modal.props.js +65 -0
  193. package/dist/components/Modal/src/Modal.styles.d.ts +29 -0
  194. package/dist/components/Nav/src/Nav.d.ts +66 -0
  195. package/dist/components/Nav/src/Nav.js +750 -0
  196. package/dist/components/Nav/src/Nav.props.d.ts +8 -0
  197. package/dist/components/Nav/src/Nav.props.js +13 -0
  198. package/dist/components/Nav/src/Nav.styles.d.ts +10 -0
  199. package/dist/components/NavDropdownColumn/src/NavDropdownColumn.d.ts +17 -0
  200. package/dist/components/NavDropdownColumn/src/NavDropdownColumn.js +170 -0
  201. package/dist/components/NavDropdownColumn/src/NavDropdownColumn.styles.d.ts +1 -0
  202. package/dist/components/NavLink/src/NavLink.d.ts +191 -0
  203. package/dist/components/NavLink/src/NavLink.js +1916 -0
  204. package/dist/components/NavLink/src/NavLink.props.d.ts +38 -0
  205. package/dist/components/NavLink/src/NavLink.props.js +58 -0
  206. package/dist/components/NavLink/src/NavLink.styles.d.ts +22 -0
  207. package/dist/components/Stack/src/Stack.d.ts +30 -0
  208. package/dist/components/Stack/src/Stack.js +300 -0
  209. package/dist/components/Stack/src/Stack.props.d.ts +24 -0
  210. package/dist/components/Stack/src/Stack.props.js +53 -0
  211. package/dist/components/Stack/src/Stack.styles.d.ts +2 -0
  212. package/dist/components/Text/src/Text.d.ts +32 -0
  213. package/dist/components/Text/src/Text.js +327 -0
  214. package/dist/components/Text/src/Text.props.d.ts +23 -0
  215. package/dist/components/Text/src/Text.props.js +52 -0
  216. package/dist/components/Text/src/Text.styles.d.ts +2 -0
  217. package/dist/playground/types.d.ts +29 -0
  218. package/dist/playground-manifest.d.ts +6 -0
  219. package/dist/playground-manifest.js +556 -0
  220. package/dist/react/Background.d.ts +6 -0
  221. package/dist/react/Background.js +13 -0
  222. package/dist/react/Badge.d.ts +6 -0
  223. package/dist/react/Badge.js +13 -0
  224. package/dist/react/Button.d.ts +6 -0
  225. package/dist/react/Button.js +13 -0
  226. package/dist/react/Card.d.ts +6 -0
  227. package/dist/react/Card.js +13 -0
  228. package/dist/react/CodeBlock.d.ts +6 -0
  229. package/dist/react/CodeBlock.js +13 -0
  230. package/dist/react/Container.d.ts +6 -0
  231. package/dist/react/Container.js +13 -0
  232. package/dist/react/Divider.d.ts +6 -0
  233. package/dist/react/Divider.js +13 -0
  234. package/dist/react/FeatureItem.d.ts +6 -0
  235. package/dist/react/FeatureItem.js +13 -0
  236. package/dist/react/FeatureTabs.d.ts +6 -0
  237. package/dist/react/FeatureTabs.js +13 -0
  238. package/dist/react/Footer.d.ts +6 -0
  239. package/dist/react/Footer.js +13 -0
  240. package/dist/react/FormBlock.d.ts +6 -0
  241. package/dist/react/FormBlock.js +13 -0
  242. package/dist/react/Grid.d.ts +6 -0
  243. package/dist/react/Grid.js +13 -0
  244. package/dist/react/Heading.d.ts +6 -0
  245. package/dist/react/Heading.js +13 -0
  246. package/dist/react/HeadingBlock.d.ts +6 -0
  247. package/dist/react/HeadingBlock.js +13 -0
  248. package/dist/react/Hero.d.ts +6 -0
  249. package/dist/react/Hero.js +13 -0
  250. package/dist/react/Icon.d.ts +6 -0
  251. package/dist/react/Icon.js +13 -0
  252. package/dist/react/Image.d.ts +8 -0
  253. package/dist/react/Image.js +13 -0
  254. package/dist/react/Input.d.ts +8 -0
  255. package/dist/react/Input.js +13 -0
  256. package/dist/react/Modal.d.ts +10 -0
  257. package/dist/react/Modal.js +17 -0
  258. package/dist/react/Nav.d.ts +6 -0
  259. package/dist/react/Nav.js +13 -0
  260. package/dist/react/NavDropdownColumn.d.ts +6 -0
  261. package/dist/react/NavDropdownColumn.js +13 -0
  262. package/dist/react/NavLink.d.ts +8 -0
  263. package/dist/react/NavLink.js +13 -0
  264. package/dist/react/Stack.d.ts +6 -0
  265. package/dist/react/Stack.js +13 -0
  266. package/dist/react/Text.d.ts +6 -0
  267. package/dist/react/Text.js +13 -0
  268. package/dist/react/index.d.ts +24 -0
  269. package/dist/react/index.js +25 -0
  270. package/dist/surface/surface.props.js +33 -0
  271. 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
+ };