@goliapkg/gds 1.4.3 → 1.5.1
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/index.js +15 -15
- package/dist/l3-atoms/animated-border.d.ts +9 -0
- package/dist/l3-atoms/animated-border.d.ts.map +1 -0
- package/dist/l3-atoms/index.d.ts +12 -0
- package/dist/l3-atoms/index.d.ts.map +1 -1
- package/dist/l3-atoms/index.js +6 -6
- package/dist/l3-atoms/number-flow.d.ts +8 -0
- package/dist/l3-atoms/number-flow.d.ts.map +1 -0
- package/dist/l3-atoms/orbit.d.ts +10 -0
- package/dist/l3-atoms/orbit.d.ts.map +1 -0
- package/dist/l3-atoms/stagger.d.ts +10 -0
- package/dist/l3-atoms/stagger.d.ts.map +1 -0
- package/dist/l3-atoms/trend-indicator.d.ts +9 -0
- package/dist/l3-atoms/trend-indicator.d.ts.map +1 -0
- package/dist/l3-atoms/volume-slider.d.ts +8 -0
- package/dist/l3-atoms/volume-slider.d.ts.map +1 -0
- package/dist/{l3-atoms-BxDg3rXt.js → l3-atoms-LtIFAn9Y.js} +553 -421
- package/dist/l3-atoms-LtIFAn9Y.js.map +1 -0
- package/dist/l4-molecules/activity-log.d.ts +13 -0
- package/dist/l4-molecules/activity-log.d.ts.map +1 -0
- package/dist/l4-molecules/bottom-bar.d.ts +7 -0
- package/dist/l4-molecules/bottom-bar.d.ts.map +1 -0
- package/dist/l4-molecules/circular-menu.d.ts +14 -0
- package/dist/l4-molecules/circular-menu.d.ts.map +1 -0
- package/dist/l4-molecules/collapsible.d.ts +12 -2
- package/dist/l4-molecules/collapsible.d.ts.map +1 -1
- package/dist/l4-molecules/command-bar-float.d.ts +13 -0
- package/dist/l4-molecules/command-bar-float.d.ts.map +1 -0
- package/dist/l4-molecules/command-bar.d.ts +16 -0
- package/dist/l4-molecules/command-bar.d.ts.map +1 -0
- package/dist/l4-molecules/comparison-bar.d.ts +13 -0
- package/dist/l4-molecules/comparison-bar.d.ts.map +1 -0
- package/dist/l4-molecules/countdown-timer.d.ts +8 -0
- package/dist/l4-molecules/countdown-timer.d.ts.map +1 -0
- package/dist/l4-molecules/feature-flag.d.ts +8 -0
- package/dist/l4-molecules/feature-flag.d.ts.map +1 -0
- package/dist/l4-molecules/flip-card.d.ts +9 -0
- package/dist/l4-molecules/flip-card.d.ts.map +1 -0
- package/dist/l4-molecules/glitch-text.d.ts +8 -0
- package/dist/l4-molecules/glitch-text.d.ts.map +1 -0
- package/dist/l4-molecules/index.d.ts +54 -2
- package/dist/l4-molecules/index.d.ts.map +1 -1
- package/dist/l4-molecules/index.js +3 -3
- package/dist/l4-molecules/live-metric.d.ts +9 -0
- package/dist/l4-molecules/live-metric.d.ts.map +1 -0
- package/dist/l4-molecules/matrix-rain.d.ts +9 -0
- package/dist/l4-molecules/matrix-rain.d.ts.map +1 -0
- package/dist/l4-molecules/media-container.d.ts +11 -0
- package/dist/l4-molecules/media-container.d.ts.map +1 -0
- package/dist/l4-molecules/morphing-shape.d.ts +8 -0
- package/dist/l4-molecules/morphing-shape.d.ts.map +1 -0
- package/dist/l4-molecules/network-status.d.ts +7 -0
- package/dist/l4-molecules/network-status.d.ts.map +1 -0
- package/dist/l4-molecules/noise-overlay.d.ts +7 -0
- package/dist/l4-molecules/noise-overlay.d.ts.map +1 -0
- package/dist/l4-molecules/num-table.d.ts +19 -0
- package/dist/l4-molecules/num-table.d.ts.map +1 -0
- package/dist/l4-molecules/otp-input.d.ts +9 -0
- package/dist/l4-molecules/otp-input.d.ts.map +1 -0
- package/dist/l4-molecules/particle-field.d.ts +9 -0
- package/dist/l4-molecules/particle-field.d.ts.map +1 -0
- package/dist/l4-molecules/reveal.d.ts +9 -0
- package/dist/l4-molecules/reveal.d.ts.map +1 -0
- package/dist/l4-molecules/scoreboard.d.ts +8 -0
- package/dist/l4-molecules/scoreboard.d.ts.map +1 -0
- package/dist/l4-molecules/stat-trend.d.ts +9 -0
- package/dist/l4-molecules/stat-trend.d.ts.map +1 -0
- package/dist/l4-molecules/text-reveal.d.ts +8 -0
- package/dist/l4-molecules/text-reveal.d.ts.map +1 -0
- package/dist/l4-molecules/text-scramble.d.ts +8 -0
- package/dist/l4-molecules/text-scramble.d.ts.map +1 -0
- package/dist/l4-molecules/tilt-card.d.ts +9 -0
- package/dist/l4-molecules/tilt-card.d.ts.map +1 -0
- package/dist/l4-molecules/upload-progress.d.ts +14 -0
- package/dist/l4-molecules/upload-progress.d.ts.map +1 -0
- package/dist/{l4-molecules-DftsX-gO.js → l4-molecules-Bnt38HxY.js} +1077 -197
- package/dist/l4-molecules-Bnt38HxY.js.map +1 -0
- package/dist/l5-organisms/index.d.ts +4 -4
- package/dist/l5-organisms/index.d.ts.map +1 -1
- package/dist/l5-organisms/index.js +2 -2
- package/dist/l5-organisms/kanban.d.ts +13 -0
- package/dist/l5-organisms/kanban.d.ts.map +1 -1
- package/dist/l5-organisms/timeline.d.ts +16 -0
- package/dist/l5-organisms/timeline.d.ts.map +1 -1
- package/dist/{l5-organisms-Di1Bm_R6.js → l5-organisms-C7LXv0jT.js} +205 -125
- package/dist/l5-organisms-C7LXv0jT.js.map +1 -0
- package/dist/l6-charts/choropleth-map.d.ts +14 -0
- package/dist/l6-charts/choropleth-map.d.ts.map +1 -0
- package/dist/l6-charts/index.d.ts +6 -0
- package/dist/l6-charts/index.d.ts.map +1 -1
- package/dist/l6-charts/index.js +2 -2
- package/dist/l6-charts/polar-area-chart.d.ts +13 -0
- package/dist/l6-charts/polar-area-chart.d.ts.map +1 -0
- package/dist/l6-charts/stock-ticker.d.ts +12 -0
- package/dist/l6-charts/stock-ticker.d.ts.map +1 -0
- package/dist/{l6-charts-Bn9RQLbe.js → l6-charts-DPMj1m0E.js} +345 -148
- package/dist/l6-charts-DPMj1m0E.js.map +1 -0
- package/dist/l7-patterns/index.d.ts +2 -0
- package/dist/l7-patterns/index.d.ts.map +1 -1
- package/dist/l7-patterns/index.js +2 -2
- package/dist/l7-patterns/stat.d.ts +22 -0
- package/dist/l7-patterns/stat.d.ts.map +1 -0
- package/dist/{l7-patterns-BCpw0-CS.js → l7-patterns-8fc4b3eE.js} +605 -462
- package/dist/l7-patterns-8fc4b3eE.js.map +1 -0
- package/package.json +1 -1
- package/dist/l3-atoms-BxDg3rXt.js.map +0 -1
- package/dist/l4-molecules-DftsX-gO.js.map +0 -1
- package/dist/l5-organisms-Di1Bm_R6.js.map +0 -1
- package/dist/l6-charts-Bn9RQLbe.js.map +0 -1
- package/dist/l7-patterns-BCpw0-CS.js.map +0 -1
|
@@ -7,83 +7,83 @@ import { t as l } from "./skeleton-C9FFZSYN.js";
|
|
|
7
7
|
import { t as u } from "./avatar-l3SaMCmU.js";
|
|
8
8
|
import { n as d, t as f } from "./resize-handle-ilSc7QRM.js";
|
|
9
9
|
import { i as p, n as m, r as h, t as g } from "./stepper-DWJfv7TA.js";
|
|
10
|
-
import { Children as _, forwardRef as v, useCallback as y, useEffect as b,
|
|
11
|
-
import { Fragment as
|
|
10
|
+
import { Children as _, forwardRef as v, useCallback as y, useEffect as b, useMemo as x, useRef as S, useState as C } from "react";
|
|
11
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
12
12
|
//#region src/l7-patterns/action-bar.tsx
|
|
13
|
-
var
|
|
13
|
+
var D = {
|
|
14
14
|
between: "justify-between",
|
|
15
15
|
center: "justify-center",
|
|
16
16
|
end: "justify-end",
|
|
17
17
|
start: "justify-start"
|
|
18
|
-
},
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
}, O = v(function({ children: n, className: r, glass: i = !0, justify: a = "end", position: o = "bottom" }, s) {
|
|
19
|
+
return /* @__PURE__ */ T("div", {
|
|
20
20
|
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",
|
|
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", D[a], i === !0 ? e(t(i), "border-white/10 bg-bg/60") : "border-border bg-surface", r),
|
|
22
22
|
"data-component": "action-bar",
|
|
23
23
|
children: n
|
|
24
24
|
});
|
|
25
|
-
}),
|
|
26
|
-
return /* @__PURE__ */
|
|
25
|
+
}), ee = v(function({ sidebar: t, topbar: n, children: r, sidebarWidth: i = 240, className: a }, o) {
|
|
26
|
+
return /* @__PURE__ */ E("div", {
|
|
27
27
|
ref: o,
|
|
28
28
|
className: e("flex h-screen min-h-0 bg-bg", a),
|
|
29
29
|
"data-component": "admin-layout",
|
|
30
|
-
children: [/* @__PURE__ */
|
|
30
|
+
children: [/* @__PURE__ */ T("aside", {
|
|
31
31
|
className: "shrink-0 overflow-y-auto border-r border-border bg-surface",
|
|
32
32
|
style: { width: i },
|
|
33
33
|
children: t
|
|
34
|
-
}), /* @__PURE__ */
|
|
34
|
+
}), /* @__PURE__ */ E("div", {
|
|
35
35
|
className: "flex flex-1 flex-col min-w-0",
|
|
36
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
36
|
+
children: [n !== void 0 && /* @__PURE__ */ T("header", {
|
|
37
37
|
className: "sticky top-0 z-10 shrink-0 border-b border-border bg-surface/80 backdrop-blur-sm",
|
|
38
38
|
children: n
|
|
39
|
-
}), /* @__PURE__ */
|
|
39
|
+
}), /* @__PURE__ */ T("main", {
|
|
40
40
|
className: "flex-1 overflow-auto",
|
|
41
41
|
children: r
|
|
42
42
|
})]
|
|
43
43
|
})]
|
|
44
44
|
});
|
|
45
|
-
}),
|
|
46
|
-
return /* @__PURE__ */
|
|
45
|
+
}), te = v(function({ charts: t, className: n, data: r, metrics: i }, a) {
|
|
46
|
+
return /* @__PURE__ */ E("div", {
|
|
47
47
|
className: e("flex flex-col gds-gap", n),
|
|
48
48
|
"data-component": "analytics-dashboard",
|
|
49
49
|
ref: a,
|
|
50
50
|
children: [
|
|
51
|
-
i !== void 0 && /* @__PURE__ */
|
|
51
|
+
i !== void 0 && /* @__PURE__ */ T("section", {
|
|
52
52
|
className: "flex flex-wrap gds-gap",
|
|
53
53
|
"data-slot": "metrics",
|
|
54
54
|
children: i
|
|
55
55
|
}),
|
|
56
|
-
t !== void 0 && /* @__PURE__ */
|
|
56
|
+
t !== void 0 && /* @__PURE__ */ T("section", {
|
|
57
57
|
className: "flex flex-col gds-gap",
|
|
58
58
|
"data-slot": "charts",
|
|
59
59
|
children: t
|
|
60
60
|
}),
|
|
61
|
-
r !== void 0 && /* @__PURE__ */
|
|
61
|
+
r !== void 0 && /* @__PURE__ */ T("section", {
|
|
62
62
|
className: "flex flex-col gds-gap",
|
|
63
63
|
"data-slot": "data",
|
|
64
64
|
children: r
|
|
65
65
|
})
|
|
66
66
|
]
|
|
67
67
|
});
|
|
68
|
-
}),
|
|
68
|
+
}), ne = {
|
|
69
69
|
sm: "gds-gap-sm",
|
|
70
70
|
default: "gds-gap",
|
|
71
71
|
lg: "gds-gap-lg"
|
|
72
|
-
},
|
|
72
|
+
}, re = (e) => ({
|
|
73
73
|
1: "grid-cols-1",
|
|
74
74
|
2: "grid-cols-2",
|
|
75
75
|
3: "grid-cols-3",
|
|
76
76
|
4: "grid-cols-4",
|
|
77
77
|
5: "grid-cols-5",
|
|
78
78
|
6: "grid-cols-6"
|
|
79
|
-
})[e] ?? `grid-cols-${e}`,
|
|
80
|
-
return /* @__PURE__ */
|
|
79
|
+
})[e] ?? `grid-cols-${e}`, ie = v(function({ children: t, columns: n = 4, gap: r = "default", className: i }, a) {
|
|
80
|
+
return /* @__PURE__ */ T("div", {
|
|
81
81
|
ref: a,
|
|
82
|
-
className: e("grid auto-rows-[minmax(120px,auto)]",
|
|
82
|
+
className: e("grid auto-rows-[minmax(120px,auto)]", re(n), ne[r], i),
|
|
83
83
|
"data-component": "bento-grid",
|
|
84
84
|
children: t
|
|
85
85
|
});
|
|
86
|
-
}),
|
|
86
|
+
}), ae = [
|
|
87
87
|
"Sun",
|
|
88
88
|
"Mon",
|
|
89
89
|
"Tue",
|
|
@@ -91,7 +91,7 @@ var ee = {
|
|
|
91
91
|
"Thu",
|
|
92
92
|
"Fri",
|
|
93
93
|
"Sat"
|
|
94
|
-
],
|
|
94
|
+
], oe = v(function({ className: t, events: n = [], month: r, onDateClick: i, year: a, ...o }, s) {
|
|
95
95
|
let c = new Date(a, r - 1, 1).getDay(), l = new Date(a, r, 0).getDate(), u = [];
|
|
96
96
|
for (let e = 0; e < c; e++) u.push(null);
|
|
97
97
|
for (let e = 1; e <= l; e++) u.push(e);
|
|
@@ -100,26 +100,26 @@ var ee = {
|
|
|
100
100
|
let t = d.get(e.date) ?? [];
|
|
101
101
|
d.set(e.date, [...t, e]);
|
|
102
102
|
}
|
|
103
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ T("div", {
|
|
104
104
|
className: e("flex flex-col gap-1", t),
|
|
105
105
|
"data-component": "calendar-view",
|
|
106
106
|
ref: s,
|
|
107
107
|
...o,
|
|
108
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ E("div", {
|
|
109
109
|
className: "grid grid-cols-7 gap-1",
|
|
110
|
-
children: [
|
|
110
|
+
children: [ae.map((e) => /* @__PURE__ */ T("div", {
|
|
111
111
|
className: "py-1 text-center text-xs font-medium text-fg-muted",
|
|
112
112
|
children: e
|
|
113
113
|
}, e)), u.map((t, n) => {
|
|
114
114
|
let r = t === null ? [] : d.get(t) ?? [];
|
|
115
|
-
return /* @__PURE__ */
|
|
115
|
+
return /* @__PURE__ */ E("div", {
|
|
116
116
|
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
117
|
onClick: () => {
|
|
118
118
|
t !== null && i !== void 0 && i(t);
|
|
119
119
|
},
|
|
120
|
-
children: [t !== null && /* @__PURE__ */
|
|
120
|
+
children: [t !== null && /* @__PURE__ */ T("span", { children: t }), r.length > 0 && /* @__PURE__ */ T("div", {
|
|
121
121
|
className: "mt-0.5 flex gap-0.5",
|
|
122
|
-
children: r.slice(0, 3).map((e, t) => /* @__PURE__ */
|
|
122
|
+
children: r.slice(0, 3).map((e, t) => /* @__PURE__ */ T("span", {
|
|
123
123
|
className: "h-1 w-1 rounded-full",
|
|
124
124
|
style: { backgroundColor: e.color ?? "var(--color-accent)" },
|
|
125
125
|
title: e.label
|
|
@@ -132,31 +132,31 @@ var ee = {
|
|
|
132
132
|
});
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/l7-patterns/comparison-table.tsx
|
|
135
|
-
function
|
|
136
|
-
return /* @__PURE__ */
|
|
135
|
+
function se({ features: t, plans: n, highlightColumn: r, glass: i, className: a }) {
|
|
136
|
+
return /* @__PURE__ */ T("div", {
|
|
137
137
|
"data-component": "comparison-table",
|
|
138
138
|
className: e("overflow-hidden gds-radius-card border border-border", i === !0 && "bg-white/5 backdrop-blur-md", a),
|
|
139
|
-
children: /* @__PURE__ */
|
|
139
|
+
children: /* @__PURE__ */ E("table", {
|
|
140
140
|
className: "w-full text-sm",
|
|
141
|
-
children: [/* @__PURE__ */
|
|
141
|
+
children: [/* @__PURE__ */ T("thead", { children: /* @__PURE__ */ E("tr", {
|
|
142
142
|
className: "border-b border-border bg-bg-tertiary/30",
|
|
143
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ T("th", {
|
|
144
144
|
className: "px-4 py-3 text-left text-xs font-medium text-fg-muted",
|
|
145
145
|
children: "Feature"
|
|
146
|
-
}), n.map((t, n) => /* @__PURE__ */
|
|
146
|
+
}), n.map((t, n) => /* @__PURE__ */ T("th", {
|
|
147
147
|
className: e("px-4 py-3 text-center text-xs font-semibold text-fg", n === r && "bg-accent/5"),
|
|
148
148
|
children: t.name
|
|
149
149
|
}, t.name))]
|
|
150
|
-
}) }), /* @__PURE__ */
|
|
150
|
+
}) }), /* @__PURE__ */ T("tbody", { children: t.map((i, a) => /* @__PURE__ */ E("tr", {
|
|
151
151
|
className: e(a < t.length - 1 && "border-b border-border/50"),
|
|
152
|
-
children: [/* @__PURE__ */
|
|
152
|
+
children: [/* @__PURE__ */ T("td", {
|
|
153
153
|
className: "px-4 py-2.5 text-xs text-fg",
|
|
154
154
|
children: i
|
|
155
155
|
}), n.map((t, n) => {
|
|
156
156
|
let i = t.values[a];
|
|
157
|
-
return /* @__PURE__ */
|
|
157
|
+
return /* @__PURE__ */ T("td", {
|
|
158
158
|
className: e("px-4 py-2.5 text-center", n === r && "bg-accent/5"),
|
|
159
|
-
children: typeof i == "boolean" ? i === !0 ? /* @__PURE__ */
|
|
159
|
+
children: typeof i == "boolean" ? i === !0 ? /* @__PURE__ */ T("svg", {
|
|
160
160
|
className: "mx-auto text-success",
|
|
161
161
|
width: "16",
|
|
162
162
|
height: "16",
|
|
@@ -167,8 +167,8 @@ function j({ features: t, plans: n, highlightColumn: r, glass: i, className: a }
|
|
|
167
167
|
strokeLinecap: "round",
|
|
168
168
|
strokeLinejoin: "round",
|
|
169
169
|
"data-icon": "check",
|
|
170
|
-
children: /* @__PURE__ */
|
|
171
|
-
}) : /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ T("polyline", { points: "20 6 9 17 4 12" })
|
|
171
|
+
}) : /* @__PURE__ */ T("svg", {
|
|
172
172
|
className: "mx-auto text-fg-muted/40",
|
|
173
173
|
width: "16",
|
|
174
174
|
height: "16",
|
|
@@ -178,13 +178,13 @@ function j({ features: t, plans: n, highlightColumn: r, glass: i, className: a }
|
|
|
178
178
|
strokeWidth: "2",
|
|
179
179
|
strokeLinecap: "round",
|
|
180
180
|
"data-icon": "dash",
|
|
181
|
-
children: /* @__PURE__ */
|
|
181
|
+
children: /* @__PURE__ */ T("line", {
|
|
182
182
|
x1: "5",
|
|
183
183
|
y1: "12",
|
|
184
184
|
x2: "19",
|
|
185
185
|
y2: "12"
|
|
186
186
|
})
|
|
187
|
-
}) : /* @__PURE__ */
|
|
187
|
+
}) : /* @__PURE__ */ T("span", {
|
|
188
188
|
className: "text-xs text-fg",
|
|
189
189
|
children: i
|
|
190
190
|
})
|
|
@@ -196,132 +196,132 @@ function j({ features: t, plans: n, highlightColumn: r, glass: i, className: a }
|
|
|
196
196
|
}
|
|
197
197
|
//#endregion
|
|
198
198
|
//#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__ */
|
|
199
|
+
var k = v(function({ header: n, sidebar: r, content: i, footer: a, sidebarPosition: o = "left", sidebarWidth: s = 240, glass: c, className: l }, u) {
|
|
200
|
+
let d = typeof s == "number" ? `${s}px` : s, f = o === "right", p = r === void 0 ? null : /* @__PURE__ */ T("div", {
|
|
201
201
|
className: e("shrink-0 overflow-auto", f ? "border-l border-border" : "border-r border-border"),
|
|
202
202
|
style: { width: d },
|
|
203
203
|
children: r
|
|
204
204
|
});
|
|
205
|
-
return /* @__PURE__ */
|
|
205
|
+
return /* @__PURE__ */ E("div", {
|
|
206
206
|
ref: u,
|
|
207
207
|
className: e("gds-ctx flex h-full flex-col", t(c), l),
|
|
208
208
|
"data-component": "composition-pattern",
|
|
209
209
|
children: [
|
|
210
|
-
n !== void 0 && /* @__PURE__ */
|
|
210
|
+
n !== void 0 && /* @__PURE__ */ T("div", {
|
|
211
211
|
className: "shrink-0 border-b border-border",
|
|
212
212
|
children: n
|
|
213
213
|
}),
|
|
214
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ E("div", {
|
|
215
215
|
className: "flex min-h-0 flex-1",
|
|
216
216
|
children: [
|
|
217
217
|
f ? null : p,
|
|
218
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ T("div", {
|
|
219
219
|
className: "flex-1 overflow-auto",
|
|
220
220
|
children: i
|
|
221
221
|
}),
|
|
222
222
|
f ? p : null
|
|
223
223
|
]
|
|
224
224
|
}),
|
|
225
|
-
a !== void 0 && /* @__PURE__ */
|
|
225
|
+
a !== void 0 && /* @__PURE__ */ T("div", {
|
|
226
226
|
className: "shrink-0 border-t border-border",
|
|
227
227
|
children: a
|
|
228
228
|
})
|
|
229
229
|
]
|
|
230
230
|
});
|
|
231
|
-
}),
|
|
232
|
-
return /* @__PURE__ */
|
|
231
|
+
}), A = v(function({ title: n, description: r, actions: i, variant: a = "default", glass: o, className: s }, c) {
|
|
232
|
+
return /* @__PURE__ */ E("div", {
|
|
233
233
|
ref: c,
|
|
234
234
|
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
235
|
"data-component": "cta-banner",
|
|
236
236
|
"data-variant": a,
|
|
237
237
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ T("h2", {
|
|
239
239
|
className: e("text-xl font-bold", a === "default" && "text-fg"),
|
|
240
240
|
children: n
|
|
241
241
|
}),
|
|
242
|
-
r !== void 0 && /* @__PURE__ */
|
|
242
|
+
r !== void 0 && /* @__PURE__ */ T("p", {
|
|
243
243
|
className: e("mt-2 gds-text-body", a === "default" ? "text-fg-muted" : "opacity-80"),
|
|
244
244
|
children: r
|
|
245
245
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ T("div", {
|
|
247
247
|
className: "mt-4 flex items-center justify-center gap-3",
|
|
248
248
|
children: i
|
|
249
249
|
})
|
|
250
250
|
]
|
|
251
251
|
});
|
|
252
|
-
}),
|
|
253
|
-
return /* @__PURE__ */
|
|
252
|
+
}), j = v(function({ sidebar: t, header: n, children: r, sidebarWidth: i = 240, className: a }, o) {
|
|
253
|
+
return /* @__PURE__ */ E("div", {
|
|
254
254
|
ref: o,
|
|
255
255
|
className: e("flex h-full min-h-0 bg-bg", a),
|
|
256
256
|
"data-component": "dashboard-layout",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ T("aside", {
|
|
258
258
|
className: "shrink-0 overflow-y-auto border-r border-border bg-surface",
|
|
259
259
|
style: { width: i },
|
|
260
260
|
children: t
|
|
261
|
-
}), /* @__PURE__ */
|
|
261
|
+
}), /* @__PURE__ */ E("div", {
|
|
262
262
|
className: "flex flex-1 flex-col min-w-0",
|
|
263
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
263
|
+
children: [n !== void 0 && /* @__PURE__ */ T("header", {
|
|
264
264
|
className: "sticky top-0 z-10 shrink-0 border-b border-border bg-surface/80 backdrop-blur-sm",
|
|
265
265
|
children: n
|
|
266
|
-
}), /* @__PURE__ */
|
|
266
|
+
}), /* @__PURE__ */ T("main", {
|
|
267
267
|
className: "flex-1 overflow-auto",
|
|
268
268
|
children: r
|
|
269
269
|
})]
|
|
270
270
|
})]
|
|
271
271
|
});
|
|
272
|
-
}),
|
|
273
|
-
let [c, l] =
|
|
272
|
+
}), M = v(function({ formats: t, onExport: r, title: i = "Export Data", className: a, ...o }, s) {
|
|
273
|
+
let [c, l] = C(t[0] ?? ""), [u, d] = C(""), [f, p] = C("");
|
|
274
274
|
function m() {
|
|
275
275
|
r(c, u !== "" && f !== "" ? {
|
|
276
276
|
from: u,
|
|
277
277
|
to: f
|
|
278
278
|
} : void 0);
|
|
279
279
|
}
|
|
280
|
-
return /* @__PURE__ */
|
|
280
|
+
return /* @__PURE__ */ E("div", {
|
|
281
281
|
ref: s,
|
|
282
282
|
className: e("gds-ctx rounded-lg border border-border bg-surface gds-pad gds-shadow", a),
|
|
283
283
|
"data-component": "data-export-card",
|
|
284
284
|
...o,
|
|
285
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ T("h3", {
|
|
286
286
|
className: "select-none font-medium gds-heading text-fg mb-3",
|
|
287
287
|
children: i
|
|
288
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ E("div", {
|
|
289
289
|
className: "flex flex-col gap-3",
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ E("div", {
|
|
292
292
|
className: "flex flex-col gap-1",
|
|
293
|
-
children: [/* @__PURE__ */
|
|
293
|
+
children: [/* @__PURE__ */ T("label", {
|
|
294
294
|
className: "select-none text-xs text-fg-muted",
|
|
295
295
|
children: "Format"
|
|
296
|
-
}), /* @__PURE__ */
|
|
296
|
+
}), /* @__PURE__ */ T("select", {
|
|
297
297
|
value: c,
|
|
298
298
|
onChange: (e) => l(e.target.value),
|
|
299
299
|
className: "rounded border border-border bg-bg px-2 py-1.5 gds-text-body text-fg",
|
|
300
|
-
children: t.map((e) => /* @__PURE__ */
|
|
300
|
+
children: t.map((e) => /* @__PURE__ */ T("option", {
|
|
301
301
|
value: e,
|
|
302
302
|
children: e
|
|
303
303
|
}, e))
|
|
304
304
|
})]
|
|
305
305
|
}),
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ E("div", {
|
|
307
307
|
className: "flex gap-2",
|
|
308
|
-
children: [/* @__PURE__ */
|
|
308
|
+
children: [/* @__PURE__ */ E("div", {
|
|
309
309
|
className: "flex flex-1 flex-col gap-1",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ T("label", {
|
|
311
311
|
className: "select-none text-xs text-fg-muted",
|
|
312
312
|
children: "From"
|
|
313
|
-
}), /* @__PURE__ */
|
|
313
|
+
}), /* @__PURE__ */ T("input", {
|
|
314
314
|
type: "date",
|
|
315
315
|
value: u,
|
|
316
316
|
onChange: (e) => d(e.target.value),
|
|
317
317
|
className: "rounded border border-border bg-bg px-2 py-1.5 gds-text-body text-fg"
|
|
318
318
|
})]
|
|
319
|
-
}), /* @__PURE__ */
|
|
319
|
+
}), /* @__PURE__ */ E("div", {
|
|
320
320
|
className: "flex flex-1 flex-col gap-1",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
321
|
+
children: [/* @__PURE__ */ T("label", {
|
|
322
322
|
className: "select-none text-xs text-fg-muted",
|
|
323
323
|
children: "To"
|
|
324
|
-
}), /* @__PURE__ */
|
|
324
|
+
}), /* @__PURE__ */ T("input", {
|
|
325
325
|
type: "date",
|
|
326
326
|
value: f,
|
|
327
327
|
onChange: (e) => p(e.target.value),
|
|
@@ -329,7 +329,7 @@ var M = v(function({ header: n, sidebar: r, content: i, footer: a, sidebarPositi
|
|
|
329
329
|
})]
|
|
330
330
|
})]
|
|
331
331
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ T(n, {
|
|
333
333
|
type: "button",
|
|
334
334
|
onClick: m,
|
|
335
335
|
className: "mt-1",
|
|
@@ -338,207 +338,207 @@ var M = v(function({ header: n, sidebar: r, content: i, footer: a, sidebarPositi
|
|
|
338
338
|
]
|
|
339
339
|
})]
|
|
340
340
|
});
|
|
341
|
-
}),
|
|
342
|
-
return /* @__PURE__ */
|
|
341
|
+
}), N = v(function({ activeTab: t, children: n, className: r, onTabChange: i, statusBar: a, tabs: o, ...s }, c) {
|
|
342
|
+
return /* @__PURE__ */ E("div", {
|
|
343
343
|
className: e("flex h-full flex-col", r),
|
|
344
344
|
"data-component": "devops-layout",
|
|
345
345
|
ref: c,
|
|
346
346
|
...s,
|
|
347
347
|
children: [
|
|
348
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ T("div", {
|
|
349
349
|
className: "flex items-center gap-1 border-b border-border px-2",
|
|
350
|
-
children: o.map((n) => /* @__PURE__ */
|
|
350
|
+
children: o.map((n) => /* @__PURE__ */ T("button", {
|
|
351
351
|
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
352
|
onClick: () => i(n.id),
|
|
353
353
|
type: "button",
|
|
354
354
|
children: n.label
|
|
355
355
|
}, n.id))
|
|
356
356
|
}),
|
|
357
|
-
a !== void 0 && /* @__PURE__ */
|
|
357
|
+
a !== void 0 && /* @__PURE__ */ T("div", {
|
|
358
358
|
className: "border-b border-border px-3 py-2",
|
|
359
359
|
children: a
|
|
360
360
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ T("div", {
|
|
362
362
|
className: "flex-1 overflow-auto",
|
|
363
363
|
children: n
|
|
364
364
|
})
|
|
365
365
|
]
|
|
366
366
|
});
|
|
367
|
-
}),
|
|
368
|
-
return /* @__PURE__ */
|
|
367
|
+
}), P = v(function({ title: t, description: n, icon: r, action: i, className: a }, o) {
|
|
368
|
+
return /* @__PURE__ */ E("div", {
|
|
369
369
|
ref: o,
|
|
370
370
|
className: e("flex flex-col items-center justify-center py-12", a),
|
|
371
371
|
"data-component": "empty-state",
|
|
372
372
|
children: [
|
|
373
|
-
r !== void 0 && /* @__PURE__ */
|
|
373
|
+
r !== void 0 && /* @__PURE__ */ T("div", {
|
|
374
374
|
className: "mb-3 flex h-12 w-12 items-center justify-center text-fg-muted/20",
|
|
375
375
|
children: r
|
|
376
376
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ T("p", {
|
|
378
378
|
className: "gds-text-body font-medium text-fg",
|
|
379
379
|
children: t
|
|
380
380
|
}),
|
|
381
|
-
n !== void 0 && /* @__PURE__ */
|
|
381
|
+
n !== void 0 && /* @__PURE__ */ T("p", {
|
|
382
382
|
className: "mt-1 gds-text-body text-fg-muted",
|
|
383
383
|
children: n
|
|
384
384
|
}),
|
|
385
|
-
i !== void 0 && /* @__PURE__ */
|
|
385
|
+
i !== void 0 && /* @__PURE__ */ T("div", {
|
|
386
386
|
className: "mt-4",
|
|
387
387
|
children: i
|
|
388
388
|
})
|
|
389
389
|
]
|
|
390
390
|
});
|
|
391
|
-
}),
|
|
392
|
-
return /* @__PURE__ */
|
|
391
|
+
}), F = v(function({ items: n, title: r = "FAQ", glass: i, className: a }, o) {
|
|
392
|
+
return /* @__PURE__ */ E("div", {
|
|
393
393
|
ref: o,
|
|
394
394
|
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
395
|
"data-component": "faq",
|
|
396
|
-
children: [/* @__PURE__ */
|
|
396
|
+
children: [/* @__PURE__ */ T("h2", {
|
|
397
397
|
className: "gds-heading font-semibold text-fg mb-4",
|
|
398
398
|
children: r
|
|
399
|
-
}), /* @__PURE__ */
|
|
399
|
+
}), /* @__PURE__ */ T(h, {
|
|
400
400
|
type: "single",
|
|
401
|
-
children: n.map((e, t) => /* @__PURE__ */
|
|
401
|
+
children: n.map((e, t) => /* @__PURE__ */ T(p, {
|
|
402
402
|
id: `faq-${t}`,
|
|
403
403
|
title: e.question,
|
|
404
404
|
children: e.answer
|
|
405
405
|
}, t))
|
|
406
406
|
})]
|
|
407
407
|
});
|
|
408
|
-
}),
|
|
409
|
-
return /* @__PURE__ */
|
|
408
|
+
}), I = v(function({ icon: n, title: r, description: i, action: a, glass: o, className: s }, c) {
|
|
409
|
+
return /* @__PURE__ */ E("div", {
|
|
410
410
|
ref: c,
|
|
411
411
|
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
412
|
"data-component": "feature-card",
|
|
413
413
|
children: [
|
|
414
|
-
n !== void 0 && /* @__PURE__ */
|
|
414
|
+
n !== void 0 && /* @__PURE__ */ T("div", {
|
|
415
415
|
className: "mb-3 text-accent",
|
|
416
416
|
children: n
|
|
417
417
|
}),
|
|
418
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ T("p", {
|
|
419
419
|
className: "font-semibold text-fg",
|
|
420
420
|
children: r
|
|
421
421
|
}),
|
|
422
|
-
i !== void 0 && /* @__PURE__ */
|
|
422
|
+
i !== void 0 && /* @__PURE__ */ T("p", {
|
|
423
423
|
className: "mt-1 gds-text-body text-fg-muted",
|
|
424
424
|
children: i
|
|
425
425
|
}),
|
|
426
|
-
a !== void 0 && /* @__PURE__ */
|
|
426
|
+
a !== void 0 && /* @__PURE__ */ T("div", {
|
|
427
427
|
className: "mt-auto pt-4",
|
|
428
428
|
children: a
|
|
429
429
|
})
|
|
430
430
|
]
|
|
431
431
|
});
|
|
432
|
-
}),
|
|
433
|
-
return /* @__PURE__ */
|
|
432
|
+
}), L = v(function({ columns: n, copyright: r, logo: i, glass: a, className: o }, s) {
|
|
433
|
+
return /* @__PURE__ */ E("footer", {
|
|
434
434
|
ref: s,
|
|
435
435
|
className: e("w-full py-10", a && t(!0), o),
|
|
436
436
|
"data-component": "footer",
|
|
437
|
-
children: [n !== void 0 && n.length > 0 && /* @__PURE__ */
|
|
437
|
+
children: [n !== void 0 && n.length > 0 && /* @__PURE__ */ T("div", {
|
|
438
438
|
className: "grid grid-cols-2 gap-8 sm:grid-cols-3 lg:grid-cols-4",
|
|
439
|
-
children: n.map((e) => /* @__PURE__ */
|
|
439
|
+
children: n.map((e) => /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
440
440
|
className: "text-sm font-semibold text-fg",
|
|
441
441
|
children: e.title
|
|
442
|
-
}), /* @__PURE__ */
|
|
442
|
+
}), /* @__PURE__ */ T("ul", {
|
|
443
443
|
className: "mt-3 space-y-2",
|
|
444
|
-
children: e.links.map((e) => /* @__PURE__ */
|
|
444
|
+
children: e.links.map((e) => /* @__PURE__ */ T("li", { children: /* @__PURE__ */ T("a", {
|
|
445
445
|
href: e.href,
|
|
446
446
|
className: "text-sm text-fg-muted hover:text-fg",
|
|
447
447
|
children: e.label
|
|
448
448
|
}) }, e.href))
|
|
449
449
|
})] }, e.title))
|
|
450
|
-
}), /* @__PURE__ */
|
|
450
|
+
}), /* @__PURE__ */ E("div", {
|
|
451
451
|
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__ */
|
|
452
|
+
children: [i !== void 0 && /* @__PURE__ */ T("div", { children: i }), r !== void 0 && /* @__PURE__ */ T("p", {
|
|
453
453
|
className: "text-xs text-fg-muted",
|
|
454
454
|
children: r
|
|
455
455
|
})]
|
|
456
456
|
})]
|
|
457
457
|
});
|
|
458
|
-
}),
|
|
458
|
+
}), R = v(function({ title: t, description: n, children: r, actions: i, className: a }, o) {
|
|
459
459
|
let s = t !== void 0 || n !== void 0;
|
|
460
|
-
return /* @__PURE__ */
|
|
460
|
+
return /* @__PURE__ */ E("div", {
|
|
461
461
|
ref: o,
|
|
462
462
|
className: e("flex flex-col", a),
|
|
463
463
|
"data-component": "form-layout",
|
|
464
464
|
children: [
|
|
465
|
-
s && /* @__PURE__ */
|
|
465
|
+
s && /* @__PURE__ */ E("div", {
|
|
466
466
|
className: "mb-4",
|
|
467
|
-
children: [t !== void 0 && /* @__PURE__ */
|
|
467
|
+
children: [t !== void 0 && /* @__PURE__ */ T("h2", {
|
|
468
468
|
className: "gds-text-body font-semibold text-fg",
|
|
469
469
|
children: t
|
|
470
|
-
}), n !== void 0 && /* @__PURE__ */
|
|
470
|
+
}), n !== void 0 && /* @__PURE__ */ T("p", {
|
|
471
471
|
className: "mt-0.5 gds-text-body text-fg-muted",
|
|
472
472
|
children: n
|
|
473
473
|
})]
|
|
474
474
|
}),
|
|
475
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ T("div", {
|
|
476
476
|
className: "flex flex-col gds-gap-lg",
|
|
477
477
|
children: r
|
|
478
478
|
}),
|
|
479
|
-
i !== void 0 && /* @__PURE__ */
|
|
479
|
+
i !== void 0 && /* @__PURE__ */ T("div", {
|
|
480
480
|
className: "mt-6 flex justify-end gds-gap-sm",
|
|
481
481
|
children: i
|
|
482
482
|
})
|
|
483
483
|
]
|
|
484
484
|
});
|
|
485
|
-
}),
|
|
486
|
-
return /* @__PURE__ */
|
|
485
|
+
}), z = v(function({ title: n, description: r, sections: a, actions: o, glass: s, className: c }, l) {
|
|
486
|
+
return /* @__PURE__ */ E("div", {
|
|
487
487
|
ref: l,
|
|
488
488
|
className: e("gds-ctx flex flex-col gds-pad gds-radius-card", t(s), c),
|
|
489
489
|
"data-component": "form-pattern",
|
|
490
490
|
children: [
|
|
491
|
-
(n !== void 0 || r !== void 0) && /* @__PURE__ */
|
|
491
|
+
(n !== void 0 || r !== void 0) && /* @__PURE__ */ E("div", {
|
|
492
492
|
className: "mb-4",
|
|
493
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
493
|
+
children: [n !== void 0 && /* @__PURE__ */ T("h2", {
|
|
494
494
|
className: "gds-heading font-semibold text-fg",
|
|
495
495
|
children: n
|
|
496
|
-
}), r !== void 0 && /* @__PURE__ */
|
|
496
|
+
}), r !== void 0 && /* @__PURE__ */ T("p", {
|
|
497
497
|
className: "mt-1 gds-text-body text-fg-muted",
|
|
498
498
|
children: r
|
|
499
499
|
})]
|
|
500
500
|
}),
|
|
501
|
-
a.map((e, t) => /* @__PURE__ */
|
|
501
|
+
a.map((e, t) => /* @__PURE__ */ E("div", { children: [t > 0 && /* @__PURE__ */ T(i, { className: "my-4" }), /* @__PURE__ */ E("div", {
|
|
502
502
|
className: "flex flex-col gds-gap",
|
|
503
|
-
children: [/* @__PURE__ */
|
|
503
|
+
children: [/* @__PURE__ */ T("h3", {
|
|
504
504
|
className: "gds-text-body font-medium text-fg",
|
|
505
505
|
children: e.title
|
|
506
506
|
}), e.fields]
|
|
507
507
|
})] }, e.title)),
|
|
508
|
-
o !== void 0 && /* @__PURE__ */
|
|
508
|
+
o !== void 0 && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(i, { className: "my-4" }), /* @__PURE__ */ T("div", {
|
|
509
509
|
className: "flex justify-end gds-gap-sm",
|
|
510
510
|
children: o
|
|
511
511
|
})] })
|
|
512
512
|
]
|
|
513
513
|
});
|
|
514
|
-
}),
|
|
514
|
+
}), B = {
|
|
515
515
|
none: "",
|
|
516
516
|
sm: "gds-pad-x gds-pad-y",
|
|
517
517
|
default: "gds-pad-x-lg gds-pad-y-lg",
|
|
518
518
|
lg: "p-6"
|
|
519
|
-
},
|
|
519
|
+
}, V = {
|
|
520
520
|
sm: "sm",
|
|
521
521
|
default: !0,
|
|
522
522
|
lg: "lg"
|
|
523
|
-
},
|
|
524
|
-
return /* @__PURE__ */
|
|
523
|
+
}, H = v(function({ children: n, blur: r = "default", padding: i = "default", className: a }, o) {
|
|
524
|
+
return /* @__PURE__ */ T("div", {
|
|
525
525
|
ref: o,
|
|
526
|
-
className: e("gds-ctx gds-radius-card border border-white/10", t(
|
|
526
|
+
className: e("gds-ctx gds-radius-card border border-white/10", t(V[r]), B[i], a),
|
|
527
527
|
"data-component": "glass-panel",
|
|
528
528
|
children: n
|
|
529
529
|
});
|
|
530
|
-
}),
|
|
530
|
+
}), U = {
|
|
531
531
|
sm: "gds-gap-sm",
|
|
532
532
|
default: "gds-gap",
|
|
533
533
|
lg: "gds-gap-lg"
|
|
534
|
-
},
|
|
534
|
+
}, W = (e) => ({
|
|
535
535
|
1: "grid-cols-1",
|
|
536
536
|
2: "grid-cols-2",
|
|
537
537
|
3: "grid-cols-3",
|
|
538
538
|
4: "grid-cols-4",
|
|
539
539
|
5: "grid-cols-5",
|
|
540
540
|
6: "grid-cols-6"
|
|
541
|
-
})[e] ?? `grid-cols-${e}`,
|
|
541
|
+
})[e] ?? `grid-cols-${e}`, G = (e, t) => ({
|
|
542
542
|
1: `${e}:grid-cols-1`,
|
|
543
543
|
2: `${e}:grid-cols-2`,
|
|
544
544
|
3: `${e}:grid-cols-3`,
|
|
@@ -546,108 +546,108 @@ var M = v(function({ header: n, sidebar: r, content: i, footer: a, sidebarPositi
|
|
|
546
546
|
5: `${e}:grid-cols-5`,
|
|
547
547
|
6: `${e}:grid-cols-6`
|
|
548
548
|
})[t] ?? `${e}:grid-cols-${t}`;
|
|
549
|
-
function
|
|
550
|
-
if (typeof e == "number") return
|
|
549
|
+
function K(e) {
|
|
550
|
+
if (typeof e == "number") return W(e);
|
|
551
551
|
let t = [];
|
|
552
|
-
return e.sm !== void 0 && t.push(
|
|
552
|
+
return e.sm !== void 0 && t.push(G("sm", e.sm)), e.md !== void 0 && t.push(G("md", e.md)), e.lg !== void 0 && t.push(G("lg", e.lg)), e.xl !== void 0 && t.push(G("xl", e.xl)), t.length > 0 && t.unshift("grid-cols-1"), t.join(" ");
|
|
553
553
|
}
|
|
554
|
-
var
|
|
554
|
+
var ce = v(function({ children: t, columns: n = {
|
|
555
555
|
sm: 1,
|
|
556
556
|
md: 2,
|
|
557
557
|
lg: 3
|
|
558
558
|
}, gap: r = "default", className: i }, a) {
|
|
559
|
-
return /* @__PURE__ */
|
|
559
|
+
return /* @__PURE__ */ T("div", {
|
|
560
560
|
ref: a,
|
|
561
|
-
className: e("grid",
|
|
561
|
+
className: e("grid", K(n), U[r], i),
|
|
562
562
|
"data-component": "grid-layout",
|
|
563
563
|
children: t
|
|
564
564
|
});
|
|
565
|
-
}),
|
|
565
|
+
}), le = v(function({ title: n, subtitle: r, actions: i, media: a, align: o = "center", glass: s, className: c }, l) {
|
|
566
566
|
let u = o === "center";
|
|
567
|
-
return /* @__PURE__ */
|
|
567
|
+
return /* @__PURE__ */ E("section", {
|
|
568
568
|
ref: l,
|
|
569
569
|
className: e("w-full py-16", u ? "text-center" : "flex items-center gap-12", s && t(!0), c),
|
|
570
570
|
"data-component": "hero",
|
|
571
571
|
"data-variant": o,
|
|
572
|
-
children: [/* @__PURE__ */
|
|
572
|
+
children: [/* @__PURE__ */ E("div", {
|
|
573
573
|
className: e(u ? "mx-auto max-w-2xl" : "flex-1"),
|
|
574
574
|
children: [
|
|
575
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ T("h1", {
|
|
576
576
|
className: "text-4xl font-bold text-fg",
|
|
577
577
|
children: n
|
|
578
578
|
}),
|
|
579
|
-
r !== void 0 && /* @__PURE__ */
|
|
579
|
+
r !== void 0 && /* @__PURE__ */ T("p", {
|
|
580
580
|
className: "mt-3 text-lg text-fg-muted",
|
|
581
581
|
children: r
|
|
582
582
|
}),
|
|
583
|
-
i !== void 0 && /* @__PURE__ */
|
|
583
|
+
i !== void 0 && /* @__PURE__ */ T("div", {
|
|
584
584
|
className: "mt-6",
|
|
585
585
|
children: i
|
|
586
586
|
}),
|
|
587
|
-
u && a !== void 0 && /* @__PURE__ */
|
|
587
|
+
u && a !== void 0 && /* @__PURE__ */ T("div", {
|
|
588
588
|
className: "mt-8",
|
|
589
589
|
children: a
|
|
590
590
|
})
|
|
591
591
|
]
|
|
592
|
-
}), !u && a !== void 0 && /* @__PURE__ */
|
|
592
|
+
}), !u && a !== void 0 && /* @__PURE__ */ T("div", {
|
|
593
593
|
className: "flex-1",
|
|
594
594
|
children: a
|
|
595
595
|
})]
|
|
596
596
|
});
|
|
597
|
-
}),
|
|
598
|
-
return /* @__PURE__ */
|
|
597
|
+
}), ue = v(function({ className: t, departments: n, onboarding: r, stats: i, ...a }, o) {
|
|
598
|
+
return /* @__PURE__ */ E("div", {
|
|
599
599
|
className: e("gds-ctx flex flex-col gds-gap", t),
|
|
600
600
|
"data-component": "hr-dashboard",
|
|
601
601
|
ref: o,
|
|
602
602
|
...a,
|
|
603
|
-
children: [i !== void 0 && /* @__PURE__ */
|
|
603
|
+
children: [i !== void 0 && /* @__PURE__ */ T("div", {
|
|
604
604
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
605
605
|
children: i
|
|
606
|
-
}), /* @__PURE__ */
|
|
606
|
+
}), /* @__PURE__ */ E("div", {
|
|
607
607
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
608
|
-
children: [r !== void 0 && /* @__PURE__ */
|
|
608
|
+
children: [r !== void 0 && /* @__PURE__ */ T("div", {
|
|
609
609
|
className: "gds-radius-card border border-border bg-surface gds-pad",
|
|
610
610
|
children: r
|
|
611
|
-
}), n !== void 0 && /* @__PURE__ */
|
|
611
|
+
}), n !== void 0 && /* @__PURE__ */ T("div", {
|
|
612
612
|
className: "gds-radius-card border border-border bg-surface gds-pad",
|
|
613
613
|
children: n
|
|
614
614
|
})]
|
|
615
615
|
})]
|
|
616
616
|
});
|
|
617
|
-
}),
|
|
618
|
-
return /* @__PURE__ */
|
|
617
|
+
}), de = v(function({ list: t, detail: n, listWidth: r = 360, className: i }, a) {
|
|
618
|
+
return /* @__PURE__ */ E("div", {
|
|
619
619
|
ref: a,
|
|
620
620
|
className: e("flex h-full overflow-hidden", i),
|
|
621
621
|
"data-component": "inbox-layout",
|
|
622
|
-
children: [/* @__PURE__ */
|
|
622
|
+
children: [/* @__PURE__ */ T("div", {
|
|
623
623
|
className: "shrink-0 overflow-y-auto border-r border-border",
|
|
624
624
|
style: { width: r },
|
|
625
625
|
children: t
|
|
626
|
-
}), /* @__PURE__ */
|
|
626
|
+
}), /* @__PURE__ */ T("div", {
|
|
627
627
|
className: "min-w-0 flex-1 overflow-y-auto",
|
|
628
628
|
children: n
|
|
629
629
|
})]
|
|
630
630
|
});
|
|
631
|
-
}),
|
|
631
|
+
}), q = v(function({ title: n, value: r, change: i, changeLabel: a, icon: o, glass: s, className: c }, l) {
|
|
632
632
|
let u = i !== void 0 && i >= 0;
|
|
633
|
-
return /* @__PURE__ */
|
|
633
|
+
return /* @__PURE__ */ E("div", {
|
|
634
634
|
ref: l,
|
|
635
635
|
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
636
|
"data-component": "metric-card",
|
|
637
637
|
children: [
|
|
638
|
-
o !== void 0 && /* @__PURE__ */
|
|
638
|
+
o !== void 0 && /* @__PURE__ */ T("div", {
|
|
639
639
|
className: "absolute right-4 top-4 text-fg-muted/40",
|
|
640
640
|
children: o
|
|
641
641
|
}),
|
|
642
|
-
/* @__PURE__ */
|
|
642
|
+
/* @__PURE__ */ T("p", {
|
|
643
643
|
className: "gds-text-body text-fg-muted",
|
|
644
644
|
children: n
|
|
645
645
|
}),
|
|
646
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ T("p", {
|
|
647
647
|
className: "mt-1 text-2xl font-bold text-fg",
|
|
648
648
|
children: r
|
|
649
649
|
}),
|
|
650
|
-
i !== void 0 && /* @__PURE__ */
|
|
650
|
+
i !== void 0 && /* @__PURE__ */ E("p", {
|
|
651
651
|
className: e("mt-1 gds-text-body", u ? "text-success" : "text-danger"),
|
|
652
652
|
children: [
|
|
653
653
|
u ? "+" : "",
|
|
@@ -658,30 +658,30 @@ var X = v(function({ children: t, columns: n = {
|
|
|
658
658
|
})
|
|
659
659
|
]
|
|
660
660
|
});
|
|
661
|
-
}),
|
|
662
|
-
return /* @__PURE__ */
|
|
661
|
+
}), fe = v(function({ title: n, metrics: r, chart: i, table: a, glass: o, className: s }, c) {
|
|
662
|
+
return /* @__PURE__ */ E("div", {
|
|
663
663
|
ref: c,
|
|
664
664
|
className: e("gds-ctx flex flex-col gds-gap", s),
|
|
665
665
|
"data-component": "kpi-dashboard",
|
|
666
666
|
children: [
|
|
667
|
-
n !== void 0 && /* @__PURE__ */
|
|
667
|
+
n !== void 0 && /* @__PURE__ */ T("h2", {
|
|
668
668
|
className: "gds-heading font-semibold text-fg",
|
|
669
669
|
children: n
|
|
670
670
|
}),
|
|
671
|
-
r !== void 0 && r.length > 0 && /* @__PURE__ */
|
|
671
|
+
r !== void 0 && r.length > 0 && /* @__PURE__ */ T("div", {
|
|
672
672
|
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__ */
|
|
673
|
+
children: r.map((e) => /* @__PURE__ */ T(q, {
|
|
674
674
|
change: e.change,
|
|
675
675
|
glass: o,
|
|
676
676
|
title: e.title,
|
|
677
677
|
value: e.value
|
|
678
678
|
}, e.title))
|
|
679
679
|
}),
|
|
680
|
-
i !== void 0 && /* @__PURE__ */
|
|
680
|
+
i !== void 0 && /* @__PURE__ */ T("div", {
|
|
681
681
|
className: e("gds-radius-card border gds-pad", o === !0 ? e(t(o), "border-white/10 bg-bg/60") : "border-border bg-surface"),
|
|
682
682
|
children: i
|
|
683
683
|
}),
|
|
684
|
-
a !== void 0 && /* @__PURE__ */
|
|
684
|
+
a !== void 0 && /* @__PURE__ */ T("div", {
|
|
685
685
|
className: e("gds-radius-card border gds-pad", o === !0 ? e(t(o), "border-white/10 bg-bg/60") : "border-border bg-surface"),
|
|
686
686
|
children: a
|
|
687
687
|
})
|
|
@@ -690,61 +690,61 @@ var X = v(function({ children: t, columns: n = {
|
|
|
690
690
|
});
|
|
691
691
|
//#endregion
|
|
692
692
|
//#region src/l7-patterns/loading-states.tsx
|
|
693
|
-
function
|
|
694
|
-
return /* @__PURE__ */
|
|
693
|
+
function pe({ message: n, glass: r, className: i }) {
|
|
694
|
+
return /* @__PURE__ */ E("div", {
|
|
695
695
|
className: e("flex min-h-[200px] flex-col items-center justify-center gap-3", t(r), i),
|
|
696
|
-
children: [/* @__PURE__ */
|
|
696
|
+
children: [/* @__PURE__ */ T(s, { size: "lg" }), n !== void 0 && /* @__PURE__ */ T("p", {
|
|
697
697
|
className: "gds-text-body text-fg-muted",
|
|
698
698
|
children: n
|
|
699
699
|
})]
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
return /* @__PURE__ */
|
|
702
|
+
function me({ message: t, className: n }) {
|
|
703
|
+
return /* @__PURE__ */ E("div", {
|
|
704
704
|
className: e("inline-flex items-center gap-2", n),
|
|
705
|
-
children: [/* @__PURE__ */
|
|
705
|
+
children: [/* @__PURE__ */ T(s, { size: "sm" }), t !== void 0 && /* @__PURE__ */ T("span", {
|
|
706
706
|
className: "gds-text-body text-fg-muted",
|
|
707
707
|
children: t
|
|
708
708
|
})]
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return /* @__PURE__ */
|
|
711
|
+
function he({ message: e, className: t }) {
|
|
712
|
+
return /* @__PURE__ */ T("div", {
|
|
713
713
|
className: t,
|
|
714
|
-
children: /* @__PURE__ */
|
|
714
|
+
children: /* @__PURE__ */ T(n, {
|
|
715
715
|
loading: !0,
|
|
716
716
|
disabled: !0,
|
|
717
717
|
children: e ?? "Loading..."
|
|
718
718
|
})
|
|
719
719
|
});
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
return /* @__PURE__ */
|
|
721
|
+
function ge({ message: n, glass: r, className: i }) {
|
|
722
|
+
return /* @__PURE__ */ E("div", {
|
|
723
723
|
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__ */
|
|
724
|
+
children: [/* @__PURE__ */ T(s, { size: "lg" }), n !== void 0 && /* @__PURE__ */ T("p", {
|
|
725
725
|
className: "gds-text-body text-fg-muted",
|
|
726
726
|
children: n
|
|
727
727
|
})]
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
|
-
var
|
|
731
|
-
page:
|
|
732
|
-
inline:
|
|
733
|
-
button:
|
|
734
|
-
overlay:
|
|
735
|
-
},
|
|
736
|
-
return /* @__PURE__ */
|
|
730
|
+
var _e = {
|
|
731
|
+
page: pe,
|
|
732
|
+
inline: me,
|
|
733
|
+
button: he,
|
|
734
|
+
overlay: ge
|
|
735
|
+
}, ve = v(function({ variant: e, message: t, glass: n, className: r }, i) {
|
|
736
|
+
return /* @__PURE__ */ T("div", {
|
|
737
737
|
ref: i,
|
|
738
738
|
"data-component": "loading-states",
|
|
739
739
|
"data-variant": e,
|
|
740
|
-
children:
|
|
740
|
+
children: _e[e]({
|
|
741
741
|
message: t,
|
|
742
742
|
glass: n,
|
|
743
743
|
className: r
|
|
744
744
|
})
|
|
745
745
|
});
|
|
746
|
-
}),
|
|
747
|
-
let [m, h] =
|
|
746
|
+
}), ye = v(function({ onSubmit: r, title: i = "Sign in", error: s, loading: c = !1, glass: l = !1, className: u, ...f }, p) {
|
|
747
|
+
let [m, h] = C(""), [g, _] = C(""), [v, y] = C(!1);
|
|
748
748
|
function b(e) {
|
|
749
749
|
e.preventDefault(), r({
|
|
750
750
|
email: m,
|
|
@@ -752,24 +752,24 @@ var fe = {
|
|
|
752
752
|
remember: v
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
|
-
return /* @__PURE__ */
|
|
755
|
+
return /* @__PURE__ */ E("form", {
|
|
756
756
|
ref: p,
|
|
757
757
|
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
758
|
"data-component": "login-form",
|
|
759
759
|
onSubmit: b,
|
|
760
760
|
...f,
|
|
761
761
|
children: [
|
|
762
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ T("h2", {
|
|
763
763
|
className: "text-center font-semibold text-fg gds-heading",
|
|
764
764
|
children: i
|
|
765
765
|
}),
|
|
766
|
-
s !== void 0 && /* @__PURE__ */
|
|
766
|
+
s !== void 0 && /* @__PURE__ */ T("div", {
|
|
767
767
|
className: "rounded-md bg-danger/10 px-3 py-2 text-xs text-danger",
|
|
768
768
|
children: s
|
|
769
769
|
}),
|
|
770
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ E("div", {
|
|
771
771
|
className: "flex flex-col gap-1",
|
|
772
|
-
children: [/* @__PURE__ */
|
|
772
|
+
children: [/* @__PURE__ */ T(o, { children: "Email" }), /* @__PURE__ */ T(a, {
|
|
773
773
|
type: "email",
|
|
774
774
|
value: m,
|
|
775
775
|
onChange: (e) => h(e.target.value),
|
|
@@ -777,9 +777,9 @@ var fe = {
|
|
|
777
777
|
required: !0
|
|
778
778
|
})]
|
|
779
779
|
}),
|
|
780
|
-
/* @__PURE__ */
|
|
780
|
+
/* @__PURE__ */ E("div", {
|
|
781
781
|
className: "flex flex-col gap-1",
|
|
782
|
-
children: [/* @__PURE__ */
|
|
782
|
+
children: [/* @__PURE__ */ T(o, { children: "Password" }), /* @__PURE__ */ T(a, {
|
|
783
783
|
type: "password",
|
|
784
784
|
value: g,
|
|
785
785
|
onChange: (e) => _(e.target.value),
|
|
@@ -787,12 +787,12 @@ var fe = {
|
|
|
787
787
|
required: !0
|
|
788
788
|
})]
|
|
789
789
|
}),
|
|
790
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ T(d, {
|
|
791
791
|
checked: v,
|
|
792
792
|
onChange: y,
|
|
793
793
|
label: "Remember me"
|
|
794
794
|
}),
|
|
795
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ T(n, {
|
|
796
796
|
type: "submit",
|
|
797
797
|
disabled: c,
|
|
798
798
|
className: "w-full",
|
|
@@ -800,42 +800,42 @@ var fe = {
|
|
|
800
800
|
})
|
|
801
801
|
]
|
|
802
802
|
});
|
|
803
|
-
}),
|
|
804
|
-
let a =
|
|
803
|
+
}), be = v(function({ onSend: t, defaultTo: n, className: r }, i) {
|
|
804
|
+
let a = S(null), o = S(null), s = S(null), c = y((e) => {
|
|
805
805
|
e.preventDefault(), t({
|
|
806
806
|
to: a.current?.value ?? "",
|
|
807
807
|
subject: o.current?.value ?? "",
|
|
808
808
|
body: s.current?.value ?? ""
|
|
809
809
|
});
|
|
810
810
|
}, [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__ */
|
|
811
|
+
return /* @__PURE__ */ E("form", {
|
|
812
812
|
ref: i,
|
|
813
813
|
className: e("flex flex-col gap-3", r),
|
|
814
814
|
"data-component": "mail-composer",
|
|
815
815
|
onSubmit: c,
|
|
816
816
|
children: [
|
|
817
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ T("input", {
|
|
818
818
|
ref: a,
|
|
819
819
|
type: "email",
|
|
820
820
|
placeholder: "To",
|
|
821
821
|
defaultValue: n ?? "",
|
|
822
822
|
className: l
|
|
823
823
|
}),
|
|
824
|
-
/* @__PURE__ */
|
|
824
|
+
/* @__PURE__ */ T("input", {
|
|
825
825
|
ref: o,
|
|
826
826
|
type: "text",
|
|
827
827
|
placeholder: "Subject",
|
|
828
828
|
className: l
|
|
829
829
|
}),
|
|
830
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ T("textarea", {
|
|
831
831
|
ref: s,
|
|
832
832
|
placeholder: "Body",
|
|
833
833
|
rows: 6,
|
|
834
834
|
className: e(l, "resize-none")
|
|
835
835
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
836
|
+
/* @__PURE__ */ T("div", {
|
|
837
837
|
className: "flex justify-end",
|
|
838
|
-
children: /* @__PURE__ */
|
|
838
|
+
children: /* @__PURE__ */ T("button", {
|
|
839
839
|
type: "submit",
|
|
840
840
|
className: "rounded-md bg-accent px-4 py-2 gds-text-body font-medium text-accent-fg hover:bg-accent/90 transition-colors",
|
|
841
841
|
children: "Send"
|
|
@@ -843,7 +843,7 @@ var fe = {
|
|
|
843
843
|
})
|
|
844
844
|
]
|
|
845
845
|
});
|
|
846
|
-
}),
|
|
846
|
+
}), xe = v(function({ children: t, columns: n = 3, gap: r = 16, className: i }, a) {
|
|
847
847
|
let o = {
|
|
848
848
|
columnCount: n,
|
|
849
849
|
columnGap: `${r}px`
|
|
@@ -851,119 +851,119 @@ var fe = {
|
|
|
851
851
|
breakInside: "avoid",
|
|
852
852
|
marginBottom: `${r}px`
|
|
853
853
|
};
|
|
854
|
-
return /* @__PURE__ */
|
|
854
|
+
return /* @__PURE__ */ T("div", {
|
|
855
855
|
ref: a,
|
|
856
856
|
className: e(i),
|
|
857
857
|
style: o,
|
|
858
858
|
"data-component": "masonry",
|
|
859
|
-
children: _.map(t, (e) => e == null ? null : /* @__PURE__ */
|
|
859
|
+
children: _.map(t, (e) => e == null ? null : /* @__PURE__ */ T("div", {
|
|
860
860
|
style: s,
|
|
861
861
|
children: e
|
|
862
862
|
}))
|
|
863
863
|
});
|
|
864
|
-
}),
|
|
864
|
+
}), Se = {
|
|
865
865
|
default: "gds-gap",
|
|
866
866
|
lg: "gds-gap-lg",
|
|
867
867
|
sm: "gds-gap-sm"
|
|
868
868
|
};
|
|
869
|
-
function
|
|
869
|
+
function Ce(e) {
|
|
870
870
|
if (typeof e == "number") return `grid-cols-${e}`;
|
|
871
871
|
let t = ["grid-cols-1"];
|
|
872
872
|
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
873
|
}
|
|
874
|
-
var
|
|
874
|
+
var we = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a = {
|
|
875
875
|
sm: 2,
|
|
876
876
|
md: 3,
|
|
877
877
|
lg: 4
|
|
878
878
|
}, gap: o = "default" }, s) {
|
|
879
|
-
return /* @__PURE__ */
|
|
879
|
+
return /* @__PURE__ */ T("div", {
|
|
880
880
|
ref: s,
|
|
881
|
-
className: e("grid",
|
|
881
|
+
className: e("grid", Ce(a), Se[o], i),
|
|
882
882
|
"data-component": "media-grid",
|
|
883
|
-
children: _.map(n, (e) => /* @__PURE__ */
|
|
883
|
+
children: _.map(n, (e) => /* @__PURE__ */ T(r, {
|
|
884
884
|
ratio: t,
|
|
885
885
|
className: "overflow-hidden rounded-lg",
|
|
886
886
|
children: e
|
|
887
887
|
}))
|
|
888
888
|
});
|
|
889
|
-
}),
|
|
890
|
-
return /* @__PURE__ */
|
|
889
|
+
}), Te = v(function({ title: n, children: r, glass: i, className: a }, o) {
|
|
890
|
+
return /* @__PURE__ */ E("div", {
|
|
891
891
|
ref: o,
|
|
892
892
|
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
893
|
"data-component": "mini-dashboard",
|
|
894
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
894
|
+
children: [n !== void 0 && /* @__PURE__ */ T("h2", {
|
|
895
895
|
className: "mb-3 gds-text-body font-semibold text-fg",
|
|
896
896
|
children: n
|
|
897
897
|
}), r]
|
|
898
898
|
});
|
|
899
|
-
}),
|
|
900
|
-
return /* @__PURE__ */
|
|
899
|
+
}), Ee = v(function({ children: t, columns: n, className: r }, i) {
|
|
900
|
+
return /* @__PURE__ */ T("div", {
|
|
901
901
|
ref: i,
|
|
902
902
|
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
903
|
"data-component": "monitor-grid",
|
|
904
904
|
children: t
|
|
905
905
|
});
|
|
906
|
-
}),
|
|
907
|
-
return /* @__PURE__ */
|
|
906
|
+
}), De = v(function({ logo: n, links: r, actions: i, sticky: a = !0, glass: o = !0, className: s }, c) {
|
|
907
|
+
return /* @__PURE__ */ E("nav", {
|
|
908
908
|
ref: c,
|
|
909
909
|
className: e("flex w-full items-center justify-between px-6 py-3", a && "sticky top-0 z-40", o && t(!0), s),
|
|
910
910
|
"data-component": "nav-bar",
|
|
911
911
|
children: [
|
|
912
|
-
n !== void 0 && /* @__PURE__ */
|
|
912
|
+
n !== void 0 && /* @__PURE__ */ T("div", {
|
|
913
913
|
className: "flex-shrink-0",
|
|
914
914
|
children: n
|
|
915
915
|
}),
|
|
916
|
-
r !== void 0 && r.length > 0 && /* @__PURE__ */
|
|
916
|
+
r !== void 0 && r.length > 0 && /* @__PURE__ */ T("div", {
|
|
917
917
|
className: "flex items-center gap-6",
|
|
918
|
-
children: r.map((t) => /* @__PURE__ */
|
|
918
|
+
children: r.map((t) => /* @__PURE__ */ T("a", {
|
|
919
919
|
href: t.href,
|
|
920
920
|
className: e("text-sm transition-colors", t.active ? "text-accent font-medium" : "text-fg-muted hover:text-fg"),
|
|
921
921
|
children: t.label
|
|
922
922
|
}, t.href))
|
|
923
923
|
}),
|
|
924
|
-
i !== void 0 && /* @__PURE__ */
|
|
924
|
+
i !== void 0 && /* @__PURE__ */ T("div", {
|
|
925
925
|
className: "flex items-center gap-3",
|
|
926
926
|
children: i
|
|
927
927
|
})
|
|
928
928
|
]
|
|
929
929
|
});
|
|
930
|
-
}),
|
|
931
|
-
return /* @__PURE__ */
|
|
930
|
+
}), Oe = v(function({ className: t, notifications: n, onRead: r, onReadAll: i, ...a }, o) {
|
|
931
|
+
return /* @__PURE__ */ E("div", {
|
|
932
932
|
className: e("gds-ctx gds-radius-card border border-border bg-surface", t),
|
|
933
933
|
"data-component": "notification-list",
|
|
934
934
|
ref: o,
|
|
935
935
|
...a,
|
|
936
|
-
children: [/* @__PURE__ */
|
|
936
|
+
children: [/* @__PURE__ */ E("div", {
|
|
937
937
|
className: "flex items-center justify-between border-b border-border px-4 py-2.5",
|
|
938
|
-
children: [/* @__PURE__ */
|
|
938
|
+
children: [/* @__PURE__ */ T("span", {
|
|
939
939
|
className: "text-sm font-semibold text-fg",
|
|
940
940
|
children: "Notifications"
|
|
941
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
941
|
+
}), i !== void 0 && /* @__PURE__ */ T("button", {
|
|
942
942
|
className: "text-xs text-accent hover:underline",
|
|
943
943
|
onClick: i,
|
|
944
944
|
type: "button",
|
|
945
945
|
children: "Mark all read"
|
|
946
946
|
})]
|
|
947
|
-
}), n.length === 0 ? /* @__PURE__ */
|
|
947
|
+
}), n.length === 0 ? /* @__PURE__ */ T("div", {
|
|
948
948
|
className: "px-4 py-6 text-center text-xs text-fg-muted",
|
|
949
949
|
children: "No notifications"
|
|
950
|
-
}) : /* @__PURE__ */
|
|
950
|
+
}) : /* @__PURE__ */ T("div", {
|
|
951
951
|
className: "divide-y divide-border",
|
|
952
|
-
children: n.map((t) => /* @__PURE__ */
|
|
952
|
+
children: n.map((t) => /* @__PURE__ */ T("div", {
|
|
953
953
|
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
954
|
onClick: r === void 0 ? void 0 : () => r(t.id),
|
|
955
|
-
children: /* @__PURE__ */
|
|
955
|
+
children: /* @__PURE__ */ E("div", {
|
|
956
956
|
className: "min-w-0 flex-1",
|
|
957
957
|
children: [
|
|
958
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ T("div", {
|
|
959
959
|
className: "text-xs font-medium text-fg",
|
|
960
960
|
children: t.title
|
|
961
961
|
}),
|
|
962
|
-
t.message !== void 0 && /* @__PURE__ */
|
|
962
|
+
t.message !== void 0 && /* @__PURE__ */ T("div", {
|
|
963
963
|
className: "mt-0.5 text-xs text-fg-muted",
|
|
964
964
|
children: t.message
|
|
965
965
|
}),
|
|
966
|
-
/* @__PURE__ */
|
|
966
|
+
/* @__PURE__ */ T("div", {
|
|
967
967
|
className: "mt-1 text-[10px] text-fg-muted",
|
|
968
968
|
children: t.timestamp
|
|
969
969
|
})
|
|
@@ -972,20 +972,20 @@ var ye = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
972
972
|
}, t.id))
|
|
973
973
|
})]
|
|
974
974
|
});
|
|
975
|
-
}),
|
|
975
|
+
}), ke = v(function({ className: t, steps: n, title: r = "Getting Started", ...i }, a) {
|
|
976
976
|
let o = n.filter((e) => e.completed).length, s = n.length > 0 ? Math.round(o / n.length * 100) : 0;
|
|
977
|
-
return /* @__PURE__ */
|
|
977
|
+
return /* @__PURE__ */ E("div", {
|
|
978
978
|
className: e("gds-ctx rounded-lg border border-border bg-surface gds-pad", t),
|
|
979
979
|
"data-component": "onboarding-card",
|
|
980
980
|
ref: a,
|
|
981
981
|
...i,
|
|
982
982
|
children: [
|
|
983
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ E("div", {
|
|
984
984
|
className: "mb-3 flex items-center justify-between",
|
|
985
|
-
children: [/* @__PURE__ */
|
|
985
|
+
children: [/* @__PURE__ */ T("h3", {
|
|
986
986
|
className: "gds-heading font-semibold text-fg",
|
|
987
987
|
children: r
|
|
988
|
-
}), /* @__PURE__ */
|
|
988
|
+
}), /* @__PURE__ */ E("span", {
|
|
989
989
|
className: "gds-text-label text-fg-muted",
|
|
990
990
|
children: [
|
|
991
991
|
o,
|
|
@@ -994,23 +994,23 @@ var ye = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
994
994
|
]
|
|
995
995
|
})]
|
|
996
996
|
}),
|
|
997
|
-
/* @__PURE__ */
|
|
997
|
+
/* @__PURE__ */ T("div", {
|
|
998
998
|
className: "mb-4 h-1.5 w-full overflow-hidden rounded-full bg-border",
|
|
999
|
-
children: /* @__PURE__ */
|
|
999
|
+
children: /* @__PURE__ */ T("div", {
|
|
1000
1000
|
className: "h-full rounded-full bg-accent transition-all",
|
|
1001
1001
|
style: { width: `${s}%` }
|
|
1002
1002
|
})
|
|
1003
1003
|
}),
|
|
1004
|
-
/* @__PURE__ */
|
|
1004
|
+
/* @__PURE__ */ T("ul", {
|
|
1005
1005
|
className: "flex flex-col gds-gap",
|
|
1006
|
-
children: n.map((t, n) => /* @__PURE__ */
|
|
1006
|
+
children: n.map((t, n) => /* @__PURE__ */ E("li", {
|
|
1007
1007
|
className: "flex items-center justify-between gds-gap",
|
|
1008
|
-
children: [/* @__PURE__ */
|
|
1008
|
+
children: [/* @__PURE__ */ E("div", {
|
|
1009
1009
|
className: "flex items-center gds-gap-sm",
|
|
1010
|
-
children: [/* @__PURE__ */
|
|
1010
|
+
children: [/* @__PURE__ */ T("span", {
|
|
1011
1011
|
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
1012
|
children: t.completed ? "✓" : n + 1
|
|
1013
|
-
}), /* @__PURE__ */
|
|
1013
|
+
}), /* @__PURE__ */ T("span", {
|
|
1014
1014
|
className: e("text-sm", t.completed ? "text-fg-muted line-through" : "text-fg"),
|
|
1015
1015
|
children: t.label
|
|
1016
1016
|
})]
|
|
@@ -1019,7 +1019,7 @@ var ye = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
1019
1019
|
})
|
|
1020
1020
|
]
|
|
1021
1021
|
});
|
|
1022
|
-
}),
|
|
1022
|
+
}), Ae = /* @__PURE__ */ T("svg", {
|
|
1023
1023
|
width: "12",
|
|
1024
1024
|
height: "12",
|
|
1025
1025
|
viewBox: "0 0 12 12",
|
|
@@ -1027,96 +1027,96 @@ var ye = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
1027
1027
|
stroke: "currentColor",
|
|
1028
1028
|
strokeWidth: "1.5",
|
|
1029
1029
|
strokeLinecap: "round",
|
|
1030
|
-
children: /* @__PURE__ */
|
|
1031
|
-
}),
|
|
1032
|
-
return /* @__PURE__ */
|
|
1030
|
+
children: /* @__PURE__ */ T("path", { d: "M4.5 3l3 3-3 3" })
|
|
1031
|
+
}), je = v(function({ actions: t, breadcrumb: n, className: r, subtitle: i, title: a }, o) {
|
|
1032
|
+
return /* @__PURE__ */ E("div", {
|
|
1033
1033
|
ref: o,
|
|
1034
1034
|
className: e("flex flex-col gds-gap-sm", r),
|
|
1035
1035
|
"data-component": "page-header",
|
|
1036
|
-
children: [n !== void 0 && n.length > 0 && /* @__PURE__ */
|
|
1036
|
+
children: [n !== void 0 && n.length > 0 && /* @__PURE__ */ T("nav", {
|
|
1037
1037
|
"aria-label": "Breadcrumb",
|
|
1038
|
-
children: /* @__PURE__ */
|
|
1038
|
+
children: /* @__PURE__ */ T("ol", {
|
|
1039
1039
|
className: "flex items-center gds-gap-sm text-[11px] text-fg-muted",
|
|
1040
|
-
children: n.map((e, t) => /* @__PURE__ */
|
|
1040
|
+
children: n.map((e, t) => /* @__PURE__ */ E("li", {
|
|
1041
1041
|
className: "flex items-center gds-gap-sm",
|
|
1042
|
-
children: [t > 0 && /* @__PURE__ */
|
|
1042
|
+
children: [t > 0 && /* @__PURE__ */ T("span", {
|
|
1043
1043
|
className: "text-fg-muted/50",
|
|
1044
1044
|
"aria-hidden": "true",
|
|
1045
|
-
children:
|
|
1046
|
-
}), e.href === void 0 ? /* @__PURE__ */
|
|
1045
|
+
children: Ae
|
|
1046
|
+
}), e.href === void 0 ? /* @__PURE__ */ T("span", { children: e.label }) : /* @__PURE__ */ T("a", {
|
|
1047
1047
|
href: e.href,
|
|
1048
1048
|
className: "transition-colors hover:text-fg",
|
|
1049
1049
|
children: e.label
|
|
1050
1050
|
})]
|
|
1051
1051
|
}, t))
|
|
1052
1052
|
})
|
|
1053
|
-
}), /* @__PURE__ */
|
|
1053
|
+
}), /* @__PURE__ */ E("div", {
|
|
1054
1054
|
className: "flex items-center justify-between gds-gap",
|
|
1055
|
-
children: [/* @__PURE__ */
|
|
1055
|
+
children: [/* @__PURE__ */ E("div", {
|
|
1056
1056
|
className: "min-w-0",
|
|
1057
|
-
children: [/* @__PURE__ */
|
|
1057
|
+
children: [/* @__PURE__ */ T("h1", {
|
|
1058
1058
|
className: "gds-heading font-semibold text-fg",
|
|
1059
1059
|
children: a
|
|
1060
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
1060
|
+
}), i !== void 0 && /* @__PURE__ */ T("p", {
|
|
1061
1061
|
className: "mt-0.5 gds-text-body text-fg-muted",
|
|
1062
1062
|
children: i
|
|
1063
1063
|
})]
|
|
1064
|
-
}), t !== void 0 && /* @__PURE__ */
|
|
1064
|
+
}), t !== void 0 && /* @__PURE__ */ T("div", {
|
|
1065
1065
|
className: "flex shrink-0 items-center gds-gap-sm",
|
|
1066
1066
|
children: t
|
|
1067
1067
|
})]
|
|
1068
1068
|
})]
|
|
1069
1069
|
});
|
|
1070
|
-
}),
|
|
1071
|
-
return /* @__PURE__ */
|
|
1070
|
+
}), Me = v(function({ chart: t, className: n, metrics: r, transactions: i, ...a }, o) {
|
|
1071
|
+
return /* @__PURE__ */ E("div", {
|
|
1072
1072
|
className: e("gds-ctx flex flex-col gds-gap", n),
|
|
1073
1073
|
"data-component": "payroll-dashboard",
|
|
1074
1074
|
ref: o,
|
|
1075
1075
|
...a,
|
|
1076
|
-
children: [r !== void 0 && /* @__PURE__ */
|
|
1076
|
+
children: [r !== void 0 && /* @__PURE__ */ T("div", {
|
|
1077
1077
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
1078
1078
|
children: r
|
|
1079
|
-
}), /* @__PURE__ */
|
|
1079
|
+
}), /* @__PURE__ */ E("div", {
|
|
1080
1080
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
1081
|
-
children: [t !== void 0 && /* @__PURE__ */
|
|
1081
|
+
children: [t !== void 0 && /* @__PURE__ */ T("div", {
|
|
1082
1082
|
className: "gds-radius-card border border-border bg-surface gds-pad",
|
|
1083
1083
|
children: t
|
|
1084
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
1084
|
+
}), i !== void 0 && /* @__PURE__ */ T("div", {
|
|
1085
1085
|
className: "gds-radius-card border border-border bg-surface gds-pad",
|
|
1086
1086
|
children: i
|
|
1087
1087
|
})]
|
|
1088
1088
|
})]
|
|
1089
1089
|
});
|
|
1090
|
-
}),
|
|
1091
|
-
return /* @__PURE__ */
|
|
1090
|
+
}), Ne = v(function({ name: n, price: r, period: i = "/month", features: a, action: o, highlighted: s, glass: c, className: l }, u) {
|
|
1091
|
+
return /* @__PURE__ */ E("div", {
|
|
1092
1092
|
ref: u,
|
|
1093
1093
|
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
1094
|
"data-component": "pricing-card",
|
|
1095
1095
|
"data-highlighted": s === !0 ? "true" : void 0,
|
|
1096
1096
|
children: [
|
|
1097
|
-
/* @__PURE__ */
|
|
1097
|
+
/* @__PURE__ */ T("p", {
|
|
1098
1098
|
className: "font-semibold text-fg",
|
|
1099
1099
|
children: n
|
|
1100
1100
|
}),
|
|
1101
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ E("div", {
|
|
1102
1102
|
className: "mt-2 flex items-baseline gap-1",
|
|
1103
|
-
children: [/* @__PURE__ */
|
|
1103
|
+
children: [/* @__PURE__ */ T("span", {
|
|
1104
1104
|
className: "text-3xl font-bold text-fg",
|
|
1105
1105
|
children: r
|
|
1106
|
-
}), /* @__PURE__ */
|
|
1106
|
+
}), /* @__PURE__ */ T("span", {
|
|
1107
1107
|
className: "gds-text-body text-fg-muted",
|
|
1108
1108
|
children: i
|
|
1109
1109
|
})]
|
|
1110
1110
|
}),
|
|
1111
|
-
a.length > 0 && /* @__PURE__ */
|
|
1111
|
+
a.length > 0 && /* @__PURE__ */ T("ul", {
|
|
1112
1112
|
className: "mt-4 flex flex-col gap-2",
|
|
1113
|
-
children: a.map((e) => /* @__PURE__ */
|
|
1113
|
+
children: a.map((e) => /* @__PURE__ */ E("li", {
|
|
1114
1114
|
className: "flex items-center gap-2 gds-text-body text-fg-muted",
|
|
1115
|
-
children: [/* @__PURE__ */
|
|
1115
|
+
children: [/* @__PURE__ */ T("svg", {
|
|
1116
1116
|
className: "h-4 w-4 shrink-0 text-success",
|
|
1117
1117
|
viewBox: "0 0 16 16",
|
|
1118
1118
|
fill: "none",
|
|
1119
|
-
children: /* @__PURE__ */
|
|
1119
|
+
children: /* @__PURE__ */ T("path", {
|
|
1120
1120
|
d: "M3 8l3 3 7-7",
|
|
1121
1121
|
stroke: "currentColor",
|
|
1122
1122
|
strokeWidth: "2",
|
|
@@ -1126,90 +1126,90 @@ var ye = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
1126
1126
|
}), e]
|
|
1127
1127
|
}, e))
|
|
1128
1128
|
}),
|
|
1129
|
-
o !== void 0 && /* @__PURE__ */
|
|
1129
|
+
o !== void 0 && /* @__PURE__ */ T("div", {
|
|
1130
1130
|
className: "mt-auto pt-4",
|
|
1131
1131
|
children: o
|
|
1132
1132
|
})
|
|
1133
1133
|
]
|
|
1134
1134
|
});
|
|
1135
|
-
}),
|
|
1136
|
-
return /* @__PURE__ */
|
|
1135
|
+
}), Pe = v(function({ actions: n, avatar: r, className: i, glass: a, name: o, role: s, stats: c }, l) {
|
|
1136
|
+
return /* @__PURE__ */ E("div", {
|
|
1137
1137
|
ref: l,
|
|
1138
1138
|
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
1139
|
"data-component": "profile-card",
|
|
1140
1140
|
children: [
|
|
1141
|
-
/* @__PURE__ */
|
|
1141
|
+
/* @__PURE__ */ T(u, {
|
|
1142
1142
|
name: o,
|
|
1143
1143
|
src: r,
|
|
1144
1144
|
size: "lg"
|
|
1145
1145
|
}),
|
|
1146
|
-
/* @__PURE__ */
|
|
1146
|
+
/* @__PURE__ */ T("p", {
|
|
1147
1147
|
className: "mt-3 text-sm font-semibold text-fg",
|
|
1148
1148
|
children: o
|
|
1149
1149
|
}),
|
|
1150
|
-
s !== void 0 && /* @__PURE__ */
|
|
1150
|
+
s !== void 0 && /* @__PURE__ */ T("p", {
|
|
1151
1151
|
className: "mt-0.5 text-xs text-fg-muted",
|
|
1152
1152
|
children: s
|
|
1153
1153
|
}),
|
|
1154
|
-
c !== void 0 && c.length > 0 && /* @__PURE__ */
|
|
1154
|
+
c !== void 0 && c.length > 0 && /* @__PURE__ */ T("div", {
|
|
1155
1155
|
className: "mt-3 flex w-full justify-center gds-gap",
|
|
1156
|
-
children: c.map((e) => /* @__PURE__ */
|
|
1156
|
+
children: c.map((e) => /* @__PURE__ */ E("div", {
|
|
1157
1157
|
className: "flex flex-col items-center",
|
|
1158
|
-
children: [/* @__PURE__ */
|
|
1158
|
+
children: [/* @__PURE__ */ T("span", {
|
|
1159
1159
|
className: "text-sm font-bold text-fg",
|
|
1160
1160
|
children: e.value
|
|
1161
|
-
}), /* @__PURE__ */
|
|
1161
|
+
}), /* @__PURE__ */ T("span", {
|
|
1162
1162
|
className: "text-[10px] text-fg-muted",
|
|
1163
1163
|
children: e.label
|
|
1164
1164
|
})]
|
|
1165
1165
|
}, e.label))
|
|
1166
1166
|
}),
|
|
1167
|
-
n !== void 0 && /* @__PURE__ */
|
|
1167
|
+
n !== void 0 && /* @__PURE__ */ T("div", {
|
|
1168
1168
|
className: "mt-3 flex w-full justify-center gds-gap",
|
|
1169
1169
|
children: n
|
|
1170
1170
|
})
|
|
1171
1171
|
]
|
|
1172
1172
|
});
|
|
1173
|
-
}),
|
|
1174
|
-
return /* @__PURE__ */
|
|
1173
|
+
}), Fe = v(function({ activity: t, className: n, progress: r, tasks: i, team: a }, o) {
|
|
1174
|
+
return /* @__PURE__ */ E("div", {
|
|
1175
1175
|
className: e("grid grid-cols-2 gds-gap", n),
|
|
1176
1176
|
"data-component": "project-dashboard",
|
|
1177
1177
|
ref: o,
|
|
1178
1178
|
children: [
|
|
1179
|
-
r !== void 0 && /* @__PURE__ */
|
|
1179
|
+
r !== void 0 && /* @__PURE__ */ T("section", {
|
|
1180
1180
|
"data-slot": "progress",
|
|
1181
1181
|
children: r
|
|
1182
1182
|
}),
|
|
1183
|
-
a !== void 0 && /* @__PURE__ */
|
|
1183
|
+
a !== void 0 && /* @__PURE__ */ T("section", {
|
|
1184
1184
|
"data-slot": "team",
|
|
1185
1185
|
children: a
|
|
1186
1186
|
}),
|
|
1187
|
-
t !== void 0 && /* @__PURE__ */
|
|
1187
|
+
t !== void 0 && /* @__PURE__ */ T("section", {
|
|
1188
1188
|
"data-slot": "activity",
|
|
1189
1189
|
children: t
|
|
1190
1190
|
}),
|
|
1191
|
-
i !== void 0 && /* @__PURE__ */
|
|
1191
|
+
i !== void 0 && /* @__PURE__ */ T("section", {
|
|
1192
1192
|
"data-slot": "tasks",
|
|
1193
1193
|
children: i
|
|
1194
1194
|
})
|
|
1195
1195
|
]
|
|
1196
1196
|
});
|
|
1197
|
-
}),
|
|
1197
|
+
}), Ie = v(function({ mobile: t, tablet: n, desktop: r, className: i }, a) {
|
|
1198
1198
|
let o = n ?? t;
|
|
1199
|
-
return /* @__PURE__ */
|
|
1199
|
+
return /* @__PURE__ */ E("div", {
|
|
1200
1200
|
ref: a,
|
|
1201
1201
|
className: e(i),
|
|
1202
1202
|
"data-component": "responsive-container",
|
|
1203
1203
|
children: [
|
|
1204
|
-
/* @__PURE__ */
|
|
1204
|
+
/* @__PURE__ */ T("div", {
|
|
1205
1205
|
className: "block sm:hidden",
|
|
1206
1206
|
children: t
|
|
1207
1207
|
}),
|
|
1208
|
-
/* @__PURE__ */
|
|
1208
|
+
/* @__PURE__ */ T("div", {
|
|
1209
1209
|
className: "hidden sm:block lg:hidden",
|
|
1210
1210
|
children: o
|
|
1211
1211
|
}),
|
|
1212
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ T("div", {
|
|
1213
1213
|
className: "hidden lg:block",
|
|
1214
1214
|
children: r
|
|
1215
1215
|
})
|
|
@@ -1218,68 +1218,68 @@ var ye = v(function({ aspectRatio: t = 1, children: n, className: i, columns: a
|
|
|
1218
1218
|
});
|
|
1219
1219
|
//#endregion
|
|
1220
1220
|
//#region src/l7-patterns/server-overview.tsx
|
|
1221
|
-
function
|
|
1221
|
+
function Le(e) {
|
|
1222
1222
|
return e >= 90 ? "danger" : e >= 70 ? "warning" : "success";
|
|
1223
1223
|
}
|
|
1224
|
-
var
|
|
1225
|
-
function
|
|
1226
|
-
return /* @__PURE__ */
|
|
1227
|
-
className:
|
|
1224
|
+
var Re = "flex items-center gap-2", ze = "w-8 text-[10px] text-fg-muted", Be = "w-8 text-right text-[10px] font-mono text-fg-muted";
|
|
1225
|
+
function J({ label: e, value: t }) {
|
|
1226
|
+
return /* @__PURE__ */ E("div", {
|
|
1227
|
+
className: Re,
|
|
1228
1228
|
children: [
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
className:
|
|
1229
|
+
/* @__PURE__ */ T("span", {
|
|
1230
|
+
className: ze,
|
|
1231
1231
|
children: e
|
|
1232
1232
|
}),
|
|
1233
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ T(c, {
|
|
1234
1234
|
value: t,
|
|
1235
|
-
variant:
|
|
1235
|
+
variant: Le(t),
|
|
1236
1236
|
size: "sm"
|
|
1237
1237
|
}),
|
|
1238
|
-
/* @__PURE__ */
|
|
1239
|
-
className:
|
|
1238
|
+
/* @__PURE__ */ E("span", {
|
|
1239
|
+
className: Be,
|
|
1240
1240
|
children: [t, "%"]
|
|
1241
1241
|
})
|
|
1242
1242
|
]
|
|
1243
1243
|
});
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1246
|
-
return /* @__PURE__ */
|
|
1245
|
+
var Ve = v(function({ className: t, servers: n, ...r }, i) {
|
|
1246
|
+
return /* @__PURE__ */ T("div", {
|
|
1247
1247
|
className: e("grid gap-3 sm:grid-cols-2 lg:grid-cols-3", t),
|
|
1248
1248
|
"data-component": "server-overview",
|
|
1249
1249
|
ref: i,
|
|
1250
1250
|
...r,
|
|
1251
|
-
children: n.map((t) => /* @__PURE__ */
|
|
1251
|
+
children: n.map((t) => /* @__PURE__ */ E("div", {
|
|
1252
1252
|
className: "rounded-lg border border-border bg-surface p-3 gds-ctx",
|
|
1253
1253
|
children: [
|
|
1254
|
-
/* @__PURE__ */
|
|
1254
|
+
/* @__PURE__ */ E("div", {
|
|
1255
1255
|
className: "flex items-center justify-between mb-2",
|
|
1256
|
-
children: [/* @__PURE__ */
|
|
1256
|
+
children: [/* @__PURE__ */ T("span", {
|
|
1257
1257
|
className: "gds-text-label font-medium text-fg",
|
|
1258
1258
|
children: t.name
|
|
1259
|
-
}), /* @__PURE__ */
|
|
1259
|
+
}), /* @__PURE__ */ E("span", {
|
|
1260
1260
|
className: "inline-flex items-center gap-1.5",
|
|
1261
|
-
children: [/* @__PURE__ */
|
|
1261
|
+
children: [/* @__PURE__ */ T("span", { className: e("h-2 w-2 rounded-full", t.status === "online" ? "bg-success" : "bg-danger") }), /* @__PURE__ */ T("span", {
|
|
1262
1262
|
className: "text-xs text-fg-muted",
|
|
1263
1263
|
children: t.status
|
|
1264
1264
|
})]
|
|
1265
1265
|
})]
|
|
1266
1266
|
}),
|
|
1267
|
-
/* @__PURE__ */
|
|
1267
|
+
/* @__PURE__ */ T("div", {
|
|
1268
1268
|
className: "text-xs text-fg-muted mb-2",
|
|
1269
1269
|
children: t.location
|
|
1270
1270
|
}),
|
|
1271
|
-
t.metrics !== void 0 && /* @__PURE__ */
|
|
1271
|
+
t.metrics !== void 0 && /* @__PURE__ */ E("div", {
|
|
1272
1272
|
className: "flex flex-col gap-1.5",
|
|
1273
1273
|
children: [
|
|
1274
|
-
/* @__PURE__ */
|
|
1274
|
+
/* @__PURE__ */ T(J, {
|
|
1275
1275
|
label: "CPU",
|
|
1276
1276
|
value: t.metrics.cpu
|
|
1277
1277
|
}),
|
|
1278
|
-
/* @__PURE__ */
|
|
1278
|
+
/* @__PURE__ */ T(J, {
|
|
1279
1279
|
label: "MEM",
|
|
1280
1280
|
value: t.metrics.mem
|
|
1281
1281
|
}),
|
|
1282
|
-
/* @__PURE__ */
|
|
1282
|
+
/* @__PURE__ */ T(J, {
|
|
1283
1283
|
label: "DISK",
|
|
1284
1284
|
value: t.metrics.disk
|
|
1285
1285
|
})
|
|
@@ -1291,24 +1291,24 @@ var Ie = v(function({ className: t, servers: n, ...r }, i) {
|
|
|
1291
1291
|
});
|
|
1292
1292
|
//#endregion
|
|
1293
1293
|
//#region src/l7-patterns/settings-layout.tsx
|
|
1294
|
-
function
|
|
1295
|
-
let [i, a] =
|
|
1296
|
-
return /* @__PURE__ */
|
|
1294
|
+
function He({ className: t, defaultSection: n, sections: r }) {
|
|
1295
|
+
let [i, a] = C(n ?? r[0]?.id ?? ""), o = r.find((e) => e.id === i);
|
|
1296
|
+
return /* @__PURE__ */ E("div", {
|
|
1297
1297
|
className: e("flex gap-6", t),
|
|
1298
1298
|
"data-component": "settings-layout",
|
|
1299
|
-
children: [/* @__PURE__ */
|
|
1299
|
+
children: [/* @__PURE__ */ T("nav", {
|
|
1300
1300
|
className: "w-48 shrink-0",
|
|
1301
|
-
children: /* @__PURE__ */
|
|
1301
|
+
children: /* @__PURE__ */ T("ul", {
|
|
1302
1302
|
className: "flex flex-col gap-0.5",
|
|
1303
1303
|
role: "list",
|
|
1304
|
-
children: r.map((t) => /* @__PURE__ */
|
|
1304
|
+
children: r.map((t) => /* @__PURE__ */ T("li", { children: /* @__PURE__ */ T("button", {
|
|
1305
1305
|
type: "button",
|
|
1306
1306
|
className: e("w-full rounded-md px-3 py-2 text-left gds-text-body transition-colors", t.id === i ? "bg-accent/10 font-medium text-accent" : "text-fg-muted hover:bg-bg-tertiary hover:text-fg"),
|
|
1307
1307
|
onClick: () => a(t.id),
|
|
1308
1308
|
children: t.label
|
|
1309
1309
|
}) }, t.id))
|
|
1310
1310
|
})
|
|
1311
|
-
}), /* @__PURE__ */
|
|
1311
|
+
}), /* @__PURE__ */ T("div", {
|
|
1312
1312
|
className: "min-w-0 flex-1",
|
|
1313
1313
|
children: o === void 0 ? null : o.content
|
|
1314
1314
|
})]
|
|
@@ -1316,22 +1316,22 @@ function Le({ className: t, defaultSection: n, sections: r }) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
//#endregion
|
|
1318
1318
|
//#region src/l7-patterns/sidebar.tsx
|
|
1319
|
-
var
|
|
1319
|
+
var Ue = v(function({ children: n, collapsed: r = !1, onCollapse: i, width: a = 240, collapsedWidth: o = 56, position: s = "left", glass: c, className: l }, u) {
|
|
1320
1320
|
let d = r ? o : a;
|
|
1321
|
-
return /* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ E("div", {
|
|
1322
1322
|
ref: u,
|
|
1323
1323
|
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),
|
|
1324
1324
|
"data-collapsed": r,
|
|
1325
1325
|
"data-component": "sidebar",
|
|
1326
1326
|
style: { width: d },
|
|
1327
|
-
children: [/* @__PURE__ */
|
|
1327
|
+
children: [/* @__PURE__ */ T("div", {
|
|
1328
1328
|
className: "flex-1 overflow-hidden",
|
|
1329
1329
|
children: n
|
|
1330
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
1330
|
+
}), i !== void 0 && /* @__PURE__ */ T("button", {
|
|
1331
1331
|
className: "flex h-10 items-center justify-center border-t border-border/50 text-fg-muted hover:text-fg transition-colors",
|
|
1332
1332
|
type: "button",
|
|
1333
1333
|
onClick: () => i(!r),
|
|
1334
|
-
children: /* @__PURE__ */
|
|
1334
|
+
children: /* @__PURE__ */ T("svg", {
|
|
1335
1335
|
className: e("transition-transform duration-200", r && "rotate-180", s === "right" && "rotate-180", r && s === "right" && "rotate-0"),
|
|
1336
1336
|
fill: "none",
|
|
1337
1337
|
height: "14",
|
|
@@ -1339,106 +1339,106 @@ var Re = v(function({ children: n, collapsed: r = !1, onCollapse: i, width: a =
|
|
|
1339
1339
|
strokeWidth: "2",
|
|
1340
1340
|
viewBox: "0 0 24 24",
|
|
1341
1341
|
width: "14",
|
|
1342
|
-
children: /* @__PURE__ */
|
|
1342
|
+
children: /* @__PURE__ */ T("polyline", { points: "15 18 9 12 15 6" })
|
|
1343
1343
|
})
|
|
1344
1344
|
})]
|
|
1345
1345
|
});
|
|
1346
1346
|
});
|
|
1347
1347
|
//#endregion
|
|
1348
1348
|
//#region src/l7-patterns/skeleton-pattern.tsx
|
|
1349
|
-
function
|
|
1350
|
-
return /* @__PURE__ */
|
|
1349
|
+
function We() {
|
|
1350
|
+
return /* @__PURE__ */ E("div", {
|
|
1351
1351
|
className: "flex flex-col gds-gap gds-ctx gds-pad gds-radius-card",
|
|
1352
1352
|
children: [
|
|
1353
|
-
/* @__PURE__ */
|
|
1353
|
+
/* @__PURE__ */ T(l, {
|
|
1354
1354
|
variant: "rect",
|
|
1355
1355
|
height: 120
|
|
1356
1356
|
}),
|
|
1357
|
-
/* @__PURE__ */
|
|
1357
|
+
/* @__PURE__ */ T(l, {
|
|
1358
1358
|
variant: "text",
|
|
1359
1359
|
width: "60%"
|
|
1360
1360
|
}),
|
|
1361
|
-
/* @__PURE__ */
|
|
1361
|
+
/* @__PURE__ */ T(l, {
|
|
1362
1362
|
variant: "text",
|
|
1363
1363
|
lines: 2
|
|
1364
1364
|
})
|
|
1365
1365
|
]
|
|
1366
1366
|
});
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return /* @__PURE__ */
|
|
1368
|
+
function Ge() {
|
|
1369
|
+
return /* @__PURE__ */ E("div", {
|
|
1370
1370
|
className: "flex items-center gap-3",
|
|
1371
|
-
children: [/* @__PURE__ */
|
|
1371
|
+
children: [/* @__PURE__ */ T(l, { variant: "circle" }), /* @__PURE__ */ E("div", {
|
|
1372
1372
|
className: "flex flex-1 flex-col gap-2",
|
|
1373
|
-
children: [/* @__PURE__ */
|
|
1373
|
+
children: [/* @__PURE__ */ T(l, {
|
|
1374
1374
|
variant: "text",
|
|
1375
1375
|
width: "40%"
|
|
1376
|
-
}), /* @__PURE__ */
|
|
1376
|
+
}), /* @__PURE__ */ T(l, {
|
|
1377
1377
|
variant: "text",
|
|
1378
1378
|
width: "80%"
|
|
1379
1379
|
})]
|
|
1380
1380
|
})]
|
|
1381
1381
|
});
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return /* @__PURE__ */
|
|
1383
|
+
function Ke() {
|
|
1384
|
+
return /* @__PURE__ */ E("div", {
|
|
1385
1385
|
className: "flex flex-col items-center gds-gap gds-ctx gds-pad",
|
|
1386
1386
|
children: [
|
|
1387
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ T(l, {
|
|
1388
1388
|
variant: "circle",
|
|
1389
1389
|
width: 64,
|
|
1390
1390
|
height: 64
|
|
1391
1391
|
}),
|
|
1392
|
-
/* @__PURE__ */
|
|
1392
|
+
/* @__PURE__ */ T(l, {
|
|
1393
1393
|
variant: "text",
|
|
1394
1394
|
width: "30%"
|
|
1395
1395
|
}),
|
|
1396
|
-
/* @__PURE__ */
|
|
1396
|
+
/* @__PURE__ */ T(l, {
|
|
1397
1397
|
variant: "text",
|
|
1398
1398
|
lines: 3
|
|
1399
1399
|
})
|
|
1400
1400
|
]
|
|
1401
1401
|
});
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1404
|
-
return /* @__PURE__ */
|
|
1403
|
+
function qe({ rows: e }) {
|
|
1404
|
+
return /* @__PURE__ */ E("div", {
|
|
1405
1405
|
className: "flex flex-col gap-2",
|
|
1406
|
-
children: [/* @__PURE__ */
|
|
1406
|
+
children: [/* @__PURE__ */ E("div", {
|
|
1407
1407
|
className: "flex gap-4",
|
|
1408
1408
|
children: [
|
|
1409
|
-
/* @__PURE__ */
|
|
1409
|
+
/* @__PURE__ */ T(l, {
|
|
1410
1410
|
variant: "text",
|
|
1411
1411
|
width: "25%"
|
|
1412
1412
|
}),
|
|
1413
|
-
/* @__PURE__ */
|
|
1413
|
+
/* @__PURE__ */ T(l, {
|
|
1414
1414
|
variant: "text",
|
|
1415
1415
|
width: "25%"
|
|
1416
1416
|
}),
|
|
1417
|
-
/* @__PURE__ */
|
|
1417
|
+
/* @__PURE__ */ T(l, {
|
|
1418
1418
|
variant: "text",
|
|
1419
1419
|
width: "25%"
|
|
1420
1420
|
}),
|
|
1421
|
-
/* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ T(l, {
|
|
1422
1422
|
variant: "text",
|
|
1423
1423
|
width: "25%"
|
|
1424
1424
|
})
|
|
1425
1425
|
]
|
|
1426
|
-
}), Array.from({ length: e }, (e, t) => /* @__PURE__ */
|
|
1426
|
+
}), Array.from({ length: e }, (e, t) => /* @__PURE__ */ E("div", {
|
|
1427
1427
|
className: "flex gap-4",
|
|
1428
1428
|
children: [
|
|
1429
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ T(l, {
|
|
1430
1430
|
variant: "text",
|
|
1431
1431
|
width: "25%"
|
|
1432
1432
|
}),
|
|
1433
|
-
/* @__PURE__ */
|
|
1433
|
+
/* @__PURE__ */ T(l, {
|
|
1434
1434
|
variant: "text",
|
|
1435
1435
|
width: "25%"
|
|
1436
1436
|
}),
|
|
1437
|
-
/* @__PURE__ */
|
|
1437
|
+
/* @__PURE__ */ T(l, {
|
|
1438
1438
|
variant: "text",
|
|
1439
1439
|
width: "25%"
|
|
1440
1440
|
}),
|
|
1441
|
-
/* @__PURE__ */
|
|
1441
|
+
/* @__PURE__ */ T(l, {
|
|
1442
1442
|
variant: "text",
|
|
1443
1443
|
width: "25%"
|
|
1444
1444
|
})
|
|
@@ -1446,80 +1446,80 @@ function $({ rows: e }) {
|
|
|
1446
1446
|
}, t))]
|
|
1447
1447
|
});
|
|
1448
1448
|
}
|
|
1449
|
-
var
|
|
1449
|
+
var Je = v(function({ variant: t, count: n = 1, glass: r, className: i }, a) {
|
|
1450
1450
|
let o = r ? "backdrop-blur-md bg-white/5" : void 0;
|
|
1451
|
-
return t === "card" ? /* @__PURE__ */
|
|
1451
|
+
return t === "card" ? /* @__PURE__ */ T("div", {
|
|
1452
1452
|
ref: a,
|
|
1453
1453
|
className: e("gds-ctx gds-radius-card", o, i),
|
|
1454
1454
|
"data-component": "skeleton-pattern",
|
|
1455
1455
|
"data-variant": "card",
|
|
1456
|
-
children: /* @__PURE__ */
|
|
1457
|
-
}) : t === "list" ? /* @__PURE__ */
|
|
1456
|
+
children: /* @__PURE__ */ T(We, {})
|
|
1457
|
+
}) : t === "list" ? /* @__PURE__ */ T("div", {
|
|
1458
1458
|
ref: a,
|
|
1459
1459
|
className: e("flex flex-col gds-gap gds-ctx gds-pad", o, i),
|
|
1460
1460
|
"data-component": "skeleton-pattern",
|
|
1461
1461
|
"data-variant": "list",
|
|
1462
|
-
children: Array.from({ length: n }, (e, t) => /* @__PURE__ */
|
|
1463
|
-
}) : t === "profile" ? /* @__PURE__ */
|
|
1462
|
+
children: Array.from({ length: n }, (e, t) => /* @__PURE__ */ T(Ge, {}, t))
|
|
1463
|
+
}) : t === "profile" ? /* @__PURE__ */ T("div", {
|
|
1464
1464
|
ref: a,
|
|
1465
1465
|
className: e(o, i),
|
|
1466
1466
|
"data-component": "skeleton-pattern",
|
|
1467
1467
|
"data-variant": "profile",
|
|
1468
|
-
children: /* @__PURE__ */
|
|
1469
|
-
}) : /* @__PURE__ */
|
|
1468
|
+
children: /* @__PURE__ */ T(Ke, {})
|
|
1469
|
+
}) : /* @__PURE__ */ T("div", {
|
|
1470
1470
|
ref: a,
|
|
1471
1471
|
className: e("gds-ctx gds-pad", o, i),
|
|
1472
1472
|
"data-component": "skeleton-pattern",
|
|
1473
1473
|
"data-variant": "table",
|
|
1474
|
-
children: /* @__PURE__ */
|
|
1474
|
+
children: /* @__PURE__ */ T(qe, { rows: n })
|
|
1475
1475
|
});
|
|
1476
1476
|
});
|
|
1477
1477
|
//#endregion
|
|
1478
1478
|
//#region src/l7-patterns/splash-screen.tsx
|
|
1479
|
-
function
|
|
1480
|
-
return /* @__PURE__ */
|
|
1479
|
+
function Ye() {
|
|
1480
|
+
return /* @__PURE__ */ E("svg", {
|
|
1481
1481
|
className: "h-5 w-5 animate-spin text-accent",
|
|
1482
1482
|
fill: "none",
|
|
1483
1483
|
viewBox: "0 0 24 24",
|
|
1484
|
-
children: [/* @__PURE__ */
|
|
1484
|
+
children: [/* @__PURE__ */ T("circle", {
|
|
1485
1485
|
className: "opacity-25",
|
|
1486
1486
|
cx: "12",
|
|
1487
1487
|
cy: "12",
|
|
1488
1488
|
r: "10",
|
|
1489
1489
|
stroke: "currentColor",
|
|
1490
1490
|
strokeWidth: "4"
|
|
1491
|
-
}), /* @__PURE__ */
|
|
1491
|
+
}), /* @__PURE__ */ T("path", {
|
|
1492
1492
|
className: "opacity-75",
|
|
1493
1493
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z",
|
|
1494
1494
|
fill: "currentColor"
|
|
1495
1495
|
})]
|
|
1496
1496
|
});
|
|
1497
1497
|
}
|
|
1498
|
-
var
|
|
1499
|
-
return /* @__PURE__ */
|
|
1498
|
+
var Xe = v(function({ className: t, logo: n, message: r, title: i, visible: a, ...o }, s) {
|
|
1499
|
+
return /* @__PURE__ */ E("div", {
|
|
1500
1500
|
ref: s,
|
|
1501
1501
|
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
1502
|
"data-component": "splash-screen",
|
|
1503
1503
|
"data-visible": a,
|
|
1504
1504
|
...o,
|
|
1505
1505
|
children: [
|
|
1506
|
-
n !== void 0 && /* @__PURE__ */
|
|
1506
|
+
n !== void 0 && /* @__PURE__ */ T("div", {
|
|
1507
1507
|
className: "mb-6",
|
|
1508
1508
|
children: n
|
|
1509
1509
|
}),
|
|
1510
|
-
i !== void 0 && /* @__PURE__ */
|
|
1510
|
+
i !== void 0 && /* @__PURE__ */ T("h1", {
|
|
1511
1511
|
className: "mb-2 text-lg font-semibold text-fg",
|
|
1512
1512
|
children: i
|
|
1513
1513
|
}),
|
|
1514
|
-
r !== void 0 && /* @__PURE__ */
|
|
1514
|
+
r !== void 0 && /* @__PURE__ */ T("p", {
|
|
1515
1515
|
className: "mb-8 text-sm text-fg-muted",
|
|
1516
1516
|
children: r
|
|
1517
1517
|
}),
|
|
1518
|
-
/* @__PURE__ */
|
|
1518
|
+
/* @__PURE__ */ T(Ye, {})
|
|
1519
1519
|
]
|
|
1520
1520
|
});
|
|
1521
|
-
}),
|
|
1522
|
-
let [l, u] =
|
|
1521
|
+
}), Ze = v(function({ className: t, defaultSplit: n = 50, left: r, minLeft: i = 20, minRight: a = 20, right: o, ...s }, c) {
|
|
1522
|
+
let [l, u] = C(n), d = S(null), p = y((e) => {
|
|
1523
1523
|
let t = d.current;
|
|
1524
1524
|
if (t === null) return;
|
|
1525
1525
|
let n = t.offsetWidth;
|
|
@@ -1530,7 +1530,7 @@ var We = v(function({ className: t, logo: n, message: r, title: i, visible: a, .
|
|
|
1530
1530
|
return t < i ? i : t > 100 - a ? 100 - a : t;
|
|
1531
1531
|
});
|
|
1532
1532
|
}, [i, a]);
|
|
1533
|
-
return /* @__PURE__ */
|
|
1533
|
+
return /* @__PURE__ */ E("div", {
|
|
1534
1534
|
className: e("flex h-full w-full", t),
|
|
1535
1535
|
"data-component": "split-view",
|
|
1536
1536
|
ref: (e) => {
|
|
@@ -1538,45 +1538,188 @@ var We = v(function({ className: t, logo: n, message: r, title: i, visible: a, .
|
|
|
1538
1538
|
},
|
|
1539
1539
|
...s,
|
|
1540
1540
|
children: [
|
|
1541
|
-
/* @__PURE__ */
|
|
1541
|
+
/* @__PURE__ */ T("div", {
|
|
1542
1542
|
className: "overflow-auto",
|
|
1543
1543
|
style: { width: `${l}%` },
|
|
1544
1544
|
children: r
|
|
1545
1545
|
}),
|
|
1546
|
-
/* @__PURE__ */
|
|
1546
|
+
/* @__PURE__ */ T(f, {
|
|
1547
1547
|
orientation: "vertical",
|
|
1548
1548
|
onResize: p
|
|
1549
1549
|
}),
|
|
1550
|
-
/* @__PURE__ */
|
|
1550
|
+
/* @__PURE__ */ T("div", {
|
|
1551
1551
|
className: "overflow-auto",
|
|
1552
1552
|
style: { width: `${100 - l}%` },
|
|
1553
1553
|
children: o
|
|
1554
1554
|
})
|
|
1555
1555
|
]
|
|
1556
1556
|
});
|
|
1557
|
-
}),
|
|
1557
|
+
}), Qe = {
|
|
1558
|
+
default: "text-2xl",
|
|
1559
|
+
lg: "text-3xl",
|
|
1560
|
+
sm: "text-lg"
|
|
1561
|
+
}, Y = {
|
|
1562
|
+
down: "text-danger",
|
|
1563
|
+
neutral: "text-fg-muted",
|
|
1564
|
+
up: "text-success"
|
|
1565
|
+
};
|
|
1566
|
+
function X() {
|
|
1567
|
+
return /* @__PURE__ */ T("svg", {
|
|
1568
|
+
className: "h-3 w-3",
|
|
1569
|
+
fill: "none",
|
|
1570
|
+
stroke: "currentColor",
|
|
1571
|
+
strokeWidth: "2.5",
|
|
1572
|
+
viewBox: "0 0 24 24",
|
|
1573
|
+
children: /* @__PURE__ */ T("path", {
|
|
1574
|
+
d: "M12 19V5M5 12l7-7 7 7",
|
|
1575
|
+
strokeLinecap: "round",
|
|
1576
|
+
strokeLinejoin: "round"
|
|
1577
|
+
})
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
function Z() {
|
|
1581
|
+
return /* @__PURE__ */ T("svg", {
|
|
1582
|
+
className: "h-3 w-3",
|
|
1583
|
+
fill: "none",
|
|
1584
|
+
stroke: "currentColor",
|
|
1585
|
+
strokeWidth: "2.5",
|
|
1586
|
+
viewBox: "0 0 24 24",
|
|
1587
|
+
children: /* @__PURE__ */ T("path", {
|
|
1588
|
+
d: "M12 5v14M19 12l-7 7-7-7",
|
|
1589
|
+
strokeLinecap: "round",
|
|
1590
|
+
strokeLinejoin: "round"
|
|
1591
|
+
})
|
|
1592
|
+
});
|
|
1593
|
+
}
|
|
1594
|
+
function Q() {
|
|
1595
|
+
return /* @__PURE__ */ T("svg", {
|
|
1596
|
+
className: "h-3 w-3",
|
|
1597
|
+
fill: "none",
|
|
1598
|
+
stroke: "currentColor",
|
|
1599
|
+
strokeWidth: "2.5",
|
|
1600
|
+
viewBox: "0 0 24 24",
|
|
1601
|
+
children: /* @__PURE__ */ T("path", {
|
|
1602
|
+
d: "M5 12h14",
|
|
1603
|
+
strokeLinecap: "round"
|
|
1604
|
+
})
|
|
1605
|
+
});
|
|
1606
|
+
}
|
|
1607
|
+
var $e = {
|
|
1608
|
+
down: Z,
|
|
1609
|
+
neutral: Q,
|
|
1610
|
+
up: X
|
|
1611
|
+
};
|
|
1612
|
+
function et(e, t, n) {
|
|
1613
|
+
if (e.length < 2) return "";
|
|
1614
|
+
let r = Math.min(...e), i = Math.max(...e) - r || 1, a = t / (e.length - 1);
|
|
1615
|
+
return e.map((e, t) => `${t === 0 ? "M" : "L"}${(t * a).toFixed(1)},${(n - (e - r) / i * n).toFixed(1)}`).join(" ");
|
|
1616
|
+
}
|
|
1617
|
+
function tt(e, t, n = 500) {
|
|
1618
|
+
let [r, i] = C(e), a = S(e), o = S(0);
|
|
1619
|
+
return b(() => {
|
|
1620
|
+
if (!t) {
|
|
1621
|
+
i(e);
|
|
1622
|
+
return;
|
|
1623
|
+
}
|
|
1624
|
+
let r = a.current;
|
|
1625
|
+
if (a.current = e, r === e) return;
|
|
1626
|
+
let s = performance.now(), c = e - r, l = (t) => {
|
|
1627
|
+
let a = Math.min(1, (t - s) / n);
|
|
1628
|
+
i(r + c * (1 - (1 - a) ** 3)), a < 1 ? o.current = requestAnimationFrame(l) : i(e);
|
|
1629
|
+
};
|
|
1630
|
+
return o.current = requestAnimationFrame(l), () => cancelAnimationFrame(o.current);
|
|
1631
|
+
}, [
|
|
1632
|
+
e,
|
|
1633
|
+
t,
|
|
1634
|
+
n
|
|
1635
|
+
]), r;
|
|
1636
|
+
}
|
|
1637
|
+
var nt = v(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 }, _) {
|
|
1638
|
+
let v = $e[r], y = m === void 0 ? null : m > 0 ? "up" : m < 0 ? "down" : "neutral", b = y === null ? null : Y[y], S = y === "up" ? "var(--gds-success)" : y === "down" ? "var(--gds-danger)" : "var(--gds-fg-muted)", C = x(() => p !== void 0 && p.length >= 2 ? et(p, 80, 24) : null, [p]), w = typeof g == "number" ? g : null, D = tt(w ?? 0, t && w !== null), O = t && w !== null ? Number.isInteger(D) ? D.toLocaleString() : D.toLocaleString(void 0, { maximumFractionDigits: 2 }) : g;
|
|
1639
|
+
return /* @__PURE__ */ E("div", {
|
|
1640
|
+
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
|
+
"data-component": "stat",
|
|
1642
|
+
ref: _,
|
|
1643
|
+
children: [
|
|
1644
|
+
/* @__PURE__ */ E("div", {
|
|
1645
|
+
className: "flex items-start justify-between",
|
|
1646
|
+
children: [/* @__PURE__ */ T("div", {
|
|
1647
|
+
className: "text-xs text-fg-muted",
|
|
1648
|
+
children: l
|
|
1649
|
+
}), c !== void 0 && /* @__PURE__ */ T("span", {
|
|
1650
|
+
className: "h-4 w-4 text-fg-muted/30",
|
|
1651
|
+
children: c
|
|
1652
|
+
})]
|
|
1653
|
+
}),
|
|
1654
|
+
/* @__PURE__ */ E("div", {
|
|
1655
|
+
className: "flex items-end gap-3",
|
|
1656
|
+
children: [/* @__PURE__ */ E("div", {
|
|
1657
|
+
className: e("font-bold text-fg tabular-nums", Qe[f]),
|
|
1658
|
+
children: [O, h !== void 0 && /* @__PURE__ */ T("span", {
|
|
1659
|
+
className: "ml-1 text-xs font-normal text-fg-muted",
|
|
1660
|
+
children: h
|
|
1661
|
+
})]
|
|
1662
|
+
}), m !== void 0 && y !== null && /* @__PURE__ */ E("div", {
|
|
1663
|
+
className: e("mb-0.5 flex items-center gap-0.5 text-xs font-medium", b),
|
|
1664
|
+
children: [
|
|
1665
|
+
y === "up" && /* @__PURE__ */ T(X, {}),
|
|
1666
|
+
y === "down" && /* @__PURE__ */ T(Z, {}),
|
|
1667
|
+
y === "neutral" && /* @__PURE__ */ T(Q, {}),
|
|
1668
|
+
/* @__PURE__ */ T("span", { children: y === "neutral" ? "0%" : `${m > 0 ? "+" : ""}${m}%` })
|
|
1669
|
+
]
|
|
1670
|
+
})]
|
|
1671
|
+
}),
|
|
1672
|
+
n !== void 0 && m === void 0 && /* @__PURE__ */ E("div", {
|
|
1673
|
+
className: e("inline-flex items-center gap-0.5 text-xs font-medium", Y[r]),
|
|
1674
|
+
children: [/* @__PURE__ */ T(v, {}), n]
|
|
1675
|
+
}),
|
|
1676
|
+
C !== null && /* @__PURE__ */ T("svg", {
|
|
1677
|
+
className: "mt-1",
|
|
1678
|
+
height: 24,
|
|
1679
|
+
viewBox: "0 0 80 24",
|
|
1680
|
+
width: 80,
|
|
1681
|
+
children: /* @__PURE__ */ T("path", {
|
|
1682
|
+
d: C,
|
|
1683
|
+
fill: "none",
|
|
1684
|
+
stroke: S,
|
|
1685
|
+
strokeLinecap: "round",
|
|
1686
|
+
strokeLinejoin: "round",
|
|
1687
|
+
strokeWidth: 1.5
|
|
1688
|
+
})
|
|
1689
|
+
}),
|
|
1690
|
+
a !== void 0 && /* @__PURE__ */ T("div", {
|
|
1691
|
+
className: "text-[11px] text-fg-muted",
|
|
1692
|
+
children: a
|
|
1693
|
+
}),
|
|
1694
|
+
o !== void 0 && /* @__PURE__ */ T("div", {
|
|
1695
|
+
className: "mt-3 border-t border-border/20 pt-2 text-[10px] text-fg-muted/50",
|
|
1696
|
+
children: o
|
|
1697
|
+
})
|
|
1698
|
+
]
|
|
1699
|
+
});
|
|
1700
|
+
}), rt = {
|
|
1558
1701
|
2: "grid-cols-2",
|
|
1559
1702
|
3: "grid-cols-3",
|
|
1560
1703
|
4: "grid-cols-4"
|
|
1561
|
-
},
|
|
1562
|
-
return /* @__PURE__ */
|
|
1704
|
+
}, it = v(function({ children: t, columns: n = 3, className: r }, i) {
|
|
1705
|
+
return /* @__PURE__ */ T("div", {
|
|
1563
1706
|
ref: i,
|
|
1564
|
-
className: e("grid gds-gap-lg",
|
|
1707
|
+
className: e("grid gds-gap-lg", rt[n], r),
|
|
1565
1708
|
"data-component": "stat-grid",
|
|
1566
1709
|
children: t
|
|
1567
1710
|
});
|
|
1568
1711
|
});
|
|
1569
1712
|
//#endregion
|
|
1570
1713
|
//#region src/l7-patterns/stats-card.tsx
|
|
1571
|
-
function
|
|
1714
|
+
function $({ data: e }) {
|
|
1572
1715
|
if (e.length < 2) return null;
|
|
1573
1716
|
let t = Math.max(...e), n = Math.min(...e), r = t - n;
|
|
1574
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ T("svg", {
|
|
1575
1718
|
className: "mt-2",
|
|
1576
1719
|
height: 24,
|
|
1577
1720
|
viewBox: "0 0 64 24",
|
|
1578
1721
|
width: 64,
|
|
1579
|
-
children: /* @__PURE__ */
|
|
1722
|
+
children: /* @__PURE__ */ T("polyline", {
|
|
1580
1723
|
fill: "none",
|
|
1581
1724
|
points: e.map((t, i) => `${i / (e.length - 1) * 64},${r > 0 ? 24 - (t - n) / r * 24 : 24 / 2}`).join(" "),
|
|
1582
1725
|
stroke: "var(--gds-accent)",
|
|
@@ -1584,25 +1727,25 @@ function Je({ data: e }) {
|
|
|
1584
1727
|
})
|
|
1585
1728
|
});
|
|
1586
1729
|
}
|
|
1587
|
-
var
|
|
1730
|
+
var at = v(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass: s, className: c }, l) {
|
|
1588
1731
|
let u = a !== void 0 && a >= 0;
|
|
1589
|
-
return /* @__PURE__ */
|
|
1732
|
+
return /* @__PURE__ */ E("div", {
|
|
1590
1733
|
ref: l,
|
|
1591
1734
|
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),
|
|
1592
1735
|
"data-component": "stats-card",
|
|
1593
1736
|
children: [
|
|
1594
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ E("div", {
|
|
1595
1738
|
className: "flex items-start justify-between",
|
|
1596
|
-
children: [/* @__PURE__ */
|
|
1739
|
+
children: [/* @__PURE__ */ E("div", {
|
|
1597
1740
|
className: "flex items-center gap-2",
|
|
1598
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
1741
|
+
children: [n !== void 0 && /* @__PURE__ */ T("div", {
|
|
1599
1742
|
className: "text-fg-muted/50",
|
|
1600
1743
|
children: n
|
|
1601
|
-
}), /* @__PURE__ */
|
|
1744
|
+
}), /* @__PURE__ */ T("p", {
|
|
1602
1745
|
className: "gds-text-body text-fg-muted",
|
|
1603
1746
|
children: r
|
|
1604
1747
|
})]
|
|
1605
|
-
}), a !== void 0 && /* @__PURE__ */
|
|
1748
|
+
}), a !== void 0 && /* @__PURE__ */ E("span", {
|
|
1606
1749
|
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"),
|
|
1607
1750
|
children: [
|
|
1608
1751
|
u ? "↑" : "↓",
|
|
@@ -1612,74 +1755,74 @@ var Ye = v(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass
|
|
|
1612
1755
|
]
|
|
1613
1756
|
})]
|
|
1614
1757
|
}),
|
|
1615
|
-
/* @__PURE__ */
|
|
1758
|
+
/* @__PURE__ */ T("p", {
|
|
1616
1759
|
className: "mt-1 text-2xl font-bold text-fg",
|
|
1617
1760
|
children: i
|
|
1618
1761
|
}),
|
|
1619
|
-
o !== void 0 && o.length >= 2 && /* @__PURE__ */
|
|
1762
|
+
o !== void 0 && o.length >= 2 && /* @__PURE__ */ T($, { data: o })
|
|
1620
1763
|
]
|
|
1621
1764
|
});
|
|
1622
|
-
}),
|
|
1623
|
-
return /* @__PURE__ */
|
|
1765
|
+
}), ot = v(function({ code: t, title: n, description: r, action: i, secondaryAction: a, illustration: o, className: s }, c) {
|
|
1766
|
+
return /* @__PURE__ */ E("div", {
|
|
1624
1767
|
ref: c,
|
|
1625
1768
|
className: e("flex min-h-[60vh] flex-col items-center justify-center gap-4 text-center", s),
|
|
1626
1769
|
"data-component": "status-page",
|
|
1627
1770
|
children: [
|
|
1628
|
-
o !== void 0 && /* @__PURE__ */
|
|
1771
|
+
o !== void 0 && /* @__PURE__ */ T("div", {
|
|
1629
1772
|
className: "mb-2",
|
|
1630
1773
|
children: o
|
|
1631
1774
|
}),
|
|
1632
|
-
t !== void 0 && /* @__PURE__ */
|
|
1775
|
+
t !== void 0 && /* @__PURE__ */ T("p", {
|
|
1633
1776
|
className: "text-6xl font-bold text-fg-muted/10",
|
|
1634
1777
|
children: t
|
|
1635
1778
|
}),
|
|
1636
|
-
/* @__PURE__ */
|
|
1779
|
+
/* @__PURE__ */ T("h1", {
|
|
1637
1780
|
className: "text-xl font-semibold text-fg",
|
|
1638
1781
|
children: n
|
|
1639
1782
|
}),
|
|
1640
|
-
r !== void 0 && /* @__PURE__ */
|
|
1783
|
+
r !== void 0 && /* @__PURE__ */ T("p", {
|
|
1641
1784
|
className: "max-w-md text-fg-muted",
|
|
1642
1785
|
children: r
|
|
1643
1786
|
}),
|
|
1644
|
-
(i !== void 0 || a !== void 0) && /* @__PURE__ */
|
|
1787
|
+
(i !== void 0 || a !== void 0) && /* @__PURE__ */ E("div", {
|
|
1645
1788
|
className: "mt-2 flex items-center gap-3",
|
|
1646
1789
|
children: [i, a]
|
|
1647
1790
|
})
|
|
1648
1791
|
]
|
|
1649
1792
|
});
|
|
1650
|
-
}),
|
|
1651
|
-
let [l, u] =
|
|
1793
|
+
}), st = v(function({ steps: t, onComplete: r, completeLabel: i = "Complete", glass: a = !1, className: o, ...s }, c) {
|
|
1794
|
+
let [l, u] = C(0), d = l === 0, f = l === t.length - 1, p = t.map((e) => ({
|
|
1652
1795
|
label: e.title,
|
|
1653
1796
|
description: e.description
|
|
1654
1797
|
}));
|
|
1655
|
-
return /* @__PURE__ */
|
|
1798
|
+
return /* @__PURE__ */ E("div", {
|
|
1656
1799
|
ref: c,
|
|
1657
1800
|
className: e("flex flex-col rounded-lg border border-border p-6", a ? "bg-bg/80 backdrop-blur-xl" : "bg-bg-secondary", o),
|
|
1658
1801
|
"data-component": "stepper-form",
|
|
1659
1802
|
...s,
|
|
1660
1803
|
children: [
|
|
1661
|
-
/* @__PURE__ */
|
|
1804
|
+
/* @__PURE__ */ T(g, {
|
|
1662
1805
|
steps: p,
|
|
1663
1806
|
current: l,
|
|
1664
1807
|
className: "mb-6"
|
|
1665
1808
|
}),
|
|
1666
|
-
/* @__PURE__ */
|
|
1809
|
+
/* @__PURE__ */ T("div", {
|
|
1667
1810
|
className: "min-h-[120px] flex-1",
|
|
1668
1811
|
children: t[l]?.content
|
|
1669
1812
|
}),
|
|
1670
|
-
/* @__PURE__ */
|
|
1813
|
+
/* @__PURE__ */ E("div", {
|
|
1671
1814
|
className: "mt-6 flex items-center justify-between",
|
|
1672
|
-
children: [/* @__PURE__ */
|
|
1815
|
+
children: [/* @__PURE__ */ T(n, {
|
|
1673
1816
|
variant: "secondary",
|
|
1674
1817
|
size: "sm",
|
|
1675
1818
|
disabled: d,
|
|
1676
1819
|
onClick: () => u((e) => e - 1),
|
|
1677
1820
|
children: "Previous"
|
|
1678
|
-
}), f ? /* @__PURE__ */
|
|
1821
|
+
}), f ? /* @__PURE__ */ T(n, {
|
|
1679
1822
|
size: "sm",
|
|
1680
1823
|
onClick: r,
|
|
1681
1824
|
children: i
|
|
1682
|
-
}) : /* @__PURE__ */
|
|
1825
|
+
}) : /* @__PURE__ */ T(n, {
|
|
1683
1826
|
size: "sm",
|
|
1684
1827
|
onClick: () => u((e) => e + 1),
|
|
1685
1828
|
children: "Next"
|
|
@@ -1687,14 +1830,14 @@ var Ye = v(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass
|
|
|
1687
1830
|
})
|
|
1688
1831
|
]
|
|
1689
1832
|
});
|
|
1690
|
-
}),
|
|
1691
|
-
let [c, l] =
|
|
1833
|
+
}), ct = v(function({ children: n, className: r, glass: i = !0, threshold: a = 0, ...o }, s) {
|
|
1834
|
+
let [c, l] = C(!1);
|
|
1692
1835
|
return b(() => {
|
|
1693
1836
|
function e() {
|
|
1694
1837
|
l(window.scrollY > a);
|
|
1695
1838
|
}
|
|
1696
1839
|
return window.addEventListener("scroll", e, { passive: !0 }), () => window.removeEventListener("scroll", e);
|
|
1697
|
-
}, [a]), /* @__PURE__ */
|
|
1840
|
+
}, [a]), /* @__PURE__ */ T("div", {
|
|
1698
1841
|
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),
|
|
1699
1842
|
"data-component": "sticky-header",
|
|
1700
1843
|
"data-sticky": c,
|
|
@@ -1702,41 +1845,41 @@ var Ye = v(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass
|
|
|
1702
1845
|
...o,
|
|
1703
1846
|
children: n
|
|
1704
1847
|
});
|
|
1705
|
-
}),
|
|
1706
|
-
return /* @__PURE__ */
|
|
1848
|
+
}), lt = v(function({ quote: n, author: r, role: i, avatar: a, rating: o, glass: s, className: c }, l) {
|
|
1849
|
+
return /* @__PURE__ */ E("div", {
|
|
1707
1850
|
ref: l,
|
|
1708
1851
|
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),
|
|
1709
1852
|
"data-component": "testimonial",
|
|
1710
1853
|
children: [
|
|
1711
|
-
/* @__PURE__ */
|
|
1854
|
+
/* @__PURE__ */ T("svg", {
|
|
1712
1855
|
className: "mb-3 h-6 w-6 text-fg-muted opacity-30",
|
|
1713
1856
|
viewBox: "0 0 24 24",
|
|
1714
1857
|
fill: "currentColor",
|
|
1715
|
-
children: /* @__PURE__ */
|
|
1858
|
+
children: /* @__PURE__ */ T("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" })
|
|
1716
1859
|
}),
|
|
1717
|
-
/* @__PURE__ */
|
|
1860
|
+
/* @__PURE__ */ T("p", {
|
|
1718
1861
|
className: "gds-text-body italic text-fg",
|
|
1719
1862
|
children: n
|
|
1720
1863
|
}),
|
|
1721
|
-
o !== void 0 && /* @__PURE__ */
|
|
1864
|
+
o !== void 0 && /* @__PURE__ */ T("div", {
|
|
1722
1865
|
className: "mt-3 flex gap-0.5",
|
|
1723
|
-
children: Array.from({ length: 5 }, (t, n) => /* @__PURE__ */
|
|
1866
|
+
children: Array.from({ length: 5 }, (t, n) => /* @__PURE__ */ T("svg", {
|
|
1724
1867
|
className: e("h-4 w-4", n < o ? "text-warning" : "text-fg-muted/30"),
|
|
1725
1868
|
viewBox: "0 0 20 20",
|
|
1726
1869
|
fill: "currentColor",
|
|
1727
|
-
children: /* @__PURE__ */
|
|
1870
|
+
children: /* @__PURE__ */ T("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" })
|
|
1728
1871
|
}, n))
|
|
1729
1872
|
}),
|
|
1730
|
-
/* @__PURE__ */
|
|
1873
|
+
/* @__PURE__ */ E("div", {
|
|
1731
1874
|
className: "mt-4 flex items-center gap-3",
|
|
1732
|
-
children: [a !== void 0 && /* @__PURE__ */
|
|
1875
|
+
children: [a !== void 0 && /* @__PURE__ */ T("img", {
|
|
1733
1876
|
src: a,
|
|
1734
1877
|
alt: r,
|
|
1735
1878
|
className: "h-10 w-10 rounded-full object-cover"
|
|
1736
|
-
}), /* @__PURE__ */
|
|
1879
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
1737
1880
|
className: "text-sm font-medium text-fg",
|
|
1738
1881
|
children: r
|
|
1739
|
-
}), i !== void 0 && /* @__PURE__ */
|
|
1882
|
+
}), i !== void 0 && /* @__PURE__ */ T("p", {
|
|
1740
1883
|
className: "text-xs text-fg-muted",
|
|
1741
1884
|
children: i
|
|
1742
1885
|
})] })]
|
|
@@ -1746,18 +1889,18 @@ var Ye = v(function({ icon: n, label: r, value: i, trend: a, sparkData: o, glass
|
|
|
1746
1889
|
});
|
|
1747
1890
|
//#endregion
|
|
1748
1891
|
//#region src/l7-patterns/timeline-steps.tsx
|
|
1749
|
-
function
|
|
1750
|
-
return /* @__PURE__ */
|
|
1892
|
+
function ut({ steps: t, className: n }) {
|
|
1893
|
+
return /* @__PURE__ */ T("div", {
|
|
1751
1894
|
"data-component": "timeline-steps",
|
|
1752
1895
|
className: e("flex items-start", n),
|
|
1753
|
-
children: t.map((n, r) => /* @__PURE__ */
|
|
1896
|
+
children: t.map((n, r) => /* @__PURE__ */ E("div", {
|
|
1754
1897
|
className: "flex flex-1 items-start",
|
|
1755
|
-
children: [/* @__PURE__ */
|
|
1898
|
+
children: [/* @__PURE__ */ E("div", {
|
|
1756
1899
|
className: "flex flex-col items-center",
|
|
1757
|
-
children: [/* @__PURE__ */
|
|
1900
|
+
children: [/* @__PURE__ */ T("div", {
|
|
1758
1901
|
"data-status": n.status,
|
|
1759
1902
|
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"),
|
|
1760
|
-
children: n.status === "completed" ? /* @__PURE__ */
|
|
1903
|
+
children: n.status === "completed" ? /* @__PURE__ */ T("svg", {
|
|
1761
1904
|
width: "14",
|
|
1762
1905
|
height: "14",
|
|
1763
1906
|
viewBox: "0 0 24 24",
|
|
@@ -1766,27 +1909,27 @@ function et({ steps: t, className: n }) {
|
|
|
1766
1909
|
strokeWidth: "3",
|
|
1767
1910
|
strokeLinecap: "round",
|
|
1768
1911
|
strokeLinejoin: "round",
|
|
1769
|
-
children: /* @__PURE__ */
|
|
1912
|
+
children: /* @__PURE__ */ T("polyline", { points: "20 6 9 17 4 12" })
|
|
1770
1913
|
}) : r + 1
|
|
1771
|
-
}), /* @__PURE__ */
|
|
1914
|
+
}), /* @__PURE__ */ E("div", {
|
|
1772
1915
|
className: "mt-2 text-center",
|
|
1773
|
-
children: [/* @__PURE__ */
|
|
1916
|
+
children: [/* @__PURE__ */ T("div", {
|
|
1774
1917
|
className: "text-xs font-medium text-fg",
|
|
1775
1918
|
children: n.label
|
|
1776
|
-
}), n.description !== void 0 && /* @__PURE__ */
|
|
1919
|
+
}), n.description !== void 0 && /* @__PURE__ */ T("div", {
|
|
1777
1920
|
className: "mt-0.5 text-[10px] text-fg-muted",
|
|
1778
1921
|
children: n.description
|
|
1779
1922
|
})]
|
|
1780
1923
|
})]
|
|
1781
|
-
}), r < t.length - 1 && /* @__PURE__ */
|
|
1924
|
+
}), r < t.length - 1 && /* @__PURE__ */ T("div", { className: e("mt-4 h-0.5 flex-1 mx-2", n.status === "completed" ? "bg-success" : "bg-border") })]
|
|
1782
1925
|
}, n.label))
|
|
1783
1926
|
});
|
|
1784
1927
|
}
|
|
1785
1928
|
//#endregion
|
|
1786
1929
|
//#region src/l7-patterns/toolbar.tsx
|
|
1787
|
-
var
|
|
1930
|
+
var dt = v(function({ children: n, className: r, glass: i, position: a = "top", ...o }, s) {
|
|
1788
1931
|
let c = a === "floating", l = i ?? c;
|
|
1789
|
-
return /* @__PURE__ */
|
|
1932
|
+
return /* @__PURE__ */ T("div", {
|
|
1790
1933
|
ref: s,
|
|
1791
1934
|
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),
|
|
1792
1935
|
"data-component": "toolbar",
|
|
@@ -1795,25 +1938,25 @@ var tt = v(function({ children: n, className: r, glass: i, position: a = "top",
|
|
|
1795
1938
|
...o,
|
|
1796
1939
|
children: n
|
|
1797
1940
|
});
|
|
1798
|
-
}),
|
|
1799
|
-
return /* @__PURE__ */
|
|
1941
|
+
}), ft = v(function({ steps: t, currentStep: n, children: r, actions: i, className: a, ...o }, s) {
|
|
1942
|
+
return /* @__PURE__ */ E("div", {
|
|
1800
1943
|
ref: s,
|
|
1801
1944
|
className: e("flex min-h-0 flex-1 flex-col gds-gap", a),
|
|
1802
1945
|
"data-component": "wizard-layout",
|
|
1803
1946
|
...o,
|
|
1804
1947
|
children: [
|
|
1805
|
-
/* @__PURE__ */
|
|
1948
|
+
/* @__PURE__ */ T("div", {
|
|
1806
1949
|
className: "shrink-0 gds-pad-x",
|
|
1807
|
-
children: /* @__PURE__ */
|
|
1950
|
+
children: /* @__PURE__ */ T(m, {
|
|
1808
1951
|
steps: t,
|
|
1809
1952
|
current: n
|
|
1810
1953
|
})
|
|
1811
1954
|
}),
|
|
1812
|
-
/* @__PURE__ */
|
|
1955
|
+
/* @__PURE__ */ T("div", {
|
|
1813
1956
|
className: "min-h-0 flex-1 overflow-auto gds-pad-x",
|
|
1814
1957
|
children: r
|
|
1815
1958
|
}),
|
|
1816
|
-
i !== void 0 && /* @__PURE__ */
|
|
1959
|
+
i !== void 0 && /* @__PURE__ */ T("div", {
|
|
1817
1960
|
className: "flex shrink-0 items-center justify-end gds-gap gds-pad-x gds-pad-y border-t border-border",
|
|
1818
1961
|
children: i
|
|
1819
1962
|
})
|
|
@@ -1821,6 +1964,6 @@ var tt = v(function({ children: n, className: r, glass: i, position: a = "top",
|
|
|
1821
1964
|
});
|
|
1822
1965
|
});
|
|
1823
1966
|
//#endregion
|
|
1824
|
-
export {
|
|
1967
|
+
export { ie as $, be as A, z as B, ke as C, Te as D, Ee as E, de as F, P as G, L as H, ue as I, j as J, N as K, le as L, ve as M, fe as N, we as O, q as P, oe as Q, ce as R, je as S, De as T, I as U, R as V, F as W, k as X, A as Y, se as Z, Ie as _, ct as a, Ne as b, at as c, Ze as d, te as et, Xe as f, Ve as g, He as h, lt as i, ye as j, xe as k, it as l, Ue as m, dt as n, O as nt, st as o, Je as p, M as q, ut as r, ot as s, ft as t, ee as tt, nt as u, Fe as v, Oe as w, Me as x, Pe as y, H as z };
|
|
1825
1968
|
|
|
1826
|
-
//# sourceMappingURL=l7-patterns-
|
|
1969
|
+
//# sourceMappingURL=l7-patterns-8fc4b3eE.js.map
|