@contractspec/bundle.marketing 1.12.0 → 1.14.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 (262) hide show
  1. package/.turbo/turbo-build.log +146 -175
  2. package/.turbo/turbo-prebuild.log +1 -0
  3. package/CHANGELOG.md +57 -0
  4. package/dist/browser/components/marketing/ChangelogPage.js +92 -0
  5. package/dist/browser/components/marketing/CofounderPage.js +581 -0
  6. package/dist/browser/components/marketing/ContactClient.js +1379 -0
  7. package/dist/browser/components/marketing/ContributePage.js +487 -0
  8. package/dist/browser/components/marketing/DesignPartnerPage.js +272 -0
  9. package/dist/browser/components/marketing/LandingPage.js +629 -0
  10. package/dist/browser/components/marketing/PricingClient.js +1972 -0
  11. package/dist/browser/components/marketing/ProductClientPage.js +563 -0
  12. package/dist/browser/components/marketing/index.js +4818 -0
  13. package/dist/browser/components/marketing/pricing-thinking-modal.js +258 -0
  14. package/dist/browser/components/marketing/sections/AudienceSection.js +90 -0
  15. package/dist/browser/components/marketing/sections/CorePositioningSection.js +72 -0
  16. package/dist/browser/components/marketing/sections/CtaSection.js +67 -0
  17. package/dist/browser/components/marketing/sections/DevelopersSection.js +50 -0
  18. package/dist/browser/components/marketing/sections/FearsSection.js +105 -0
  19. package/dist/browser/components/marketing/sections/HeroMarketingSection.js +93 -0
  20. package/dist/browser/components/marketing/sections/IconGridSection.js +63 -0
  21. package/dist/browser/components/marketing/sections/OutputsSection.js +116 -0
  22. package/dist/browser/components/marketing/sections/ProblemSection.js +103 -0
  23. package/dist/browser/components/marketing/sections/SolutionSection.js +103 -0
  24. package/dist/browser/components/marketing/sections/StepsSection.js +109 -0
  25. package/dist/browser/components/marketing/waitlist-section.js +1104 -0
  26. package/dist/browser/components/templates/TemplatesClientPage.js +5662 -0
  27. package/dist/browser/components/templates/TemplatesPage.js +177 -0
  28. package/dist/browser/components/templates/TemplatesPreviewModal.js +124 -0
  29. package/dist/browser/components/templates/index.js +5831 -0
  30. package/dist/browser/index.js +6485 -0
  31. package/dist/browser/libs/email/client.js +122 -0
  32. package/dist/browser/libs/email/contact.js +190 -0
  33. package/dist/browser/libs/email/newsletter.js +215 -0
  34. package/dist/browser/libs/email/types.js +2 -0
  35. package/dist/browser/libs/email/utils.js +16 -0
  36. package/dist/browser/libs/email/waitlist-application.js +295 -0
  37. package/dist/browser/libs/email/waitlist.js +225 -0
  38. package/dist/browser/libs/pricing-examples.js +26 -0
  39. package/dist/browser/registry/engine.js +5293 -0
  40. package/dist/browser/registry/factory.js +52 -0
  41. package/dist/browser/registry/index.js +5358 -0
  42. package/dist/browser/registry/registry-docs.js +343 -0
  43. package/dist/browser/registry/registry-landing.js +4937 -0
  44. package/dist/browser/registry/registry.js +5279 -0
  45. package/dist/browser/registry/types.js +0 -0
  46. package/dist/browser/registry/utils.js +5340 -0
  47. package/dist/components/marketing/ChangelogPage.d.ts +11 -17
  48. package/dist/components/marketing/ChangelogPage.d.ts.map +1 -1
  49. package/dist/components/marketing/ChangelogPage.js +84 -62
  50. package/dist/components/marketing/CofounderPage.d.ts +1 -6
  51. package/dist/components/marketing/CofounderPage.d.ts.map +1 -1
  52. package/dist/components/marketing/CofounderPage.js +544 -436
  53. package/dist/components/marketing/ContactClient.d.ts +1 -6
  54. package/dist/components/marketing/ContactClient.d.ts.map +1 -1
  55. package/dist/components/marketing/ContactClient.js +1371 -155
  56. package/dist/components/marketing/ContributePage.d.ts +3 -8
  57. package/dist/components/marketing/ContributePage.d.ts.map +1 -1
  58. package/dist/components/marketing/ContributePage.js +478 -358
  59. package/dist/components/marketing/DesignPartnerPage.d.ts +3 -8
  60. package/dist/components/marketing/DesignPartnerPage.d.ts.map +1 -1
  61. package/dist/components/marketing/DesignPartnerPage.js +263 -211
  62. package/dist/components/marketing/LandingPage.d.ts +1 -6
  63. package/dist/components/marketing/LandingPage.d.ts.map +1 -1
  64. package/dist/components/marketing/LandingPage.js +623 -37
  65. package/dist/components/marketing/PricingClient.d.ts +1 -6
  66. package/dist/components/marketing/PricingClient.d.ts.map +1 -1
  67. package/dist/components/marketing/PricingClient.js +1962 -516
  68. package/dist/components/marketing/ProductClientPage.d.ts +1 -6
  69. package/dist/components/marketing/ProductClientPage.d.ts.map +1 -1
  70. package/dist/components/marketing/ProductClientPage.js +556 -458
  71. package/dist/components/marketing/index.d.ts +11 -11
  72. package/dist/components/marketing/index.d.ts.map +1 -0
  73. package/dist/components/marketing/index.js +4813 -12
  74. package/dist/components/marketing/pricing-thinking-modal.d.ts +5 -13
  75. package/dist/components/marketing/pricing-thinking-modal.d.ts.map +1 -1
  76. package/dist/components/marketing/pricing-thinking-modal.js +248 -197
  77. package/dist/components/marketing/sections/AudienceSection.d.ts +1 -6
  78. package/dist/components/marketing/sections/AudienceSection.d.ts.map +1 -1
  79. package/dist/components/marketing/sections/AudienceSection.js +80 -63
  80. package/dist/components/marketing/sections/CorePositioningSection.d.ts +1 -6
  81. package/dist/components/marketing/sections/CorePositioningSection.d.ts.map +1 -1
  82. package/dist/components/marketing/sections/CorePositioningSection.js +62 -54
  83. package/dist/components/marketing/sections/CtaSection.d.ts +1 -6
  84. package/dist/components/marketing/sections/CtaSection.d.ts.map +1 -1
  85. package/dist/components/marketing/sections/CtaSection.js +58 -50
  86. package/dist/components/marketing/sections/DevelopersSection.d.ts +1 -6
  87. package/dist/components/marketing/sections/DevelopersSection.d.ts.map +1 -1
  88. package/dist/components/marketing/sections/DevelopersSection.js +40 -40
  89. package/dist/components/marketing/sections/FearsSection.d.ts +1 -6
  90. package/dist/components/marketing/sections/FearsSection.d.ts.map +1 -1
  91. package/dist/components/marketing/sections/FearsSection.js +96 -44
  92. package/dist/components/marketing/sections/HeroMarketingSection.d.ts +1 -6
  93. package/dist/components/marketing/sections/HeroMarketingSection.d.ts.map +1 -1
  94. package/dist/components/marketing/sections/HeroMarketingSection.js +82 -71
  95. package/dist/components/marketing/sections/IconGridSection.d.ts +25 -39
  96. package/dist/components/marketing/sections/IconGridSection.d.ts.map +1 -1
  97. package/dist/components/marketing/sections/IconGridSection.js +55 -41
  98. package/dist/components/marketing/sections/OutputsSection.d.ts +1 -6
  99. package/dist/components/marketing/sections/OutputsSection.d.ts.map +1 -1
  100. package/dist/components/marketing/sections/OutputsSection.js +107 -55
  101. package/dist/components/marketing/sections/ProblemSection.d.ts +1 -6
  102. package/dist/components/marketing/sections/ProblemSection.d.ts.map +1 -1
  103. package/dist/components/marketing/sections/ProblemSection.js +94 -42
  104. package/dist/components/marketing/sections/SolutionSection.d.ts +1 -6
  105. package/dist/components/marketing/sections/SolutionSection.d.ts.map +1 -1
  106. package/dist/components/marketing/sections/SolutionSection.js +94 -42
  107. package/dist/components/marketing/sections/StepsSection.d.ts +1 -6
  108. package/dist/components/marketing/sections/StepsSection.d.ts.map +1 -1
  109. package/dist/components/marketing/sections/StepsSection.js +100 -48
  110. package/dist/components/marketing/waitlist-section.d.ts +5 -12
  111. package/dist/components/marketing/waitlist-section.d.ts.map +1 -1
  112. package/dist/components/marketing/waitlist-section.js +1089 -568
  113. package/dist/components/templates/TemplatesClientPage.d.ts +1 -6
  114. package/dist/components/templates/TemplatesClientPage.d.ts.map +1 -1
  115. package/dist/components/templates/TemplatesClientPage.js +5649 -617
  116. package/dist/components/templates/TemplatesPage.d.ts +1 -6
  117. package/dist/components/templates/TemplatesPage.d.ts.map +1 -1
  118. package/dist/components/templates/TemplatesPage.js +163 -116
  119. package/dist/components/templates/TemplatesPreviewModal.d.ts +5 -12
  120. package/dist/components/templates/TemplatesPreviewModal.d.ts.map +1 -1
  121. package/dist/components/templates/TemplatesPreviewModal.js +113 -131
  122. package/dist/components/templates/index.d.ts +4 -4
  123. package/dist/components/templates/index.d.ts.map +1 -0
  124. package/dist/components/templates/index.js +5825 -4
  125. package/dist/index.d.ts +9 -29
  126. package/dist/index.d.ts.map +1 -0
  127. package/dist/index.js +6480 -28
  128. package/dist/libs/email/client.d.ts +9 -12
  129. package/dist/libs/email/client.d.ts.map +1 -1
  130. package/dist/libs/email/client.js +109 -105
  131. package/dist/libs/email/client.test.d.ts +2 -0
  132. package/dist/libs/email/client.test.d.ts.map +1 -0
  133. package/dist/libs/email/contact.d.ts +2 -6
  134. package/dist/libs/email/contact.d.ts.map +1 -1
  135. package/dist/libs/email/contact.js +155 -41
  136. package/dist/libs/email/newsletter.d.ts +2 -6
  137. package/dist/libs/email/newsletter.d.ts.map +1 -1
  138. package/dist/libs/email/newsletter.js +169 -54
  139. package/dist/libs/email/types.d.ts +48 -52
  140. package/dist/libs/email/types.d.ts.map +1 -1
  141. package/dist/libs/email/types.js +3 -1
  142. package/dist/libs/email/utils.d.ts +2 -5
  143. package/dist/libs/email/utils.d.ts.map +1 -1
  144. package/dist/libs/email/utils.js +10 -6
  145. package/dist/libs/email/waitlist-application.d.ts +2 -6
  146. package/dist/libs/email/waitlist-application.d.ts.map +1 -1
  147. package/dist/libs/email/waitlist-application.js +191 -71
  148. package/dist/libs/email/waitlist.d.ts +2 -6
  149. package/dist/libs/email/waitlist.d.ts.map +1 -1
  150. package/dist/libs/email/waitlist.js +171 -56
  151. package/dist/libs/pricing-examples.d.ts +13 -16
  152. package/dist/libs/pricing-examples.d.ts.map +1 -1
  153. package/dist/libs/pricing-examples.js +20 -20
  154. package/dist/node/components/marketing/ChangelogPage.js +87 -0
  155. package/dist/node/components/marketing/CofounderPage.js +576 -0
  156. package/dist/node/components/marketing/ContactClient.js +1374 -0
  157. package/dist/node/components/marketing/ContributePage.js +482 -0
  158. package/dist/node/components/marketing/DesignPartnerPage.js +267 -0
  159. package/dist/node/components/marketing/LandingPage.js +624 -0
  160. package/dist/node/components/marketing/PricingClient.js +1967 -0
  161. package/dist/node/components/marketing/ProductClientPage.js +558 -0
  162. package/dist/node/components/marketing/index.js +4813 -0
  163. package/dist/node/components/marketing/pricing-thinking-modal.js +253 -0
  164. package/dist/node/components/marketing/sections/AudienceSection.js +85 -0
  165. package/dist/node/components/marketing/sections/CorePositioningSection.js +67 -0
  166. package/dist/node/components/marketing/sections/CtaSection.js +62 -0
  167. package/dist/node/components/marketing/sections/DevelopersSection.js +45 -0
  168. package/dist/node/components/marketing/sections/FearsSection.js +100 -0
  169. package/dist/node/components/marketing/sections/HeroMarketingSection.js +88 -0
  170. package/dist/node/components/marketing/sections/IconGridSection.js +58 -0
  171. package/dist/node/components/marketing/sections/OutputsSection.js +111 -0
  172. package/dist/node/components/marketing/sections/ProblemSection.js +98 -0
  173. package/dist/node/components/marketing/sections/SolutionSection.js +98 -0
  174. package/dist/node/components/marketing/sections/StepsSection.js +104 -0
  175. package/dist/node/components/marketing/waitlist-section.js +1099 -0
  176. package/dist/node/components/templates/TemplatesClientPage.js +5657 -0
  177. package/dist/node/components/templates/TemplatesPage.js +172 -0
  178. package/dist/node/components/templates/TemplatesPreviewModal.js +119 -0
  179. package/dist/node/components/templates/index.js +5826 -0
  180. package/dist/node/index.js +6480 -0
  181. package/dist/node/libs/email/client.js +117 -0
  182. package/dist/node/libs/email/contact.js +185 -0
  183. package/dist/node/libs/email/newsletter.js +210 -0
  184. package/dist/node/libs/email/types.js +2 -0
  185. package/dist/node/libs/email/utils.js +11 -0
  186. package/dist/node/libs/email/waitlist-application.js +290 -0
  187. package/dist/node/libs/email/waitlist.js +220 -0
  188. package/dist/node/libs/pricing-examples.js +21 -0
  189. package/dist/node/registry/engine.js +5288 -0
  190. package/dist/node/registry/factory.js +47 -0
  191. package/dist/node/registry/index.js +5353 -0
  192. package/dist/node/registry/registry-docs.js +338 -0
  193. package/dist/node/registry/registry-landing.js +4932 -0
  194. package/dist/node/registry/registry.js +5274 -0
  195. package/dist/node/registry/types.js +0 -0
  196. package/dist/node/registry/utils.js +5335 -0
  197. package/dist/registry/engine.d.ts +4 -8
  198. package/dist/registry/engine.d.ts.map +1 -1
  199. package/dist/registry/engine.js +5287 -23
  200. package/dist/registry/factory.d.ts +30 -34
  201. package/dist/registry/factory.d.ts.map +1 -1
  202. package/dist/registry/factory.js +42 -56
  203. package/dist/registry/index.d.ts +8 -8
  204. package/dist/registry/index.d.ts.map +1 -0
  205. package/dist/registry/index.js +5353 -8
  206. package/dist/registry/registry-docs.d.ts +4 -8
  207. package/dist/registry/registry-docs.d.ts.map +1 -1
  208. package/dist/registry/registry-docs.js +242 -209
  209. package/dist/registry/registry-landing.d.ts +5 -9
  210. package/dist/registry/registry-landing.d.ts.map +1 -1
  211. package/dist/registry/registry-landing.js +4930 -93
  212. package/dist/registry/registry.d.ts +7 -11
  213. package/dist/registry/registry.d.ts.map +1 -1
  214. package/dist/registry/registry.js +5262 -49
  215. package/dist/registry/types.d.ts +6 -10
  216. package/dist/registry/types.d.ts.map +1 -1
  217. package/dist/registry/types.js +1 -0
  218. package/dist/registry/utils.d.ts +10 -14
  219. package/dist/registry/utils.d.ts.map +1 -1
  220. package/dist/registry/utils.js +5330 -49
  221. package/package.json +355 -73
  222. package/tsdown.config.js +1 -2
  223. package/.turbo/turbo-build$colon$types.log +0 -1
  224. package/.turbo/turbo-lint.log +0 -3
  225. package/dist/components/marketing/ChangelogPage.js.map +0 -1
  226. package/dist/components/marketing/CofounderPage.js.map +0 -1
  227. package/dist/components/marketing/ContactClient.js.map +0 -1
  228. package/dist/components/marketing/ContributePage.js.map +0 -1
  229. package/dist/components/marketing/DesignPartnerPage.js.map +0 -1
  230. package/dist/components/marketing/LandingPage.js.map +0 -1
  231. package/dist/components/marketing/PricingClient.js.map +0 -1
  232. package/dist/components/marketing/ProductClientPage.js.map +0 -1
  233. package/dist/components/marketing/pricing-thinking-modal.js.map +0 -1
  234. package/dist/components/marketing/sections/AudienceSection.js.map +0 -1
  235. package/dist/components/marketing/sections/CorePositioningSection.js.map +0 -1
  236. package/dist/components/marketing/sections/CtaSection.js.map +0 -1
  237. package/dist/components/marketing/sections/DevelopersSection.js.map +0 -1
  238. package/dist/components/marketing/sections/FearsSection.js.map +0 -1
  239. package/dist/components/marketing/sections/HeroMarketingSection.js.map +0 -1
  240. package/dist/components/marketing/sections/IconGridSection.js.map +0 -1
  241. package/dist/components/marketing/sections/OutputsSection.js.map +0 -1
  242. package/dist/components/marketing/sections/ProblemSection.js.map +0 -1
  243. package/dist/components/marketing/sections/SolutionSection.js.map +0 -1
  244. package/dist/components/marketing/sections/StepsSection.js.map +0 -1
  245. package/dist/components/marketing/waitlist-section.js.map +0 -1
  246. package/dist/components/templates/TemplatesClientPage.js.map +0 -1
  247. package/dist/components/templates/TemplatesPage.js.map +0 -1
  248. package/dist/components/templates/TemplatesPreviewModal.js.map +0 -1
  249. package/dist/libs/email/client.js.map +0 -1
  250. package/dist/libs/email/contact.js.map +0 -1
  251. package/dist/libs/email/newsletter.js.map +0 -1
  252. package/dist/libs/email/utils.js.map +0 -1
  253. package/dist/libs/email/waitlist-application.js.map +0 -1
  254. package/dist/libs/email/waitlist.js.map +0 -1
  255. package/dist/libs/pricing-examples.js.map +0 -1
  256. package/dist/registry/engine.js.map +0 -1
  257. package/dist/registry/factory.js.map +0 -1
  258. package/dist/registry/registry-docs.js.map +0 -1
  259. package/dist/registry/registry-landing.js.map +0 -1
  260. package/dist/registry/registry.js.map +0 -1
  261. package/dist/registry/utils.js.map +0 -1
  262. package/tsconfig.tsbuildinfo +0 -1
