@vadimcomanescu/nadicode-design-system 2.0.5 → 2.0.7

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 (177) hide show
  1. package/.agents/skills/seed/contract.md +1 -0
  2. package/.agents/skills/seed/recipes/marketing-shell.md +10 -19
  3. package/.agents/skills/seed/recipes/navigation-shell.md +5 -5
  4. package/.agents/skills/seed/recipes/service-detail.md +1 -1
  5. package/.agents/skills/seed/references/blocks.md +25 -24
  6. package/.agents/skills/seed/references/brand-override.md +3 -1
  7. package/css/tokens.css +300 -122
  8. package/dist/catalog.json +1926 -125
  9. package/dist/chunk-2BADJLMV.js +117 -0
  10. package/dist/chunk-35EX5FP5.js +106 -0
  11. package/dist/chunk-5PORR6LE.js +60 -0
  12. package/dist/chunk-5PZ4VR2D.js +142 -0
  13. package/dist/chunk-5UESKK6S.js +76 -0
  14. package/dist/chunk-6N6CSJVE.js +269 -0
  15. package/dist/chunk-AURJQZC4.js +110 -0
  16. package/dist/{chunk-DF47R6LN.js → chunk-AWIG4QN6.js} +9 -9
  17. package/dist/chunk-AYWL4IYM.js +67 -0
  18. package/dist/{chunk-SV3KZ6CB.js → chunk-DSMGCFMJ.js} +7 -2
  19. package/dist/chunk-E4L6LR6P.js +33 -0
  20. package/dist/chunk-EJNF6JLL.js +105 -0
  21. package/dist/chunk-FX23F33E.js +57 -0
  22. package/dist/chunk-GJPTPLCQ.js +52 -0
  23. package/dist/chunk-GV4PKHG4.js +147 -0
  24. package/dist/chunk-HJ3A2YNO.js +163 -0
  25. package/dist/chunk-HJZRSPWB.js +38 -0
  26. package/dist/chunk-IDKZEPWK.js +133 -0
  27. package/dist/chunk-K7NQ6ZAW.js +84 -0
  28. package/dist/chunk-LCKLZ4XK.js +60 -0
  29. package/dist/chunk-MX5FUFQR.js +205 -0
  30. package/dist/chunk-NEHCPO53.js +44 -0
  31. package/dist/chunk-OHOOQUVJ.js +113 -0
  32. package/dist/chunk-QIHA7S3A.js +36 -0
  33. package/dist/chunk-RKQPU75I.js +126 -0
  34. package/dist/chunk-RMLS2QUC.js +77 -0
  35. package/dist/chunk-TS2JSPQR.js +120 -0
  36. package/dist/chunk-TUKZKU72.js +110 -0
  37. package/dist/chunk-TZXZFSD2.js +33 -0
  38. package/dist/chunk-UGV45DH3.js +18 -0
  39. package/dist/chunk-VBZQ4DBE.js +52 -0
  40. package/dist/{chunk-LQLFA2EL.js → chunk-VDONTZZX.js} +2 -2
  41. package/dist/{chunk-RWNJ54CI.js → chunk-VN475YZS.js} +1 -1
  42. package/dist/chunk-VZCB4APK.js +94 -0
  43. package/dist/chunk-W7FXDRQJ.js +94 -0
  44. package/dist/chunk-WAVU744B.js +183 -0
  45. package/dist/{chunk-5I3FWRC5.js → chunk-WOYBVPXK.js} +10 -10
  46. package/dist/chunk-WST5NLLC.js +73 -0
  47. package/dist/chunk-X6VXWEDO.js +125 -0
  48. package/dist/chunk-ZM2NODUK.js +39 -0
  49. package/dist/components/blocks/AccountLockedBlock.js +7 -57
  50. package/dist/components/blocks/ActivityFeedBlock.js +6 -39
  51. package/dist/components/blocks/AgentConversationBlock.js +5 -33
  52. package/dist/components/blocks/AudioVisualizerBlock.d.ts +1 -1
  53. package/dist/components/blocks/AudioVisualizerBlock.js +2 -2
  54. package/dist/components/blocks/AuthSuccessBlock.js +5 -60
  55. package/dist/components/blocks/BarChartBlock.d.ts +1 -1
  56. package/dist/components/blocks/BarChartBlock.js +2 -2
  57. package/dist/components/blocks/CallToActionBlock.d.ts +1 -1
  58. package/dist/components/blocks/CallToActionBlock.js +6 -52
  59. package/dist/components/blocks/ChangelogBlock.js +8 -105
  60. package/dist/components/blocks/ChartCollectionBlock.js +2 -2
  61. package/dist/components/blocks/CodeBlock.js +7 -60
  62. package/dist/components/blocks/ComparisonBlock.js +9 -94
  63. package/dist/components/blocks/ContactBlock.js +11 -120
  64. package/dist/components/blocks/FAQBlock.js +6 -44
  65. package/dist/components/blocks/FeatureBlock.d.ts +10 -14
  66. package/dist/components/blocks/FeatureBlock.js +17 -159
  67. package/dist/components/blocks/FeatureGridBlock.d.ts +1 -1
  68. package/dist/components/blocks/FeatureGridBlock.js +2 -2
  69. package/dist/components/blocks/FooterBlock.d.ts +2 -2
  70. package/dist/components/blocks/FooterBlock.js +11 -67
  71. package/dist/components/blocks/HeaderBlock.d.ts +2 -2
  72. package/dist/components/blocks/HeaderBlock.js +1 -1
  73. package/dist/components/blocks/HeatmapChartBlock.d.ts +1 -1
  74. package/dist/components/blocks/HeatmapChartBlock.js +1 -1
  75. package/dist/components/blocks/HeroBlock.d.ts +6 -3
  76. package/dist/components/blocks/HeroBlock.js +16 -199
  77. package/dist/components/blocks/HeroSectionBlock.d.ts +1 -1
  78. package/dist/components/blocks/HeroSectionBlock.js +4 -4
  79. package/dist/components/blocks/IntegrationsBlock.d.ts +1 -1
  80. package/dist/components/blocks/IntegrationsBlock.js +4 -4
  81. package/dist/components/blocks/InteractiveAreaChartBlock.d.ts +1 -1
  82. package/dist/components/blocks/InteractiveAreaChartBlock.js +2 -2
  83. package/dist/components/blocks/NewsletterBlock.js +11 -84
  84. package/dist/components/blocks/PasswordRecoveryBlock.js +14 -142
  85. package/dist/components/blocks/PricingBlock.d.ts +1 -1
  86. package/dist/components/blocks/PricingBlock.js +11 -110
  87. package/dist/components/blocks/ProcessFlowBlock.js +10 -77
  88. package/dist/components/blocks/ResetPasswordBlock.js +11 -125
  89. package/dist/components/blocks/SignUpBlock.d.ts +1 -1
  90. package/dist/components/blocks/SignUpBlock.js +2 -2
  91. package/dist/components/blocks/SocialProofBlock.d.ts +7 -11
  92. package/dist/components/blocks/SocialProofBlock.js +8 -107
  93. package/dist/components/blocks/StatsBlock.d.ts +1 -1
  94. package/dist/components/blocks/StatsBlock.js +2 -2
  95. package/dist/components/blocks/StatsMarketingBlock.d.ts +1 -1
  96. package/dist/components/blocks/StatsMarketingBlock.js +5 -36
  97. package/dist/components/blocks/TeamBlock.d.ts +1 -1
  98. package/dist/components/blocks/TeamBlock.js +4 -52
  99. package/dist/components/blocks/TestimonialsBlock.d.ts +1 -1
  100. package/dist/components/blocks/TestimonialsBlock.js +4 -133
  101. package/dist/components/blocks/TwoFactorChallengeBlock.js +9 -94
  102. package/dist/components/blocks/TwoFactorSetupBlock.js +16 -183
  103. package/dist/components/blocks/UsageDonutBlock.d.ts +1 -1
  104. package/dist/components/blocks/UsageDonutBlock.js +2 -2
  105. package/dist/components/logos/index.js +2 -2
  106. package/dist/components/page-kits/AccountLockedPageKit.d.ts +10 -0
  107. package/dist/components/page-kits/AccountLockedPageKit.js +48 -0
  108. package/dist/components/page-kits/AgentsChatPageKit.d.ts +46 -0
  109. package/dist/components/page-kits/AgentsChatPageKit.js +289 -0
  110. package/dist/components/page-kits/AnalyticsPageKit.d.ts +49 -0
  111. package/dist/components/page-kits/AnalyticsPageKit.js +277 -0
  112. package/dist/components/page-kits/BlogContentPageKit.d.ts +64 -0
  113. package/dist/components/page-kits/BlogContentPageKit.js +296 -0
  114. package/dist/components/page-kits/CheckoutPageKit.d.ts +36 -0
  115. package/dist/components/page-kits/CheckoutPageKit.js +209 -0
  116. package/dist/components/page-kits/CompanySuitePageKit.d.ts +25 -0
  117. package/dist/components/page-kits/CompanySuitePageKit.js +240 -0
  118. package/dist/components/page-kits/CrudFormPageKit.d.ts +54 -0
  119. package/dist/components/page-kits/CrudFormPageKit.js +138 -0
  120. package/dist/components/page-kits/CrudListDetailPageKit.d.ts +70 -0
  121. package/dist/components/page-kits/CrudListDetailPageKit.js +138 -0
  122. package/dist/components/page-kits/DashboardPageKit.d.ts +39 -0
  123. package/dist/components/page-kits/DashboardPageKit.js +284 -0
  124. package/dist/components/page-kits/ErrorPageKit.d.ts +22 -0
  125. package/dist/components/page-kits/ErrorPageKit.js +55 -0
  126. package/dist/components/page-kits/KanbanBoardPageKit.d.ts +31 -0
  127. package/dist/components/page-kits/KanbanBoardPageKit.js +305 -0
  128. package/dist/components/page-kits/LandingPageKit.d.ts +29 -0
  129. package/dist/components/page-kits/LandingPageKit.js +221 -0
  130. package/dist/components/page-kits/LoginPageKit.d.ts +16 -0
  131. package/dist/components/page-kits/LoginPageKit.js +43 -0
  132. package/dist/components/page-kits/MarketingShellPageKit.d.ts +21 -0
  133. package/dist/components/page-kits/MarketingShellPageKit.js +131 -0
  134. package/dist/components/page-kits/NavigationShellPageKit.d.ts +41 -0
  135. package/dist/components/page-kits/NavigationShellPageKit.js +132 -0
  136. package/dist/components/page-kits/OnboardingPageKit.d.ts +26 -0
  137. package/dist/components/page-kits/OnboardingPageKit.js +248 -0
  138. package/dist/components/page-kits/PricingPageKit.d.ts +41 -0
  139. package/dist/components/page-kits/PricingPageKit.js +279 -0
  140. package/dist/components/page-kits/ProfileSettingsPageKit.d.ts +50 -0
  141. package/dist/components/page-kits/ProfileSettingsPageKit.js +171 -0
  142. package/dist/components/page-kits/RecoveryPageKit.d.ts +17 -0
  143. package/dist/components/page-kits/RecoveryPageKit.js +58 -0
  144. package/dist/components/page-kits/ResetPageKit.d.ts +14 -0
  145. package/dist/components/page-kits/ResetPageKit.js +52 -0
  146. package/dist/components/page-kits/ServiceSuitePageKit.d.ts +25 -0
  147. package/dist/components/page-kits/ServiceSuitePageKit.js +320 -0
  148. package/dist/components/page-kits/SettingsPageKit.d.ts +27 -0
  149. package/dist/components/page-kits/SettingsPageKit.js +11 -0
  150. package/dist/components/page-kits/SignupPageKit.d.ts +15 -0
  151. package/dist/components/page-kits/SignupPageKit.js +41 -0
  152. package/dist/components/page-kits/SuccessPageKit.d.ts +15 -0
  153. package/dist/components/page-kits/SuccessPageKit.js +146 -0
  154. package/dist/components/page-kits/TeamSettingsPageKit.d.ts +50 -0
  155. package/dist/components/page-kits/TeamSettingsPageKit.js +297 -0
  156. package/dist/components/page-kits/TwoFactorPageKit.d.ts +16 -0
  157. package/dist/components/page-kits/TwoFactorPageKit.js +156 -0
  158. package/dist/components/page-kits/VerifyEmailPageKit.d.ts +15 -0
  159. package/dist/components/page-kits/VerifyEmailPageKit.js +146 -0
  160. package/dist/components/page-kits/VoiceAgentsPageKit.d.ts +35 -0
  161. package/dist/components/page-kits/VoiceAgentsPageKit.js +246 -0
  162. package/dist/components/ui/AudioWaveform.js +2 -76
  163. package/dist/components/ui/AvatarUpload.js +1 -1
  164. package/dist/components/ui/Breadcrumb.js +4 -106
  165. package/dist/components/ui/ChartCard.js +5 -38
  166. package/dist/components/ui/CheckoutFormDemo.js +5 -6
  167. package/dist/components/ui/DataFreshness.js +2 -73
  168. package/dist/components/ui/MouseEffect.js +1 -1
  169. package/dist/components/ui/NativeSelect.js +2 -18
  170. package/dist/components/ui/Pagination.js +6 -117
  171. package/dist/components/ui/ShaderBackground.js +2 -2
  172. package/dist/hooks/use-shader-preset.js +2 -2
  173. package/dist/lib/shader-presets.js +1 -1
  174. package/dist/lib/tokens.config.d.ts +19 -0
  175. package/package.json +793 -681
  176. package/scripts/ds-check.mjs +10 -2
  177. package/src/lib/tokens.config.js +63 -41
