react-semaphor 0.1.303 → 0.1.304
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/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/chunks/common-types-C6cAQgyh.js +9 -0
- package/dist/chunks/common-types-nBuCd3u2.js +1 -0
- package/dist/chunks/{dashboard-controls-BCJZOzrL.js → dashboard-controls-CyFZfGaN.js} +799 -774
- package/dist/chunks/dashboard-controls-DCZnUFI0.js +47 -0
- package/dist/chunks/{dashboard-filter-controls-button-Cfbac4Jw.js → dashboard-filter-controls-button-DI7XUgZK.js} +142 -142
- package/dist/chunks/{dashboard-filter-controls-button-C-e7230k.js → dashboard-filter-controls-button-YQZ-oeN5.js} +3 -3
- package/dist/chunks/{dashboard-json-BzvLPhGM.js → dashboard-json-C6R2qixD.js} +2 -2
- package/dist/chunks/{dashboard-json-BM5ywMgp.js → dashboard-json-Z8jz16Yj.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-ChK3344r.js → dashboard-summary-settings-dialog-BlD77h63.js} +2 -2
- package/dist/chunks/{dashboard-summary-settings-dialog-BdxKl1UF.js → dashboard-summary-settings-dialog-DJyY-PB9.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-nNaZ2IK1.js → edit-dashboard-visual-CNGc1zcN.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-D725CWD5.js → edit-dashboard-visual-CfRJXwDR.js} +164 -164
- package/dist/chunks/index-D2vz3gvd.js +1360 -0
- package/dist/chunks/{index-CYWgnME0.js → index-GHhvGdF9.js} +42147 -39985
- package/dist/chunks/{palette-B9DJXMGo.js → palette-BqJlrRto.js} +1 -1
- package/dist/chunks/{palette-DGOzbtsn.js → palette-DD-i7bNS.js} +1 -1
- package/dist/chunks/{resource-management-panel-CE0-NcLL.js → resource-management-panel-7Y4ITzGH.js} +65 -65
- package/dist/chunks/{resource-management-panel-mJmc5dMT.js → resource-management-panel-Bdus73Iu.js} +1 -1
- package/dist/chunks/{rotate-ccw-Bs7YJn10.js → rotate-ccw-CdGW8Rxm.js} +1 -1
- package/dist/chunks/{rotate-ccw-YsjQwpKm.js → rotate-ccw-X8MbX_hF.js} +1 -1
- package/dist/chunks/{save-Bj1y1rug.js → save-CFBIhbHD.js} +1 -1
- package/dist/chunks/{save-CUrexoNl.js → save-j-clxFtx.js} +1 -1
- package/dist/chunks/{switch-oojO-gal.js → switch-BFhVVwh9.js} +4248 -3243
- package/dist/chunks/switch-BH17qlxH.js +163 -0
- package/dist/chunks/use-create-flow-overlay-state-CSytlf2H.js +16 -0
- package/dist/chunks/{use-create-flow-overlay-state-BHDKxe7I.js → use-create-flow-overlay-state-CllZvyvE.js} +318 -316
- package/dist/chunks/{use-visual-utils-DYDXMl5v.js → use-visual-utils-CDO4kVX5.js} +1 -1
- package/dist/chunks/{use-visual-utils-CjFzlR0P.js → use-visual-utils-CyjLzcDG.js} +2 -2
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +60 -59
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +6 -6
- package/dist/types/dashboard.d.ts +168 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +8 -11
- package/dist/types/main.d.ts +194 -2
- package/dist/types/shared.d.ts +120 -0
- package/dist/types/surfboard.d.ts +168 -0
- package/dist/types/types.d.ts +168 -0
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-CVFoOPti.js +0 -47
- package/dist/chunks/index-BWjB_9uz.js +0 -1356
- package/dist/chunks/switch-CiEX68py.js +0 -163
- package/dist/chunks/use-create-flow-overlay-state-D2I2wNey.js +0 -16
package/dist/chunks/{resource-management-panel-CE0-NcLL.js → resource-management-panel-7Y4ITzGH.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as le } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import { v as de,
|
|
5
|
-
import { u as Ie } from "./use-visual-utils-
|
|
2
|
+
import { c as Fe, u as ne, n as je, a as X, B as I, f as se, s as be, w as ze, L as fe, I as ge, X as Be, z as He, A as Ke, D as _e, F as Ge, aD as We } from "./switch-BFhVVwh9.js";
|
|
3
|
+
import Ye, { useRef as qe, useEffect as ae, useState as b } from "react";
|
|
4
|
+
import { v as de, bo as Je, bp as Qe, bl as ie, bq as Xe, br as $e, bs as Ze, bt as ke, bu as Q, bv as et, bw as tt, bx as nt, by as xe, bc as ce, bz as at, bA as st, bB as we, bC as Ne, bD as ot, a0 as ye, Y as Ce, bE as ve, bF as Se, bG as Ee, bH as Ve, bI as Le, bJ as Ae, bK as Oe, bL as Re, bM as Te, bN as rt, bO as ue, bP as it, W as te, u as lt, bQ as Ue, b as dt, c as ct, d as ut, e as ht, f as pt, o as mt, bR as ft, bS as De, bT as gt, bU as xt } from "./index-GHhvGdF9.js";
|
|
5
|
+
import { u as Ie } from "./use-visual-utils-CyjLzcDG.js";
|
|
6
6
|
/**
|
|
7
7
|
* @license lucide-react v0.453.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
const Dt =
|
|
12
|
+
const Dt = Fe("FolderOpen", [
|
|
13
13
|
[
|
|
14
14
|
"path",
|
|
15
15
|
{
|
|
@@ -19,7 +19,7 @@ const Dt = je("FolderOpen", [
|
|
|
19
19
|
]
|
|
20
20
|
]);
|
|
21
21
|
function bt(t, m = {}) {
|
|
22
|
-
const { enabled: p = !0, eventType: l = "mousedown" } = m, i =
|
|
22
|
+
const { enabled: p = !0, eventType: l = "mousedown" } = m, i = qe(null);
|
|
23
23
|
return ae(() => {
|
|
24
24
|
const h = (w) => {
|
|
25
25
|
const o = w.target;
|
|
@@ -47,7 +47,7 @@ function Me() {
|
|
|
47
47
|
)) });
|
|
48
48
|
}
|
|
49
49
|
const wt = (t) => {
|
|
50
|
-
const m = ne((i) => i.isVisualEditing), p = ne((i) => i.selectedFrameId), l =
|
|
50
|
+
const m = ne((i) => i.isVisualEditing), p = ne((i) => i.selectedFrameId), l = je((i) => i.frame);
|
|
51
51
|
return !!(m && p && (l == null ? void 0 : l.visualId) === t);
|
|
52
52
|
};
|
|
53
53
|
function Nt({
|
|
@@ -62,8 +62,8 @@ function Nt({
|
|
|
62
62
|
onShareVisual: N,
|
|
63
63
|
formatDate: y
|
|
64
64
|
}) {
|
|
65
|
-
var M, U,
|
|
66
|
-
const { selectVisual: f } = de(), d =
|
|
65
|
+
var M, U, F, j;
|
|
66
|
+
const { selectVisual: f } = de(), d = Je(t.id), u = wt(t.id), A = ne((r) => r.isVisualEditing), { isConsoleMode: T } = Qe(), x = Ye.useRef(null), [S, E] = b(!1), [V, O] = b(!1);
|
|
67
67
|
ae(() => {
|
|
68
68
|
p ? (E(!0), O(!0)) : V && (E(!1), O(!1));
|
|
69
69
|
}, [p, V]), ae(() => {
|
|
@@ -81,7 +81,7 @@ function Nt({
|
|
|
81
81
|
"div",
|
|
82
82
|
{
|
|
83
83
|
ref: x,
|
|
84
|
-
className:
|
|
84
|
+
className: X(
|
|
85
85
|
"group flex cursor-pointer items-start gap-1 rounded-[5px] px-2 py-1.5 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",
|
|
86
86
|
u ? "bg-muted ring-1 ring-inset ring-foreground/20" : d && "bg-muted"
|
|
87
87
|
),
|
|
@@ -117,7 +117,7 @@ function Nt({
|
|
|
117
117
|
/* @__PURE__ */ e(
|
|
118
118
|
"div",
|
|
119
119
|
{
|
|
120
|
-
className:
|
|
120
|
+
className: X(
|
|
121
121
|
"flex shrink-0 items-center transition-opacity",
|
|
122
122
|
d || u || S ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100"
|
|
123
123
|
),
|
|
@@ -141,20 +141,20 @@ function Nt({
|
|
|
141
141
|
}
|
|
142
142
|
),
|
|
143
143
|
/* @__PURE__ */ n(
|
|
144
|
-
|
|
144
|
+
Xe,
|
|
145
145
|
{
|
|
146
146
|
modal: !1,
|
|
147
147
|
open: S,
|
|
148
148
|
onOpenChange: E,
|
|
149
149
|
children: [
|
|
150
|
-
/* @__PURE__ */ e(
|
|
150
|
+
/* @__PURE__ */ e($e, { asChild: !0, children: /* @__PURE__ */ e(
|
|
151
151
|
I,
|
|
152
152
|
{
|
|
153
153
|
size: "xs",
|
|
154
154
|
variant: "ghost",
|
|
155
155
|
className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent/50",
|
|
156
156
|
"aria-label": "Open visual actions",
|
|
157
|
-
children: /* @__PURE__ */ e(
|
|
157
|
+
children: /* @__PURE__ */ e(Ze, { className: "h-3.5 w-3.5" })
|
|
158
158
|
}
|
|
159
159
|
) }),
|
|
160
160
|
/* @__PURE__ */ n(
|
|
@@ -244,9 +244,9 @@ function Nt({
|
|
|
244
244
|
] }),
|
|
245
245
|
/* @__PURE__ */ e(xe, {}),
|
|
246
246
|
/* @__PURE__ */ n("div", { className: "space-y-1 px-2 py-1.5 text-[11px] text-muted-foreground", children: [
|
|
247
|
-
(((U = t.ownership.createdBy) == null ? void 0 : U.type) === "tenant" || ((
|
|
247
|
+
(((U = t.ownership.createdBy) == null ? void 0 : U.type) === "tenant" || ((F = t.ownership.createdBy) == null ? void 0 : F.type) === "organization" && T) && /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
|
|
248
248
|
/* @__PURE__ */ e(at, { className: "h-3 w-3" }),
|
|
249
|
-
/* @__PURE__ */ e("span", { children: ((
|
|
249
|
+
/* @__PURE__ */ e("span", { children: ((j = t.ownership.createdBy) == null ? void 0 : j.name) || "Unknown" })
|
|
250
250
|
] }),
|
|
251
251
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
|
|
252
252
|
/* @__PURE__ */ e(st, { className: "h-3 w-3" }),
|
|
@@ -290,13 +290,13 @@ function yt({ searchQuery: t }) {
|
|
|
290
290
|
month: "short",
|
|
291
291
|
day: "numeric",
|
|
292
292
|
year: "numeric"
|
|
293
|
-
}),
|
|
293
|
+
}), F = (s) => {
|
|
294
294
|
N(s), w(!0);
|
|
295
|
-
},
|
|
295
|
+
}, j = () => {
|
|
296
296
|
o && O(o.id);
|
|
297
297
|
}, {
|
|
298
298
|
startUpdating: r,
|
|
299
|
-
stopUpdating:
|
|
299
|
+
stopUpdating: W,
|
|
300
300
|
isUpdating: B
|
|
301
301
|
} = Ne(), L = (s, R, c) => {
|
|
302
302
|
var ee;
|
|
@@ -316,27 +316,27 @@ function yt({ searchQuery: t }) {
|
|
|
316
316
|
{
|
|
317
317
|
onSuccess: () => {
|
|
318
318
|
var P;
|
|
319
|
-
|
|
319
|
+
W(s, K), (P = c == null ? void 0 : c.onSuccess) == null || P.call(c);
|
|
320
320
|
},
|
|
321
321
|
onError: () => {
|
|
322
322
|
var P;
|
|
323
|
-
|
|
323
|
+
W(s, K), (P = c == null ? void 0 : c.onError) == null || P.call(c);
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
);
|
|
327
|
-
},
|
|
327
|
+
}, Y = (s) => {
|
|
328
328
|
f(s), C(s, {
|
|
329
329
|
onSettled: () => f(null)
|
|
330
330
|
});
|
|
331
331
|
}, H = (s) => {
|
|
332
332
|
A(s);
|
|
333
|
-
},
|
|
333
|
+
}, q = (s) => {
|
|
334
334
|
T(s);
|
|
335
|
-
},
|
|
335
|
+
}, J = (s) => {
|
|
336
336
|
i(s), p(!0);
|
|
337
|
-
},
|
|
337
|
+
}, $ = (s) => {
|
|
338
338
|
u(s);
|
|
339
|
-
},
|
|
339
|
+
}, Z = () => {
|
|
340
340
|
u(null);
|
|
341
341
|
}, k = ({
|
|
342
342
|
title: s,
|
|
@@ -371,12 +371,12 @@ function yt({ searchQuery: t }) {
|
|
|
371
371
|
Nt,
|
|
372
372
|
{
|
|
373
373
|
visual: s,
|
|
374
|
-
onAddVisual:
|
|
374
|
+
onAddVisual: q,
|
|
375
375
|
onOpenVisual: H,
|
|
376
|
-
onEditDetails:
|
|
377
|
-
onDeleteClick:
|
|
378
|
-
onDuplicateVisual:
|
|
379
|
-
onShareVisual:
|
|
376
|
+
onEditDetails: $,
|
|
377
|
+
onDeleteClick: F,
|
|
378
|
+
onDuplicateVisual: Y,
|
|
379
|
+
onShareVisual: J,
|
|
380
380
|
isDeleting: v,
|
|
381
381
|
isDuplicating: y === s.id,
|
|
382
382
|
formatDate: U
|
|
@@ -400,7 +400,7 @@ function yt({ searchQuery: t }) {
|
|
|
400
400
|
resourceLabel: "Visual",
|
|
401
401
|
initialTitle: d.title || "",
|
|
402
402
|
initialDescription: d.description || "",
|
|
403
|
-
onClose:
|
|
403
|
+
onClose: Z,
|
|
404
404
|
onSave: k,
|
|
405
405
|
isSaving: B(d.id)
|
|
406
406
|
}
|
|
@@ -427,7 +427,7 @@ function yt({ searchQuery: t }) {
|
|
|
427
427
|
Te,
|
|
428
428
|
{
|
|
429
429
|
onClick: (s) => {
|
|
430
|
-
s.preventDefault(), s.stopPropagation(),
|
|
430
|
+
s.preventDefault(), s.stopPropagation(), j();
|
|
431
431
|
},
|
|
432
432
|
disabled: v,
|
|
433
433
|
children: [
|
|
@@ -463,7 +463,7 @@ function Ct({
|
|
|
463
463
|
return /* @__PURE__ */ n(
|
|
464
464
|
"div",
|
|
465
465
|
{
|
|
466
|
-
className:
|
|
466
|
+
className: X(
|
|
467
467
|
"group flex cursor-pointer items-start gap-1 rounded-[5px] px-2 py-1.5 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",
|
|
468
468
|
d && "bg-muted"
|
|
469
469
|
),
|
|
@@ -499,7 +499,7 @@ function Ct({
|
|
|
499
499
|
/* @__PURE__ */ e(
|
|
500
500
|
"div",
|
|
501
501
|
{
|
|
502
|
-
className:
|
|
502
|
+
className: X(
|
|
503
503
|
"shrink-0 transition-opacity",
|
|
504
504
|
d ? "opacity-100" : "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"
|
|
505
505
|
),
|
|
@@ -543,31 +543,31 @@ function St(t) {
|
|
|
543
543
|
(a) => a.actions.clearSelectedDashboard
|
|
544
544
|
), { tokenProps: v, id: M } = lt(), {
|
|
545
545
|
resources: U,
|
|
546
|
-
isLoading:
|
|
547
|
-
isError:
|
|
546
|
+
isLoading: F,
|
|
547
|
+
isError: j,
|
|
548
548
|
updateResource: r,
|
|
549
|
-
deleteResource:
|
|
549
|
+
deleteResource: W,
|
|
550
550
|
duplicateResource: B,
|
|
551
551
|
isDeleting: L
|
|
552
552
|
} = Ue(() => {
|
|
553
553
|
f(!1);
|
|
554
554
|
const a = d == null ? void 0 : d.id;
|
|
555
555
|
u(null), (V == null ? void 0 : V.id) === a && (!(v != null && v.dashboard_id) && !M ? C() : E && E.id !== a && O(E));
|
|
556
|
-
}), { userContext:
|
|
556
|
+
}), { userContext: Y } = ue(), H = ((he = Y == null ? void 0 : Y.permissions) == null ? void 0 : he.canCreateDashboard) ?? !1, q = U.filter(
|
|
557
557
|
(a) => {
|
|
558
558
|
var _, g;
|
|
559
559
|
return ((_ = a == null ? void 0 : a.title) == null ? void 0 : _.toLowerCase().includes(m.toLowerCase())) || ((g = a == null ? void 0 : a.description) == null ? void 0 : g.toLowerCase().includes(m.toLowerCase()));
|
|
560
560
|
}
|
|
561
|
-
),
|
|
561
|
+
), J = (a) => new Date(a).toLocaleDateString("en-US", {
|
|
562
562
|
month: "short",
|
|
563
563
|
day: "numeric",
|
|
564
564
|
year: "numeric"
|
|
565
|
-
}),
|
|
565
|
+
}), $ = (a) => {
|
|
566
566
|
p == null || p(a);
|
|
567
|
-
},
|
|
567
|
+
}, Z = (a) => {
|
|
568
568
|
u(a), f(!0);
|
|
569
569
|
}, k = () => {
|
|
570
|
-
d &&
|
|
570
|
+
d && W(d.id);
|
|
571
571
|
}, s = (a) => {
|
|
572
572
|
T(a), B(a, {
|
|
573
573
|
onSettled: () => T(null)
|
|
@@ -579,7 +579,7 @@ function St(t) {
|
|
|
579
579
|
} = Ne(), D = (a, _, g) => {
|
|
580
580
|
var me;
|
|
581
581
|
const oe = Object.fromEntries(
|
|
582
|
-
Object.entries(_).filter(([,
|
|
582
|
+
Object.entries(_).filter(([, G]) => G !== void 0)
|
|
583
583
|
);
|
|
584
584
|
if (Object.keys(oe).length === 0) {
|
|
585
585
|
(me = g == null ? void 0 : g.onSuccess) == null || me.call(g);
|
|
@@ -593,12 +593,12 @@ function St(t) {
|
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
595
|
onSuccess: () => {
|
|
596
|
-
var
|
|
597
|
-
c(a, re), (
|
|
596
|
+
var G;
|
|
597
|
+
c(a, re), (G = g == null ? void 0 : g.onSuccess) == null || G.call(g);
|
|
598
598
|
},
|
|
599
599
|
onError: () => {
|
|
600
|
-
var
|
|
601
|
-
c(a, re), (
|
|
600
|
+
var G;
|
|
601
|
+
c(a, re), (G = g == null ? void 0 : g.onError) == null || G.call(g);
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
);
|
|
@@ -621,23 +621,23 @@ function St(t) {
|
|
|
621
621
|
}
|
|
622
622
|
});
|
|
623
623
|
};
|
|
624
|
-
return
|
|
625
|
-
/* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children:
|
|
624
|
+
return F ? /* @__PURE__ */ e(Me, {}) : j ? /* @__PURE__ */ e(vt, { onRetry: () => window.location.reload() }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
|
|
625
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children: q.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
|
|
626
626
|
/* @__PURE__ */ e(ze, { className: "h-5 w-5 text-muted-foreground/60" }),
|
|
627
627
|
/* @__PURE__ */ e("h3", { className: "text-[13px] font-medium text-foreground", children: m ? "No dashboards found" : "No dashboards yet" }),
|
|
628
628
|
/* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: m ? "Try adjusting your search." : H ? 'Click "New" above to add your first dashboard.' : "No dashboards have been shared with you yet." })
|
|
629
|
-
] }) :
|
|
629
|
+
] }) : q.map((a) => /* @__PURE__ */ e(
|
|
630
630
|
Ct,
|
|
631
631
|
{
|
|
632
632
|
dashboard: a,
|
|
633
633
|
isDeleting: L,
|
|
634
634
|
isDuplicating: A === a.id,
|
|
635
|
-
onLoadDashboard:
|
|
635
|
+
onLoadDashboard: $,
|
|
636
636
|
onEditDetails: ee,
|
|
637
|
-
onDeleteClick:
|
|
637
|
+
onDeleteClick: Z,
|
|
638
638
|
onDuplicateDashboard: s,
|
|
639
639
|
onShareDashboard: K,
|
|
640
|
-
formatDate:
|
|
640
|
+
formatDate: J,
|
|
641
641
|
onDashboardItemClick: i
|
|
642
642
|
},
|
|
643
643
|
a.id
|
|
@@ -798,11 +798,11 @@ function Tt({
|
|
|
798
798
|
(D) => {
|
|
799
799
|
o(!1), D && (S(D), E(D));
|
|
800
800
|
}
|
|
801
|
-
), U = i === "overlay",
|
|
801
|
+
), U = i === "overlay", F = h ? "New Visual" : "New", j = h ? "New Visual" : "New Dashboard", r = h ? "Search visuals..." : "Search dashboards...", W = h ? "Collapse visuals panel" : "Collapse dashboard panel", B = ((u == null ? void 0 : u.name) ?? "").trim(), L = ((u == null ? void 0 : u.email) ?? "").trim(), H = B && B.toLowerCase() !== "undefined" ? B : L || "Current user", q = ((z = H.charAt(0)) == null ? void 0 : z.toUpperCase()) || "?", J = L && L.toLowerCase() !== "undefined" ? L : "", $ = bt(m, {
|
|
802
802
|
enabled: t && U
|
|
803
|
-
}),
|
|
803
|
+
}), Z = X(
|
|
804
804
|
"flex h-full flex-col border-r border-border/60 bg-background",
|
|
805
|
-
U ?
|
|
805
|
+
U ? X(
|
|
806
806
|
"absolute inset-y-0 left-0 z-[51] w-60 overflow-hidden shadow-lg transition-transform duration-300 ease-in-out",
|
|
807
807
|
t ? "translate-x-0" : "pointer-events-none -translate-x-full"
|
|
808
808
|
) : "w-full max-w-[17rem] min-w-[11rem] overflow-hidden",
|
|
@@ -817,7 +817,7 @@ function Tt({
|
|
|
817
817
|
}
|
|
818
818
|
});
|
|
819
819
|
};
|
|
820
|
-
return /* @__PURE__ */ e(le, { children: (!U || t) && /* @__PURE__ */ n("div", { ref:
|
|
820
|
+
return /* @__PURE__ */ e(le, { children: (!U || t) && /* @__PURE__ */ n("div", { ref: $, className: Z, children: [
|
|
821
821
|
/* @__PURE__ */ e("div", { className: "border-b border-border/60 bg-background", children: f ? /* @__PURE__ */ n("div", { className: "flex h-10 items-center gap-1 px-3", children: [
|
|
822
822
|
/* @__PURE__ */ e(De, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
823
823
|
/* @__PURE__ */ e(
|
|
@@ -867,10 +867,10 @@ function Tt({
|
|
|
867
867
|
size: "xs",
|
|
868
868
|
variant: "outline",
|
|
869
869
|
onClick: () => o(!0),
|
|
870
|
-
"aria-label":
|
|
870
|
+
"aria-label": j,
|
|
871
871
|
children: [
|
|
872
872
|
/* @__PURE__ */ e(ie, { className: "h-3.5 w-3.5" }),
|
|
873
|
-
|
|
873
|
+
F
|
|
874
874
|
]
|
|
875
875
|
}
|
|
876
876
|
),
|
|
@@ -881,7 +881,7 @@ function Tt({
|
|
|
881
881
|
variant: "ghost",
|
|
882
882
|
className: "w-7 px-0 text-muted-foreground hover:text-foreground",
|
|
883
883
|
onClick: m,
|
|
884
|
-
"aria-label":
|
|
884
|
+
"aria-label": W,
|
|
885
885
|
children: /* @__PURE__ */ e(gt, { className: "h-3.5 w-3.5" })
|
|
886
886
|
}
|
|
887
887
|
)
|
|
@@ -898,16 +898,16 @@ function Tt({
|
|
|
898
898
|
) }),
|
|
899
899
|
u && /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e("div", { className: "border-t border-border/60 px-3 py-2", children: /* @__PURE__ */ n(Ke, { children: [
|
|
900
900
|
/* @__PURE__ */ e(_e, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex cursor-default items-center gap-2", children: [
|
|
901
|
-
/* @__PURE__ */ e("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-muted text-[10px] font-medium text-muted-foreground", children:
|
|
901
|
+
/* @__PURE__ */ e("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-muted text-[10px] font-medium text-muted-foreground", children: q }),
|
|
902
902
|
/* @__PURE__ */ e("span", { className: "truncate text-[12px] text-muted-foreground", children: H })
|
|
903
903
|
] }) }),
|
|
904
|
-
/* @__PURE__ */ e(
|
|
904
|
+
/* @__PURE__ */ e(Ge, { side: "top", className: "max-w-xs", children: /* @__PURE__ */ n("div", { className: "space-y-0.5", children: [
|
|
905
905
|
/* @__PURE__ */ e("div", { className: "font-medium", children: H }),
|
|
906
|
-
|
|
906
|
+
J && /* @__PURE__ */ e("div", { className: "text-[11px] opacity-80", children: J }),
|
|
907
907
|
u.role && /* @__PURE__ */ n("div", { className: "text-[11px] opacity-80", children: [
|
|
908
908
|
"Role:",
|
|
909
909
|
" ",
|
|
910
|
-
|
|
910
|
+
We(u.role.replace(/_/g, " "))
|
|
911
911
|
] })
|
|
912
912
|
] }) })
|
|
913
913
|
] }) }) }),
|
package/dist/chunks/{resource-management-panel-mJmc5dMT.js → resource-management-panel-Bdus73Iu.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./switch-BH17qlxH.js"),x=require("react"),t=require("./index-D2vz3gvd.js"),oe=require("./use-visual-utils-CDO4kVX5.js");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|