@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,372 @@
1
+ var __legacyDecorateClassTS = function(decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
4
+ r = Reflect.decorate(decorators, target, key, desc);
5
+ else
6
+ for (var i = decorators.length - 1;i >= 0; i--)
7
+ if (d = decorators[i])
8
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+
12
+ // common/Base/Base.ts
13
+ import { html, LitElement } from "lit";
14
+
15
+ // common/helpers/define-element.ts
16
+ var defineElement = (tag, ctor) => {
17
+ if (typeof customElements === "undefined")
18
+ return;
19
+ if (!customElements.get(tag))
20
+ customElements.define(tag, ctor);
21
+ };
22
+
23
+ // common/Base/Base.css
24
+ import { css } from "lit";
25
+ var styles = css`/* Base reset in @layer base ensures it comes before utilities in Tailwind v4 cascade
26
+ This prevents the reset from overriding component utility classes */
27
+ @layer base {
28
+ :host {
29
+ display: block;
30
+ box-sizing: border-box;
31
+ line-height: 1.5;
32
+ -webkit-text-size-adjust: 100%;
33
+ tab-size: 4;
34
+ font-family: var(
35
+ --default-font-family,
36
+ var(--font-sans, ui-sans-serif, system-ui, sans-serif)
37
+ );
38
+ }
39
+
40
+ *,
41
+ *::before,
42
+ *::after {
43
+ box-sizing: inherit;
44
+ margin: 0;
45
+ padding: 0;
46
+ border: 0 solid;
47
+ }
48
+
49
+ :host h1,
50
+ :host h2,
51
+ :host h3,
52
+ :host h4,
53
+ :host h5,
54
+ :host h6 {
55
+ font-size: inherit;
56
+ font-weight: inherit;
57
+ margin: 0;
58
+ padding: 0;
59
+ }
60
+ }
61
+ `;
62
+ var Base_default = styles;
63
+
64
+ // common/Base/Base.ts
65
+ class Base extends LitElement {
66
+ static styles = Base_default;
67
+ updateTheme(changedProperties, surface) {
68
+ if (changedProperties.has("surface")) {
69
+ if (surface) {
70
+ this.setAttribute("data-theme", surface);
71
+ } else {
72
+ this.removeAttribute("data-theme");
73
+ }
74
+ }
75
+ }
76
+ emit(name, detail, options = {}) {
77
+ return this.dispatchEvent(new CustomEvent(name, {
78
+ detail,
79
+ bubbles: true,
80
+ composed: true,
81
+ cancelable: options.cancelable ?? false
82
+ }));
83
+ }
84
+ render() {
85
+ return html`<slot></slot>`;
86
+ }
87
+ }
88
+ defineElement("dsgn-base", Base);
89
+
90
+ // common/helpers/enum-validator.ts
91
+ var enumValidator = (propName, enumSet, candidateValue) => {
92
+ if (!enumSet.has(candidateValue)) {
93
+ throw new Error(`Invalid prop ${propName} of value ${candidateValue}. Expected one of: ${Array.from(enumSet).join(", ")}`);
94
+ }
95
+ };
96
+
97
+ // common/helpers/enum-creator.ts
98
+ var enumCreator = (acceptableValues, propName, type, other = {}) => {
99
+ const acceptableValuesSet = new Set(acceptableValues);
100
+ return {
101
+ type,
102
+ hasChanged(newValue, oldValue) {
103
+ if (newValue !== oldValue) {
104
+ enumValidator(propName, acceptableValuesSet, newValue);
105
+ return true;
106
+ }
107
+ return false;
108
+ },
109
+ ...other
110
+ };
111
+ };
112
+
113
+ // common/props/surface/surface.props.ts
114
+ var surfaceValues = {
115
+ LIGHT: "light",
116
+ DARK: "dark"
117
+ };
118
+ var surfaceProps = enumCreator(Object.values(surfaceValues), "surface", String, { reflect: true });
119
+
120
+ // components/CodeBlock/src/CodeBlock.ts
121
+ import { html as html2 } from "lit";
122
+ import { property } from "lit/decorators.js";
123
+
124
+ // components/CodeBlock/src/CodeBlock.css
125
+ import { css as css2 } from "lit";
126
+ var styles2 = css2`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
127
+ @layer properties;
128
+ @layer theme {
129
+ :root, :host {
130
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
131
+ monospace;
132
+ --spacing: 0.25rem;
133
+ --color-terminal-bg: var(--terminal-bg, #09090b);
134
+ --color-terminal-border: var(--terminal-border, #1a1a1a);
135
+ --color-terminal-dot-red: var(--terminal-dot-red, #ea580c);
136
+ --color-terminal-dot-yellow: var(--terminal-dot-yellow, #fbbf24);
137
+ --color-terminal-muted: var(--terminal-muted, #a1a1aa);
138
+ --color-terminal-success: var(--terminal-success, #34d399);
139
+ --color-terminal-text: var(--terminal-text, #e4e4e7);
140
+ --color-terminal-titlebar: var(--terminal-titlebar, #0d0d0f);
141
+ }
142
+ }
143
+ @layer utilities {
144
+ .static {
145
+ position: static;
146
+ }
147
+ .m-0 {
148
+ margin: calc(var(--spacing) * 0);
149
+ }
150
+ .ml-2 {
151
+ margin-left: calc(var(--spacing) * 2);
152
+ }
153
+ .flex {
154
+ display: flex;
155
+ }
156
+ .h-\\[9px\\] {
157
+ height: 9px;
158
+ }
159
+ .w-\\[9px\\] {
160
+ width: 9px;
161
+ }
162
+ .shrink-0 {
163
+ flex-shrink: 0;
164
+ }
165
+ .items-center {
166
+ align-items: center;
167
+ }
168
+ .gap-\\[6px\\] {
169
+ gap: 6px;
170
+ }
171
+ .overflow-hidden {
172
+ overflow: hidden;
173
+ }
174
+ .rounded-\\[10px\\] {
175
+ border-radius: 10px;
176
+ }
177
+ .rounded-full {
178
+ border-radius: calc(infinity * 1px);
179
+ }
180
+ .border {
181
+ border-style: var(--tw-border-style);
182
+ border-width: 1px;
183
+ }
184
+ .border-b {
185
+ border-bottom-style: var(--tw-border-style);
186
+ border-bottom-width: 1px;
187
+ }
188
+ .border-terminal-border {
189
+ border-color: var(--color-terminal-border);
190
+ }
191
+ .bg-terminal-bg {
192
+ background-color: var(--color-terminal-bg);
193
+ }
194
+ .bg-terminal-dot-red {
195
+ background-color: var(--color-terminal-dot-red);
196
+ }
197
+ .bg-terminal-dot-yellow {
198
+ background-color: var(--color-terminal-dot-yellow);
199
+ }
200
+ .bg-terminal-success {
201
+ background-color: var(--color-terminal-success);
202
+ }
203
+ .bg-terminal-titlebar {
204
+ background-color: var(--color-terminal-titlebar);
205
+ }
206
+ .px-5 {
207
+ padding-inline: calc(var(--spacing) * 5);
208
+ }
209
+ .px-\\[14px\\] {
210
+ padding-inline: 14px;
211
+ }
212
+ .py-\\[10px\\] {
213
+ padding-block: 10px;
214
+ }
215
+ .py-\\[18px\\] {
216
+ padding-block: 18px;
217
+ }
218
+ .font-mono {
219
+ font-family: var(--font-mono);
220
+ }
221
+ .text-\\[11px\\] {
222
+ font-size: 11px;
223
+ }
224
+ .text-\\[13px\\] {
225
+ font-size: 13px;
226
+ }
227
+ .leading-\\[1\\.7\\] {
228
+ --tw-leading: 1.7;
229
+ line-height: 1.7;
230
+ }
231
+ .tracking-\\[0\\.02em\\] {
232
+ --tw-tracking: 0.02em;
233
+ letter-spacing: 0.02em;
234
+ }
235
+ .whitespace-pre {
236
+ white-space: pre;
237
+ }
238
+ .text-terminal-muted {
239
+ color: var(--color-terminal-muted);
240
+ }
241
+ .text-terminal-success {
242
+ color: var(--color-terminal-success);
243
+ }
244
+ .text-terminal-text {
245
+ color: var(--color-terminal-text);
246
+ }
247
+ .opacity-70 {
248
+ opacity: 70%;
249
+ }
250
+ }
251
+ @property --dsgn-border-sweep-angle {
252
+ syntax: '<angle>';
253
+ inherits: false;
254
+ initial-value: 0deg;
255
+ }
256
+ @property --tw-border-style {
257
+ syntax: "*";
258
+ inherits: false;
259
+ initial-value: solid;
260
+ }
261
+ @property --tw-leading {
262
+ syntax: "*";
263
+ inherits: false;
264
+ }
265
+ @property --tw-tracking {
266
+ syntax: "*";
267
+ inherits: false;
268
+ }
269
+ @layer properties {
270
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
271
+ *, ::before, ::after, ::backdrop {
272
+ --tw-border-style: solid;
273
+ --tw-leading: initial;
274
+ --tw-tracking: initial;
275
+ --dsgn-border-sweep-angle: 0deg;
276
+ }
277
+ }
278
+ }
279
+ `;
280
+ var CodeBlock_default = styles2;
281
+
282
+ // components/CodeBlock/src/CodeBlock.props.ts
283
+ var codeBlockDefaultPath = "~/project";
284
+
285
+ // ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
286
+ function r(e) {
287
+ var t, f, n = "";
288
+ if (typeof e == "string" || typeof e == "number")
289
+ n += e;
290
+ else if (typeof e == "object")
291
+ if (Array.isArray(e)) {
292
+ var o = e.length;
293
+ for (t = 0;t < o; t++)
294
+ e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
295
+ } else
296
+ for (f in e)
297
+ e[f] && (n && (n += " "), n += f);
298
+ return n;
299
+ }
300
+ function clsx() {
301
+ for (var e, t, f = 0, n = "", o = arguments.length;f < o; f++)
302
+ (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
303
+ return n;
304
+ }
305
+ var clsx_default = clsx;
306
+
307
+ // components/CodeBlock/src/CodeBlock.styles.ts
308
+ var classNames = () => clsx_default("overflow-hidden", "rounded-[10px]", "border", "border-terminal-border", "font-mono", "bg-terminal-bg");
309
+ var titleBarClassNames = () => clsx_default("flex", "items-center", "gap-[6px]", "px-[14px]", "py-[10px]", "border-b", "border-terminal-border", "bg-terminal-titlebar");
310
+ var dotClassNames = (color) => {
311
+ const colorMap = {
312
+ red: "bg-terminal-dot-red",
313
+ yellow: "bg-terminal-dot-yellow",
314
+ green: "bg-terminal-success"
315
+ };
316
+ return clsx_default("w-[9px]", "h-[9px]", "rounded-full", "opacity-70", "shrink-0", colorMap[color]);
317
+ };
318
+ var pathClassNames = () => clsx_default("ml-2", "text-[11px]", "text-terminal-muted", "tracking-[0.02em]");
319
+ var bodyClassNames = () => clsx_default("m-0", "px-5", "py-[18px]", "text-[13px]", "leading-[1.7]", "text-terminal-text", "whitespace-pre", "font-mono");
320
+ var promptClassNames = () => clsx_default("text-terminal-muted");
321
+ var commandClassNames = () => clsx_default("text-terminal-text");
322
+ var successClassNames = () => clsx_default("text-terminal-success");
323
+ var readyClassNames = () => clsx_default("text-terminal-muted");
324
+
325
+ // components/CodeBlock/src/CodeBlock.ts
326
+ class CodeBlock extends Base {
327
+ constructor() {
328
+ super(...arguments);
329
+ this.surface = surfaceValues.DARK;
330
+ this.command = "";
331
+ this.output = "";
332
+ this.path = codeBlockDefaultPath;
333
+ }
334
+ static styles = [Base.styles, CodeBlock_default];
335
+ updated(changedProperties) {
336
+ super.updated(changedProperties);
337
+ this.updateTheme(changedProperties, this.surface);
338
+ }
339
+ render() {
340
+ return html2`
341
+ <div class="${classNames()}">
342
+ <div class="${titleBarClassNames()}">
343
+ <span class="${dotClassNames("red")}"></span>
344
+ <span class="${dotClassNames("yellow")}"></span>
345
+ <span class="${dotClassNames("green")}"></span>
346
+ <span class="${pathClassNames()}">${this.path}</span>
347
+ </div>
348
+ <pre
349
+ class="${bodyClassNames()}"
350
+ ><span class="${promptClassNames()}">$ </span><span class="${commandClassNames()}">${this.command}</span>
351
+ <span class="${successClassNames()}"> ✓ ${this.output}</span>
352
+ <span class="${readyClassNames()}"> → ready</span></pre>
353
+ </div>
354
+ `;
355
+ }
356
+ }
357
+ __legacyDecorateClassTS([
358
+ property({ ...surfaceProps })
359
+ ], CodeBlock.prototype, "surface", undefined);
360
+ __legacyDecorateClassTS([
361
+ property({ type: String })
362
+ ], CodeBlock.prototype, "command", undefined);
363
+ __legacyDecorateClassTS([
364
+ property({ type: String })
365
+ ], CodeBlock.prototype, "output", undefined);
366
+ __legacyDecorateClassTS([
367
+ property({ type: String })
368
+ ], CodeBlock.prototype, "path", undefined);
369
+ defineElement("dsgn-code-block", CodeBlock);
370
+ export {
371
+ CodeBlock
372
+ };
@@ -0,0 +1 @@
1
+ export declare const codeBlockDefaultPath = "~/project";
@@ -0,0 +1,5 @@
1
+ // components/CodeBlock/src/CodeBlock.props.ts
2
+ var codeBlockDefaultPath = "~/project";
3
+ export {
4
+ codeBlockDefaultPath
5
+ };
@@ -0,0 +1,9 @@
1
+ export declare const classNames: () => string;
2
+ export declare const titleBarClassNames: () => string;
3
+ export declare const dotClassNames: (color: "red" | "yellow" | "green") => string;
4
+ export declare const pathClassNames: () => string;
5
+ export declare const bodyClassNames: () => string;
6
+ export declare const promptClassNames: () => string;
7
+ export declare const commandClassNames: () => string;
8
+ export declare const successClassNames: () => string;
9
+ export declare const readyClassNames: () => string;
@@ -0,0 +1,26 @@
1
+ import '../../../types/global.d.ts';
2
+ import { type CSSResultGroup } from 'lit';
3
+ import { Base } from '../../../common/Base/Base.js';
4
+ import { type ContainerPaddingType, type ContainerSizeType } from './Container.props.js';
5
+ /** @slot - Constrained page content. */
6
+ export declare class Container extends Base {
7
+ static styles: CSSResultGroup;
8
+ /**
9
+ * Maximum width of the container
10
+ */
11
+ size: ContainerSizeType;
12
+ /**
13
+ * Horizontal padding (padding-inline)
14
+ */
15
+ paddingX: ContainerPaddingType;
16
+ /**
17
+ * Vertical padding (padding-block)
18
+ */
19
+ paddingY: ContainerPaddingType;
20
+ render(): import("lit").TemplateResult<1>;
21
+ }
22
+ declare global {
23
+ interface HTMLElementTagNameMap {
24
+ 'dsgn-container': Container;
25
+ }
26
+ }