@@ -0,0 +1,126 @@
1
+ import { Typography } from './chunk-N53OMWW2.js';
2
+ import { Heading } from './chunk-WI547C47.js';
3
+ import { Empty, EmptyTitle, EmptyDescription } from './chunk-55HD4L6G.js';
4
+ import { Card, CardHeader, CardTitle, CardContent } from './chunk-AH6YSYYT.js';
5
+ import { Button } from './chunk-7KIDDF3I.js';
6
+ import { Badge } from './chunk-S4JAHKOP.js';
7
+ import { cn } from './chunk-QYZT24TS.js';
8
+ import { jsxs, jsx } from 'react/jsx-runtime';
9
+
10
+ function resolveActiveSection(sections, activeSectionId) {
11
+ const directMatch = sections.find((section) => section.id === activeSectionId && section.isAvailable !== false);
12
+ if (directMatch) {
13
+ return directMatch;
14
+ }
15
+ const firstAvailable = sections.find((section) => section.isAvailable !== false);
16
+ if (firstAvailable) {
17
+ return firstAvailable;
18
+ }
19
+ return sections[0] ?? null;
20
+ }
21
+ function SettingsPageKit({
22
+ title = "Settings",
23
+ description = "Manage account, workspace, and preference sections with explicit save-state contracts.",
24
+ sections,
25
+ activeSectionId,
26
+ onSectionChange,
27
+ renderSection,
28
+ saveState = "default",
29
+ validationMessage,
30
+ fatalErrorMessage,
31
+ savedMessage = "Changes saved successfully.",
32
+ onSave,
33
+ onDiscard,
34
+ saveLabel = "Save changes",
35
+ discardLabel = "Discard",
36
+ className
37
+ }) {
38
+ const activeSection = resolveActiveSection(sections, activeSectionId);
39
+ const showActions = Boolean(onSave || onDiscard);
40
+ return /* @__PURE__ */ jsxs("section", { className: cn("space-y-6", className), children: [
41
+ /* @__PURE__ */ jsxs("header", { className: "space-y-2", children: [
42
+ /* @__PURE__ */ jsx(Heading, { level: 3, children: title }),
43
+ /* @__PURE__ */ jsx(Typography, { variant: "muted", children: description })
44
+ ] }),
45
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-6 lg:grid-cols-[280px_1fr]", children: [
46
+ /* @__PURE__ */ jsx("aside", { "aria-label": "Settings sections", className: "space-y-3", children: /* @__PURE__ */ jsxs(Card, { children: [
47
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Sections" }) }),
48
+ /* @__PURE__ */ jsx(CardContent, { className: "space-y-2", children: sections.map((section) => {
49
+ const isUnavailable = section.isAvailable === false;
50
+ const isActive = activeSection?.id === section.id;
51
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
52
+ /* @__PURE__ */ jsx(
53
+ Button,
54
+ {
55
+ variant: isActive ? "secondary" : "ghost",
56
+ className: "w-full justify-start",
57
+ "aria-pressed": isActive,
58
+ disabled: isUnavailable,
59
+ onClick: () => {
60
+ if (!isUnavailable && section.id !== activeSection?.id) {
61
+ onSectionChange?.(section.id);
62
+ }
63
+ },
64
+ children: section.label
65
+ }
66
+ ),
67
+ isUnavailable && section.unavailableReason ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "px-2 text-text-tertiary", children: section.unavailableReason }) : null
68
+ ] }, section.id);
69
+ }) })
70
+ ] }) }),
71
+ /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
72
+ saveState === "loading" ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-text-secondary", children: "Loading settings content" }) : null,
73
+ saveState === "dirty" ? /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Unsaved changes" }) : null,
74
+ saveState === "saving" ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-text-secondary", children: "Saving changes\u2026" }) : null,
75
+ saveState === "saved" ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-success", children: savedMessage }) : null,
76
+ saveState === "validation-error" ? /* @__PURE__ */ jsx(
77
+ "div",
78
+ {
79
+ role: "alert",
80
+ className: "rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive",
81
+ children: validationMessage ?? "Please resolve validation errors before saving."
82
+ }
83
+ ) : null,
84
+ saveState === "fatal-error" ? /* @__PURE__ */ jsx(
85
+ "div",
86
+ {
87
+ role: "alert",
88
+ className: "rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive",
89
+ children: fatalErrorMessage ?? "Settings failed to load. Retry or contact support."
90
+ }
91
+ ) : null,
92
+ /* @__PURE__ */ jsxs(Card, { children: [
93
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
94
+ /* @__PURE__ */ jsx(CardTitle, { children: activeSection?.label ?? "Settings section" }),
95
+ activeSection?.description ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-text-secondary", children: activeSection.description }) : null
96
+ ] }),
97
+ /* @__PURE__ */ jsx(CardContent, { children: activeSection ? renderSection(activeSection) : /* @__PURE__ */ jsxs(Empty, { children: [
98
+ /* @__PURE__ */ jsx(EmptyTitle, { children: "No settings sections" }),
99
+ /* @__PURE__ */ jsx(EmptyDescription, { children: "Add at least one section to render settings content." })
100
+ ] }) })
101
+ ] }),
102
+ showActions ? /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap justify-end gap-2", children: [
103
+ onDiscard ? /* @__PURE__ */ jsx(
104
+ Button,
105
+ {
106
+ variant: "ghost",
107
+ onClick: onDiscard,
108
+ disabled: saveState === "saving" || saveState === "loading",
109
+ children: discardLabel
110
+ }
111
+ ) : null,
112
+ onSave ? /* @__PURE__ */ jsx(
113
+ Button,
114
+ {
115
+ onClick: onSave,
116
+ disabled: saveState === "saving" || saveState === "loading",
117
+ children: saveLabel
118
+ }
119
+ ) : null
120
+ ] }) : null
121
+ ] })
122
+ ] })
123
+ ] });
124
+ }
125
+
126
+ export { SettingsPageKit };
@@ -0,0 +1,77 @@
1
+ import { StaggerChildren } from './chunk-DQPK2XRL.js';
2
+ import { Heading } from './chunk-WI547C47.js';
3
+ import { ScrollFadeIn } from './chunk-I23DDSU7.js';
4
+ import { Card } from './chunk-AH6YSYYT.js';
5
+ import { SparklesIcon } from './chunk-CGUCH322.js';
6
+ import { SettingsIcon } from './chunk-OITJWGFV.js';
7
+ import { SearchIcon } from './chunk-T6BRD7TS.js';
8
+ import { Badge } from './chunk-S4JAHKOP.js';
9
+ import { cn } from './chunk-QYZT24TS.js';
10
+ import { jsx, jsxs } from 'react/jsx-runtime';
11
+
12
+ var defaultSteps = [
13
+ {
14
+ title: "Discovery",
15
+ description: "We analyze your workflows and identify automation opportunities.",
16
+ icon: /* @__PURE__ */ jsx(SearchIcon, { size: 24, "aria-hidden": true })
17
+ },
18
+ {
19
+ title: "Implementation",
20
+ description: "Our team builds and integrates AI solutions tailored to your needs.",
21
+ icon: /* @__PURE__ */ jsx(SettingsIcon, { size: 24, "aria-hidden": true })
22
+ },
23
+ {
24
+ title: "Optimization",
25
+ description: "Continuous monitoring and refinement to maximize ROI.",
26
+ icon: /* @__PURE__ */ jsx(SparklesIcon, { size: 24, "aria-hidden": true })
27
+ }
28
+ ];
29
+ function ProcessFlowBlock({
30
+ title = "How it works",
31
+ description,
32
+ badge,
33
+ steps = defaultSteps,
34
+ className
35
+ }) {
36
+ const colsClass = steps.length === 4 ? "md:grid-cols-4" : "md:grid-cols-3";
37
+ return /* @__PURE__ */ jsx("section", { className: cn("py-16 md:py-32", className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-5xl px-6", children: [
38
+ /* @__PURE__ */ jsx(ScrollFadeIn, { children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
39
+ !!badge && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "mb-4", children: badge }),
40
+ /* @__PURE__ */ jsx(Heading, { level: 2, size: "section", className: "text-4xl lg:text-5xl", children: title }),
41
+ !!description && /* @__PURE__ */ jsx("p", { className: "mt-4 text-text-secondary", children: description })
42
+ ] }) }),
43
+ /* @__PURE__ */ jsxs("div", { className: "relative mt-8 md:mt-16", children: [
44
+ /* @__PURE__ */ jsx(
45
+ "div",
46
+ {
47
+ "aria-hidden": true,
48
+ className: "absolute left-6 top-0 hidden h-full w-px border-l border-dashed border-border md:left-0 md:right-0 md:top-10 md:mx-auto md:block md:h-px md:w-full md:border-l-0 md:border-t"
49
+ }
50
+ ),
51
+ /* @__PURE__ */ jsx(
52
+ "div",
53
+ {
54
+ "aria-hidden": true,
55
+ className: "absolute left-6 top-0 block h-full w-px border-l border-dashed border-border md:hidden"
56
+ }
57
+ ),
58
+ /* @__PURE__ */ jsx(
59
+ StaggerChildren,
60
+ {
61
+ staggerMs: 120,
62
+ className: cn("relative grid gap-8", colsClass),
63
+ children: steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "relative flex flex-col items-center text-center", children: [
64
+ /* @__PURE__ */ jsx("div", { className: "mb-4 flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground text-sm font-bold", children: String(i + 1).padStart(2, "0") }),
65
+ /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
66
+ step.icon && /* @__PURE__ */ jsx("div", { className: "mb-2 flex justify-center text-accent", children: step.icon }),
67
+ /* @__PURE__ */ jsx(Heading, { level: 3, size: "title", className: "font-medium", children: step.title }),
68
+ /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-text-secondary", children: step.description })
69
+ ] })
70
+ ] }, step.title))
71
+ }
72
+ )
73
+ ] })
74
+ ] }) });
75
+ }
76
+
77
+ export { ProcessFlowBlock };
@@ -0,0 +1,120 @@
1
+ import { useSafeTimeout } from './chunk-MDAYDDTC.js';
2
+ import { Typography } from './chunk-N53OMWW2.js';
3
+ import { Textarea } from './chunk-4OBE2FS2.js';
4
+ import { Spinner } from './chunk-ZLSWCV55.js';
5
+ import { Field, FieldLabel, FieldContent } from './chunk-RX5EUODB.js';
6
+ import { Heading } from './chunk-WI547C47.js';
7
+ import { Input } from './chunk-AP3XXYAY.js';
8
+ import { Button } from './chunk-7KIDDF3I.js';
9
+ import { CheckIcon } from './chunk-CXACRCZ4.js';
10
+ import { cn } from './chunk-QYZT24TS.js';
11
+ import { useState } from 'react';
12
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
13
+
14
+ function ContactBlock({
15
+ onSubmit,
16
+ title = "Get in touch",
17
+ description = "Have a question or want to work together? Drop us a message.",
18
+ className,
19
+ namePlaceholder = "Your name",
20
+ emailPlaceholder = "you@example.com",
21
+ messagePlaceholder = "Tell us what you need...",
22
+ successTitle = "Message sent",
23
+ submitLabel = "Send message"
24
+ }) {
25
+ const [name, setName] = useState("");
26
+ const [email, setEmail] = useState("");
27
+ const [message, setMessage] = useState("");
28
+ const [status, setStatus] = useState("idle");
29
+ const setSafeTimeout = useSafeTimeout();
30
+ const handleSubmit = async (e) => {
31
+ e.preventDefault();
32
+ if (!name.trim() || !email.trim() || !message.trim()) return;
33
+ setStatus("loading");
34
+ try {
35
+ await onSubmit?.({ name, email, message });
36
+ } catch {
37
+ }
38
+ setSafeTimeout(() => {
39
+ setStatus("success");
40
+ setSafeTimeout(() => {
41
+ setStatus("idle");
42
+ setName("");
43
+ setEmail("");
44
+ setMessage("");
45
+ }, 2e3);
46
+ }, 800);
47
+ };
48
+ return /* @__PURE__ */ jsx("section", { className: cn("py-16 md:py-24", className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-lg px-6", children: [
49
+ /* @__PURE__ */ jsxs("div", { className: "mb-8 text-center", children: [
50
+ /* @__PURE__ */ jsx(Heading, { level: 2, size: "section", className: "text-text-primary", children: title }),
51
+ /* @__PURE__ */ jsx(Typography, { variant: "body", className: "mt-2 text-text-secondary", children: description })
52
+ ] }),
53
+ /* @__PURE__ */ jsx("div", { className: "glass-panel rounded-xl border border-border/50 p-6 sm:p-8", children: status === "success" ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4 py-8 text-center", children: [
54
+ /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-success/10 text-success", children: /* @__PURE__ */ jsx(CheckIcon, { size: 24 }) }),
55
+ /* @__PURE__ */ jsx(Heading, { level: 4, size: "title", className: "text-text-primary", children: successTitle }),
56
+ /* @__PURE__ */ jsxs(Typography, { variant: "body", className: "text-text-secondary", children: [
57
+ "We",
58
+ "'",
59
+ "ll get back to you soon."
60
+ ] })
61
+ ] }) : /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "space-y-6", children: [
62
+ /* @__PURE__ */ jsxs(Field, { children: [
63
+ /* @__PURE__ */ jsx(FieldLabel, { children: "Name" }),
64
+ /* @__PURE__ */ jsx(FieldContent, { children: /* @__PURE__ */ jsx(
65
+ Input,
66
+ {
67
+ name: "name",
68
+ placeholder: namePlaceholder,
69
+ value: name,
70
+ onChange: (e) => setName(e.target.value),
71
+ required: true
72
+ }
73
+ ) })
74
+ ] }),
75
+ /* @__PURE__ */ jsxs(Field, { children: [
76
+ /* @__PURE__ */ jsx(FieldLabel, { children: "Email" }),
77
+ /* @__PURE__ */ jsx(FieldContent, { children: /* @__PURE__ */ jsx(
78
+ Input,
79
+ {
80
+ name: "email",
81
+ type: "email",
82
+ placeholder: emailPlaceholder,
83
+ value: email,
84
+ onChange: (e) => setEmail(e.target.value),
85
+ required: true
86
+ }
87
+ ) })
88
+ ] }),
89
+ /* @__PURE__ */ jsxs(Field, { children: [
90
+ /* @__PURE__ */ jsx(FieldLabel, { children: "Message" }),
91
+ /* @__PURE__ */ jsx(FieldContent, { children: /* @__PURE__ */ jsx(
92
+ Textarea,
93
+ {
94
+ name: "message",
95
+ placeholder: messagePlaceholder,
96
+ rows: 4,
97
+ value: message,
98
+ onChange: (e) => setMessage(e.target.value),
99
+ required: true
100
+ }
101
+ ) })
102
+ ] }),
103
+ /* @__PURE__ */ jsx(
104
+ Button,
105
+ {
106
+ type: "submit",
107
+ className: "w-full",
108
+ variant: "accent",
109
+ disabled: status === "loading",
110
+ children: status === "loading" ? /* @__PURE__ */ jsxs(Fragment, { children: [
111
+ /* @__PURE__ */ jsx(Spinner, { className: "mr-2 h-4 w-4" }),
112
+ "Sending..."
113
+ ] }) : submitLabel
114
+ }
115
+ )
116
+ ] }) })
117
+ ] }) });
118
+ }
119
+
120
+ export { ContactBlock };
@@ -0,0 +1,110 @@
1
+ import { SidebarProvider, Sidebar, SidebarHeader, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarSeparator, SidebarContent, SidebarGroup, SidebarGroupLabel, SidebarGroupContent, SidebarMenuBadge, SidebarInset, SidebarTrigger } from './chunk-4HRVRW2X.js';
2
+ import { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbPage, BreadcrumbLink, BreadcrumbSeparator } from './chunk-35EX5FP5.js';
3
+ import { Avatar, AvatarFallback } from './chunk-NAAU5IWU.js';
4
+ import { Badge } from './chunk-S4JAHKOP.js';
5
+ import { cn } from './chunk-QYZT24TS.js';
6
+ import { useMemo, Fragment } from 'react';
7
+ import Link from 'next/link';
8
+ import { jsxs, jsx } from 'react/jsx-runtime';
9
+
10
+ var EMPTY_BREADCRUMBS = [];
11
+ function filterItemsByRole(items, currentRole) {
12
+ return items.filter((item) => {
13
+ if (!item.roles || item.roles.length === 0) {
14
+ return true;
15
+ }
16
+ if (!currentRole) {
17
+ return true;
18
+ }
19
+ return item.roles.includes(currentRole);
20
+ });
21
+ }
22
+ function deriveAvatarFallback(workspaceName) {
23
+ const initials = workspaceName.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part.charAt(0).toUpperCase()).join("");
24
+ return initials || "WS";
25
+ }
26
+ function NavigationShellPageKit({
27
+ workspaceName,
28
+ workspaceHref = "#",
29
+ navigationGroups,
30
+ currentRole,
31
+ activeHref,
32
+ sidebarOpen,
33
+ onSidebarOpenChange,
34
+ defaultSidebarOpen = true,
35
+ breadcrumbs = EMPTY_BREADCRUMBS,
36
+ headerSearch,
37
+ headerNotifications,
38
+ headerActions,
39
+ user,
40
+ emptyNavigationMessage = "No navigation items",
41
+ children,
42
+ className
43
+ }) {
44
+ const visibleGroups = useMemo(
45
+ () => navigationGroups.map((group) => ({
46
+ ...group,
47
+ items: filterItemsByRole(group.items, currentRole)
48
+ })).filter((group) => group.items.length > 0),
49
+ [currentRole, navigationGroups]
50
+ );
51
+ return /* @__PURE__ */ jsxs(
52
+ SidebarProvider,
53
+ {
54
+ className: cn("min-h-[640px] w-full", className),
55
+ open: sidebarOpen,
56
+ onOpenChange: onSidebarOpenChange,
57
+ defaultOpen: defaultSidebarOpen,
58
+ children: [
59
+ /* @__PURE__ */ jsxs(Sidebar, { variant: "inset", collapsible: "icon", children: [
60
+ /* @__PURE__ */ jsx(SidebarHeader, { children: /* @__PURE__ */ jsx(SidebarMenu, { children: /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(SidebarMenuButton, { asChild: true, size: "lg", isActive: true, children: /* @__PURE__ */ jsxs(Link, { href: workspaceHref, children: [
61
+ /* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8", children: /* @__PURE__ */ jsx(AvatarFallback, { children: deriveAvatarFallback(workspaceName) }) }),
62
+ /* @__PURE__ */ jsx("span", { className: "truncate font-semibold", children: workspaceName })
63
+ ] }) }) }) }) }),
64
+ /* @__PURE__ */ jsx(SidebarSeparator, {}),
65
+ /* @__PURE__ */ jsx(SidebarContent, { children: /* @__PURE__ */ jsx("nav", { "aria-label": "Application navigation", children: visibleGroups.length === 0 ? /* @__PURE__ */ jsxs(SidebarGroup, { children: [
66
+ /* @__PURE__ */ jsx(SidebarGroupLabel, { children: "Navigation" }),
67
+ /* @__PURE__ */ jsx(SidebarGroupContent, { children: /* @__PURE__ */ jsx("p", { className: "px-2 py-2 text-xs text-text-tertiary", children: emptyNavigationMessage }) })
68
+ ] }) : visibleGroups.map((group) => /* @__PURE__ */ jsxs(SidebarGroup, { children: [
69
+ /* @__PURE__ */ jsx(SidebarGroupLabel, { children: group.label }),
70
+ /* @__PURE__ */ jsx(SidebarGroupContent, { children: /* @__PURE__ */ jsx(SidebarMenu, { children: group.items.map((item) => /* @__PURE__ */ jsxs(SidebarMenuItem, { children: [
71
+ /* @__PURE__ */ jsx(SidebarMenuButton, { asChild: true, isActive: item.isActive ?? activeHref === item.href, children: /* @__PURE__ */ jsxs(Link, { href: item.href, children: [
72
+ item.icon ? /* @__PURE__ */ jsx("span", { className: "shrink-0", children: item.icon }) : null,
73
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: item.label })
74
+ ] }) }),
75
+ item.badge ? /* @__PURE__ */ jsx(SidebarMenuBadge, { children: item.badge }) : null
76
+ ] }, item.label)) }) })
77
+ ] }, group.label)) }) })
78
+ ] }),
79
+ /* @__PURE__ */ jsxs(SidebarInset, { children: [
80
+ /* @__PURE__ */ jsx("header", { className: "sticky top-0 z-10 border-b border-border/70 bg-background/95", children: /* @__PURE__ */ jsxs("div", { className: "flex min-h-14 items-center gap-2 px-4 md:px-6", children: [
81
+ /* @__PURE__ */ jsx(SidebarTrigger, {}),
82
+ breadcrumbs.length > 0 ? /* @__PURE__ */ jsx(Breadcrumb, { className: "hidden md:block", children: /* @__PURE__ */ jsx(BreadcrumbList, { children: breadcrumbs.map((item, index) => {
83
+ const isLast = index === breadcrumbs.length - 1;
84
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
85
+ /* @__PURE__ */ jsx(BreadcrumbItem, { children: isLast || !item.href ? /* @__PURE__ */ jsx(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsx(Link, { href: item.href, children: item.label }) }) }),
86
+ !isLast ? /* @__PURE__ */ jsx(BreadcrumbSeparator, {}) : null
87
+ ] }, `${item.label}-${index}`);
88
+ }) }) }) : null,
89
+ /* @__PURE__ */ jsxs("div", { className: "ml-auto flex items-center gap-2", children: [
90
+ headerSearch ? /* @__PURE__ */ jsx("div", { className: "hidden sm:flex", children: headerSearch }) : null,
91
+ headerNotifications,
92
+ headerActions,
93
+ user ? /* @__PURE__ */ jsxs("div", { className: "hidden items-center gap-2 rounded-md border border-border/60 px-2 py-1 md:flex", children: [
94
+ /* @__PURE__ */ jsx(Avatar, { className: "h-7 w-7", children: /* @__PURE__ */ jsx(AvatarFallback, { children: user.avatarFallback ?? user.name.slice(0, 2).toUpperCase() }) }),
95
+ /* @__PURE__ */ jsxs("div", { className: "leading-tight", children: [
96
+ /* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-text-primary", children: user.name }),
97
+ user.email ? /* @__PURE__ */ jsx("p", { className: "text-xs text-text-tertiary", children: user.email }) : null
98
+ ] })
99
+ ] }) : null,
100
+ currentRole ? /* @__PURE__ */ jsx(Badge, { variant: "outline", children: currentRole }) : null
101
+ ] })
102
+ ] }) }),
103
+ /* @__PURE__ */ jsx("main", { className: "flex-1 p-4 md:p-6", children })
104
+ ] })
105
+ ]
106
+ }
107
+ );
108
+ }
109
+
110
+ export { NavigationShellPageKit };
@@ -0,0 +1,33 @@
1
+ import { ToolCallCard } from './chunk-MLUSJTS2.js';
2
+ import { ThinkingIndicator } from './chunk-ZHTQF2KI.js';
3
+ import { AgentMessageBubble } from './chunk-AUSYEAIJ.js';
4
+ import { cn } from './chunk-QYZT24TS.js';
5
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
+
7
+ function AgentConversationBlock({ className, messages, ref, ...props }) {
8
+ return /* @__PURE__ */ jsx("div", { ref, className: cn("surface-solid flex flex-col gap-4 rounded-lg p-4", className), ...props, children: messages.map((msg) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
9
+ msg.isThinking && /* @__PURE__ */ jsx(ThinkingIndicator, { reasoning: msg.reasoning }),
10
+ /* @__PURE__ */ jsx(
11
+ AgentMessageBubble,
12
+ {
13
+ role: msg.role,
14
+ content: msg.content,
15
+ timestamp: msg.timestamp,
16
+ isStreaming: msg.isStreaming,
17
+ toolCalls: msg.toolCalls && msg.toolCalls.length > 0 ? /* @__PURE__ */ jsx(Fragment, { children: msg.toolCalls.map((tc, i) => /* @__PURE__ */ jsx(
18
+ ToolCallCard,
19
+ {
20
+ toolName: tc.toolName,
21
+ args: tc.args,
22
+ status: tc.status,
23
+ result: tc.result,
24
+ duration: tc.duration
25
+ },
26
+ i
27
+ )) }) : void 0
28
+ }
29
+ )
30
+ ] }, msg.id)) });
31
+ }
32
+
33
+ export { AgentConversationBlock };
@@ -0,0 +1,18 @@
1
+ import { cn } from './chunk-QYZT24TS.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ function NativeSelect({ className, ref, ...props }) {
5
+ return /* @__PURE__ */ jsx(
6
+ "select",
7
+ {
8
+ ref,
9
+ className: cn(
10
+ "flex h-9 w-full rounded-md border border-border bg-surface px-4 py-1.5 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent disabled:cursor-not-allowed disabled:opacity-50 text-text-primary appearance-none",
11
+ className
12
+ ),
13
+ ...props
14
+ }
15
+ );
16
+ }
17
+
18
+ export { NativeSelect };
@@ -0,0 +1,52 @@
1
+ import { StaggerChildren } from './chunk-DQPK2XRL.js';
2
+ import { Heading } from './chunk-WI547C47.js';
3
+ import { ScrollFadeIn } from './chunk-I23DDSU7.js';
4
+ import Image from 'next/image';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
6
+
7
+ var defaultMembers = [
8
+ {
9
+ name: "M\xE9schac Irung",
10
+ role: "Creator",
11
+ avatar: "https://avatars.githubusercontent.com/u/47919550?v=4"
12
+ },
13
+ {
14
+ name: "Th\xE9o Balick",
15
+ role: "Frontend Dev",
16
+ avatar: "https://avatars.githubusercontent.com/u/68236786?v=4"
17
+ },
18
+ {
19
+ name: "Glodie Lukose",
20
+ role: "Frontend Dev",
21
+ avatar: "https://avatars.githubusercontent.com/u/99137927?v=4"
22
+ },
23
+ {
24
+ name: "Bernard Ngandu",
25
+ role: "Backend Dev",
26
+ avatar: "https://avatars.githubusercontent.com/u/31113941?v=4"
27
+ }
28
+ ];
29
+ var defaultSections = [
30
+ { heading: "Leadership", members: defaultMembers },
31
+ { heading: "Engineering", members: defaultMembers },
32
+ { heading: "Marketing", members: defaultMembers }
33
+ ];
34
+ function TeamBlock({
35
+ title = "Our team",
36
+ sections = defaultSections,
37
+ className
38
+ }) {
39
+ return /* @__PURE__ */ jsx(ScrollFadeIn, { children: /* @__PURE__ */ jsx("section", { className: className ?? "py-12 md:py-32", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl px-8 lg:px-0", children: [
40
+ /* @__PURE__ */ jsx(Heading, { level: 2, size: "display", className: "mb-8 md:mb-16", children: title }),
41
+ sections.map((section, sIdx) => /* @__PURE__ */ jsxs("div", { className: sIdx > 0 ? "mt-6" : void 0, children: [
42
+ /* @__PURE__ */ jsx(Heading, { level: 3, size: "eyebrow", className: "mb-6", children: section.heading }),
43
+ /* @__PURE__ */ jsx(StaggerChildren, { staggerMs: 80, className: "grid grid-cols-2 gap-4 border-t py-6 md:grid-cols-4", children: section.members.map((member, index) => /* @__PURE__ */ jsxs("div", { children: [
44
+ /* @__PURE__ */ jsx("div", { className: "bg-background size-20 rounded-full border p-0.5 shadow shadow-sm", children: /* @__PURE__ */ jsx(Image, { className: "aspect-square rounded-full object-cover", src: member.avatar, alt: member.name, height: 460, width: 460 }) }),
45
+ /* @__PURE__ */ jsx("span", { className: "mt-2 block text-sm truncate", children: member.name }),
46
+ /* @__PURE__ */ jsx("span", { className: "text-text-tertiary block text-xs truncate", children: member.role })
47
+ ] }, index)) })
48
+ ] }, section.heading))
49
+ ] }) }) });
50
+ }
51
+
52
+ export { TeamBlock };
@@ -39,7 +39,7 @@ var defaultConfig = {
39
39
  color: "rgb(var(--chart-1))"
40
40
  }
