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