klun-ui 0.1.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 (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +106 -0
  3. package/dist/charts/index.cjs +160 -0
  4. package/dist/charts/index.cjs.map +1 -0
  5. package/dist/charts/index.d.cts +89 -0
  6. package/dist/charts/index.d.ts +89 -0
  7. package/dist/charts/index.js +154 -0
  8. package/dist/charts/index.js.map +1 -0
  9. package/dist/chunk-FTYQRXS5.cjs +10152 -0
  10. package/dist/chunk-FTYQRXS5.cjs.map +1 -0
  11. package/dist/chunk-T225J6LV.js +13 -0
  12. package/dist/chunk-T225J6LV.js.map +1 -0
  13. package/dist/chunk-TPGAXYFU.cjs +15 -0
  14. package/dist/chunk-TPGAXYFU.cjs.map +1 -0
  15. package/dist/chunk-XDAR7UMF.js +10009 -0
  16. package/dist/chunk-XDAR7UMF.js.map +1 -0
  17. package/dist/fonts/DMMono-Light.ttf +0 -0
  18. package/dist/fonts/DMMono-Medium.ttf +0 -0
  19. package/dist/fonts/DMMono-Regular.ttf +0 -0
  20. package/dist/fonts/InterDisplay-Bold.woff2 +0 -0
  21. package/dist/fonts/InterDisplay-Medium.woff2 +0 -0
  22. package/dist/fonts/InterDisplay-Regular.woff2 +0 -0
  23. package/dist/fonts/InterDisplay-SemiBold.woff2 +0 -0
  24. package/dist/fonts/InterVariable-Italic.woff2 +0 -0
  25. package/dist/fonts/InterVariable.woff2 +0 -0
  26. package/dist/index.cjs +581 -0
  27. package/dist/index.cjs.map +1 -0
  28. package/dist/index.d.cts +2701 -0
  29. package/dist/index.d.ts +2701 -0
  30. package/dist/index.js +4 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/styles.css +9137 -0
  33. package/dist/templates/index.cjs +1132 -0
  34. package/dist/templates/index.cjs.map +1 -0
  35. package/dist/templates/index.d.cts +43 -0
  36. package/dist/templates/index.d.ts +43 -0
  37. package/dist/templates/index.js +1120 -0
  38. package/dist/templates/index.js.map +1 -0
  39. package/package.json +95 -0
@@ -0,0 +1,1120 @@
1
+ import { Badge, Button, SegmentedControl, Card, Tabs, ProgressBar, Input, Select, Switch, Divider, AvatarGroup, HorizontalFilter, ContentLabel, Chip, Alert, Accordion, Label, Avatar, Table, ImageUpload, SelectMenu, Textarea, CharacterCounter } from '../chunk-XDAR7UMF.js';
2
+ import '../chunk-T225J6LV.js';
3
+ import { useState, useRef, useEffect } from 'react';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
+
6
+ function Sidebar({ active, onNavigate, user }) {
7
+ const main = [
8
+ { id: "overview", label: "Overview", icon: "ri-dashboard-line" },
9
+ { id: "transactions", label: "Transactions", icon: "ri-arrow-left-right-line", badge: "24" },
10
+ { id: "cards", label: "Cards", icon: "ri-bank-card-line" },
11
+ { id: "analytics", label: "Analytics", icon: "ri-bar-chart-2-line" },
12
+ { id: "invoices", label: "Invoices", icon: "ri-bill-line" }
13
+ ];
14
+ const other = [
15
+ { id: "settings", label: "Settings", icon: "ri-settings-2-line" },
16
+ { id: "support", label: "Support", icon: "ri-headphone-line" }
17
+ ];
18
+ const Item = ({ it }) => {
19
+ const on = active === it.id;
20
+ return /* @__PURE__ */ jsxs("button", { onClick: () => onNavigate(it.id), style: {
21
+ display: "flex",
22
+ alignItems: "center",
23
+ gap: 10,
24
+ width: "100%",
25
+ height: 38,
26
+ padding: "0 12px",
27
+ border: "none",
28
+ borderRadius: "var(--klun-radius-lg)",
29
+ cursor: "pointer",
30
+ textAlign: "left",
31
+ background: on ? "var(--klun-bg-white-0)" : "transparent",
32
+ boxShadow: on ? "var(--klun-shadow-xs), inset 0 0 0 1px var(--klun-stroke-soft-200)" : "none",
33
+ color: on ? "var(--klun-text-strong-950)" : "var(--klun-text-sub-600)",
34
+ font: "var(--klun-text-label-sm)"
35
+ }, children: [
36
+ /* @__PURE__ */ jsx("i", { className: it.icon, style: { fontSize: 20, color: on ? "var(--klun-primary-base)" : "var(--klun-icon-sub-600)" } }),
37
+ /* @__PURE__ */ jsx("span", { style: { flex: 1 }, children: it.label }),
38
+ it.badge ? /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-xs)", padding: "1px 6px", borderRadius: "var(--klun-radius-pill)", background: "var(--klun-bg-weak-50)", color: "var(--klun-text-sub-600)" }, children: it.badge }) : null
39
+ ] });
40
+ };
41
+ return /* @__PURE__ */ jsxs("aside", { style: { width: 272, flexShrink: 0, height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", padding: 20, background: "var(--klun-bg-weak-50)", borderRight: "1px solid var(--klun-stroke-soft-200)" }, children: [
42
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, padding: "4px 8px 18px" }, children: [
43
+ /* @__PURE__ */ jsx("div", { style: { width: 36, height: 36, borderRadius: "var(--klun-radius-lg)", background: "var(--klun-bg-strong-950)", color: "var(--klun-text-white-0)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsx("i", { className: "ri-shapes-line", style: { fontSize: 20 } }) }),
44
+ /* @__PURE__ */ jsxs("div", { style: { lineHeight: 1.1 }, children: [
45
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-label-md)", color: "var(--klun-text-strong-950)" }, children: "Apex Finance" }),
46
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)" }, children: "Workspace" })
47
+ ] })
48
+ ] }),
49
+ /* @__PURE__ */ jsxs("div", { style: { position: "relative", marginBottom: 16 }, children: [
50
+ /* @__PURE__ */ jsx("i", { className: "ri-search-line", style: { position: "absolute", left: 12, top: "50%", transform: "translateY(-50%)", fontSize: 18, color: "var(--klun-icon-soft-400)" } }),
51
+ /* @__PURE__ */ jsx("input", { placeholder: "Search", style: { width: "100%", boxSizing: "border-box", height: 36, padding: "0 12px 0 36px", borderRadius: "var(--klun-radius-lg)", border: "none", background: "var(--klun-bg-white-0)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)", font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-strong-950)", outline: "none" } })
52
+ ] }),
53
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-subheading-2xs)", letterSpacing: "var(--klun-subheading-2xs-tracking)", textTransform: "uppercase", color: "var(--klun-text-soft-400)", padding: "0 12px 8px" }, children: "Main" }),
54
+ /* @__PURE__ */ jsx("nav", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: main.map((it) => /* @__PURE__ */ jsx(Item, { it }, it.id)) }),
55
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-subheading-2xs)", letterSpacing: "var(--klun-subheading-2xs-tracking)", textTransform: "uppercase", color: "var(--klun-text-soft-400)", padding: "20px 12px 8px" }, children: "Other" }),
56
+ /* @__PURE__ */ jsx("nav", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: other.map((it) => /* @__PURE__ */ jsx(Item, { it }, it.id)) }),
57
+ /* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
58
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, padding: 8, borderRadius: "var(--klun-radius-xl)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)", background: "var(--klun-bg-white-0)" }, children: [
59
+ /* @__PURE__ */ jsx("span", { style: { width: 36, height: 36, borderRadius: "var(--klun-radius-pill)", background: "var(--klun-state-feature-lighter)", color: "var(--klun-state-feature-base)", display: "flex", alignItems: "center", justifyContent: "center", font: "var(--klun-text-label-sm)", flexShrink: 0 }, children: user.initials }),
60
+ /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0, lineHeight: 1.2 }, children: [
61
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: user.name }),
62
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: user.email })
63
+ ] }),
64
+ /* @__PURE__ */ jsx("i", { className: "ri-expand-up-down-line", style: { fontSize: 18, color: "var(--klun-icon-soft-400)" } })
65
+ ] })
66
+ ] });
67
+ }
68
+ function TopBar({ title, subtitle }) {
69
+ return /* @__PURE__ */ jsxs("header", { style: { display: "flex", alignItems: "center", gap: 16, padding: "20px 32px", borderBottom: "1px solid var(--klun-stroke-soft-200)", background: "var(--klun-bg-white-0)" }, children: [
70
+ /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
71
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
72
+ /* @__PURE__ */ jsx("h1", { style: { margin: 0, font: "var(--klun-text-title-h5)", color: "var(--klun-text-strong-950)" }, children: title }),
73
+ /* @__PURE__ */ jsx(Badge, { color: "gray", size: "small", children: "Live" })
74
+ ] }),
75
+ /* @__PURE__ */ jsx("p", { style: { margin: "2px 0 0", font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: subtitle })
76
+ ] }),
77
+ /* @__PURE__ */ jsx(Button, { iconOnly: true, variant: "neutral", appearance: "stroke", icon: /* @__PURE__ */ jsx("i", { className: "ri-notification-3-line" }) }),
78
+ /* @__PURE__ */ jsx(Button, { iconOnly: true, variant: "neutral", appearance: "stroke", icon: /* @__PURE__ */ jsx("i", { className: "ri-calendar-line" }) }),
79
+ /* @__PURE__ */ jsx(Button, { variant: "primary", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-add-line" }), children: "New transfer" })
80
+ ] });
81
+ }
82
+ function OverviewScreen() {
83
+ const [range, setRange] = useState("month");
84
+ const [tab, setTab] = useState("all");
85
+ const stats = [
86
+ { label: "Total balance", value: "$84,920.50", delta: "+12.4%", up: true, icon: "ri-wallet-3-line", tint: "feature" },
87
+ { label: "Income", value: "$24,300.00", delta: "+8.1%", up: true, icon: "ri-arrow-down-line", tint: "success" },
88
+ { label: "Expenses", value: "$11,240.80", delta: "-3.2%", up: false, icon: "ri-arrow-up-line", tint: "warning" },
89
+ { label: "Savings", value: "$13,059.20", delta: "+5.7%", up: true, icon: "ri-safe-2-line", tint: "information" }
90
+ ];
91
+ const tx = [
92
+ { name: "Figma", sub: "Subscription", amt: "-$45.00", date: "Today, 10:24", status: "Completed", color: "green", icon: "ri-pencil-ruler-2-line", bg: "var(--klun-state-feature-lighter)", fg: "var(--klun-state-feature-base)" },
93
+ { name: "Stripe payout", sub: "Income", amt: "+$2,400.00", date: "Today, 08:10", status: "Completed", color: "green", icon: "ri-bank-line", bg: "var(--klun-state-success-lighter)", fg: "var(--klun-state-success-base)" },
94
+ { name: "AWS", sub: "Infrastructure", amt: "-$312.40", date: "Yesterday", status: "Pending", color: "orange", icon: "ri-cloud-line", bg: "var(--klun-state-warning-lighter)", fg: "var(--klun-state-warning-base)" },
95
+ { name: "Linear", sub: "Subscription", amt: "-$96.00", date: "Mar 12", status: "Completed", color: "green", icon: "ri-flow-chart", bg: "var(--klun-state-information-lighter)", fg: "var(--klun-state-information-base)" },
96
+ { name: "Refund \xB7 Notion", sub: "Income", amt: "+$120.00", date: "Mar 11", status: "Failed", color: "red", icon: "ri-file-text-line", bg: "var(--klun-bg-weak-50)", fg: "var(--klun-text-sub-600)" }
97
+ ];
98
+ const budget = [
99
+ ["Housing", 38, "feature"],
100
+ ["Food", 24, "success"],
101
+ ["Transport", 18, "warning"]
102
+ ];
103
+ return /* @__PURE__ */ jsxs("div", { style: { padding: 32, display: "flex", flexDirection: "column", gap: 24 }, children: [
104
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
105
+ /* @__PURE__ */ jsx(SegmentedControl, { value: range, onChange: setRange, items: [{ value: "week", label: "Week" }, { value: "month", label: "Month" }, { value: "year", label: "Year" }] }),
106
+ /* @__PURE__ */ jsx(Button, { variant: "neutral", appearance: "stroke", size: "small", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-download-2-line" }), children: "Export" })
107
+ ] }),
108
+ /* @__PURE__ */ jsx("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, 1fr)", gap: 16 }, children: stats.map((s) => /* @__PURE__ */ jsxs(Card, { variant: "stroke", padding: 18, children: [
109
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start" }, children: [
110
+ /* @__PURE__ */ jsx("div", { style: { width: 40, height: 40, borderRadius: "var(--klun-radius-lg)", background: `var(--klun-state-${s.tint}-lighter)`, color: `var(--klun-state-${s.tint}-base)`, display: "flex", alignItems: "center", justifyContent: "center", fontSize: 22 }, children: /* @__PURE__ */ jsx("i", { className: s.icon }) }),
111
+ /* @__PURE__ */ jsx(Badge, { color: s.up ? "green" : "red", variant: "light", size: "small", leadingIcon: /* @__PURE__ */ jsx("i", { className: s.up ? "ri-arrow-up-line" : "ri-arrow-down-line" }), children: s.delta })
112
+ ] }),
113
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 16, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: s.label }),
114
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 2, font: "var(--klun-text-title-h5)", color: "var(--klun-text-strong-950)" }, children: s.value })
115
+ ] }, s.label)) }),
116
+ /* @__PURE__ */ jsxs("div", { style: { display: "grid", gridTemplateColumns: "1.7fr 1fr", gap: 16, alignItems: "start" }, children: [
117
+ /* @__PURE__ */ jsxs(Card, { variant: "stroke", padding: 0, children: [
118
+ /* @__PURE__ */ jsxs("div", { style: { padding: "16px 20px", borderBottom: "1px solid var(--klun-stroke-soft-200)", display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
119
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-label-lg)", color: "var(--klun-text-strong-950)" }, children: "Recent transactions" }),
120
+ /* @__PURE__ */ jsx(Button, { variant: "neutral", appearance: "ghost", size: "xsmall", trailingIcon: /* @__PURE__ */ jsx("i", { className: "ri-arrow-right-s-line" }), children: "View all" })
121
+ ] }),
122
+ /* @__PURE__ */ jsx("div", { style: { padding: "8px 12px" }, children: /* @__PURE__ */ jsx(Tabs, { value: tab, onChange: setTab, items: [{ value: "all", label: "All" }, { value: "income", label: "Income" }, { value: "expense", label: "Expenses" }] }) }),
123
+ /* @__PURE__ */ jsx("div", { children: tx.map((t, i) => /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 12, padding: "12px 20px", borderTop: i ? "1px solid var(--klun-stroke-soft-200)" : "none" }, children: [
124
+ /* @__PURE__ */ jsx("div", { style: { width: 38, height: 38, borderRadius: "var(--klun-radius-lg)", background: t.bg, color: t.fg, display: "flex", alignItems: "center", justifyContent: "center", fontSize: 20, flexShrink: 0 }, children: /* @__PURE__ */ jsx("i", { className: t.icon }) }),
125
+ /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
126
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)" }, children: t.name }),
127
+ /* @__PURE__ */ jsxs("div", { style: { font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)" }, children: [
128
+ t.sub,
129
+ " \xB7 ",
130
+ t.date
131
+ ] })
132
+ ] }),
133
+ /* @__PURE__ */ jsx(Badge, { color: t.color, variant: "light", size: "small", children: t.status }),
134
+ /* @__PURE__ */ jsx("div", { style: { width: 92, textAlign: "right", font: "var(--klun-text-label-sm)", color: t.amt[0] === "+" ? "var(--klun-state-success-base)" : "var(--klun-text-strong-950)" }, children: t.amt })
135
+ ] }, i)) })
136
+ ] }),
137
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
138
+ /* @__PURE__ */ jsxs(Card, { variant: "shadow", padding: 20, style: { background: "var(--klun-bg-strong-950)" }, children: [
139
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--klun-static-static-white)" }, children: [
140
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-paragraph-sm)", opacity: 0.7 }, children: "Virtual card" }),
141
+ /* @__PURE__ */ jsx("i", { className: "ri-visa-line", style: { fontSize: 24 } })
142
+ ] }),
143
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 28, font: "var(--klun-text-label-lg)", letterSpacing: "0.12em", color: "var(--klun-static-static-white)" }, children: "4218\xA0\xA0\u2022\u2022\u2022\u2022\xA0\xA0\u2022\u2022\u2022\u2022\xA0\xA09042" }),
144
+ /* @__PURE__ */ jsxs("div", { style: { marginTop: 16, display: "flex", justifyContent: "space-between", color: "var(--klun-static-static-white)", opacity: 0.8, font: "var(--klun-text-paragraph-xs)" }, children: [
145
+ /* @__PURE__ */ jsx("span", { children: "Arthur Taylor" }),
146
+ /* @__PURE__ */ jsx("span", { children: "09 / 28" })
147
+ ] })
148
+ ] }),
149
+ /* @__PURE__ */ jsxs(Card, { variant: "stroke", padding: 20, children: [
150
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
151
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-md)", color: "var(--klun-text-strong-950)" }, children: "Monthly budget" }),
152
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: "$11,240 / $16,000" })
153
+ ] }),
154
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 14 }, children: /* @__PURE__ */ jsx(ProgressBar, { value: 70 }) }),
155
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 16, display: "flex", flexDirection: "column", gap: 10 }, children: budget.map(([l, p, c]) => /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
156
+ /* @__PURE__ */ jsx("span", { style: { width: 8, height: 8, borderRadius: "var(--klun-radius-pill)", background: `var(--klun-state-${c}-base)` } }),
157
+ /* @__PURE__ */ jsx("span", { style: { flex: 1, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: l }),
158
+ /* @__PURE__ */ jsxs("span", { style: { font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)" }, children: [
159
+ p,
160
+ "%"
161
+ ] })
162
+ ] }, l)) })
163
+ ] })
164
+ ] })
165
+ ] })
166
+ ] });
167
+ }
168
+ function SettingsScreen() {
169
+ const [n, setN] = useState(true);
170
+ const [m, setM] = useState(false);
171
+ const Field = ({ label, children, hint, required }) => /* @__PURE__ */ jsxs("div", { style: { display: "grid", gridTemplateColumns: "220px 1fr", gap: 24, padding: "20px 0", borderTop: "1px solid var(--klun-stroke-soft-200)" }, children: [
172
+ /* @__PURE__ */ jsxs("div", { children: [
173
+ /* @__PURE__ */ jsx(Label, { required, children: label }),
174
+ hint ? /* @__PURE__ */ jsx("div", { style: { marginTop: 2, font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)" }, children: hint }) : null
175
+ ] }),
176
+ /* @__PURE__ */ jsx("div", { style: { maxWidth: 420 }, children })
177
+ ] });
178
+ return /* @__PURE__ */ jsx("div", { style: { padding: 32, maxWidth: 920 }, children: /* @__PURE__ */ jsxs(Card, { variant: "stroke", padding: 24, children: [
179
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 16 }, children: [
180
+ /* @__PURE__ */ jsx("span", { style: { width: 64, height: 64, borderRadius: "var(--klun-radius-pill)", background: "var(--klun-state-feature-lighter)", color: "var(--klun-state-feature-base)", display: "flex", alignItems: "center", justifyContent: "center", font: "var(--klun-text-title-h5)" }, children: "AT" }),
181
+ /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
182
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
183
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-lg)", color: "var(--klun-text-strong-950)" }, children: "Arthur Taylor" }),
184
+ /* @__PURE__ */ jsx(Badge, { color: "green", variant: "light", size: "small", dot: true, children: "Verified" })
185
+ ] }),
186
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: "arthur@alignui.com" })
187
+ ] }),
188
+ /* @__PURE__ */ jsx(Button, { variant: "neutral", appearance: "stroke", size: "small", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-upload-2-line" }), children: "Change photo" })
189
+ ] }),
190
+ /* @__PURE__ */ jsxs("div", { style: { marginTop: 8 }, children: [
191
+ /* @__PURE__ */ jsx(Field, { label: "Full name", required: true, children: /* @__PURE__ */ jsx(Input, { defaultValue: "Arthur Taylor" }) }),
192
+ /* @__PURE__ */ jsx(Field, { label: "Email address", required: true, hint: "Used for sign-in and receipts.", children: /* @__PURE__ */ jsx(Input, { type: "email", defaultValue: "arthur@alignui.com", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-mail-line" }) }) }),
193
+ /* @__PURE__ */ jsx(Field, { label: "Role", children: /* @__PURE__ */ jsxs(Select, { defaultValue: "finance", children: [
194
+ /* @__PURE__ */ jsx("option", { value: "finance", children: "Finance lead" }),
195
+ /* @__PURE__ */ jsx("option", { value: "admin", children: "Administrator" }),
196
+ /* @__PURE__ */ jsx("option", { value: "member", children: "Member" })
197
+ ] }) }),
198
+ /* @__PURE__ */ jsx(Field, { label: "Notifications", hint: "How we reach you.", children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 14 }, children: [
199
+ /* @__PURE__ */ jsxs("label", { style: { display: "flex", alignItems: "center", gap: 10, font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)" }, children: [
200
+ /* @__PURE__ */ jsx(Switch, { checked: n, onChange: setN }),
201
+ " Email notifications"
202
+ ] }),
203
+ /* @__PURE__ */ jsxs("label", { style: { display: "flex", alignItems: "center", gap: 10, font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)" }, children: [
204
+ /* @__PURE__ */ jsx(Switch, { checked: m, onChange: setM }),
205
+ " Marketing updates"
206
+ ] })
207
+ ] }) })
208
+ ] }),
209
+ /* @__PURE__ */ jsx(Divider, { style: { margin: "8px 0 20px" } }),
210
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "flex-end", gap: 10 }, children: [
211
+ /* @__PURE__ */ jsx(Button, { variant: "neutral", appearance: "stroke", children: "Cancel" }),
212
+ /* @__PURE__ */ jsx(Button, { variant: "primary", children: "Save changes" })
213
+ ] })
214
+ ] }) });
215
+ }
216
+ var PAGES = {
217
+ overview: { title: "Overview", subtitle: "Your money at a glance, March 2026.", render: () => /* @__PURE__ */ jsx(OverviewScreen, {}) },
218
+ settings: { title: "Settings", subtitle: "Manage your profile and preferences.", render: () => /* @__PURE__ */ jsx(SettingsScreen, {}) }
219
+ };
220
+ function DashboardTemplate() {
221
+ const [active, setActive] = useState("overview");
222
+ const page = PAGES[active] ?? {
223
+ title: active[0].toUpperCase() + active.slice(1),
224
+ subtitle: "Coming soon in this demo.",
225
+ render: () => /* @__PURE__ */ jsxs("div", { style: { padding: 64, textAlign: "center", color: "var(--klun-text-soft-400)", font: "var(--klun-text-paragraph-lg)" }, children: [
226
+ /* @__PURE__ */ jsx("i", { className: "ri-inbox-line", style: { fontSize: 40, display: "block", marginBottom: 12 } }),
227
+ "This screen isn't part of the demo \u2014 try Overview or Settings."
228
+ ] })
229
+ };
230
+ const user = { name: "Arthur Taylor", email: "arthur@alignui.com", initials: "AT" };
231
+ return /* @__PURE__ */ jsxs("div", { style: { display: "flex", height: "100%" }, children: [
232
+ /* @__PURE__ */ jsx(Sidebar, { active, onNavigate: setActive, user }),
233
+ /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
234
+ /* @__PURE__ */ jsx(TopBar, { title: page.title, subtitle: page.subtitle }),
235
+ /* @__PURE__ */ jsx("main", { style: { flex: 1, overflow: "auto", background: "var(--klun-bg-weak-50)" }, children: page.render() })
236
+ ] })
237
+ ] });
238
+ }
239
+ function AISidebar({ conversations, activeId, onSelect, onNew, user }) {
240
+ const groups = [
241
+ { label: "Today", items: conversations.filter((c) => c.group === "today") },
242
+ { label: "Previous 7 days", items: conversations.filter((c) => c.group === "week") }
243
+ ];
244
+ return /* @__PURE__ */ jsxs("aside", { style: { width: 280, flexShrink: 0, height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", padding: 16, background: "var(--klun-bg-weak-50)", borderRight: "1px solid var(--klun-stroke-soft-200)" }, children: [
245
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, padding: "4px 6px 16px" }, children: [
246
+ /* @__PURE__ */ jsx("div", { style: { width: 32, height: 32, borderRadius: "var(--klun-radius-md)", background: "var(--klun-bg-strong-950)", color: "var(--klun-text-white-0)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsx("i", { className: "ri-sparkling-2-fill", style: { fontSize: 18 } }) }),
247
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-md)", color: "var(--klun-text-strong-950)" }, children: "Klun AI" })
248
+ ] }),
249
+ /* @__PURE__ */ jsxs("button", { onClick: onNew, style: { display: "flex", alignItems: "center", gap: 8, width: "100%", height: 40, padding: "0 12px", marginBottom: 16, border: "none", borderRadius: "var(--klun-radius-lg)", cursor: "pointer", background: "var(--klun-primary-base)", color: "var(--klun-static-static-white)", font: "var(--klun-text-label-sm)" }, children: [
250
+ /* @__PURE__ */ jsx("i", { className: "ri-add-line", style: { fontSize: 20 } }),
251
+ " New chat"
252
+ ] }),
253
+ /* @__PURE__ */ jsxs("div", { style: { position: "relative", marginBottom: 16 }, children: [
254
+ /* @__PURE__ */ jsx("i", { className: "ri-search-line", style: { position: "absolute", left: 12, top: "50%", transform: "translateY(-50%)", fontSize: 18, color: "var(--klun-icon-soft-400)" } }),
255
+ /* @__PURE__ */ jsx("input", { placeholder: "Search chats", style: { width: "100%", boxSizing: "border-box", height: 36, padding: "0 12px 0 36px", borderRadius: "var(--klun-radius-lg)", border: "none", background: "var(--klun-bg-white-0)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)", font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-strong-950)", outline: "none" } })
256
+ ] }),
257
+ /* @__PURE__ */ jsx("div", { style: { flex: 1, overflow: "auto", display: "flex", flexDirection: "column", gap: 14 }, children: groups.map((g) => g.items.length ? /* @__PURE__ */ jsxs("div", { children: [
258
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-subheading-2xs)", letterSpacing: "var(--klun-subheading-2xs-tracking)", textTransform: "uppercase", color: "var(--klun-text-soft-400)", padding: "0 8px 6px" }, children: g.label }),
259
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: g.items.map((c) => {
260
+ const on = c.id === activeId;
261
+ return /* @__PURE__ */ jsxs("button", { onClick: () => onSelect(c.id), style: {
262
+ display: "flex",
263
+ alignItems: "center",
264
+ gap: 8,
265
+ width: "100%",
266
+ height: 36,
267
+ padding: "0 10px",
268
+ border: "none",
269
+ borderRadius: "var(--klun-radius-md)",
270
+ cursor: "pointer",
271
+ textAlign: "left",
272
+ background: on ? "var(--klun-bg-white-0)" : "transparent",
273
+ boxShadow: on ? "var(--klun-shadow-xs), inset 0 0 0 1px var(--klun-stroke-soft-200)" : "none",
274
+ color: on ? "var(--klun-text-strong-950)" : "var(--klun-text-sub-600)",
275
+ font: "var(--klun-text-label-sm)"
276
+ }, children: [
277
+ /* @__PURE__ */ jsx("i", { className: "ri-chat-1-line", style: { fontSize: 18, color: "var(--klun-icon-soft-400)", flexShrink: 0 } }),
278
+ /* @__PURE__ */ jsx("span", { style: { flex: 1, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: c.title })
279
+ ] }, c.id);
280
+ }) })
281
+ ] }, g.label) : null) }),
282
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, padding: 8, marginTop: 8, borderRadius: "var(--klun-radius-xl)", background: "var(--klun-bg-white-0)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)" }, children: [
283
+ /* @__PURE__ */ jsx("span", { style: { width: 32, height: 32, borderRadius: "var(--klun-radius-pill)", background: "var(--klun-state-feature-lighter)", color: "var(--klun-state-feature-base)", display: "flex", alignItems: "center", justifyContent: "center", font: "var(--klun-text-label-xs)", flexShrink: 0 }, children: user.initials }),
284
+ /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0, lineHeight: 1.2 }, children: [
285
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)" }, children: user.name }),
286
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)" }, children: "Free plan" })
287
+ ] }),
288
+ /* @__PURE__ */ jsx("i", { className: "ri-settings-3-line", style: { fontSize: 18, color: "var(--klun-icon-soft-400)" } })
289
+ ] })
290
+ ] });
291
+ }
292
+ function Bubble({ from = "them", avatar, children }) {
293
+ const me = from === "me";
294
+ return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: me ? "row-reverse" : "row", gap: 10, alignItems: "flex-end" }, children: [
295
+ avatar ? /* @__PURE__ */ jsx("span", { style: { flexShrink: 0 }, children: avatar }) : null,
296
+ /* @__PURE__ */ jsx("div", { style: { maxWidth: "76%", display: "flex", flexDirection: "column", gap: 4, alignItems: me ? "flex-end" : "flex-start" }, children: /* @__PURE__ */ jsx("div", { style: { padding: "10px 14px", font: "var(--klun-text-paragraph-sm)", borderRadius: me ? "var(--klun-radius-2xl) var(--klun-radius-2xl) var(--klun-radius-sm) var(--klun-radius-2xl)" : "var(--klun-radius-2xl) var(--klun-radius-2xl) var(--klun-radius-2xl) var(--klun-radius-sm)", background: me ? "var(--klun-primary-base)" : "var(--klun-bg-weak-50)", color: me ? "var(--klun-static-static-white)" : "var(--klun-text-strong-950)" }, children }) })
297
+ ] });
298
+ }
299
+ function AIChatView({ messages, busy, userInitials, onSuggest }) {
300
+ const endRef = useRef(null);
301
+ useEffect(() => {
302
+ endRef.current?.scrollTo?.(0, endRef.current.scrollHeight);
303
+ }, [messages, busy]);
304
+ const suggestions = [
305
+ { icon: "ri-file-list-3-line", text: "Summarize my unread invoices" },
306
+ { icon: "ri-line-chart-line", text: "Compare Q1 and Q2 revenue" },
307
+ { icon: "ri-mail-send-line", text: "Draft a follow-up email to a client" },
308
+ { icon: "ri-calendar-todo-line", text: "Plan my week around 3 deadlines" }
309
+ ];
310
+ if (messages.length === 0) {
311
+ return /* @__PURE__ */ jsxs("div", { style: { flex: 1, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", padding: 32, textAlign: "center" }, children: [
312
+ /* @__PURE__ */ jsx("div", { style: { width: 56, height: 56, borderRadius: "var(--klun-radius-2xl)", background: "var(--klun-bg-strong-950)", color: "var(--klun-text-white-0)", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 28, marginBottom: 20 }, children: /* @__PURE__ */ jsx("i", { className: "ri-sparkling-2-fill" }) }),
313
+ /* @__PURE__ */ jsx("h1", { style: { margin: 0, font: "var(--klun-text-title-h4)", color: "var(--klun-text-strong-950)" }, children: "How can I help, Arthur?" }),
314
+ /* @__PURE__ */ jsx("p", { style: { margin: "8px 0 28px", font: "var(--klun-text-paragraph-md)", color: "var(--klun-text-sub-600)" }, children: "Ask anything, or start from a suggestion below." }),
315
+ /* @__PURE__ */ jsx("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 12, maxWidth: 540, width: "100%" }, children: suggestions.map((s) => /* @__PURE__ */ jsxs("button", { onClick: () => onSuggest(s.text), style: {
316
+ display: "flex",
317
+ alignItems: "center",
318
+ gap: 10,
319
+ padding: "14px 16px",
320
+ textAlign: "left",
321
+ border: "none",
322
+ borderRadius: "var(--klun-radius-xl)",
323
+ cursor: "pointer",
324
+ background: "var(--klun-bg-white-0)",
325
+ boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)",
326
+ font: "var(--klun-text-label-sm)",
327
+ color: "var(--klun-text-strong-950)"
328
+ }, children: [
329
+ /* @__PURE__ */ jsx("i", { className: s.icon, style: { fontSize: 20, color: "var(--klun-primary-base)" } }),
330
+ /* @__PURE__ */ jsx("span", { children: s.text })
331
+ ] }, s.text)) })
332
+ ] });
333
+ }
334
+ return /* @__PURE__ */ jsx("div", { ref: endRef, style: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ jsxs("div", { style: { maxWidth: 720, margin: "0 auto", padding: "24px 24px 8px", display: "flex", flexDirection: "column", gap: 20 }, children: [
335
+ messages.map((m, i) => /* @__PURE__ */ jsx(
336
+ Bubble,
337
+ {
338
+ from: m.from,
339
+ avatar: m.from === "me" ? /* @__PURE__ */ jsx(Avatar, { size: "32", initials: userInitials, color: "purple" }) : /* @__PURE__ */ jsx("span", { style: { width: 32, height: 32, borderRadius: "var(--klun-radius-pill)", background: "var(--klun-bg-strong-950)", color: "var(--klun-text-white-0)", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 16 }, children: /* @__PURE__ */ jsx("i", { className: "ri-sparkling-2-fill" }) }),
340
+ children: m.text
341
+ },
342
+ i
343
+ )),
344
+ busy ? /* @__PURE__ */ jsx(Bubble, { from: "them", avatar: /* @__PURE__ */ jsx("span", { style: { width: 32, height: 32, borderRadius: "var(--klun-radius-pill)", background: "var(--klun-bg-strong-950)", color: "var(--klun-text-white-0)", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 16 }, children: /* @__PURE__ */ jsx("i", { className: "ri-sparkling-2-fill" }) }), children: /* @__PURE__ */ jsxs("span", { className: "ai-typing", children: [
345
+ /* @__PURE__ */ jsx("span", {}),
346
+ /* @__PURE__ */ jsx("span", {}),
347
+ /* @__PURE__ */ jsx("span", {})
348
+ ] }) }) : null
349
+ ] }) });
350
+ }
351
+ function AIComposer({ onSend, busy }) {
352
+ const [text, setText] = useState("");
353
+ const [model, setModel] = useState("Klun-4o");
354
+ const taRef = useRef(null);
355
+ const send = () => {
356
+ const t = text.trim();
357
+ if (!t || busy) return;
358
+ onSend(t);
359
+ setText("");
360
+ if (taRef.current) taRef.current.style.height = "auto";
361
+ };
362
+ const grow = (e) => {
363
+ setText(e.target.value);
364
+ e.target.style.height = "auto";
365
+ e.target.style.height = Math.min(e.target.scrollHeight, 160) + "px";
366
+ };
367
+ return /* @__PURE__ */ jsxs("div", { style: { padding: "0 24px 20px" }, children: [
368
+ /* @__PURE__ */ jsxs("div", { style: { maxWidth: 720, margin: "0 auto", borderRadius: "var(--klun-radius-3xl)", background: "var(--klun-bg-white-0)", boxShadow: "var(--klun-shadow-md), inset 0 0 0 1px var(--klun-stroke-soft-200)", padding: 12 }, children: [
369
+ /* @__PURE__ */ jsx(
370
+ "textarea",
371
+ {
372
+ ref: taRef,
373
+ value: text,
374
+ onChange: grow,
375
+ onKeyDown: (e) => {
376
+ if (e.key === "Enter" && !e.shiftKey) {
377
+ e.preventDefault();
378
+ send();
379
+ }
380
+ },
381
+ placeholder: "Ask Klun AI anything\u2026",
382
+ rows: 1,
383
+ style: { width: "100%", boxSizing: "border-box", border: "none", outline: "none", resize: "none", background: "transparent", font: "var(--klun-text-paragraph-md)", color: "var(--klun-text-strong-950)", padding: "6px 6px 10px", maxHeight: 160 }
384
+ }
385
+ ),
386
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
387
+ /* @__PURE__ */ jsx("button", { title: "Attach file", style: iconBtn, children: /* @__PURE__ */ jsx("i", { className: "ri-attachment-2" }) }),
388
+ /* @__PURE__ */ jsx("button", { title: "Add image", style: iconBtn, children: /* @__PURE__ */ jsx("i", { className: "ri-image-line" }) }),
389
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 4, height: 32, padding: "0 8px 0 10px", borderRadius: "var(--klun-radius-md)", background: "var(--klun-bg-weak-50)", font: "var(--klun-text-label-sm)", color: "var(--klun-text-sub-600)", cursor: "pointer" }, children: [
390
+ /* @__PURE__ */ jsx("i", { className: "ri-cpu-line", style: { fontSize: 16, color: "var(--klun-icon-soft-400)" } }),
391
+ /* @__PURE__ */ jsxs("select", { value: model, onChange: (e) => setModel(e.target.value), style: { appearance: "none", WebkitAppearance: "none", border: "none", outline: "none", background: "transparent", font: "var(--klun-text-label-sm)", color: "var(--klun-text-sub-600)", cursor: "pointer" }, children: [
392
+ /* @__PURE__ */ jsx("option", { children: "Klun-4o" }),
393
+ /* @__PURE__ */ jsx("option", { children: "Klun-4 Turbo" }),
394
+ /* @__PURE__ */ jsx("option", { children: "Klun-mini" })
395
+ ] }),
396
+ /* @__PURE__ */ jsx("i", { className: "ri-arrow-down-s-line", style: { fontSize: 16, color: "var(--klun-icon-soft-400)" } })
397
+ ] }),
398
+ /* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
399
+ /* @__PURE__ */ jsx("button", { onClick: send, disabled: !text.trim() || busy, title: "Send", style: {
400
+ display: "inline-flex",
401
+ alignItems: "center",
402
+ justifyContent: "center",
403
+ width: 36,
404
+ height: 36,
405
+ border: "none",
406
+ borderRadius: "var(--klun-radius-lg)",
407
+ cursor: text.trim() && !busy ? "pointer" : "not-allowed",
408
+ background: text.trim() && !busy ? "var(--klun-primary-base)" : "var(--klun-bg-soft-200)",
409
+ color: text.trim() && !busy ? "var(--klun-static-static-white)" : "var(--klun-text-soft-400)",
410
+ fontSize: 20
411
+ }, children: /* @__PURE__ */ jsx("i", { className: "ri-arrow-up-line" }) })
412
+ ] })
413
+ ] }),
414
+ /* @__PURE__ */ jsx("div", { style: { maxWidth: 720, margin: "8px auto 0", textAlign: "center", font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)" }, children: "Klun AI can make mistakes. Check important info." })
415
+ ] });
416
+ }
417
+ var iconBtn = { display: "inline-flex", alignItems: "center", justifyContent: "center", width: 32, height: 32, border: "none", borderRadius: "var(--klun-radius-md)", background: "transparent", color: "var(--klun-icon-sub-600)", cursor: "pointer", fontSize: 18 };
418
+ var REPLIES = [
419
+ "Here's a quick summary: you have 3 unread invoices totaling $4,512. Two are overdue \u2014 Apex Ltd ($2,400) and Northwind ($1,800).",
420
+ "Happy to help with that. Based on your data, Q2 revenue is up 12.4% over Q1, driven mainly by recurring subscriptions.",
421
+ "Done \u2014 I've drafted a friendly follow-up. Want me to adjust the tone or add a payment link?",
422
+ "Got it. I've blocked focus time around your 3 deadlines and left buffers for review. Shall I add them to your calendar?"
423
+ ];
424
+ function AIAssistantTemplate() {
425
+ const seed = [
426
+ { id: "c1", group: "today", title: "Q2 revenue breakdown" },
427
+ { id: "c2", group: "today", title: "Follow-up email draft" },
428
+ { id: "c3", group: "week", title: "Invoice reminders" },
429
+ { id: "c4", group: "week", title: "Weekly planning" }
430
+ ];
431
+ const [convs] = useState(seed);
432
+ const [activeId, setActiveId] = useState("new");
433
+ const [threads, setThreads] = useState({ new: [] });
434
+ const [busy, setBusy] = useState(false);
435
+ const user = { name: "Arthur Taylor", initials: "AT" };
436
+ const messages = threads[activeId] || [];
437
+ const ask = (text) => {
438
+ setThreads((t) => ({ ...t, [activeId]: [...t[activeId] || [], { from: "me", text }] }));
439
+ setBusy(true);
440
+ setTimeout(() => {
441
+ const reply = REPLIES[Math.floor(Math.random() * REPLIES.length)];
442
+ setThreads((t) => ({ ...t, [activeId]: [...t[activeId] || [], { from: "them", text: reply }] }));
443
+ setBusy(false);
444
+ }, 1100);
445
+ };
446
+ const newChat = () => {
447
+ setActiveId("new");
448
+ setThreads((t) => ({ ...t, new: [] }));
449
+ };
450
+ return /* @__PURE__ */ jsxs("div", { style: { display: "flex", height: "100%" }, children: [
451
+ /* @__PURE__ */ jsx(AISidebar, { conversations: convs, activeId, onSelect: (id) => {
452
+ setActiveId(id);
453
+ setThreads((t) => t[id] ? t : { ...t, [id]: [] });
454
+ }, onNew: newChat, user }),
455
+ /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column" }, children: [
456
+ /* @__PURE__ */ jsxs("header", { style: { display: "flex", alignItems: "center", gap: 12, padding: "14px 24px", borderBottom: "1px solid var(--klun-stroke-soft-200)" }, children: [
457
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-md)", color: "var(--klun-text-strong-950)" }, children: "New chat" }),
458
+ /* @__PURE__ */ jsx(Badge, { color: "purple", variant: "lighter", size: "small", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-flashlight-fill" }), children: "Klun-4o" }),
459
+ /* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
460
+ /* @__PURE__ */ jsx(Button, { iconOnly: true, variant: "neutral", appearance: "ghost", icon: /* @__PURE__ */ jsx("i", { className: "ri-share-line" }) }),
461
+ /* @__PURE__ */ jsx(Button, { iconOnly: true, variant: "neutral", appearance: "ghost", icon: /* @__PURE__ */ jsx("i", { className: "ri-more-2-fill" }) })
462
+ ] }),
463
+ /* @__PURE__ */ jsx(AIChatView, { messages, busy, userInitials: user.initials, onSuggest: ask }),
464
+ /* @__PURE__ */ jsx(AIComposer, { onSend: ask, busy })
465
+ ] })
466
+ ] });
467
+ }
468
+ function CryptoSidebar({ active, onNavigate }) {
469
+ const main = [
470
+ { id: "markets", label: "Markets", icon: "ri-line-chart-line" },
471
+ { id: "portfolio", label: "Portfolio", icon: "ri-pie-chart-2-line" },
472
+ { id: "trade", label: "Trade", icon: "ri-swap-line" },
473
+ { id: "wallet", label: "Wallet", icon: "ri-wallet-3-line" },
474
+ { id: "earn", label: "Earn", icon: "ri-funds-line", badge: "New" }
475
+ ];
476
+ const other = [
477
+ { id: "activity", label: "Activity", icon: "ri-history-line" },
478
+ { id: "settings", label: "Settings", icon: "ri-settings-2-line" }
479
+ ];
480
+ const Item = ({ it }) => {
481
+ const on = active === it.id;
482
+ return /* @__PURE__ */ jsxs("button", { onClick: () => onNavigate(it.id), style: {
483
+ display: "flex",
484
+ alignItems: "center",
485
+ gap: 10,
486
+ width: "100%",
487
+ height: 38,
488
+ padding: "0 12px",
489
+ border: "none",
490
+ borderRadius: "var(--klun-radius-lg)",
491
+ cursor: "pointer",
492
+ textAlign: "left",
493
+ background: on ? "var(--klun-bg-white-0)" : "transparent",
494
+ boxShadow: on ? "var(--klun-shadow-xs), inset 0 0 0 1px var(--klun-stroke-soft-200)" : "none",
495
+ color: on ? "var(--klun-text-strong-950)" : "var(--klun-text-sub-600)",
496
+ font: "var(--klun-text-label-sm)"
497
+ }, children: [
498
+ /* @__PURE__ */ jsx("i", { className: it.icon, style: { fontSize: 20, color: on ? "var(--klun-primary-base)" : "var(--klun-icon-sub-600)" } }),
499
+ /* @__PURE__ */ jsx("span", { style: { flex: 1 }, children: it.label }),
500
+ it.badge ? /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-subheading-2xs)", padding: "1px 6px", borderRadius: "var(--klun-radius-pill)", background: "var(--klun-state-success-lighter)", color: "var(--klun-state-success-base)" }, children: it.badge }) : null
501
+ ] });
502
+ };
503
+ return /* @__PURE__ */ jsxs("aside", { style: { width: 256, flexShrink: 0, height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", padding: 18, background: "var(--klun-bg-weak-50)", borderRight: "1px solid var(--klun-stroke-soft-200)" }, children: [
504
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, padding: "4px 8px 18px" }, children: [
505
+ /* @__PURE__ */ jsx("div", { style: { width: 34, height: 34, borderRadius: "var(--klun-radius-lg)", background: "var(--klun-primary-base)", color: "var(--klun-static-static-white)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsx("i", { className: "ri-currency-line", style: { fontSize: 20 } }) }),
506
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-md)", color: "var(--klun-text-strong-950)" }, children: "Apex Exchange" })
507
+ ] }),
508
+ /* @__PURE__ */ jsx("nav", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: main.map((it) => /* @__PURE__ */ jsx(Item, { it }, it.id)) }),
509
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-subheading-2xs)", letterSpacing: "var(--klun-subheading-2xs-tracking)", textTransform: "uppercase", color: "var(--klun-text-soft-400)", padding: "20px 12px 8px" }, children: "Account" }),
510
+ /* @__PURE__ */ jsx("nav", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: other.map((it) => /* @__PURE__ */ jsx(Item, { it }, it.id)) }),
511
+ /* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
512
+ /* @__PURE__ */ jsxs("div", { style: { borderRadius: "var(--klun-radius-xl)", background: "var(--klun-bg-strong-950)", padding: 16, color: "var(--klun-static-static-white)" }, children: [
513
+ /* @__PURE__ */ jsx("i", { className: "ri-vip-crown-2-line", style: { fontSize: 22 } }),
514
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 8, font: "var(--klun-text-label-sm)" }, children: "Upgrade to Pro" }),
515
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 2, font: "var(--klun-text-paragraph-xs)", opacity: 0.7 }, children: "0% maker fees & advanced charts." })
516
+ ] })
517
+ ] });
518
+ }
519
+ function Stat({ label, value, delta, trend = "up", tint = "feature", icon }) {
520
+ const dc = trend === "up" ? "success" : "error";
521
+ return /* @__PURE__ */ jsxs(Card, { variant: "stroke", padding: 18, children: [
522
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between" }, children: [
523
+ /* @__PURE__ */ jsx("span", { style: { width: 40, height: 40, borderRadius: "var(--klun-radius-lg)", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 22, background: `var(--klun-state-${tint}-lighter)`, color: `var(--klun-state-${tint}-base)` }, children: icon }),
524
+ delta != null ? /* @__PURE__ */ jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 2, height: 20, padding: "0 6px", borderRadius: "var(--klun-radius-capsule)", font: "var(--klun-text-label-xs)", background: `var(--klun-state-${dc}-lighter)`, color: `var(--klun-state-${dc}-base)` }, children: [
525
+ /* @__PURE__ */ jsx("i", { className: trend === "up" ? "ri-arrow-up-line" : "ri-arrow-down-line", style: { fontSize: 14 } }),
526
+ delta
527
+ ] }) : null
528
+ ] }),
529
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 16, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: label }),
530
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 2, font: "var(--klun-text-title-h5)", color: "var(--klun-text-strong-950)" }, children: value })
531
+ ] });
532
+ }
533
+ function coinStyle(sym) {
534
+ const map = {
535
+ BTC: ["#F7931A22", "#F7931A"],
536
+ ETH: ["#627EEA22", "#627EEA"],
537
+ SOL: ["#9945FF22", "#9945FF"],
538
+ XRP: ["#23292F22", "#23292F"],
539
+ BNB: ["#F3BA2F22", "#C99A2C"],
540
+ USDC: ["#2775CA22", "#2775CA"],
541
+ AVAX: ["#E8414222", "#E84142"],
542
+ ADA: ["#0033AD22", "#0033AD"]
543
+ };
544
+ return map[sym] || ["var(--klun-bg-weak-50)", "var(--klun-text-sub-600)"];
545
+ }
546
+ function CoinIcon({ sym, size = 32 }) {
547
+ const [bg, fg] = coinStyle(sym);
548
+ return /* @__PURE__ */ jsx("span", { style: { width: size, height: size, borderRadius: "var(--klun-radius-pill)", background: bg, color: fg, display: "inline-flex", alignItems: "center", justifyContent: "center", font: "var(--klun-text-label-xs)", fontWeight: 600, flexShrink: 0 }, children: sym.slice(0, 3) });
549
+ }
550
+ function Spark({ up, w = 96, h = 32 }) {
551
+ const pts = up ? [10, 12, 8, 14, 11, 16, 13, 20, 18, 24, 22, 28] : [26, 22, 24, 18, 20, 16, 18, 12, 14, 10, 12, 8];
552
+ const step = w / (pts.length - 1);
553
+ const d = pts.map((p, i) => `${i ? "L" : "M"}${(i * step).toFixed(1)},${(h - p).toFixed(1)}`).join(" ");
554
+ const c = up ? "var(--klun-state-success-base)" : "var(--klun-state-error-base)";
555
+ return /* @__PURE__ */ jsx("svg", { width: w, height: h, children: /* @__PURE__ */ jsx("path", { d, fill: "none", stroke: c, strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) });
556
+ }
557
+ function MarketsScreen() {
558
+ const [range, setRange] = useState("1w");
559
+ const holdings = [
560
+ { sym: "BTC", name: "Bitcoin", price: "$64,210", amount: "0.842 BTC", value: "$54,065", chg: "+2.4%", up: true },
561
+ { sym: "ETH", name: "Ethereum", price: "$3,180", amount: "6.20 ETH", value: "$19,716", chg: "+1.3%", up: true },
562
+ { sym: "SOL", name: "Solana", price: "$142.50", amount: "84.0 SOL", value: "$11,970", chg: "-2.3%", up: false },
563
+ { sym: "XRP", name: "XRP", price: "$0.62", amount: "9,400 XRP", value: "$5,828", chg: "-0.2%", up: false },
564
+ { sym: "BNB", name: "BNB", price: "$590.10", amount: "12.0 BNB", value: "$7,081", chg: "-1.5%", up: false }
565
+ ];
566
+ const columns = [
567
+ { key: "name", header: "Asset", render: (r) => /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
568
+ /* @__PURE__ */ jsx(CoinIcon, { sym: r.sym }),
569
+ /* @__PURE__ */ jsxs("div", { children: [
570
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)" }, children: r.name }),
571
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)" }, children: r.sym })
572
+ ] })
573
+ ] }) },
574
+ { key: "price", header: "Price", render: (r) => /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-sm)" }, children: r.price }) },
575
+ { key: "amount", header: "Holdings", render: (r) => /* @__PURE__ */ jsx("span", { style: { color: "var(--klun-text-sub-600)" }, children: r.amount }) },
576
+ { key: "chg", header: "24h", render: (r) => /* @__PURE__ */ jsx(Badge, { color: r.up ? "green" : "red", variant: "light", size: "small", leadingIcon: /* @__PURE__ */ jsx("i", { className: r.up ? "ri-arrow-up-line" : "ri-arrow-down-line" }), children: r.chg }) },
577
+ { key: "value", header: "Value", align: "right", render: (r) => /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)" }, children: r.value }) },
578
+ { key: "spark", header: "", width: 110, align: "right", render: (r) => /* @__PURE__ */ jsx(Spark, { up: r.up }) }
579
+ ];
580
+ return /* @__PURE__ */ jsxs("div", { style: { padding: 28, display: "flex", flexDirection: "column", gap: 20 }, children: [
581
+ /* @__PURE__ */ jsx("div", { style: { display: "grid", gridTemplateColumns: "1.6fr 1fr 1fr", gap: 16 }, children: /* @__PURE__ */ jsxs("div", { style: { gridColumn: "1 / -1", display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 16 }, children: [
582
+ /* @__PURE__ */ jsx(Stat, { label: "Total balance", value: "$98,659.40", delta: "3.8%", trend: "up", tint: "feature", icon: /* @__PURE__ */ jsx("i", { className: "ri-wallet-3-line" }) }),
583
+ /* @__PURE__ */ jsx(Stat, { label: "24h P&L", value: "+$1,842.10", delta: "1.9%", trend: "up", tint: "success", icon: /* @__PURE__ */ jsx("i", { className: "ri-line-chart-line" }) }),
584
+ /* @__PURE__ */ jsx(Stat, { label: "Available", value: "$12,430.00", delta: "0.0%", trend: "up", tint: "information", icon: /* @__PURE__ */ jsx("i", { className: "ri-cash-line" }) })
585
+ ] }) }),
586
+ /* @__PURE__ */ jsxs("div", { style: { background: "var(--klun-bg-white-0)", borderRadius: "var(--klun-radius-2xl)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)", padding: 20 }, children: [
587
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: 8 }, children: [
588
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
589
+ /* @__PURE__ */ jsx(CoinIcon, { sym: "BTC", size: 36 }),
590
+ /* @__PURE__ */ jsxs("div", { children: [
591
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
592
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-title-h5)", color: "var(--klun-text-strong-950)" }, children: "$64,210.40" }),
593
+ /* @__PURE__ */ jsx(Badge, { color: "green", variant: "light", size: "small", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-arrow-up-line" }), children: "2.4%" })
594
+ ] }),
595
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-soft-400)" }, children: "Bitcoin \xB7 BTC/USD" })
596
+ ] })
597
+ ] }),
598
+ /* @__PURE__ */ jsx(SegmentedControl, { value: range, onChange: setRange, items: [{ value: "1d", label: "1D" }, { value: "1w", label: "1W" }, { value: "1m", label: "1M" }, { value: "1y", label: "1Y" }] })
599
+ ] }),
600
+ /* @__PURE__ */ jsx(AreaChart, {})
601
+ ] }),
602
+ /* @__PURE__ */ jsxs("div", { style: { background: "var(--klun-bg-white-0)", borderRadius: "var(--klun-radius-2xl)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)", overflow: "hidden" }, children: [
603
+ /* @__PURE__ */ jsxs("div", { style: { padding: "16px 20px", display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
604
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-lg)", color: "var(--klun-text-strong-950)" }, children: "Your holdings" }),
605
+ /* @__PURE__ */ jsx(Button, { variant: "primary", size: "small", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-add-line" }), children: "Buy crypto" })
606
+ ] }),
607
+ /* @__PURE__ */ jsx(Table, { columns, rows: holdings, getRowId: (r) => r.sym, style: { borderRadius: 0, boxShadow: "none", borderTop: "1px solid var(--klun-stroke-soft-200)" } })
608
+ ] })
609
+ ] });
610
+ }
611
+ function AreaChart() {
612
+ const pts = [40, 44, 38, 52, 48, 60, 55, 72, 68, 84, 78, 96, 90, 108, 118];
613
+ const w = 1e3, h = 160, max = 130;
614
+ const step = w / (pts.length - 1);
615
+ const line = pts.map((p, i) => `${i ? "L" : "M"}${(i * step).toFixed(1)},${(h - p / max * h).toFixed(1)}`).join(" ");
616
+ const area = `${line} L${w},${h} L0,${h} Z`;
617
+ return /* @__PURE__ */ jsxs("svg", { viewBox: `0 0 ${w} ${h}`, preserveAspectRatio: "none", style: { width: "100%", height: 160, display: "block" }, children: [
618
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "cryptoFill", x1: "0", y1: "0", x2: "0", y2: "1", children: [
619
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "var(--klun-primary-base)", stopOpacity: "0.18" }),
620
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "var(--klun-primary-base)", stopOpacity: "0" })
621
+ ] }) }),
622
+ /* @__PURE__ */ jsx("path", { d: area, fill: "url(#cryptoFill)" }),
623
+ /* @__PURE__ */ jsx("path", { d: line, fill: "none", stroke: "var(--klun-primary-base)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round" })
624
+ ] });
625
+ }
626
+ function CryptoTemplate() {
627
+ const [active, setActive] = useState("portfolio");
628
+ return /* @__PURE__ */ jsxs("div", { style: { display: "flex", height: "100%" }, children: [
629
+ /* @__PURE__ */ jsx(CryptoSidebar, { active, onNavigate: setActive }),
630
+ /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
631
+ /* @__PURE__ */ jsxs("header", { style: { display: "flex", alignItems: "center", gap: 16, padding: "16px 28px", borderBottom: "1px solid var(--klun-stroke-soft-200)", background: "var(--klun-bg-white-0)" }, children: [
632
+ /* @__PURE__ */ jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
633
+ /* @__PURE__ */ jsx("h1", { style: { margin: 0, font: "var(--klun-text-title-h5)", color: "var(--klun-text-strong-950)" }, children: "Portfolio" }),
634
+ /* @__PURE__ */ jsx(Badge, { color: "green", variant: "light", size: "small", dot: true, children: "Markets open" })
635
+ ] }) }),
636
+ /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
637
+ /* @__PURE__ */ jsx("i", { className: "ri-search-line", style: { position: "absolute", left: 12, top: "50%", transform: "translateY(-50%)", fontSize: 18, color: "var(--klun-icon-soft-400)" } }),
638
+ /* @__PURE__ */ jsx("input", { placeholder: "Search assets", style: { width: 220, boxSizing: "border-box", height: 36, padding: "0 12px 0 36px", borderRadius: "var(--klun-radius-lg)", border: "none", background: "var(--klun-bg-weak-50)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)", font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-strong-950)", outline: "none" } })
639
+ ] }),
640
+ /* @__PURE__ */ jsx(Button, { iconOnly: true, variant: "neutral", appearance: "stroke", icon: /* @__PURE__ */ jsx("i", { className: "ri-notification-3-line" }) }),
641
+ /* @__PURE__ */ jsx(Button, { variant: "primary", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-arrow-left-right-line" }), children: "Trade" })
642
+ ] }),
643
+ /* @__PURE__ */ jsx("main", { style: { flex: 1, overflow: "auto", background: "var(--klun-bg-weak-50)" }, children: /* @__PURE__ */ jsx(MarketsScreen, {}) })
644
+ ] })
645
+ ] });
646
+ }
647
+ function MarketingNav() {
648
+ const links = ["Product", "Solutions", "Pricing", "Customers", "Docs"];
649
+ return /* @__PURE__ */ jsx("header", { style: { position: "sticky", top: 0, zIndex: 20, background: "color-mix(in srgb, var(--klun-bg-white-0) 80%, transparent)", backdropFilter: "blur(12px)", borderBottom: "1px solid var(--klun-stroke-soft-200)" }, children: /* @__PURE__ */ jsxs("div", { style: { maxWidth: 1120, margin: "0 auto", display: "flex", alignItems: "center", gap: 24, padding: "14px 24px" }, children: [
650
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
651
+ /* @__PURE__ */ jsx("div", { style: { width: 32, height: 32, borderRadius: "var(--klun-radius-md)", background: "var(--klun-bg-strong-950)", color: "var(--klun-text-white-0)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsx("i", { className: "ri-shapes-line", style: { fontSize: 18 } }) }),
652
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-lg)", color: "var(--klun-text-strong-950)" }, children: "Klun" })
653
+ ] }),
654
+ /* @__PURE__ */ jsx("nav", { style: { display: "flex", gap: 4, flex: 1 }, children: links.map((l) => /* @__PURE__ */ jsx("a", { href: "#", style: { padding: "6px 12px", borderRadius: "var(--klun-radius-md)", font: "var(--klun-text-label-sm)", color: "var(--klun-text-sub-600)", textDecoration: "none" }, children: l }, l)) }),
655
+ /* @__PURE__ */ jsx("a", { href: "#", style: { font: "var(--klun-text-label-sm)", color: "var(--klun-text-sub-600)", textDecoration: "none" }, children: "Sign in" }),
656
+ /* @__PURE__ */ jsx(Button, { variant: "neutral", size: "small", trailingIcon: /* @__PURE__ */ jsx("i", { className: "ri-arrow-right-line" }), children: "Start free" })
657
+ ] }) });
658
+ }
659
+ function Stat2({ label, value, delta, trend = "up", tint = "feature", icon }) {
660
+ const dc = trend === "up" ? "success" : "error";
661
+ return /* @__PURE__ */ jsxs(Card, { variant: "stroke", padding: 18, children: [
662
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between" }, children: [
663
+ /* @__PURE__ */ jsx("span", { style: { width: 40, height: 40, borderRadius: "var(--klun-radius-lg)", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 22, background: `var(--klun-state-${tint}-lighter)`, color: `var(--klun-state-${tint}-base)` }, children: icon }),
664
+ delta != null ? /* @__PURE__ */ jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 2, height: 20, padding: "0 6px", borderRadius: "var(--klun-radius-capsule)", font: "var(--klun-text-label-xs)", background: `var(--klun-state-${dc}-lighter)`, color: `var(--klun-state-${dc}-base)` }, children: [
665
+ /* @__PURE__ */ jsx("i", { className: trend === "up" ? "ri-arrow-up-line" : "ri-arrow-down-line", style: { fontSize: 14 } }),
666
+ delta
667
+ ] }) : null
668
+ ] }),
669
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 16, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: label }),
670
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 2, font: "var(--klun-text-title-h5)", color: "var(--klun-text-strong-950)" }, children: value })
671
+ ] });
672
+ }
673
+ function MarketingSections() {
674
+ const wrap = { maxWidth: 1120, margin: "0 auto", padding: "0 24px" };
675
+ const features = [
676
+ { icon: "ri-contrast-drop-line", t: "Semantic tokens", d: "Every color, radius and space is a named token that re-themes in one line." },
677
+ { icon: "ri-moon-clear-line", t: "Dark mode built-in", d: "Light and dark resolve automatically \u2014 no duplicate components." },
678
+ { icon: "ri-palette-line", t: "Four accent themes", d: "Blue, purple, orange or green. Switch with a single data attribute." },
679
+ { icon: "ri-puzzle-2-line", t: "50+ components", d: "Buttons to command menus, all composable and accessible." },
680
+ { icon: "ri-layout-grid-line", t: "Product templates", d: "Dashboards, AI chat and trading screens ready to fork." },
681
+ { icon: "ri-code-s-slash-line", t: "Figma to code", d: "Tokens and structure map straight to your codebase." }
682
+ ];
683
+ const tiers = [
684
+ { name: "Starter", price: "$0", note: "for solo makers", feats: ["Core tokens", "30 components", "Community support"], cta: "Get started", featured: false },
685
+ { name: "Pro", price: "$29", note: "per editor / month", feats: ["All 50+ components", "Product templates", "Dark mode & themes", "Priority support"], cta: "Start free trial", featured: true },
686
+ { name: "Team", price: "Custom", note: "for organizations", feats: ["Everything in Pro", "SSO & roles", "Design ops review", "SLA"], cta: "Contact sales", featured: false }
687
+ ];
688
+ const footerColumns = [
689
+ { h: "Product", l: ["Components", "Tokens", "Templates", "Changelog"] },
690
+ { h: "Company", l: ["About", "Careers", "Blog", "Contact"] },
691
+ { h: "Legal", l: ["Privacy", "Terms", "License"] }
692
+ ];
693
+ return /* @__PURE__ */ jsxs("main", { children: [
694
+ /* @__PURE__ */ jsxs("section", { style: { ...wrap, textAlign: "center", padding: "80px 24px 64px" }, children: [
695
+ /* @__PURE__ */ jsx("div", { style: { display: "inline-flex", marginBottom: 20 }, children: /* @__PURE__ */ jsx(Badge, { color: "purple", variant: "lighter", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-sparkling-2-fill" }), children: "Klun UI 2.0 is here" }) }),
696
+ /* @__PURE__ */ jsx("h1", { style: { margin: "0 auto", maxWidth: 760, font: "var(--klun-text-title-h1)", letterSpacing: "var(--klun-title-h1-tracking)", color: "var(--klun-text-strong-950)" }, children: "The design system that ships with you" }),
697
+ /* @__PURE__ */ jsx("p", { style: { margin: "20px auto 0", maxWidth: 560, font: "var(--klun-text-paragraph-lg)", color: "var(--klun-text-sub-600)" }, children: "Tokens, components and full product templates \u2014 themeable, dark-mode ready, and built to move from Figma to production without the redraw." }),
698
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: 12, justifyContent: "center", marginTop: 28 }, children: [
699
+ /* @__PURE__ */ jsx(Button, { variant: "primary", size: "large", trailingIcon: /* @__PURE__ */ jsx("i", { className: "ri-arrow-right-line" }), children: "Start building free" }),
700
+ /* @__PURE__ */ jsx(Button, { variant: "neutral", appearance: "stroke", size: "large", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-github-fill" }), children: "View on GitHub" })
701
+ ] }),
702
+ /* @__PURE__ */ jsx("div", { style: { marginTop: 40, height: 280, borderRadius: "var(--klun-radius-3xl)", background: "linear-gradient(180deg, var(--klun-bg-weak-50), var(--klun-bg-white-0))", boxShadow: "var(--klun-shadow-lg), inset 0 0 0 1px var(--klun-stroke-soft-200)", display: "flex", alignItems: "center", justifyContent: "center", color: "var(--klun-text-disabled-300)" }, children: /* @__PURE__ */ jsx("i", { className: "ri-layout-masonry-line", style: { fontSize: 56 } }) })
703
+ ] }),
704
+ /* @__PURE__ */ jsxs("section", { style: { ...wrap, padding: "8px 24px 56px" }, children: [
705
+ /* @__PURE__ */ jsx("p", { style: { textAlign: "center", font: "var(--klun-text-subheading-xs)", letterSpacing: "var(--klun-subheading-xs-tracking)", textTransform: "uppercase", color: "var(--klun-text-soft-400)", marginBottom: 20 }, children: "Trusted by teams at" }),
706
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", flexWrap: "wrap", gap: 40, justifyContent: "center", alignItems: "center", color: "var(--klun-text-disabled-300)" }, children: ["ri-google-fill", "ri-microsoft-fill", "ri-slack-fill", "ri-notion-fill", "ri-figma-fill", "ri-amazon-fill"].map((i) => /* @__PURE__ */ jsx("i", { className: i, style: { fontSize: 30 } }, i)) })
707
+ ] }),
708
+ /* @__PURE__ */ jsx("section", { style: { ...wrap, padding: "16px 24px 64px" }, children: /* @__PURE__ */ jsxs("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, 1fr)", gap: 16 }, children: [
709
+ /* @__PURE__ */ jsx(Stat2, { label: "Components", value: "50+", delta: "2.0 release", trend: "up", tint: "feature", icon: /* @__PURE__ */ jsx("i", { className: "ri-puzzle-2-line" }) }),
710
+ /* @__PURE__ */ jsx(Stat2, { label: "Design tokens", value: "700+", delta: "9 collections", trend: "up", tint: "information", icon: /* @__PURE__ */ jsx("i", { className: "ri-palette-line" }) }),
711
+ /* @__PURE__ */ jsx(Stat2, { label: "Icons", value: "4,200+", delta: "line & fill", trend: "up", tint: "success", icon: /* @__PURE__ */ jsx("i", { className: "ri-shapes-line" }) }),
712
+ /* @__PURE__ */ jsx(Stat2, { label: "Themes", value: "4 + dark", delta: "instant", trend: "up", tint: "warning", icon: /* @__PURE__ */ jsx("i", { className: "ri-contrast-2-line" }) })
713
+ ] }) }),
714
+ /* @__PURE__ */ jsxs("section", { style: { ...wrap, padding: "56px 24px" }, children: [
715
+ /* @__PURE__ */ jsxs("div", { style: { textAlign: "center", maxWidth: 560, margin: "0 auto 40px" }, children: [
716
+ /* @__PURE__ */ jsx("h2", { style: { margin: 0, font: "var(--klun-text-title-h3)", letterSpacing: "var(--klun-title-h3-tracking)", color: "var(--klun-text-strong-950)" }, children: "Everything you need to design fast" }),
717
+ /* @__PURE__ */ jsx("p", { style: { margin: "12px 0 0", font: "var(--klun-text-paragraph-md)", color: "var(--klun-text-sub-600)" }, children: "One coherent system from the smallest token to the full screen." })
718
+ ] }),
719
+ /* @__PURE__ */ jsx("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 16 }, children: features.map((f) => /* @__PURE__ */ jsxs(Card, { variant: "stroke", padding: 24, children: [
720
+ /* @__PURE__ */ jsx("div", { style: { width: 40, height: 40, borderRadius: "var(--klun-radius-lg)", background: "var(--klun-primary-lighter)", color: "var(--klun-primary-base)", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 22, marginBottom: 16 }, children: /* @__PURE__ */ jsx("i", { className: f.icon }) }),
721
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-label-lg)", color: "var(--klun-text-strong-950)", marginBottom: 6 }, children: f.t }),
722
+ /* @__PURE__ */ jsx("p", { style: { margin: 0, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: f.d })
723
+ ] }, f.t)) })
724
+ ] }),
725
+ /* @__PURE__ */ jsxs("section", { style: { ...wrap, padding: "56px 24px" }, children: [
726
+ /* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 40 }, children: /* @__PURE__ */ jsx("h2", { style: { margin: 0, font: "var(--klun-text-title-h3)", letterSpacing: "var(--klun-title-h3-tracking)", color: "var(--klun-text-strong-950)" }, children: "Simple, fair pricing" }) }),
727
+ /* @__PURE__ */ jsx("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 16, alignItems: "start" }, children: tiers.map((p) => /* @__PURE__ */ jsxs("div", { style: {
728
+ borderRadius: "var(--klun-radius-3xl)",
729
+ padding: 28,
730
+ background: p.featured ? "var(--klun-bg-strong-950)" : "var(--klun-bg-white-0)",
731
+ color: p.featured ? "var(--klun-static-static-white)" : "var(--klun-text-strong-950)",
732
+ boxShadow: p.featured ? "var(--klun-shadow-lg)" : "inset 0 0 0 1px var(--klun-stroke-soft-200)"
733
+ }, children: [
734
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
735
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-lg)" }, children: p.name }),
736
+ p.featured ? /* @__PURE__ */ jsx(Badge, { color: "purple", variant: "filled", size: "small", children: "Popular" }) : null
737
+ ] }),
738
+ /* @__PURE__ */ jsxs("div", { style: { marginTop: 16, display: "flex", alignItems: "baseline", gap: 6 }, children: [
739
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-title-h2)", letterSpacing: "var(--klun-title-h2-tracking)" }, children: p.price }),
740
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-paragraph-sm)", opacity: 0.7 }, children: p.note })
741
+ ] }),
742
+ /* @__PURE__ */ jsx("div", { style: { margin: "20px 0", display: "flex", flexDirection: "column", gap: 10 }, children: p.feats.map((f) => /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8, font: "var(--klun-text-paragraph-sm)", opacity: p.featured ? 0.9 : 1 }, children: [
743
+ /* @__PURE__ */ jsx("i", { className: "ri-checkbox-circle-fill", style: { fontSize: 18, color: p.featured ? "var(--klun-static-static-white)" : "var(--klun-state-success-base)" } }),
744
+ f
745
+ ] }, f)) }),
746
+ /* @__PURE__ */ jsx("button", { style: {
747
+ width: "100%",
748
+ height: 44,
749
+ border: "none",
750
+ borderRadius: "var(--klun-radius-xl)",
751
+ cursor: "pointer",
752
+ font: "var(--klun-text-label-md)",
753
+ background: p.featured ? "var(--klun-static-static-white)" : "var(--klun-primary-base)",
754
+ color: p.featured ? "var(--klun-static-static-black)" : "var(--klun-static-static-white)"
755
+ }, children: p.cta })
756
+ ] }, p.name)) })
757
+ ] }),
758
+ /* @__PURE__ */ jsx("section", { style: { ...wrap, padding: "56px 24px" }, children: /* @__PURE__ */ jsxs(Card, { variant: "flat", padding: 40, style: { textAlign: "center", borderRadius: "var(--klun-radius-4xl)" }, children: [
759
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", justifyContent: "center", gap: 4, color: "var(--klun-state-away-base)", marginBottom: 16 }, children: [0, 1, 2, 3, 4].map((i) => /* @__PURE__ */ jsx("i", { className: "ri-star-fill", style: { fontSize: 20 } }, i)) }),
760
+ /* @__PURE__ */ jsx("p", { style: { margin: "0 auto", maxWidth: 680, font: "var(--klun-text-title-h5)", color: "var(--klun-text-strong-950)", fontFamily: "var(--klun-font-display)" }, children: "\u201CWe replaced three internal libraries with Klun UI and shipped our dashboard a month early. The token system alone paid for itself.\u201D" }),
761
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", gap: 12, marginTop: 24 }, children: [
762
+ /* @__PURE__ */ jsx(Avatar, { size: "48", initials: "SW", color: "purple" }),
763
+ /* @__PURE__ */ jsxs("div", { style: { textAlign: "left" }, children: [
764
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-label-md)", color: "var(--klun-text-strong-950)" }, children: "Sophia Williams" }),
765
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-soft-400)" }, children: "Head of Design, Northwind" })
766
+ ] })
767
+ ] })
768
+ ] }) }),
769
+ /* @__PURE__ */ jsxs("section", { style: { maxWidth: 720, margin: "0 auto", padding: "56px 24px" }, children: [
770
+ /* @__PURE__ */ jsx("h2", { style: { margin: "0 0 28px", textAlign: "center", font: "var(--klun-text-title-h3)", letterSpacing: "var(--klun-title-h3-tracking)", color: "var(--klun-text-strong-950)" }, children: "Frequently asked" }),
771
+ /* @__PURE__ */ jsx(Accordion, { defaultOpen: "a", items: [
772
+ { id: "a", title: "Is Klun UI free to use?", content: "The Starter tier with core tokens and 30 components is free forever. Pro unlocks the full component set, templates and themes." },
773
+ { id: "b", title: "Does it work with my framework?", content: "Components ship as framework-agnostic patterns driven by CSS custom properties \u2014 drop the tokens into React, Vue, Svelte or plain HTML." },
774
+ { id: "c", title: "Can I customize the theme?", content: "Yes. Swap the accent (blue/purple/orange/green) and neutral ramp (gray/slate) with a single data attribute, or override any token." },
775
+ { id: "d", title: "Do you offer dark mode?", content: 'Dark mode is built in. Set data-theme="dark" and every component re-themes through its semantic tokens.' }
776
+ ] })
777
+ ] }),
778
+ /* @__PURE__ */ jsx("section", { style: { ...wrap, padding: "40px 24px 80px" }, children: /* @__PURE__ */ jsxs("div", { style: { borderRadius: "var(--klun-radius-4xl)", padding: "56px 24px", textAlign: "center", background: "var(--klun-bg-strong-950)", color: "var(--klun-static-static-white)" }, children: [
779
+ /* @__PURE__ */ jsx("h2", { style: { margin: 0, font: "var(--klun-text-title-h2)", letterSpacing: "var(--klun-title-h2-tracking)" }, children: "Start designing in harmony" }),
780
+ /* @__PURE__ */ jsx("p", { style: { margin: "12px auto 0", maxWidth: 480, font: "var(--klun-text-paragraph-lg)", opacity: 0.8 }, children: "Free to start. No credit card required." }),
781
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: 12, justifyContent: "center", marginTop: 28 }, children: [
782
+ /* @__PURE__ */ jsx("button", { style: { height: 48, padding: "0 24px", border: "none", borderRadius: "var(--klun-radius-xl)", cursor: "pointer", font: "var(--klun-text-label-md)", background: "var(--klun-static-static-white)", color: "var(--klun-static-static-black)" }, children: "Start free" }),
783
+ /* @__PURE__ */ jsx("button", { style: { height: 48, padding: "0 24px", border: "none", borderRadius: "var(--klun-radius-xl)", cursor: "pointer", font: "var(--klun-text-label-md)", background: "var(--klun-alpha-white-alpha-16)", color: "var(--klun-static-static-white)" }, children: "Book a demo" })
784
+ ] })
785
+ ] }) }),
786
+ /* @__PURE__ */ jsxs("footer", { style: { borderTop: "1px solid var(--klun-stroke-soft-200)" }, children: [
787
+ /* @__PURE__ */ jsxs("div", { style: { ...wrap, display: "flex", gap: 24, flexWrap: "wrap", justifyContent: "space-between", padding: "40px 24px" }, children: [
788
+ /* @__PURE__ */ jsxs("div", { style: { maxWidth: 260 }, children: [
789
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, marginBottom: 12 }, children: [
790
+ /* @__PURE__ */ jsx("div", { style: { width: 28, height: 28, borderRadius: "var(--klun-radius-md)", background: "var(--klun-bg-strong-950)", color: "var(--klun-text-white-0)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsx("i", { className: "ri-shapes-line", style: { fontSize: 16 } }) }),
791
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-md)", color: "var(--klun-text-strong-950)" }, children: "Klun" })
792
+ ] }),
793
+ /* @__PURE__ */ jsx("p", { style: { margin: 0, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-soft-400)" }, children: "The design system that ships with you." })
794
+ ] }),
795
+ footerColumns.map((c) => /* @__PURE__ */ jsxs("div", { children: [
796
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-subheading-xs)", letterSpacing: "var(--klun-subheading-xs-tracking)", textTransform: "uppercase", color: "var(--klun-text-soft-400)", marginBottom: 12 }, children: c.h }),
797
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: c.l.map((x) => /* @__PURE__ */ jsx("a", { href: "#", style: { font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)", textDecoration: "none" }, children: x }, x)) })
798
+ ] }, c.h))
799
+ ] }),
800
+ /* @__PURE__ */ jsxs("div", { style: { ...wrap, display: "flex", justifyContent: "space-between", alignItems: "center", padding: "20px 24px", borderTop: "1px solid var(--klun-stroke-soft-200)" }, children: [
801
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)" }, children: "\xA9 2026 Klun. All rights reserved." }),
802
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 14, color: "var(--klun-icon-soft-400)" }, children: ["ri-twitter-x-fill", "ri-github-fill", "ri-linkedin-fill"].map((i) => /* @__PURE__ */ jsx("i", { className: i, style: { fontSize: 18 } }, i)) })
803
+ ] })
804
+ ] })
805
+ ] });
806
+ }
807
+ function MarketingTemplate() {
808
+ return /* @__PURE__ */ jsxs("div", { children: [
809
+ /* @__PURE__ */ jsx(MarketingNav, {}),
810
+ /* @__PURE__ */ jsx(MarketingSections, {})
811
+ ] });
812
+ }
813
+ var DOW = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
814
+ var CAT = {
815
+ meeting: { color: "blue", label: "Meeting" },
816
+ focus: { color: "purple", label: "Focus" },
817
+ review: { color: "green", label: "Review" },
818
+ travel: { color: "orange", label: "Travel" }
819
+ };
820
+ var EVENTS = {
821
+ 3: [{ c: "meeting", t: "Standup" }],
822
+ 4: [{ c: "focus", t: "Design review" }, { c: "review", t: "PR #482" }],
823
+ 6: [{ c: "travel", t: "Flight SFO" }],
824
+ 9: [{ c: "meeting", t: "1:1 Mia" }],
825
+ 12: [{ c: "meeting", t: "Roadmap" }, { c: "focus", t: "Spec draft" }, { c: "review", t: "QA pass" }],
826
+ 17: [{ c: "review", t: "Release" }],
827
+ 18: [{ c: "focus", t: "Deep work" }],
828
+ 20: [{ c: "meeting", t: "All-hands" }],
829
+ 24: [{ c: "travel", t: "Offsite" }],
830
+ 25: [{ c: "travel", t: "Offsite" }],
831
+ 27: [{ c: "meeting", t: "Demo day" }]
832
+ };
833
+ function DayCell({ day, today }) {
834
+ const evs = EVENTS[day] || [];
835
+ return /* @__PURE__ */ jsxs("div", { style: { minHeight: 116, padding: 8, background: "var(--klun-bg-white-0)", boxShadow: "inset -1px -1px 0 var(--klun-stroke-soft-200)", display: "flex", flexDirection: "column", gap: 4 }, children: [
836
+ /* @__PURE__ */ jsx("span", { style: {
837
+ alignSelf: "flex-start",
838
+ display: "inline-flex",
839
+ alignItems: "center",
840
+ justifyContent: "center",
841
+ minWidth: 24,
842
+ height: 24,
843
+ padding: "0 6px",
844
+ borderRadius: "var(--klun-radius-pill)",
845
+ font: "var(--klun-text-label-xs)",
846
+ fontVariantNumeric: "tabular-nums",
847
+ background: today ? "var(--klun-primary-base)" : "transparent",
848
+ color: today ? "var(--klun-static-static-white)" : "var(--klun-text-sub-600)"
849
+ }, children: day }),
850
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: 3 }, children: evs.slice(0, 3).map((e, i) => {
851
+ const cat = CAT[e.c];
852
+ return /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "3px 6px", borderRadius: "var(--klun-radius-sm)", background: `var(--klun-${cat.color}-50)`, font: "var(--klun-text-label-xs)", color: `var(--klun-${cat.color}-600, var(--klun-text-sub-600))`, overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }, children: [
853
+ /* @__PURE__ */ jsx("span", { style: { width: 6, height: 6, borderRadius: "var(--klun-radius-pill)", background: `var(--klun-${cat.color}-500)`, flex: "none" } }),
854
+ /* @__PURE__ */ jsx("span", { style: { overflow: "hidden", textOverflow: "ellipsis" }, children: e.t })
855
+ ] }, i);
856
+ }) })
857
+ ] });
858
+ }
859
+ var AGENDA = [
860
+ { t: "Roadmap planning", time: "10:00 \u2013 11:00", c: "meeting" },
861
+ { t: "Spec draft", time: "13:30 \u2013 15:00", c: "focus" },
862
+ { t: "QA pass", time: "16:00 \u2013 16:30", c: "review" }
863
+ ];
864
+ function CalendarTemplate() {
865
+ const [filter, setFilter] = useState("all");
866
+ const [view, setView] = useState("month");
867
+ const cells = [...Array(6).fill(null), ...Array.from({ length: 31 }, (_, i) => i + 1)];
868
+ return /* @__PURE__ */ jsxs("div", { style: { maxWidth: 1120, margin: "0 auto", padding: "40px 32px 80px" }, children: [
869
+ /* @__PURE__ */ jsxs("header", { style: { display: "flex", alignItems: "flex-start", gap: 16, width: "100%", padding: "0 0 20px", boxShadow: "inset 0 -1px 0 var(--klun-stroke-soft-200)" }, children: [
870
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4, flex: 1, minWidth: 0 }, children: [
871
+ /* @__PURE__ */ jsx("h1", { style: { margin: 0, font: "var(--klun-text-title-h5)", color: "var(--klun-text-strong-950)", letterSpacing: "-0.01em" }, children: "Calendar" }),
872
+ /* @__PURE__ */ jsx("p", { style: { margin: 0, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: "March 2026 \xB7 11 events this month" })
873
+ ] }),
874
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: "none" }, children: /* @__PURE__ */ jsx(Button, { leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-add-line" }), children: "New event" }) })
875
+ ] }),
876
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 16, flexWrap: "wrap", margin: "24px 0 16px" }, children: [
877
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
878
+ /* @__PURE__ */ jsxs("div", { style: { display: "inline-flex", alignItems: "center", gap: 6, height: 36, padding: "0 4px 0 10px", borderRadius: "var(--klun-radius-lg)", background: "var(--klun-bg-white-0)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)" }, children: [
879
+ /* @__PURE__ */ jsx("button", { type: "button", "aria-label": "Previous period", onClick: () => {
880
+ }, style: { display: "inline-flex", alignItems: "center", justifyContent: "center", width: 28, height: 28, border: "none", background: "transparent", color: "var(--klun-icon-sub-600)", cursor: "pointer", fontSize: 18, borderRadius: "var(--klun-radius-sm)" }, children: /* @__PURE__ */ jsx("i", { className: "ri-arrow-left-s-line" }) }),
881
+ /* @__PURE__ */ jsx("i", { className: "ri-calendar-line", style: { fontSize: 18, color: "var(--klun-icon-soft-400)" } }),
882
+ /* @__PURE__ */ jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 6, font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)", whiteSpace: "nowrap", padding: "0 2px" }, children: [
883
+ "Mar 1",
884
+ /* @__PURE__ */ jsx("span", { style: { color: "var(--klun-text-soft-400)" }, children: "\u2192" }),
885
+ "Mar 31"
886
+ ] }),
887
+ /* @__PURE__ */ jsx("button", { type: "button", "aria-label": "Next period", onClick: () => {
888
+ }, style: { display: "inline-flex", alignItems: "center", justifyContent: "center", width: 28, height: 28, border: "none", background: "transparent", color: "var(--klun-icon-sub-600)", cursor: "pointer", fontSize: 18, borderRadius: "var(--klun-radius-sm)" }, children: /* @__PURE__ */ jsx("i", { className: "ri-arrow-right-s-line" }) })
889
+ ] }),
890
+ /* @__PURE__ */ jsx(Button, { variant: "neutral", appearance: "ghost", size: "small", children: "Today" })
891
+ ] }),
892
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
893
+ /* @__PURE__ */ jsx(AvatarGroup, { variant: "stroke", size: "24", avatars: [{ initials: "AT", color: "blue" }, { initials: "MB", color: "green" }, { initials: "JK", color: "orange" }, { initials: "RP" }] }),
894
+ /* @__PURE__ */ jsx(SegmentedControl, { value: view, onChange: setView, items: [{ value: "month", label: "Month" }, { value: "week", label: "Week" }, { value: "day", label: "Day" }] })
895
+ ] })
896
+ ] }),
897
+ /* @__PURE__ */ jsx("div", { style: { marginBottom: 16 }, children: /* @__PURE__ */ jsx(HorizontalFilter, { value: filter, onChange: setFilter, items: [
898
+ { value: "all", label: "All", count: 11 },
899
+ { value: "meeting", label: "Meetings", count: 5, icon: /* @__PURE__ */ jsx("i", { className: "ri-group-line" }) },
900
+ { value: "focus", label: "Focus", count: 3 },
901
+ { value: "review", label: "Reviews", count: 3 },
902
+ { value: "travel", label: "Travel", count: 3 }
903
+ ] }) }),
904
+ /* @__PURE__ */ jsx("div", { style: { borderRadius: "var(--klun-radius-2xl)", overflow: "hidden", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)", background: "var(--klun-bg-white-0)" }, children: /* @__PURE__ */ jsxs("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)" }, children: [
905
+ DOW.map((d) => /* @__PURE__ */ jsx("div", { style: { padding: "10px 8px", font: "var(--klun-text-subheading-2xs, var(--klun-text-label-xs))", letterSpacing: ".06em", textTransform: "uppercase", color: "var(--klun-text-soft-400)", background: "var(--klun-bg-weak-50)", boxShadow: "inset -1px -1px 0 var(--klun-stroke-soft-200)" }, children: d }, d)),
906
+ cells.map((day, i) => day == null ? /* @__PURE__ */ jsx("div", { style: { minHeight: 116, background: "var(--klun-bg-weak-50)", boxShadow: "inset -1px -1px 0 var(--klun-stroke-soft-200)" } }, i) : /* @__PURE__ */ jsx(DayCell, { day, today: day === 12 }, i))
907
+ ] }) }),
908
+ /* @__PURE__ */ jsxs("div", { style: { marginTop: 28 }, children: [
909
+ /* @__PURE__ */ jsx(ContentLabel, { icon: /* @__PURE__ */ jsx("i", { className: "ri-calendar-event-line" }), children: "Up next \xB7 today" }),
910
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: 8, marginTop: 12 }, children: AGENDA.map((e, i) => /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 14, padding: "12px 16px", borderRadius: "var(--klun-radius-xl)", background: "var(--klun-bg-white-0)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)" }, children: [
911
+ /* @__PURE__ */ jsx("span", { style: { width: 4, height: 36, borderRadius: "var(--klun-radius-pill)", background: `var(--klun-${CAT[e.c].color}-500)`, flex: "none" } }),
912
+ /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
913
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)" }, children: e.t }),
914
+ /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)" }, children: e.time })
915
+ ] }),
916
+ /* @__PURE__ */ jsx(Chip, { color: CAT[e.c].color, dot: true, children: CAT[e.c].label })
917
+ ] }, i)) })
918
+ ] })
919
+ ] });
920
+ }
921
+ var PLANS = [
922
+ {
923
+ id: "starter",
924
+ name: "Starter",
925
+ tagline: "For individuals getting started.",
926
+ monthly: 0,
927
+ yearly: 0,
928
+ cta: "Start for free",
929
+ features: ["1 workspace", "Up to 3 projects", "Community support", "1 GB storage"]
930
+ },
931
+ {
932
+ id: "pro",
933
+ name: "Pro",
934
+ tagline: "For growing teams that ship fast.",
935
+ monthly: 24,
936
+ yearly: 19,
937
+ cta: "Start 14-day trial",
938
+ featured: true,
939
+ features: ["Unlimited workspaces", "Unlimited projects", "Priority support", "100 GB storage", "Advanced analytics", "Custom roles"]
940
+ },
941
+ {
942
+ id: "enterprise",
943
+ name: "Enterprise",
944
+ tagline: "For organizations at scale.",
945
+ monthly: null,
946
+ yearly: null,
947
+ cta: "Contact sales",
948
+ features: ["Everything in Pro", "SSO & SCIM", "Audit logs", "Dedicated manager", "99.9% SLA", "Custom contracts"]
949
+ }
950
+ ];
951
+ function Price({ plan, cycle }) {
952
+ if (plan.monthly == null) {
953
+ return /* @__PURE__ */ jsx("div", { style: { font: "var(--klun-text-title-h3)", color: "var(--klun-text-strong-950)", letterSpacing: "-.02em" }, children: "Custom" });
954
+ }
955
+ const amt = cycle === "yearly" ? plan.yearly : plan.monthly;
956
+ return /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "baseline", gap: 4 }, children: [
957
+ /* @__PURE__ */ jsxs("span", { style: { font: "var(--klun-text-title-h2)", color: "var(--klun-text-strong-950)", letterSpacing: "-.02em" }, children: [
958
+ "$",
959
+ amt
960
+ ] }),
961
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-soft-400)" }, children: "/ mo" })
962
+ ] });
963
+ }
964
+ function PlanCard({ plan, cycle }) {
965
+ const featured = plan.featured;
966
+ return /* @__PURE__ */ jsxs("div", { style: {
967
+ position: "relative",
968
+ display: "flex",
969
+ flexDirection: "column",
970
+ gap: 20,
971
+ padding: 28,
972
+ flex: 1,
973
+ minWidth: 0,
974
+ borderRadius: "var(--klun-radius-4xl, 24px)",
975
+ background: "var(--klun-bg-white-0)",
976
+ boxShadow: featured ? "inset 0 0 0 2px var(--klun-primary-base), var(--klun-shadow-lg, 0 24px 48px -16px rgba(14,18,27,.16))" : "inset 0 0 0 1px var(--klun-stroke-soft-200), var(--klun-shadow-xs, 0 1px 2px rgba(10,13,20,.03))"
977
+ }, children: [
978
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
979
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-lg)", color: "var(--klun-text-strong-950)" }, children: plan.name }),
980
+ featured ? /* @__PURE__ */ jsx(Badge, { color: "blue", variant: "lighter", children: "Most popular" }) : null
981
+ ] }),
982
+ /* @__PURE__ */ jsx("p", { style: { margin: 0, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)", minHeight: 40, textWrap: "pretty" }, children: plan.tagline }),
983
+ /* @__PURE__ */ jsx(Price, { plan, cycle }),
984
+ featured ? /* @__PURE__ */ jsx(Button, { kind: "fancy", fullWidth: true, children: plan.cta }) : /* @__PURE__ */ jsx(Button, { fullWidth: true, variant: "neutral", appearance: "stroke", children: plan.cta }),
985
+ /* @__PURE__ */ jsx(Divider, {}),
986
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: plan.features.map((f, i) => /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: [
987
+ /* @__PURE__ */ jsx("i", { className: "ri-check-line", style: { fontSize: 18, color: "var(--klun-state-success-base)" } }),
988
+ f
989
+ ] }, i)) })
990
+ ] });
991
+ }
992
+ var FAQ = [
993
+ { id: "f1", title: "Can I change plans later?", content: "Yes \u2014 upgrade or downgrade anytime. Changes are prorated to your billing cycle." },
994
+ { id: "f2", title: "Do you offer a free trial?", content: "Every paid plan includes a 14-day trial. No card required to start." },
995
+ { id: "f3", title: "What payment methods do you accept?", content: "All major cards and ACH for annual plans. Enterprise can pay by invoice." },
996
+ { id: "f4", title: "Is there a discount for annual billing?", content: "Annual billing saves roughly 20% versus paying monthly." }
997
+ ];
998
+ function PricingTemplate() {
999
+ const [cycle, setCycle] = useState("monthly");
1000
+ return /* @__PURE__ */ jsxs("div", { style: { maxWidth: 1080, margin: "0 auto", padding: "72px 32px 96px" }, children: [
1001
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: 16, textAlign: "center", marginBottom: 40 }, children: [
1002
+ /* @__PURE__ */ jsx(ContentLabel, { color: "blue", icon: /* @__PURE__ */ jsx("i", { className: "ri-price-tag-3-line" }), children: "Pricing" }),
1003
+ /* @__PURE__ */ jsx("h1", { style: { margin: 0, font: "var(--klun-text-title-h1)", color: "var(--klun-text-strong-950)", letterSpacing: "-.03em", maxWidth: 640, textWrap: "balance" }, children: "Simple pricing that scales with you" }),
1004
+ /* @__PURE__ */ jsx("p", { style: { margin: 0, font: "var(--klun-text-paragraph-lg)", color: "var(--klun-text-sub-600)", maxWidth: 520, textWrap: "pretty" }, children: "Start free, then pick a plan when your team is ready. No hidden fees." }),
1005
+ /* @__PURE__ */ jsxs("div", { style: { display: "inline-flex", alignItems: "center", gap: 10, marginTop: 8 }, children: [
1006
+ /* @__PURE__ */ jsx(
1007
+ SegmentedControl,
1008
+ {
1009
+ value: cycle,
1010
+ onChange: (v) => setCycle(v),
1011
+ items: [{ value: "monthly", label: "Monthly" }, { value: "yearly", label: "Yearly" }]
1012
+ }
1013
+ ),
1014
+ /* @__PURE__ */ jsx(Badge, { color: "green", variant: "lighter", children: "Save 20%" })
1015
+ ] })
1016
+ ] }),
1017
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 20, alignItems: "stretch", flexWrap: "wrap" }, children: PLANS.map((p) => /* @__PURE__ */ jsx(PlanCard, { plan: p, cycle }, p.id)) }),
1018
+ /* @__PURE__ */ jsx(Alert, { status: "information", title: "Education & nonprofits", icon: /* @__PURE__ */ jsx("i", { className: "ri-lightbulb-line" }), style: { marginTop: 24 }, children: "Qualifying teams get 50% off any paid plan \u2014 reach out to sales to verify eligibility." }),
1019
+ /* @__PURE__ */ jsxs("div", { style: { marginTop: 72 }, children: [
1020
+ /* @__PURE__ */ jsx("h2", { style: { margin: "0 0 8px", font: "var(--klun-text-title-h4)", color: "var(--klun-text-strong-950)", letterSpacing: "-.02em", textAlign: "center" }, children: "Frequently asked questions" }),
1021
+ /* @__PURE__ */ jsx("p", { style: { margin: "0 0 28px", font: "var(--klun-text-paragraph-md)", color: "var(--klun-text-sub-600)", textAlign: "center" }, children: "Everything you need to know about plans and billing." }),
1022
+ /* @__PURE__ */ jsx("div", { style: { maxWidth: 720, margin: "0 auto" }, children: /* @__PURE__ */ jsx(Accordion, { items: FAQ }) })
1023
+ ] })
1024
+ ] });
1025
+ }
1026
+ function Row({ label, hint, children, top }) {
1027
+ return /* @__PURE__ */ jsxs("div", { style: { display: "grid", gridTemplateColumns: "240px 1fr", gap: 24, padding: "20px 0", alignItems: top ? "flex-start" : "center", boxShadow: "inset 0 -1px 0 var(--klun-stroke-soft-200)" }, children: [
1028
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
1029
+ /* @__PURE__ */ jsx(Label, { children: label }),
1030
+ hint ? /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-soft-400)", textWrap: "pretty" }, children: hint }) : null
1031
+ ] }),
1032
+ /* @__PURE__ */ jsx("div", { style: { minWidth: 0 }, children })
1033
+ ] });
1034
+ }
1035
+ function Panel({ children }) {
1036
+ return /* @__PURE__ */ jsx("div", { style: { background: "var(--klun-bg-white-0)", borderRadius: "var(--klun-radius-2xl)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)", padding: "8px 24px 24px" }, children });
1037
+ }
1038
+ function ProfileTab() {
1039
+ const [bio, setBio] = useState("Product designer focused on systems and tooling.");
1040
+ return /* @__PURE__ */ jsxs(Panel, { children: [
1041
+ /* @__PURE__ */ jsx(Row, { label: "Photo", hint: "PNG or JPG, up to 5MB.", top: true, children: /* @__PURE__ */ jsx(ImageUpload, { label: "Upload new photo", hint: "Recommended 400\xD7400px", onRemove: () => {
1042
+ }, src: "" }) }),
1043
+ /* @__PURE__ */ jsx(Row, { label: "Full name", children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: 12 }, children: [
1044
+ /* @__PURE__ */ jsx(Input, { defaultValue: "Arthur", placeholder: "First name" }),
1045
+ /* @__PURE__ */ jsx(Input, { defaultValue: "Taylor", placeholder: "Last name" })
1046
+ ] }) }),
1047
+ /* @__PURE__ */ jsx(Row, { label: "Email address", hint: "Used for sign-in and notifications.", children: /* @__PURE__ */ jsx(Input, { type: "email", defaultValue: "arthur@klunui.com", leadingIcon: /* @__PURE__ */ jsx("i", { className: "ri-mail-line" }) }) }),
1048
+ /* @__PURE__ */ jsx(Row, { label: "Role", children: /* @__PURE__ */ jsx(SelectMenu, { value: "design", onChange: () => {
1049
+ }, options: [
1050
+ { value: "design", label: "Designer", icon: /* @__PURE__ */ jsx("i", { className: "ri-pencil-ruler-2-line" }) },
1051
+ { value: "eng", label: "Engineer", icon: /* @__PURE__ */ jsx("i", { className: "ri-code-s-slash-line" }) },
1052
+ { value: "pm", label: "Product manager", icon: /* @__PURE__ */ jsx("i", { className: "ri-compass-3-line" }) }
1053
+ ] }) }),
1054
+ /* @__PURE__ */ jsx(Row, { label: "Bio", hint: "A short description for your profile.", top: true, children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 6 }, children: [
1055
+ /* @__PURE__ */ jsx(Textarea, { value: bio, onChange: (e) => setBio(e.target.value), rows: 3, maxLength: 160 }),
1056
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx(CharacterCounter, { value: bio.length, max: 160 }) })
1057
+ ] }) }),
1058
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "flex-end", gap: 10, paddingTop: 20 }, children: [
1059
+ /* @__PURE__ */ jsx(Button, { variant: "neutral", appearance: "stroke", children: "Cancel" }),
1060
+ /* @__PURE__ */ jsx(Button, { children: "Save changes" })
1061
+ ] })
1062
+ ] });
1063
+ }
1064
+ function NotificationsTab() {
1065
+ const [s, setS] = useState({ product: true, weekly: true, mentions: true, security: true, marketing: false });
1066
+ const set = (k) => setS((p) => ({ ...p, [k]: !p[k] }));
1067
+ const items = [
1068
+ { k: "product", label: "Product updates", hint: "New features and improvements." },
1069
+ { k: "weekly", label: "Weekly digest", hint: "A summary of activity every Monday." },
1070
+ { k: "mentions", label: "Mentions & comments", hint: "When someone @mentions you." },
1071
+ { k: "security", label: "Security alerts", hint: "Sign-ins and password changes." },
1072
+ { k: "marketing", label: "Marketing emails", hint: "Tips, offers and news." }
1073
+ ];
1074
+ return /* @__PURE__ */ jsxs(Panel, { children: [
1075
+ /* @__PURE__ */ jsx(ContentLabel, { style: { paddingTop: 20, display: "block" }, children: "Email" }),
1076
+ items.map((it) => /* @__PURE__ */ jsx(Row, { label: it.label, hint: it.hint, children: /* @__PURE__ */ jsx("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx(Switch, { checked: s[it.k], onChange: () => set(it.k) }) }) }, it.k)),
1077
+ /* @__PURE__ */ jsx(Alert, { status: "information", icon: /* @__PURE__ */ jsx("i", { className: "ri-information-2-line" }), style: { marginTop: 20 }, children: "Security alerts can't be turned off \u2014 they protect your account." })
1078
+ ] });
1079
+ }
1080
+ function IntegrationsTab() {
1081
+ const [c, setC] = useState({ slack: true, github: true, figma: false, linear: false });
1082
+ const set = (k) => setC((p) => ({ ...p, [k]: !p[k] }));
1083
+ const rows = [
1084
+ { k: "slack", name: "Slack", icon: "ri-slack-line", desc: "Post notifications to a channel." },
1085
+ { k: "github", name: "GitHub", icon: "ri-github-line", desc: "Link commits and pull requests." },
1086
+ { k: "figma", name: "Figma", icon: "ri-figma-line", desc: "Embed frames and prototypes." },
1087
+ { k: "linear", name: "Linear", icon: "ri-flashlight-line", desc: "Sync issues two ways." }
1088
+ ];
1089
+ return /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: rows.map((r) => /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 12, padding: 16, borderRadius: "var(--klun-radius-2xl)", background: "var(--klun-bg-white-0)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)" }, children: [
1090
+ /* @__PURE__ */ jsx("span", { style: { display: "inline-flex", alignItems: "center", justifyContent: "center", width: 40, height: 40, flex: "none", borderRadius: "var(--klun-radius-lg)", background: "var(--klun-bg-weak-50)", boxShadow: "inset 0 0 0 1px var(--klun-stroke-soft-200)", color: "var(--klun-icon-sub-600)", fontSize: 22 }, children: /* @__PURE__ */ jsx("i", { className: r.icon }) }),
1091
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 2, flex: 1, minWidth: 0 }, children: [
1092
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-label-sm)", color: "var(--klun-text-strong-950)" }, children: r.name }),
1093
+ /* @__PURE__ */ jsx("span", { style: { font: "var(--klun-text-paragraph-xs)", color: "var(--klun-text-sub-600)" }, children: r.desc })
1094
+ ] }),
1095
+ /* @__PURE__ */ jsx(Switch, { checked: c[r.k], onChange: () => set(r.k) })
1096
+ ] }, r.k)) });
1097
+ }
1098
+ var TABS = [
1099
+ { value: "profile", label: "Profile" },
1100
+ { value: "notifications", label: "Notifications" },
1101
+ { value: "integrations", label: "Integrations", badge: "4" }
1102
+ ];
1103
+ function SettingsTemplate() {
1104
+ const [tab, setTab] = useState("profile");
1105
+ return /* @__PURE__ */ jsxs("div", { style: { maxWidth: 880, margin: "0 auto", padding: "48px 32px 80px" }, children: [
1106
+ /* @__PURE__ */ jsxs("header", { style: { display: "flex", alignItems: "flex-start", gap: 16, width: "100%", padding: "0 0 20px", boxShadow: "inset 0 -1px 0 var(--klun-stroke-soft-200)" }, children: [
1107
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4, flex: 1, minWidth: 0 }, children: [
1108
+ /* @__PURE__ */ jsx("h1", { style: { margin: 0, font: "var(--klun-text-title-h5)", color: "var(--klun-text-strong-950)", letterSpacing: "-0.01em" }, children: "Settings" }),
1109
+ /* @__PURE__ */ jsx("p", { style: { margin: 0, font: "var(--klun-text-paragraph-sm)", color: "var(--klun-text-sub-600)" }, children: "Manage your profile, notifications and connected apps." })
1110
+ ] }),
1111
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: "none" }, children: /* @__PURE__ */ jsx(Badge, { color: "green", variant: "lighter", dot: true, children: "All changes saved" }) })
1112
+ ] }),
1113
+ /* @__PURE__ */ jsx("div", { style: { margin: "24px 0 28px" }, children: /* @__PURE__ */ jsx(Tabs, { items: TABS, value: tab, onChange: setTab }) }),
1114
+ tab === "profile" ? /* @__PURE__ */ jsx(ProfileTab, {}) : tab === "notifications" ? /* @__PURE__ */ jsx(NotificationsTab, {}) : /* @__PURE__ */ jsx(IntegrationsTab, {})
1115
+ ] });
1116
+ }
1117
+
1118
+ export { AIAssistantTemplate, CalendarTemplate, CryptoTemplate, DashboardTemplate, MarketingTemplate, OverviewScreen, PricingTemplate, SettingsScreen, SettingsTemplate, Sidebar, TopBar };
1119
+ //# sourceMappingURL=index.js.map
1120
+ //# sourceMappingURL=index.js.map