@@ -1,7 +1,2 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
-
3
- //#region src/components/templates/TemplatesPage.d.ts
4
- declare function TemplatesMarketingPage(): react_jsx_runtime0.JSX.Element;
5
- //#endregion
6
- export { TemplatesMarketingPage };
1
+ export declare function TemplatesMarketingPage(): import("react/jsx-runtime").JSX.Element;
7
2
  //# sourceMappingURL=TemplatesPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TemplatesPage.d.ts","names":[],"sources":["../../../src/components/templates/TemplatesPage.tsx"],"mappings":";;;iBA0BgB,sBAAA,CAAA,GAAsB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"TemplatesPage.d.ts","sourceRoot":"","sources":["../../../src/components/templates/TemplatesPage.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,sBAAsB,4CA2FrC"}
@@ -1,125 +1,172 @@
1
- 'use client';
1
+ // @bun
2
+ var __require = import.meta.require;
2
3
 
3
- import { HStack, VStack } from "@contractspec/lib.ui-kit-web/ui/stack";
4
- import { Button, ButtonLink, Input, MarketingCard, MarketingCardContent, MarketingCardDescription, MarketingCardHeader, MarketingCardTitle, MarketingSection } from "@contractspec/lib.design-system";
5
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
+ // src/components/templates/TemplatesPage.tsx
6
5
  import { useMemo, useState } from "react";