41
41
  };
42
- function HeatmapBlock({
42
+ function HeatmapChartBlock({
43
43
  data = defaultData,
44
44
  config = defaultConfig,
45
45
  title = "User Activity Heatmap",
@@ -62,4 +62,4 @@ function HeatmapBlock({
62
62
  ] });
63
63
  }
64
64
 
65
- export { HeatmapBlock };
65
+ export { HeatmapChartBlock };
@@ -1,4 +1,4 @@
1
- import { getShaderPreset } from './chunk-DF47R6LN.js';
1
+ import { getShaderPreset } from './chunk-AWIG4QN6.js';
2
2
  import { useTheme } from './chunk-HJC6U46F.js';
3
3
  import { useMemo } from 'react';
4
4
 
@@ -0,0 +1,94 @@
1
+ import { Typography } from './chunk-N53OMWW2.js';
2
+ import { Heading } from './chunk-WI547C47.js';
3
+ import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-PXDHNGTG.js';
4
+ import { ScrollFadeIn } from './chunk-I23DDSU7.js';
5
+ import { CheckIcon } from './chunk-CXACRCZ4.js';
6
+ import { XIcon } from './chunk-UIUMTURU.js';
7
+ import { Badge } from './chunk-S4JAHKOP.js';
8
+ import { cn } from './chunk-QYZT24TS.js';
9
+ import { jsx, jsxs } from 'react/jsx-runtime';
10
+
11
+ var defaultPlans = [
12
+ {
13
+ name: "Starter",
14
+ features: {
15
+ "Components": "50+",
16
+ "Design Tokens": true,
17
+ "Dark Mode": true,
18
+ "TypeScript": true,
19
+ "Priority Support": false,
20
+ "Custom Branding": false,
21
+ "SSO / SAML": false,
22
+ "SLA Guarantee": false
23
+ }
24
+ },
25
+ {
26
+ name: "Pro",
27
+ featured: true,
28
+ features: {
29
+ "Components": "100+",
30
+ "Design Tokens": true,
31
+ "Dark Mode": true,
32
+ "TypeScript": true,
33
+ "Priority Support": true,
34
+ "Custom Branding": true,
35
+ "SSO / SAML": false,
36
+ "SLA Guarantee": false
37
+ }
38
+ },
39
+ {
40
+ name: "Enterprise",
41
+ features: {
42
+ "Components": "100+",
43
+ "Design Tokens": true,
44
+ "Dark Mode": true,
45
+ "TypeScript": true,
46
+ "Priority Support": true,
47
+ "Custom Branding": true,
48
+ "SSO / SAML": true,
49
+ "SLA Guarantee": true
50
+ }
51
+ }
52
+ ];
53
+ function ComparisonBlock({
54
+ plans = defaultPlans,
55
+ title = "Compare plans",
56
+ description = "See which plan is right for your team.",
57
+ className
58
+ }) {
59
+ const featureNames = plans.length > 0 ? Object.keys(plans[0].features) : [];
60
+ return /* @__PURE__ */ jsx("section", { className: cn("py-16 md:py-24", className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-5xl px-6", children: [
61
+ /* @__PURE__ */ jsx(ScrollFadeIn, { children: /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center", children: [
62
+ /* @__PURE__ */ jsx(Heading, { level: 2, size: "section", className: "text-text-primary", children: title }),
63
+ !!description && /* @__PURE__ */ jsx(Typography, { variant: "body", className: "mt-4 text-text-secondary", children: description })
64
+ ] }) }),
65
+ /* @__PURE__ */ jsx(ScrollFadeIn, { delay: 0.1, children: /* @__PURE__ */ jsx("div", { className: "overflow-x-auto rounded-lg border border-border", children: /* @__PURE__ */ jsxs(Table, { children: [
66
+ /* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
67
+ /* @__PURE__ */ jsx(TableHead, { className: "w-[200px] text-text-primary font-semibold", children: "Feature" }),
68
+ plans.map((plan) => /* @__PURE__ */ jsx(
69
+ TableHead,
70
+ {
71
+ className: cn(
72
+ "text-center font-semibold",
73
+ plan.featured && "text-accent"
74
+ ),
75
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-1.5", children: [
76
+ plan.name,
77
+ plan.featured && /* @__PURE__ */ jsx(Badge, { variant: "accent", className: "text-[10px]", children: "Popular" })
78
+ ] })
79
+ },
80
+ plan.name
81
+ ))
82
+ ] }) }),
83
+ /* @__PURE__ */ jsx(TableBody, { children: featureNames.map((feature) => /* @__PURE__ */ jsxs(TableRow, { className: "transition-colors hover:bg-surface-active/50", children: [
84
+ /* @__PURE__ */ jsx(TableCell, { className: "font-medium text-text-primary", children: feature }),
85
+ plans.map((plan) => {
86
+ const value = plan.features[feature];
87
+ return /* @__PURE__ */ jsx(TableCell, { className: "text-center", children: typeof value === "boolean" ? value ? /* @__PURE__ */ jsx(CheckIcon, { size: 16, className: "mx-auto text-success" }) : /* @__PURE__ */ jsx(XIcon, { size: 16, className: "mx-auto text-text-tertiary" }) : /* @__PURE__ */ jsx("span", { className: "text-sm text-text-primary", children: value }) }, plan.name);
88
+ })
89
+ ] }, feature)) })
90
+ ] }) }) })
91
+ ] }) });
92
+ }
93
+
94
+ export { ComparisonBlock };