react-semaphor 0.1.375 → 0.1.377

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