6
+ import {
7
+ Button,
8
+ ButtonLink,
9
+ Input,
10
+ MarketingCard,
11
+ MarketingCardContent,
12
+ MarketingCardDescription,
13
+ MarketingCardHeader,
14
+ MarketingCardTitle,
15
+ MarketingSection
16
+ } from "@contractspec/lib.design-system";
17
+ import { HStack, VStack } from "@contractspec/lib.ui-kit-web/ui/stack";
7
18
  import { listTemplates } from "@contractspec/module.examples";
8
-
9
- //#region src/components/templates/TemplatesPage.tsx
19
+ import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
20
+ "use client";
10
21
  function matchesQuery(t, query) {
11
- const q = query.trim().toLowerCase();
12
- if (!q) return true;
13
- return `${t.id} ${t.name} ${t.description} ${t.tags.join(" ")}`.toLowerCase().includes(q);
22
+ const q = query.trim().toLowerCase();
23
+ if (!q)
24
+ return true;
25
+ const hay = `${t.id} ${t.name} ${t.description} ${t.tags.join(" ")}`.toLowerCase();
26
+ return hay.includes(q);
14
27
  }
15
28
  function TemplatesMarketingPage() {
16
- const [query, setQuery] = useState("");
17
- const templates = useMemo(() => listTemplates(), []);
18
- const filtered = useMemo(() => templates.filter((t) => matchesQuery(t, query)), [templates, query]);
19
- return /* @__PURE__ */ jsxs(Fragment, { children: [
20
- /* @__PURE__ */ jsx(MarketingSection, {
21
- tone: "default",
22
- children: /* @__PURE__ */ jsxs(VStack, {
23
- as: "header",
24
- gap: "lg",
25
- align: "center",
26
- children: [/* @__PURE__ */ jsxs(VStack, {
27
- gap: "sm",
28
- align: "center",
29
- children: [/* @__PURE__ */ jsx(ButtonLink, {
30
- href: "/docs",
31
- variant: "ghost",
32
- children: "Docs"
33
- }), /* @__PURE__ */ jsx(ButtonLink, {
34
- href: "/sandbox",
35
- variant: "ghost",
36
- children: "Open Sandbox"
37
- })]
38
- }), /* @__PURE__ */ jsx(VStack, {
39
- gap: "sm",
40
- align: "center",
41
- children: /* @__PURE__ */ jsx(ButtonLink, {
42
- href: "/templates",
43
- variant: "default",
44
- children: "Templates"
45
- })
46
- })]
47
- })
48
- }),
49
- /* @__PURE__ */ jsx(MarketingSection, {
50
- tone: "muted",
51
- children: /* @__PURE__ */ jsxs(VStack, {
52
- gap: "lg",
53
- children: [/* @__PURE__ */ jsx(VStack, {
54
- gap: "sm",
55
- children: /* @__PURE__ */ jsx(ButtonLink, {
56
- href: "/templates",
57
- variant: "ghost",
58
- children: "Browse all examples"
59
- })
60
- }), /* @__PURE__ */ jsx(HStack, {
61
- gap: "md",
62
- align: "center",
63
- justify: "between",
64
- wrap: "wrap",
65
- children: /* @__PURE__ */ jsx(Input, {
66
- "aria-label": "Search templates and examples",
67
- placeholder: "Search templates and examples…",
68
- value: query,
69
- onChange: (e) => setQuery(e.target.value)
70
- })
71
- })]
72
- })
73
- }),
74
- /* @__PURE__ */ jsx(MarketingSection, {
75
- tone: "default",
76
- children: /* @__PURE__ */ jsx(VStack, {
77
- gap: "lg",
78
- children: /* @__PURE__ */ jsx(HStack, {
79
- gap: "md",
80
- wrap: "wrap",
81
- children: filtered.map((t) => /* @__PURE__ */ jsxs(MarketingCard, {
82
- className: "w-full md:w-[calc(50%-0.75rem)] lg:w-[calc(33.333%-1rem)]",
83
- children: [/* @__PURE__ */ jsxs(MarketingCardHeader, { children: [/* @__PURE__ */ jsxs(MarketingCardTitle, { children: [
84
- t.icon,
85
- " ",
86
- t.name
87
- ] }), /* @__PURE__ */ jsx(MarketingCardDescription, { children: t.description })] }), /* @__PURE__ */ jsx(MarketingCardContent, { children: /* @__PURE__ */ jsxs(VStack, {
88
- gap: "md",
89
- children: [/* @__PURE__ */ jsx(HStack, {
90
- gap: "sm",
91
- wrap: "wrap",
92
- children: t.tags.slice(0, 6).map((tag) => /* @__PURE__ */ jsx(ButtonLink, {
93
- href: `/templates?tag=${encodeURIComponent(tag)}`,
94
- variant: "ghost",
95
- children: tag
96
- }, `${t.id}-${tag}`))
97
- }), /* @__PURE__ */ jsxs(HStack, {
98
- gap: "sm",
99
- justify: "between",
100
- wrap: "wrap",
101
- children: [/* @__PURE__ */ jsx(ButtonLinkToSandbox, { templateId: t.id }), /* @__PURE__ */ jsx(Button, {
102
- variant: "outline",
103
- onClick: () => void 0,
104
- disabled: true,
105
- children: "Install to Studio (soon)"
106
- })]
107
- })]
108
- }) })]
109
- }, t.id))
110
- })
111
- })
112
- })
113
- ] });
29
+ const [query, setQuery] = useState("");
30
+ const templates = useMemo(() => listTemplates(), []);
31
+ const filtered = useMemo(() => templates.filter((t) => matchesQuery(t, query)), [templates, query]);
32
+ return /* @__PURE__ */ jsxDEV(Fragment, {
33
+ children: [
34
+ /* @__PURE__ */ jsxDEV(MarketingSection, {
35
+ tone: "default",
36
+ children: /* @__PURE__ */ jsxDEV(VStack, {
37
+ as: "header",
38
+ gap: "lg",
39
+ align: "center",
40
+ children: [
41
+ /* @__PURE__ */ jsxDEV(VStack, {
42
+ gap: "sm",
43
+ align: "center",
44
+ children: [
45
+ /* @__PURE__ */ jsxDEV(ButtonLink, {
46
+ href: "/docs",
47
+ variant: "ghost",
48
+ children: "Docs"
49
+ }, undefined, false, undefined, this),
50
+ /* @__PURE__ */ jsxDEV(ButtonLink, {
51
+ href: "/sandbox",
52
+ variant: "ghost",
53
+ children: "Open Sandbox"
54
+ }, undefined, false, undefined, this)
55
+ ]
56
+ }, undefined, true, undefined, this),
57
+ /* @__PURE__ */ jsxDEV(VStack, {
58
+ gap: "sm",
59
+ align: "center",
60
+ children: /* @__PURE__ */ jsxDEV(ButtonLink, {
61
+ href: "/templates",
62
+ variant: "default",
63
+ children: "Templates"
64
+ }, undefined, false, undefined, this)
65
+ }, undefined, false, undefined, this)
66
+ ]
67
+ }, undefined, true, undefined, this)
68
+ }, undefined, false, undefined, this),
69
+ /* @__PURE__ */ jsxDEV(MarketingSection, {
70
+ tone: "muted",
71
+ children: /* @__PURE__ */ jsxDEV(VStack, {
72
+ gap: "lg",
73
+ children: [
74
+ /* @__PURE__ */ jsxDEV(VStack, {
75
+ gap: "sm",
76
+ children: /* @__PURE__ */ jsxDEV(ButtonLink, {
77
+ href: "/templates",
78
+ variant: "ghost",
79
+ children: "Browse all examples"
80
+ }, undefined, false, undefined, this)
81
+ }, undefined, false, undefined, this),
82
+ /* @__PURE__ */ jsxDEV(HStack, {
83
+ gap: "md",
84
+ align: "center",
85
+ justify: "between",
86
+ wrap: "wrap",
87
+ children: /* @__PURE__ */ jsxDEV(Input, {
88
+ "aria-label": "Search templates and examples",
89
+ placeholder: "Search templates and examples\u2026",
90
+ value: query,
91
+ onChange: (e) => setQuery(e.target.value)
92
+ }, undefined, false, undefined, this)
93
+ }, undefined, false, undefined, this)
94
+ ]
95
+ }, undefined, true, undefined, this)
96
+ }, undefined, false, undefined, this),
97
+ /* @__PURE__ */ jsxDEV(MarketingSection, {
98
+ tone: "default",
99
+ children: /* @__PURE__ */ jsxDEV(VStack, {
100
+ gap: "lg",
101
+ children: /* @__PURE__ */ jsxDEV(HStack, {
102
+ gap: "md",
103
+ wrap: "wrap",
104
+ children: filtered.map((t) => /* @__PURE__ */ jsxDEV(MarketingCard, {
105
+ className: "w-full md:w-[calc(50%-0.75rem)] lg:w-[calc(33.333%-1rem)]",
106
+ children: [
107
+ /* @__PURE__ */ jsxDEV(MarketingCardHeader, {
108
+ children: [
109
+ /* @__PURE__ */ jsxDEV(MarketingCardTitle, {
110
+ children: [
111
+ t.icon,
112
+ " ",
113
+ t.name
114
+ ]
115
+ }, undefined, true, undefined, this),
116
+ /* @__PURE__ */ jsxDEV(MarketingCardDescription, {
117
+ children: t.description
118
+ }, undefined, false, undefined, this)
119
+ ]
120
+ }, undefined, true, undefined, this),
121
+ /* @__PURE__ */ jsxDEV(MarketingCardContent, {
122
+ children: /* @__PURE__ */ jsxDEV(VStack, {
123
+ gap: "md",
124
+ children: [
125
+ /* @__PURE__ */ jsxDEV(HStack, {
126
+ gap: "sm",
127
+ wrap: "wrap",
128
+ children: t.tags.slice(0, 6).map((tag) => /* @__PURE__ */ jsxDEV(ButtonLink, {
129
+ href: `/templates?tag=${encodeURIComponent(tag)}`,
130
+ variant: "ghost",
131
+ children: tag
132
+ }, `${t.id}-${tag}`, false, undefined, this))
133
+ }, undefined, false, undefined, this),
134
+ /* @__PURE__ */ jsxDEV(HStack, {
135
+ gap: "sm",
136
+ justify: "between",
137
+ wrap: "wrap",
138
+ children: [
139
+ /* @__PURE__ */ jsxDEV(ButtonLinkToSandbox, {
140
+ templateId: t.id
141
+ }, undefined, false, undefined, this),
142
+ /* @__PURE__ */ jsxDEV(Button, {
143
+ variant: "outline",
144
+ onClick: () => {
145
+ return;
146
+ },
147
+ disabled: true,
148
+ children: "Install to Studio (soon)"
149
+ }, undefined, false, undefined, this)
150
+ ]
151
+ }, undefined, true, undefined, this)
152
+ ]
153
+ }, undefined, true, undefined, this)
154
+ }, undefined, false, undefined, this)
155
+ ]
156
+ }, t.id, true, undefined, this))
157
+ }, undefined, false, undefined, this)
158
+ }, undefined, false, undefined, this)
159
+ }, undefined, false, undefined, this)
160
+ ]
161
+ }, undefined, true, undefined, this);
114
162
  }
