@freedom-code-compliance/fcc-redesign 0.1.8 → 0.1.10
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.cjs +1 -1
- package/dist/index.js +452 -452
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { createContext as e, createElement as t, forwardRef as n, isValidElement as r, useCallback as i, useContext as a, useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
|
|
2
|
-
import { AlertCircle as u, AlertTriangle as d, Bell as f, Calendar as p, Check as m, CheckCheck as h, CheckCircle as g, ChevronDown as _, ChevronRight as v, ChevronUp as y, ChevronsUpDown as b, Clock as x, Columns3 as S, Filter as C, Info as w, LayoutGrid as
|
|
3
|
-
import { Fragment as
|
|
2
|
+
import { AlertCircle as u, AlertTriangle as d, Bell as f, Calendar as p, Check as m, CheckCheck as h, CheckCircle as g, ChevronDown as _, ChevronRight as v, ChevronUp as y, ChevronsUpDown as b, Clock as x, Columns3 as S, Filter as C, Info as w, LayoutGrid as ee, List as T, Loader2 as E, LogOut as D, Map as O, Minus as k, Moon as A, Search as j, Sun as M, TrendingDown as te, TrendingUp as N, X as P } from "lucide-react";
|
|
3
|
+
import { Fragment as ne, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/ui/Toast.jsx
|
|
5
|
-
var
|
|
6
|
-
success: /* @__PURE__ */
|
|
5
|
+
var L = e(null), R = {
|
|
6
|
+
success: /* @__PURE__ */ F(g, {
|
|
7
7
|
size: 16,
|
|
8
8
|
style: { color: "var(--accent-green)" }
|
|
9
9
|
}),
|
|
10
|
-
error: /* @__PURE__ */
|
|
10
|
+
error: /* @__PURE__ */ F(u, {
|
|
11
11
|
size: 16,
|
|
12
12
|
style: { color: "var(--accent-red)" }
|
|
13
13
|
}),
|
|
14
|
-
warning: /* @__PURE__ */
|
|
14
|
+
warning: /* @__PURE__ */ F(d, {
|
|
15
15
|
size: 16,
|
|
16
16
|
style: { color: "var(--accent-yellow)" }
|
|
17
17
|
}),
|
|
18
|
-
info: /* @__PURE__ */
|
|
18
|
+
info: /* @__PURE__ */ F(w, {
|
|
19
19
|
size: 16,
|
|
20
20
|
style: { color: "var(--accent-blue)" }
|
|
21
21
|
})
|
|
22
22
|
};
|
|
23
|
-
function
|
|
23
|
+
function re({ toast: e, onDismiss: t }) {
|
|
24
24
|
return o(() => {
|
|
25
25
|
if (e.duration !== 0) {
|
|
26
26
|
let n = setTimeout(() => t(e.id), e.duration || 4e3);
|
|
@@ -30,33 +30,33 @@ function ie({ toast: e, onDismiss: t }) {
|
|
|
30
30
|
e.id,
|
|
31
31
|
e.duration,
|
|
32
32
|
t
|
|
33
|
-
]), /* @__PURE__ */
|
|
33
|
+
]), /* @__PURE__ */ I("div", {
|
|
34
34
|
className: "toast",
|
|
35
35
|
style: { animation: "slideInRight 200ms ease" },
|
|
36
36
|
children: [
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ F("span", {
|
|
38
38
|
className: "toast-icon",
|
|
39
|
-
children:
|
|
39
|
+
children: R[e.type] || R.info
|
|
40
40
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ I("div", {
|
|
42
42
|
className: "toast-content",
|
|
43
|
-
children: [e.title && /* @__PURE__ */
|
|
43
|
+
children: [e.title && /* @__PURE__ */ F("div", {
|
|
44
44
|
className: "toast-title",
|
|
45
45
|
children: e.title
|
|
46
|
-
}), /* @__PURE__ */
|
|
46
|
+
}), /* @__PURE__ */ F("div", {
|
|
47
47
|
className: "toast-message",
|
|
48
48
|
children: e.message
|
|
49
49
|
})]
|
|
50
50
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ F("button", {
|
|
52
52
|
className: "toast-close",
|
|
53
53
|
onClick: () => t(e.id),
|
|
54
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ F(P, { size: 14 })
|
|
55
55
|
})
|
|
56
56
|
]
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function z({ children: e }) {
|
|
60
60
|
let [t, n] = l([]), r = i((e) => {
|
|
61
61
|
let t = Date.now() + Math.random();
|
|
62
62
|
n((n) => [...n.slice(-4), {
|
|
@@ -66,35 +66,35 @@ function ae({ children: e }) {
|
|
|
66
66
|
}, []), a = i((e) => {
|
|
67
67
|
n((t) => t.filter((t) => t.id !== e));
|
|
68
68
|
}, []);
|
|
69
|
-
return /* @__PURE__ */ L
|
|
69
|
+
return /* @__PURE__ */ I(L.Provider, {
|
|
70
70
|
value: { addToast: r },
|
|
71
|
-
children: [e, /* @__PURE__ */
|
|
71
|
+
children: [e, /* @__PURE__ */ F("div", {
|
|
72
72
|
className: "toast-container",
|
|
73
|
-
children: t.map((e) => /* @__PURE__ */
|
|
73
|
+
children: t.map((e) => /* @__PURE__ */ F(re, {
|
|
74
74
|
toast: e,
|
|
75
75
|
onDismiss: a
|
|
76
76
|
}, e.id))
|
|
77
77
|
})]
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
let e = a(
|
|
80
|
+
function ie() {
|
|
81
|
+
let e = a(L);
|
|
82
82
|
if (!e) throw Error("useToast must be used within ToastProvider");
|
|
83
83
|
return e;
|
|
84
84
|
}
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region src/context/ThemeContext.jsx
|
|
87
|
-
var
|
|
88
|
-
function
|
|
87
|
+
var B = e(void 0), ae = "dark", oe = "fcc-theme";
|
|
88
|
+
function se(e) {
|
|
89
89
|
if (typeof document > "u") return;
|
|
90
90
|
let t = document.documentElement;
|
|
91
91
|
t.classList.remove("dark", "light"), e === "light" && t.classList.add("light");
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function V({ children: e, defaultTheme: t = ae, storageKey: n = oe }) {
|
|
94
94
|
let [r, i] = l(() => typeof window > "u" ? t : window.localStorage.getItem(n) || t);
|
|
95
95
|
return o(() => {
|
|
96
|
-
typeof window < "u" && window.localStorage.setItem(n, r),
|
|
97
|
-
}, [n, r]), /* @__PURE__ */
|
|
96
|
+
typeof window < "u" && window.localStorage.setItem(n, r), se(r);
|
|
97
|
+
}, [n, r]), /* @__PURE__ */ F(B.Provider, {
|
|
98
98
|
value: {
|
|
99
99
|
theme: r,
|
|
100
100
|
setTheme: i,
|
|
@@ -105,95 +105,95 @@ function z({ children: e, defaultTheme: t = se, storageKey: n = ce }) {
|
|
|
105
105
|
children: e
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
let e = a(
|
|
108
|
+
function H() {
|
|
109
|
+
let e = a(B);
|
|
110
110
|
if (!e) throw Error("useTheme must be used within a ThemeProvider");
|
|
111
111
|
return e;
|
|
112
112
|
}
|
|
113
113
|
//#endregion
|
|
114
114
|
//#region src/lib/FCCDesignProvider.jsx
|
|
115
|
-
function
|
|
116
|
-
return /* @__PURE__ */
|
|
115
|
+
function ce({ children: e, ...t }) {
|
|
116
|
+
return /* @__PURE__ */ F(V, {
|
|
117
117
|
...t,
|
|
118
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ F(z, { children: e })
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region src/components/layout/FCCBreadcrumbs.jsx
|
|
123
|
-
function
|
|
123
|
+
function le(e, t) {
|
|
124
124
|
let n = [
|
|
125
125
|
"fcc-breadcrumb-item",
|
|
126
126
|
t ? "current" : "",
|
|
127
127
|
e.className || ""
|
|
128
128
|
].filter(Boolean).join(" ");
|
|
129
|
-
return t ? /* @__PURE__ */
|
|
129
|
+
return t ? /* @__PURE__ */ F("span", {
|
|
130
130
|
className: n,
|
|
131
131
|
children: e.label
|
|
132
|
-
}) : e.href ? /* @__PURE__ */
|
|
132
|
+
}) : e.href ? /* @__PURE__ */ F("a", {
|
|
133
133
|
className: n,
|
|
134
134
|
href: e.href,
|
|
135
135
|
children: e.label
|
|
136
|
-
}) : e.onClick ? /* @__PURE__ */
|
|
136
|
+
}) : e.onClick ? /* @__PURE__ */ F("button", {
|
|
137
137
|
type: "button",
|
|
138
138
|
className: n,
|
|
139
139
|
onClick: e.onClick,
|
|
140
140
|
children: e.label
|
|
141
|
-
}) : /* @__PURE__ */
|
|
141
|
+
}) : /* @__PURE__ */ F("span", {
|
|
142
142
|
className: n,
|
|
143
143
|
children: e.label
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function U({ items: e = [], className: t = "" }) {
|
|
147
147
|
let n = e.filter((e) => e?.label);
|
|
148
|
-
return n.length === 0 ? null : /* @__PURE__ */
|
|
148
|
+
return n.length === 0 ? null : /* @__PURE__ */ F("nav", {
|
|
149
149
|
className: ["fcc-breadcrumbs", t].filter(Boolean).join(" "),
|
|
150
150
|
"aria-label": "Breadcrumb",
|
|
151
151
|
children: n.map((e, t) => {
|
|
152
152
|
let r = e.current ?? t === n.length - 1;
|
|
153
|
-
return /* @__PURE__ */
|
|
153
|
+
return /* @__PURE__ */ I("div", {
|
|
154
154
|
className: "fcc-breadcrumb-segment",
|
|
155
|
-
children: [t > 0 && /* @__PURE__ */
|
|
155
|
+
children: [t > 0 && /* @__PURE__ */ F("span", {
|
|
156
156
|
className: "fcc-breadcrumb-sep",
|
|
157
157
|
children: "/"
|
|
158
|
-
}),
|
|
158
|
+
}), le(e, r)]
|
|
159
159
|
}, e.key || e.label || t);
|
|
160
160
|
})
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/components/layout/FCCHeaderStatus.jsx
|
|
165
|
-
var
|
|
165
|
+
var W = {
|
|
166
166
|
success: "fcc-header-status-success",
|
|
167
167
|
warning: "fcc-header-status-warning",
|
|
168
168
|
danger: "fcc-header-status-danger",
|
|
169
169
|
info: "fcc-header-status-info",
|
|
170
170
|
neutral: "fcc-header-status-neutral"
|
|
171
171
|
};
|
|
172
|
-
function
|
|
173
|
-
return e ? /* @__PURE__ */
|
|
172
|
+
function G({ label: e, tone: t = "success", dotColor: n, className: r = "" }) {
|
|
173
|
+
return e ? /* @__PURE__ */ I("div", {
|
|
174
174
|
className: [
|
|
175
175
|
"fcc-header-status",
|
|
176
|
-
|
|
176
|
+
W[t] || W.neutral,
|
|
177
177
|
r
|
|
178
178
|
].filter(Boolean).join(" "),
|
|
179
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ F("span", {
|
|
180
180
|
className: "fcc-header-status-dot",
|
|
181
181
|
style: n ? { backgroundColor: n } : void 0
|
|
182
|
-
}), /* @__PURE__ */
|
|
182
|
+
}), /* @__PURE__ */ F("span", { children: e })]
|
|
183
183
|
}) : null;
|
|
184
184
|
}
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region src/components/layout/FCCWorkspaceHeader.jsx
|
|
187
|
-
function
|
|
188
|
-
return /* @__PURE__ */
|
|
187
|
+
function K({ breadcrumbs: e = [], status: t, actions: n, leftSlot: r, rightSlot: i, className: a = "" }) {
|
|
188
|
+
return /* @__PURE__ */ I("header", {
|
|
189
189
|
className: ["fcc-workspace-header", a].filter(Boolean).join(" "),
|
|
190
|
-
children: [/* @__PURE__ */
|
|
190
|
+
children: [/* @__PURE__ */ F("div", {
|
|
191
191
|
className: "fcc-workspace-header-left",
|
|
192
|
-
children: r || /* @__PURE__ */
|
|
193
|
-
}), /* @__PURE__ */
|
|
192
|
+
children: r || /* @__PURE__ */ F(U, { items: e })
|
|
193
|
+
}), /* @__PURE__ */ I("div", {
|
|
194
194
|
className: "fcc-workspace-header-right",
|
|
195
195
|
children: [
|
|
196
|
-
t && /* @__PURE__ */
|
|
196
|
+
t && /* @__PURE__ */ F(G, { ...t }),
|
|
197
197
|
n,
|
|
198
198
|
i
|
|
199
199
|
]
|
|
@@ -202,17 +202,17 @@ function W({ breadcrumbs: e = [], status: t, actions: n, leftSlot: r, rightSlot:
|
|
|
202
202
|
}
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region src/components/layout/FCCMainWindow.jsx
|
|
205
|
-
function
|
|
206
|
-
return /* @__PURE__ */
|
|
205
|
+
function q({ breadcrumbs: e = [], status: t, headerActions: n, header: r, children: i, overlay: a, className: o = "", headerClassName: s = "", contentClassName: c = "" }) {
|
|
206
|
+
return /* @__PURE__ */ I("div", {
|
|
207
207
|
className: ["fcc-main-window", o].filter(Boolean).join(" "),
|
|
208
208
|
children: [
|
|
209
|
-
r || /* @__PURE__ */
|
|
209
|
+
r || /* @__PURE__ */ F(K, {
|
|
210
210
|
breadcrumbs: e,
|
|
211
211
|
status: t,
|
|
212
212
|
actions: n,
|
|
213
213
|
className: s
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ F("div", {
|
|
216
216
|
className: ["fcc-main-window-content", c].filter(Boolean).join(" "),
|
|
217
217
|
children: i
|
|
218
218
|
}),
|
|
@@ -222,7 +222,7 @@ function G({ breadcrumbs: e = [], status: t, headerActions: n, header: r, childr
|
|
|
222
222
|
}
|
|
223
223
|
//#endregion
|
|
224
224
|
//#region src/components/layout/FCCSidebar.jsx
|
|
225
|
-
function
|
|
225
|
+
function J(e, t) {
|
|
226
226
|
if (!e.disabled) {
|
|
227
227
|
if (e.onClick) {
|
|
228
228
|
e.onClick(e);
|
|
@@ -231,10 +231,10 @@ function K(e, t) {
|
|
|
231
231
|
t?.(e);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function ue(e, t) {
|
|
235
235
|
return !e.childrenSections?.length || !t ? !1 : e.childrenSections.some((e) => e.items?.some((e) => e.key === t));
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function de(e, t) {
|
|
238
238
|
if (!t.trim()) return e;
|
|
239
239
|
let n = t.trim().toLowerCase();
|
|
240
240
|
return e.map((e) => ({
|
|
@@ -242,7 +242,7 @@ function pe(e, t) {
|
|
|
242
242
|
items: e.items.filter((e) => e.label.toLowerCase().includes(n) || e.pageTitle?.toLowerCase().includes(n) || e.summary?.toLowerCase().includes(n))
|
|
243
243
|
})).filter((e) => e.items.length > 0);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Y({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onNavigate: i, user: a, footer: o, onLogout: s, className: c = "" }) {
|
|
246
246
|
let [u, d] = l({}), [f, p] = l({});
|
|
247
247
|
function m(e, t) {
|
|
248
248
|
p((n) => ({
|
|
@@ -250,31 +250,31 @@ function q({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onN
|
|
|
250
250
|
[e]: t
|
|
251
251
|
}));
|
|
252
252
|
}
|
|
253
|
-
return /* @__PURE__ */
|
|
253
|
+
return /* @__PURE__ */ I("aside", {
|
|
254
254
|
className: ["fcc-sidebar", c].filter(Boolean).join(" "),
|
|
255
255
|
children: [
|
|
256
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ I("div", {
|
|
257
257
|
className: "fcc-sidebar-brand",
|
|
258
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ F("div", {
|
|
259
259
|
className: "fcc-sidebar-brand-logo-slot",
|
|
260
260
|
children: t
|
|
261
|
-
}), /* @__PURE__ */
|
|
261
|
+
}), /* @__PURE__ */ F("span", {
|
|
262
262
|
className: "fcc-sidebar-label fcc-sidebar-brand-text",
|
|
263
263
|
children: e
|
|
264
264
|
})]
|
|
265
265
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ F("nav", {
|
|
267
267
|
className: "fcc-sidebar-nav",
|
|
268
268
|
"aria-label": `${e} navigation`,
|
|
269
269
|
children: n.map((e) => {
|
|
270
|
-
let t = e.childrenSections?.length > 0, n =
|
|
271
|
-
return /* @__PURE__ */
|
|
270
|
+
let t = e.childrenSections?.length > 0, n = ue(e, r), a = e.key === r || n || (r?.startsWith?.(`${e.key}/`) ?? !1), o = t && (f[e.key] ?? a), s = u[e.key] || "", c = t ? de(e.childrenSections, s) : [];
|
|
271
|
+
return /* @__PURE__ */ I("div", {
|
|
272
272
|
className: [
|
|
273
273
|
"fcc-sidebar-entry",
|
|
274
274
|
t ? "has-children" : "",
|
|
275
275
|
t && o ? "expanded" : ""
|
|
276
276
|
].filter(Boolean).join(" "),
|
|
277
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ I("button", {
|
|
278
278
|
type: "button",
|
|
279
279
|
className: [
|
|
280
280
|
"fcc-sidebar-item",
|
|
@@ -282,25 +282,25 @@ function q({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onN
|
|
|
282
282
|
e.disabled ? "disabled" : ""
|
|
283
283
|
].filter(Boolean).join(" "),
|
|
284
284
|
onClick: () => {
|
|
285
|
-
t && m(e.key, !0),
|
|
285
|
+
t && m(e.key, !0), J(e, i);
|
|
286
286
|
},
|
|
287
287
|
"aria-current": a ? "page" : void 0,
|
|
288
288
|
disabled: e.disabled,
|
|
289
289
|
title: e.label,
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ F("span", {
|
|
292
292
|
className: "fcc-sidebar-item-icon",
|
|
293
293
|
children: e.icon
|
|
294
294
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ F("span", {
|
|
296
296
|
className: "fcc-sidebar-label fcc-sidebar-item-label",
|
|
297
297
|
children: e.label
|
|
298
298
|
}),
|
|
299
|
-
e.badge != null && /* @__PURE__ */
|
|
299
|
+
e.badge != null && /* @__PURE__ */ F("span", {
|
|
300
300
|
className: "fcc-sidebar-item-badge",
|
|
301
301
|
children: e.badge
|
|
302
302
|
}),
|
|
303
|
-
t && /* @__PURE__ */
|
|
303
|
+
t && /* @__PURE__ */ F("span", {
|
|
304
304
|
className: [
|
|
305
305
|
"fcc-sidebar-label",
|
|
306
306
|
"fcc-sidebar-item-chevron",
|
|
@@ -312,14 +312,14 @@ function q({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onN
|
|
|
312
312
|
role: "button",
|
|
313
313
|
"aria-label": `${o ? "Collapse" : "Expand"} ${e.label}`,
|
|
314
314
|
"aria-expanded": o,
|
|
315
|
-
children: /* @__PURE__ */
|
|
315
|
+
children: /* @__PURE__ */ F(_, { size: 14 })
|
|
316
316
|
})
|
|
317
317
|
]
|
|
318
|
-
}), t && o && /* @__PURE__ */
|
|
318
|
+
}), t && o && /* @__PURE__ */ I("div", {
|
|
319
319
|
className: "fcc-sidebar-accordion",
|
|
320
|
-
children: [/* @__PURE__ */
|
|
320
|
+
children: [/* @__PURE__ */ I("div", {
|
|
321
321
|
className: "fcc-sidebar-search",
|
|
322
|
-
children: [/* @__PURE__ */
|
|
322
|
+
children: [/* @__PURE__ */ F(j, { size: 13 }), /* @__PURE__ */ F("input", {
|
|
323
323
|
type: "text",
|
|
324
324
|
className: "fcc-sidebar-search-input",
|
|
325
325
|
value: s,
|
|
@@ -329,24 +329,24 @@ function q({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onN
|
|
|
329
329
|
})),
|
|
330
330
|
placeholder: e.searchPlaceholder || "Search..."
|
|
331
331
|
})]
|
|
332
|
-
}), /* @__PURE__ */
|
|
332
|
+
}), /* @__PURE__ */ I("div", {
|
|
333
333
|
className: "fcc-sidebar-accordion-body",
|
|
334
|
-
children: [c.length === 0 && /* @__PURE__ */
|
|
334
|
+
children: [c.length === 0 && /* @__PURE__ */ F("div", {
|
|
335
335
|
className: "fcc-sidebar-empty",
|
|
336
336
|
children: "No matching components"
|
|
337
|
-
}), c.map((e) => /* @__PURE__ */
|
|
337
|
+
}), c.map((e) => /* @__PURE__ */ I("div", {
|
|
338
338
|
className: "fcc-sidebar-section",
|
|
339
|
-
children: [/* @__PURE__ */
|
|
339
|
+
children: [/* @__PURE__ */ F("div", {
|
|
340
340
|
className: "fcc-sidebar-section-title",
|
|
341
341
|
children: e.title
|
|
342
|
-
}), /* @__PURE__ */
|
|
342
|
+
}), /* @__PURE__ */ F("div", {
|
|
343
343
|
className: "fcc-sidebar-child-list",
|
|
344
|
-
children: e.items.map((e) => /* @__PURE__ */
|
|
344
|
+
children: e.items.map((e) => /* @__PURE__ */ F("button", {
|
|
345
345
|
type: "button",
|
|
346
346
|
className: ["fcc-sidebar-child-item", e.key === r ? "active" : ""].filter(Boolean).join(" "),
|
|
347
|
-
onClick: () =>
|
|
347
|
+
onClick: () => J(e, i),
|
|
348
348
|
title: e.label,
|
|
349
|
-
children: /* @__PURE__ */
|
|
349
|
+
children: /* @__PURE__ */ F("span", {
|
|
350
350
|
className: "fcc-sidebar-label",
|
|
351
351
|
children: e.label
|
|
352
352
|
})
|
|
@@ -358,34 +358,34 @@ function q({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onN
|
|
|
358
358
|
}, e.key || e.label);
|
|
359
359
|
})
|
|
360
360
|
}),
|
|
361
|
-
o ? /* @__PURE__ */
|
|
361
|
+
o ? /* @__PURE__ */ F("div", {
|
|
362
362
|
className: "fcc-sidebar-footer",
|
|
363
363
|
children: o
|
|
364
|
-
}) : (a || s) && /* @__PURE__ */
|
|
364
|
+
}) : (a || s) && /* @__PURE__ */ I("div", {
|
|
365
365
|
className: "fcc-sidebar-footer",
|
|
366
|
-
children: [a && /* @__PURE__ */
|
|
366
|
+
children: [a && /* @__PURE__ */ I("div", {
|
|
367
367
|
className: "fcc-sidebar-profile",
|
|
368
|
-
children: [/* @__PURE__ */
|
|
368
|
+
children: [/* @__PURE__ */ F("div", {
|
|
369
369
|
className: "fcc-sidebar-avatar",
|
|
370
370
|
style: a.avatarStyle,
|
|
371
371
|
children: a.avatar || a.initials || a.name?.slice(0, 2) || "FCC"
|
|
372
|
-
}), /* @__PURE__ */
|
|
372
|
+
}), /* @__PURE__ */ I("div", {
|
|
373
373
|
className: "fcc-sidebar-profile-copy",
|
|
374
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ F("span", {
|
|
375
375
|
className: "fcc-sidebar-label fcc-sidebar-profile-name",
|
|
376
376
|
children: a.name
|
|
377
|
-
}), a.meta && /* @__PURE__ */
|
|
377
|
+
}), a.meta && /* @__PURE__ */ F("span", {
|
|
378
378
|
className: "fcc-sidebar-label fcc-sidebar-profile-meta",
|
|
379
379
|
children: a.meta
|
|
380
380
|
})]
|
|
381
381
|
})]
|
|
382
|
-
}), s && /* @__PURE__ */
|
|
382
|
+
}), s && /* @__PURE__ */ F("button", {
|
|
383
383
|
type: "button",
|
|
384
384
|
className: "fcc-sidebar-logout",
|
|
385
385
|
title: "Logout",
|
|
386
386
|
"aria-label": "Logout",
|
|
387
387
|
onClick: s,
|
|
388
|
-
children: /* @__PURE__ */
|
|
388
|
+
children: /* @__PURE__ */ F(D, { size: 16 })
|
|
389
389
|
})]
|
|
390
390
|
})
|
|
391
391
|
]
|
|
@@ -393,10 +393,10 @@ function q({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onN
|
|
|
393
393
|
}
|
|
394
394
|
//#endregion
|
|
395
395
|
//#region src/components/layout/FCCAppShell.jsx
|
|
396
|
-
function
|
|
397
|
-
return /* @__PURE__ */
|
|
396
|
+
function fe({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onNavigate: i, user: a, footer: o, onLogout: s, breadcrumbs: c = [], status: l, headerActions: u, header: d, children: f, overlay: p, className: m = "", sidebarClassName: h = "", mainClassName: g = "", headerClassName: _ = "", contentClassName: v = "" }) {
|
|
397
|
+
return /* @__PURE__ */ I("div", {
|
|
398
398
|
className: ["fcc-app-shell", m].filter(Boolean).join(" "),
|
|
399
|
-
children: [/* @__PURE__ */
|
|
399
|
+
children: [/* @__PURE__ */ F(Y, {
|
|
400
400
|
appName: e,
|
|
401
401
|
logo: t,
|
|
402
402
|
navItems: n,
|
|
@@ -406,7 +406,7 @@ function me({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
406
406
|
footer: o,
|
|
407
407
|
onLogout: s,
|
|
408
408
|
className: h
|
|
409
|
-
}), /* @__PURE__ */
|
|
409
|
+
}), /* @__PURE__ */ F(q, {
|
|
410
410
|
breadcrumbs: c,
|
|
411
411
|
status: l,
|
|
412
412
|
headerActions: u,
|
|
@@ -421,9 +421,9 @@ function me({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
421
421
|
}
|
|
422
422
|
//#endregion
|
|
423
423
|
//#region src/components/layout/FCCBrandLogo.jsx
|
|
424
|
-
function
|
|
425
|
-
let { theme: a } =
|
|
426
|
-
return o ? /* @__PURE__ */
|
|
424
|
+
function pe({ darkSrc: e, lightSrc: t, alt: n = "FCC", className: r = "", ...i }) {
|
|
425
|
+
let { theme: a } = H(), o = a === "dark" ? e || t : t || e;
|
|
426
|
+
return o ? /* @__PURE__ */ F("img", {
|
|
427
427
|
src: o,
|
|
428
428
|
alt: n,
|
|
429
429
|
className: ["fcc-brand-logo", r].filter(Boolean).join(" "),
|
|
@@ -432,9 +432,9 @@ function he({ darkSrc: e, lightSrc: t, alt: n = "FCC", className: r = "", ...i }
|
|
|
432
432
|
}
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/components/layout/FCCThemeToggle.jsx
|
|
435
|
-
function
|
|
436
|
-
let { theme: t, toggleTheme: n } =
|
|
437
|
-
return /* @__PURE__ */
|
|
435
|
+
function me({ className: e = "" }) {
|
|
436
|
+
let { theme: t, toggleTheme: n } = H(), r = t === "dark";
|
|
437
|
+
return /* @__PURE__ */ F("button", {
|
|
438
438
|
type: "button",
|
|
439
439
|
onClick: n,
|
|
440
440
|
className: [
|
|
@@ -446,32 +446,32 @@ function ge({ className: e = "" }) {
|
|
|
446
446
|
].filter(Boolean).join(" "),
|
|
447
447
|
title: r ? "Switch to light mode" : "Switch to dark mode",
|
|
448
448
|
"aria-label": r ? "Switch to light mode" : "Switch to dark mode",
|
|
449
|
-
children:
|
|
449
|
+
children: F(r ? A : M, { size: 16 })
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
//#endregion
|
|
453
453
|
//#region src/components/ui/Accordion.jsx
|
|
454
|
-
function
|
|
454
|
+
function he({ title: e, header: t, defaultOpen: n = !1, className: r = "", children: i }) {
|
|
455
455
|
let [a, o] = l(n);
|
|
456
|
-
return /* @__PURE__ */
|
|
456
|
+
return /* @__PURE__ */ I("div", {
|
|
457
457
|
className: `accordion-item ${r}`,
|
|
458
|
-
children: [/* @__PURE__ */
|
|
458
|
+
children: [/* @__PURE__ */ I("div", {
|
|
459
459
|
className: `accordion-trigger ${a ? "expanded" : ""}`,
|
|
460
460
|
onClick: () => o(!a),
|
|
461
461
|
role: "button",
|
|
462
462
|
"aria-expanded": a,
|
|
463
|
-
children: [t || /* @__PURE__ */
|
|
463
|
+
children: [t || /* @__PURE__ */ F("span", {
|
|
464
464
|
className: "accordion-trigger-title",
|
|
465
465
|
children: e
|
|
466
|
-
}), /* @__PURE__ */
|
|
466
|
+
}), /* @__PURE__ */ F("span", {
|
|
467
467
|
className: "accordion-trigger-chevron",
|
|
468
|
-
children:
|
|
468
|
+
children: F(a ? _ : v, { size: 14 })
|
|
469
469
|
})]
|
|
470
|
-
}), /* @__PURE__ */
|
|
470
|
+
}), /* @__PURE__ */ F("div", {
|
|
471
471
|
className: `accordion-collapse ${a ? "open" : ""}`,
|
|
472
|
-
children: /* @__PURE__ */
|
|
472
|
+
children: /* @__PURE__ */ F("div", {
|
|
473
473
|
className: "accordion-collapse-inner",
|
|
474
|
-
children: /* @__PURE__ */
|
|
474
|
+
children: /* @__PURE__ */ F("div", {
|
|
475
475
|
className: "accordion-content",
|
|
476
476
|
children: i
|
|
477
477
|
})
|
|
@@ -479,7 +479,7 @@ function _e({ title: e, header: t, defaultOpen: n = !1, className: r = "", child
|
|
|
479
479
|
})]
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function ge({ items: e = [], className: t = "" }) {
|
|
483
483
|
let [n, r] = l(/* @__PURE__ */ new Set());
|
|
484
484
|
function i(e) {
|
|
485
485
|
r((t) => {
|
|
@@ -487,29 +487,29 @@ function ve({ items: e = [], className: t = "" }) {
|
|
|
487
487
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
|
-
return /* @__PURE__ */
|
|
490
|
+
return /* @__PURE__ */ F("div", {
|
|
491
491
|
className: `accordion ${t}`,
|
|
492
492
|
children: e.map((e) => {
|
|
493
493
|
let t = n.has(e.id);
|
|
494
|
-
return /* @__PURE__ */
|
|
494
|
+
return /* @__PURE__ */ I("div", {
|
|
495
495
|
className: "accordion-item",
|
|
496
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ I("div", {
|
|
497
497
|
className: `accordion-trigger ${t ? "expanded" : ""}`,
|
|
498
498
|
onClick: () => i(e.id),
|
|
499
499
|
role: "button",
|
|
500
500
|
"aria-expanded": t,
|
|
501
|
-
children: [e.header || /* @__PURE__ */
|
|
501
|
+
children: [e.header || /* @__PURE__ */ F("span", {
|
|
502
502
|
className: "accordion-trigger-title",
|
|
503
503
|
children: e.title
|
|
504
|
-
}), /* @__PURE__ */
|
|
504
|
+
}), /* @__PURE__ */ F("span", {
|
|
505
505
|
className: "accordion-trigger-chevron",
|
|
506
|
-
children:
|
|
506
|
+
children: F(t ? _ : v, { size: 14 })
|
|
507
507
|
})]
|
|
508
|
-
}), /* @__PURE__ */
|
|
508
|
+
}), /* @__PURE__ */ F("div", {
|
|
509
509
|
className: `accordion-collapse ${t ? "open" : ""}`,
|
|
510
|
-
children: /* @__PURE__ */
|
|
510
|
+
children: /* @__PURE__ */ F("div", {
|
|
511
511
|
className: "accordion-collapse-inner",
|
|
512
|
-
children: /* @__PURE__ */
|
|
512
|
+
children: /* @__PURE__ */ F("div", {
|
|
513
513
|
className: "accordion-content",
|
|
514
514
|
children: e.content
|
|
515
515
|
})
|
|
@@ -521,41 +521,41 @@ function ve({ items: e = [], className: t = "" }) {
|
|
|
521
521
|
}
|
|
522
522
|
//#endregion
|
|
523
523
|
//#region src/components/ui/AppLoader.jsx
|
|
524
|
-
function
|
|
525
|
-
return t ? /* @__PURE__ */
|
|
524
|
+
function _e({ label: e = "Loading...", fullscreen: t = !1, className: n = "" }) {
|
|
525
|
+
return t ? /* @__PURE__ */ I("div", {
|
|
526
526
|
className: `loader-fullscreen ${n}`,
|
|
527
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ F(E, {
|
|
528
528
|
size: 32,
|
|
529
529
|
className: "loader-spin"
|
|
530
|
-
}), e && /* @__PURE__ */
|
|
530
|
+
}), e && /* @__PURE__ */ F("span", {
|
|
531
531
|
className: "loader-label",
|
|
532
532
|
children: e
|
|
533
533
|
})]
|
|
534
|
-
}) : /* @__PURE__ */
|
|
534
|
+
}) : /* @__PURE__ */ I("div", {
|
|
535
535
|
className: `loader ${n}`,
|
|
536
|
-
children: [/* @__PURE__ */
|
|
536
|
+
children: [/* @__PURE__ */ F(E, {
|
|
537
537
|
size: 20,
|
|
538
538
|
className: "loader-spin"
|
|
539
|
-
}), e && /* @__PURE__ */
|
|
539
|
+
}), e && /* @__PURE__ */ F("span", {
|
|
540
540
|
className: "loader-label",
|
|
541
541
|
children: e
|
|
542
542
|
})]
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
|
-
function
|
|
546
|
-
return /* @__PURE__ */
|
|
545
|
+
function ve({ size: e = 16, className: t = "" }) {
|
|
546
|
+
return /* @__PURE__ */ F(E, {
|
|
547
547
|
size: e,
|
|
548
548
|
className: `loader-spin ${t}`
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
//#endregion
|
|
552
552
|
//#region src/components/ui/Avatar.jsx
|
|
553
|
-
var
|
|
553
|
+
var ye = {
|
|
554
554
|
sm: "avatar-sm",
|
|
555
555
|
md: "",
|
|
556
556
|
lg: "avatar-lg",
|
|
557
557
|
xl: "avatar-xl"
|
|
558
|
-
},
|
|
558
|
+
}, be = [
|
|
559
559
|
"#5e6ad2",
|
|
560
560
|
"#5bb98e",
|
|
561
561
|
"#c9a84e",
|
|
@@ -564,14 +564,14 @@ var xe = {
|
|
|
564
564
|
"#5a8ebf",
|
|
565
565
|
"#c4a06a"
|
|
566
566
|
];
|
|
567
|
-
function
|
|
567
|
+
function xe(e) {
|
|
568
568
|
let t = 0;
|
|
569
569
|
for (let n = 0; n < e.length; n++) t = e.charCodeAt(n) + ((t << 5) - t);
|
|
570
|
-
return
|
|
570
|
+
return be[Math.abs(t) % be.length];
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
let [o, s] = l(!1), c = t || (n ? n.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase() : "?"), u = a.background ||
|
|
574
|
-
return e && !o ? /* @__PURE__ */
|
|
572
|
+
function X({ imageUrl: e, initials: t, name: n, size: r = "md", className: i = "", style: a = {} }) {
|
|
573
|
+
let [o, s] = l(!1), c = t || (n ? n.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase() : "?"), u = a.background || xe(c), d = ye[r] || "";
|
|
574
|
+
return e && !o ? /* @__PURE__ */ F("img", {
|
|
575
575
|
src: e,
|
|
576
576
|
alt: n || "",
|
|
577
577
|
className: `avatar ${d} ${i}`,
|
|
@@ -580,7 +580,7 @@ function Y({ imageUrl: e, initials: t, name: n, size: r = "md", className: i = "
|
|
|
580
580
|
...a
|
|
581
581
|
},
|
|
582
582
|
onError: () => s(!0)
|
|
583
|
-
}) : /* @__PURE__ */
|
|
583
|
+
}) : /* @__PURE__ */ F("div", {
|
|
584
584
|
className: `avatar ${d} ${i}`,
|
|
585
585
|
style: {
|
|
586
586
|
background: u,
|
|
@@ -591,7 +591,7 @@ function Y({ imageUrl: e, initials: t, name: n, size: r = "md", className: i = "
|
|
|
591
591
|
}
|
|
592
592
|
//#endregion
|
|
593
593
|
//#region src/components/ui/Badge.jsx
|
|
594
|
-
var
|
|
594
|
+
var Se = {
|
|
595
595
|
default: "var(--text-quaternary)",
|
|
596
596
|
secondary: "var(--text-quaternary)",
|
|
597
597
|
success: "var(--accent-green)",
|
|
@@ -603,11 +603,11 @@ var X = {
|
|
|
603
603
|
orange: "var(--accent-orange)"
|
|
604
604
|
};
|
|
605
605
|
function Ce({ variant: e = "default", className: t = "", children: n, showDot: r = !0, ...i }) {
|
|
606
|
-
let a =
|
|
607
|
-
return /* @__PURE__ */
|
|
606
|
+
let a = Se[e] || Se.default;
|
|
607
|
+
return /* @__PURE__ */ I("span", {
|
|
608
608
|
className: `badge ${r ? "" : "badge--no-dot"} ${t}`.trim(),
|
|
609
609
|
...i,
|
|
610
|
-
children: [r && /* @__PURE__ */
|
|
610
|
+
children: [r && /* @__PURE__ */ F("span", {
|
|
611
611
|
className: "badge-dot",
|
|
612
612
|
style: { background: a }
|
|
613
613
|
}), n]
|
|
@@ -628,7 +628,7 @@ var we = {
|
|
|
628
628
|
lg: "btn-lg",
|
|
629
629
|
icon: "btn-icon"
|
|
630
630
|
}, Ee = n(function({ variant: e = "default", size: t = "default", className: n = "", children: r, ...i }, a) {
|
|
631
|
-
return /* @__PURE__ */
|
|
631
|
+
return /* @__PURE__ */ F("button", {
|
|
632
632
|
ref: a,
|
|
633
633
|
className: [
|
|
634
634
|
"btn",
|
|
@@ -640,42 +640,42 @@ var we = {
|
|
|
640
640
|
children: r
|
|
641
641
|
});
|
|
642
642
|
}), De = n(function({ className: e = "", children: t, ...n }, r) {
|
|
643
|
-
return /* @__PURE__ */
|
|
643
|
+
return /* @__PURE__ */ F("div", {
|
|
644
644
|
ref: r,
|
|
645
645
|
className: `card ${e}`,
|
|
646
646
|
...n,
|
|
647
647
|
children: t
|
|
648
648
|
});
|
|
649
649
|
}), Oe = n(function({ className: e = "", children: t, ...n }, r) {
|
|
650
|
-
return /* @__PURE__ */
|
|
650
|
+
return /* @__PURE__ */ F("div", {
|
|
651
651
|
ref: r,
|
|
652
652
|
className: `card-header ${e}`,
|
|
653
653
|
...n,
|
|
654
654
|
children: t
|
|
655
655
|
});
|
|
656
656
|
}), ke = n(function({ className: e = "", children: t, ...n }, r) {
|
|
657
|
-
return /* @__PURE__ */
|
|
657
|
+
return /* @__PURE__ */ F("h3", {
|
|
658
658
|
ref: r,
|
|
659
659
|
className: `card-title ${e}`,
|
|
660
660
|
...n,
|
|
661
661
|
children: t
|
|
662
662
|
});
|
|
663
663
|
}), Ae = n(function({ className: e = "", children: t, ...n }, r) {
|
|
664
|
-
return /* @__PURE__ */
|
|
664
|
+
return /* @__PURE__ */ F("p", {
|
|
665
665
|
ref: r,
|
|
666
666
|
className: `card-description ${e}`,
|
|
667
667
|
...n,
|
|
668
668
|
children: t
|
|
669
669
|
});
|
|
670
670
|
}), je = n(function({ className: e = "", children: t, ...n }, r) {
|
|
671
|
-
return /* @__PURE__ */
|
|
671
|
+
return /* @__PURE__ */ F("div", {
|
|
672
672
|
ref: r,
|
|
673
673
|
className: `card-body ${e}`,
|
|
674
674
|
...n,
|
|
675
675
|
children: t
|
|
676
676
|
});
|
|
677
677
|
}), Me = n(function({ className: e = "", children: t, ...n }, r) {
|
|
678
|
-
return /* @__PURE__ */
|
|
678
|
+
return /* @__PURE__ */ F("div", {
|
|
679
679
|
ref: r,
|
|
680
680
|
className: `card-footer ${e}`,
|
|
681
681
|
...n,
|
|
@@ -693,51 +693,51 @@ function Ne({ open: e, onClose: t, children: n, className: r = "" }) {
|
|
|
693
693
|
e.key === "Escape" && t?.();
|
|
694
694
|
}
|
|
695
695
|
return e && document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
696
|
-
}, [e, t]), e ? /* @__PURE__ */
|
|
696
|
+
}, [e, t]), e ? /* @__PURE__ */ F("div", {
|
|
697
697
|
className: "dialog-overlay",
|
|
698
698
|
ref: i,
|
|
699
699
|
onClick: (e) => {
|
|
700
700
|
e.target === i.current && t?.();
|
|
701
701
|
},
|
|
702
|
-
children: /* @__PURE__ */
|
|
702
|
+
children: /* @__PURE__ */ F("div", {
|
|
703
703
|
className: `dialog ${r}`,
|
|
704
704
|
children: n
|
|
705
705
|
})
|
|
706
706
|
}) : null;
|
|
707
707
|
}
|
|
708
708
|
function Pe({ children: e, onClose: t, className: n = "" }) {
|
|
709
|
-
return /* @__PURE__ */
|
|
709
|
+
return /* @__PURE__ */ I("div", {
|
|
710
710
|
className: `dialog-header ${n}`,
|
|
711
|
-
children: [/* @__PURE__ */
|
|
711
|
+
children: [/* @__PURE__ */ F("div", {
|
|
712
712
|
style: { flex: 1 },
|
|
713
713
|
children: e
|
|
714
|
-
}), t && /* @__PURE__ */
|
|
714
|
+
}), t && /* @__PURE__ */ F("button", {
|
|
715
715
|
className: "btn btn-ghost btn-icon btn-sm",
|
|
716
716
|
onClick: t,
|
|
717
|
-
children: /* @__PURE__ */
|
|
717
|
+
children: /* @__PURE__ */ F(P, { size: 16 })
|
|
718
718
|
})]
|
|
719
719
|
});
|
|
720
720
|
}
|
|
721
721
|
function Fe({ children: e, className: t = "" }) {
|
|
722
|
-
return /* @__PURE__ */
|
|
722
|
+
return /* @__PURE__ */ F("h3", {
|
|
723
723
|
className: `dialog-title ${t}`,
|
|
724
724
|
children: e
|
|
725
725
|
});
|
|
726
726
|
}
|
|
727
727
|
function Ie({ children: e, className: t = "" }) {
|
|
728
|
-
return /* @__PURE__ */
|
|
728
|
+
return /* @__PURE__ */ F("p", {
|
|
729
729
|
className: `dialog-description ${t}`,
|
|
730
730
|
children: e
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
733
|
function Le({ children: e, className: t = "" }) {
|
|
734
|
-
return /* @__PURE__ */
|
|
734
|
+
return /* @__PURE__ */ F("div", {
|
|
735
735
|
className: `dialog-body ${t}`,
|
|
736
736
|
children: e
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
739
|
function Re({ children: e, className: t = "" }) {
|
|
740
|
-
return /* @__PURE__ */
|
|
740
|
+
return /* @__PURE__ */ F("div", {
|
|
741
741
|
className: `dialog-footer ${t}`,
|
|
742
742
|
children: e
|
|
743
743
|
});
|
|
@@ -751,14 +751,14 @@ function ze({ trigger: e, children: t, align: n = "left", className: r = "" }) {
|
|
|
751
751
|
s.current && !s.current.contains(e.target) && a(!1);
|
|
752
752
|
}
|
|
753
753
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
754
|
-
}, []), /* @__PURE__ */
|
|
754
|
+
}, []), /* @__PURE__ */ I("div", {
|
|
755
755
|
ref: s,
|
|
756
756
|
className: `dropdown-wrapper ${r}`,
|
|
757
757
|
style: { position: "relative" },
|
|
758
|
-
children: [/* @__PURE__ */
|
|
758
|
+
children: [/* @__PURE__ */ F("div", {
|
|
759
759
|
onClick: () => a(!i),
|
|
760
760
|
children: e
|
|
761
|
-
}), i && /* @__PURE__ */
|
|
761
|
+
}), i && /* @__PURE__ */ F("div", {
|
|
762
762
|
className: `dropdown dropdown-align-${n}`,
|
|
763
763
|
onClick: () => a(!1),
|
|
764
764
|
children: t
|
|
@@ -766,19 +766,19 @@ function ze({ trigger: e, children: t, align: n = "left", className: r = "" }) {
|
|
|
766
766
|
});
|
|
767
767
|
}
|
|
768
768
|
function Be({ icon: e, children: t, shortcut: n, active: r, onClick: i, className: a = "" }) {
|
|
769
|
-
return /* @__PURE__ */
|
|
769
|
+
return /* @__PURE__ */ I("div", {
|
|
770
770
|
className: `dropdown-item ${r ? "active" : ""} ${a}`,
|
|
771
771
|
onClick: i,
|
|
772
772
|
children: [
|
|
773
|
-
e && /* @__PURE__ */
|
|
773
|
+
e && /* @__PURE__ */ F("span", {
|
|
774
774
|
className: "dropdown-item-icon",
|
|
775
775
|
children: e
|
|
776
776
|
}),
|
|
777
|
-
/* @__PURE__ */
|
|
777
|
+
/* @__PURE__ */ F("span", {
|
|
778
778
|
style: { flex: 1 },
|
|
779
779
|
children: t
|
|
780
780
|
}),
|
|
781
|
-
n && /* @__PURE__ */
|
|
781
|
+
n && /* @__PURE__ */ F("span", {
|
|
782
782
|
className: "dropdown-shortcut",
|
|
783
783
|
children: n
|
|
784
784
|
})
|
|
@@ -786,24 +786,24 @@ function Be({ icon: e, children: t, shortcut: n, active: r, onClick: i, classNam
|
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
function Ve({ checked: e, onCheckedChange: t, children: n, className: r = "" }) {
|
|
789
|
-
return /* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ I("div", {
|
|
790
790
|
className: `dropdown-item ${r}`,
|
|
791
791
|
onClick: () => t?.(!e),
|
|
792
|
-
children: [/* @__PURE__ */
|
|
792
|
+
children: [/* @__PURE__ */ F("span", {
|
|
793
793
|
className: "dropdown-item-icon",
|
|
794
794
|
style: { opacity: +!!e },
|
|
795
|
-
children: /* @__PURE__ */
|
|
795
|
+
children: /* @__PURE__ */ F(m, { size: 14 })
|
|
796
796
|
}), n]
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
function He({ children: e, className: t = "" }) {
|
|
800
|
-
return /* @__PURE__ */
|
|
800
|
+
return /* @__PURE__ */ F("div", {
|
|
801
801
|
className: `dropdown-label ${t}`,
|
|
802
802
|
children: e
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
805
|
function Ue({ className: e = "" }) {
|
|
806
|
-
return /* @__PURE__ */
|
|
806
|
+
return /* @__PURE__ */ F("div", { className: `dropdown-divider ${e}` });
|
|
807
807
|
}
|
|
808
808
|
//#endregion
|
|
809
809
|
//#region src/components/ui/SearchableSelect.jsx
|
|
@@ -820,28 +820,28 @@ function We({ options: e = [], value: t, onChange: n, placeholder: r = "Select..
|
|
|
820
820
|
function C(e) {
|
|
821
821
|
e.key === "ArrowDown" ? (e.preventDefault(), v((e) => Math.min(e + 1, x.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), v((e) => Math.max(e - 1, 0))) : e.key === "Enter" && x[g] ? (n?.(x[g].value), f(!1), h("")) : e.key === "Escape" && (f(!1), h(""));
|
|
822
822
|
}
|
|
823
|
-
return /* @__PURE__ */
|
|
823
|
+
return /* @__PURE__ */ I("div", {
|
|
824
824
|
ref: y,
|
|
825
825
|
className: `searchable-select ${u}`,
|
|
826
|
-
children: [/* @__PURE__ */
|
|
826
|
+
children: [/* @__PURE__ */ I("button", {
|
|
827
827
|
className: "searchable-select-trigger",
|
|
828
828
|
onClick: () => !s && f(!d),
|
|
829
829
|
disabled: s,
|
|
830
830
|
type: "button",
|
|
831
|
-
children: [/* @__PURE__ */
|
|
831
|
+
children: [/* @__PURE__ */ F("span", {
|
|
832
832
|
className: S ? "" : "searchable-select-placeholder",
|
|
833
833
|
children: S ? S.label : r
|
|
834
|
-
}), /* @__PURE__ */
|
|
834
|
+
}), /* @__PURE__ */ F(_, {
|
|
835
835
|
size: 14,
|
|
836
836
|
className: "searchable-select-chevron"
|
|
837
837
|
})]
|
|
838
|
-
}), d && /* @__PURE__ */
|
|
838
|
+
}), d && /* @__PURE__ */ I("div", {
|
|
839
839
|
className: "searchable-select-dropdown",
|
|
840
|
-
children: [/* @__PURE__ */
|
|
840
|
+
children: [/* @__PURE__ */ I("div", {
|
|
841
841
|
className: "searchable-select-search",
|
|
842
842
|
children: [
|
|
843
|
-
/* @__PURE__ */
|
|
844
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ F(j, { size: 14 }),
|
|
844
|
+
/* @__PURE__ */ F("input", {
|
|
845
845
|
ref: b,
|
|
846
846
|
value: p,
|
|
847
847
|
onChange: (e) => {
|
|
@@ -851,21 +851,21 @@ function We({ options: e = [], value: t, onChange: n, placeholder: r = "Select..
|
|
|
851
851
|
placeholder: i,
|
|
852
852
|
className: "searchable-select-input"
|
|
853
853
|
}),
|
|
854
|
-
p && /* @__PURE__ */
|
|
854
|
+
p && /* @__PURE__ */ F("button", {
|
|
855
855
|
className: "searchable-select-clear",
|
|
856
856
|
onClick: () => h(""),
|
|
857
|
-
children: /* @__PURE__ */
|
|
857
|
+
children: /* @__PURE__ */ F(P, { size: 12 })
|
|
858
858
|
})
|
|
859
859
|
]
|
|
860
|
-
}), /* @__PURE__ */
|
|
860
|
+
}), /* @__PURE__ */ I("div", {
|
|
861
861
|
className: "searchable-select-options",
|
|
862
862
|
children: [
|
|
863
|
-
a && /* @__PURE__ */
|
|
863
|
+
a && /* @__PURE__ */ F("div", {
|
|
864
864
|
className: `searchable-select-option ${t ? "" : "selected"}`,
|
|
865
865
|
onClick: () => {
|
|
866
866
|
n?.(null), f(!1), h("");
|
|
867
867
|
},
|
|
868
|
-
children: /* @__PURE__ */
|
|
868
|
+
children: /* @__PURE__ */ F("span", {
|
|
869
869
|
style: {
|
|
870
870
|
color: "var(--text-tertiary)",
|
|
871
871
|
fontStyle: "italic"
|
|
@@ -873,21 +873,21 @@ function We({ options: e = [], value: t, onChange: n, placeholder: r = "Select..
|
|
|
873
873
|
children: "None"
|
|
874
874
|
})
|
|
875
875
|
}),
|
|
876
|
-
x.map((e, r) => /* @__PURE__ */
|
|
876
|
+
x.map((e, r) => /* @__PURE__ */ I("div", {
|
|
877
877
|
className: `searchable-select-option ${r === g ? "highlighted" : ""} ${e.value === t ? "selected" : ""}`,
|
|
878
878
|
onClick: () => {
|
|
879
879
|
n?.(e.value), f(!1), h("");
|
|
880
880
|
},
|
|
881
881
|
onMouseEnter: () => v(r),
|
|
882
|
-
children: [/* @__PURE__ */
|
|
882
|
+
children: [/* @__PURE__ */ I("div", {
|
|
883
883
|
className: "searchable-select-option-content",
|
|
884
|
-
children: [/* @__PURE__ */
|
|
884
|
+
children: [/* @__PURE__ */ F("span", { children: e.label }), e.description && /* @__PURE__ */ F("span", {
|
|
885
885
|
className: "searchable-select-option-desc",
|
|
886
886
|
children: e.description
|
|
887
887
|
})]
|
|
888
|
-
}), e.value === t && /* @__PURE__ */
|
|
888
|
+
}), e.value === t && /* @__PURE__ */ F(m, { size: 14 })]
|
|
889
889
|
}, e.value)),
|
|
890
|
-
x.length === 0 && /* @__PURE__ */
|
|
890
|
+
x.length === 0 && /* @__PURE__ */ F("div", {
|
|
891
891
|
className: "searchable-select-empty",
|
|
892
892
|
children: "No results found"
|
|
893
893
|
})
|
|
@@ -907,25 +907,25 @@ function Ge({ open: e, onClose: t, side: n = "right", title: r, children: i, cla
|
|
|
907
907
|
e.key === "Escape" && t?.();
|
|
908
908
|
}
|
|
909
909
|
return e && document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
910
|
-
}, [e, t]), e ? /* @__PURE__ */
|
|
910
|
+
}, [e, t]), e ? /* @__PURE__ */ F("div", {
|
|
911
911
|
className: "sheet-overlay",
|
|
912
912
|
ref: s,
|
|
913
913
|
onClick: (e) => {
|
|
914
914
|
e.target === s.current && t?.();
|
|
915
915
|
},
|
|
916
|
-
children: /* @__PURE__ */
|
|
916
|
+
children: /* @__PURE__ */ I("div", {
|
|
917
917
|
className: `sheet sheet-${n} ${a}`,
|
|
918
|
-
children: [r && /* @__PURE__ */
|
|
918
|
+
children: [r && /* @__PURE__ */ I("div", {
|
|
919
919
|
className: "sheet-header",
|
|
920
|
-
children: [/* @__PURE__ */
|
|
920
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
921
921
|
className: "sheet-title",
|
|
922
922
|
children: r
|
|
923
|
-
}), /* @__PURE__ */
|
|
923
|
+
}), /* @__PURE__ */ F("button", {
|
|
924
924
|
className: "btn btn-ghost btn-icon btn-sm",
|
|
925
925
|
onClick: t,
|
|
926
|
-
children: /* @__PURE__ */
|
|
926
|
+
children: /* @__PURE__ */ F(P, { size: 16 })
|
|
927
927
|
})]
|
|
928
|
-
}), /* @__PURE__ */
|
|
928
|
+
}), /* @__PURE__ */ F("div", {
|
|
929
929
|
className: "sheet-body",
|
|
930
930
|
children: i
|
|
931
931
|
})]
|
|
@@ -933,7 +933,7 @@ function Ge({ open: e, onClose: t, side: n = "right", title: r, children: i, cla
|
|
|
933
933
|
}) : null;
|
|
934
934
|
}
|
|
935
935
|
function Ke({ children: e, className: t = "" }) {
|
|
936
|
-
return /* @__PURE__ */
|
|
936
|
+
return /* @__PURE__ */ F("div", {
|
|
937
937
|
className: `sheet-footer ${t}`,
|
|
938
938
|
children: e
|
|
939
939
|
});
|
|
@@ -941,18 +941,18 @@ function Ke({ children: e, className: t = "" }) {
|
|
|
941
941
|
//#endregion
|
|
942
942
|
//#region src/components/ui/Switch.jsx
|
|
943
943
|
function qe({ checked: e = !1, onCheckedChange: t, disabled: n = !1, size: r = "md", label: i }) {
|
|
944
|
-
return /* @__PURE__ */
|
|
944
|
+
return /* @__PURE__ */ I("div", {
|
|
945
945
|
className: "toggle-row",
|
|
946
|
-
children: [i && /* @__PURE__ */
|
|
946
|
+
children: [i && /* @__PURE__ */ F("span", {
|
|
947
947
|
className: "toggle-text",
|
|
948
948
|
children: i
|
|
949
|
-
}), /* @__PURE__ */
|
|
949
|
+
}), /* @__PURE__ */ F("button", {
|
|
950
950
|
className: `toggle ${e ? "active" : ""} ${r === "sm" ? "toggle-sm" : ""}`,
|
|
951
951
|
onClick: () => !n && t?.(!e),
|
|
952
952
|
disabled: n,
|
|
953
953
|
role: "switch",
|
|
954
954
|
"aria-checked": e,
|
|
955
|
-
children: /* @__PURE__ */
|
|
955
|
+
children: /* @__PURE__ */ F("div", { className: "toggle-knob" })
|
|
956
956
|
})]
|
|
957
957
|
});
|
|
958
958
|
}
|
|
@@ -964,26 +964,26 @@ var Z = e({
|
|
|
964
964
|
});
|
|
965
965
|
function Je({ defaultValue: e, value: t, onValueChange: n, children: r, className: i = "" }) {
|
|
966
966
|
let [a, o] = l(e || ""), s = t === void 0 ? a : t, c = n || o;
|
|
967
|
-
return /* @__PURE__ */
|
|
967
|
+
return /* @__PURE__ */ F(Z.Provider, {
|
|
968
968
|
value: {
|
|
969
969
|
value: s,
|
|
970
970
|
onChange: c
|
|
971
971
|
},
|
|
972
|
-
children: /* @__PURE__ */
|
|
972
|
+
children: /* @__PURE__ */ F("div", {
|
|
973
973
|
className: i,
|
|
974
974
|
children: r
|
|
975
975
|
})
|
|
976
976
|
});
|
|
977
977
|
}
|
|
978
978
|
function Ye({ children: e, className: t = "" }) {
|
|
979
|
-
return /* @__PURE__ */
|
|
979
|
+
return /* @__PURE__ */ F("div", {
|
|
980
980
|
className: `tabs ${t}`,
|
|
981
981
|
children: e
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
984
|
function Xe({ value: e, children: t, className: n = "" }) {
|
|
985
985
|
let { value: r, onChange: i } = a(Z), o = r === e;
|
|
986
|
-
return /* @__PURE__ */
|
|
986
|
+
return /* @__PURE__ */ F("button", {
|
|
987
987
|
className: `tab ${o ? "active" : ""} ${n}`,
|
|
988
988
|
onClick: () => i(e),
|
|
989
989
|
role: "tab",
|
|
@@ -994,7 +994,7 @@ function Xe({ value: e, children: t, className: n = "" }) {
|
|
|
994
994
|
}
|
|
995
995
|
function Ze({ value: e, children: t, className: n = "" }) {
|
|
996
996
|
let { value: r } = a(Z);
|
|
997
|
-
return r === e ? /* @__PURE__ */
|
|
997
|
+
return r === e ? /* @__PURE__ */ F("div", {
|
|
998
998
|
className: n,
|
|
999
999
|
role: "tabpanel",
|
|
1000
1000
|
children: t
|
|
@@ -1010,7 +1010,7 @@ function Qe({ content: e, side: t = "top", children: n, className: r = "" }) {
|
|
|
1010
1010
|
function u() {
|
|
1011
1011
|
clearTimeout(o.current), a(!1);
|
|
1012
1012
|
}
|
|
1013
|
-
return /* @__PURE__ */
|
|
1013
|
+
return /* @__PURE__ */ I("div", {
|
|
1014
1014
|
className: `tooltip-wrapper ${r}`,
|
|
1015
1015
|
onMouseEnter: s,
|
|
1016
1016
|
onMouseLeave: u,
|
|
@@ -1018,7 +1018,7 @@ function Qe({ content: e, side: t = "top", children: n, className: r = "" }) {
|
|
|
1018
1018
|
position: "relative",
|
|
1019
1019
|
display: "inline-flex"
|
|
1020
1020
|
},
|
|
1021
|
-
children: [n, i && /* @__PURE__ */
|
|
1021
|
+
children: [n, i && /* @__PURE__ */ F("div", {
|
|
1022
1022
|
className: `tooltip tooltip-${t}`,
|
|
1023
1023
|
children: e
|
|
1024
1024
|
})]
|
|
@@ -1030,12 +1030,12 @@ var $e = {
|
|
|
1030
1030
|
kanban: S,
|
|
1031
1031
|
board: S,
|
|
1032
1032
|
columns: S,
|
|
1033
|
-
table:
|
|
1034
|
-
list:
|
|
1035
|
-
rows:
|
|
1036
|
-
grid:
|
|
1033
|
+
table: T,
|
|
1034
|
+
list: T,
|
|
1035
|
+
rows: T,
|
|
1036
|
+
grid: ee,
|
|
1037
1037
|
calendar: p,
|
|
1038
|
-
map:
|
|
1038
|
+
map: O
|
|
1039
1039
|
}, et = [{
|
|
1040
1040
|
value: "kanban",
|
|
1041
1041
|
label: "Kanban",
|
|
@@ -1101,7 +1101,7 @@ function rt({ options: e = et, value: t, defaultValue: n, onValueChange: r, aria
|
|
|
1101
1101
|
u,
|
|
1102
1102
|
f,
|
|
1103
1103
|
p
|
|
1104
|
-
]), /* @__PURE__ */
|
|
1104
|
+
]), /* @__PURE__ */ I("div", {
|
|
1105
1105
|
ref: m,
|
|
1106
1106
|
className: [
|
|
1107
1107
|
"view-mode-toggle",
|
|
@@ -1110,13 +1110,13 @@ function rt({ options: e = et, value: t, defaultValue: n, onValueChange: r, aria
|
|
|
1110
1110
|
].filter(Boolean).join(" "),
|
|
1111
1111
|
role: "group",
|
|
1112
1112
|
"aria-label": a,
|
|
1113
|
-
children: [/* @__PURE__ */
|
|
1113
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1114
1114
|
ref: h,
|
|
1115
1115
|
"aria-hidden": "true",
|
|
1116
1116
|
className: "view-mode-toggle-indicator"
|
|
1117
1117
|
}), e.map((e) => {
|
|
1118
1118
|
let t = e.value === y, n = nt(tt(e), u);
|
|
1119
|
-
return /* @__PURE__ */
|
|
1119
|
+
return /* @__PURE__ */ I("button", {
|
|
1120
1120
|
type: "button",
|
|
1121
1121
|
"aria-pressed": t,
|
|
1122
1122
|
disabled: e.disabled,
|
|
@@ -1132,10 +1132,10 @@ function rt({ options: e = et, value: t, defaultValue: n, onValueChange: r, aria
|
|
|
1132
1132
|
p
|
|
1133
1133
|
].filter(Boolean).join(" "),
|
|
1134
1134
|
onClick: () => x(e),
|
|
1135
|
-
children: [n && /* @__PURE__ */
|
|
1135
|
+
children: [n && /* @__PURE__ */ F("span", {
|
|
1136
1136
|
className: "view-mode-toggle-icon",
|
|
1137
1137
|
children: n
|
|
1138
|
-
}), d && /* @__PURE__ */
|
|
1138
|
+
}), d && /* @__PURE__ */ F("span", {
|
|
1139
1139
|
className: "view-mode-toggle-label",
|
|
1140
1140
|
children: e.label
|
|
1141
1141
|
})]
|
|
@@ -1196,7 +1196,7 @@ function at({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLa
|
|
|
1196
1196
|
d,
|
|
1197
1197
|
f,
|
|
1198
1198
|
p
|
|
1199
|
-
]), /* @__PURE__ */
|
|
1199
|
+
]), /* @__PURE__ */ I("div", {
|
|
1200
1200
|
ref: m,
|
|
1201
1201
|
className: [
|
|
1202
1202
|
"workspace-tabs",
|
|
@@ -1205,13 +1205,13 @@ function at({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLa
|
|
|
1205
1205
|
].filter(Boolean).join(" "),
|
|
1206
1206
|
role: "tablist",
|
|
1207
1207
|
"aria-label": a,
|
|
1208
|
-
children: [/* @__PURE__ */
|
|
1208
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1209
1209
|
ref: h,
|
|
1210
1210
|
"aria-hidden": "true",
|
|
1211
1211
|
className: "workspace-tabs-indicator"
|
|
1212
1212
|
}), e.map((e) => {
|
|
1213
1213
|
let t = e.id === y, n = it(e.icon, u);
|
|
1214
|
-
return /* @__PURE__ */
|
|
1214
|
+
return /* @__PURE__ */ I("button", {
|
|
1215
1215
|
type: "button",
|
|
1216
1216
|
role: "tab",
|
|
1217
1217
|
"aria-selected": t,
|
|
@@ -1228,15 +1228,15 @@ function at({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLa
|
|
|
1228
1228
|
].filter(Boolean).join(" "),
|
|
1229
1229
|
onClick: () => x(e),
|
|
1230
1230
|
children: [
|
|
1231
|
-
n && /* @__PURE__ */
|
|
1231
|
+
n && /* @__PURE__ */ F("span", {
|
|
1232
1232
|
className: "workspace-tab-icon",
|
|
1233
1233
|
children: n
|
|
1234
1234
|
}),
|
|
1235
|
-
/* @__PURE__ */
|
|
1235
|
+
/* @__PURE__ */ F("span", {
|
|
1236
1236
|
className: "workspace-tab-label",
|
|
1237
1237
|
children: e.label
|
|
1238
1238
|
}),
|
|
1239
|
-
e.badge != null && /* @__PURE__ */
|
|
1239
|
+
e.badge != null && /* @__PURE__ */ F("span", {
|
|
1240
1240
|
className: "workspace-tab-badge",
|
|
1241
1241
|
children: e.badge
|
|
1242
1242
|
})
|
|
@@ -1248,34 +1248,34 @@ function at({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLa
|
|
|
1248
1248
|
//#endregion
|
|
1249
1249
|
//#region src/components/data/ActivityFeed.jsx
|
|
1250
1250
|
function ot({ items: e = [], className: t = "" }) {
|
|
1251
|
-
return /* @__PURE__ */
|
|
1251
|
+
return /* @__PURE__ */ F("div", {
|
|
1252
1252
|
className: `activity-feed ${t}`,
|
|
1253
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
1253
|
+
children: e.map((e, t) => /* @__PURE__ */ I("div", {
|
|
1254
1254
|
className: "activity-item",
|
|
1255
|
-
children: [/* @__PURE__ */
|
|
1255
|
+
children: [/* @__PURE__ */ F("div", {
|
|
1256
1256
|
className: "activity-avatar",
|
|
1257
|
-
children: /* @__PURE__ */
|
|
1257
|
+
children: /* @__PURE__ */ F(X, {
|
|
1258
1258
|
name: e.user,
|
|
1259
1259
|
size: "sm"
|
|
1260
1260
|
})
|
|
1261
|
-
}), /* @__PURE__ */
|
|
1261
|
+
}), /* @__PURE__ */ I("div", {
|
|
1262
1262
|
className: "activity-content",
|
|
1263
1263
|
children: [
|
|
1264
|
-
/* @__PURE__ */
|
|
1264
|
+
/* @__PURE__ */ I("div", {
|
|
1265
1265
|
className: "activity-header",
|
|
1266
|
-
children: [/* @__PURE__ */
|
|
1266
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1267
1267
|
className: "activity-name",
|
|
1268
1268
|
children: e.user
|
|
1269
|
-
}), /* @__PURE__ */
|
|
1269
|
+
}), /* @__PURE__ */ F("span", {
|
|
1270
1270
|
className: "activity-time",
|
|
1271
1271
|
children: e.time
|
|
1272
1272
|
})]
|
|
1273
1273
|
}),
|
|
1274
|
-
/* @__PURE__ */
|
|
1274
|
+
/* @__PURE__ */ F("div", {
|
|
1275
1275
|
className: "activity-text",
|
|
1276
1276
|
children: e.text
|
|
1277
1277
|
}),
|
|
1278
|
-
e.meta && /* @__PURE__ */
|
|
1278
|
+
e.meta && /* @__PURE__ */ F("div", {
|
|
1279
1279
|
className: "activity-meta",
|
|
1280
1280
|
children: e.meta
|
|
1281
1281
|
})
|
|
@@ -1311,19 +1311,19 @@ function st({ open: e, onClose: t, groups: n = [], onSelect: r, placeholder: i =
|
|
|
1311
1311
|
function h(e) {
|
|
1312
1312
|
e.key === "ArrowDown" ? (e.preventDefault(), d((e) => Math.min(e + 1, p.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), d((e) => Math.max(e - 1, 0))) : e.key === "Enter" && p[u] ? (r?.(p[u]), t?.()) : e.key === "Escape" && t?.();
|
|
1313
1313
|
}
|
|
1314
|
-
return /* @__PURE__ */
|
|
1314
|
+
return /* @__PURE__ */ F("div", {
|
|
1315
1315
|
className: "dialog-overlay",
|
|
1316
1316
|
onClick: (e) => {
|
|
1317
1317
|
e.target === e.currentTarget && t?.();
|
|
1318
1318
|
},
|
|
1319
|
-
children: /* @__PURE__ */
|
|
1319
|
+
children: /* @__PURE__ */ I("div", {
|
|
1320
1320
|
className: "command-palette",
|
|
1321
|
-
children: [/* @__PURE__ */
|
|
1321
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1322
1322
|
className: "command-input-wrapper",
|
|
1323
|
-
children: [/* @__PURE__ */
|
|
1323
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1324
1324
|
className: "command-input-icon",
|
|
1325
|
-
children: /* @__PURE__ */
|
|
1326
|
-
}), /* @__PURE__ */
|
|
1325
|
+
children: /* @__PURE__ */ F(j, { size: 16 })
|
|
1326
|
+
}), /* @__PURE__ */ F("input", {
|
|
1327
1327
|
ref: f,
|
|
1328
1328
|
className: "command-input",
|
|
1329
1329
|
value: a,
|
|
@@ -1333,29 +1333,29 @@ function st({ open: e, onClose: t, groups: n = [], onSelect: r, placeholder: i =
|
|
|
1333
1333
|
onKeyDown: h,
|
|
1334
1334
|
placeholder: i
|
|
1335
1335
|
})]
|
|
1336
|
-
}), /* @__PURE__ */
|
|
1336
|
+
}), /* @__PURE__ */ I("div", {
|
|
1337
1337
|
className: "command-results",
|
|
1338
|
-
children: [m.map((e, n) => /* @__PURE__ */
|
|
1338
|
+
children: [m.map((e, n) => /* @__PURE__ */ I("div", { children: [e.showGroup && /* @__PURE__ */ F("div", {
|
|
1339
1339
|
className: "command-group-label",
|
|
1340
1340
|
children: e.group
|
|
1341
|
-
}), /* @__PURE__ */
|
|
1341
|
+
}), /* @__PURE__ */ I("div", {
|
|
1342
1342
|
className: `dropdown-item ${n === u ? "active" : ""}`,
|
|
1343
1343
|
onClick: () => {
|
|
1344
1344
|
r?.(e), t?.();
|
|
1345
1345
|
},
|
|
1346
1346
|
onMouseEnter: () => d(n),
|
|
1347
1347
|
children: [
|
|
1348
|
-
e.icon && /* @__PURE__ */
|
|
1348
|
+
e.icon && /* @__PURE__ */ F("span", {
|
|
1349
1349
|
className: "dropdown-item-icon",
|
|
1350
1350
|
children: e.icon
|
|
1351
1351
|
}),
|
|
1352
1352
|
e.label,
|
|
1353
|
-
e.shortcut && /* @__PURE__ */
|
|
1353
|
+
e.shortcut && /* @__PURE__ */ F("span", {
|
|
1354
1354
|
className: "dropdown-shortcut",
|
|
1355
1355
|
children: e.shortcut
|
|
1356
1356
|
})
|
|
1357
1357
|
]
|
|
1358
|
-
})] }, e.id || n)), p.length === 0 && /* @__PURE__ */
|
|
1358
|
+
})] }, e.id || n)), p.length === 0 && /* @__PURE__ */ F("div", {
|
|
1359
1359
|
style: {
|
|
1360
1360
|
padding: "var(--space-4)",
|
|
1361
1361
|
textAlign: "center",
|
|
@@ -1379,26 +1379,26 @@ function ct({ columns: e, data: t, onRowClick: n, className: r = "" }) {
|
|
|
1379
1379
|
let n = e[i], r = t[i], a = typeof n == "number" ? n - r : String(n).localeCompare(String(r));
|
|
1380
1380
|
return o === "asc" ? a : -a;
|
|
1381
1381
|
}) : t;
|
|
1382
|
-
return /* @__PURE__ */
|
|
1382
|
+
return /* @__PURE__ */ F("div", {
|
|
1383
1383
|
className: `table-wrapper ${r}`,
|
|
1384
|
-
children: /* @__PURE__ */
|
|
1384
|
+
children: /* @__PURE__ */ I("table", { children: [/* @__PURE__ */ F("thead", { children: /* @__PURE__ */ F("tr", { children: e.map((e) => /* @__PURE__ */ F("th", {
|
|
1385
1385
|
onClick: () => e.sortable !== !1 && c(e.key),
|
|
1386
1386
|
style: {
|
|
1387
1387
|
cursor: e.sortable === !1 ? "default" : "pointer",
|
|
1388
1388
|
width: e.width
|
|
1389
1389
|
},
|
|
1390
|
-
children: /* @__PURE__ */
|
|
1390
|
+
children: /* @__PURE__ */ I("span", {
|
|
1391
1391
|
className: "th-content",
|
|
1392
|
-
children: [e.label, e.sortable !== !1 && /* @__PURE__ */
|
|
1392
|
+
children: [e.label, e.sortable !== !1 && /* @__PURE__ */ F("span", {
|
|
1393
1393
|
className: "th-sort-icon",
|
|
1394
|
-
children: i === e.key ?
|
|
1394
|
+
children: i === e.key ? F(o === "asc" ? y : _, { size: 12 }) : /* @__PURE__ */ F(b, { size: 12 })
|
|
1395
1395
|
})]
|
|
1396
1396
|
})
|
|
1397
|
-
}, e.key)) }) }), /* @__PURE__ */
|
|
1397
|
+
}, e.key)) }) }), /* @__PURE__ */ I("tbody", { children: [u.map((t, r) => /* @__PURE__ */ F("tr", {
|
|
1398
1398
|
onClick: () => n?.(t),
|
|
1399
1399
|
style: { cursor: n ? "pointer" : "default" },
|
|
1400
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1401
|
-
}, t.id || r)), u.length === 0 && /* @__PURE__ */
|
|
1400
|
+
children: e.map((e) => /* @__PURE__ */ F("td", { children: e.render ? e.render(t[e.key], t) : t[e.key] }, e.key))
|
|
1401
|
+
}, t.id || r)), u.length === 0 && /* @__PURE__ */ F("tr", { children: /* @__PURE__ */ F("td", {
|
|
1402
1402
|
colSpan: e.length,
|
|
1403
1403
|
style: {
|
|
1404
1404
|
textAlign: "center",
|
|
@@ -1413,42 +1413,42 @@ function ct({ columns: e, data: t, onRowClick: n, className: r = "" }) {
|
|
|
1413
1413
|
//#region src/components/data/FilterBar.jsx
|
|
1414
1414
|
function lt({ searchValue: e = "", onSearchChange: t, filters: n = [], onClearAll: r, children: i, className: a = "" }) {
|
|
1415
1415
|
let o = n.some((e) => e.active);
|
|
1416
|
-
return /* @__PURE__ */
|
|
1416
|
+
return /* @__PURE__ */ I("div", {
|
|
1417
1417
|
className: `filter-bar ${a}`,
|
|
1418
1418
|
children: [
|
|
1419
|
-
/* @__PURE__ */
|
|
1419
|
+
/* @__PURE__ */ I("div", {
|
|
1420
1420
|
className: "filter-bar-search",
|
|
1421
1421
|
children: [
|
|
1422
|
-
/* @__PURE__ */
|
|
1423
|
-
/* @__PURE__ */
|
|
1422
|
+
/* @__PURE__ */ F(j, { size: 14 }),
|
|
1423
|
+
/* @__PURE__ */ F("input", {
|
|
1424
1424
|
className: "filter-bar-input",
|
|
1425
1425
|
value: e,
|
|
1426
1426
|
onChange: (e) => t?.(e.target.value),
|
|
1427
1427
|
placeholder: "Search..."
|
|
1428
1428
|
}),
|
|
1429
|
-
e && /* @__PURE__ */
|
|
1429
|
+
e && /* @__PURE__ */ F("button", {
|
|
1430
1430
|
className: "filter-bar-clear",
|
|
1431
1431
|
onClick: () => t?.(""),
|
|
1432
|
-
children: /* @__PURE__ */
|
|
1432
|
+
children: /* @__PURE__ */ F(P, { size: 12 })
|
|
1433
1433
|
})
|
|
1434
1434
|
]
|
|
1435
1435
|
}),
|
|
1436
|
-
/* @__PURE__ */
|
|
1436
|
+
/* @__PURE__ */ I("div", {
|
|
1437
1437
|
className: "filter-bar-filters",
|
|
1438
1438
|
children: [
|
|
1439
|
-
/* @__PURE__ */
|
|
1439
|
+
/* @__PURE__ */ F(C, {
|
|
1440
1440
|
size: 14,
|
|
1441
1441
|
style: { color: "var(--text-tertiary)" }
|
|
1442
1442
|
}),
|
|
1443
|
-
n.map((e) => /* @__PURE__ */
|
|
1443
|
+
n.map((e) => /* @__PURE__ */ I("button", {
|
|
1444
1444
|
className: `filter-chip ${e.active ? "active" : ""}`,
|
|
1445
1445
|
onClick: e.onClick,
|
|
1446
|
-
children: [e.label, e.active && e.value && /* @__PURE__ */
|
|
1446
|
+
children: [e.label, e.active && e.value && /* @__PURE__ */ F("span", {
|
|
1447
1447
|
className: "filter-chip-value",
|
|
1448
1448
|
children: e.value
|
|
1449
1449
|
})]
|
|
1450
1450
|
}, e.label)),
|
|
1451
|
-
o && r && /* @__PURE__ */
|
|
1451
|
+
o && r && /* @__PURE__ */ F("button", {
|
|
1452
1452
|
className: "filter-bar-clear-all",
|
|
1453
1453
|
onClick: r,
|
|
1454
1454
|
children: "Clear all"
|
|
@@ -1465,36 +1465,36 @@ function Q(...e) {
|
|
|
1465
1465
|
return e.filter(Boolean).join(" ");
|
|
1466
1466
|
}
|
|
1467
1467
|
function ut({ children: e, className: t = "", style: n }) {
|
|
1468
|
-
return /* @__PURE__ */
|
|
1468
|
+
return /* @__PURE__ */ F("div", {
|
|
1469
1469
|
className: Q("kanban-board", t),
|
|
1470
1470
|
style: n,
|
|
1471
1471
|
children: e
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
1474
1474
|
function dt({ title: e, count: t, color: n, headerAction: r = null, countVariant: i = "pill", children: a, className: o = "", style: s, headerClassName: c = "", headerStyle: l, countClassName: u = "", bodyClassName: d = "", bodyStyle: f }) {
|
|
1475
|
-
return /* @__PURE__ */
|
|
1475
|
+
return /* @__PURE__ */ I("div", {
|
|
1476
1476
|
className: Q("kanban-column", o),
|
|
1477
1477
|
style: s,
|
|
1478
|
-
children: [/* @__PURE__ */
|
|
1478
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1479
1479
|
className: Q("kanban-column-header", c),
|
|
1480
1480
|
style: l,
|
|
1481
|
-
children: [/* @__PURE__ */
|
|
1481
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1482
1482
|
className: "kanban-column-title",
|
|
1483
|
-
children: [n && /* @__PURE__ */
|
|
1483
|
+
children: [n && /* @__PURE__ */ F("span", {
|
|
1484
1484
|
className: "kanban-column-dot",
|
|
1485
1485
|
style: { background: n }
|
|
1486
|
-
}), /* @__PURE__ */
|
|
1487
|
-
}), (t != null || r) && /* @__PURE__ */
|
|
1486
|
+
}), /* @__PURE__ */ F("span", { children: e })]
|
|
1487
|
+
}), (t != null || r) && /* @__PURE__ */ I("div", {
|
|
1488
1488
|
className: "kanban-column-header-meta",
|
|
1489
|
-
children: [t != null && /* @__PURE__ */
|
|
1489
|
+
children: [t != null && /* @__PURE__ */ F("span", {
|
|
1490
1490
|
className: Q("kanban-column-count", i === "inline" ? "kanban-column-count--inline" : "", u),
|
|
1491
1491
|
children: t
|
|
1492
|
-
}), r && /* @__PURE__ */
|
|
1492
|
+
}), r && /* @__PURE__ */ F("div", {
|
|
1493
1493
|
className: "kanban-column-header-action",
|
|
1494
1494
|
children: r
|
|
1495
1495
|
})]
|
|
1496
1496
|
})]
|
|
1497
|
-
}), /* @__PURE__ */
|
|
1497
|
+
}), /* @__PURE__ */ F("div", {
|
|
1498
1498
|
className: Q("kanban-column-body", d),
|
|
1499
1499
|
style: f,
|
|
1500
1500
|
children: a
|
|
@@ -1503,29 +1503,29 @@ function dt({ title: e, count: t, color: n, headerAction: r = null, countVariant
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function ft({ title: e, subtitle: t, badges: n, avatar: r, footer: i, footerEnd: a, children: o, onClick: s, className: c = "", style: l }) {
|
|
1505
1505
|
let u = a ?? r;
|
|
1506
|
-
return /* @__PURE__ */
|
|
1506
|
+
return /* @__PURE__ */ F("div", {
|
|
1507
1507
|
className: Q("kanban-card", c),
|
|
1508
1508
|
onClick: s,
|
|
1509
1509
|
style: l,
|
|
1510
|
-
children: o || /* @__PURE__ */
|
|
1510
|
+
children: o || /* @__PURE__ */ I(ne, { children: [/* @__PURE__ */ I("div", {
|
|
1511
1511
|
className: "kanban-card-body",
|
|
1512
1512
|
children: [
|
|
1513
|
-
e && /* @__PURE__ */
|
|
1513
|
+
e && /* @__PURE__ */ F("div", {
|
|
1514
1514
|
className: "kanban-card-title",
|
|
1515
1515
|
children: e
|
|
1516
1516
|
}),
|
|
1517
|
-
t && /* @__PURE__ */
|
|
1517
|
+
t && /* @__PURE__ */ F("div", {
|
|
1518
1518
|
className: "kanban-card-subtitle",
|
|
1519
1519
|
children: t
|
|
1520
1520
|
}),
|
|
1521
|
-
n && /* @__PURE__ */
|
|
1521
|
+
n && /* @__PURE__ */ F("div", {
|
|
1522
1522
|
className: "kanban-card-badges",
|
|
1523
1523
|
children: n
|
|
1524
1524
|
})
|
|
1525
1525
|
]
|
|
1526
|
-
}), (u || i) && /* @__PURE__ */
|
|
1526
|
+
}), (u || i) && /* @__PURE__ */ I("div", {
|
|
1527
1527
|
className: "kanban-card-footer",
|
|
1528
|
-
children: [i && /* @__PURE__ */
|
|
1528
|
+
children: [i && /* @__PURE__ */ F("div", {
|
|
1529
1529
|
className: "kanban-card-footer-text",
|
|
1530
1530
|
children: i
|
|
1531
1531
|
}), u]
|
|
@@ -1538,7 +1538,7 @@ function $(...e) {
|
|
|
1538
1538
|
return e.filter(Boolean).join(" ");
|
|
1539
1539
|
}
|
|
1540
1540
|
function pt({ children: e, className: t = "" }) {
|
|
1541
|
-
return /* @__PURE__ */
|
|
1541
|
+
return /* @__PURE__ */ F("div", {
|
|
1542
1542
|
className: $("table-board", t),
|
|
1543
1543
|
children: e
|
|
1544
1544
|
});
|
|
@@ -1549,60 +1549,60 @@ function mt({ title: e, count: t, accentColor: n, open: r, defaultOpen: i = !0,
|
|
|
1549
1549
|
let e = !f;
|
|
1550
1550
|
d || u(e), a?.(e);
|
|
1551
1551
|
}
|
|
1552
|
-
return /* @__PURE__ */
|
|
1552
|
+
return /* @__PURE__ */ I("section", {
|
|
1553
1553
|
className: $("table-board-group", s),
|
|
1554
1554
|
style: n ? { "--table-board-group-accent-color": n } : void 0,
|
|
1555
|
-
children: [/* @__PURE__ */
|
|
1555
|
+
children: [/* @__PURE__ */ I("button", {
|
|
1556
1556
|
type: "button",
|
|
1557
1557
|
className: "table-board-group-header",
|
|
1558
1558
|
onClick: p,
|
|
1559
1559
|
"aria-expanded": f,
|
|
1560
1560
|
children: [
|
|
1561
|
-
/* @__PURE__ */
|
|
1561
|
+
/* @__PURE__ */ F("span", {
|
|
1562
1562
|
className: $("table-board-group-chevron", !f && "collapsed"),
|
|
1563
|
-
children: /* @__PURE__ */
|
|
1563
|
+
children: /* @__PURE__ */ F(_, { size: 12 })
|
|
1564
1564
|
}),
|
|
1565
|
-
/* @__PURE__ */
|
|
1565
|
+
/* @__PURE__ */ F("span", {
|
|
1566
1566
|
className: "table-board-group-label",
|
|
1567
1567
|
children: e
|
|
1568
1568
|
}),
|
|
1569
|
-
t != null && /* @__PURE__ */
|
|
1569
|
+
t != null && /* @__PURE__ */ F("span", {
|
|
1570
1570
|
className: "table-board-group-count",
|
|
1571
1571
|
children: t
|
|
1572
1572
|
})
|
|
1573
1573
|
]
|
|
1574
|
-
}), /* @__PURE__ */
|
|
1574
|
+
}), /* @__PURE__ */ F("div", {
|
|
1575
1575
|
className: $("table-board-group-panel", f && "open"),
|
|
1576
|
-
children: /* @__PURE__ */
|
|
1576
|
+
children: /* @__PURE__ */ F("div", {
|
|
1577
1577
|
className: "table-board-group-panel-inner",
|
|
1578
1578
|
children: o
|
|
1579
1579
|
})
|
|
1580
1580
|
})]
|
|
1581
1581
|
});
|
|
1582
1582
|
}
|
|
1583
|
-
function ht({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title: r, subtitle: i,
|
|
1584
|
-
let
|
|
1585
|
-
...
|
|
1586
|
-
...
|
|
1587
|
-
label: `+${
|
|
1583
|
+
function ht({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title: r, subtitle: i, subtitleInline: a = !1, pills: s = [], maxVisibleLeadingPills: u, pinnedTrailingPillsCount: d = 0, metric: f, showMetricIcon: p = !0, avatar: m, avatarImageUrl: h, avatarLabel: g, avatarName: _, avatarStyle: v, meta: y, onClick: b, className: S = "" }) {
|
|
1584
|
+
let C = typeof b == "function", w = c(null), [ee, T] = l(!1), E = Array.isArray(s) ? s : [], D = Math.max(0, Math.min(d, E.length)), O = D > 0 ? E.slice(0, -D) : E, k = D > 0 ? E.slice(-D) : [], A = typeof u == "number" && u >= 0 ? O.slice(0, u) : O, j = Math.max(0, O.length - A.length), M = [
|
|
1585
|
+
...A,
|
|
1586
|
+
...j > 0 ? [{
|
|
1587
|
+
label: `+${j}`,
|
|
1588
1588
|
color: "var(--text-quaternary)"
|
|
1589
1589
|
}] : [],
|
|
1590
|
-
...
|
|
1590
|
+
...k
|
|
1591
1591
|
];
|
|
1592
|
-
function
|
|
1593
|
-
|
|
1592
|
+
function te(e) {
|
|
1593
|
+
C && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), b());
|
|
1594
1594
|
}
|
|
1595
|
-
let N =
|
|
1596
|
-
imageUrl:
|
|
1597
|
-
initials:
|
|
1595
|
+
let N = _ || y || g, P = m || (h || g || N ? /* @__PURE__ */ F(X, {
|
|
1596
|
+
imageUrl: h,
|
|
1597
|
+
initials: g,
|
|
1598
1598
|
name: N,
|
|
1599
1599
|
size: "sm",
|
|
1600
1600
|
className: "table-board-avatar",
|
|
1601
|
-
style:
|
|
1601
|
+
style: v || (h ? void 0 : { background: "var(--accent-blue)" })
|
|
1602
1602
|
}) : null);
|
|
1603
1603
|
return o(() => {
|
|
1604
|
-
let e =
|
|
1605
|
-
if (!e ||
|
|
1604
|
+
let e = w.current;
|
|
1605
|
+
if (!e || M.length === 0) {
|
|
1606
1606
|
T(!1);
|
|
1607
1607
|
return;
|
|
1608
1608
|
}
|
|
@@ -1617,62 +1617,62 @@ function ht({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title
|
|
|
1617
1617
|
}
|
|
1618
1618
|
return window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
1619
1619
|
}, [
|
|
1620
|
-
|
|
1621
|
-
a,
|
|
1620
|
+
M.length,
|
|
1622
1621
|
s,
|
|
1623
|
-
u
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1622
|
+
u,
|
|
1623
|
+
d
|
|
1624
|
+
]), /* @__PURE__ */ I("div", {
|
|
1625
|
+
className: $("table-board-row", C && "clickable", S),
|
|
1626
|
+
onClick: b,
|
|
1627
|
+
onKeyDown: te,
|
|
1628
|
+
role: C ? "button" : void 0,
|
|
1629
|
+
tabIndex: C ? 0 : void 0,
|
|
1630
1630
|
children: [
|
|
1631
|
-
/* @__PURE__ */
|
|
1631
|
+
/* @__PURE__ */ F("span", {
|
|
1632
1632
|
className: "table-board-priority",
|
|
1633
1633
|
children: e
|
|
1634
1634
|
}),
|
|
1635
|
-
t && /* @__PURE__ */
|
|
1635
|
+
t && /* @__PURE__ */ F("span", {
|
|
1636
1636
|
className: "table-board-id",
|
|
1637
1637
|
children: t
|
|
1638
1638
|
}),
|
|
1639
|
-
/* @__PURE__ */
|
|
1639
|
+
/* @__PURE__ */ F("span", {
|
|
1640
1640
|
className: "table-board-status",
|
|
1641
|
-
children: /* @__PURE__ */
|
|
1641
|
+
children: /* @__PURE__ */ F("span", {
|
|
1642
1642
|
className: "table-board-status-dot",
|
|
1643
1643
|
style: { background: n }
|
|
1644
1644
|
})
|
|
1645
1645
|
}),
|
|
1646
|
-
/* @__PURE__ */
|
|
1647
|
-
className: "table-board-title-block",
|
|
1648
|
-
children: [/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ I("span", {
|
|
1647
|
+
className: $("table-board-title-block", a && "inline-subtitle"),
|
|
1648
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1649
1649
|
className: "table-board-title",
|
|
1650
1650
|
children: r
|
|
1651
|
-
}), i != null && i !== "" && /* @__PURE__ */
|
|
1652
|
-
className: "table-board-subtitle",
|
|
1651
|
+
}), i != null && i !== "" && /* @__PURE__ */ F("span", {
|
|
1652
|
+
className: $("table-board-subtitle", a && "inline"),
|
|
1653
1653
|
children: i
|
|
1654
1654
|
})]
|
|
1655
1655
|
}),
|
|
1656
|
-
/* @__PURE__ */
|
|
1657
|
-
|
|
1658
|
-
ref:
|
|
1659
|
-
className: $("table-board-pills",
|
|
1660
|
-
children:
|
|
1656
|
+
/* @__PURE__ */ F("span", { className: "table-board-spacer" }),
|
|
1657
|
+
M.length > 0 && /* @__PURE__ */ F("span", {
|
|
1658
|
+
ref: w,
|
|
1659
|
+
className: $("table-board-pills", ee && "has-overflow"),
|
|
1660
|
+
children: M.map((e, t) => /* @__PURE__ */ I("span", {
|
|
1661
1661
|
className: "table-board-pill",
|
|
1662
|
-
children: [/* @__PURE__ */
|
|
1662
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1663
1663
|
className: "table-board-pill-dot",
|
|
1664
1664
|
style: { background: e.color || "var(--text-quaternary)" }
|
|
1665
1665
|
}), e.label]
|
|
1666
1666
|
}, `${e.label}-${t}`))
|
|
1667
1667
|
}),
|
|
1668
|
-
|
|
1668
|
+
f != null && /* @__PURE__ */ I("span", {
|
|
1669
1669
|
className: "table-board-metric",
|
|
1670
|
-
children: [
|
|
1670
|
+
children: [p && /* @__PURE__ */ F(x, { size: 12 }), f]
|
|
1671
1671
|
}),
|
|
1672
1672
|
P,
|
|
1673
|
-
|
|
1673
|
+
y && /* @__PURE__ */ F("span", {
|
|
1674
1674
|
className: "table-board-meta",
|
|
1675
|
-
children:
|
|
1675
|
+
children: y
|
|
1676
1676
|
})
|
|
1677
1677
|
]
|
|
1678
1678
|
});
|
|
@@ -1684,35 +1684,35 @@ function gt({ title: e, value: t, change: n, changeLabel: r, trend: i = "neutral
|
|
|
1684
1684
|
up: "var(--accent-green)",
|
|
1685
1685
|
down: "var(--accent-red)",
|
|
1686
1686
|
neutral: "var(--text-tertiary)"
|
|
1687
|
-
}, c = i === "up" ?
|
|
1688
|
-
return /* @__PURE__ */
|
|
1687
|
+
}, c = i === "up" ? N : i === "down" ? te : k;
|
|
1688
|
+
return /* @__PURE__ */ I("div", {
|
|
1689
1689
|
className: `kpi-card ${o}`,
|
|
1690
1690
|
children: [
|
|
1691
|
-
/* @__PURE__ */
|
|
1691
|
+
/* @__PURE__ */ I("div", {
|
|
1692
1692
|
className: "kpi-header",
|
|
1693
|
-
children: [/* @__PURE__ */
|
|
1693
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1694
1694
|
className: "kpi-title",
|
|
1695
1695
|
children: e
|
|
1696
|
-
}), a && /* @__PURE__ */
|
|
1696
|
+
}), a && /* @__PURE__ */ F("span", {
|
|
1697
1697
|
className: "kpi-icon",
|
|
1698
1698
|
children: a
|
|
1699
1699
|
})]
|
|
1700
1700
|
}),
|
|
1701
|
-
/* @__PURE__ */
|
|
1701
|
+
/* @__PURE__ */ F("div", {
|
|
1702
1702
|
className: "kpi-value",
|
|
1703
1703
|
children: t
|
|
1704
1704
|
}),
|
|
1705
|
-
(n !== void 0 || r) && /* @__PURE__ */
|
|
1705
|
+
(n !== void 0 || r) && /* @__PURE__ */ I("div", {
|
|
1706
1706
|
className: "kpi-footer",
|
|
1707
|
-
children: [/* @__PURE__ */
|
|
1707
|
+
children: [/* @__PURE__ */ I("span", {
|
|
1708
1708
|
className: "kpi-trend",
|
|
1709
1709
|
style: { color: s[i] },
|
|
1710
|
-
children: [/* @__PURE__ */
|
|
1710
|
+
children: [/* @__PURE__ */ F(c, { size: 12 }), n !== void 0 && /* @__PURE__ */ I("span", { children: [
|
|
1711
1711
|
n > 0 ? "+" : "",
|
|
1712
1712
|
n,
|
|
1713
1713
|
"%"
|
|
1714
1714
|
] })]
|
|
1715
|
-
}), r && /* @__PURE__ */
|
|
1715
|
+
}), r && /* @__PURE__ */ F("span", {
|
|
1716
1716
|
className: "kpi-change-label",
|
|
1717
1717
|
children: r
|
|
1718
1718
|
})]
|
|
@@ -1721,23 +1721,23 @@ function gt({ title: e, value: t, change: n, changeLabel: r, trend: i = "neutral
|
|
|
1721
1721
|
});
|
|
1722
1722
|
}
|
|
1723
1723
|
function _t({ label: e, value: t, subtitle: n, color: r, className: i = "" }) {
|
|
1724
|
-
return /* @__PURE__ */
|
|
1724
|
+
return /* @__PURE__ */ I("div", {
|
|
1725
1725
|
className: `stat-card ${i}`,
|
|
1726
|
-
children: [r && /* @__PURE__ */
|
|
1726
|
+
children: [r && /* @__PURE__ */ F("div", {
|
|
1727
1727
|
className: "stat-card-accent",
|
|
1728
1728
|
style: { background: r }
|
|
1729
|
-
}), /* @__PURE__ */
|
|
1729
|
+
}), /* @__PURE__ */ I("div", {
|
|
1730
1730
|
className: "stat-card-content",
|
|
1731
1731
|
children: [
|
|
1732
|
-
/* @__PURE__ */
|
|
1732
|
+
/* @__PURE__ */ F("span", {
|
|
1733
1733
|
className: "stat-card-label",
|
|
1734
1734
|
children: e
|
|
1735
1735
|
}),
|
|
1736
|
-
/* @__PURE__ */
|
|
1736
|
+
/* @__PURE__ */ F("span", {
|
|
1737
1737
|
className: "stat-card-value",
|
|
1738
1738
|
children: t
|
|
1739
1739
|
}),
|
|
1740
|
-
n && /* @__PURE__ */
|
|
1740
|
+
n && /* @__PURE__ */ F("span", {
|
|
1741
1741
|
className: "stat-card-subtitle",
|
|
1742
1742
|
children: n
|
|
1743
1743
|
})
|
|
@@ -1749,54 +1749,54 @@ function _t({ label: e, value: t, subtitle: n, color: r, className: i = "" }) {
|
|
|
1749
1749
|
//#region src/components/data/NotificationsPanel.jsx
|
|
1750
1750
|
function vt({ notifications: e = [], onMarkRead: t, onMarkAllRead: n, className: r = "" }) {
|
|
1751
1751
|
let i = e.filter((e) => !e.read);
|
|
1752
|
-
return /* @__PURE__ */
|
|
1752
|
+
return /* @__PURE__ */ I("div", {
|
|
1753
1753
|
className: `notifications-panel ${r}`,
|
|
1754
|
-
children: [/* @__PURE__ */
|
|
1754
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1755
1755
|
className: "notifications-header",
|
|
1756
|
-
children: [/* @__PURE__ */
|
|
1756
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1757
1757
|
className: "notifications-title",
|
|
1758
1758
|
children: [
|
|
1759
|
-
/* @__PURE__ */
|
|
1760
|
-
/* @__PURE__ */
|
|
1761
|
-
i.length > 0 && /* @__PURE__ */
|
|
1759
|
+
/* @__PURE__ */ F(f, { size: 16 }),
|
|
1760
|
+
/* @__PURE__ */ F("span", { children: "Notifications" }),
|
|
1761
|
+
i.length > 0 && /* @__PURE__ */ F("span", {
|
|
1762
1762
|
className: "badge badge-purple",
|
|
1763
1763
|
style: { marginLeft: "var(--space-1)" },
|
|
1764
1764
|
children: i.length
|
|
1765
1765
|
})
|
|
1766
1766
|
]
|
|
1767
|
-
}), i.length > 0 && /* @__PURE__ */
|
|
1767
|
+
}), i.length > 0 && /* @__PURE__ */ I("button", {
|
|
1768
1768
|
className: "btn btn-ghost btn-sm",
|
|
1769
1769
|
onClick: n,
|
|
1770
|
-
children: [/* @__PURE__ */
|
|
1770
|
+
children: [/* @__PURE__ */ F(h, { size: 14 }), " Mark all read"]
|
|
1771
1771
|
})]
|
|
1772
|
-
}), /* @__PURE__ */
|
|
1772
|
+
}), /* @__PURE__ */ I("div", {
|
|
1773
1773
|
className: "notifications-list",
|
|
1774
|
-
children: [e.length === 0 && /* @__PURE__ */
|
|
1774
|
+
children: [e.length === 0 && /* @__PURE__ */ F("div", {
|
|
1775
1775
|
className: "notifications-empty",
|
|
1776
1776
|
children: "No notifications"
|
|
1777
|
-
}), e.map((e) => /* @__PURE__ */
|
|
1777
|
+
}), e.map((e) => /* @__PURE__ */ I("div", {
|
|
1778
1778
|
className: `notification-item ${e.read ? "" : "unread"}`,
|
|
1779
1779
|
onClick: () => !e.read && t?.(e.id),
|
|
1780
1780
|
children: [
|
|
1781
|
-
/* @__PURE__ */
|
|
1781
|
+
/* @__PURE__ */ F(X, {
|
|
1782
1782
|
name: e.user,
|
|
1783
1783
|
size: "sm"
|
|
1784
1784
|
}),
|
|
1785
|
-
/* @__PURE__ */
|
|
1785
|
+
/* @__PURE__ */ I("div", {
|
|
1786
1786
|
className: "notification-content",
|
|
1787
|
-
children: [/* @__PURE__ */
|
|
1787
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1788
1788
|
className: "notification-text",
|
|
1789
1789
|
children: [
|
|
1790
|
-
/* @__PURE__ */
|
|
1790
|
+
/* @__PURE__ */ F("strong", { children: e.user }),
|
|
1791
1791
|
" ",
|
|
1792
1792
|
e.text
|
|
1793
1793
|
]
|
|
1794
|
-
}), /* @__PURE__ */
|
|
1794
|
+
}), /* @__PURE__ */ F("span", {
|
|
1795
1795
|
className: "notification-time",
|
|
1796
1796
|
children: e.time
|
|
1797
1797
|
})]
|
|
1798
1798
|
}),
|
|
1799
|
-
!e.read && /* @__PURE__ */
|
|
1799
|
+
!e.read && /* @__PURE__ */ F("div", { className: "notification-dot" })
|
|
1800
1800
|
]
|
|
1801
1801
|
}, e.id))]
|
|
1802
1802
|
})]
|
|
@@ -1805,28 +1805,28 @@ function vt({ notifications: e = [], onMarkRead: t, onMarkAllRead: n, className:
|
|
|
1805
1805
|
//#endregion
|
|
1806
1806
|
//#region src/components/Icons.jsx
|
|
1807
1807
|
function yt() {
|
|
1808
|
-
return /* @__PURE__ */
|
|
1808
|
+
return /* @__PURE__ */ F("svg", {
|
|
1809
1809
|
width: "16",
|
|
1810
1810
|
height: "16",
|
|
1811
1811
|
viewBox: "0 0 16 16",
|
|
1812
1812
|
fill: "currentColor",
|
|
1813
|
-
children: /* @__PURE__ */
|
|
1813
|
+
children: /* @__PURE__ */ F("path", { d: "M2 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6.5l-2.5-2.5a.5.5 0 0 0-.354-.146H8.5a.5.5 0 0 0-.5.5v2.793L6.854 9.001a.5.5 0 0 0-.708 0L2 13.147V3Zm12 8.207V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-.44l4.5-4.5L8.146 9.707a.5.5 0 0 0 .708 0L11.5 7.06l2.5 2.5V11.207Z" })
|
|
1814
1814
|
});
|
|
1815
1815
|
}
|
|
1816
1816
|
function bt() {
|
|
1817
|
-
return /* @__PURE__ */
|
|
1817
|
+
return /* @__PURE__ */ I("svg", {
|
|
1818
1818
|
width: "16",
|
|
1819
1819
|
height: "16",
|
|
1820
1820
|
viewBox: "0 0 16 16",
|
|
1821
1821
|
fill: "currentColor",
|
|
1822
|
-
children: [/* @__PURE__ */
|
|
1822
|
+
children: [/* @__PURE__ */ F("circle", {
|
|
1823
1823
|
cx: "8",
|
|
1824
1824
|
cy: "8",
|
|
1825
1825
|
r: "6",
|
|
1826
1826
|
fill: "none",
|
|
1827
1827
|
stroke: "currentColor",
|
|
1828
1828
|
strokeWidth: "1.5"
|
|
1829
|
-
}), /* @__PURE__ */
|
|
1829
|
+
}), /* @__PURE__ */ F("circle", {
|
|
1830
1830
|
cx: "8",
|
|
1831
1831
|
cy: "8",
|
|
1832
1832
|
r: "2"
|
|
@@ -1834,16 +1834,16 @@ function bt() {
|
|
|
1834
1834
|
});
|
|
1835
1835
|
}
|
|
1836
1836
|
function xt() {
|
|
1837
|
-
return /* @__PURE__ */
|
|
1837
|
+
return /* @__PURE__ */ F("svg", {
|
|
1838
1838
|
width: "16",
|
|
1839
1839
|
height: "16",
|
|
1840
1840
|
viewBox: "0 0 16 16",
|
|
1841
1841
|
fill: "currentColor",
|
|
1842
|
-
children: /* @__PURE__ */
|
|
1842
|
+
children: /* @__PURE__ */ F("path", { d: "M8 1l2.2 4.4L15 6.3l-3.5 3.4.8 4.9L8 12.4 3.7 14.6l.8-4.9L1 6.3l4.8-.9L8 1Z" })
|
|
1843
1843
|
});
|
|
1844
1844
|
}
|
|
1845
1845
|
function St() {
|
|
1846
|
-
return /* @__PURE__ */
|
|
1846
|
+
return /* @__PURE__ */ F("svg", {
|
|
1847
1847
|
width: "16",
|
|
1848
1848
|
height: "16",
|
|
1849
1849
|
viewBox: "0 0 16 16",
|
|
@@ -1852,45 +1852,45 @@ function St() {
|
|
|
1852
1852
|
strokeWidth: "1.5",
|
|
1853
1853
|
strokeLinecap: "round",
|
|
1854
1854
|
strokeLinejoin: "round",
|
|
1855
|
-
children: /* @__PURE__ */
|
|
1855
|
+
children: /* @__PURE__ */ F("path", { d: "M1 8h3l2-5 2 10 2-5h3" })
|
|
1856
1856
|
});
|
|
1857
1857
|
}
|
|
1858
1858
|
function Ct() {
|
|
1859
|
-
return /* @__PURE__ */
|
|
1859
|
+
return /* @__PURE__ */ F("svg", {
|
|
1860
1860
|
width: "16",
|
|
1861
1861
|
height: "16",
|
|
1862
1862
|
viewBox: "0 0 16 16",
|
|
1863
1863
|
fill: "currentColor",
|
|
1864
|
-
children: /* @__PURE__ */
|
|
1864
|
+
children: /* @__PURE__ */ F("path", { d: "M3 2h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm1 3v2h8V5H4Zm0 4v2h5V9H4Z" })
|
|
1865
1865
|
});
|
|
1866
1866
|
}
|
|
1867
1867
|
function wt() {
|
|
1868
|
-
return /* @__PURE__ */
|
|
1868
|
+
return /* @__PURE__ */ F("svg", {
|
|
1869
1869
|
width: "16",
|
|
1870
1870
|
height: "16",
|
|
1871
1871
|
viewBox: "0 0 16 16",
|
|
1872
1872
|
fill: "currentColor",
|
|
1873
|
-
children: /* @__PURE__ */
|
|
1873
|
+
children: /* @__PURE__ */ F("path", { d: "M2 3.5A1.5 1.5 0 0 1 3.5 2h3.379a1.5 1.5 0 0 1 1.06.44l.622.62A1.5 1.5 0 0 0 9.622 3.5H12.5A1.5 1.5 0 0 1 14 5v7.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 12.5v-9Z" })
|
|
1874
1874
|
});
|
|
1875
1875
|
}
|
|
1876
1876
|
function Tt() {
|
|
1877
|
-
return /* @__PURE__ */
|
|
1877
|
+
return /* @__PURE__ */ I("svg", {
|
|
1878
1878
|
width: "16",
|
|
1879
1879
|
height: "16",
|
|
1880
1880
|
viewBox: "0 0 16 16",
|
|
1881
1881
|
fill: "currentColor",
|
|
1882
1882
|
children: [
|
|
1883
|
-
/* @__PURE__ */
|
|
1883
|
+
/* @__PURE__ */ F("circle", {
|
|
1884
1884
|
cx: "4",
|
|
1885
1885
|
cy: "8",
|
|
1886
1886
|
r: "1.5"
|
|
1887
1887
|
}),
|
|
1888
|
-
/* @__PURE__ */
|
|
1888
|
+
/* @__PURE__ */ F("circle", {
|
|
1889
1889
|
cx: "8",
|
|
1890
1890
|
cy: "8",
|
|
1891
1891
|
r: "1.5"
|
|
1892
1892
|
}),
|
|
1893
|
-
/* @__PURE__ */
|
|
1893
|
+
/* @__PURE__ */ F("circle", {
|
|
1894
1894
|
cx: "12",
|
|
1895
1895
|
cy: "8",
|
|
1896
1896
|
r: "1.5"
|
|
@@ -1899,25 +1899,25 @@ function Tt() {
|
|
|
1899
1899
|
});
|
|
1900
1900
|
}
|
|
1901
1901
|
function Et() {
|
|
1902
|
-
return /* @__PURE__ */
|
|
1902
|
+
return /* @__PURE__ */ I("svg", {
|
|
1903
1903
|
width: "16",
|
|
1904
1904
|
height: "16",
|
|
1905
1905
|
viewBox: "0 0 16 16",
|
|
1906
1906
|
fill: "none",
|
|
1907
1907
|
stroke: "currentColor",
|
|
1908
1908
|
strokeWidth: "1.5",
|
|
1909
|
-
children: [/* @__PURE__ */
|
|
1909
|
+
children: [/* @__PURE__ */ F("circle", {
|
|
1910
1910
|
cx: "7",
|
|
1911
1911
|
cy: "7",
|
|
1912
1912
|
r: "4.5"
|
|
1913
|
-
}), /* @__PURE__ */
|
|
1913
|
+
}), /* @__PURE__ */ F("path", {
|
|
1914
1914
|
d: "M10.5 10.5L14 14",
|
|
1915
1915
|
strokeLinecap: "round"
|
|
1916
1916
|
})]
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
1919
|
function Dt() {
|
|
1920
|
-
return /* @__PURE__ */
|
|
1920
|
+
return /* @__PURE__ */ F("svg", {
|
|
1921
1921
|
width: "16",
|
|
1922
1922
|
height: "16",
|
|
1923
1923
|
viewBox: "0 0 16 16",
|
|
@@ -1926,11 +1926,11 @@ function Dt() {
|
|
|
1926
1926
|
strokeWidth: "1.5",
|
|
1927
1927
|
strokeLinecap: "round",
|
|
1928
1928
|
strokeLinejoin: "round",
|
|
1929
|
-
children: /* @__PURE__ */
|
|
1929
|
+
children: /* @__PURE__ */ F("path", { d: "M11 2l3 3-8 8H3v-3l8-8Z" })
|
|
1930
1930
|
});
|
|
1931
1931
|
}
|
|
1932
1932
|
function Ot() {
|
|
1933
|
-
return /* @__PURE__ */
|
|
1933
|
+
return /* @__PURE__ */ F("svg", {
|
|
1934
1934
|
width: "14",
|
|
1935
1935
|
height: "14",
|
|
1936
1936
|
viewBox: "0 0 14 14",
|
|
@@ -1939,11 +1939,11 @@ function Ot() {
|
|
|
1939
1939
|
strokeWidth: "1.5",
|
|
1940
1940
|
strokeLinecap: "round",
|
|
1941
1941
|
strokeLinejoin: "round",
|
|
1942
|
-
children: /* @__PURE__ */
|
|
1942
|
+
children: /* @__PURE__ */ F("path", { d: "M3.5 5.5L7 9l3.5-3.5" })
|
|
1943
1943
|
});
|
|
1944
1944
|
}
|
|
1945
1945
|
function kt() {
|
|
1946
|
-
return /* @__PURE__ */
|
|
1946
|
+
return /* @__PURE__ */ F("svg", {
|
|
1947
1947
|
width: "14",
|
|
1948
1948
|
height: "14",
|
|
1949
1949
|
viewBox: "0 0 14 14",
|
|
@@ -1952,24 +1952,24 @@ function kt() {
|
|
|
1952
1952
|
strokeWidth: "1.5",
|
|
1953
1953
|
strokeLinecap: "round",
|
|
1954
1954
|
strokeLinejoin: "round",
|
|
1955
|
-
children: /* @__PURE__ */
|
|
1955
|
+
children: /* @__PURE__ */ F("path", { d: "M3.5 9L7 5.5 10.5 9" })
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
1958
1958
|
function At() {
|
|
1959
|
-
return /* @__PURE__ */
|
|
1959
|
+
return /* @__PURE__ */ F("svg", {
|
|
1960
1960
|
width: "14",
|
|
1961
1961
|
height: "14",
|
|
1962
1962
|
viewBox: "0 0 14 14",
|
|
1963
1963
|
fill: "#c9a84e",
|
|
1964
|
-
children: /* @__PURE__ */
|
|
1964
|
+
children: /* @__PURE__ */ F("path", { d: "M7 1l1.76 3.52L13 5.26l-3 2.94.7 4.13L7 10.4 3.3 12.33l.7-4.13-3-2.94 4.24-.74L7 1Z" })
|
|
1965
1965
|
});
|
|
1966
1966
|
}
|
|
1967
1967
|
function jt() {
|
|
1968
|
-
return /* @__PURE__ */
|
|
1968
|
+
return /* @__PURE__ */ I("svg", {
|
|
1969
1969
|
width: "14",
|
|
1970
1970
|
height: "14",
|
|
1971
1971
|
viewBox: "0 0 14 14",
|
|
1972
|
-
children: [/* @__PURE__ */
|
|
1972
|
+
children: [/* @__PURE__ */ F("circle", {
|
|
1973
1973
|
cx: "7",
|
|
1974
1974
|
cy: "7",
|
|
1975
1975
|
r: "5.5",
|
|
@@ -1977,7 +1977,7 @@ function jt() {
|
|
|
1977
1977
|
stroke: "#c9a84e",
|
|
1978
1978
|
strokeWidth: "1.5",
|
|
1979
1979
|
strokeDasharray: "8.6 2.9"
|
|
1980
|
-
}), /* @__PURE__ */
|
|
1980
|
+
}), /* @__PURE__ */ F("circle", {
|
|
1981
1981
|
cx: "7",
|
|
1982
1982
|
cy: "7",
|
|
1983
1983
|
r: "2",
|
|
@@ -1986,16 +1986,16 @@ function jt() {
|
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
1988
|
function Mt() {
|
|
1989
|
-
return /* @__PURE__ */
|
|
1989
|
+
return /* @__PURE__ */ I("svg", {
|
|
1990
1990
|
width: "14",
|
|
1991
1991
|
height: "14",
|
|
1992
1992
|
viewBox: "0 0 14 14",
|
|
1993
|
-
children: [/* @__PURE__ */
|
|
1993
|
+
children: [/* @__PURE__ */ F("circle", {
|
|
1994
1994
|
cx: "7",
|
|
1995
1995
|
cy: "7",
|
|
1996
1996
|
r: "6",
|
|
1997
1997
|
fill: "#5bb98e"
|
|
1998
|
-
}), /* @__PURE__ */
|
|
1998
|
+
}), /* @__PURE__ */ F("path", {
|
|
1999
1999
|
d: "M4.5 7l2 2 3-3.5",
|
|
2000
2000
|
stroke: "#08090a",
|
|
2001
2001
|
strokeWidth: "1.5",
|
|
@@ -2006,11 +2006,11 @@ function Mt() {
|
|
|
2006
2006
|
});
|
|
2007
2007
|
}
|
|
2008
2008
|
function Nt() {
|
|
2009
|
-
return /* @__PURE__ */
|
|
2009
|
+
return /* @__PURE__ */ F("svg", {
|
|
2010
2010
|
width: "14",
|
|
2011
2011
|
height: "14",
|
|
2012
2012
|
viewBox: "0 0 14 14",
|
|
2013
|
-
children: /* @__PURE__ */
|
|
2013
|
+
children: /* @__PURE__ */ F("circle", {
|
|
2014
2014
|
cx: "7",
|
|
2015
2015
|
cy: "7",
|
|
2016
2016
|
r: "5.5",
|
|
@@ -2021,11 +2021,11 @@ function Nt() {
|
|
|
2021
2021
|
});
|
|
2022
2022
|
}
|
|
2023
2023
|
function Pt() {
|
|
2024
|
-
return /* @__PURE__ */
|
|
2024
|
+
return /* @__PURE__ */ F("svg", {
|
|
2025
2025
|
width: "14",
|
|
2026
2026
|
height: "14",
|
|
2027
2027
|
viewBox: "0 0 14 14",
|
|
2028
|
-
children: /* @__PURE__ */
|
|
2028
|
+
children: /* @__PURE__ */ F("circle", {
|
|
2029
2029
|
cx: "7",
|
|
2030
2030
|
cy: "7",
|
|
2031
2031
|
r: "5.5",
|
|
@@ -2037,18 +2037,18 @@ function Pt() {
|
|
|
2037
2037
|
});
|
|
2038
2038
|
}
|
|
2039
2039
|
function Ft() {
|
|
2040
|
-
return /* @__PURE__ */
|
|
2040
|
+
return /* @__PURE__ */ I("svg", {
|
|
2041
2041
|
width: "14",
|
|
2042
2042
|
height: "14",
|
|
2043
2043
|
viewBox: "0 0 14 14",
|
|
2044
|
-
children: [/* @__PURE__ */
|
|
2044
|
+
children: [/* @__PURE__ */ F("circle", {
|
|
2045
2045
|
cx: "7",
|
|
2046
2046
|
cy: "7",
|
|
2047
2047
|
r: "5.5",
|
|
2048
2048
|
fill: "none",
|
|
2049
2049
|
stroke: "#6b6d71",
|
|
2050
2050
|
strokeWidth: "1.5"
|
|
2051
|
-
}), /* @__PURE__ */
|
|
2051
|
+
}), /* @__PURE__ */ F("path", {
|
|
2052
2052
|
d: "M4.5 7h5",
|
|
2053
2053
|
stroke: "#6b6d71",
|
|
2054
2054
|
strokeWidth: "1.5",
|
|
@@ -2057,36 +2057,36 @@ function Ft() {
|
|
|
2057
2057
|
});
|
|
2058
2058
|
}
|
|
2059
2059
|
function It() {
|
|
2060
|
-
return /* @__PURE__ */
|
|
2060
|
+
return /* @__PURE__ */ F("svg", {
|
|
2061
2061
|
width: "14",
|
|
2062
2062
|
height: "14",
|
|
2063
2063
|
viewBox: "0 0 14 14",
|
|
2064
2064
|
fill: "#c75a5a",
|
|
2065
|
-
children: /* @__PURE__ */
|
|
2065
|
+
children: /* @__PURE__ */ F("path", { d: "M7 1a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V2a1 1 0 0 1 1-1Zm0 10a1.25 1.25 0 1 1 0 2.5A1.25 1.25 0 0 1 7 11Z" })
|
|
2066
2066
|
});
|
|
2067
2067
|
}
|
|
2068
2068
|
function Lt() {
|
|
2069
|
-
return /* @__PURE__ */
|
|
2069
|
+
return /* @__PURE__ */ I("svg", {
|
|
2070
2070
|
width: "14",
|
|
2071
2071
|
height: "14",
|
|
2072
2072
|
viewBox: "0 0 14 14",
|
|
2073
2073
|
fill: "#c4a06a",
|
|
2074
2074
|
children: [
|
|
2075
|
-
/* @__PURE__ */
|
|
2075
|
+
/* @__PURE__ */ F("rect", {
|
|
2076
2076
|
x: "2",
|
|
2077
2077
|
y: "8",
|
|
2078
2078
|
width: "2.5",
|
|
2079
2079
|
height: "4",
|
|
2080
2080
|
rx: "0.5"
|
|
2081
2081
|
}),
|
|
2082
|
-
/* @__PURE__ */
|
|
2082
|
+
/* @__PURE__ */ F("rect", {
|
|
2083
2083
|
x: "5.75",
|
|
2084
2084
|
y: "5",
|
|
2085
2085
|
width: "2.5",
|
|
2086
2086
|
height: "7",
|
|
2087
2087
|
rx: "0.5"
|
|
2088
2088
|
}),
|
|
2089
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ F("rect", {
|
|
2090
2090
|
x: "9.5",
|
|
2091
2091
|
y: "2",
|
|
2092
2092
|
width: "2.5",
|
|
@@ -2097,12 +2097,12 @@ function Lt() {
|
|
|
2097
2097
|
});
|
|
2098
2098
|
}
|
|
2099
2099
|
function Rt() {
|
|
2100
|
-
return /* @__PURE__ */
|
|
2100
|
+
return /* @__PURE__ */ I("svg", {
|
|
2101
2101
|
width: "14",
|
|
2102
2102
|
height: "14",
|
|
2103
2103
|
viewBox: "0 0 14 14",
|
|
2104
2104
|
children: [
|
|
2105
|
-
/* @__PURE__ */
|
|
2105
|
+
/* @__PURE__ */ F("rect", {
|
|
2106
2106
|
x: "2",
|
|
2107
2107
|
y: "8",
|
|
2108
2108
|
width: "2.5",
|
|
@@ -2110,7 +2110,7 @@ function Rt() {
|
|
|
2110
2110
|
rx: "0.5",
|
|
2111
2111
|
fill: "#c9a84e"
|
|
2112
2112
|
}),
|
|
2113
|
-
/* @__PURE__ */
|
|
2113
|
+
/* @__PURE__ */ F("rect", {
|
|
2114
2114
|
x: "5.75",
|
|
2115
2115
|
y: "5",
|
|
2116
2116
|
width: "2.5",
|
|
@@ -2118,7 +2118,7 @@ function Rt() {
|
|
|
2118
2118
|
rx: "0.5",
|
|
2119
2119
|
fill: "#c9a84e"
|
|
2120
2120
|
}),
|
|
2121
|
-
/* @__PURE__ */
|
|
2121
|
+
/* @__PURE__ */ F("rect", {
|
|
2122
2122
|
x: "9.5",
|
|
2123
2123
|
y: "2",
|
|
2124
2124
|
width: "2.5",
|
|
@@ -2130,12 +2130,12 @@ function Rt() {
|
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
2132
|
function zt() {
|
|
2133
|
-
return /* @__PURE__ */
|
|
2133
|
+
return /* @__PURE__ */ I("svg", {
|
|
2134
2134
|
width: "14",
|
|
2135
2135
|
height: "14",
|
|
2136
2136
|
viewBox: "0 0 14 14",
|
|
2137
2137
|
children: [
|
|
2138
|
-
/* @__PURE__ */
|
|
2138
|
+
/* @__PURE__ */ F("rect", {
|
|
2139
2139
|
x: "2",
|
|
2140
2140
|
y: "8",
|
|
2141
2141
|
width: "2.5",
|
|
@@ -2143,7 +2143,7 @@ function zt() {
|
|
|
2143
2143
|
rx: "0.5",
|
|
2144
2144
|
fill: "#5bb98e"
|
|
2145
2145
|
}),
|
|
2146
|
-
/* @__PURE__ */
|
|
2146
|
+
/* @__PURE__ */ F("rect", {
|
|
2147
2147
|
x: "5.75",
|
|
2148
2148
|
y: "5",
|
|
2149
2149
|
width: "2.5",
|
|
@@ -2151,7 +2151,7 @@ function zt() {
|
|
|
2151
2151
|
rx: "0.5",
|
|
2152
2152
|
fill: "#4e5054"
|
|
2153
2153
|
}),
|
|
2154
|
-
/* @__PURE__ */
|
|
2154
|
+
/* @__PURE__ */ F("rect", {
|
|
2155
2155
|
x: "9.5",
|
|
2156
2156
|
y: "2",
|
|
2157
2157
|
width: "2.5",
|
|
@@ -2163,7 +2163,7 @@ function zt() {
|
|
|
2163
2163
|
});
|
|
2164
2164
|
}
|
|
2165
2165
|
function Bt() {
|
|
2166
|
-
return /* @__PURE__ */
|
|
2166
|
+
return /* @__PURE__ */ F("svg", {
|
|
2167
2167
|
width: "14",
|
|
2168
2168
|
height: "14",
|
|
2169
2169
|
viewBox: "0 0 14 14",
|
|
@@ -2171,11 +2171,11 @@ function Bt() {
|
|
|
2171
2171
|
stroke: "currentColor",
|
|
2172
2172
|
strokeWidth: "1.5",
|
|
2173
2173
|
strokeLinecap: "round",
|
|
2174
|
-
children: /* @__PURE__ */
|
|
2174
|
+
children: /* @__PURE__ */ F("path", { d: "M6 8l2-2m-2.5-.5L4 7a2.83 2.83 0 0 0 4 4l1.5-1.5m-1-5L10 3a2.83 2.83 0 0 1 4 4l-1.5 1.5" })
|
|
2175
2175
|
});
|
|
2176
2176
|
}
|
|
2177
2177
|
function Vt() {
|
|
2178
|
-
return /* @__PURE__ */
|
|
2178
|
+
return /* @__PURE__ */ F("svg", {
|
|
2179
2179
|
width: "14",
|
|
2180
2180
|
height: "14",
|
|
2181
2181
|
viewBox: "0 0 14 14",
|
|
@@ -2184,11 +2184,11 @@ function Vt() {
|
|
|
2184
2184
|
strokeWidth: "1.5",
|
|
2185
2185
|
strokeLinecap: "round",
|
|
2186
2186
|
strokeLinejoin: "round",
|
|
2187
|
-
children: /* @__PURE__ */
|
|
2187
|
+
children: /* @__PURE__ */ F("path", { d: "M2.5 4h9M5 4V2.5h4V4m-4.5 1v5.5m3-5.5v5.5M3.5 4l.5 8h6l.5-8" })
|
|
2188
2188
|
});
|
|
2189
2189
|
}
|
|
2190
2190
|
function Ht() {
|
|
2191
|
-
return /* @__PURE__ */
|
|
2191
|
+
return /* @__PURE__ */ I("svg", {
|
|
2192
2192
|
width: "14",
|
|
2193
2193
|
height: "14",
|
|
2194
2194
|
viewBox: "0 0 14 14",
|
|
@@ -2197,7 +2197,7 @@ function Ht() {
|
|
|
2197
2197
|
strokeWidth: "1.5",
|
|
2198
2198
|
strokeLinecap: "round",
|
|
2199
2199
|
strokeLinejoin: "round",
|
|
2200
|
-
children: [/* @__PURE__ */
|
|
2200
|
+
children: [/* @__PURE__ */ F("path", { d: "M5.5 1.5h3l.5 1.5 1.5.5 1.5-.5 1.5 1.5-1 1.5.5 1.5h2v2h-2l-.5 1.5 1 1.5-1.5 1.5-1.5-.5-1.5.5-.5 1.5h-3l-.5-1.5L3.5 11.5 2 12 .5 10.5l1-1.5L1 7.5H-1v-2h2l.5-1.5-1-1.5L2 1l1.5.5L5 1l.5-.5Z" }), /* @__PURE__ */ F("circle", {
|
|
2201
2201
|
cx: "7",
|
|
2202
2202
|
cy: "7",
|
|
2203
2203
|
r: "2"
|
|
@@ -2205,7 +2205,7 @@ function Ht() {
|
|
|
2205
2205
|
});
|
|
2206
2206
|
}
|
|
2207
2207
|
function Ut() {
|
|
2208
|
-
return /* @__PURE__ */
|
|
2208
|
+
return /* @__PURE__ */ F("svg", {
|
|
2209
2209
|
width: "14",
|
|
2210
2210
|
height: "14",
|
|
2211
2211
|
viewBox: "0 0 14 14",
|
|
@@ -2213,11 +2213,11 @@ function Ut() {
|
|
|
2213
2213
|
stroke: "currentColor",
|
|
2214
2214
|
strokeWidth: "1.5",
|
|
2215
2215
|
strokeLinecap: "round",
|
|
2216
|
-
children: /* @__PURE__ */
|
|
2216
|
+
children: /* @__PURE__ */ F("path", { d: "M3.5 3.5l7 7M10.5 3.5l-7 7" })
|
|
2217
2217
|
});
|
|
2218
2218
|
}
|
|
2219
2219
|
function Wt() {
|
|
2220
|
-
return /* @__PURE__ */
|
|
2220
|
+
return /* @__PURE__ */ F("svg", {
|
|
2221
2221
|
width: "14",
|
|
2222
2222
|
height: "14",
|
|
2223
2223
|
viewBox: "0 0 14 14",
|
|
@@ -2226,11 +2226,11 @@ function Wt() {
|
|
|
2226
2226
|
strokeWidth: "2",
|
|
2227
2227
|
strokeLinecap: "round",
|
|
2228
2228
|
strokeLinejoin: "round",
|
|
2229
|
-
children: /* @__PURE__ */
|
|
2229
|
+
children: /* @__PURE__ */ F("path", { d: "M3 7.5l3 3 5-6" })
|
|
2230
2230
|
});
|
|
2231
2231
|
}
|
|
2232
2232
|
function Gt() {
|
|
2233
|
-
return /* @__PURE__ */
|
|
2233
|
+
return /* @__PURE__ */ I("svg", {
|
|
2234
2234
|
width: "14",
|
|
2235
2235
|
height: "14",
|
|
2236
2236
|
viewBox: "0 0 14 14",
|
|
@@ -2239,17 +2239,17 @@ function Gt() {
|
|
|
2239
2239
|
strokeWidth: "1.5",
|
|
2240
2240
|
strokeLinecap: "round",
|
|
2241
2241
|
strokeLinejoin: "round",
|
|
2242
|
-
children: [/* @__PURE__ */
|
|
2242
|
+
children: [/* @__PURE__ */ F("rect", {
|
|
2243
2243
|
x: "4.5",
|
|
2244
2244
|
y: "4.5",
|
|
2245
2245
|
width: "7",
|
|
2246
2246
|
height: "7",
|
|
2247
2247
|
rx: "1"
|
|
2248
|
-
}), /* @__PURE__ */
|
|
2248
|
+
}), /* @__PURE__ */ F("path", { d: "M9.5 4.5V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v5.5a1 1 0 0 0 1 1h1.5" })]
|
|
2249
2249
|
});
|
|
2250
2250
|
}
|
|
2251
2251
|
function Kt() {
|
|
2252
|
-
return /* @__PURE__ */
|
|
2252
|
+
return /* @__PURE__ */ F("svg", {
|
|
2253
2253
|
width: "14",
|
|
2254
2254
|
height: "14",
|
|
2255
2255
|
viewBox: "0 0 14 14",
|
|
@@ -2258,11 +2258,11 @@ function Kt() {
|
|
|
2258
2258
|
strokeWidth: "1.5",
|
|
2259
2259
|
strokeLinecap: "round",
|
|
2260
2260
|
strokeLinejoin: "round",
|
|
2261
|
-
children: /* @__PURE__ */
|
|
2261
|
+
children: /* @__PURE__ */ F("path", { d: "M5.5 12a1.5 1.5 0 0 0 3 0M7 1a4 4 0 0 0-4 4c0 3-1.5 4.5-1.5 4.5h11S11 8 11 5a4 4 0 0 0-4-4Z" })
|
|
2262
2262
|
});
|
|
2263
2263
|
}
|
|
2264
2264
|
function qt() {
|
|
2265
|
-
return /* @__PURE__ */
|
|
2265
|
+
return /* @__PURE__ */ I("svg", {
|
|
2266
2266
|
width: "14",
|
|
2267
2267
|
height: "14",
|
|
2268
2268
|
viewBox: "0 0 14 14",
|
|
@@ -2271,17 +2271,17 @@ function qt() {
|
|
|
2271
2271
|
strokeWidth: "1.5",
|
|
2272
2272
|
strokeLinecap: "round",
|
|
2273
2273
|
strokeLinejoin: "round",
|
|
2274
|
-
children: [/* @__PURE__ */
|
|
2274
|
+
children: [/* @__PURE__ */ F("rect", {
|
|
2275
2275
|
x: "1.5",
|
|
2276
2276
|
y: "2.5",
|
|
2277
2277
|
width: "11",
|
|
2278
2278
|
height: "10",
|
|
2279
2279
|
rx: "1"
|
|
2280
|
-
}), /* @__PURE__ */
|
|
2280
|
+
}), /* @__PURE__ */ F("path", { d: "M4.5 1v2.5M9.5 1v2.5M1.5 5.5h11" })]
|
|
2281
2281
|
});
|
|
2282
2282
|
}
|
|
2283
2283
|
function Jt() {
|
|
2284
|
-
return /* @__PURE__ */
|
|
2284
|
+
return /* @__PURE__ */ F("svg", {
|
|
2285
2285
|
width: "14",
|
|
2286
2286
|
height: "14",
|
|
2287
2287
|
viewBox: "0 0 14 14",
|
|
@@ -2290,20 +2290,20 @@ function Jt() {
|
|
|
2290
2290
|
strokeWidth: "1.5",
|
|
2291
2291
|
strokeLinecap: "round",
|
|
2292
2292
|
strokeLinejoin: "round",
|
|
2293
|
-
children: /* @__PURE__ */
|
|
2293
|
+
children: /* @__PURE__ */ F("path", { d: "M1.5 3h11M3.5 7h7M5.5 11h3" })
|
|
2294
2294
|
});
|
|
2295
2295
|
}
|
|
2296
2296
|
function Yt() {
|
|
2297
|
-
return /* @__PURE__ */
|
|
2297
|
+
return /* @__PURE__ */ I("svg", {
|
|
2298
2298
|
width: "14",
|
|
2299
2299
|
height: "14",
|
|
2300
2300
|
viewBox: "0 0 14 14",
|
|
2301
2301
|
fill: "currentColor",
|
|
2302
|
-
children: [/* @__PURE__ */
|
|
2302
|
+
children: [/* @__PURE__ */ F("circle", {
|
|
2303
2303
|
cx: "7",
|
|
2304
2304
|
cy: "4.5",
|
|
2305
2305
|
r: "2.5"
|
|
2306
|
-
}), /* @__PURE__ */
|
|
2306
|
+
}), /* @__PURE__ */ F("path", {
|
|
2307
2307
|
d: "M2.5 12.5a4.5 4.5 0 0 1 9 0",
|
|
2308
2308
|
fill: "none",
|
|
2309
2309
|
stroke: "currentColor",
|
|
@@ -2312,7 +2312,7 @@ function Yt() {
|
|
|
2312
2312
|
});
|
|
2313
2313
|
}
|
|
2314
2314
|
function Xt() {
|
|
2315
|
-
return /* @__PURE__ */
|
|
2315
|
+
return /* @__PURE__ */ I("svg", {
|
|
2316
2316
|
width: "14",
|
|
2317
2317
|
height: "14",
|
|
2318
2318
|
viewBox: "0 0 14 14",
|
|
@@ -2321,7 +2321,7 @@ function Xt() {
|
|
|
2321
2321
|
strokeWidth: "1.5",
|
|
2322
2322
|
strokeLinecap: "round",
|
|
2323
2323
|
strokeLinejoin: "round",
|
|
2324
|
-
children: [/* @__PURE__ */
|
|
2324
|
+
children: [/* @__PURE__ */ F("path", { d: "M1.5 8.5V2a.5.5 0 0 1 .5-.5h6.5L13 6l-5.5 5.5L1.5 8.5Z" }), /* @__PURE__ */ F("circle", {
|
|
2325
2325
|
cx: "5",
|
|
2326
2326
|
cy: "5",
|
|
2327
2327
|
r: "1",
|
|
@@ -2330,4 +2330,4 @@ function Xt() {
|
|
|
2330
2330
|
});
|
|
2331
2331
|
}
|
|
2332
2332
|
//#endregion
|
|
2333
|
-
export {
|
|
2333
|
+
export { ge as Accordion, he as AccordionItem, ot as ActivityFeed, _e as AppLoader, X as Avatar, Ce as Badge, Kt as BellIcon, Ee as Button, qt as CalendarIcon, De as Card, je as CardContent, Ae as CardDescription, Me as CardFooter, Oe as CardHeader, ke as CardTitle, Wt as CheckIcon, Ot as ChevronDown, kt as ChevronUp, Ut as CloseIcon, st as CommandBar, Gt as CopyIcon, $e as DEFAULT_ICON_BY_VALUE, et as DEFAULT_VIEW_MODE_OPTIONS, ct as DataTable, Ne as Dialog, Le as DialogBody, Ie as DialogDescription, Re as DialogFooter, Pe as DialogHeader, Fe as DialogTitle, ze as DropdownMenu, Ve as DropdownMenuCheckboxItem, Be as DropdownMenuItem, He as DropdownMenuLabel, Ue as DropdownMenuSeparator, Dt as EditIcon, fe as FCCAppShell, pe as FCCBrandLogo, U as FCCBreadcrumbs, ce as FCCDesignProvider, G as FCCHeaderStatus, q as FCCMainWindow, Y as FCCSidebar, me as FCCThemeToggle, K as FCCWorkspaceHeader, lt as FilterBar, Jt as FilterIcon, yt as InboxIcon, Ct as InitiativesIcon, bt as IssuesIcon, gt as KPICard, ut as KanbanBoard, ft as KanbanCard, dt as KanbanColumn, Xt as LabelIcon, Bt as LinkIcon, Tt as MoreIcon, vt as NotificationsPanel, Lt as PriorityHigh, zt as PriorityLow, Rt as PriorityMedium, It as PriorityUrgent, wt as ProjectsIcon, St as PulseIcon, xt as ReviewsIcon, Et as SearchIcon, We as SearchableSelect, Ht as SettingsIcon, Ge as Sheet, Ke as SheetFooter, ve as Spinner, At as StarIcon, _t as StatCard, Pt as StatusBacklog, Ft as StatusCancelled, Mt as StatusDone, jt as StatusInProgress, Nt as StatusTodo, qe as Switch, pt as TableBoard, mt as TableBoardGroup, ht as TableBoardRow, Je as Tabs, Ze as TabsContent, Ye as TabsList, Xe as TabsTrigger, V as ThemeProvider, z as ToastProvider, Qe as Tooltip, Vt as TrashIcon, Yt as UserIcon, rt as ViewModeToggle, at as WorkspaceTabs, H as useTheme, ie as useToast };
|