@goliapkg/gds 1.7.0 → 2.0.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/dist/{gesture-irjS0hVM.js → gesture-I79dlTuS.js} +1 -1
- package/dist/{gesture-irjS0hVM.js.map → gesture-I79dlTuS.js.map} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -26
- package/dist/l0-tokens/index.js +1 -1
- package/dist/l0-tokens/motion-system.d.ts +1 -0
- package/dist/l0-tokens/motion-system.d.ts.map +1 -1
- package/dist/l0-tokens/shadow-system.d.ts.map +1 -1
- package/dist/l1-systems/index.d.ts +2 -2
- package/dist/l1-systems/index.d.ts.map +1 -1
- package/dist/l1-systems/index.js +9 -9
- package/dist/l1-systems/theme.d.ts +28 -0
- package/dist/l1-systems/theme.d.ts.map +1 -1
- package/dist/l2-primitives/focus-ring.d.ts +9 -3
- package/dist/l2-primitives/focus-ring.d.ts.map +1 -1
- package/dist/l2-primitives/glow-effect.d.ts +8 -2
- package/dist/l2-primitives/glow-effect.d.ts.map +1 -1
- package/dist/l2-primitives/gradient-border.d.ts +8 -2
- package/dist/l2-primitives/gradient-border.d.ts.map +1 -1
- package/dist/l2-primitives/index.js +2 -2
- package/dist/l2-primitives/input.d.ts +16 -0
- package/dist/l2-primitives/input.d.ts.map +1 -1
- package/dist/l2-primitives/loading.d.ts +21 -6
- package/dist/l2-primitives/loading.d.ts.map +1 -1
- package/dist/l2-primitives/truncate.d.ts +8 -2
- package/dist/l2-primitives/truncate.d.ts.map +1 -1
- package/dist/{l2-primitives-Le0006ck.js → l2-primitives-DdQHMJRE.js} +57 -40
- package/dist/l2-primitives-DdQHMJRE.js.map +1 -0
- package/dist/l3-atoms/index.js +6 -6
- package/dist/{l3-atoms-Cvu01YHO.js → l3-atoms-BGwlQvjl.js} +150 -187
- package/dist/l3-atoms-BGwlQvjl.js.map +1 -0
- package/dist/l4-molecules/accordion.d.ts.map +1 -1
- package/dist/l4-molecules/combobox-list.d.ts +4 -1
- package/dist/l4-molecules/combobox-list.d.ts.map +1 -1
- package/dist/l4-molecules/combobox.d.ts +5 -0
- package/dist/l4-molecules/combobox.d.ts.map +1 -1
- package/dist/l4-molecules/email-composer-field.d.ts +38 -0
- package/dist/l4-molecules/email-composer-field.d.ts.map +1 -0
- package/dist/l4-molecules/index.d.ts +6 -0
- package/dist/l4-molecules/index.d.ts.map +1 -1
- package/dist/l4-molecules/index.js +4 -4
- package/dist/l4-molecules/tab-group.d.ts +5 -1
- package/dist/l4-molecules/tab-group.d.ts.map +1 -1
- package/dist/l4-molecules/tabs.d.ts +4 -1
- package/dist/l4-molecules/tabs.d.ts.map +1 -1
- package/dist/l4-molecules/toast-provider.d.ts +10 -0
- package/dist/l4-molecules/toast-provider.d.ts.map +1 -0
- package/dist/l4-molecules/toast-store.d.ts +42 -0
- package/dist/l4-molecules/toast-store.d.ts.map +1 -0
- package/dist/{l4-molecules-CSmApFmt.js → l4-molecules-HRbUopGS.js} +1391 -1206
- package/dist/l4-molecules-HRbUopGS.js.map +1 -0
- package/dist/l5-organisms/command-palette-list.d.ts +3 -1
- package/dist/l5-organisms/command-palette-list.d.ts.map +1 -1
- package/dist/l5-organisms/command-palette.d.ts +10 -1
- package/dist/l5-organisms/command-palette.d.ts.map +1 -1
- package/dist/l5-organisms/email-composer.d.ts +118 -0
- package/dist/l5-organisms/email-composer.d.ts.map +1 -0
- package/dist/l5-organisms/email-thread.d.ts +85 -0
- package/dist/l5-organisms/email-thread.d.ts.map +1 -0
- package/dist/l5-organisms/index.d.ts +6 -0
- package/dist/l5-organisms/index.d.ts.map +1 -1
- package/dist/l5-organisms/index.js +2 -2
- package/dist/l5-organisms/markdown-preview.d.ts +6 -0
- package/dist/l5-organisms/markdown-preview.d.ts.map +1 -1
- package/dist/l5-organisms/rich-text-editor.d.ts +56 -0
- package/dist/l5-organisms/rich-text-editor.d.ts.map +1 -0
- package/dist/{l5-organisms-Css3AvsZ.js → l5-organisms-BA62NsFK.js} +2435 -1247
- package/dist/l5-organisms-BA62NsFK.js.map +1 -0
- package/dist/l6-charts/index.js +1 -1
- package/dist/{l6-charts-DPMj1m0E.js → l6-charts-DzRRfX8J.js} +1 -1
- package/dist/{l6-charts-DPMj1m0E.js.map → l6-charts-DzRRfX8J.js.map} +1 -1
- package/dist/l7-patterns/admin-layout.d.ts +6 -0
- package/dist/l7-patterns/admin-layout.d.ts.map +1 -1
- package/dist/l7-patterns/app-shell.d.ts +44 -0
- package/dist/l7-patterns/app-shell.d.ts.map +1 -0
- package/dist/l7-patterns/inbox-layout.d.ts +50 -3
- package/dist/l7-patterns/inbox-layout.d.ts.map +1 -1
- package/dist/l7-patterns/index.d.ts +6 -2
- package/dist/l7-patterns/index.d.ts.map +1 -1
- package/dist/l7-patterns/index.js +2 -2
- package/dist/l7-patterns/panel-group.d.ts +42 -0
- package/dist/l7-patterns/panel-group.d.ts.map +1 -0
- package/dist/l7-patterns/settings-layout.d.ts +6 -1
- package/dist/l7-patterns/settings-layout.d.ts.map +1 -1
- package/dist/l7-patterns/sidebar.d.ts +14 -0
- package/dist/l7-patterns/sidebar.d.ts.map +1 -1
- package/dist/{l7-patterns-8fc4b3eE.js → l7-patterns-Dn7X2pQC.js} +847 -544
- package/dist/l7-patterns-Dn7X2pQC.js.map +1 -0
- package/dist/loading-dots-Dz79qOGY.js +62 -0
- package/dist/loading-dots-Dz79qOGY.js.map +1 -0
- package/dist/sanitize-BF45M9xp.js +33 -0
- package/dist/sanitize-BF45M9xp.js.map +1 -0
- package/dist/{scales-B23Guac-.js → scales-DlVrSOA2.js} +98 -96
- package/dist/scales-DlVrSOA2.js.map +1 -0
- package/dist/spinner-DyrwL4JQ.js +201 -0
- package/dist/spinner-DyrwL4JQ.js.map +1 -0
- package/dist/stepper-DKJuH1ws.js +199 -0
- package/dist/stepper-DKJuH1ws.js.map +1 -0
- package/dist/toast-DTuqMdrj.js +614 -0
- package/dist/toast-DTuqMdrj.js.map +1 -0
- package/dist/tokens.css +5 -0
- package/dist/{use-theme-CONuDdW3.js → use-theme-BI1t0nvJ.js} +59 -34
- package/dist/use-theme-BI1t0nvJ.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -2
- package/dist/utils/sanitize.d.ts +7 -0
- package/dist/utils/sanitize.d.ts.map +1 -0
- package/dist/utils/tiptap.d.ts +12 -0
- package/dist/utils/tiptap.d.ts.map +1 -0
- package/package.json +42 -3
- package/dist/l2-primitives-Le0006ck.js.map +0 -1
- package/dist/l3-atoms-Cvu01YHO.js.map +0 -1
- package/dist/l4-molecules-CSmApFmt.js.map +0 -1
- package/dist/l5-organisms-Css3AvsZ.js.map +0 -1
- package/dist/l7-patterns-8fc4b3eE.js.map +0 -1
- package/dist/loading-dots-fB4X_Zh0.js +0 -24
- package/dist/loading-dots-fB4X_Zh0.js.map +0 -1
- package/dist/scales-B23Guac-.js.map +0 -1
- package/dist/spinner-N7UNjdsQ.js +0 -144
- package/dist/spinner-N7UNjdsQ.js.map +0 -1
- package/dist/stepper-DWJfv7TA.js +0 -140
- package/dist/stepper-DWJfv7TA.js.map +0 -1
- package/dist/toast-DN5xANLM.js +0 -442
- package/dist/toast-DN5xANLM.js.map +0 -1
- package/dist/use-theme-CONuDdW3.js.map +0 -1
|
@@ -1,89 +1,194 @@
|
|
|
1
1
|
import { r as e, t } from "./glass-CQTlX7IO.js";
|
|
2
2
|
import { t as n } from "./button-avu-rQU4.js";
|
|
3
|
+
import "./motion-DUPegem-.js";
|
|
3
4
|
import { r, t as i } from "./separator-Dqs23A9D.js";
|
|
4
|
-
import { i as a, r as o, t as s } from "./spinner-
|
|
5
|
+
import { i as a, r as o, t as s } from "./spinner-DyrwL4JQ.js";
|
|
5
6
|
import { t as c } from "./progress-wAKN3Czz.js";
|
|
6
7
|
import { t as l } from "./skeleton-C9FFZSYN.js";
|
|
7
8
|
import { t as u } from "./avatar-l3SaMCmU.js";
|
|
8
9
|
import { n as d, t as f } from "./resize-handle-ilSc7QRM.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { a as p, i as m, n as h, r as g, t as _ } from "./stepper-DKJuH1ws.js";
|
|
11
|
+
import { a as v } from "./hooks-BE-_EmDI.js";
|
|
12
|
+
import { Children as y, createContext as b, forwardRef as x, useCallback as S, useContext as C, useEffect as w, useMemo as T, useRef as E, useState as D } from "react";
|
|
13
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
12
14
|
//#region src/l7-patterns/action-bar.tsx
|
|
13
|
-
var
|
|
15
|
+
var j = {
|
|
14
16
|
between: "justify-between",
|
|
15
17
|
center: "justify-center",
|
|
16
18
|
end: "justify-end",
|
|
17
19
|
start: "justify-start"
|
|
18
|
-
},
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
+
}, ee = x(function({ children: n, className: r, glass: i = !0, justify: a = "end", position: o = "bottom" }, s) {
|
|
21
|
+
return /* @__PURE__ */ k("div", {
|
|
20
22
|
ref: s,
|
|
21
|
-
className: e("sticky z-10 flex items-center gds-pad-x-lg gds-pad-y", o === "bottom" ? "bottom-0 border-t" : "top-0 border-b",
|
|
23
|
+
className: e("sticky z-10 flex items-center gds-pad-x-lg gds-pad-y", o === "bottom" ? "bottom-0 border-t" : "top-0 border-b", j[a], i === !0 ? e(t(i), "border-white/10 bg-bg/60") : "border-border bg-surface", r),
|
|
22
24
|
"data-component": "action-bar",
|
|
23
25
|
children: n
|
|
24
26
|
});
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/l7-patterns/admin-layout.tsx
|
|
30
|
+
function te() {
|
|
31
|
+
return /* @__PURE__ */ k("svg", {
|
|
32
|
+
width: "20",
|
|
33
|
+
height: "20",
|
|
34
|
+
viewBox: "0 0 20 20",
|
|
35
|
+
fill: "none",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeWidth: "1.5",
|
|
38
|
+
strokeLinecap: "round",
|
|
39
|
+
children: /* @__PURE__ */ k("path", { d: "M3 5h14M3 10h14M3 15h14" })
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function ne({ collapsed: t }) {
|
|
43
|
+
return /* @__PURE__ */ k("svg", {
|
|
44
|
+
width: "16",
|
|
45
|
+
height: "16",
|
|
46
|
+
viewBox: "0 0 16 16",
|
|
47
|
+
fill: "none",
|
|
48
|
+
stroke: "currentColor",
|
|
49
|
+
strokeWidth: "1.5",
|
|
50
|
+
strokeLinecap: "round",
|
|
51
|
+
strokeLinejoin: "round",
|
|
52
|
+
className: e("transition-transform duration-200", t && "rotate-180"),
|
|
53
|
+
children: /* @__PURE__ */ k("path", { d: "M10 3L5 8l5 5" })
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
var re = x(function({ sidebar: t, topbar: n, children: r, sidebarWidth: i = 240, sidebarCollapsible: a = !0, sidebarDefaultCollapsed: o = !1, mobileDrawer: s = !0, topbarHeight: c = 48, topbarSticky: l = !0, logo: u, className: d }, f) {
|
|
57
|
+
let p = v(), [m, g] = D(!1), [_, y] = D(o), b = s && p, x = _ ? 56 : i;
|
|
58
|
+
return /* @__PURE__ */ A("div", {
|
|
59
|
+
ref: f,
|
|
60
|
+
className: e("flex h-screen min-h-0 bg-bg", d),
|
|
29
61
|
"data-component": "admin-layout",
|
|
30
|
-
children: [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
62
|
+
children: [
|
|
63
|
+
!b && /* @__PURE__ */ A("aside", {
|
|
64
|
+
className: "relative shrink-0 overflow-y-auto border-r border-border bg-surface transition-[width] duration-200",
|
|
65
|
+
style: { width: x },
|
|
66
|
+
children: [
|
|
67
|
+
u !== void 0 && /* @__PURE__ */ k("div", {
|
|
68
|
+
className: "flex items-center border-b border-border px-3",
|
|
69
|
+
style: { height: c },
|
|
70
|
+
children: u
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ k("div", {
|
|
73
|
+
className: e(_ && "overflow-hidden"),
|
|
74
|
+
children: t
|
|
75
|
+
}),
|
|
76
|
+
a && /* @__PURE__ */ k("button", {
|
|
77
|
+
type: "button",
|
|
78
|
+
onClick: () => y((e) => !e),
|
|
79
|
+
className: e("absolute bottom-3 right-2 flex h-6 w-6 items-center justify-center rounded-md text-fg-muted hover:text-fg hover:bg-surface-hover", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
|
|
80
|
+
"aria-label": _ ? "Expand sidebar" : "Collapse sidebar",
|
|
81
|
+
children: /* @__PURE__ */ k(ne, { collapsed: _ })
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}),
|
|
85
|
+
b && /* @__PURE__ */ A(h, {
|
|
86
|
+
open: m,
|
|
87
|
+
onClose: () => g(!1),
|
|
88
|
+
side: "left",
|
|
89
|
+
width: i,
|
|
90
|
+
children: [u !== void 0 && /* @__PURE__ */ k("div", {
|
|
91
|
+
className: "mb-2",
|
|
92
|
+
children: u
|
|
93
|
+
}), t]
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ A("div", {
|
|
96
|
+
className: "flex flex-1 flex-col min-w-0",
|
|
97
|
+
children: [(n !== void 0 || b) && /* @__PURE__ */ A("header", {
|
|
98
|
+
className: e("z-10 shrink-0 flex items-center border-b border-border bg-surface/80 backdrop-blur-sm", l && "sticky top-0"),
|
|
99
|
+
style: { height: c },
|
|
100
|
+
children: [b && /* @__PURE__ */ k("button", {
|
|
101
|
+
type: "button",
|
|
102
|
+
onClick: () => g(!0),
|
|
103
|
+
className: e("ml-2 flex h-9 w-9 items-center justify-center rounded-md text-fg-muted hover:text-fg hover:bg-surface-hover", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
|
|
104
|
+
"aria-label": "Open sidebar menu",
|
|
105
|
+
"data-testid": "admin-layout-hamburger",
|
|
106
|
+
children: /* @__PURE__ */ k(te, {})
|
|
107
|
+
}), n !== void 0 && /* @__PURE__ */ k("div", {
|
|
108
|
+
className: "flex-1 min-w-0",
|
|
109
|
+
children: n
|
|
110
|
+
})]
|
|
111
|
+
}), /* @__PURE__ */ k("main", {
|
|
112
|
+
className: "flex-1 overflow-auto",
|
|
113
|
+
children: r
|
|
114
|
+
})]
|
|
115
|
+
})
|
|
116
|
+
]
|
|
44
117
|
});
|
|
45
|
-
}),
|
|
46
|
-
return /* @__PURE__ */
|
|
118
|
+
}), ie = x(function({ charts: t, className: n, data: r, metrics: i }, a) {
|
|
119
|
+
return /* @__PURE__ */ A("div", {
|
|
47
120
|
className: e("flex flex-col gds-gap", n),
|
|
48
121
|
"data-component": "analytics-dashboard",
|
|
49
122
|
ref: a,
|
|
50
123
|
children: [
|
|
51
|
-
i !== void 0 && /* @__PURE__ */
|
|
124
|
+
i !== void 0 && /* @__PURE__ */ k("section", {
|
|
52
125
|
className: "flex flex-wrap gds-gap",
|
|
53
126
|
"data-slot": "metrics",
|
|
54
127
|
children: i
|
|
55
128
|
}),
|
|
56
|
-
t !== void 0 && /* @__PURE__ */
|
|
129
|
+
t !== void 0 && /* @__PURE__ */ k("section", {
|
|
57
130
|
className: "flex flex-col gds-gap",
|
|
58
131
|
"data-slot": "charts",
|
|
59
132
|
children: t
|
|
60
133
|
}),
|
|
61
|
-
r !== void 0 && /* @__PURE__ */
|
|
134
|
+
r !== void 0 && /* @__PURE__ */ k("section", {
|
|
62
135
|
className: "flex flex-col gds-gap",
|
|
63
136
|
"data-slot": "data",
|
|
64
137
|
children: r
|
|
65
138
|
})
|
|
66
139
|
]
|
|
67
140
|
});
|
|
68
|
-
}),
|
|
141
|
+
}), ae = x(function({ sidebar: n, children: r, statusBar: i, mobileNav: a, sidebarWidth: o = 56, sidebarPosition: s = "left", padded: c = !1, gap: l = 0, glass: u, className: d, ...f }, p) {
|
|
142
|
+
let m = v();
|
|
143
|
+
return /* @__PURE__ */ A("div", {
|
|
144
|
+
...f,
|
|
145
|
+
ref: p,
|
|
146
|
+
className: e("fixed inset-0 flex flex-col bg-bg", t(u), d),
|
|
147
|
+
"data-component": "app-shell",
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ A("div", {
|
|
150
|
+
className: e("flex flex-1 min-h-0", s === "right" && "flex-row-reverse"),
|
|
151
|
+
style: l > 0 ? { gap: l } : void 0,
|
|
152
|
+
children: [n !== void 0 && !m && /* @__PURE__ */ k("div", {
|
|
153
|
+
className: "shrink-0 overflow-hidden",
|
|
154
|
+
style: { width: o },
|
|
155
|
+
children: n
|
|
156
|
+
}), /* @__PURE__ */ k("div", {
|
|
157
|
+
className: e("flex-1 min-w-0 flex flex-col overflow-hidden", c && "p-1.5 md:p-1.5"),
|
|
158
|
+
children: r
|
|
159
|
+
})]
|
|
160
|
+
}),
|
|
161
|
+
i !== void 0 && !m && /* @__PURE__ */ k("div", {
|
|
162
|
+
className: "shrink-0 border-t border-border bg-bg-secondary",
|
|
163
|
+
"data-component": "app-shell-status-bar",
|
|
164
|
+
children: i
|
|
165
|
+
}),
|
|
166
|
+
a !== void 0 && m && /* @__PURE__ */ k("div", {
|
|
167
|
+
className: "shrink-0 border-t border-border bg-bg-secondary",
|
|
168
|
+
"data-component": "app-shell-mobile-nav",
|
|
169
|
+
children: a
|
|
170
|
+
})
|
|
171
|
+
]
|
|
172
|
+
});
|
|
173
|
+
}), oe = {
|
|
69
174
|
sm: "gds-gap-sm",
|
|
70
175
|
default: "gds-gap",
|
|
71
176
|
lg: "gds-gap-lg"
|
|
72
|
-
},
|
|
177
|
+
}, se = (e) => ({
|
|
73
178
|
1: "grid-cols-1",
|
|
74
179
|
2: "grid-cols-2",
|
|
75
180
|
3: "grid-cols-3",
|
|
76
181
|
4: "grid-cols-4",
|
|
77
182
|
5: "grid-cols-5",
|
|
78
183
|
6: "grid-cols-6"
|
|
79
|
-
})[e] ?? `grid-cols-${e}`,
|
|
80
|
-
return /* @__PURE__ */
|
|
184
|
+
})[e] ?? `grid-cols-${e}`, ce = x(function({ children: t, columns: n = 4, gap: r = "default", className: i }, a) {
|
|
185
|
+
return /* @__PURE__ */ k("div", {
|
|
81
186
|
ref: a,
|
|
82
|
-
className: e("grid auto-rows-[minmax(120px,auto)]",
|
|
187
|
+
className: e("grid auto-rows-[minmax(120px,auto)]", se(n), oe[r], i),
|
|
83
188
|
"data-component": "bento-grid",
|
|
84
189
|
children: t
|
|
85
190
|
});
|
|
86
|
-
}),
|
|
191
|
+
}), le = [
|
|
87
192
|
"Sun",
|
|
88
193
|
"Mon",
|
|
89
194
|
"Tue",
|
|
@@ -91,7 +196,7 @@ var D = {
|
|
|
91
196
|
"Thu",
|
|
92
197
|
"Fri",
|
|
93
198
|
"Sat"
|
|
94
|
-
],
|
|
199
|
+
], ue = x(function({ className: t, events: n = [], month: r, onDateClick: i, year: a, ...o }, s) {
|
|
95
200
|
let c = new Date(a, r - 1, 1).getDay(), l = new Date(a, r, 0).getDate(), u = [];
|
|
96
201
|
for (let e = 0; e < c; e++) u.push(null);
|
|
97
202
|
for (let e = 1; e <= l; e++) u.push(e);
|
|
@@ -100,26 +205,26 @@ var D = {
|
|
|
100
205
|
let t = d.get(e.date) ?? [];
|
|
101
206
|
d.set(e.date, [...t, e]);
|
|
102
207
|
}
|
|
103
|
-
return /* @__PURE__ */
|
|
208
|
+
return /* @__PURE__ */ k("div", {
|
|
104
209
|
className: e("flex flex-col gap-1", t),
|
|
105
210
|
"data-component": "calendar-view",
|
|
106
211
|
ref: s,
|
|
107
212
|
...o,
|
|
108
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ A("div", {
|
|
109
214
|
className: "grid grid-cols-7 gap-1",
|
|
110
|
-
children: [
|
|
215
|
+
children: [le.map((e) => /* @__PURE__ */ k("div", {
|
|
111
216
|
className: "py-1 text-center text-xs font-medium text-fg-muted",
|
|
112
217
|
children: e
|
|
113
218
|
}, e)), u.map((t, n) => {
|
|
114
219
|
let r = t === null ? [] : d.get(t) ?? [];
|
|
115
|
-
return /* @__PURE__ */
|
|
220
|
+
return /* @__PURE__ */ A("div", {
|
|
116
221
|
className: e("flex min-h-[36px] flex-col items-center rounded p-1 text-xs", t !== null && "cursor-pointer text-fg hover:bg-accent/10", t === null && "pointer-events-none"),
|
|
117
222
|
onClick: () => {
|
|
118
223
|
t !== null && i !== void 0 && i(t);
|
|
119
224
|
},
|
|
120
|
-
children: [t !== null && /* @__PURE__ */
|
|
225
|
+
children: [t !== null && /* @__PURE__ */ k("span", { children: t }), r.length > 0 && /* @__PURE__ */ k("div", {
|
|
121
226
|
className: "mt-0.5 flex gap-0.5",
|
|
122
|
-
children: r.slice(0, 3).map((e, t) => /* @__PURE__ */
|
|
227
|
+
children: r.slice(0, 3).map((e, t) => /* @__PURE__ */ k("span", {
|
|
123
228
|
className: "h-1 w-1 rounded-full",
|
|
124
229
|
style: { backgroundColor: e.color ?? "var(--color-accent)" },
|
|
125
230
|
title: e.label
|
|
@@ -132,31 +237,31 @@ var D = {
|
|
|
132
237
|
});
|
|
133
238
|
//#endregion
|
|
134
239
|
//#region src/l7-patterns/comparison-table.tsx
|
|
135
|
-
function
|
|
136
|
-
return /* @__PURE__ */
|
|
240
|
+
function M({ features: t, plans: n, highlightColumn: r, glass: i, className: a }) {
|
|
241
|
+
return /* @__PURE__ */ k("div", {
|
|
137
242
|
"data-component": "comparison-table",
|
|
138
243
|
className: e("overflow-hidden gds-radius-card border border-border", i === !0 && "bg-white/5 backdrop-blur-md", a),
|
|
139
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ A("table", {
|
|
140
245
|
className: "w-full text-sm",
|
|
141
|
-
children: [/* @__PURE__ */
|
|
246
|
+
children: [/* @__PURE__ */ k("thead", { children: /* @__PURE__ */ A("tr", {
|
|
142
247
|
className: "border-b border-border bg-bg-tertiary/30",
|
|
143
|
-
children: [/* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ k("th", {
|
|
144
249
|
className: "px-4 py-3 text-left text-xs font-medium text-fg-muted",
|
|
145
250
|
children: "Feature"
|
|
146
|
-
}), n.map((t, n) => /* @__PURE__ */
|
|
251
|
+
}), n.map((t, n) => /* @__PURE__ */ k("th", {
|
|
147
252
|
className: e("px-4 py-3 text-center text-xs font-semibold text-fg", n === r && "bg-accent/5"),
|
|
148
253
|
children: t.name
|
|
149
254
|
}, t.name))]
|
|
150
|
-
}) }), /* @__PURE__ */
|
|
255
|
+
}) }), /* @__PURE__ */ k("tbody", { children: t.map((i, a) => /* @__PURE__ */ A("tr", {
|
|
151
256
|
className: e(a < t.length - 1 && "border-b border-border/50"),
|
|
152
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ k("td", {
|
|
153
258
|
className: "px-4 py-2.5 text-xs text-fg",
|
|
154
259
|
children: i
|
|
155
260
|
}), n.map((t, n) => {
|
|
156
261
|
let i = t.values[a];
|
|
157
|
-
return /* @__PURE__ */
|
|
262
|
+
return /* @__PURE__ */ k("td", {
|
|
158
263
|
className: e("px-4 py-2.5 text-center", n === r && "bg-accent/5"),
|
|
159
|
-
children: typeof i == "boolean" ? i === !0 ? /* @__PURE__ */
|
|
264
|
+
children: typeof i == "boolean" ? i === !0 ? /* @__PURE__ */ k("svg", {
|
|
160
265
|
className: "mx-auto text-success",
|
|
161
266
|
width: "16",
|
|
162
267
|
height: "16",
|
|
@@ -167,8 +272,8 @@ function se({ features: t, plans: n, highlightColumn: r, glass: i, className: a
|
|
|
167
272
|
strokeLinecap: "round",
|
|
168
273
|
strokeLinejoin: "round",
|
|
169
274
|
"data-icon": "check",
|
|
170
|
-
children: /* @__PURE__ */
|
|
171
|
-
}) : /* @__PURE__ */
|
|
275
|
+
children: /* @__PURE__ */ k("polyline", { points: "20 6 9 17 4 12" })
|
|
276
|
+
}) : /* @__PURE__ */ k("svg", {
|
|
172
277
|
className: "mx-auto text-fg-muted/40",
|
|
173
278
|
width: "16",
|
|
174
279
|
height: "16",
|
|
@@ -178,13 +283,13 @@ function se({ features: t, plans: n, highlightColumn: r, glass: i, className: a
|
|
|
178
283
|
strokeWidth: "2",
|
|
179
284
|
strokeLinecap: "round",
|
|
180
285
|
"data-icon": "dash",
|
|
181
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ k("line", {
|
|
182
287
|
x1: "5",
|
|
183
288
|
y1: "12",
|
|
184
289
|
x2: "19",
|
|
185
290
|
y2: "12"
|
|
186
291
|
})
|
|
187
|
-
}) : /* @__PURE__ */
|
|
292
|
+
}) : /* @__PURE__ */ k("span", {
|
|
188
293
|
className: "text-xs text-fg",
|
|
189
294
|
children: i
|
|
190
295
|
})
|
|
@@ -196,132 +301,132 @@ function se({ features: t, plans: n, highlightColumn: r, glass: i, className: a
|
|
|
196
301
|
}
|
|
197
302
|
//#endregion
|
|
198
303
|
//#region src/l7-patterns/composition-pattern.tsx
|
|
199
|
-
var
|
|
200
|
-
let d = typeof s == "number" ? `${s}px` : s, f = o === "right", p = r === void 0 ? null : /* @__PURE__ */
|
|
304
|
+
var N = x(function({ header: n, sidebar: r, content: i, footer: a, sidebarPosition: o = "left", sidebarWidth: s = 240, glass: c, className: l }, u) {
|
|
305
|
+
let d = typeof s == "number" ? `${s}px` : s, f = o === "right", p = r === void 0 ? null : /* @__PURE__ */ k("div", {
|
|
201
306
|
className: e("shrink-0 overflow-auto", f ? "border-l border-border" : "border-r border-border"),
|
|
202
307
|
style: { width: d },
|
|
203
308
|
children: r
|
|
204
309
|
});
|
|
205
|
-
return /* @__PURE__ */
|
|
310
|
+
return /* @__PURE__ */ A("div", {
|
|
206
311
|
ref: u,
|
|
207
312
|
className: e("gds-ctx flex h-full flex-col", t(c), l),
|
|
208
313
|
"data-component": "composition-pattern",
|
|
209
314
|
children: [
|
|
210
|
-
n !== void 0 && /* @__PURE__ */
|
|
315
|
+
n !== void 0 && /* @__PURE__ */ k("div", {
|
|
211
316
|
className: "shrink-0 border-b border-border",
|
|
212
317
|
children: n
|
|
213
318
|
}),
|
|
214
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ A("div", {
|
|
215
320
|
className: "flex min-h-0 flex-1",
|
|
216
321
|
children: [
|
|
217
322
|
f ? null : p,
|
|
218
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ k("div", {
|
|
219
324
|
className: "flex-1 overflow-auto",
|
|
220
325
|
children: i
|
|
221
326
|
}),
|
|
222
327
|
f ? p : null
|
|
223
328
|
]
|
|
224
329
|
}),
|
|
225
|
-
a !== void 0 && /* @__PURE__ */
|
|
330
|
+
a !== void 0 && /* @__PURE__ */ k("div", {
|
|
226
331
|
className: "shrink-0 border-t border-border",
|
|
227
332
|
children: a
|
|
228
333
|
})
|
|
229
334
|
]
|
|
230
335
|
});
|
|
231
|
-
}),
|
|
232
|
-
return /* @__PURE__ */
|
|
336
|
+
}), P = x(function({ title: n, description: r, actions: i, variant: a = "default", glass: o, className: s }, c) {
|
|
337
|
+
return /* @__PURE__ */ A("div", {
|
|
233
338
|
ref: c,
|
|
234
339
|
className: e("gds-ctx gds-radius-card gds-pad-x-lg gds-pad-y-lg w-full text-center", a === "accent" ? "bg-accent text-accent-fg" : a === "gradient" ? "bg-gradient-to-r from-accent to-success text-accent-fg" : o === !0 ? e(t(o), "border border-white/10 bg-bg/60") : "border border-border bg-surface", s),
|
|
235
340
|
"data-component": "cta-banner",
|
|
236
341
|
"data-variant": a,
|
|
237
342
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ k("h2", {
|
|
239
344
|
className: e("text-xl font-bold", a === "default" && "text-fg"),
|
|
240
345
|
children: n
|
|
241
346
|
}),
|
|
242
|
-
r !== void 0 && /* @__PURE__ */
|
|
347
|
+
r !== void 0 && /* @__PURE__ */ k("p", {
|
|
243
348
|
className: e("mt-2 gds-text-body", a === "default" ? "text-fg-muted" : "opacity-80"),
|
|
244
349
|
children: r
|
|
245
350
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ k("div", {
|
|
247
352
|
className: "mt-4 flex items-center justify-center gap-3",
|
|
248
353
|
children: i
|
|
249
354
|
})
|
|
250
355
|
]
|
|
251
356
|
});
|
|
252
|
-
}),
|
|
253
|
-
return /* @__PURE__ */
|
|
357
|
+
}), F = x(function({ sidebar: t, header: n, children: r, sidebarWidth: i = 240, className: a }, o) {
|
|
358
|
+
return /* @__PURE__ */ A("div", {
|
|
254
359
|
ref: o,
|
|
255
360
|
className: e("flex h-full min-h-0 bg-bg", a),
|
|
256
361
|
"data-component": "dashboard-layout",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ k("aside", {
|
|
258
363
|
className: "shrink-0 overflow-y-auto border-r border-border bg-surface",
|
|
259
364
|
style: { width: i },
|
|
260
365
|
children: t
|
|
261
|
-
}), /* @__PURE__ */
|
|
366
|
+
}), /* @__PURE__ */ A("div", {
|
|
262
367
|
className: "flex flex-1 flex-col min-w-0",
|
|
263
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
368
|
+
children: [n !== void 0 && /* @__PURE__ */ k("header", {
|
|
264
369
|
className: "sticky top-0 z-10 shrink-0 border-b border-border bg-surface/80 backdrop-blur-sm",
|
|
265
370
|
children: n
|
|
266
|
-
}), /* @__PURE__ */
|
|
371
|
+
}), /* @__PURE__ */ k("main", {
|
|
267
372
|
className: "flex-1 overflow-auto",
|
|
268
373
|
children: r
|
|
269
374
|
})]
|
|
270
375
|
})]
|
|
271
376
|
});
|
|
272
|
-
}),
|
|
273
|
-
let [c, l] =
|
|
377
|
+
}), I = x(function({ formats: t, onExport: r, title: i = "Export Data", className: a, ...o }, s) {
|
|
378
|
+
let [c, l] = D(t[0] ?? ""), [u, d] = D(""), [f, p] = D("");
|
|
274
379
|
function m() {
|
|
275
380
|
r(c, u !== "" && f !== "" ? {
|
|
276
381
|
from: u,
|
|
277
382
|
to: f
|
|
278
383
|
} : void 0);
|
|
279
384
|
}
|
|
280
|
-
return /* @__PURE__ */
|
|
385
|
+
return /* @__PURE__ */ A("div", {
|
|
281
386
|
ref: s,
|
|
282
387
|
className: e("gds-ctx rounded-lg border border-border bg-surface gds-pad gds-shadow", a),
|
|
283
388
|
"data-component": "data-export-card",
|
|
284
389
|
...o,
|
|
285
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
286
391
|
className: "select-none font-medium gds-heading text-fg mb-3",
|
|
287
392
|
children: i
|
|
288
|
-
}), /* @__PURE__ */
|
|
393
|
+
}), /* @__PURE__ */ A("div", {
|
|
289
394
|
className: "flex flex-col gap-3",
|
|
290
395
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ A("div", {
|
|
292
397
|
className: "flex flex-col gap-1",
|
|
293
|
-
children: [/* @__PURE__ */
|
|
398
|
+
children: [/* @__PURE__ */ k("label", {
|
|
294
399
|
className: "select-none text-xs text-fg-muted",
|
|
295
400
|
children: "Format"
|
|
296
|
-
}), /* @__PURE__ */
|
|
401
|
+
}), /* @__PURE__ */ k("select", {
|
|
297
402
|
value: c,
|
|
298
403
|
onChange: (e) => l(e.target.value),
|
|
299
404
|
className: "rounded border border-border bg-bg px-2 py-1.5 gds-text-body text-fg",
|
|
300
|
-
children: t.map((e) => /* @__PURE__ */
|
|
405
|
+
children: t.map((e) => /* @__PURE__ */ k("option", {
|
|
301
406
|
value: e,
|
|
302
407
|
children: e
|
|
303
408
|
}, e))
|
|
304
409
|
})]
|
|
305
410
|
}),
|
|
306
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ A("div", {
|
|
307
412
|
className: "flex gap-2",
|
|
308
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ A("div", {
|
|
309
414
|
className: "flex flex-1 flex-col gap-1",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ k("label", {
|
|
311
416
|
className: "select-none text-xs text-fg-muted",
|
|
312
417
|
children: "From"
|
|
313
|
-
}), /* @__PURE__ */
|
|
418
|
+
}), /* @__PURE__ */ k("input", {
|
|
314
419
|
type: "date",
|
|
315
420
|
value: u,
|
|
316
421
|
onChange: (e) => d(e.target.value),
|
|
317
422
|
className: "rounded border border-border bg-bg px-2 py-1.5 gds-text-body text-fg"
|
|
318
423
|
})]
|
|
319
|
-
}), /* @__PURE__ */
|
|
424
|
+
}), /* @__PURE__ */ A("div", {
|
|
320
425
|
className: "flex flex-1 flex-col gap-1",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
426
|
+
children: [/* @__PURE__ */ k("label", {
|
|
322
427
|
className: "select-none text-xs text-fg-muted",
|
|
323
428
|
children: "To"
|
|
324
|
-
}), /* @__PURE__ */
|
|
429
|
+
}), /* @__PURE__ */ k("input", {
|
|
325
430
|
type: "date",
|
|
326
431
|
value: f,
|
|
327
432
|
onChange: (e) => p(e.target.value),
|
|
@@ -329,7 +434,7 @@ var k = v(function({ header: n, sidebar: r, content: i, footer: a, sidebarPositi
|
|
|
329
434
|
})]
|
|
330
435
|
})]
|
|
331
436
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ k(n, {
|
|
333
438
|
type: "button",
|
|
334
439
|
onClick: m,
|
|
335
440
|
className: "mt-1",
|
|
@@ -338,207 +443,207 @@ var k = v(function({ header: n, sidebar: r, content: i, footer: a, sidebarPositi
|
|
|
338
443
|
]
|
|
339
444
|
})]
|
|
340
445
|
});
|
|
341
|
-
}),
|
|
342
|
-
return /* @__PURE__ */
|
|
446
|
+
}), L = x(function({ activeTab: t, children: n, className: r, onTabChange: i, statusBar: a, tabs: o, ...s }, c) {
|
|
447
|
+
return /* @__PURE__ */ A("div", {
|
|
343
448
|
className: e("flex h-full flex-col", r),
|
|
344
449
|
"data-component": "devops-layout",
|
|
345
450
|
ref: c,
|
|
346
451
|
...s,
|
|
347
452
|
children: [
|
|
348
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ k("div", {
|
|
349
454
|
className: "flex items-center gap-1 border-b border-border px-2",
|
|
350
|
-
children: o.map((n) => /* @__PURE__ */
|
|
455
|
+
children: o.map((n) => /* @__PURE__ */ k("button", {
|
|
351
456
|
className: e("px-3 py-2 gds-text-label font-medium transition-colors", n.id === t ? "border-b-2 border-accent text-accent" : "text-fg-muted hover:text-fg"),
|
|
352
457
|
onClick: () => i(n.id),
|
|
353
458
|
type: "button",
|
|
354
459
|
children: n.label
|
|
355
460
|
}, n.id))
|
|
356
461
|
}),
|
|
357
|
-
a !== void 0 && /* @__PURE__ */
|
|
462
|
+
a !== void 0 && /* @__PURE__ */ k("div", {
|
|
358
463
|
className: "border-b border-border px-3 py-2",
|
|
359
464
|
children: a
|
|
360
465
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ k("div", {
|
|
362
467
|
className: "flex-1 overflow-auto",
|
|
363
468
|
children: n
|
|
364
469
|
})
|
|
365
470
|
]
|
|
366
471
|
});
|
|
367
|
-
}),
|
|
368
|
-
return /* @__PURE__ */
|
|
472
|
+
}), R = x(function({ title: t, description: n, icon: r, action: i, className: a }, o) {
|
|
473
|
+
return /* @__PURE__ */ A("div", {
|
|
369
474
|
ref: o,
|
|
370
475
|
className: e("flex flex-col items-center justify-center py-12", a),
|
|
371
476
|
"data-component": "empty-state",
|
|
372
477
|
children: [
|
|
373
|
-
r !== void 0 && /* @__PURE__ */
|
|
478
|
+
r !== void 0 && /* @__PURE__ */ k("div", {
|
|
374
479
|
className: "mb-3 flex h-12 w-12 items-center justify-center text-fg-muted/20",
|
|
375
480
|
children: r
|
|
376
481
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
482
|
+
/* @__PURE__ */ k("p", {
|
|
378
483
|
className: "gds-text-body font-medium text-fg",
|
|
379
484
|
children: t
|
|
380
485
|
}),
|
|
381
|
-
n !== void 0 && /* @__PURE__ */
|
|
486
|
+
n !== void 0 && /* @__PURE__ */ k("p", {
|
|
382
487
|
className: "mt-1 gds-text-body text-fg-muted",
|
|
383
488
|
children: n
|
|
384
489
|
}),
|
|
385
|
-
i !== void 0 && /* @__PURE__ */
|
|
490
|
+
i !== void 0 && /* @__PURE__ */ k("div", {
|
|
386
491
|
className: "mt-4",
|
|
387
492
|
children: i
|
|
388
493
|
})
|
|
389
494
|
]
|
|
390
495
|
});
|
|
391
|
-
}),
|
|
392
|
-
return /* @__PURE__ */
|
|
496
|
+
}), z = x(function({ items: n, title: r = "FAQ", glass: i, className: a }, o) {
|
|
497
|
+
return /* @__PURE__ */ A("div", {
|
|
393
498
|
ref: o,
|
|
394
499
|
className: e("gds-ctx gds-radius-card border gds-pad-x-lg gds-pad-y-lg", i === !0 ? e(t(i), "border-white/10 bg-bg/60") : "border-border bg-surface", a),
|
|
395
500
|
"data-component": "faq",
|
|
396
|
-
children: [/* @__PURE__ */
|
|
501
|
+
children: [/* @__PURE__ */ k("h2", {
|
|
397
502
|
className: "gds-heading font-semibold text-fg mb-4",
|
|
398
503
|
children: r
|
|
399
|
-
}), /* @__PURE__ */
|
|
504
|
+
}), /* @__PURE__ */ k(m, {
|
|
400
505
|
type: "single",
|
|
401
|
-
children: n.map((e, t) => /* @__PURE__ */
|
|
506
|
+
children: n.map((e, t) => /* @__PURE__ */ k(p, {
|
|
402
507
|
id: `faq-${t}`,
|
|
403
508
|
title: e.question,
|
|
404
509
|
children: e.answer
|
|
405
510
|
}, t))
|
|
406
511
|
})]
|
|
407
512
|
});
|
|
408
|
-
}),
|
|
409
|
-
return /* @__PURE__ */
|
|
513
|
+
}), B = x(function({ icon: n, title: r, description: i, action: a, glass: o, className: s }, c) {
|
|
514
|
+
return /* @__PURE__ */ A("div", {
|
|
410
515
|
ref: c,
|
|
411
516
|
className: e("gds-ctx gds-radius-card border gds-pad-x-lg gds-pad-y-lg flex flex-col", o === !0 ? e(t(o), "border-white/10 bg-bg/60") : "border-border bg-surface", s),
|
|
412
517
|
"data-component": "feature-card",
|
|
413
518
|
children: [
|
|
414
|
-
n !== void 0 && /* @__PURE__ */
|
|
519
|
+
n !== void 0 && /* @__PURE__ */ k("div", {
|
|
415
520
|
className: "mb-3 text-accent",
|
|
416
521
|
children: n
|
|
417
522
|
}),
|
|
418
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ k("p", {
|
|
419
524
|
className: "font-semibold text-fg",
|
|
420
525
|
children: r
|
|
421
526
|
}),
|
|
422
|
-
i !== void 0 && /* @__PURE__ */
|
|
527
|
+
i !== void 0 && /* @__PURE__ */ k("p", {
|
|
423
528
|
className: "mt-1 gds-text-body text-fg-muted",
|
|
424
529
|
children: i
|
|
425
530
|
}),
|
|
426
|
-
a !== void 0 && /* @__PURE__ */
|
|
531
|
+
a !== void 0 && /* @__PURE__ */ k("div", {
|
|
427
532
|
className: "mt-auto pt-4",
|
|
428
533
|
children: a
|
|
429
534
|
})
|
|
430
535
|
]
|
|
431
536
|
});
|
|
432
|
-
}),
|
|
433
|
-
return /* @__PURE__ */
|
|
537
|
+
}), V = x(function({ columns: n, copyright: r, logo: i, glass: a, className: o }, s) {
|
|
538
|
+
return /* @__PURE__ */ A("footer", {
|
|
434
539
|
ref: s,
|
|
435
540
|
className: e("w-full py-10", a && t(!0), o),
|
|
436
541
|
"data-component": "footer",
|
|
437
|
-
children: [n !== void 0 && n.length > 0 && /* @__PURE__ */
|
|
542
|
+
children: [n !== void 0 && n.length > 0 && /* @__PURE__ */ k("div", {
|
|
438
543
|
className: "grid grid-cols-2 gap-8 sm:grid-cols-3 lg:grid-cols-4",
|
|
439
|
-
children: n.map((e) => /* @__PURE__ */
|
|
544
|
+
children: n.map((e) => /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h3", {
|
|
440
545
|
className: "text-sm font-semibold text-fg",
|
|
441
546
|
children: e.title
|
|
442
|
-
}), /* @__PURE__ */
|
|
547
|
+
}), /* @__PURE__ */ k("ul", {
|
|
443
548
|
className: "mt-3 space-y-2",
|
|
444
|
-
children: e.links.map((e) => /* @__PURE__ */
|
|
549
|
+
children: e.links.map((e) => /* @__PURE__ */ k("li", { children: /* @__PURE__ */ k("a", {
|
|
445
550
|
href: e.href,
|
|
446
551
|
className: "text-sm text-fg-muted hover:text-fg",
|
|
447
552
|
children: e.label
|
|
448
553
|
}) }, e.href))
|
|
449
554
|
})] }, e.title))
|
|
450
|
-
}), /* @__PURE__ */
|
|
555
|
+
}), /* @__PURE__ */ A("div", {
|
|
451
556
|
className: e("flex items-center gap-3 border-t border-border pt-6", n !== void 0 && n.length > 0 && "mt-8"),
|
|
452
|
-
children: [i !== void 0 && /* @__PURE__ */
|
|
557
|
+
children: [i !== void 0 && /* @__PURE__ */ k("div", { children: i }), r !== void 0 && /* @__PURE__ */ k("p", {
|
|
453
558
|
className: "text-xs text-fg-muted",
|
|
454
559
|
children: r
|
|
455
560
|
})]
|
|
456
561
|
})]
|
|
457
562
|
});
|
|
458
|
-
}),
|
|
563
|
+
}), H = x(function({ title: t, description: n, children: r, actions: i, className: a }, o) {
|
|
459
564
|
let s = t !== void 0 || n !== void 0;
|
|
460
|
-
return /* @__PURE__ */
|
|
565
|
+
return /* @__PURE__ */ A("div", {
|
|
461
566
|
ref: o,
|
|
462
567
|
className: e("flex flex-col", a),
|
|
463
568
|
"data-component": "form-layout",
|
|
464
569
|
children: [
|
|
465
|
-
s && /* @__PURE__ */
|
|
570
|
+
s && /* @__PURE__ */ A("div", {
|
|
466
571
|
className: "mb-4",
|
|
467
|
-
children: [t !== void 0 && /* @__PURE__ */
|
|
572
|
+
children: [t !== void 0 && /* @__PURE__ */ k("h2", {
|
|
468
573
|
className: "gds-text-body font-semibold text-fg",
|
|
469
574
|
children: t
|
|
470
|
-
}), n !== void 0 && /* @__PURE__ */
|
|
575
|
+
}), n !== void 0 && /* @__PURE__ */ k("p", {
|
|
471
576
|
className: "mt-0.5 gds-text-body text-fg-muted",
|
|
472
577
|
children: n
|
|
473
578
|
})]
|
|
474
579
|
}),
|
|
475
|
-
/* @__PURE__ */
|
|
580
|
+
/* @__PURE__ */ k("div", {
|
|
476
581
|
className: "flex flex-col gds-gap-lg",
|
|
477
582
|
children: r
|
|
478
583
|
}),
|
|
479
|
-
i !== void 0 && /* @__PURE__ */
|
|
584
|
+
i !== void 0 && /* @__PURE__ */ k("div", {
|
|
480
585
|
className: "mt-6 flex justify-end gds-gap-sm",
|
|
481
586
|
children: i
|
|
482
587
|
})
|
|
483
588
|
]
|
|
484
589
|
});
|
|
485
|
-
}),
|
|
486
|
-
return /* @__PURE__ */
|
|
590
|
+
}), U = x(function({ title: n, description: r, sections: a, actions: o, glass: s, className: c }, l) {
|
|
591
|
+
return /* @__PURE__ */ A("div", {
|
|
487
592
|
ref: l,
|
|
488
593
|
className: e("gds-ctx flex flex-col gds-pad gds-radius-card", t(s), c),
|
|
489
594
|
"data-component": "form-pattern",
|
|
490
595
|
children: [
|
|
491
|
-
(n !== void 0 || r !== void 0) && /* @__PURE__ */
|
|
596
|
+
(n !== void 0 || r !== void 0) && /* @__PURE__ */ A("div", {
|
|
492
597
|
className: "mb-4",
|
|
493
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
598
|
+
children: [n !== void 0 && /* @__PURE__ */ k("h2", {
|
|
494
599
|
className: "gds-heading font-semibold text-fg",
|
|
495
600
|
children: n
|
|
496
|
-
}), r !== void 0 && /* @__PURE__ */
|
|
601
|
+
}), r !== void 0 && /* @__PURE__ */ k("p", {
|
|
497
602
|
className: "mt-1 gds-text-body text-fg-muted",
|
|
498
603
|
children: r
|
|
499
604
|
})]
|
|
500
605
|
}),
|
|
501
|
-
a.map((e, t) => /* @__PURE__ */
|
|
606
|
+
a.map((e, t) => /* @__PURE__ */ A("div", { children: [t > 0 && /* @__PURE__ */ k(i, { className: "my-4" }), /* @__PURE__ */ A("div", {
|
|
502
607
|
className: "flex flex-col gds-gap",
|
|
503
|
-
children: [/* @__PURE__ */
|
|
608
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
504
609
|
className: "gds-text-body font-medium text-fg",
|
|
505
610
|
children: e.title
|
|
506
611
|
}), e.fields]
|
|
507
612
|
})] }, e.title)),
|
|
508
|
-
o !== void 0 && /* @__PURE__ */
|
|
613
|
+
o !== void 0 && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(i, { className: "my-4" }), /* @__PURE__ */ k("div", {
|
|
509
614
|
className: "flex justify-end gds-gap-sm",
|
|
510
615
|
children: o
|
|
511
616
|
})] })
|
|
512
617
|
]
|
|
513
618
|
});
|
|
514
|
-
}),
|
|
619
|
+
}), de = {
|
|
515
620
|
none: "",
|
|
516
621
|
sm: "gds-pad-x gds-pad-y",
|
|
517
622
|
default: "gds-pad-x-lg gds-pad-y-lg",
|
|
518
623
|
lg: "p-6"
|
|
519
|
-
},
|
|
624
|
+
}, fe = {
|
|
520
625
|
sm: "sm",
|
|
521
626
|
default: !0,
|
|
522
627
|
lg: "lg"
|
|
523
|
-
},
|
|
524
|
-
return /* @__PURE__ */
|
|
628
|
+
}, pe = x(function({ children: n, blur: r = "default", padding: i = "default", className: a }, o) {
|
|
629
|
+
return /* @__PURE__ */ k("div", {
|
|
525
630
|
ref: o,
|
|
526
|
-
className: e("gds-ctx gds-radius-card border border-white/10", t(
|
|
631
|
+
className: e("gds-ctx gds-radius-card border border-white/10", t(fe[r]), de[i], a),
|
|
527
632
|
"data-component": "glass-panel",
|
|
528
633
|
children: n
|
|
529
634
|
});
|
|
530
|
-
}),
|
|
635
|
+
}), me = {
|
|
531
636
|
sm: "gds-gap-sm",
|
|
532
637
|
default: "gds-gap",
|
|
533
638
|
lg: "gds-gap-lg"
|
|
534
|
-
},
|
|
639
|
+
}, he = (e) => ({
|
|
535
640
|
1: "grid-cols-1",
|
|
536
641
|
2: "grid-cols-2",
|
|
537
642
|
3: "grid-cols-3",
|
|
538
643
|
4: "grid-cols-4",
|
|
539
644
|
5: "grid-cols-5",
|
|
540
645
|
6: "grid-cols-6"
|
|
541
|
-
})[e] ?? `grid-cols-${e}`,
|
|
646
|
+
})[e] ?? `grid-cols-${e}`, W = (e, t) => ({
|
|
542
647
|
1: `${e}:grid-cols-1`,
|
|
543
648
|
2: `${e}:grid-cols-2`,
|
|
544
649
|
3: `${e}:grid-cols-3`,
|
|
@@ -546,108 +651,201 @@ var k = v(function({ header: n, sidebar: r, content: i, footer: a, sidebarPositi
|
|
|
546
651
|
5: `${e}:grid-cols-5`,
|
|
547
652
|
6: `${e}:grid-cols-6`
|
|
548
653
|
})[t] ?? `${e}:grid-cols-${t}`;
|
|
549
|
-
function
|
|
550
|
-
if (typeof e == "number") return
|
|
654
|
+
function ge(e) {
|
|
655
|
+
if (typeof e == "number") return he(e);
|
|
551
656
|
let t = [];
|
|
552
|
-
return e.sm !== void 0 && t.push(
|
|
657
|
+
return e.sm !== void 0 && t.push(W("sm", e.sm)), e.md !== void 0 && t.push(W("md", e.md)), e.lg !== void 0 && t.push(W("lg", e.lg)), e.xl !== void 0 && t.push(W("xl", e.xl)), t.length > 0 && t.unshift("grid-cols-1"), t.join(" ");
|
|
553
658
|
}
|
|
554
|
-
var
|
|
659
|
+
var _e = x(function({ children: t, columns: n = {
|
|
555
660
|
sm: 1,
|
|
556
661
|
md: 2,
|
|
557
662
|
lg: 3
|
|
558
663
|
}, gap: r = "default", className: i }, a) {
|
|
559
|
-
return /* @__PURE__ */
|
|
664
|
+
return /* @__PURE__ */ k("div", {
|
|
560
665
|
ref: a,
|
|
561
|
-
className: e("grid",
|
|
666
|
+
className: e("grid", ge(n), me[r], i),
|
|
562
667
|
"data-component": "grid-layout",
|
|
563
668
|
children: t
|
|
564
669
|
});
|
|
565
|
-
}),
|
|
670
|
+
}), ve = x(function({ title: n, subtitle: r, actions: i, media: a, align: o = "center", glass: s, className: c }, l) {
|
|
566
671
|
let u = o === "center";
|
|
567
|
-
return /* @__PURE__ */
|
|
672
|
+
return /* @__PURE__ */ A("section", {
|
|
568
673
|
ref: l,
|
|
569
674
|
className: e("w-full py-16", u ? "text-center" : "flex items-center gap-12", s && t(!0), c),
|
|
570
675
|
"data-component": "hero",
|
|
571
676
|
"data-variant": o,
|
|
572
|
-
children: [/* @__PURE__ */
|
|
677
|
+
children: [/* @__PURE__ */ A("div", {
|
|
573
678
|
className: e(u ? "mx-auto max-w-2xl" : "flex-1"),
|
|
574
679
|
children: [
|
|
575
|
-
/* @__PURE__ */
|
|
680
|
+
/* @__PURE__ */ k("h1", {
|
|
576
681
|
className: "text-4xl font-bold text-fg",
|
|
577
682
|
children: n
|
|
578
683
|
}),
|
|
579
|
-
r !== void 0 && /* @__PURE__ */
|
|
684
|
+
r !== void 0 && /* @__PURE__ */ k("p", {
|
|
580
685
|
className: "mt-3 text-lg text-fg-muted",
|
|
581
686
|
children: r
|
|
582
687
|
}),
|
|
583
|
-
i !== void 0 && /* @__PURE__ */
|
|
688
|
+
i !== void 0 && /* @__PURE__ */ k("div", {
|
|
584
689
|
className: "mt-6",
|
|
585
690
|
children: i
|
|
586
691
|
}),
|
|
587
|
-
u && a !== void 0 && /* @__PURE__ */
|
|
692
|
+
u && a !== void 0 && /* @__PURE__ */ k("div", {
|
|
588
693
|
className: "mt-8",
|
|
589
694
|
children: a
|
|
590
695
|
})
|
|
591
696
|
]
|
|
592
|
-
}), !u && a !== void 0 && /* @__PURE__ */
|
|
697
|
+
}), !u && a !== void 0 && /* @__PURE__ */ k("div", {
|
|
593
698
|
className: "flex-1",
|
|
594
699
|
children: a
|
|
595
700
|
})]
|
|
596
701
|
});
|
|
597
|
-
}),
|
|
598
|
-
return /* @__PURE__ */
|
|
702
|
+
}), ye = x(function({ className: t, departments: n, onboarding: r, stats: i, ...a }, o) {
|
|
703
|
+
return /* @__PURE__ */ A("div", {
|
|
599
704
|
className: e("gds-ctx flex flex-col gds-gap", t),
|
|
600
705
|
"data-component": "hr-dashboard",
|
|
601
706
|
ref: o,
|
|
602
707
|
...a,
|
|
603
|
-
children: [i !== void 0 && /* @__PURE__ */
|
|
708
|
+
children: [i !== void 0 && /* @__PURE__ */ k("div", {
|
|
604
709
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
605
710
|
children: i
|
|
606
|
-
}), /* @__PURE__ */
|
|
711
|
+
}), /* @__PURE__ */ A("div", {
|
|
607
712
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
608
|
-
children: [r !== void 0 && /* @__PURE__ */
|
|
713
|
+
children: [r !== void 0 && /* @__PURE__ */ k("div", {
|
|
609
714
|
className: "gds-radius-card border border-border bg-surface gds-pad",
|
|
610
715
|
children: r
|
|
611
|
-
}), n !== void 0 && /* @__PURE__ */
|
|
716
|
+
}), n !== void 0 && /* @__PURE__ */ k("div", {
|
|
612
717
|
className: "gds-radius-card border border-border bg-surface gds-pad",
|
|
613
718
|
children: n
|
|
614
719
|
})]
|
|
615
720
|
})]
|
|
616
721
|
});
|
|
617
|
-
}),
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
722
|
+
}), be = x(function({ sidebar: n, list: r, detail: i, listWidth: a = 360, listMinWidth: o = 280, listMaxWidth: s = 500, resizable: c = !0, mobileView: l = "list", onMobileViewChange: u, emptyState: d, batchActions: f, glass: p, className: m, ...h }, g) {
|
|
723
|
+
let _ = v(), [y, b] = D(a), x = E(!1), C = E({
|
|
724
|
+
x: 0,
|
|
725
|
+
width: 0
|
|
726
|
+
}), T = S((e) => {
|
|
727
|
+
e.preventDefault(), x.current = !0, C.current = {
|
|
728
|
+
x: e.clientX,
|
|
729
|
+
width: y
|
|
730
|
+
}, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
731
|
+
}, [y]);
|
|
732
|
+
w(() => {
|
|
733
|
+
let e = (e) => {
|
|
734
|
+
if (!x.current) return;
|
|
735
|
+
let t = e.clientX - C.current.x;
|
|
736
|
+
b(Math.max(o, Math.min(s, C.current.width + t)));
|
|
737
|
+
}, t = () => {
|
|
738
|
+
x.current && (x.current = !1, document.body.style.cursor = "", document.body.style.userSelect = "");
|
|
739
|
+
};
|
|
740
|
+
return document.addEventListener("mousemove", e), document.addEventListener("mouseup", t), () => {
|
|
741
|
+
document.removeEventListener("mousemove", e), document.removeEventListener("mouseup", t), x.current && (x.current = !1, document.body.style.cursor = "", document.body.style.userSelect = "");
|
|
742
|
+
};
|
|
743
|
+
}, [o, s]);
|
|
744
|
+
let O = S(() => {
|
|
745
|
+
b(a);
|
|
746
|
+
}, [a]), j = S(() => {
|
|
747
|
+
u !== void 0 && u("list");
|
|
748
|
+
}, [u]);
|
|
749
|
+
return _ ? /* @__PURE__ */ A("div", {
|
|
750
|
+
...h,
|
|
751
|
+
ref: g,
|
|
752
|
+
className: e("flex h-full flex-col overflow-hidden", m),
|
|
621
753
|
"data-component": "inbox-layout",
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
754
|
+
"data-state": l,
|
|
755
|
+
"data-mobile-view": l,
|
|
756
|
+
children: [l === "list" && /* @__PURE__ */ A("div", {
|
|
757
|
+
className: "flex-1 min-h-0 overflow-y-auto",
|
|
758
|
+
children: [r, f !== void 0 && /* @__PURE__ */ k("div", {
|
|
759
|
+
className: "sticky bottom-0 animate-slide-up",
|
|
760
|
+
children: f
|
|
761
|
+
})]
|
|
762
|
+
}), l === "detail" && /* @__PURE__ */ A("div", {
|
|
763
|
+
className: "flex-1 min-h-0 flex flex-col overflow-hidden",
|
|
764
|
+
children: [/* @__PURE__ */ A("button", {
|
|
765
|
+
type: "button",
|
|
766
|
+
className: "flex items-center gap-1.5 px-3 py-2 text-sm text-accent hover:bg-white/[0.04] border-b border-border",
|
|
767
|
+
onClick: j,
|
|
768
|
+
"aria-label": "Back to message list",
|
|
769
|
+
children: [/* @__PURE__ */ k("svg", {
|
|
770
|
+
width: "14",
|
|
771
|
+
height: "14",
|
|
772
|
+
fill: "none",
|
|
773
|
+
stroke: "currentColor",
|
|
774
|
+
strokeWidth: "2",
|
|
775
|
+
viewBox: "0 0 24 24",
|
|
776
|
+
strokeLinecap: "round",
|
|
777
|
+
strokeLinejoin: "round",
|
|
778
|
+
children: /* @__PURE__ */ k("polyline", { points: "15 18 9 12 15 6" })
|
|
779
|
+
}), "Back"]
|
|
780
|
+
}), /* @__PURE__ */ k("div", {
|
|
781
|
+
className: "flex-1 min-h-0 overflow-y-auto",
|
|
782
|
+
children: i ?? d ?? null
|
|
783
|
+
})]
|
|
629
784
|
})]
|
|
785
|
+
}) : /* @__PURE__ */ A("div", {
|
|
786
|
+
...h,
|
|
787
|
+
ref: g,
|
|
788
|
+
className: e("flex h-full overflow-hidden", t(p), m),
|
|
789
|
+
"data-component": "inbox-layout",
|
|
790
|
+
"data-state": i === void 0 ? "list" : "detail",
|
|
791
|
+
children: [
|
|
792
|
+
n !== void 0 && /* @__PURE__ */ k("div", {
|
|
793
|
+
className: "shrink-0",
|
|
794
|
+
children: n
|
|
795
|
+
}),
|
|
796
|
+
/* @__PURE__ */ A("div", {
|
|
797
|
+
className: "shrink-0 flex flex-col overflow-hidden border-r border-border",
|
|
798
|
+
style: { width: y },
|
|
799
|
+
children: [/* @__PURE__ */ k("div", {
|
|
800
|
+
className: "flex-1 min-h-0 overflow-y-auto",
|
|
801
|
+
children: r
|
|
802
|
+
}), f !== void 0 && /* @__PURE__ */ k("div", {
|
|
803
|
+
className: "shrink-0 border-t border-border animate-slide-up",
|
|
804
|
+
children: f
|
|
805
|
+
})]
|
|
806
|
+
}),
|
|
807
|
+
c && /* @__PURE__ */ k("div", {
|
|
808
|
+
className: "shrink-0 w-1 cursor-col-resize bg-transparent hover:bg-accent/20 active:bg-accent/30 transition-colors focus:bg-accent/20 focus:outline-none",
|
|
809
|
+
onMouseDown: T,
|
|
810
|
+
onDoubleClick: O,
|
|
811
|
+
onKeyDown: (e) => {
|
|
812
|
+
let t = e.shiftKey ? 50 : 10;
|
|
813
|
+
e.key === "ArrowLeft" ? (e.preventDefault(), b((e) => Math.max(o, e - t))) : e.key === "ArrowRight" ? (e.preventDefault(), b((e) => Math.min(s, e + t))) : e.key === "Home" ? (e.preventDefault(), b(o)) : e.key === "End" && (e.preventDefault(), b(s));
|
|
814
|
+
},
|
|
815
|
+
role: "separator",
|
|
816
|
+
"aria-orientation": "vertical",
|
|
817
|
+
"aria-label": "Resize list pane",
|
|
818
|
+
"aria-valuenow": y,
|
|
819
|
+
"aria-valuemin": o,
|
|
820
|
+
"aria-valuemax": s,
|
|
821
|
+
tabIndex: 0
|
|
822
|
+
}),
|
|
823
|
+
/* @__PURE__ */ k("div", {
|
|
824
|
+
className: "min-w-0 flex-1 overflow-y-auto",
|
|
825
|
+
children: i ?? d ?? null
|
|
826
|
+
})
|
|
827
|
+
]
|
|
630
828
|
});
|
|
631
|
-
}),
|
|
829
|
+
}), G = x(function({ title: n, value: r, change: i, changeLabel: a, icon: o, glass: s, className: c }, l) {
|
|
632
830
|
let u = i !== void 0 && i >= 0;
|
|
633
|
-
return /* @__PURE__ */
|
|
831
|
+
return /* @__PURE__ */ A("div", {
|
|
634
832
|
ref: l,
|
|
635
833
|
className: e("relative gds-radius-card border gds-pad-x-lg gds-pad-y-lg", s === !0 ? e(t(s), "border-white/10 bg-bg/60") : "border-border bg-surface", c),
|
|
636
834
|
"data-component": "metric-card",
|
|
637
835
|
children: [
|
|
638
|
-
o !== void 0 && /* @__PURE__ */
|
|
836
|
+
o !== void 0 && /* @__PURE__ */ k("div", {
|
|
639
837
|
className: "absolute right-4 top-4 text-fg-muted/40",
|
|
640
838
|
children: o
|
|
641
839
|
}),
|
|
642
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ k("p", {
|
|
643
841
|
className: "gds-text-body text-fg-muted",
|
|
644
842
|
children: n
|
|
645
843
|
}),
|
|
646
|
-
/* @__PURE__ */
|
|
844
|
+
/* @__PURE__ */ k("p", {
|
|
647
845
|
className: "mt-1 text-2xl font-bold text-fg",
|
|
648
846
|
children: r
|
|
649
847
|
}),
|
|
650
|
-
i !== void 0 && /* @__PURE__ */
|
|
848
|
+
i !== void 0 && /* @__PURE__ */ A("p", {
|
|
651
849
|
className: e("mt-1 gds-text-body", u ? "text-success" : "text-danger"),
|
|
652
850
|
children: [
|
|
653
851
|
u ? "+" : "",
|
|
@@ -658,30 +856,30 @@ var ce = v(function({ children: t, columns: n = {
|
|
|
658
856
|
})
|
|
659
857
|
]
|
|
660
858
|
});
|
|
661
|
-
}),
|
|
662
|
-
return /* @__PURE__ */
|
|
859
|
+
}), xe = x(function({ title: n, metrics: r, chart: i, table: a, glass: o, className: s }, c) {
|
|
860
|
+
return /* @__PURE__ */ A("div", {
|
|
663
861
|
ref: c,
|
|
664
862
|
className: e("gds-ctx flex flex-col gds-gap", s),
|
|
665
863
|
"data-component": "kpi-dashboard",
|
|
666
864
|
children: [
|
|
667
|
-
n !== void 0 && /* @__PURE__ */
|
|
865
|
+
n !== void 0 && /* @__PURE__ */ k("h2", {
|
|
668
866
|
className: "gds-heading font-semibold text-fg",
|
|
669
867
|
children: n
|
|
670
868
|
}),
|
|
671
|
-
r !== void 0 && r.length > 0 && /* @__PURE__ */
|
|
869
|
+
r !== void 0 && r.length > 0 && /* @__PURE__ */ k("div", {
|
|
672
870
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",
|
|
673
|
-
children: r.map((e) => /* @__PURE__ */
|
|
871
|
+
children: r.map((e) => /* @__PURE__ */ k(G, {
|
|
674
872
|
change: e.change,
|
|
675
873
|
glass: o,
|
|
676
874
|
title: e.title,
|
|
677
875
|
value: e.value
|
|
678
876
|
}, e.title))
|
|
679
877
|
}),
|
|
680
|
-
i !== void 0 && /* @__PURE__ */
|
|
878
|
+
i !== void 0 && /* @__PURE__ */ k("div", {
|
|
681
879
|
className: e("gds-radius-card border gds-pad", o === !0 ? e(t(o), "border-white/10 bg-bg/60") : "border-border bg-surface"),
|
|
682
880
|
children: i
|
|
683
881
|
}),
|
|
684
|
-
a !== void 0 && /* @__PURE__ */
|
|
882
|
+
a !== void 0 && /* @__PURE__ */ k("div", {
|
|
685
883
|
className: e("gds-radius-card border gds-pad", o === !0 ? e(t(o), "border-white/10 bg-bg/60") : "border-border bg-surface"),
|
|
686
884
|
children: a
|
|
687
885
|
})
|
|
@@ -690,61 +888,61 @@ var ce = v(function({ children: t, columns: n = {
|
|
|
690
888
|
});
|
|
691
889
|
//#endregion
|
|
692
890
|
//#region src/l7-patterns/loading-states.tsx
|
|
693
|
-
function
|
|
694
|
-
return /* @__PURE__ */
|
|
891
|
+
function Se({ message: n, glass: r, className: i }) {
|
|
892
|
+
return /* @__PURE__ */ A("div", {
|
|
695
893
|
className: e("flex min-h-[200px] flex-col items-center justify-center gap-3", t(r), i),
|
|
696
|
-
children: [/* @__PURE__ */
|
|
894
|
+
children: [/* @__PURE__ */ k(s, { size: "lg" }), n !== void 0 && /* @__PURE__ */ k("p", {
|
|
697
895
|
className: "gds-text-body text-fg-muted",
|
|
698
896
|
children: n
|
|
699
897
|
})]
|
|
700
898
|
});
|
|
701
899
|
}
|
|
702
|
-
function
|
|
703
|
-
return /* @__PURE__ */
|
|
900
|
+
function Ce({ message: t, className: n }) {
|
|
901
|
+
return /* @__PURE__ */ A("div", {
|
|
704
902
|
className: e("inline-flex items-center gap-2", n),
|
|
705
|
-
children: [/* @__PURE__ */
|
|
903
|
+
children: [/* @__PURE__ */ k(s, { size: "sm" }), t !== void 0 && /* @__PURE__ */ k("span", {
|
|
706
904
|
className: "gds-text-body text-fg-muted",
|
|
707
905
|
children: t
|
|
708
906
|
})]
|
|
709
907
|
});
|
|
710
908
|
}
|
|
711
|
-
function
|
|
712
|
-
return /* @__PURE__ */
|
|
909
|
+
function we({ message: e, className: t }) {
|
|
910
|
+
return /* @__PURE__ */ k("div", {
|
|
713
911
|
className: t,
|
|
714
|
-
children: /* @__PURE__ */
|
|
912
|
+
children: /* @__PURE__ */ k(n, {
|
|
715
913
|
loading: !0,
|
|
716
914
|
disabled: !0,
|
|
717
915
|
children: e ?? "Loading..."
|
|
718
916
|
})
|
|
719
917
|
});
|
|
720
918
|
}
|
|
721
|
-
function
|
|
722
|
-
return /* @__PURE__ */
|
|
919
|
+
function Te({ message: n, glass: r, className: i }) {
|
|
920
|
+
return /* @__PURE__ */ A("div", {
|
|
723
921
|
className: e("absolute inset-0 flex flex-col items-center justify-center gap-3", r === !0 ? t(r) : "bg-bg/80", i),
|
|
724
|
-
children: [/* @__PURE__ */
|
|
922
|
+
children: [/* @__PURE__ */ k(s, { size: "lg" }), n !== void 0 && /* @__PURE__ */ k("p", {
|
|
725
923
|
className: "gds-text-body text-fg-muted",
|
|
726
924
|
children: n
|
|
727
925
|
})]
|
|
728
926
|
});
|
|
729
927
|
}
|
|
730
|
-
var
|
|
731
|
-
page:
|
|
732
|
-
inline:
|
|
733
|
-
button:
|
|
734
|
-
overlay:
|
|
735
|
-
},
|
|
736
|
-
return /* @__PURE__ */
|
|
928
|
+
var Ee = {
|
|
929
|
+
page: Se,
|
|
930
|
+
inline: Ce,
|
|
931
|
+
button: we,
|
|
932
|
+
overlay: Te
|
|
933
|
+
}, De = x(function({ variant: e, message: t, glass: n, className: r }, i) {
|
|
934
|
+
return /* @__PURE__ */ k("div", {
|
|
737
935
|
ref: i,
|
|
738
936
|
"data-component": "loading-states",
|
|
739
937
|
"data-variant": e,
|
|
740
|
-
children:
|
|
938
|
+
children: Ee[e]({
|
|
741
939
|
message: t,
|
|
742
940
|
glass: n,
|
|
743
941
|
className: r
|
|
744
942
|
})
|
|
745
943
|
});
|
|
746
|
-
}),
|
|
747
|
-
let [m, h] =
|
|
944
|
+
}), Oe = x(function({ onSubmit: r, title: i = "Sign in", error: s, loading: c = !1, glass: l = !1, className: u, ...f }, p) {
|
|
945
|
+
let [m, h] = D(""), [g, _] = D(""), [v, y] = D(!1);
|
|
748
946
|
function b(e) {
|
|
749
947
|
e.preventDefault(), r({
|
|
750
948
|
email: m,
|
|
@@ -752,24 +950,24 @@ var _e = {
|
|
|
752
950
|
remember: v
|
|
753
951
|
});
|
|
754
952
|
}
|
|
755
|
-
return /* @__PURE__ */
|
|
953
|
+
return /* @__PURE__ */ A("form", {
|
|
756
954
|
ref: p,
|
|
757
955
|
className: e("flex w-full max-w-sm flex-col gap-4 rounded-lg border border-border p-6", t(l), !l && "bg-bg", u),
|
|
758
956
|
"data-component": "login-form",
|
|
759
957
|
onSubmit: b,
|
|
760
958
|
...f,
|
|
761
959
|
children: [
|
|
762
|
-
/* @__PURE__ */
|
|
960
|
+
/* @__PURE__ */ k("h2", {
|
|
763
961
|
className: "text-center font-semibold text-fg gds-heading",
|
|
764
962
|
children: i
|
|
765
963
|
}),
|
|
766
|
-
s !== void 0 && /* @__PURE__ */
|
|
964
|
+
s !== void 0 && /* @__PURE__ */ k("div", {
|
|
767
965
|
className: "rounded-md bg-danger/10 px-3 py-2 text-xs text-danger",
|
|
768
966
|
children: s
|
|
769
967
|
}),
|
|
770
|
-
/* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ A("div", {
|
|
771
969
|
className: "flex flex-col gap-1",
|
|
772
|
-
children: [/* @__PURE__ */
|
|
970
|
+
children: [/* @__PURE__ */ k(o, { children: "Email" }), /* @__PURE__ */ k(a, {
|
|
773
971
|
type: "email",
|
|
774
972
|
value: m,
|
|
775
973
|
onChange: (e) => h(e.target.value),
|
|
@@ -777,9 +975,9 @@ var _e = {
|
|
|
777
975
|
required: !0
|
|
778
976
|
})]
|
|
779
977
|
}),
|
|
780
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ A("div", {
|
|
781
979
|
className: "flex flex-col gap-1",
|
|
782
|
-
children: [/* @__PURE__ */
|
|
980
|
+
children: [/* @__PURE__ */ k(o, { children: "Password" }), /* @__PURE__ */ k(a, {
|
|
783
981
|
type: "password",
|
|
784
982
|
value: g,
|
|
785
983
|
onChange: (e) => _(e.target.value),
|
|
@@ -787,12 +985,12 @@ var _e = {
|
|
|
787
985
|
required: !0
|
|
788
986
|
})]
|
|
789
987
|
}),
|
|
790
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ k(d, {
|
|
791
989
|
checked: v,
|
|
792
990
|
onChange: y,
|
|
793
991
|
label: "Remember me"
|
|
794
992
|
}),
|
|
795
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ k(n, {
|
|
796
994
|
type: "submit",
|
|
797
995
|
disabled: c,
|
|
798
996
|
className: "w-full",
|
|
@@ -800,42 +998,42 @@ var _e = {
|
|
|
800
998
|
})
|
|
801
999
|
]
|
|
802
1000
|
});
|
|
803
|
-
}),
|
|
804
|
-
let a =
|
|
1001
|
+
}), ke = x(function({ onSend: t, defaultTo: n, className: r }, i) {
|
|
1002
|
+
let a = E(null), o = E(null), s = E(null), c = S((e) => {
|
|
805
1003
|
e.preventDefault(), t({
|
|
806
1004
|
to: a.current?.value ?? "",
|
|
807
1005
|
subject: o.current?.value ?? "",
|
|
808
1006
|
body: s.current?.value ?? ""
|
|
809
1007
|
});
|
|
810
1008
|
}, [t]), l = "w-full rounded-md border border-border bg-transparent px-3 py-2 gds-text-body text-fg placeholder:text-fg-muted/40 focus:border-accent focus:outline-none";
|
|
811
|
-
return /* @__PURE__ */
|
|
1009
|
+
return /* @__PURE__ */ A("form", {
|
|
812
1010
|
ref: i,
|
|
813
1011
|
className: e("flex flex-col gap-3", r),
|
|
814
1012
|
"data-component": "mail-composer",
|
|
815
1013
|
onSubmit: c,
|
|
816
1014
|
children: [
|
|
817
|
-
/* @__PURE__ */
|
|
1015
|
+
/* @__PURE__ */ k("input", {
|
|
818
1016
|
ref: a,
|
|
819
1017
|
type: "email",
|
|
820
1018
|
placeholder: "To",
|
|
821
1019
|
defaultValue: n ?? "",
|
|
822
1020
|
className: l
|
|
823
1021
|
}),
|
|
824
|
-
/* @__PURE__ */
|
|
1022
|
+
/* @__PURE__ */ k("input", {
|
|
825
1023
|
ref: o,
|
|
826
1024
|
type: "text",
|
|
827
1025
|
placeholder: "Subject",
|
|
828
1026
|
className: l
|
|
829
1027
|
}),
|
|
830
|
-
/* @__PURE__ */
|
|
1028
|
+
/* @__PURE__ */ k("textarea", {
|
|
831
1029
|
ref: s,
|
|
832
1030
|
placeholder: "Body",
|
|
833
1031
|
rows: 6,
|
|
834
1032
|
className: e(l, "resize-none")
|
|
835
1033
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
1034
|
+
/* @__PURE__ */ k("div", {
|
|
837
1035
|
className: "flex justify-end",
|
|
838
|
-
children: /* @__PURE__ */
|
|
1036
|
+
children: /* @__PURE__ */ k("button", {
|
|
839
1037
|
type: "submit",
|
|
840
1038
|
className: "rounded-md bg-accent px-4 py-2 gds-text-body font-medium text-accent-fg hover:bg-accent/90 transition-colors",
|
|
841
1039
|
children: "Send"
|
|
@@ -843,7 +1041,7 @@ var _e = {
|
|
|
843
1041
|
})
|
|
844
1042
|
]
|
|
845
1043
|
});
|
|
846
|
-
}),
|
|
1044
|
+
}), Ae = x(function({ children: t, columns: n = 3, gap: r = 16, className: i }, a) {
|
|
847
1045
|
let o = {
|
|
848
1046
|
columnCount: n,
|
|
849
1047
|
columnGap: `${r}px`
|
|
@@ -851,119 +1049,119 @@ var _e = {
|
|
|
851
1049
|
breakInside: "avoid",
|
|
852
1050
|
marginBottom: `${r}px`
|
|
853
1051
|
};
|
|
854
|
-
return /* @__PURE__ */
|
|
1052
|
+
return /* @__PURE__ */ k("div", {
|
|
855
1053
|
ref: a,
|
|
856
1054
|
className: e(i),
|
|
857
1055
|
style: o,
|
|
858
1056
|
"data-component": "masonry",
|
|
859
|
-
children:
|
|
1057
|
+
children: y.map(t, (e) => e == null ? null : /* @__PURE__ */ k("div", {
|
|
860
1058
|
style: s,
|
|
861
1059
|
children: e
|
|
862
1060
|
}))
|
|
863
1061
|
});
|
|
864
|
-
}),
|
|
1062
|
+
}), je = {
|
|
865
1063
|
default: "gds-gap",
|
|
866
1064
|
lg: "gds-gap-lg",
|
|
867
1065
|
sm: "gds-gap-sm"
|
|
868
1066
|
};
|
|
869
|
-
function
|
|
1067
|
+
function Me(e) {
|
|
870
1068
|
if (typeof e == "number") return `grid-cols-${e}`;
|
|
871
1069
|
let t = ["grid-cols-1"];
|
|
872
1070
|
return e.sm !== void 0 && t.push(`sm:grid-cols-${e.sm}`), e.md !== void 0 && t.push(`md:grid-cols-${e.md}`), e.lg !== void 0 && t.push(`lg:grid-cols-${e.lg}`), t.join(" ");
|
|
873
1071
|
}
|
|
874
|
-
var
|
|
1072
|
+
var Ne = x(function({ aspectRatio: t = 1, children: n, className: i, columns: a = {
|
|
875
1073
|
sm: 2,
|
|
876
1074
|
md: 3,
|
|
877
1075
|
lg: 4
|
|
878
1076
|
}, gap: o = "default" }, s) {
|
|
879
|
-
return /* @__PURE__ */
|
|
1077
|
+
return /* @__PURE__ */ k("div", {
|
|
880
1078
|
ref: s,
|
|
881
|
-
className: e("grid",
|
|
1079
|
+
className: e("grid", Me(a), je[o], i),
|
|
882
1080
|
"data-component": "media-grid",
|
|
883
|
-
children:
|
|
1081
|
+
children: y.map(n, (e) => /* @__PURE__ */ k(r, {
|
|
884
1082
|
ratio: t,
|
|
885
1083
|
className: "overflow-hidden rounded-lg",
|
|
886
1084
|
children: e
|
|
887
1085
|
}))
|
|
888
1086
|
});
|
|
889
|
-
}),
|
|
890
|
-
return /* @__PURE__ */
|
|
1087
|
+
}), Pe = x(function({ title: n, children: r, glass: i, className: a }, o) {
|
|
1088
|
+
return /* @__PURE__ */ A("div", {
|
|
891
1089
|
ref: o,
|
|
892
1090
|
className: e("gds-ctx gds-radius-card border", i === !0 ? e(t(i), "border-white/10 bg-bg/60") : "border-border bg-surface", "gds-pad-x-lg gds-pad-y-lg", a),
|
|
893
1091
|
"data-component": "mini-dashboard",
|
|
894
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
1092
|
+
children: [n !== void 0 && /* @__PURE__ */ k("h2", {
|
|
895
1093
|
className: "mb-3 gds-text-body font-semibold text-fg",
|
|
896
1094
|
children: n
|
|
897
1095
|
}), r]
|
|
898
1096
|
});
|
|
899
|
-
}),
|
|
900
|
-
return /* @__PURE__ */
|
|
1097
|
+
}), Fe = x(function({ children: t, columns: n, className: r }, i) {
|
|
1098
|
+
return /* @__PURE__ */ k("div", {
|
|
901
1099
|
ref: i,
|
|
902
1100
|
className: e("grid gds-gap", n === void 0 ? "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4" : `grid-cols-${n}`, r),
|
|
903
1101
|
"data-component": "monitor-grid",
|
|
904
1102
|
children: t
|
|
905
1103
|
});
|
|
906
|
-
}),
|
|
907
|
-
return /* @__PURE__ */
|
|
1104
|
+
}), Ie = x(function({ logo: n, links: r, actions: i, sticky: a = !0, glass: o = !0, className: s }, c) {
|
|
1105
|
+
return /* @__PURE__ */ A("nav", {
|
|
908
1106
|
ref: c,
|
|
909
1107
|
className: e("flex w-full items-center justify-between px-6 py-3", a && "sticky top-0 z-40", o && t(!0), s),
|
|
910
1108
|
"data-component": "nav-bar",
|
|
911
1109
|
children: [
|
|
912
|
-
n !== void 0 && /* @__PURE__ */
|
|
1110
|
+
n !== void 0 && /* @__PURE__ */ k("div", {
|
|
913
1111
|
className: "flex-shrink-0",
|
|
914
1112
|
children: n
|
|
915
1113
|
}),
|
|
916
|
-
r !== void 0 && r.length > 0 && /* @__PURE__ */
|
|
1114
|
+
r !== void 0 && r.length > 0 && /* @__PURE__ */ k("div", {
|
|
917
1115
|
className: "flex items-center gap-6",
|
|
918
|
-
children: r.map((t) => /* @__PURE__ */
|
|
1116
|
+
children: r.map((t) => /* @__PURE__ */ k("a", {
|
|
919
1117
|
href: t.href,
|
|
920
1118
|
className: e("text-sm transition-colors", t.active ? "text-accent font-medium" : "text-fg-muted hover:text-fg"),
|
|
921
1119
|
children: t.label
|
|
922
1120
|
}, t.href))
|
|
923
1121
|
}),
|
|
924
|
-
i !== void 0 && /* @__PURE__ */
|
|
1122
|
+
i !== void 0 && /* @__PURE__ */ k("div", {
|
|
925
1123
|
className: "flex items-center gap-3",
|
|
926
1124
|
children: i
|
|
927
1125
|
})
|
|
928
1126
|
]
|
|
929
1127
|
});
|
|
930
|
-
}),
|
|
931
|
-
return /* @__PURE__ */
|
|
1128
|
+
}), Le = x(function({ className: t, notifications: n, onRead: r, onReadAll: i, ...a }, o) {
|
|
1129
|
+
return /* @__PURE__ */ A("div", {
|
|
932
1130
|
className: e("gds-ctx gds-radius-card border border-border bg-surface", t),
|
|
933
1131
|
"data-component": "notification-list",
|
|
934
1132
|
ref: o,
|
|
935
1133
|
...a,
|
|
936
|
-
children: [/* @__PURE__ */
|
|
1134
|
+
children: [/* @__PURE__ */ A("div", {
|
|
937
1135
|
className: "flex items-center justify-between border-b border-border px-4 py-2.5",
|
|
938
|
-
children: [/* @__PURE__ */
|
|
1136
|
+
children: [/* @__PURE__ */ k("span", {
|
|
939
1137
|
className: "text-sm font-semibold text-fg",
|
|
940
1138
|
children: "Notifications"
|
|
941
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
1139
|
+
}), i !== void 0 && /* @__PURE__ */ k("button", {
|
|
942
1140
|
className: "text-xs text-accent hover:underline",
|
|
943
1141
|
onClick: i,
|
|
944
1142
|
type: "button",
|
|
945
1143
|
children: "Mark all read"
|
|
946
1144
|
})]
|
|
947
|
-
}), n.length === 0 ? /* @__PURE__ */
|
|
1145
|
+
}), n.length === 0 ? /* @__PURE__ */ k("div", {
|
|
948
1146
|
className: "px-4 py-6 text-center text-xs text-fg-muted",
|
|
949
1147
|
children: "No notifications"
|
|
950
|
-
}) : /* @__PURE__ */
|
|
1148
|
+
}) : /* @__PURE__ */ k("div", {
|
|
951
1149
|
className: "divide-y divide-border",
|
|
952
|
-
children: n.map((t) => /* @__PURE__ */
|
|
1150
|
+
children: n.map((t) => /* @__PURE__ */ k("div", {
|
|
953
1151
|
className: e("flex gap-3 px-4 py-2.5", t.read !== !0 && "border-l-2 border-l-accent", r !== void 0 && "cursor-pointer hover:bg-bg-tertiary"),
|
|
954
1152
|
onClick: r === void 0 ? void 0 : () => r(t.id),
|
|
955
|
-
children: /* @__PURE__ */
|
|
1153
|
+
children: /* @__PURE__ */ A("div", {
|
|
956
1154
|
className: "min-w-0 flex-1",
|
|
957
1155
|
children: [
|
|
958
|
-
/* @__PURE__ */
|
|
1156
|
+
/* @__PURE__ */ k("div", {
|
|
959
1157
|
className: "text-xs font-medium text-fg",
|
|
960
1158
|
children: t.title
|
|
961
1159
|
}),
|
|
962
|
-
t.message !== void 0 && /* @__PURE__ */
|
|
1160
|
+
t.message !== void 0 && /* @__PURE__ */ k("div", {
|
|
963
1161
|
className: "mt-0.5 text-xs text-fg-muted",
|
|
964
1162
|
children: t.message
|
|
965
1163
|
}),
|
|
966
|
-
/* @__PURE__ */
|
|
1164
|
+
/* @__PURE__ */ k("div", {
|
|
967
1165
|
className: "mt-1 text-[10px] text-fg-muted",
|
|
968
1166
|
children: t.timestamp
|
|
969
1167
|
})
|
|
@@ -972,20 +1170,20 @@ var we = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
972
1170
|
}, t.id))
|
|
973
1171
|
})]
|
|
974
1172
|
});
|
|
975
|
-
}),
|
|
1173
|
+
}), Re = x(function({ className: t, steps: n, title: r = "Getting Started", ...i }, a) {
|
|
976
1174
|
let o = n.filter((e) => e.completed).length, s = n.length > 0 ? Math.round(o / n.length * 100) : 0;
|
|
977
|
-
return /* @__PURE__ */
|
|
1175
|
+
return /* @__PURE__ */ A("div", {
|
|
978
1176
|
className: e("gds-ctx rounded-lg border border-border bg-surface gds-pad", t),
|
|
979
1177
|
"data-component": "onboarding-card",
|
|
980
1178
|
ref: a,
|
|
981
1179
|
...i,
|
|
982
1180
|
children: [
|
|
983
|
-
/* @__PURE__ */
|
|
1181
|
+
/* @__PURE__ */ A("div", {
|
|
984
1182
|
className: "mb-3 flex items-center justify-between",
|
|
985
|
-
children: [/* @__PURE__ */
|
|
1183
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
986
1184
|
className: "gds-heading font-semibold text-fg",
|
|
987
1185
|
children: r
|
|
988
|
-
}), /* @__PURE__ */
|
|
1186
|
+
}), /* @__PURE__ */ A("span", {
|
|
989
1187
|
className: "gds-text-label text-fg-muted",
|
|
990
1188
|
children: [
|
|
991
1189
|
o,
|
|
@@ -994,23 +1192,23 @@ var we = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
994
1192
|
]
|
|
995
1193
|
})]
|
|
996
1194
|
}),
|
|
997
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ k("div", {
|
|
998
1196
|
className: "mb-4 h-1.5 w-full overflow-hidden rounded-full bg-border",
|
|
999
|
-
children: /* @__PURE__ */
|
|
1197
|
+
children: /* @__PURE__ */ k("div", {
|
|
1000
1198
|
className: "h-full rounded-full bg-accent transition-all",
|
|
1001
1199
|
style: { width: `${s}%` }
|
|
1002
1200
|
})
|
|
1003
1201
|
}),
|
|
1004
|
-
/* @__PURE__ */
|
|
1202
|
+
/* @__PURE__ */ k("ul", {
|
|
1005
1203
|
className: "flex flex-col gds-gap",
|
|
1006
|
-
children: n.map((t, n) => /* @__PURE__ */
|
|
1204
|
+
children: n.map((t, n) => /* @__PURE__ */ A("li", {
|
|
1007
1205
|
className: "flex items-center justify-between gds-gap",
|
|
1008
|
-
children: [/* @__PURE__ */
|
|
1206
|
+
children: [/* @__PURE__ */ A("div", {
|
|
1009
1207
|
className: "flex items-center gds-gap-sm",
|
|
1010
|
-
children: [/* @__PURE__ */
|
|
1208
|
+
children: [/* @__PURE__ */ k("span", {
|
|
1011
1209
|
className: e("flex h-5 w-5 shrink-0 items-center justify-center rounded-full text-xs", t.completed ? "bg-success text-white" : "border border-border text-fg-muted"),
|
|
1012
1210
|
children: t.completed ? "✓" : n + 1
|
|
1013
|
-
}), /* @__PURE__ */
|
|
1211
|
+
}), /* @__PURE__ */ k("span", {
|
|
1014
1212
|
className: e("text-sm", t.completed ? "text-fg-muted line-through" : "text-fg"),
|
|
1015
1213
|
children: t.label
|
|
1016
1214
|
})]
|
|
@@ -1019,7 +1217,7 @@ var we = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
1019
1217
|
})
|
|
1020
1218
|
]
|
|
1021
1219
|
});
|
|
1022
|
-
}),
|
|
1220
|
+
}), ze = /* @__PURE__ */ k("svg", {
|
|
1023
1221
|
width: "12",
|
|
1024
1222
|
height: "12",
|
|
1025
1223
|
viewBox: "0 0 12 12",
|
|
@@ -1027,96 +1225,115 @@ var we = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
1027
1225
|
stroke: "currentColor",
|
|
1028
1226
|
strokeWidth: "1.5",
|
|
1029
1227
|
strokeLinecap: "round",
|
|
1030
|
-
children: /* @__PURE__ */
|
|
1031
|
-
}),
|
|
1032
|
-
return /* @__PURE__ */
|
|
1228
|
+
children: /* @__PURE__ */ k("path", { d: "M4.5 3l3 3-3 3" })
|
|
1229
|
+
}), Be = x(function({ actions: t, breadcrumb: n, className: r, subtitle: i, title: a }, o) {
|
|
1230
|
+
return /* @__PURE__ */ A("div", {
|
|
1033
1231
|
ref: o,
|
|
1034
1232
|
className: e("flex flex-col gds-gap-sm", r),
|
|
1035
1233
|
"data-component": "page-header",
|
|
1036
|
-
children: [n !== void 0 && n.length > 0 && /* @__PURE__ */
|
|
1234
|
+
children: [n !== void 0 && n.length > 0 && /* @__PURE__ */ k("nav", {
|
|
1037
1235
|
"aria-label": "Breadcrumb",
|
|
1038
|
-
children: /* @__PURE__ */
|
|
1236
|
+
children: /* @__PURE__ */ k("ol", {
|
|
1039
1237
|
className: "flex items-center gds-gap-sm text-[11px] text-fg-muted",
|
|
1040
|
-
children: n.map((e, t) => /* @__PURE__ */
|
|
1238
|
+
children: n.map((e, t) => /* @__PURE__ */ A("li", {
|
|
1041
1239
|
className: "flex items-center gds-gap-sm",
|
|
1042
|
-
children: [t > 0 && /* @__PURE__ */
|
|
1240
|
+
children: [t > 0 && /* @__PURE__ */ k("span", {
|
|
1043
1241
|
className: "text-fg-muted/50",
|
|
1044
1242
|
"aria-hidden": "true",
|
|
1045
|
-
children:
|
|
1046
|
-
}), e.href === void 0 ? /* @__PURE__ */
|
|
1243
|
+
children: ze
|
|
1244
|
+
}), e.href === void 0 ? /* @__PURE__ */ k("span", { children: e.label }) : /* @__PURE__ */ k("a", {
|
|
1047
1245
|
href: e.href,
|
|
1048
1246
|
className: "transition-colors hover:text-fg",
|
|
1049
1247
|
children: e.label
|
|
1050
1248
|
})]
|
|
1051
1249
|
}, t))
|
|
1052
1250
|
})
|
|
1053
|
-
}), /* @__PURE__ */
|
|
1251
|
+
}), /* @__PURE__ */ A("div", {
|
|
1054
1252
|
className: "flex items-center justify-between gds-gap",
|
|
1055
|
-
children: [/* @__PURE__ */
|
|
1253
|
+
children: [/* @__PURE__ */ A("div", {
|
|
1056
1254
|
className: "min-w-0",
|
|
1057
|
-
children: [/* @__PURE__ */
|
|
1255
|
+
children: [/* @__PURE__ */ k("h1", {
|
|
1058
1256
|
className: "gds-heading font-semibold text-fg",
|
|
1059
1257
|
children: a
|
|
1060
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
1258
|
+
}), i !== void 0 && /* @__PURE__ */ k("p", {
|
|
1061
1259
|
className: "mt-0.5 gds-text-body text-fg-muted",
|
|
1062
1260
|
children: i
|
|
1063
1261
|
})]
|
|
1064
|
-
}), t !== void 0 && /* @__PURE__ */
|
|
1262
|
+
}), t !== void 0 && /* @__PURE__ */ k("div", {
|
|
1065
1263
|
className: "flex shrink-0 items-center gds-gap-sm",
|
|
1066
1264
|
children: t
|
|
1067
1265
|
})]
|
|
1068
1266
|
})]
|
|
1069
1267
|
});
|
|
1070
|
-
}),
|
|
1071
|
-
|
|
1268
|
+
}), Ve = x(function({ children: t, width: n, minWidth: r, maxWidth: i, center: a, scrollable: o = !0, className: s, ...c }, l) {
|
|
1269
|
+
let u = v(), d = {};
|
|
1270
|
+
return n !== void 0 && !u && (d.width = n, d.flexShrink = 0), r !== void 0 && !u && (d.minWidth = r), i !== void 0 && !u && (d.maxWidth = i), /* @__PURE__ */ k("div", {
|
|
1271
|
+
...c,
|
|
1272
|
+
ref: l,
|
|
1273
|
+
className: e(n === void 0 && "flex-1", u && "w-full", o && "min-h-0 overflow-y-auto", a === !0 && "flex justify-center", s),
|
|
1274
|
+
"data-component": "panel",
|
|
1275
|
+
style: Object.keys(d).length > 0 ? d : void 0,
|
|
1276
|
+
children: t
|
|
1277
|
+
});
|
|
1278
|
+
}), He = x(function({ children: t, direction: n = "horizontal", className: r, ...i }, a) {
|
|
1279
|
+
let o = v(), s = n === "vertical" || o;
|
|
1280
|
+
return /* @__PURE__ */ k("div", {
|
|
1281
|
+
...i,
|
|
1282
|
+
ref: a,
|
|
1283
|
+
className: e("flex min-h-0 flex-1", s ? "flex-col" : "flex-row", r),
|
|
1284
|
+
"data-component": "panel-group",
|
|
1285
|
+
children: t
|
|
1286
|
+
});
|
|
1287
|
+
}), Ue = x(function({ chart: t, className: n, metrics: r, transactions: i, ...a }, o) {
|
|
1288
|
+
return /* @__PURE__ */ A("div", {
|
|
1072
1289
|
className: e("gds-ctx flex flex-col gds-gap", n),
|
|
1073
1290
|
"data-component": "payroll-dashboard",
|
|
1074
1291
|
ref: o,
|
|
1075
1292
|
...a,
|
|
1076
|
-
children: [r !== void 0 && /* @__PURE__ */
|
|
1293
|
+
children: [r !== void 0 && /* @__PURE__ */ k("div", {
|
|
1077
1294
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
1078
1295
|
children: r
|
|
1079
|
-
}), /* @__PURE__ */
|
|
1296
|
+
}), /* @__PURE__ */ A("div", {
|
|
1080
1297
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
1081
|
-
children: [t !== void 0 && /* @__PURE__ */
|
|
1298
|
+
children: [t !== void 0 && /* @__PURE__ */ k("div", {
|
|
1082
1299
|
className: "gds-radius-card border border-border bg-surface gds-pad",
|
|
1083
1300
|
children: t
|
|
1084
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
1301
|
+
}), i !== void 0 && /* @__PURE__ */ k("div", {
|
|
1085
1302
|
className: "gds-radius-card border border-border bg-surface gds-pad",
|
|
1086
1303
|
children: i
|
|
1087
1304
|
})]
|
|
1088
1305
|
})]
|
|
1089
1306
|
});
|
|
1090
|
-
}),
|
|
1091
|
-
return /* @__PURE__ */
|
|
1307
|
+
}), We = x(function({ name: n, price: r, period: i = "/month", features: a, action: o, highlighted: s, glass: c, className: l }, u) {
|
|
1308
|
+
return /* @__PURE__ */ A("div", {
|
|
1092
1309
|
ref: u,
|
|
1093
1310
|
className: e("gds-ctx gds-radius-card border gds-pad-x-lg gds-pad-y-lg flex flex-col", s === !0 && "border-accent ring-1 ring-accent", s !== !0 && (c === !0 ? e(t(c), "border-white/10 bg-bg/60") : "border-border bg-surface"), c === !0 && s === !0 && e(t(c), "bg-bg/60"), l),
|
|
1094
1311
|
"data-component": "pricing-card",
|
|
1095
1312
|
"data-highlighted": s === !0 ? "true" : void 0,
|
|
1096
1313
|
children: [
|
|
1097
|
-
/* @__PURE__ */
|
|
1314
|
+
/* @__PURE__ */ k("p", {
|
|
1098
1315
|
className: "font-semibold text-fg",
|
|
1099
1316
|
children: n
|
|
1100
1317
|
}),
|
|
1101
|
-
/* @__PURE__ */
|
|
1318
|
+
/* @__PURE__ */ A("div", {
|
|
1102
1319
|
className: "mt-2 flex items-baseline gap-1",
|
|
1103
|
-
children: [/* @__PURE__ */
|
|
1320
|
+
children: [/* @__PURE__ */ k("span", {
|
|
1104
1321
|
className: "text-3xl font-bold text-fg",
|
|
1105
1322
|
children: r
|
|
1106
|
-
}), /* @__PURE__ */
|
|
1323
|
+
}), /* @__PURE__ */ k("span", {
|
|
1107
1324
|
className: "gds-text-body text-fg-muted",
|
|
1108
1325
|
children: i
|
|
1109
1326
|
})]
|
|
1110
1327
|
}),
|
|
1111
|
-
a.length > 0 && /* @__PURE__ */
|
|
1328
|
+
a.length > 0 && /* @__PURE__ */ k("ul", {
|
|
1112
1329
|
className: "mt-4 flex flex-col gap-2",
|
|
1113
|
-
children: a.map((e) => /* @__PURE__ */
|
|
1330
|
+
children: a.map((e) => /* @__PURE__ */ A("li", {
|
|
1114
1331
|
className: "flex items-center gap-2 gds-text-body text-fg-muted",
|
|
1115
|
-
children: [/* @__PURE__ */
|
|
1332
|
+
children: [/* @__PURE__ */ k("svg", {
|
|
1116
1333
|
className: "h-4 w-4 shrink-0 text-success",
|
|
1117
1334
|
viewBox: "0 0 16 16",
|
|
1118
1335
|
fill: "none",
|
|
1119
|
-
children: /* @__PURE__ */
|
|
1336
|
+
children: /* @__PURE__ */ k("path", {
|
|
1120
1337
|
d: "M3 8l3 3 7-7",
|
|
1121
1338
|
stroke: "currentColor",
|
|
1122
1339
|
strokeWidth: "2",
|
|
@@ -1126,90 +1343,90 @@ var we = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
1126
1343
|
}), e]
|
|
1127
1344
|
}, e))
|
|
1128
1345
|
}),
|
|
1129
|
-
o !== void 0 && /* @__PURE__ */
|
|
1346
|
+
o !== void 0 && /* @__PURE__ */ k("div", {
|
|
1130
1347
|
className: "mt-auto pt-4",
|
|
1131
1348
|
children: o
|
|
1132
1349
|
})
|
|
1133
1350
|
]
|
|
1134
1351
|
});
|
|
1135
|
-
}),
|
|
1136
|
-
return /* @__PURE__ */
|
|
1352
|
+
}), Ge = x(function({ actions: n, avatar: r, className: i, glass: a, name: o, role: s, stats: c }, l) {
|
|
1353
|
+
return /* @__PURE__ */ A("div", {
|
|
1137
1354
|
ref: l,
|
|
1138
1355
|
className: e("gds-ctx flex flex-col items-center gds-pad gds-radius-card border", a === !0 ? e(t(a), "border-white/10 bg-bg/60") : "border-border bg-surface", i),
|
|
1139
1356
|
"data-component": "profile-card",
|
|
1140
1357
|
children: [
|
|
1141
|
-
/* @__PURE__ */
|
|
1358
|
+
/* @__PURE__ */ k(u, {
|
|
1142
1359
|
name: o,
|
|
1143
1360
|
src: r,
|
|
1144
1361
|
size: "lg"
|
|
1145
1362
|
}),
|
|
1146
|
-
/* @__PURE__ */
|
|
1363
|
+
/* @__PURE__ */ k("p", {
|
|
1147
1364
|
className: "mt-3 text-sm font-semibold text-fg",
|
|
1148
1365
|
children: o
|
|
1149
1366
|
}),
|
|
1150
|
-
s !== void 0 && /* @__PURE__ */
|
|
1367
|
+
s !== void 0 && /* @__PURE__ */ k("p", {
|
|
1151
1368
|
className: "mt-0.5 text-xs text-fg-muted",
|
|
1152
1369
|
children: s
|
|
1153
1370
|
}),
|
|
1154
|
-
c !== void 0 && c.length > 0 && /* @__PURE__ */
|
|
1371
|
+
c !== void 0 && c.length > 0 && /* @__PURE__ */ k("div", {
|
|
1155
1372
|
className: "mt-3 flex w-full justify-center gds-gap",
|
|
1156
|
-
children: c.map((e) => /* @__PURE__ */
|
|
1373
|
+
children: c.map((e) => /* @__PURE__ */ A("div", {
|
|
1157
1374
|
className: "flex flex-col items-center",
|
|
1158
|
-
children: [/* @__PURE__ */
|
|
1375
|
+
children: [/* @__PURE__ */ k("span", {
|
|
1159
1376
|
className: "text-sm font-bold text-fg",
|
|
1160
1377
|
children: e.value
|
|
1161
|
-
}), /* @__PURE__ */
|
|
1378
|
+
}), /* @__PURE__ */ k("span", {
|
|
1162
1379
|
className: "text-[10px] text-fg-muted",
|
|
1163
1380
|
children: e.label
|
|
1164
1381
|
})]
|
|
1165
1382
|
}, e.label))
|
|
1166
1383
|
}),
|
|
1167
|
-
n !== void 0 && /* @__PURE__ */
|
|
1384
|
+
n !== void 0 && /* @__PURE__ */ k("div", {
|
|
1168
1385
|
className: "mt-3 flex w-full justify-center gds-gap",
|
|
1169
1386
|
children: n
|
|
1170
1387
|
})
|
|
1171
1388
|
]
|
|
1172
1389
|
});
|
|
1173
|
-
}),
|
|
1174
|
-
return /* @__PURE__ */
|
|
1390
|
+
}), Ke = x(function({ activity: t, className: n, progress: r, tasks: i, team: a }, o) {
|
|
1391
|
+
return /* @__PURE__ */ A("div", {
|
|
1175
1392
|
className: e("grid grid-cols-2 gds-gap", n),
|
|
1176
1393
|
"data-component": "project-dashboard",
|
|
1177
1394
|
ref: o,
|
|
1178
1395
|
children: [
|
|
1179
|
-
r !== void 0 && /* @__PURE__ */
|
|
1396
|
+
r !== void 0 && /* @__PURE__ */ k("section", {
|
|
1180
1397
|
"data-slot": "progress",
|
|
1181
1398
|
children: r
|
|
1182
1399
|
}),
|
|
1183
|
-
a !== void 0 && /* @__PURE__ */
|
|
1400
|
+
a !== void 0 && /* @__PURE__ */ k("section", {
|
|
1184
1401
|
"data-slot": "team",
|
|
1185
1402
|
children: a
|
|
1186
1403
|
}),
|
|
1187
|
-
t !== void 0 && /* @__PURE__ */
|
|
1404
|
+
t !== void 0 && /* @__PURE__ */ k("section", {
|
|
1188
1405
|
"data-slot": "activity",
|
|
1189
1406
|
children: t
|
|
1190
1407
|
}),
|
|
1191
|
-
i !== void 0 && /* @__PURE__ */
|
|
1408
|
+
i !== void 0 && /* @__PURE__ */ k("section", {
|
|
1192
1409
|
"data-slot": "tasks",
|
|
1193
1410
|
children: i
|
|
1194
1411
|
})
|
|
1195
1412
|
]
|
|
1196
1413
|
});
|
|
1197
|
-
}),
|
|
1414
|
+
}), qe = x(function({ mobile: t, tablet: n, desktop: r, className: i }, a) {
|
|
1198
1415
|
let o = n ?? t;
|
|
1199
|
-
return /* @__PURE__ */
|
|
1416
|
+
return /* @__PURE__ */ A("div", {
|
|
1200
1417
|
ref: a,
|
|
1201
1418
|
className: e(i),
|
|
1202
1419
|
"data-component": "responsive-container",
|
|
1203
1420
|
children: [
|
|
1204
|
-
/* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ k("div", {
|
|
1205
1422
|
className: "block sm:hidden",
|
|
1206
1423
|
children: t
|
|
1207
1424
|
}),
|
|
1208
|
-
/* @__PURE__ */
|
|
1425
|
+
/* @__PURE__ */ k("div", {
|
|
1209
1426
|
className: "hidden sm:block lg:hidden",
|
|
1210
1427
|
children: o
|
|
1211
1428
|
}),
|
|
1212
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ k("div", {
|
|
1213
1430
|
className: "hidden lg:block",
|
|
1214
1431
|
children: r
|
|
1215
1432
|
})
|
|
@@ -1218,68 +1435,68 @@ var we = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
1218
1435
|
});
|
|
1219
1436
|
//#endregion
|
|
1220
1437
|
//#region src/l7-patterns/server-overview.tsx
|
|
1221
|
-
function
|
|
1438
|
+
function Je(e) {
|
|
1222
1439
|
return e >= 90 ? "danger" : e >= 70 ? "warning" : "success";
|
|
1223
1440
|
}
|
|
1224
|
-
var
|
|
1225
|
-
function
|
|
1226
|
-
return /* @__PURE__ */
|
|
1227
|
-
className:
|
|
1441
|
+
var Ye = "flex items-center gap-2", Xe = "w-8 text-[10px] text-fg-muted", Ze = "w-8 text-right text-[10px] font-mono text-fg-muted";
|
|
1442
|
+
function K({ label: e, value: t }) {
|
|
1443
|
+
return /* @__PURE__ */ A("div", {
|
|
1444
|
+
className: Ye,
|
|
1228
1445
|
children: [
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
className:
|
|
1446
|
+
/* @__PURE__ */ k("span", {
|
|
1447
|
+
className: Xe,
|
|
1231
1448
|
children: e
|
|
1232
1449
|
}),
|
|
1233
|
-
/* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ k(c, {
|
|
1234
1451
|
value: t,
|
|
1235
|
-
variant:
|
|
1452
|
+
variant: Je(t),
|
|
1236
1453
|
size: "sm"
|
|
1237
1454
|
}),
|
|
1238
|
-
/* @__PURE__ */
|
|
1239
|
-
className:
|
|
1455
|
+
/* @__PURE__ */ A("span", {
|
|
1456
|
+
className: Ze,
|
|
1240
1457
|
children: [t, "%"]
|
|
1241
1458
|
})
|
|
1242
1459
|
]
|
|
1243
1460
|
});
|
|
1244
1461
|
}
|
|
1245
|
-
var
|
|
1246
|
-
return /* @__PURE__ */
|
|
1462
|
+
var Qe = x(function({ className: t, servers: n, ...r }, i) {
|
|
1463
|
+
return /* @__PURE__ */ k("div", {
|
|
1247
1464
|
className: e("grid gap-3 sm:grid-cols-2 lg:grid-cols-3", t),
|
|
1248
1465
|
"data-component": "server-overview",
|
|
1249
1466
|
ref: i,
|
|
1250
1467
|
...r,
|
|
1251
|
-
children: n.map((t) => /* @__PURE__ */
|
|
1468
|
+
children: n.map((t) => /* @__PURE__ */ A("div", {
|
|
1252
1469
|
className: "rounded-lg border border-border bg-surface p-3 gds-ctx",
|
|
1253
1470
|
children: [
|
|
1254
|
-
/* @__PURE__ */
|
|
1471
|
+
/* @__PURE__ */ A("div", {
|
|
1255
1472
|
className: "flex items-center justify-between mb-2",
|
|
1256
|
-
children: [/* @__PURE__ */
|
|
1473
|
+
children: [/* @__PURE__ */ k("span", {
|
|
1257
1474
|
className: "gds-text-label font-medium text-fg",
|
|
1258
1475
|
children: t.name
|
|
1259
|
-
}), /* @__PURE__ */
|
|
1476
|
+
}), /* @__PURE__ */ A("span", {
|
|
1260
1477
|
className: "inline-flex items-center gap-1.5",
|
|
1261
|
-
children: [/* @__PURE__ */
|
|
1478
|
+
children: [/* @__PURE__ */ k("span", { className: e("h-2 w-2 rounded-full", t.status === "online" ? "bg-success" : "bg-danger") }), /* @__PURE__ */ k("span", {
|
|
1262
1479
|
className: "text-xs text-fg-muted",
|
|
1263
1480
|
children: t.status
|
|
1264
1481
|
})]
|
|
1265
1482
|
})]
|
|
1266
1483
|
}),
|
|
1267
|
-
/* @__PURE__ */
|
|
1484
|
+
/* @__PURE__ */ k("div", {
|
|
1268
1485
|
className: "text-xs text-fg-muted mb-2",
|
|
1269
1486
|
children: t.location
|
|
1270
1487
|
}),
|
|
1271
|
-
t.metrics !== void 0 && /* @__PURE__ */
|
|
1488
|
+
t.metrics !== void 0 && /* @__PURE__ */ A("div", {
|
|
1272
1489
|
className: "flex flex-col gap-1.5",
|
|
1273
1490
|
children: [
|
|
1274
|
-
/* @__PURE__ */
|
|
1491
|
+
/* @__PURE__ */ k(K, {
|
|
1275
1492
|
label: "CPU",
|
|
1276
1493
|
value: t.metrics.cpu
|
|
1277
1494
|
}),
|
|
1278
|
-
/* @__PURE__ */
|
|
1495
|
+
/* @__PURE__ */ k(K, {
|
|
1279
1496
|
label: "MEM",
|
|
1280
1497
|
value: t.metrics.mem
|
|
1281
1498
|
}),
|
|
1282
|
-
/* @__PURE__ */
|
|
1499
|
+
/* @__PURE__ */ k(K, {
|
|
1283
1500
|
label: "DISK",
|
|
1284
1501
|
value: t.metrics.disk
|
|
1285
1502
|
})
|
|
@@ -1291,154 +1508,240 @@ var Ve = v(function({ className: t, servers: n, ...r }, i) {
|
|
|
1291
1508
|
});
|
|
1292
1509
|
//#endregion
|
|
1293
1510
|
//#region src/l7-patterns/settings-layout.tsx
|
|
1294
|
-
function
|
|
1295
|
-
let [
|
|
1296
|
-
|
|
1297
|
-
|
|
1511
|
+
function $e({ activeSection: t, animated: n = !0, className: r, defaultSection: i, navWidth: a = 192, onSectionChange: o, sections: s, stickyNav: c = !0 }) {
|
|
1512
|
+
let l = t !== void 0 && o !== void 0, [u, d] = D(i ?? s[0]?.id ?? ""), f = l ? t : u, p = s.find((e) => e.id === f), m = E(/* @__PURE__ */ new Map()), h = E(0), g = S((e) => {
|
|
1513
|
+
l ? o(e) : d(e), o !== void 0 && !l && o(e), h.current += 1;
|
|
1514
|
+
}, [l, o]), _ = S((e) => {
|
|
1515
|
+
if (e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
|
|
1516
|
+
e.preventDefault();
|
|
1517
|
+
let t = s.findIndex((e) => e.id === f);
|
|
1518
|
+
if (t < 0) return;
|
|
1519
|
+
let n = t;
|
|
1520
|
+
e.key === "ArrowDown" && (n = t < s.length - 1 ? t + 1 : 0), e.key === "ArrowUp" && (n = t > 0 ? t - 1 : s.length - 1);
|
|
1521
|
+
let r = s[n];
|
|
1522
|
+
if (r === void 0) return;
|
|
1523
|
+
g(r.id);
|
|
1524
|
+
let i = m.current.get(r.id);
|
|
1525
|
+
i !== void 0 && i.focus();
|
|
1526
|
+
}, [
|
|
1527
|
+
f,
|
|
1528
|
+
g,
|
|
1529
|
+
s
|
|
1530
|
+
]), v = S((e, t) => {
|
|
1531
|
+
t === null ? m.current.delete(e) : m.current.set(e, t);
|
|
1532
|
+
}, []);
|
|
1533
|
+
return /* @__PURE__ */ A("div", {
|
|
1534
|
+
className: e("flex gap-6", r),
|
|
1298
1535
|
"data-component": "settings-layout",
|
|
1299
|
-
children: [/* @__PURE__ */
|
|
1300
|
-
className: "
|
|
1301
|
-
|
|
1536
|
+
children: [/* @__PURE__ */ k("nav", {
|
|
1537
|
+
className: "shrink-0",
|
|
1538
|
+
style: {
|
|
1539
|
+
width: a,
|
|
1540
|
+
...c ? {
|
|
1541
|
+
position: "sticky",
|
|
1542
|
+
top: 0,
|
|
1543
|
+
alignSelf: "flex-start"
|
|
1544
|
+
} : {}
|
|
1545
|
+
},
|
|
1546
|
+
children: /* @__PURE__ */ k("ul", {
|
|
1302
1547
|
className: "flex flex-col gap-0.5",
|
|
1303
1548
|
role: "list",
|
|
1304
|
-
|
|
1549
|
+
onKeyDown: _,
|
|
1550
|
+
children: s.map((t) => /* @__PURE__ */ k("li", { children: /* @__PURE__ */ k("button", {
|
|
1551
|
+
ref: (e) => v(t.id, e),
|
|
1305
1552
|
type: "button",
|
|
1306
|
-
className: e("w-full rounded-md px-3 py-2 text-left gds-text-body transition-colors", t.id ===
|
|
1307
|
-
onClick: () =>
|
|
1553
|
+
className: e("w-full rounded-md px-3 py-2 text-left gds-text-body transition-colors", t.id === f ? "bg-accent/10 font-medium text-accent" : "text-fg-muted hover:bg-bg-tertiary hover:text-fg"),
|
|
1554
|
+
onClick: () => g(t.id),
|
|
1308
1555
|
children: t.label
|
|
1309
1556
|
}) }, t.id))
|
|
1310
1557
|
})
|
|
1311
|
-
}), /* @__PURE__ */
|
|
1312
|
-
className: "min-w-0 flex-1",
|
|
1313
|
-
children:
|
|
1314
|
-
})]
|
|
1558
|
+
}), /* @__PURE__ */ k("div", {
|
|
1559
|
+
className: e("min-w-0 flex-1", n && "animate-fade-in"),
|
|
1560
|
+
children: p === void 0 ? null : p.content
|
|
1561
|
+
}, n ? `${f}-${h.current}` : void 0)]
|
|
1315
1562
|
});
|
|
1316
1563
|
}
|
|
1317
1564
|
//#endregion
|
|
1318
1565
|
//#region src/l7-patterns/sidebar.tsx
|
|
1319
|
-
var
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
className: "flex-1 overflow-hidden",
|
|
1566
|
+
var q = b({ collapsed: !1 });
|
|
1567
|
+
function J({ icon: t, label: n, badge: r, active: i, onClick: a, href: o, className: s }) {
|
|
1568
|
+
let { collapsed: c } = C(q), [l, u] = D(!1), d = /* @__PURE__ */ A(O, { children: [
|
|
1569
|
+
/* @__PURE__ */ k("span", {
|
|
1570
|
+
className: "flex h-5 w-5 shrink-0 items-center justify-center",
|
|
1571
|
+
children: t
|
|
1572
|
+
}),
|
|
1573
|
+
!c && /* @__PURE__ */ k("span", {
|
|
1574
|
+
className: "flex-1 truncate gds-text-body",
|
|
1329
1575
|
children: n
|
|
1330
|
-
}),
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
width: "14",
|
|
1342
|
-
children: /* @__PURE__ */ T("polyline", { points: "15 18 9 12 15 6" })
|
|
1343
|
-
})
|
|
1576
|
+
}),
|
|
1577
|
+
!c && r !== void 0 && /* @__PURE__ */ k("span", {
|
|
1578
|
+
className: "shrink-0 rounded-full bg-accent/15 px-1.5 py-px gds-text-caption font-medium text-accent",
|
|
1579
|
+
children: r
|
|
1580
|
+
}),
|
|
1581
|
+
c && r !== void 0 && /* @__PURE__ */ k("span", { className: "absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-danger" })
|
|
1582
|
+
] }), f = e("relative flex items-center gap-2.5 rounded-md px-2.5 py-2 text-left transition-colors select-none", i === !0 ? "bg-accent/15 text-accent font-medium" : "text-fg-muted hover:bg-white/[0.04] hover:text-fg", c && "justify-center px-0", s), p = c && l ? /* @__PURE__ */ A("div", {
|
|
1583
|
+
className: "absolute left-full top-1/2 -translate-y-1/2 ml-2 z-50 whitespace-nowrap rounded-md bg-bg-secondary border border-border px-2.5 py-1 gds-text-label text-fg shadow-lg pointer-events-none",
|
|
1584
|
+
children: [n, r !== void 0 && /* @__PURE__ */ k("span", {
|
|
1585
|
+
className: "ml-1.5 text-accent font-medium",
|
|
1586
|
+
children: r
|
|
1344
1587
|
})]
|
|
1588
|
+
}) : null, m = c ? {
|
|
1589
|
+
onMouseEnter: () => u(!0),
|
|
1590
|
+
onMouseLeave: () => u(!1)
|
|
1591
|
+
} : {};
|
|
1592
|
+
return o === void 0 ? /* @__PURE__ */ A("div", {
|
|
1593
|
+
className: "relative",
|
|
1594
|
+
...m,
|
|
1595
|
+
children: [/* @__PURE__ */ k("button", {
|
|
1596
|
+
type: "button",
|
|
1597
|
+
onClick: a,
|
|
1598
|
+
className: e(f, "w-full"),
|
|
1599
|
+
"data-component": "sidebar-item",
|
|
1600
|
+
"data-state": i === !0 ? "active" : void 0,
|
|
1601
|
+
children: d
|
|
1602
|
+
}), p]
|
|
1603
|
+
}) : /* @__PURE__ */ A("div", {
|
|
1604
|
+
className: "relative",
|
|
1605
|
+
...m,
|
|
1606
|
+
children: [/* @__PURE__ */ k("a", {
|
|
1607
|
+
href: o,
|
|
1608
|
+
className: f,
|
|
1609
|
+
"data-component": "sidebar-item",
|
|
1610
|
+
"data-state": i === !0 ? "active" : void 0,
|
|
1611
|
+
children: d
|
|
1612
|
+
}), p]
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
var et = x(function({ children: n, collapsed: r = !1, onCollapse: i, width: a = 240, collapsedWidth: o = 56, position: s = "left", glass: c, className: l, items: u }, d) {
|
|
1616
|
+
let f = r ? o : a;
|
|
1617
|
+
return /* @__PURE__ */ k(q, {
|
|
1618
|
+
value: { collapsed: r },
|
|
1619
|
+
children: /* @__PURE__ */ A("div", {
|
|
1620
|
+
ref: d,
|
|
1621
|
+
className: e("flex flex-col overflow-hidden transition-[width] duration-200", s === "left" ? "border-r" : "border-l", c === !0 ? e(t(c), "border-white/10 bg-bg/60") : "border-border bg-surface", l),
|
|
1622
|
+
"data-collapsed": r,
|
|
1623
|
+
"data-component": "sidebar",
|
|
1624
|
+
style: { width: f },
|
|
1625
|
+
children: [/* @__PURE__ */ A("div", {
|
|
1626
|
+
className: "flex-1 overflow-y-auto overflow-x-hidden",
|
|
1627
|
+
children: [u !== void 0 && /* @__PURE__ */ k("nav", {
|
|
1628
|
+
className: "flex flex-col gap-0.5 p-2",
|
|
1629
|
+
children: u.map((e) => /* @__PURE__ */ k(J, { ...e }, e.label))
|
|
1630
|
+
}), n]
|
|
1631
|
+
}), i !== void 0 && /* @__PURE__ */ k("button", {
|
|
1632
|
+
className: "flex h-10 items-center justify-center border-t border-border/50 text-fg-muted hover:text-fg transition-colors",
|
|
1633
|
+
type: "button",
|
|
1634
|
+
onClick: () => i(!r),
|
|
1635
|
+
"aria-label": r ? "Expand sidebar" : "Collapse sidebar",
|
|
1636
|
+
children: /* @__PURE__ */ k("svg", {
|
|
1637
|
+
className: e("transition-transform duration-200", r && "rotate-180", s === "right" && "rotate-180", r && s === "right" && "rotate-0"),
|
|
1638
|
+
fill: "none",
|
|
1639
|
+
height: "14",
|
|
1640
|
+
stroke: "currentColor",
|
|
1641
|
+
strokeWidth: "2",
|
|
1642
|
+
viewBox: "0 0 24 24",
|
|
1643
|
+
width: "14",
|
|
1644
|
+
children: /* @__PURE__ */ k("polyline", { points: "15 18 9 12 15 6" })
|
|
1645
|
+
})
|
|
1646
|
+
})]
|
|
1647
|
+
})
|
|
1345
1648
|
});
|
|
1346
1649
|
});
|
|
1347
1650
|
//#endregion
|
|
1348
1651
|
//#region src/l7-patterns/skeleton-pattern.tsx
|
|
1349
|
-
function
|
|
1350
|
-
return /* @__PURE__ */
|
|
1652
|
+
function tt() {
|
|
1653
|
+
return /* @__PURE__ */ A("div", {
|
|
1351
1654
|
className: "flex flex-col gds-gap gds-ctx gds-pad gds-radius-card",
|
|
1352
1655
|
children: [
|
|
1353
|
-
/* @__PURE__ */
|
|
1656
|
+
/* @__PURE__ */ k(l, {
|
|
1354
1657
|
variant: "rect",
|
|
1355
1658
|
height: 120
|
|
1356
1659
|
}),
|
|
1357
|
-
/* @__PURE__ */
|
|
1660
|
+
/* @__PURE__ */ k(l, {
|
|
1358
1661
|
variant: "text",
|
|
1359
1662
|
width: "60%"
|
|
1360
1663
|
}),
|
|
1361
|
-
/* @__PURE__ */
|
|
1664
|
+
/* @__PURE__ */ k(l, {
|
|
1362
1665
|
variant: "text",
|
|
1363
1666
|
lines: 2
|
|
1364
1667
|
})
|
|
1365
1668
|
]
|
|
1366
1669
|
});
|
|
1367
1670
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return /* @__PURE__ */
|
|
1671
|
+
function nt() {
|
|
1672
|
+
return /* @__PURE__ */ A("div", {
|
|
1370
1673
|
className: "flex items-center gap-3",
|
|
1371
|
-
children: [/* @__PURE__ */
|
|
1674
|
+
children: [/* @__PURE__ */ k(l, { variant: "circle" }), /* @__PURE__ */ A("div", {
|
|
1372
1675
|
className: "flex flex-1 flex-col gap-2",
|
|
1373
|
-
children: [/* @__PURE__ */
|
|
1676
|
+
children: [/* @__PURE__ */ k(l, {
|
|
1374
1677
|
variant: "text",
|
|
1375
1678
|
width: "40%"
|
|
1376
|
-
}), /* @__PURE__ */
|
|
1679
|
+
}), /* @__PURE__ */ k(l, {
|
|
1377
1680
|
variant: "text",
|
|
1378
1681
|
width: "80%"
|
|
1379
1682
|
})]
|
|
1380
1683
|
})]
|
|
1381
1684
|
});
|
|
1382
1685
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return /* @__PURE__ */
|
|
1686
|
+
function rt() {
|
|
1687
|
+
return /* @__PURE__ */ A("div", {
|
|
1385
1688
|
className: "flex flex-col items-center gds-gap gds-ctx gds-pad",
|
|
1386
1689
|
children: [
|
|
1387
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ k(l, {
|
|
1388
1691
|
variant: "circle",
|
|
1389
1692
|
width: 64,
|
|
1390
1693
|
height: 64
|
|
1391
1694
|
}),
|
|
1392
|
-
/* @__PURE__ */
|
|
1695
|
+
/* @__PURE__ */ k(l, {
|
|
1393
1696
|
variant: "text",
|
|
1394
1697
|
width: "30%"
|
|
1395
1698
|
}),
|
|
1396
|
-
/* @__PURE__ */
|
|
1699
|
+
/* @__PURE__ */ k(l, {
|
|
1397
1700
|
variant: "text",
|
|
1398
1701
|
lines: 3
|
|
1399
1702
|
})
|
|
1400
1703
|
]
|
|
1401
1704
|
});
|
|
1402
1705
|
}
|
|
1403
|
-
function
|
|
1404
|
-
return /* @__PURE__ */
|
|
1706
|
+
function it({ rows: e }) {
|
|
1707
|
+
return /* @__PURE__ */ A("div", {
|
|
1405
1708
|
className: "flex flex-col gap-2",
|
|
1406
|
-
children: [/* @__PURE__ */
|
|
1709
|
+
children: [/* @__PURE__ */ A("div", {
|
|
1407
1710
|
className: "flex gap-4",
|
|
1408
1711
|
children: [
|
|
1409
|
-
/* @__PURE__ */
|
|
1712
|
+
/* @__PURE__ */ k(l, {
|
|
1410
1713
|
variant: "text",
|
|
1411
1714
|
width: "25%"
|
|
1412
1715
|
}),
|
|
1413
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ k(l, {
|
|
1414
1717
|
variant: "text",
|
|
1415
1718
|
width: "25%"
|
|
1416
1719
|
}),
|
|
1417
|
-
/* @__PURE__ */
|
|
1720
|
+
/* @__PURE__ */ k(l, {
|
|
1418
1721
|
variant: "text",
|
|
1419
1722
|
width: "25%"
|
|
1420
1723
|
}),
|
|
1421
|
-
/* @__PURE__ */
|
|
1724
|
+
/* @__PURE__ */ k(l, {
|
|
1422
1725
|
variant: "text",
|
|
1423
1726
|
width: "25%"
|
|
1424
1727
|
})
|
|
1425
1728
|
]
|
|
1426
|
-
}), Array.from({ length: e }, (e, t) => /* @__PURE__ */
|
|
1729
|
+
}), Array.from({ length: e }, (e, t) => /* @__PURE__ */ A("div", {
|
|
1427
1730
|
className: "flex gap-4",
|
|
1428
1731
|
children: [
|
|
1429
|
-
/* @__PURE__ */
|
|
1732
|
+
/* @__PURE__ */ k(l, {
|
|
1430
1733
|
variant: "text",
|
|
1431
1734
|
width: "25%"
|
|
1432
1735
|
}),
|
|
1433
|
-
/* @__PURE__ */
|
|
1736
|
+
/* @__PURE__ */ k(l, {
|
|
1434
1737
|
variant: "text",
|
|
1435
1738
|
width: "25%"
|
|
1436
1739
|
}),
|
|
1437
|
-
/* @__PURE__ */
|
|
1740
|
+
/* @__PURE__ */ k(l, {
|
|
1438
1741
|
variant: "text",
|
|
1439
1742
|
width: "25%"
|
|
1440
1743
|
}),
|
|
1441
|
-
/* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ k(l, {
|
|
1442
1745
|
variant: "text",
|
|
1443
1746
|
width: "25%"
|
|
1444
1747
|
})
|
|
@@ -1446,80 +1749,80 @@ function qe({ rows: e }) {
|
|
|
1446
1749
|
}, t))]
|
|
1447
1750
|
});
|
|
1448
1751
|
}
|
|
1449
|
-
var
|
|
1752
|
+
var at = x(function({ variant: t, count: n = 1, glass: r, className: i }, a) {
|
|
1450
1753
|
let o = r ? "backdrop-blur-md bg-white/5" : void 0;
|
|
1451
|
-
return t === "card" ? /* @__PURE__ */
|
|
1754
|
+
return t === "card" ? /* @__PURE__ */ k("div", {
|
|
1452
1755
|
ref: a,
|
|
1453
1756
|
className: e("gds-ctx gds-radius-card", o, i),
|
|
1454
1757
|
"data-component": "skeleton-pattern",
|
|
1455
1758
|
"data-variant": "card",
|
|
1456
|
-
children: /* @__PURE__ */
|
|
1457
|
-
}) : t === "list" ? /* @__PURE__ */
|
|
1759
|
+
children: /* @__PURE__ */ k(tt, {})
|
|
1760
|
+
}) : t === "list" ? /* @__PURE__ */ k("div", {
|
|
1458
1761
|
ref: a,
|
|
1459
1762
|
className: e("flex flex-col gds-gap gds-ctx gds-pad", o, i),
|
|
1460
1763
|
"data-component": "skeleton-pattern",
|
|
1461
1764
|
"data-variant": "list",
|
|
1462
|
-
children: Array.from({ length: n }, (e, t) => /* @__PURE__ */
|
|
1463
|
-
}) : t === "profile" ? /* @__PURE__ */
|
|
1765
|
+
children: Array.from({ length: n }, (e, t) => /* @__PURE__ */ k(nt, {}, t))
|
|
1766
|
+
}) : t === "profile" ? /* @__PURE__ */ k("div", {
|
|
1464
1767
|
ref: a,
|
|
1465
1768
|
className: e(o, i),
|
|
1466
1769
|
"data-component": "skeleton-pattern",
|
|
1467
1770
|
"data-variant": "profile",
|
|
1468
|
-
children: /* @__PURE__ */
|
|
1469
|
-
}) : /* @__PURE__ */
|
|
1771
|
+
children: /* @__PURE__ */ k(rt, {})
|
|
1772
|
+
}) : /* @__PURE__ */ k("div", {
|
|
1470
1773
|
ref: a,
|
|
1471
1774
|
className: e("gds-ctx gds-pad", o, i),
|
|
1472
1775
|
"data-component": "skeleton-pattern",
|
|
1473
1776
|
"data-variant": "table",
|
|
1474
|
-
children: /* @__PURE__ */
|
|
1777
|
+
children: /* @__PURE__ */ k(it, { rows: n })
|
|
1475
1778
|
});
|
|
1476
1779
|
});
|
|
1477
1780
|
//#endregion
|
|
1478
1781
|
//#region src/l7-patterns/splash-screen.tsx
|
|
1479
|
-
function
|
|
1480
|
-
return /* @__PURE__ */
|
|
1782
|
+
function ot() {
|
|
1783
|
+
return /* @__PURE__ */ A("svg", {
|
|
1481
1784
|
className: "h-5 w-5 animate-spin text-accent",
|
|
1482
1785
|
fill: "none",
|
|
1483
1786
|
viewBox: "0 0 24 24",
|
|
1484
|
-
children: [/* @__PURE__ */
|
|
1787
|
+
children: [/* @__PURE__ */ k("circle", {
|
|
1485
1788
|
className: "opacity-25",
|
|
1486
1789
|
cx: "12",
|
|
1487
1790
|
cy: "12",
|
|
1488
1791
|
r: "10",
|
|
1489
1792
|
stroke: "currentColor",
|
|
1490
1793
|
strokeWidth: "4"
|
|
1491
|
-
}), /* @__PURE__ */
|
|
1794
|
+
}), /* @__PURE__ */ k("path", {
|
|
1492
1795
|
className: "opacity-75",
|
|
1493
1796
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z",
|
|
1494
1797
|
fill: "currentColor"
|
|
1495
1798
|
})]
|
|
1496
1799
|
});
|
|
1497
1800
|
}
|
|
1498
|
-
var
|
|
1499
|
-
return /* @__PURE__ */
|
|
1801
|
+
var st = x(function({ className: t, logo: n, message: r, title: i, visible: a, ...o }, s) {
|
|
1802
|
+
return /* @__PURE__ */ A("div", {
|
|
1500
1803
|
ref: s,
|
|
1501
1804
|
className: e("fixed inset-0 z-[9999] flex flex-col items-center justify-center bg-bg transition-opacity duration-300", a === !0 ? "opacity-100" : "pointer-events-none opacity-0", t),
|
|
1502
1805
|
"data-component": "splash-screen",
|
|
1503
1806
|
"data-visible": a,
|
|
1504
1807
|
...o,
|
|
1505
1808
|
children: [
|
|
1506
|
-
n !== void 0 && /* @__PURE__ */
|
|
1809
|
+
n !== void 0 && /* @__PURE__ */ k("div", {
|
|
1507
1810
|
className: "mb-6",
|
|
1508
1811
|
children: n
|
|
1509
1812
|
}),
|
|
1510
|
-
i !== void 0 && /* @__PURE__ */
|
|
1813
|
+
i !== void 0 && /* @__PURE__ */ k("h1", {
|
|
1511
1814
|
className: "mb-2 text-lg font-semibold text-fg",
|
|
1512
1815
|
children: i
|
|
1513
1816
|
}),
|
|
1514
|
-
r !== void 0 && /* @__PURE__ */
|
|
1817
|
+
r !== void 0 && /* @__PURE__ */ k("p", {
|
|
1515
1818
|
className: "mb-8 text-sm text-fg-muted",
|
|
1516
1819
|
children: r
|
|
1517
1820
|
}),
|
|
1518
|
-
/* @__PURE__ */
|
|
1821
|
+
/* @__PURE__ */ k(ot, {})
|
|
1519
1822
|
]
|
|
1520
1823
|
});
|
|
1521
|
-
}),
|
|
1522
|
-
let [l, u] =
|
|
1824
|
+
}), ct = x(function({ className: t, defaultSplit: n = 50, left: r, minLeft: i = 20, minRight: a = 20, right: o, ...s }, c) {
|
|
1825
|
+
let [l, u] = D(n), d = E(null), p = S((e) => {
|
|
1523
1826
|
let t = d.current;
|
|
1524
1827
|
if (t === null) return;
|
|
1525
1828
|
let n = t.offsetWidth;
|
|
@@ -1530,7 +1833,7 @@ var Xe = v(function({ className: t, logo: n, message: r, title: i, visible: a, .
|
|
|
1530
1833
|
return t < i ? i : t > 100 - a ? 100 - a : t;
|
|
1531
1834
|
});
|
|
1532
1835
|
}, [i, a]);
|
|
1533
|
-
return /* @__PURE__ */
|
|
1836
|
+
return /* @__PURE__ */ A("div", {
|
|
1534
1837
|
className: e("flex h-full w-full", t),
|
|
1535
1838
|
"data-component": "split-view",
|
|
1536
1839
|
ref: (e) => {
|
|
@@ -1538,23 +1841,23 @@ var Xe = v(function({ className: t, logo: n, message: r, title: i, visible: a, .
|
|
|
1538
1841
|
},
|
|
1539
1842
|
...s,
|
|
1540
1843
|
children: [
|
|
1541
|
-
/* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ k("div", {
|
|
1542
1845
|
className: "overflow-auto",
|
|
1543
1846
|
style: { width: `${l}%` },
|
|
1544
1847
|
children: r
|
|
1545
1848
|
}),
|
|
1546
|
-
/* @__PURE__ */
|
|
1849
|
+
/* @__PURE__ */ k(f, {
|
|
1547
1850
|
orientation: "vertical",
|
|
1548
1851
|
onResize: p
|
|
1549
1852
|
}),
|
|
1550
|
-
/* @__PURE__ */
|
|
1853
|
+
/* @__PURE__ */ k("div", {
|
|
1551
1854
|
className: "overflow-auto",
|
|
1552
1855
|
style: { width: `${100 - l}%` },
|
|
1553
1856
|
children: o
|
|
1554
1857
|
})
|
|
1555
1858
|
]
|
|
1556
1859
|
});
|
|
1557
|
-
}),
|
|
1860
|
+
}), lt = {
|
|
1558
1861
|
default: "text-2xl",
|
|
1559
1862
|
lg: "text-3xl",
|
|
1560
1863
|
sm: "text-lg"
|
|
@@ -1564,13 +1867,13 @@ var Xe = v(function({ className: t, logo: n, message: r, title: i, visible: a, .
|
|
|
1564
1867
|
up: "text-success"
|
|
1565
1868
|
};
|
|
1566
1869
|
function X() {
|
|
1567
|
-
return /* @__PURE__ */
|
|
1870
|
+
return /* @__PURE__ */ k("svg", {
|
|
1568
1871
|
className: "h-3 w-3",
|
|
1569
1872
|
fill: "none",
|
|
1570
1873
|
stroke: "currentColor",
|
|
1571
1874
|
strokeWidth: "2.5",
|
|
1572
1875
|
viewBox: "0 0 24 24",
|
|
1573
|
-
children: /* @__PURE__ */
|
|
1876
|
+
children: /* @__PURE__ */ k("path", {
|
|
1574
1877
|
d: "M12 19V5M5 12l7-7 7 7",
|
|
1575
1878
|
strokeLinecap: "round",
|
|
1576
1879
|
strokeLinejoin: "round"
|
|
@@ -1578,13 +1881,13 @@ function X() {
|
|
|
1578
1881
|
});
|
|
1579
1882
|
}
|
|
1580
1883
|
function Z() {
|
|
1581
|
-
return /* @__PURE__ */
|
|
1884
|
+
return /* @__PURE__ */ k("svg", {
|
|
1582
1885
|
className: "h-3 w-3",
|
|
1583
1886
|
fill: "none",
|
|
1584
1887
|
stroke: "currentColor",
|
|
1585
1888
|
strokeWidth: "2.5",
|
|
1586
1889
|
viewBox: "0 0 24 24",
|
|
1587
|
-
children: /* @__PURE__ */
|
|
1890
|
+
children: /* @__PURE__ */ k("path", {
|
|
1588
1891
|
d: "M12 5v14M19 12l-7 7-7-7",
|
|
1589
1892
|
strokeLinecap: "round",
|
|
1590
1893
|
strokeLinejoin: "round"
|
|
@@ -1592,31 +1895,31 @@ function Z() {
|
|
|
1592
1895
|
});
|
|
1593
1896
|
}
|
|
1594
1897
|
function Q() {
|
|
1595
|
-
return /* @__PURE__ */
|
|
1898
|
+
return /* @__PURE__ */ k("svg", {
|
|
1596
1899
|
className: "h-3 w-3",
|
|
1597
1900
|
fill: "none",
|
|
1598
1901
|
stroke: "currentColor",
|
|
1599
1902
|
strokeWidth: "2.5",
|
|
1600
1903
|
viewBox: "0 0 24 24",
|
|
1601
|
-
children: /* @__PURE__ */
|
|
1904
|
+
children: /* @__PURE__ */ k("path", {
|
|
1602
1905
|
d: "M5 12h14",
|
|
1603
1906
|
strokeLinecap: "round"
|
|
1604
1907
|
})
|
|
1605
1908
|
});
|
|
1606
1909
|
}
|
|
1607
|
-
var
|
|
1910
|
+
var ut = {
|
|
1608
1911
|
down: Z,
|
|
1609
1912
|
neutral: Q,
|
|
1610
1913
|
up: X
|
|
1611
1914
|
};
|
|
1612
|
-
function
|
|
1915
|
+
function dt(e, t, n) {
|
|
1613
1916
|
if (e.length < 2) return "";
|
|
1614
1917
|
let r = Math.min(...e), i = Math.max(...e) - r || 1, a = t / (e.length - 1);
|
|
1615
1918
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${(t * a).toFixed(1)},${(n - (e - r) / i * n).toFixed(1)}`).join(" ");
|
|
1616
1919
|
}
|
|
1617
|
-
function
|
|
1618
|
-
let [r, i] =
|
|
1619
|
-
return
|
|
1920
|
+
function ft(e, t, n = 500) {
|
|
1921
|
+
let [r, i] = D(e), a = E(e), o = E(0);
|
|
1922
|
+
return w(() => {
|
|
1620
1923
|
if (!t) {
|
|
1621
1924
|
i(e);
|
|
1622
1925
|
return;
|
|
@@ -1634,92 +1937,92 @@ function tt(e, t, n = 500) {
|
|
|
1634
1937
|
n
|
|
1635
1938
|
]), r;
|
|
1636
1939
|
}
|
|
1637
|
-
var
|
|
1638
|
-
let v =
|
|
1639
|
-
return /* @__PURE__ */
|
|
1940
|
+
var $ = x(function({ animated: t = !1, change: n, changeType: r = "neutral", className: i, description: a, footer: o, glass: s = !1, icon: c, label: l, motion: u, pulse: d = !1, size: f = "default", sparkData: p, trend: m, unit: h, value: g }, _) {
|
|
1941
|
+
let v = ut[r], y = m === void 0 ? null : m > 0 ? "up" : m < 0 ? "down" : "neutral", b = y === null ? null : Y[y], x = y === "up" ? "var(--gds-success)" : y === "down" ? "var(--gds-danger)" : "var(--gds-fg-muted)", S = T(() => p !== void 0 && p.length >= 2 ? dt(p, 80, 24) : null, [p]), C = typeof g == "number" ? g : null, w = ft(C ?? 0, t && C !== null), E = t && C !== null ? Number.isInteger(w) ? w.toLocaleString() : w.toLocaleString(void 0, { maximumFractionDigits: 2 }) : g;
|
|
1942
|
+
return /* @__PURE__ */ A("div", {
|
|
1640
1943
|
className: e("select-none", s ? "rounded-lg border border-white/10 bg-white/5 p-4 shadow-lg backdrop-blur-xl" : "space-y-1", d && "animate-pulse", u === "fade" ? "animate-fade-in" : u === "slide-up" ? "animate-slide-up" : "", i),
|
|
1641
1944
|
"data-component": "stat",
|
|
1642
1945
|
ref: _,
|
|
1643
1946
|
children: [
|
|
1644
|
-
/* @__PURE__ */
|
|
1947
|
+
/* @__PURE__ */ A("div", {
|
|
1645
1948
|
className: "flex items-start justify-between",
|
|
1646
|
-
children: [/* @__PURE__ */
|
|
1949
|
+
children: [/* @__PURE__ */ k("div", {
|
|
1647
1950
|
className: "text-xs text-fg-muted",
|
|
1648
1951
|
children: l
|
|
1649
|
-
}), c !== void 0 && /* @__PURE__ */
|
|
1952
|
+
}), c !== void 0 && /* @__PURE__ */ k("span", {
|
|
1650
1953
|
className: "h-4 w-4 text-fg-muted/30",
|
|
1651
1954
|
children: c
|
|
1652
1955
|
})]
|
|
1653
1956
|
}),
|
|
1654
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ A("div", {
|
|
1655
1958
|
className: "flex items-end gap-3",
|
|
1656
|
-
children: [/* @__PURE__ */
|
|
1657
|
-
className: e("font-bold text-fg tabular-nums",
|
|
1658
|
-
children: [
|
|
1959
|
+
children: [/* @__PURE__ */ A("div", {
|
|
1960
|
+
className: e("font-bold text-fg tabular-nums", lt[f]),
|
|
1961
|
+
children: [E, h !== void 0 && /* @__PURE__ */ k("span", {
|
|
1659
1962
|
className: "ml-1 text-xs font-normal text-fg-muted",
|
|
1660
1963
|
children: h
|
|
1661
1964
|
})]
|
|
1662
|
-
}), m !== void 0 && y !== null && /* @__PURE__ */
|
|
1965
|
+
}), m !== void 0 && y !== null && /* @__PURE__ */ A("div", {
|
|
1663
1966
|
className: e("mb-0.5 flex items-center gap-0.5 text-xs font-medium", b),
|
|
1664
1967
|
children: [
|
|
1665
|
-
y === "up" && /* @__PURE__ */
|
|
1666
|
-
y === "down" && /* @__PURE__ */
|
|
1667
|
-
y === "neutral" && /* @__PURE__ */
|
|
1668
|
-
/* @__PURE__ */
|
|
1968
|
+
y === "up" && /* @__PURE__ */ k(X, {}),
|
|
1969
|
+
y === "down" && /* @__PURE__ */ k(Z, {}),
|
|
1970
|
+
y === "neutral" && /* @__PURE__ */ k(Q, {}),
|
|
1971
|
+
/* @__PURE__ */ k("span", { children: y === "neutral" ? "0%" : `${m > 0 ? "+" : ""}${m}%` })
|
|
1669
1972
|
]
|
|
1670
1973
|
})]
|
|
1671
1974
|
}),
|
|
1672
|
-
n !== void 0 && m === void 0 && /* @__PURE__ */
|
|
1975
|
+
n !== void 0 && m === void 0 && /* @__PURE__ */ A("div", {
|
|
1673
1976
|
className: e("inline-flex items-center gap-0.5 text-xs font-medium", Y[r]),
|
|
1674
|
-
children: [/* @__PURE__ */
|
|
1977
|
+
children: [/* @__PURE__ */ k(v, {}), n]
|
|
1675
1978
|
}),
|
|
1676
|
-
|
|
1979
|
+
S !== null && /* @__PURE__ */ k("svg", {
|
|
1677
1980
|
className: "mt-1",
|
|
1678
1981
|
height: 24,
|
|
1679
1982
|
viewBox: "0 0 80 24",
|
|
1680
1983
|
width: 80,
|
|
1681
|
-
children: /* @__PURE__ */
|
|
1682
|
-
d:
|
|
1984
|
+
children: /* @__PURE__ */ k("path", {
|
|
1985
|
+
d: S,
|
|
1683
1986
|
fill: "none",
|
|
1684
|
-
stroke:
|
|
1987
|
+
stroke: x,
|
|
1685
1988
|
strokeLinecap: "round",
|
|
1686
1989
|
strokeLinejoin: "round",
|
|
1687
1990
|
strokeWidth: 1.5
|
|
1688
1991
|
})
|
|
1689
1992
|
}),
|
|
1690
|
-
a !== void 0 && /* @__PURE__ */
|
|
1993
|
+
a !== void 0 && /* @__PURE__ */ k("div", {
|
|
1691
1994
|
className: "text-[11px] text-fg-muted",
|
|
1692
1995
|
children: a
|
|
1693
1996
|
}),
|
|
1694
|
-
o !== void 0 && /* @__PURE__ */
|
|
1997
|
+
o !== void 0 && /* @__PURE__ */ k("div", {
|
|
1695
1998
|
className: "mt-3 border-t border-border/20 pt-2 text-[10px] text-fg-muted/50",
|
|
1696
1999
|
children: o
|
|
1697
2000
|
})
|
|
1698
2001
|
]
|
|
1699
2002
|
});
|
|
1700
|
-
}),
|
|
2003
|
+
}), pt = {
|
|
1701
2004
|
2: "grid-cols-2",
|
|
1702
2005
|
3: "grid-cols-3",
|
|
1703
2006
|
4: "grid-cols-4"
|
|
1704
|
-
},
|
|
1705
|
-
return /* @__PURE__ */
|
|
2007
|
+
}, mt = x(function({ children: t, columns: n = 3, className: r }, i) {
|
|
2008
|
+
return /* @__PURE__ */ k("div", {
|
|
1706
2009
|
ref: i,
|
|
1707
|
-
className: e("grid gds-gap-lg",
|
|
2010
|
+
className: e("grid gds-gap-lg", pt[n], r),
|
|
1708
2011
|
"data-component": "stat-grid",
|
|
1709
2012
|
children: t
|
|
1710
2013
|
});
|
|
1711
2014
|
});
|
|
1712
2015
|
//#endregion
|
|
1713
2016
|
//#region src/l7-patterns/stats-card.tsx
|
|
1714
|
-
function
|
|
2017
|
+
function ht({ data: e }) {
|
|
1715
2018
|
if (e.length < 2) return null;
|
|
1716
2019
|
let t = Math.max(...e), n = Math.min(...e), r = t - n;
|
|
1717
|
-
return /* @__PURE__ */
|
|
2020
|
+
return /* @__PURE__ */ k("svg", {
|
|
1718
2021
|
className: "mt-2",
|
|
1719
2022
|
height: 24,
|
|
1720
2023
|
viewBox: "0 0 64 24",
|
|
1721
2024
|
width: 64,
|
|
1722
|
-
children: /* @__PURE__ */
|
|
2025
|
+
children: /* @__PURE__ */ k("polyline", {
|
|
1723
2026
|
fill: "none",
|
|
1724
2027
|
points: e.map((t, i) => `${i / (e.length - 1) * 64},${r > 0 ? 24 - (t - n) / r * 24 : 24 / 2}`).join(" "),
|
|
1725
2028
|
stroke: "var(--gds-accent)",
|
|
@@ -1727,25 +2030,25 @@ function $({ data: e }) {
|
|
|
1727
2030
|
})
|
|
1728
2031
|
});
|
|
1729
2032
|
}
|
|
1730
|
-
var
|
|
2033
|
+
var gt = x(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass: s, className: c }, l) {
|
|
1731
2034
|
let u = a !== void 0 && a >= 0;
|
|
1732
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ A("div", {
|
|
1733
2036
|
ref: l,
|
|
1734
2037
|
className: e("relative gds-ctx gds-radius-card border gds-pad-x-lg gds-pad-y-lg", s === !0 ? e(t(s), "border-white/10 bg-bg/60") : "border-border bg-surface", c),
|
|
1735
2038
|
"data-component": "stats-card",
|
|
1736
2039
|
children: [
|
|
1737
|
-
/* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ A("div", {
|
|
1738
2041
|
className: "flex items-start justify-between",
|
|
1739
|
-
children: [/* @__PURE__ */
|
|
2042
|
+
children: [/* @__PURE__ */ A("div", {
|
|
1740
2043
|
className: "flex items-center gap-2",
|
|
1741
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
2044
|
+
children: [n !== void 0 && /* @__PURE__ */ k("div", {
|
|
1742
2045
|
className: "text-fg-muted/50",
|
|
1743
2046
|
children: n
|
|
1744
|
-
}), /* @__PURE__ */
|
|
2047
|
+
}), /* @__PURE__ */ k("p", {
|
|
1745
2048
|
className: "gds-text-body text-fg-muted",
|
|
1746
2049
|
children: r
|
|
1747
2050
|
})]
|
|
1748
|
-
}), a !== void 0 && /* @__PURE__ */
|
|
2051
|
+
}), a !== void 0 && /* @__PURE__ */ A("span", {
|
|
1749
2052
|
className: e("inline-flex items-center gap-0.5 rounded-full px-1.5 py-0.5 text-[10px] font-medium", u ? "bg-success/10 text-success" : "bg-danger/10 text-danger"),
|
|
1750
2053
|
children: [
|
|
1751
2054
|
u ? "↑" : "↓",
|
|
@@ -1755,74 +2058,74 @@ var at = v(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass
|
|
|
1755
2058
|
]
|
|
1756
2059
|
})]
|
|
1757
2060
|
}),
|
|
1758
|
-
/* @__PURE__ */
|
|
2061
|
+
/* @__PURE__ */ k("p", {
|
|
1759
2062
|
className: "mt-1 text-2xl font-bold text-fg",
|
|
1760
2063
|
children: i
|
|
1761
2064
|
}),
|
|
1762
|
-
o !== void 0 && o.length >= 2 && /* @__PURE__ */
|
|
2065
|
+
o !== void 0 && o.length >= 2 && /* @__PURE__ */ k(ht, { data: o })
|
|
1763
2066
|
]
|
|
1764
2067
|
});
|
|
1765
|
-
}),
|
|
1766
|
-
return /* @__PURE__ */
|
|
2068
|
+
}), _t = x(function({ code: t, title: n, description: r, action: i, secondaryAction: a, illustration: o, className: s }, c) {
|
|
2069
|
+
return /* @__PURE__ */ A("div", {
|
|
1767
2070
|
ref: c,
|
|
1768
2071
|
className: e("flex min-h-[60vh] flex-col items-center justify-center gap-4 text-center", s),
|
|
1769
2072
|
"data-component": "status-page",
|
|
1770
2073
|
children: [
|
|
1771
|
-
o !== void 0 && /* @__PURE__ */
|
|
2074
|
+
o !== void 0 && /* @__PURE__ */ k("div", {
|
|
1772
2075
|
className: "mb-2",
|
|
1773
2076
|
children: o
|
|
1774
2077
|
}),
|
|
1775
|
-
t !== void 0 && /* @__PURE__ */
|
|
2078
|
+
t !== void 0 && /* @__PURE__ */ k("p", {
|
|
1776
2079
|
className: "text-6xl font-bold text-fg-muted/10",
|
|
1777
2080
|
children: t
|
|
1778
2081
|
}),
|
|
1779
|
-
/* @__PURE__ */
|
|
2082
|
+
/* @__PURE__ */ k("h1", {
|
|
1780
2083
|
className: "text-xl font-semibold text-fg",
|
|
1781
2084
|
children: n
|
|
1782
2085
|
}),
|
|
1783
|
-
r !== void 0 && /* @__PURE__ */
|
|
2086
|
+
r !== void 0 && /* @__PURE__ */ k("p", {
|
|
1784
2087
|
className: "max-w-md text-fg-muted",
|
|
1785
2088
|
children: r
|
|
1786
2089
|
}),
|
|
1787
|
-
(i !== void 0 || a !== void 0) && /* @__PURE__ */
|
|
2090
|
+
(i !== void 0 || a !== void 0) && /* @__PURE__ */ A("div", {
|
|
1788
2091
|
className: "mt-2 flex items-center gap-3",
|
|
1789
2092
|
children: [i, a]
|
|
1790
2093
|
})
|
|
1791
2094
|
]
|
|
1792
2095
|
});
|
|
1793
|
-
}),
|
|
1794
|
-
let [l, u] =
|
|
2096
|
+
}), vt = x(function({ steps: t, onComplete: r, completeLabel: i = "Complete", glass: a = !1, className: o, ...s }, c) {
|
|
2097
|
+
let [l, u] = D(0), d = l === 0, f = l === t.length - 1, p = t.map((e) => ({
|
|
1795
2098
|
label: e.title,
|
|
1796
2099
|
description: e.description
|
|
1797
2100
|
}));
|
|
1798
|
-
return /* @__PURE__ */
|
|
2101
|
+
return /* @__PURE__ */ A("div", {
|
|
1799
2102
|
ref: c,
|
|
1800
2103
|
className: e("flex flex-col rounded-lg border border-border p-6", a ? "bg-bg/80 backdrop-blur-xl" : "bg-bg-secondary", o),
|
|
1801
2104
|
"data-component": "stepper-form",
|
|
1802
2105
|
...s,
|
|
1803
2106
|
children: [
|
|
1804
|
-
/* @__PURE__ */
|
|
2107
|
+
/* @__PURE__ */ k(_, {
|
|
1805
2108
|
steps: p,
|
|
1806
2109
|
current: l,
|
|
1807
2110
|
className: "mb-6"
|
|
1808
2111
|
}),
|
|
1809
|
-
/* @__PURE__ */
|
|
2112
|
+
/* @__PURE__ */ k("div", {
|
|
1810
2113
|
className: "min-h-[120px] flex-1",
|
|
1811
2114
|
children: t[l]?.content
|
|
1812
2115
|
}),
|
|
1813
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ A("div", {
|
|
1814
2117
|
className: "mt-6 flex items-center justify-between",
|
|
1815
|
-
children: [/* @__PURE__ */
|
|
2118
|
+
children: [/* @__PURE__ */ k(n, {
|
|
1816
2119
|
variant: "secondary",
|
|
1817
2120
|
size: "sm",
|
|
1818
2121
|
disabled: d,
|
|
1819
2122
|
onClick: () => u((e) => e - 1),
|
|
1820
2123
|
children: "Previous"
|
|
1821
|
-
}), f ? /* @__PURE__ */
|
|
2124
|
+
}), f ? /* @__PURE__ */ k(n, {
|
|
1822
2125
|
size: "sm",
|
|
1823
2126
|
onClick: r,
|
|
1824
2127
|
children: i
|
|
1825
|
-
}) : /* @__PURE__ */
|
|
2128
|
+
}) : /* @__PURE__ */ k(n, {
|
|
1826
2129
|
size: "sm",
|
|
1827
2130
|
onClick: () => u((e) => e + 1),
|
|
1828
2131
|
children: "Next"
|
|
@@ -1830,14 +2133,14 @@ var at = v(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass
|
|
|
1830
2133
|
})
|
|
1831
2134
|
]
|
|
1832
2135
|
});
|
|
1833
|
-
}),
|
|
1834
|
-
let [c, l] =
|
|
1835
|
-
return
|
|
2136
|
+
}), yt = x(function({ children: n, className: r, glass: i = !0, threshold: a = 0, ...o }, s) {
|
|
2137
|
+
let [c, l] = D(!1);
|
|
2138
|
+
return w(() => {
|
|
1836
2139
|
function e() {
|
|
1837
2140
|
l(window.scrollY > a);
|
|
1838
2141
|
}
|
|
1839
2142
|
return window.addEventListener("scroll", e, { passive: !0 }), () => window.removeEventListener("scroll", e);
|
|
1840
|
-
}, [a]), /* @__PURE__ */
|
|
2143
|
+
}, [a]), /* @__PURE__ */ k("div", {
|
|
1841
2144
|
className: e("sticky top-0 z-40 transition-[background-color,box-shadow] duration-200", c && "shadow-md bg-bg/80", c && i && t(!0), r),
|
|
1842
2145
|
"data-component": "sticky-header",
|
|
1843
2146
|
"data-sticky": c,
|
|
@@ -1845,41 +2148,41 @@ var at = v(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass
|
|
|
1845
2148
|
...o,
|
|
1846
2149
|
children: n
|
|
1847
2150
|
});
|
|
1848
|
-
}),
|
|
1849
|
-
return /* @__PURE__ */
|
|
2151
|
+
}), bt = x(function({ quote: n, author: r, role: i, avatar: a, rating: o, glass: s, className: c }, l) {
|
|
2152
|
+
return /* @__PURE__ */ A("div", {
|
|
1850
2153
|
ref: l,
|
|
1851
2154
|
className: e("gds-ctx gds-radius-card border gds-pad-x-lg gds-pad-y-lg", s === !0 ? e(t(s), "border-white/10 bg-bg/60") : "border-border bg-surface", c),
|
|
1852
2155
|
"data-component": "testimonial",
|
|
1853
2156
|
children: [
|
|
1854
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ k("svg", {
|
|
1855
2158
|
className: "mb-3 h-6 w-6 text-fg-muted opacity-30",
|
|
1856
2159
|
viewBox: "0 0 24 24",
|
|
1857
2160
|
fill: "currentColor",
|
|
1858
|
-
children: /* @__PURE__ */
|
|
2161
|
+
children: /* @__PURE__ */ k("path", { d: "M4.583 17.321C3.553 16.227 3 15 3 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378C7.06 7.752 6.14 9.87 5.94 11.501c.26-.058.527-.088.8-.088 1.656 0 2.96 1.283 2.96 2.87 0 1.586-1.304 2.87-2.96 2.87-.83 0-1.572-.358-2.157-.832zM14.583 17.321C13.553 16.227 13 15 13 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-2.863 1.551-3.783 3.669-3.983 5.3.26-.058.527-.088.8-.088 1.656 0 2.96 1.283 2.96 2.87 0 1.586-1.304 2.87-2.96 2.87-.83 0-1.572-.358-2.157-.832z" })
|
|
1859
2162
|
}),
|
|
1860
|
-
/* @__PURE__ */
|
|
2163
|
+
/* @__PURE__ */ k("p", {
|
|
1861
2164
|
className: "gds-text-body italic text-fg",
|
|
1862
2165
|
children: n
|
|
1863
2166
|
}),
|
|
1864
|
-
o !== void 0 && /* @__PURE__ */
|
|
2167
|
+
o !== void 0 && /* @__PURE__ */ k("div", {
|
|
1865
2168
|
className: "mt-3 flex gap-0.5",
|
|
1866
|
-
children: Array.from({ length: 5 }, (t, n) => /* @__PURE__ */
|
|
2169
|
+
children: Array.from({ length: 5 }, (t, n) => /* @__PURE__ */ k("svg", {
|
|
1867
2170
|
className: e("h-4 w-4", n < o ? "text-warning" : "text-fg-muted/30"),
|
|
1868
2171
|
viewBox: "0 0 20 20",
|
|
1869
2172
|
fill: "currentColor",
|
|
1870
|
-
children: /* @__PURE__ */
|
|
2173
|
+
children: /* @__PURE__ */ k("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" })
|
|
1871
2174
|
}, n))
|
|
1872
2175
|
}),
|
|
1873
|
-
/* @__PURE__ */
|
|
2176
|
+
/* @__PURE__ */ A("div", {
|
|
1874
2177
|
className: "mt-4 flex items-center gap-3",
|
|
1875
|
-
children: [a !== void 0 && /* @__PURE__ */
|
|
2178
|
+
children: [a !== void 0 && /* @__PURE__ */ k("img", {
|
|
1876
2179
|
src: a,
|
|
1877
2180
|
alt: r,
|
|
1878
2181
|
className: "h-10 w-10 rounded-full object-cover"
|
|
1879
|
-
}), /* @__PURE__ */
|
|
2182
|
+
}), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
1880
2183
|
className: "text-sm font-medium text-fg",
|
|
1881
2184
|
children: r
|
|
1882
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
2185
|
+
}), i !== void 0 && /* @__PURE__ */ k("p", {
|
|
1883
2186
|
className: "text-xs text-fg-muted",
|
|
1884
2187
|
children: i
|
|
1885
2188
|
})] })]
|
|
@@ -1889,18 +2192,18 @@ var at = v(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass
|
|
|
1889
2192
|
});
|
|
1890
2193
|
//#endregion
|
|
1891
2194
|
//#region src/l7-patterns/timeline-steps.tsx
|
|
1892
|
-
function
|
|
1893
|
-
return /* @__PURE__ */
|
|
2195
|
+
function xt({ steps: t, className: n }) {
|
|
2196
|
+
return /* @__PURE__ */ k("div", {
|
|
1894
2197
|
"data-component": "timeline-steps",
|
|
1895
2198
|
className: e("flex items-start", n),
|
|
1896
|
-
children: t.map((n, r) => /* @__PURE__ */
|
|
2199
|
+
children: t.map((n, r) => /* @__PURE__ */ A("div", {
|
|
1897
2200
|
className: "flex flex-1 items-start",
|
|
1898
|
-
children: [/* @__PURE__ */
|
|
2201
|
+
children: [/* @__PURE__ */ A("div", {
|
|
1899
2202
|
className: "flex flex-col items-center",
|
|
1900
|
-
children: [/* @__PURE__ */
|
|
2203
|
+
children: [/* @__PURE__ */ k("div", {
|
|
1901
2204
|
"data-status": n.status,
|
|
1902
2205
|
className: e("flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-semibold", n.status === "completed" && "bg-success text-white", n.status === "current" && "bg-accent text-accent-fg animate-pulse", n.status === "upcoming" && "bg-bg-tertiary text-fg-muted"),
|
|
1903
|
-
children: n.status === "completed" ? /* @__PURE__ */
|
|
2206
|
+
children: n.status === "completed" ? /* @__PURE__ */ k("svg", {
|
|
1904
2207
|
width: "14",
|
|
1905
2208
|
height: "14",
|
|
1906
2209
|
viewBox: "0 0 24 24",
|
|
@@ -1909,27 +2212,27 @@ function ut({ steps: t, className: n }) {
|
|
|
1909
2212
|
strokeWidth: "3",
|
|
1910
2213
|
strokeLinecap: "round",
|
|
1911
2214
|
strokeLinejoin: "round",
|
|
1912
|
-
children: /* @__PURE__ */
|
|
2215
|
+
children: /* @__PURE__ */ k("polyline", { points: "20 6 9 17 4 12" })
|
|
1913
2216
|
}) : r + 1
|
|
1914
|
-
}), /* @__PURE__ */
|
|
2217
|
+
}), /* @__PURE__ */ A("div", {
|
|
1915
2218
|
className: "mt-2 text-center",
|
|
1916
|
-
children: [/* @__PURE__ */
|
|
2219
|
+
children: [/* @__PURE__ */ k("div", {
|
|
1917
2220
|
className: "text-xs font-medium text-fg",
|
|
1918
2221
|
children: n.label
|
|
1919
|
-
}), n.description !== void 0 && /* @__PURE__ */
|
|
2222
|
+
}), n.description !== void 0 && /* @__PURE__ */ k("div", {
|
|
1920
2223
|
className: "mt-0.5 text-[10px] text-fg-muted",
|
|
1921
2224
|
children: n.description
|
|
1922
2225
|
})]
|
|
1923
2226
|
})]
|
|
1924
|
-
}), r < t.length - 1 && /* @__PURE__ */
|
|
2227
|
+
}), r < t.length - 1 && /* @__PURE__ */ k("div", { className: e("mt-4 h-0.5 flex-1 mx-2", n.status === "completed" ? "bg-success" : "bg-border") })]
|
|
1925
2228
|
}, n.label))
|
|
1926
2229
|
});
|
|
1927
2230
|
}
|
|
1928
2231
|
//#endregion
|
|
1929
2232
|
//#region src/l7-patterns/toolbar.tsx
|
|
1930
|
-
var
|
|
2233
|
+
var St = x(function({ children: n, className: r, glass: i, position: a = "top", ...o }, s) {
|
|
1931
2234
|
let c = a === "floating", l = i ?? c;
|
|
1932
|
-
return /* @__PURE__ */
|
|
2235
|
+
return /* @__PURE__ */ k("div", {
|
|
1933
2236
|
ref: s,
|
|
1934
2237
|
className: e("flex items-center gds-gap-sm gds-pad-x gds-pad-y-sm", a === "top" && "border-b border-border", a === "bottom" && "border-t border-border", c && "rounded-full gds-shadow-lg", l === !0 ? e(t(l), "border-white/10 bg-bg/60") : !c && "bg-surface", c && l !== !0 && "border border-border bg-surface", r),
|
|
1935
2238
|
"data-component": "toolbar",
|
|
@@ -1938,25 +2241,25 @@ var dt = v(function({ children: n, className: r, glass: i, position: a = "top",
|
|
|
1938
2241
|
...o,
|
|
1939
2242
|
children: n
|
|
1940
2243
|
});
|
|
1941
|
-
}),
|
|
1942
|
-
return /* @__PURE__ */
|
|
2244
|
+
}), Ct = x(function({ steps: t, currentStep: n, children: r, actions: i, className: a, ...o }, s) {
|
|
2245
|
+
return /* @__PURE__ */ A("div", {
|
|
1943
2246
|
ref: s,
|
|
1944
2247
|
className: e("flex min-h-0 flex-1 flex-col gds-gap", a),
|
|
1945
2248
|
"data-component": "wizard-layout",
|
|
1946
2249
|
...o,
|
|
1947
2250
|
children: [
|
|
1948
|
-
/* @__PURE__ */
|
|
2251
|
+
/* @__PURE__ */ k("div", {
|
|
1949
2252
|
className: "shrink-0 gds-pad-x",
|
|
1950
|
-
children: /* @__PURE__ */
|
|
2253
|
+
children: /* @__PURE__ */ k(g, {
|
|
1951
2254
|
steps: t,
|
|
1952
2255
|
current: n
|
|
1953
2256
|
})
|
|
1954
2257
|
}),
|
|
1955
|
-
/* @__PURE__ */
|
|
2258
|
+
/* @__PURE__ */ k("div", {
|
|
1956
2259
|
className: "min-h-0 flex-1 overflow-auto gds-pad-x",
|
|
1957
2260
|
children: r
|
|
1958
2261
|
}),
|
|
1959
|
-
i !== void 0 && /* @__PURE__ */
|
|
2262
|
+
i !== void 0 && /* @__PURE__ */ k("div", {
|
|
1960
2263
|
className: "flex shrink-0 items-center justify-end gds-gap gds-pad-x gds-pad-y border-t border-border",
|
|
1961
2264
|
children: i
|
|
1962
2265
|
})
|
|
@@ -1964,6 +2267,6 @@ var dt = v(function({ children: n, className: r, glass: i, position: a = "top",
|
|
|
1964
2267
|
});
|
|
1965
2268
|
});
|
|
1966
2269
|
//#endregion
|
|
1967
|
-
export {
|
|
2270
|
+
export { N as $, Pe as A, ve as B, Ve as C, Le as D, Re as E, De as F, V as G, pe as H, xe as I, R as J, B as K, G as L, Ae as M, ke as N, Ie as O, Oe as P, P as Q, be as R, Ue as S, Be as T, U, _e as V, H as W, I as X, L as Y, F as Z, Qe as _, yt as a, re as at, Ge as b, gt as c, ct as d, M as et, st as f, $e as g, J as h, bt as i, ie as it, Ne as j, Fe as k, mt as l, et as m, St as n, ce as nt, vt as o, ee as ot, at as p, z as q, xt as r, ae as rt, _t as s, Ct as t, ue as tt, $ as u, qe as v, He as w, We as x, Ke as y, ye as z };
|
|
1968
2271
|
|
|
1969
|
-
//# sourceMappingURL=l7-patterns-
|
|
2272
|
+
//# sourceMappingURL=l7-patterns-Dn7X2pQC.js.map
|