115
163
  function ButtonLinkToSandbox({ templateId }) {
116
- return /* @__PURE__ */ jsx(ButtonLink, {
117
- href: `/sandbox?template=${encodeURIComponent(templateId)}`,
118
- variant: "default",
119
- children: "Preview"
120
- });
164
+ return /* @__PURE__ */ jsxDEV(ButtonLink, {
165
+ href: `/sandbox?template=${encodeURIComponent(templateId)}`,
166
+ variant: "default",
167
+ children: "Preview"
168
+ }, undefined, false, undefined, this);
121
169
  }
122
-
123
- //#endregion
124
- export { TemplatesMarketingPage };
125
- //# sourceMappingURL=TemplatesPage.js.map
170
+ export {
171
+ TemplatesMarketingPage
172
+ };
@@ -1,15 +1,8 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
- import { TemplateId } from "@contractspec/lib.example-shared-ui";
3
-
4
- //#region src/components/templates/TemplatesPreviewModal.d.ts
1
+ import type { TemplateId } from '@contractspec/lib.example-shared-ui';
5
2
  interface TemplatePreviewModalProps {
6
- templateId: TemplateId | null;
7
- onClose: () => void;
3
+ templateId: TemplateId | null;
4
+ onClose: () => void;
8
5
  }
9
- declare const TemplatePreviewModal: ({
10
- templateId,
11
- onClose
12
- }: TemplatePreviewModalProps) => react_jsx_runtime0.JSX.Element;
13
- //#endregion
14
- export { TemplatePreviewModal };
6
+ export declare const TemplatePreviewModal: ({ templateId, onClose, }: TemplatePreviewModalProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
15
8
  //# sourceMappingURL=TemplatesPreviewModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TemplatesPreviewModal.d.ts","names":[],"sources":["../../../src/components/templates/TemplatesPreviewModal.tsx"],"mappings":";;;;UAmGU,yBAAA;EACR,UAAA,EAAY,UAAA;EACZ,OAAA;AAAA;AAAA,cAmBW,oBAAA;EAAwB,UAAA;EAAA;AAAA,GAGlC,yBAAA,KAAyB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"TemplatesPreviewModal.d.ts","sourceRoot":"","sources":["../../../src/components/templates/TemplatesPreviewModal.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AA2FtE,UAAU,yBAAyB;IACjC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAkBD,eAAO,MAAM,oBAAoB,GAAI,0BAGlC,yBAAyB,4CAwI3B,CAAC"}
@@ -1,137 +1,119 @@
1
- 'use client';
1
+ // @bun
2
+ var __require = import.meta.require;
2
3
 
3
- import { jsx } from "react/jsx-runtime";
4
+ // src/components/templates/TemplatesPreviewModal.tsx
4
5
  import { useMemo } from "react";
5
- import { Dialog, DialogContent } from "@contractspec/lib.ui-kit-web/ui/dialog";
6
6
  import dynamic from "next/dynamic";
7
+ import { Dialog, DialogContent } from "@contractspec/lib.ui-kit-web/ui/dialog";
7
8
  import { ScrollArea } from "@contractspec/lib.ui-kit-web/ui/scroll-area";
8
9
  import { LoadingSpinner } from "@contractspec/lib.ui-kit-web/ui/atoms/LoadingSpinner";
9
-
10
- //#region src/components/templates/TemplatesPreviewModal.tsx
11
- const TemplateShell = dynamic(() => import("@contractspec/lib.example-shared-ui").then((mod) => mod.TemplateShell), {
12
- ssr: false,
13
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
14
- });
15
- const TodosTaskList = dynamic(() => import("@contractspec/bundle.library/components/templates/todos/TaskList").then((mod) => mod.TaskList), {
16
- ssr: false,
17
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
18
- });
19
- const MessagingWorkspace = dynamic(() => import("@contractspec/bundle.library/components/templates/messaging/MessagingWorkspace").then((mod) => mod.MessagingWorkspace), {
20
- ssr: false,
21
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
22
- });
23
- const RecipesExperience = dynamic(() => import("@contractspec/bundle.library/components/templates/recipes/RecipeList").then((mod) => mod.RecipeList), {
24
- ssr: false,
25
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
26
- });
27
- const SaasDashboard = dynamic(() => import("@contractspec/example.saas-boilerplate").then((mod) => mod.SaasDashboard), {
28
- ssr: false,
29
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
30
- });
31
- const CrmDashboard = dynamic(() => import("@contractspec/example.crm-pipeline").then((mod) => mod.CrmDashboard), {
32
- ssr: false,
33
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
34
- });
35
- const AgentDashboard = dynamic(() => import("@contractspec/example.agent-console/ui").then((mod) => mod.AgentDashboard), {
36
- ssr: false,
37
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
38
- });
39
- const WorkflowDashboard = dynamic(() => import("@contractspec/example.workflow-system/ui").then((mod) => mod.WorkflowDashboard), {
40
- ssr: false,
41
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
42
- });
43
- const MarketplaceDashboard = dynamic(() => import("@contractspec/example.marketplace/ui").then((mod) => mod.MarketplaceDashboard), {
44
- ssr: false,
45
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
46
- });
47
- const IntegrationDashboard = dynamic(() => import("@contractspec/example.integration-hub/ui").then((mod) => mod.IntegrationDashboard), {
48
- ssr: false,
49
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
50
- });
51
- const AnalyticsDashboard = dynamic(() => import("@contractspec/example.analytics-dashboard").then((mod) => mod.AnalyticsDashboard), {
52
- ssr: false,
53
- loading: () => /* @__PURE__ */ jsx(LoadingSpinner, {})
54
- });
55
- const TemplatePreviewModal = ({ templateId, onClose }) => {
56
- const previewComponent = useMemo(() => {
57
- switch (templateId) {
58
- case "todos-app": return /* @__PURE__ */ jsx(TemplateShell, {
59
- title: "Starter tasks",
60
- description: "Track work items with filters, priorities, and per-tenant data isolation.",
61
- showSaveAction: false,
62
- children: /* @__PURE__ */ jsx(TodosTaskList, {})
63
- });
64
- case "messaging-app": return /* @__PURE__ */ jsx(TemplateShell, {
65
- title: "Messaging workspace",
66
- description: "Realtime-ready messaging surface with optimistic delivery.",
67
- showSaveAction: false,
68
- children: /* @__PURE__ */ jsx(MessagingWorkspace, {})
69
- });
70
- case "recipe-app-i18n": return /* @__PURE__ */ jsx(TemplateShell, {
71
- title: "Ceremony recipes",
72
- description: "Switch locales and preview how rituals translate across teams.",
73
- showSaveAction: false,
74
- children: /* @__PURE__ */ jsx(RecipesExperience, {})
75
- });
76
- case "saas-boilerplate": return /* @__PURE__ */ jsx(TemplateShell, {
77
- title: "SaaS Boilerplate",
78
- description: "Multi-tenant organizations, projects, settings, and billing usage tracking.",
79
- showSaveAction: false,
80
- children: /* @__PURE__ */ jsx(SaasDashboard, {})
81
- });
82
- case "crm-pipeline": return /* @__PURE__ */ jsx(TemplateShell, {
83
- title: "CRM Pipeline",
84
- description: "Sales CRM with contacts, companies, deals, and pipeline stages.",
85
- showSaveAction: false,
86
- children: /* @__PURE__ */ jsx(CrmDashboard, {})
87
- });
88
- case "agent-console": return /* @__PURE__ */ jsx(TemplateShell, {
89
- title: "AI Agent Console",
90
- description: "AI agent orchestration with tools, agents, runs, and execution logs.",
91
- showSaveAction: false,
92
- children: /* @__PURE__ */ jsx(AgentDashboard, {})
93
- });
94
- case "workflow-system": return /* @__PURE__ */ jsx(TemplateShell, {
95
- title: "Workflow System",
96
- description: "Multi-step workflows with role-based approvals.",
97
- showSaveAction: false,
98
- children: /* @__PURE__ */ jsx(WorkflowDashboard, {})
99
- });
100
- case "marketplace": return /* @__PURE__ */ jsx(TemplateShell, {
101
- title: "Marketplace",
102
- description: "Two-sided marketplace with stores, products, and orders.",
103
- showSaveAction: false,
104
- children: /* @__PURE__ */ jsx(MarketplaceDashboard, {})
105
- });
106
- case "integration-hub": return /* @__PURE__ */ jsx(TemplateShell, {
107
- title: "Integration Hub",
108
- description: "Third-party integrations with sync and field mapping.",
109
- showSaveAction: false,
110
- children: /* @__PURE__ */ jsx(IntegrationDashboard, {})
111
- });
112
- case "analytics-dashboard": return /* @__PURE__ */ jsx(TemplateShell, {
113
- title: "Analytics Dashboard",
114
- description: "Custom dashboards with widgets and queries.",
115
- showSaveAction: false,
116
- children: /* @__PURE__ */ jsx(AnalyticsDashboard, {})
117
- });
118
- case null: return null;
119
- default: return null;
120
- }
121
- }, [templateId]);
122
- return /* @__PURE__ */ jsx(Dialog, {
123
- open: !!previewComponent,
124
- onOpenChange: onClose,
125
- children: /* @__PURE__ */ jsx(DialogContent, {
126
- className: "mb-8 flex h-[calc(100vh-2rem)] min-w-[calc(100vw-2rem)] flex-col justify-between gap-0 p-0",
127
- children: /* @__PURE__ */ jsx(ScrollArea, {
128
- className: "flex flex-col justify-between overflow-hidden",
129
- children: previewComponent
130
- })
131
- })
132
- });
10
+ import { jsxDEV } from "react/jsx-dev-runtime";
11
+ "use client";
12
+ var TemplateShell = dynamic(() => import("@contractspec/lib.example-shared-ui").then((mod) => mod.TemplateShell), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
13
+ var TodosTaskList = dynamic(() => import("@contractspec/bundle.library/components/templates/todos/TaskList").then((mod) => mod.TaskList), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
14
+ var MessagingWorkspace = dynamic(() => import("@contractspec/bundle.library/components/templates/messaging/MessagingWorkspace").then((mod) => mod.MessagingWorkspace), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
15
+ var RecipesExperience = dynamic(() => import("@contractspec/bundle.library/components/templates/recipes/RecipeList").then((mod) => mod.RecipeList), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
16
+ var SaasDashboard = dynamic(() => import("@contractspec/example.saas-boilerplate").then((mod) => mod.SaasDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
17
+ var CrmDashboard = dynamic(() => import("@contractspec/example.crm-pipeline").then((mod) => mod.CrmDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
18
+ var AgentDashboard = dynamic(() => import("@contractspec/example.agent-console/ui").then((mod) => mod.AgentDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
19
+ var WorkflowDashboard = dynamic(() => import("@contractspec/example.workflow-system/ui").then((mod) => mod.WorkflowDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
20
+ var MarketplaceDashboard = dynamic(() => import("@contractspec/example.marketplace/ui").then((mod) => mod.MarketplaceDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
21
+ var IntegrationDashboard = dynamic(() => import("@contractspec/example.integration-hub/ui").then((mod) => mod.IntegrationDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
22
+ var AnalyticsDashboard = dynamic(() => import("@contractspec/example.analytics-dashboard").then((mod) => mod.AnalyticsDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
23
+ var TemplatePreviewModal = ({
24
+ templateId,
25
+ onClose
26
+ }) => {
27
+ const previewComponent = useMemo(() => {
28
+ switch (templateId) {
29
+ case "todos-app":
30
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
31
+ title: "Starter tasks",
32
+ description: "Track work items with filters, priorities, and per-tenant data isolation.",
33
+ showSaveAction: false,
34
+ children: /* @__PURE__ */ jsxDEV(TodosTaskList, {}, undefined, false, undefined, this)
35
+ }, undefined, false, undefined, this);
36
+ case "messaging-app":
37
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
38
+ title: "Messaging workspace",
39
+ description: "Realtime-ready messaging surface with optimistic delivery.",
40
+ showSaveAction: false,
41
+ children: /* @__PURE__ */ jsxDEV(MessagingWorkspace, {}, undefined, false, undefined, this)
42
+ }, undefined, false, undefined, this);
43
+ case "recipe-app-i18n":
44
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
45
+ title: "Ceremony recipes",
46
+ description: "Switch locales and preview how rituals translate across teams.",
47
+ showSaveAction: false,
48
+ children: /* @__PURE__ */ jsxDEV(RecipesExperience, {}, undefined, false, undefined, this)
49
+ }, undefined, false, undefined, this);
50
+ case "saas-boilerplate":
51
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
52
+ title: "SaaS Boilerplate",
53
+ description: "Multi-tenant organizations, projects, settings, and billing usage tracking.",
54
+ showSaveAction: false,
55
+ children: /* @__PURE__ */ jsxDEV(SaasDashboard, {}, undefined, false, undefined, this)
56
+ }, undefined, false, undefined, this);
57
+ case "crm-pipeline":
58
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
59
+ title: "CRM Pipeline",
60
+ description: "Sales CRM with contacts, companies, deals, and pipeline stages.",
61
+ showSaveAction: false,
62
+ children: /* @__PURE__ */ jsxDEV(CrmDashboard, {}, undefined, false, undefined, this)
63
+ }, undefined, false, undefined, this);
64
+ case "agent-console":
65
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
66
+ title: "AI Agent Console",
67
+ description: "AI agent orchestration with tools, agents, runs, and execution logs.",
68
+ showSaveAction: false,
69
+ children: /* @__PURE__ */ jsxDEV(AgentDashboard, {}, undefined, false, undefined, this)
70
+ }, undefined, false, undefined, this);
71
+ case "workflow-system":
72
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
73
+ title: "Workflow System",
74
+ description: "Multi-step workflows with role-based approvals.",
75
+ showSaveAction: false,
76
+ children: /* @__PURE__ */ jsxDEV(WorkflowDashboard, {}, undefined, false, undefined, this)
77
+ }, undefined, false, undefined, this);
78
+ case "marketplace":
79
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
80
+ title: "Marketplace",
81
+ description: "Two-sided marketplace with stores, products, and orders.",
82
+ showSaveAction: false,
83
+ children: /* @__PURE__ */ jsxDEV(MarketplaceDashboard, {}, undefined, false, undefined, this)
84
+ }, undefined, false, undefined, this);
85
+ case "integration-hub":
86
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
87
+ title: "Integration Hub",
88
+ description: "Third-party integrations with sync and field mapping.",
89
+ showSaveAction: false,
90
+ children: /* @__PURE__ */ jsxDEV(IntegrationDashboard, {}, undefined, false, undefined, this)
91
+ }, undefined, false, undefined, this);
92
+ case "analytics-dashboard":
93
+ return /* @__PURE__ */ jsxDEV(TemplateShell, {
94
+ title: "Analytics Dashboard",
95
+ description: "Custom dashboards with widgets and queries.",
96
+ showSaveAction: false,
97
+ children: /* @__PURE__ */ jsxDEV(AnalyticsDashboard, {}, undefined, false, undefined, this)
98
+ }, undefined, false, undefined, this);
99
+ case null:
100
+ return null;
101
+ default:
102
+ return null;
103
+ }
104
+ }, [templateId]);
105
+ return /* @__PURE__ */ jsxDEV(Dialog, {
106
+ open: !!previewComponent,
107
+ onOpenChange: onClose,
108
+ children: /* @__PURE__ */ jsxDEV(DialogContent, {
109
+ className: "mb-8 flex h-[calc(100vh-2rem)] min-w-[calc(100vw-2rem)] flex-col justify-between gap-0 p-0",
110
+ children: /* @__PURE__ */ jsxDEV(ScrollArea, {
111
+ className: "flex flex-col justify-between overflow-hidden",
112
+ children: previewComponent
113
+ }, undefined, false, undefined, this)
114
+ }, undefined, false, undefined, this)
115
+ }, undefined, false, undefined, this);
116
+ };
117
+ export {
118
+ TemplatePreviewModal
133
119
  };
134
-
135
- //#endregion
136
- export { TemplatePreviewModal };
137
- //# sourceMappingURL=TemplatesPreviewModal.js.map
@@ -1,4 +1,4 @@
1
- import { TemplatesPage } from "./TemplatesClientPage.js";
2
- import { TemplatesMarketingPage } from "./TemplatesPage.js";
3
- import { TemplatePreviewModal } from "./TemplatesPreviewModal.js";
4
- export { TemplatePreviewModal, TemplatesMarketingPage, TemplatesPage };
1
+ export * from './TemplatesClientPage';
2
+ export * from './TemplatesPage';
3
+ export * from './TemplatesPreviewModal';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/templates/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}