react-semaphor 0.1.375 → 0.1.376
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 +2 -7
- package/dist/brand-studio/index.js +94 -106
- package/dist/chunks/{calendar-preferences-dialog-DXgi7q5u.js → calendar-preferences-dialog-B6fsethx.js} +3 -3
- package/dist/chunks/{calendar-preferences-dialog-CsRzDpDs.js → calendar-preferences-dialog-Dh1b0ytN.js} +1 -1
- package/dist/chunks/{chevrons-up-down-CnCSGY02.js → chevrons-up-down-D2fZD4N_.js} +1 -1
- package/dist/chunks/{chevrons-up-down-DSvLu4Ye.js → chevrons-up-down-lahj6tQy.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Jwbmrcl_.js → dashboard-briefing-launcher-BKCRO7Qw.js} +597 -589
- package/dist/chunks/{dashboard-briefing-launcher-C-G6vQTL.js → dashboard-briefing-launcher-Gv1cwT0I.js} +13 -8
- package/dist/chunks/dashboard-controls-BDJZarV7.js +52 -0
- package/dist/chunks/dashboard-controls-CchLBVDv.js +3037 -0
- package/dist/chunks/{dashboard-json-Cl1O3uh0.js → dashboard-json-QT0T2ad_.js} +2 -2
- package/dist/chunks/{dashboard-json-CvPhMpbM.js → dashboard-json-ZhIEMXN0.js} +1 -1
- package/dist/chunks/edit-dashboard-visual-DNzPgXMh.js +178 -0
- package/dist/chunks/{edit-dashboard-visual-B_0sbc43.js → edit-dashboard-visual-kNoMQRmH.js} +4413 -4330
- package/dist/chunks/{index-BIks0ktd.js → index-CPpqPJba.js} +186 -181
- package/dist/chunks/{index-BSkBy5cH.js → index-DX_0OcRv.js} +22824 -22664
- package/dist/chunks/layout-grid-BOTLt36V.js +36 -0
- package/dist/chunks/layout-grid-CS6BSCJF.js +11 -0
- package/dist/chunks/{palette-D-f4-82S.js → palette-2HWSR5wb.js} +1 -1
- package/dist/chunks/{palette-DUGktM-M.js → palette-BcHHAmOU.js} +1 -1
- package/dist/chunks/{save-kkBEBeLg.js → save-B-YfAPhu.js} +1 -1
- package/dist/chunks/{save-D3YYinDz.js → save-MoF1T13_.js} +1 -1
- package/dist/chunks/switch-CmHP5dT7.js +168 -0
- package/dist/chunks/{switch-Dkx2qEOr.js → switch-DmE_MY3L.js} +2001 -1982
- package/dist/chunks/use-create-flow-overlay-state-BLPQgGuz.js +21 -0
- package/dist/chunks/use-create-flow-overlay-state-D_Ntx-_C.js +1967 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +18 -13
- package/dist/data-app-builder/index.js +141 -131
- package/dist/index.cjs +1 -1
- package/dist/index.js +61 -63
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/main.d.ts +1 -12
- package/package.json +1 -1
- package/dist/chunks/braces-C3-w6xDL.js +0 -6
- package/dist/chunks/braces-C8QqW4wu.js +0 -23
- package/dist/chunks/dashboard-controls-DzGGNQxv.js +0 -2269
- package/dist/chunks/dashboard-controls-p7VKzWSb.js +0 -57
- package/dist/chunks/edit-dashboard-visual-CSrdS10O.js +0 -178
- package/dist/chunks/resource-management-panel-IHbUOh2g.js +0 -6
- package/dist/chunks/resource-management-panel-tFjbtgPw.js +0 -1018
- package/dist/chunks/switch-fIkmwzUt.js +0 -168
- package/dist/chunks/use-create-flow-overlay-state-D-yGZTR3.js +0 -1647
- package/dist/chunks/use-create-flow-overlay-state-DbaUD5xc.js +0 -26
- package/dist/chunks/use-visual-utils-B5hwU_av.js +0 -1
- package/dist/chunks/use-visual-utils-Dj82r7DA.js +0 -340
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r, Fragment as ce } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as ae, a as q, P as ge, b as be, B as C, d as fe, U as De, C as Ie, R as me, f as le, X as Je, S as se, e as je, T as Le, I as $e, J as U, K as _e, M, N as Ve, O as Ue, Q as Me, V as Ge, L as E, W as K, Y as Q, Z as ee, _ as he, $ as re, a0 as oe, a1 as ke, a2 as xe, a3 as ye, a4 as ve, a5 as Ce, a6 as We } from "../chunks/switch-DmE_MY3L.js";
|
|
4
4
|
import { r as He, v as Ye, A as Xe, a as Ze, p as qe } from "../chunks/index-CJdxSyQq.js";
|
|
5
5
|
import "../chunks/index-CuHybtft.js";
|
|
6
|
-
import { P as
|
|
7
|
-
import { B as Ke } from "../chunks/
|
|
8
|
-
import { S as
|
|
6
|
+
import { P as G } from "../chunks/palette-2HWSR5wb.js";
|
|
7
|
+
import { B as Ke, L as Qe } from "../chunks/layout-grid-BOTLt36V.js";
|
|
8
|
+
import { S as er } from "../chunks/save-B-YfAPhu.js";
|
|
9
9
|
/**
|
|
10
10
|
* @license lucide-react v0.453.0 - ISC
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the ISC license.
|
|
13
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
const
|
|
15
|
+
const rr = ae("Ban", [
|
|
16
16
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
17
17
|
["path", { d: "m4.9 4.9 14.2 14.2", key: "1m5liu" }]
|
|
18
18
|
]);
|
|
@@ -22,7 +22,7 @@ const er = $("Ban", [
|
|
|
22
22
|
* This source code is licensed under the ISC license.
|
|
23
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
24
24
|
*/
|
|
25
|
-
const
|
|
25
|
+
const or = ae("Clipboard", [
|
|
26
26
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
27
27
|
[
|
|
28
28
|
"path",
|
|
@@ -38,19 +38,7 @@ const rr = $("Clipboard", [
|
|
|
38
38
|
* This source code is licensed under the ISC license.
|
|
39
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
const
|
|
42
|
-
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
43
|
-
["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
|
|
44
|
-
["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }],
|
|
45
|
-
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }]
|
|
46
|
-
]);
|
|
47
|
-
/**
|
|
48
|
-
* @license lucide-react v0.453.0 - ISC
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the ISC license.
|
|
51
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/
|
|
53
|
-
const ar = $("Pipette", [
|
|
41
|
+
const ar = ae("Pipette", [
|
|
54
42
|
["path", { d: "m2 22 1-1h3l9-9", key: "1sre89" }],
|
|
55
43
|
["path", { d: "M3 21v-3l9-9", key: "hpe2y6" }],
|
|
56
44
|
[
|
|
@@ -270,7 +258,7 @@ function pe(e, n, t) {
|
|
|
270
258
|
break;
|
|
271
259
|
}
|
|
272
260
|
}
|
|
273
|
-
function
|
|
261
|
+
function W(e, n, t) {
|
|
274
262
|
switch (e.tokens.radius[n] = t, n) {
|
|
275
263
|
case "control":
|
|
276
264
|
e.components.interactive.borderRadius = t, e.components.pagination.borderRadius = t;
|
|
@@ -286,7 +274,7 @@ function H(e, n, t) {
|
|
|
286
274
|
function tr(e) {
|
|
287
275
|
var n, t;
|
|
288
276
|
for (const u of ["light", "dark"]) {
|
|
289
|
-
const c = e.schemes[u], l = c.tokens, i = l.color,
|
|
277
|
+
const c = e.schemes[u], l = c.tokens, i = l.color, y = (n = c.components) == null ? void 0 : n.aggregateTable, x = (t = c.components) == null ? void 0 : t.pivotTable, S = {
|
|
290
278
|
fontFamily: "",
|
|
291
279
|
headingFontFamily: "",
|
|
292
280
|
monoFontFamily: "",
|
|
@@ -356,22 +344,22 @@ function tr(e) {
|
|
|
356
344
|
}
|
|
357
345
|
};
|
|
358
346
|
c.components = { ...F, ...c.components };
|
|
359
|
-
const
|
|
347
|
+
const $ = {
|
|
360
348
|
palette: [],
|
|
361
349
|
background: i.card,
|
|
362
350
|
foreground: i.foreground,
|
|
363
351
|
gridColor: i.border,
|
|
364
352
|
axisColor: i.mutedForeground
|
|
365
353
|
};
|
|
366
|
-
c.components.chart = {
|
|
354
|
+
c.components.chart = { ...$, ...c.components.chart }, c.components.table = {
|
|
367
355
|
...B(i, l),
|
|
368
356
|
...c.components.table
|
|
369
|
-
}, c.components.aggregateTable =
|
|
370
|
-
...B(i, l),
|
|
371
|
-
...k
|
|
372
|
-
} : O(c.components.table), c.components.pivotTable = y ? {
|
|
357
|
+
}, c.components.aggregateTable = y ? {
|
|
373
358
|
...B(i, l),
|
|
374
359
|
...y
|
|
360
|
+
} : O(c.components.table), c.components.pivotTable = x ? {
|
|
361
|
+
...B(i, l),
|
|
362
|
+
...x
|
|
375
363
|
} : O(c.components.table);
|
|
376
364
|
}
|
|
377
365
|
return e;
|
|
@@ -444,7 +432,7 @@ const dr = [
|
|
|
444
432
|
["negative", "Negative"],
|
|
445
433
|
["warning", "Warning"],
|
|
446
434
|
["info", "Info"]
|
|
447
|
-
], ir = [0, 1, 2, 3, 4, 5],
|
|
435
|
+
], ir = [0, 1, 2, 3, 4, 5], H = Ze, cr = [
|
|
448
436
|
"#ffffff",
|
|
449
437
|
"#f8fafc",
|
|
450
438
|
"#f4f4f5",
|
|
@@ -466,13 +454,13 @@ function Cr({
|
|
|
466
454
|
error: c = null,
|
|
467
455
|
className: l,
|
|
468
456
|
onDraftChange: i,
|
|
469
|
-
onSave:
|
|
470
|
-
onClearConfig:
|
|
457
|
+
onSave: y,
|
|
458
|
+
onClearConfig: x,
|
|
471
459
|
onCancel: S
|
|
472
460
|
}) {
|
|
473
|
-
const [f, g] = m.useState(null), [T, F] = m.useState("light"), [
|
|
461
|
+
const [f, g] = m.useState(null), [T, F] = m.useState("light"), [$, z] = m.useState(!1), [we, R] = m.useState(
|
|
474
462
|
"idle"
|
|
475
|
-
), [ne, Se] = m.useState(!1), [D,
|
|
463
|
+
), [ne, Se] = m.useState(!1), [D, _] = m.useState(""), [I, h] = m.useState(null), te = m.useRef(null), J = m.useRef(i), A = m.useRef(!1);
|
|
476
464
|
m.useEffect(() => {
|
|
477
465
|
J.current = i;
|
|
478
466
|
}, [i]), m.useEffect(() => {
|
|
@@ -499,21 +487,21 @@ function Cr({
|
|
|
499
487
|
}
|
|
500
488
|
}
|
|
501
489
|
}, [f]);
|
|
502
|
-
const p = f == null ? void 0 : f.schemes[T],
|
|
490
|
+
const p = f == null ? void 0 : f.schemes[T], V = u || $, Te = m.useMemo(
|
|
503
491
|
() => p ? ur(p.tokens.radius.control) : void 0,
|
|
504
492
|
[p]
|
|
505
493
|
), Fe = (o) => {
|
|
506
494
|
g((a) => {
|
|
507
495
|
if (!a) return a;
|
|
508
|
-
const
|
|
509
|
-
return o(
|
|
496
|
+
const k = pr(a);
|
|
497
|
+
return o(k), k;
|
|
510
498
|
});
|
|
511
499
|
}, b = (o) => {
|
|
512
500
|
Fe((a) => {
|
|
513
501
|
o(a.schemes[T]);
|
|
514
502
|
});
|
|
515
503
|
}, Pe = async () => {
|
|
516
|
-
if (!f || !
|
|
504
|
+
if (!f || !y) return;
|
|
517
505
|
let o;
|
|
518
506
|
try {
|
|
519
507
|
o = L(f);
|
|
@@ -525,7 +513,7 @@ function Cr({
|
|
|
525
513
|
}
|
|
526
514
|
z(!0);
|
|
527
515
|
try {
|
|
528
|
-
await
|
|
516
|
+
await y(o);
|
|
529
517
|
} finally {
|
|
530
518
|
z(!1);
|
|
531
519
|
}
|
|
@@ -533,10 +521,10 @@ function Cr({
|
|
|
533
521
|
const o = j(null);
|
|
534
522
|
R("idle"), g(o);
|
|
535
523
|
}, Oe = async () => {
|
|
536
|
-
if (
|
|
524
|
+
if (x) {
|
|
537
525
|
z(!0), h(null), R("idle");
|
|
538
526
|
try {
|
|
539
|
-
await
|
|
527
|
+
await x(), A.current = !0, g(j(null)), F("light");
|
|
540
528
|
} catch (o) {
|
|
541
529
|
h(
|
|
542
530
|
o instanceof Error ? o.message : "Unable to clear organization appearance"
|
|
@@ -548,7 +536,7 @@ function Cr({
|
|
|
548
536
|
}, de = m.useCallback(() => f ? JSON.stringify(L(f), null, 2) : "", [f]), Re = (o) => {
|
|
549
537
|
if (Se(o), o)
|
|
550
538
|
try {
|
|
551
|
-
|
|
539
|
+
_(de()), h(null);
|
|
552
540
|
} catch (a) {
|
|
553
541
|
h(
|
|
554
542
|
a instanceof Error ? a.message : "Appearance is invalid"
|
|
@@ -565,8 +553,8 @@ function Cr({
|
|
|
565
553
|
);
|
|
566
554
|
}
|
|
567
555
|
}, ie = (o) => {
|
|
568
|
-
const a = JSON.parse(o),
|
|
569
|
-
R("idle"), F("light"), g(
|
|
556
|
+
const a = JSON.parse(o), k = j(a), P = L(k);
|
|
557
|
+
R("idle"), F("light"), g(k), _(JSON.stringify(P, null, 2));
|
|
570
558
|
}, Ee = () => {
|
|
571
559
|
try {
|
|
572
560
|
ie(D);
|
|
@@ -576,8 +564,8 @@ function Cr({
|
|
|
576
564
|
);
|
|
577
565
|
}
|
|
578
566
|
}, ze = async (o) => {
|
|
579
|
-
var
|
|
580
|
-
const a = (
|
|
567
|
+
var k;
|
|
568
|
+
const a = (k = o.target.files) == null ? void 0 : k[0];
|
|
581
569
|
if (o.target.value = "", !!a)
|
|
582
570
|
try {
|
|
583
571
|
ie(await gr(a));
|
|
@@ -590,14 +578,14 @@ function Cr({
|
|
|
590
578
|
return /* @__PURE__ */ d(
|
|
591
579
|
"div",
|
|
592
580
|
{
|
|
593
|
-
className:
|
|
581
|
+
className: q(
|
|
594
582
|
"flex min-h-0 flex-1 flex-col bg-background text-foreground",
|
|
595
583
|
l
|
|
596
584
|
),
|
|
597
585
|
style: Te,
|
|
598
586
|
children: [
|
|
599
587
|
/* @__PURE__ */ d("header", { className: "flex h-11 shrink-0 items-start gap-3 border-b border-border/60 px-4 pt-2", children: [
|
|
600
|
-
/* @__PURE__ */ r("div", { className: "mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-control border border-border/70", children: /* @__PURE__ */ r(
|
|
588
|
+
/* @__PURE__ */ r("div", { className: "mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-control border border-border/70", children: /* @__PURE__ */ r(G, { className: "h-3.5 w-3.5" }) }),
|
|
601
589
|
/* @__PURE__ */ d("div", { className: "min-w-0 flex-1", children: [
|
|
602
590
|
/* @__PURE__ */ r("h2", { className: "truncate text-[13px] font-semibold leading-tight", children: "Brand Studio" }),
|
|
603
591
|
/* @__PURE__ */ d("p", { className: "truncate text-[11px] leading-tight text-muted-foreground", children: [
|
|
@@ -636,7 +624,7 @@ function Cr({
|
|
|
636
624
|
variant: "ghost",
|
|
637
625
|
onClick: Ae,
|
|
638
626
|
children: [
|
|
639
|
-
/* @__PURE__ */ r(
|
|
627
|
+
/* @__PURE__ */ r(or, { className: "h-3.5 w-3.5" }),
|
|
640
628
|
we === "copied" ? "Copied" : "Copy"
|
|
641
629
|
]
|
|
642
630
|
}
|
|
@@ -666,7 +654,7 @@ function Cr({
|
|
|
666
654
|
ariaLabel: "Brand spec",
|
|
667
655
|
value: D,
|
|
668
656
|
onValueChange: (o) => {
|
|
669
|
-
|
|
657
|
+
_(o), R("idle");
|
|
670
658
|
},
|
|
671
659
|
language: "json",
|
|
672
660
|
embedded: !0,
|
|
@@ -705,16 +693,16 @@ function Cr({
|
|
|
705
693
|
]
|
|
706
694
|
}
|
|
707
695
|
),
|
|
708
|
-
|
|
696
|
+
x && /* @__PURE__ */ d(
|
|
709
697
|
C,
|
|
710
698
|
{
|
|
711
699
|
type: "button",
|
|
712
700
|
size: "xs",
|
|
713
701
|
variant: "ghost",
|
|
714
702
|
onClick: Oe,
|
|
715
|
-
disabled:
|
|
703
|
+
disabled: V,
|
|
716
704
|
children: [
|
|
717
|
-
/* @__PURE__ */ r(
|
|
705
|
+
/* @__PURE__ */ r(rr, { className: "h-3.5 w-3.5" }),
|
|
718
706
|
"No config"
|
|
719
707
|
]
|
|
720
708
|
}
|
|
@@ -725,9 +713,9 @@ function Cr({
|
|
|
725
713
|
type: "button",
|
|
726
714
|
size: "xs",
|
|
727
715
|
onClick: Pe,
|
|
728
|
-
disabled: !f ||
|
|
716
|
+
disabled: !f || V || !!I || !y,
|
|
729
717
|
children: [
|
|
730
|
-
|
|
718
|
+
V ? /* @__PURE__ */ r(le, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ r(er, { className: "h-3.5 w-3.5" }),
|
|
731
719
|
"Save"
|
|
732
720
|
]
|
|
733
721
|
}
|
|
@@ -755,7 +743,7 @@ function Cr({
|
|
|
755
743
|
"button",
|
|
756
744
|
{
|
|
757
745
|
type: "button",
|
|
758
|
-
className:
|
|
746
|
+
className: q(
|
|
759
747
|
"h-full px-2.5 text-[12px] capitalize transition-colors",
|
|
760
748
|
T === o ? "bg-muted text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
761
749
|
),
|
|
@@ -768,16 +756,16 @@ function Cr({
|
|
|
768
756
|
I && /* @__PURE__ */ r("div", { className: "border-b border-destructive/20 bg-destructive/5 px-4 py-2 text-[12px] text-destructive", children: I }),
|
|
769
757
|
t ? /* @__PURE__ */ r("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ r(le, { className: "h-4 w-4 animate-spin text-muted-foreground" }) }) : c ? /* @__PURE__ */ r("div", { className: "p-4 text-[13px] text-muted-foreground", children: c }) : f && p ? /* @__PURE__ */ d(Le, { defaultValue: "style", className: "flex min-h-0 flex-1 flex-col", children: [
|
|
770
758
|
/* @__PURE__ */ r("div", { className: "shrink-0 px-4 pt-3", children: /* @__PURE__ */ d($e, { variant: "underline", className: "w-full gap-5", children: [
|
|
771
|
-
/* @__PURE__ */ r(
|
|
772
|
-
/* @__PURE__ */ r(
|
|
773
|
-
/* @__PURE__ */ r(
|
|
759
|
+
/* @__PURE__ */ r(U, { value: "style", children: "Style" }),
|
|
760
|
+
/* @__PURE__ */ r(U, { value: "surfaces", children: "Surfaces" }),
|
|
761
|
+
/* @__PURE__ */ r(U, { value: "data", children: "Data" })
|
|
774
762
|
] }) }),
|
|
775
763
|
/* @__PURE__ */ d(_e, { className: "min-h-0 flex-1", children: [
|
|
776
|
-
/* @__PURE__ */ d(
|
|
764
|
+
/* @__PURE__ */ d(M, { value: "style", className: "m-0 p-4", children: [
|
|
777
765
|
/* @__PURE__ */ r(
|
|
778
766
|
N,
|
|
779
767
|
{
|
|
780
|
-
icon:
|
|
768
|
+
icon: G,
|
|
781
769
|
title: "Presets",
|
|
782
770
|
description: "Start from a full light and dark appearance.",
|
|
783
771
|
children: /* @__PURE__ */ r("div", { className: "grid grid-cols-1 gap-2", children: Ne.map((o) => /* @__PURE__ */ d(
|
|
@@ -819,7 +807,7 @@ function Cr({
|
|
|
819
807
|
/* @__PURE__ */ r(
|
|
820
808
|
N,
|
|
821
809
|
{
|
|
822
|
-
icon:
|
|
810
|
+
icon: G,
|
|
823
811
|
title: "Color",
|
|
824
812
|
description: `Editing the ${T} scheme.`,
|
|
825
813
|
children: /* @__PURE__ */ r("div", { className: "grid grid-cols-2 gap-2", children: dr.map(([o, a]) => /* @__PURE__ */ r(
|
|
@@ -827,8 +815,8 @@ function Cr({
|
|
|
827
815
|
{
|
|
828
816
|
label: a,
|
|
829
817
|
value: p.tokens.color[o],
|
|
830
|
-
onChange: (
|
|
831
|
-
pe(P, o,
|
|
818
|
+
onChange: (k) => b((P) => {
|
|
819
|
+
pe(P, o, k);
|
|
832
820
|
})
|
|
833
821
|
},
|
|
834
822
|
o
|
|
@@ -865,7 +853,7 @@ function Cr({
|
|
|
865
853
|
}
|
|
866
854
|
),
|
|
867
855
|
/* @__PURE__ */ r(
|
|
868
|
-
|
|
856
|
+
X,
|
|
869
857
|
{
|
|
870
858
|
label: "Density",
|
|
871
859
|
value: p.tokens.typography.density,
|
|
@@ -884,11 +872,11 @@ function Cr({
|
|
|
884
872
|
}
|
|
885
873
|
)
|
|
886
874
|
] }),
|
|
887
|
-
/* @__PURE__ */ d(
|
|
875
|
+
/* @__PURE__ */ d(M, { value: "surfaces", className: "m-0 p-4", children: [
|
|
888
876
|
/* @__PURE__ */ d(
|
|
889
877
|
N,
|
|
890
878
|
{
|
|
891
|
-
icon:
|
|
879
|
+
icon: Qe,
|
|
892
880
|
title: "Layout",
|
|
893
881
|
description: "Canvas, grid, and card rhythm for embedded dashboards.",
|
|
894
882
|
children: [
|
|
@@ -943,7 +931,7 @@ function Cr({
|
|
|
943
931
|
min: 0,
|
|
944
932
|
max: 12,
|
|
945
933
|
onChange: (o) => b((a) => {
|
|
946
|
-
|
|
934
|
+
W(a, "control", o);
|
|
947
935
|
})
|
|
948
936
|
}
|
|
949
937
|
),
|
|
@@ -956,7 +944,7 @@ function Cr({
|
|
|
956
944
|
min: 0,
|
|
957
945
|
max: 12,
|
|
958
946
|
onChange: (o) => b((a) => {
|
|
959
|
-
|
|
947
|
+
W(a, "card", o);
|
|
960
948
|
})
|
|
961
949
|
}
|
|
962
950
|
),
|
|
@@ -969,7 +957,7 @@ function Cr({
|
|
|
969
957
|
min: 0,
|
|
970
958
|
max: 12,
|
|
971
959
|
onChange: (o) => b((a) => {
|
|
972
|
-
|
|
960
|
+
W(a, "table", o);
|
|
973
961
|
})
|
|
974
962
|
}
|
|
975
963
|
)
|
|
@@ -1032,7 +1020,7 @@ function Cr({
|
|
|
1032
1020
|
}
|
|
1033
1021
|
)
|
|
1034
1022
|
] }),
|
|
1035
|
-
/* @__PURE__ */ d(
|
|
1023
|
+
/* @__PURE__ */ d(M, { value: "data", className: "m-0 p-4", children: [
|
|
1036
1024
|
/* @__PURE__ */ d(
|
|
1037
1025
|
N,
|
|
1038
1026
|
{
|
|
@@ -1045,8 +1033,8 @@ function Cr({
|
|
|
1045
1033
|
{
|
|
1046
1034
|
label: `Series ${o + 1}`,
|
|
1047
1035
|
value: p.components.chart.palette[o] || "#000000",
|
|
1048
|
-
onChange: (a) => b((
|
|
1049
|
-
|
|
1036
|
+
onChange: (a) => b((k) => {
|
|
1037
|
+
k.components.chart.palette[o] = a;
|
|
1050
1038
|
})
|
|
1051
1039
|
},
|
|
1052
1040
|
o
|
|
@@ -1085,7 +1073,7 @@ function Cr({
|
|
|
1085
1073
|
children: [
|
|
1086
1074
|
/* @__PURE__ */ d("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
1087
1075
|
/* @__PURE__ */ r(
|
|
1088
|
-
|
|
1076
|
+
X,
|
|
1089
1077
|
{
|
|
1090
1078
|
label: "Density",
|
|
1091
1079
|
value: p.components.table.density,
|
|
@@ -1100,7 +1088,7 @@ function Cr({
|
|
|
1100
1088
|
}
|
|
1101
1089
|
),
|
|
1102
1090
|
/* @__PURE__ */ r(
|
|
1103
|
-
|
|
1091
|
+
X,
|
|
1104
1092
|
{
|
|
1105
1093
|
label: "Cell wrap",
|
|
1106
1094
|
value: p.components.table.cell.wrap,
|
|
@@ -1137,7 +1125,7 @@ function Cr({
|
|
|
1137
1125
|
)
|
|
1138
1126
|
] }),
|
|
1139
1127
|
/* @__PURE__ */ r(
|
|
1140
|
-
|
|
1128
|
+
Z,
|
|
1141
1129
|
{
|
|
1142
1130
|
label: "Zebra rows",
|
|
1143
1131
|
checked: p.components.table.row.zebra,
|
|
@@ -1147,7 +1135,7 @@ function Cr({
|
|
|
1147
1135
|
}
|
|
1148
1136
|
),
|
|
1149
1137
|
/* @__PURE__ */ r(
|
|
1150
|
-
|
|
1138
|
+
Z,
|
|
1151
1139
|
{
|
|
1152
1140
|
label: "Sticky headers",
|
|
1153
1141
|
checked: p.components.table.header.sticky,
|
|
@@ -1157,7 +1145,7 @@ function Cr({
|
|
|
1157
1145
|
}
|
|
1158
1146
|
),
|
|
1159
1147
|
/* @__PURE__ */ r(
|
|
1160
|
-
|
|
1148
|
+
Z,
|
|
1161
1149
|
{
|
|
1162
1150
|
label: "Uppercase headers",
|
|
1163
1151
|
checked: p.components.table.header.uppercase,
|
|
@@ -1199,23 +1187,23 @@ function lr({
|
|
|
1199
1187
|
onChange: n
|
|
1200
1188
|
}) {
|
|
1201
1189
|
var u;
|
|
1202
|
-
const t = (u =
|
|
1190
|
+
const t = (u = H.find((c) => c.value === e)) == null ? void 0 : u.id;
|
|
1203
1191
|
return /* @__PURE__ */ d("div", { children: [
|
|
1204
1192
|
/* @__PURE__ */ r(E, { className: "mb-1 block text-[11px] font-normal text-muted-foreground", children: "Font family" }),
|
|
1205
1193
|
/* @__PURE__ */ d("div", { className: "grid grid-cols-[minmax(0,1fr)_150px] gap-2", children: [
|
|
1206
1194
|
/* @__PURE__ */ d(
|
|
1207
|
-
|
|
1195
|
+
ke,
|
|
1208
1196
|
{
|
|
1209
1197
|
value: t,
|
|
1210
1198
|
onValueChange: (c) => {
|
|
1211
|
-
const l =
|
|
1199
|
+
const l = H.find(
|
|
1212
1200
|
(i) => i.id === c
|
|
1213
1201
|
);
|
|
1214
1202
|
l && n(l.value);
|
|
1215
1203
|
},
|
|
1216
1204
|
children: [
|
|
1217
|
-
/* @__PURE__ */ r(
|
|
1218
|
-
/* @__PURE__ */ r(ve, { children:
|
|
1205
|
+
/* @__PURE__ */ r(xe, { size: "xs", "aria-label": "Font family preset", children: /* @__PURE__ */ r(ye, { placeholder: "Select font" }) }),
|
|
1206
|
+
/* @__PURE__ */ r(ve, { children: H.map((c) => /* @__PURE__ */ r(Ce, { value: c.id, children: c.label }, c.id)) })
|
|
1219
1207
|
]
|
|
1220
1208
|
}
|
|
1221
1209
|
),
|
|
@@ -1236,14 +1224,14 @@ function v({
|
|
|
1236
1224
|
value: t,
|
|
1237
1225
|
onChange: u
|
|
1238
1226
|
}) {
|
|
1239
|
-
const [c, l] = m.useState(!1), [i,
|
|
1240
|
-
l(g), g &&
|
|
1227
|
+
const [c, l] = m.useState(!1), [i, y] = m.useState(t), x = sr(t), S = t !== i, f = (g) => {
|
|
1228
|
+
l(g), g && y(t);
|
|
1241
1229
|
};
|
|
1242
1230
|
return /* @__PURE__ */ d("div", { className: "block", children: [
|
|
1243
1231
|
/* @__PURE__ */ d("div", { className: "mb-1 flex items-center gap-1", children: [
|
|
1244
1232
|
/* @__PURE__ */ r(E, { className: "text-[11px] font-normal text-muted-foreground", children: e }),
|
|
1245
|
-
n ? /* @__PURE__ */ r(
|
|
1246
|
-
/* @__PURE__ */ r(
|
|
1233
|
+
n ? /* @__PURE__ */ r(K, { children: /* @__PURE__ */ d(Q, { children: [
|
|
1234
|
+
/* @__PURE__ */ r(ee, { asChild: !0, children: /* @__PURE__ */ r(
|
|
1247
1235
|
"button",
|
|
1248
1236
|
{
|
|
1249
1237
|
type: "button",
|
|
@@ -1252,7 +1240,7 @@ function v({
|
|
|
1252
1240
|
children: /* @__PURE__ */ r(he, { className: "h-3 w-3" })
|
|
1253
1241
|
}
|
|
1254
1242
|
) }),
|
|
1255
|
-
/* @__PURE__ */ r(
|
|
1243
|
+
/* @__PURE__ */ r(re, { side: "top", className: "max-w-64", children: n })
|
|
1256
1244
|
] }) }) : null
|
|
1257
1245
|
] }),
|
|
1258
1246
|
/* @__PURE__ */ d("div", { className: "flex h-7 items-center overflow-hidden rounded-control border border-input bg-background", children: [
|
|
@@ -1286,7 +1274,7 @@ function v({
|
|
|
1286
1274
|
{
|
|
1287
1275
|
"aria-label": `${e} native color picker`,
|
|
1288
1276
|
type: "color",
|
|
1289
|
-
value:
|
|
1277
|
+
value: x,
|
|
1290
1278
|
onChange: (g) => u(g.target.value),
|
|
1291
1279
|
className: "absolute inset-0 h-full w-full cursor-pointer opacity-0"
|
|
1292
1280
|
}
|
|
@@ -1298,8 +1286,8 @@ function v({
|
|
|
1298
1286
|
/* @__PURE__ */ d("div", { className: "min-w-0 flex-1", children: [
|
|
1299
1287
|
/* @__PURE__ */ d("div", { className: "mb-1 flex items-center justify-between gap-2", children: [
|
|
1300
1288
|
/* @__PURE__ */ r(E, { className: "block text-[11px] font-normal text-muted-foreground", children: "Color value" }),
|
|
1301
|
-
/* @__PURE__ */ r(
|
|
1302
|
-
/* @__PURE__ */ r(
|
|
1289
|
+
/* @__PURE__ */ r(K, { children: /* @__PURE__ */ d(Q, { children: [
|
|
1290
|
+
/* @__PURE__ */ r(ee, { asChild: !0, children: /* @__PURE__ */ r(
|
|
1303
1291
|
"button",
|
|
1304
1292
|
{
|
|
1305
1293
|
type: "button",
|
|
@@ -1310,11 +1298,11 @@ function v({
|
|
|
1310
1298
|
children: /* @__PURE__ */ r(me, { className: "h-3 w-3" })
|
|
1311
1299
|
}
|
|
1312
1300
|
) }),
|
|
1313
|
-
/* @__PURE__ */ r(
|
|
1301
|
+
/* @__PURE__ */ r(re, { side: "top", children: "Reset to previous value" })
|
|
1314
1302
|
] }) })
|
|
1315
1303
|
] }),
|
|
1316
1304
|
/* @__PURE__ */ r(
|
|
1317
|
-
|
|
1305
|
+
oe,
|
|
1318
1306
|
{
|
|
1319
1307
|
size: "xs",
|
|
1320
1308
|
"aria-label": `${e} popover color value`,
|
|
@@ -1330,7 +1318,7 @@ function v({
|
|
|
1330
1318
|
{
|
|
1331
1319
|
type: "button",
|
|
1332
1320
|
"aria-label": `Set ${e} to ${g}`,
|
|
1333
|
-
className:
|
|
1321
|
+
className: q(
|
|
1334
1322
|
"h-6 rounded-control border border-border/70 shadow-sm",
|
|
1335
1323
|
t.toLowerCase() === g && "ring-2 ring-ring"
|
|
1336
1324
|
),
|
|
@@ -1344,7 +1332,7 @@ function v({
|
|
|
1344
1332
|
)
|
|
1345
1333
|
] }),
|
|
1346
1334
|
/* @__PURE__ */ r(
|
|
1347
|
-
|
|
1335
|
+
oe,
|
|
1348
1336
|
{
|
|
1349
1337
|
size: "xs",
|
|
1350
1338
|
"aria-label": `${e} color value`,
|
|
@@ -1358,9 +1346,9 @@ function v({
|
|
|
1358
1346
|
}
|
|
1359
1347
|
function sr(e) {
|
|
1360
1348
|
const n = qe(e);
|
|
1361
|
-
return n ? `#${
|
|
1349
|
+
return n ? `#${Y(n.r)}${Y(n.g)}${Y(n.b)}` : "#000000";
|
|
1362
1350
|
}
|
|
1363
|
-
function
|
|
1351
|
+
function Y(e) {
|
|
1364
1352
|
return Math.round(e).toString(16).padStart(2, "0");
|
|
1365
1353
|
}
|
|
1366
1354
|
function w({
|
|
@@ -1382,8 +1370,8 @@ function w({
|
|
|
1382
1370
|
children: e
|
|
1383
1371
|
}
|
|
1384
1372
|
),
|
|
1385
|
-
n ? /* @__PURE__ */ r(
|
|
1386
|
-
/* @__PURE__ */ r(
|
|
1373
|
+
n ? /* @__PURE__ */ r(K, { children: /* @__PURE__ */ d(Q, { children: [
|
|
1374
|
+
/* @__PURE__ */ r(ee, { asChild: !0, children: /* @__PURE__ */ r(
|
|
1387
1375
|
"button",
|
|
1388
1376
|
{
|
|
1389
1377
|
type: "button",
|
|
@@ -1392,11 +1380,11 @@ function w({
|
|
|
1392
1380
|
children: /* @__PURE__ */ r(he, { className: "h-3 w-3" })
|
|
1393
1381
|
}
|
|
1394
1382
|
) }),
|
|
1395
|
-
/* @__PURE__ */ r(
|
|
1383
|
+
/* @__PURE__ */ r(re, { side: "top", className: "max-w-56", children: n })
|
|
1396
1384
|
] }) }) : null
|
|
1397
1385
|
] }),
|
|
1398
1386
|
/* @__PURE__ */ r(
|
|
1399
|
-
|
|
1387
|
+
oe,
|
|
1400
1388
|
{
|
|
1401
1389
|
id: i,
|
|
1402
1390
|
size: "xs",
|
|
@@ -1404,15 +1392,15 @@ function w({
|
|
|
1404
1392
|
min: u,
|
|
1405
1393
|
max: c,
|
|
1406
1394
|
value: t,
|
|
1407
|
-
onChange: (
|
|
1408
|
-
const
|
|
1409
|
-
Number.isNaN(
|
|
1395
|
+
onChange: (y) => {
|
|
1396
|
+
const x = Number(y.target.value);
|
|
1397
|
+
Number.isNaN(x) || l(x);
|
|
1410
1398
|
}
|
|
1411
1399
|
}
|
|
1412
1400
|
)
|
|
1413
1401
|
] });
|
|
1414
1402
|
}
|
|
1415
|
-
function
|
|
1403
|
+
function X({
|
|
1416
1404
|
label: e,
|
|
1417
1405
|
value: n,
|
|
1418
1406
|
options: t,
|
|
@@ -1420,13 +1408,13 @@ function Z({
|
|
|
1420
1408
|
}) {
|
|
1421
1409
|
return /* @__PURE__ */ d("div", { children: [
|
|
1422
1410
|
/* @__PURE__ */ r(E, { className: "mb-1 block text-[11px] font-normal text-muted-foreground", children: e }),
|
|
1423
|
-
/* @__PURE__ */ d(
|
|
1424
|
-
/* @__PURE__ */ r(
|
|
1411
|
+
/* @__PURE__ */ d(ke, { value: n, onValueChange: u, children: [
|
|
1412
|
+
/* @__PURE__ */ r(xe, { size: "xs", children: /* @__PURE__ */ r(ye, {}) }),
|
|
1425
1413
|
/* @__PURE__ */ r(ve, { children: t.map(([c, l]) => /* @__PURE__ */ r(Ce, { value: c, children: l }, c)) })
|
|
1426
1414
|
] })
|
|
1427
1415
|
] });
|
|
1428
1416
|
}
|
|
1429
|
-
function
|
|
1417
|
+
function Z({
|
|
1430
1418
|
label: e,
|
|
1431
1419
|
checked: n,
|
|
1432
1420
|
onCheckedChange: t
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s, Fragment as X } from "react/jsx-runtime";
|
|
2
2
|
import ee, { useState as h, useCallback as F, useEffect as ae, useMemo as H } from "react";
|
|
3
|
-
import { u as re, b as te, c as se, d as ne, e as le, f as oe, R as W, g as O, C as ie, h as ce, i as de, j as ue, k as _, l as R, m as me, n as fe, o as N } from "./index-
|
|
4
|
-
import { a as S, L as G, P as he, b as pe, B as j, d as ge, e as V, f as ve } from "./switch-
|
|
3
|
+
import { u as re, b as te, c as se, d as ne, e as le, f as oe, R as W, g as O, C as ie, h as ce, i as de, j as ue, k as _, l as R, m as me, n as fe, o as N } from "./index-DX_0OcRv.js";
|
|
4
|
+
import { a as S, L as G, P as he, b as pe, B as j, d as ge, e as V, f as ve } from "./switch-DmE_MY3L.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
|
-
import { C as be } from "./chevrons-up-down-
|
|
6
|
+
import { C as be } from "./chevrons-up-down-lahj6tQy.js";
|
|
7
7
|
function we(n = {}) {
|
|
8
8
|
var C, A, E, L;
|
|
9
9
|
const { authToken: c, tokenProps: e } = re(), p = n.enabled ?? !0, d = (c == null ? void 0 : c.accessToken) ?? null, u = (e == null ? void 0 : e.apiServiceUrl) ?? null, [I, k] = h(!1), [y, b] = h(!1), [m, g] = h(!1), [T, o] = h(null), [v, w] = h(null), P = v || {
|