@charisol/plexo-sdk 2.0.22 → 2.0.24

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.
@@ -28,20 +28,20 @@ var b = () => ({
28
28
  buttonPaddingRight: "14px",
29
29
  buttonFontSize: "13px",
30
30
  buttonFontWeight: "700"
31
- }), x = (e) => e.type === "form_container" ? {
31
+ }), ne = (e) => e.type === "form_container" ? {
32
32
  ...e,
33
33
  style: {
34
34
  ...b(),
35
35
  ...e.style || {}
36
36
  }
37
- } : e, S = (e) => {
37
+ } : e, x = (e) => {
38
38
  let t = JSON.parse(JSON.stringify(e));
39
39
  return (Array.isArray(t?.body?.rows) ? t.body.rows : []).forEach((e) => {
40
40
  (Array.isArray(e?.columns) ? e.columns : []).forEach((e) => {
41
- e.elements = (Array.isArray(e?.elements) ? e.elements : []).map((e) => x(e));
41
+ e.elements = (Array.isArray(e?.elements) ? e.elements : []).map((e) => ne(e));
42
42
  });
43
43
  }), t;
44
- }, C = ee((n) => ({
44
+ }, re = ee((n) => ({
45
45
  template: { body: {
46
46
  style: { background: "#0b0f19" },
47
47
  rows: []
@@ -91,7 +91,7 @@ var b = () => ({
91
91
  hydrateTemplate: (e) => n(() => ({
92
92
  past: [],
93
93
  future: [],
94
- template: S(e),
94
+ template: x(e),
95
95
  selectedElementId: null,
96
96
  selectedRowId: null,
97
97
  selectedColumnId: null
@@ -187,7 +187,7 @@ var b = () => ({
187
187
  return null;
188
188
  }, c = s(r.body.rows, i);
189
189
  if (!c) return {};
190
- let l = x(a), u = t(c);
190
+ let l = ne(a), u = t(c);
191
191
  return c.elements.push(l), c.childOrder = e(u, l.id, o), {
192
192
  past: [...n.past, JSON.parse(JSON.stringify(n.template))],
193
193
  future: [],
@@ -612,10 +612,10 @@ var b = () => ({
612
612
  template: l
613
613
  };
614
614
  })
615
- })), w = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), T = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), D = (e) => {
616
- let t = E(e);
615
+ })), S = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), C = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), w = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ie = (e) => {
616
+ let t = w(e);
617
617
  return t.charAt(0).toUpperCase() + t.slice(1);
618
- }, O = {
618
+ }, T = {
619
619
  xmlns: "http://www.w3.org/2000/svg",
620
620
  width: 24,
621
621
  height: 24,
@@ -625,11 +625,11 @@ var b = () => ({
625
625
  strokeWidth: 2,
626
626
  strokeLinecap: "round",
627
627
  strokeLinejoin: "round"
628
- }, k = (e) => {
628
+ }, ae = (e) => {
629
629
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
630
630
  return !1;
631
- }, A = s({});
632
- function ne({ children: e, size: t, color: n, strokeWidth: r, absoluteStrokeWidth: i, className: a }) {
631
+ }, E = s({});
632
+ function D({ children: e, size: t, color: n, strokeWidth: r, absoluteStrokeWidth: i, className: a }) {
633
633
  let o = m(() => ({
634
634
  size: t,
635
635
  color: n,
@@ -643,30 +643,30 @@ function ne({ children: e, size: t, color: n, strokeWidth: r, absoluteStrokeWidt
643
643
  i,
644
644
  a
645
645
  ]);
646
- return c(A.Provider, { value: o }, e);
646
+ return c(E.Provider, { value: o }, e);
647
647
  }
648
- var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, l) => {
649
- let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = j() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
648
+ var O = () => d(E), k = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, l) => {
649
+ let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = O() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
650
650
  return c("svg", {
651
651
  ref: l,
652
- ...O,
653
- width: t ?? u ?? O.width,
654
- height: t ?? u ?? O.height,
652
+ ...T,
653
+ width: t ?? u ?? T.width,
654
+ height: t ?? u ?? T.height,
655
655
  stroke: e ?? p,
656
656
  strokeWidth: h,
657
- className: w("lucide", m, i),
658
- ...!a && !k(s) && { "aria-hidden": "true" },
657
+ className: S("lucide", m, i),
658
+ ...!a && !ae(s) && { "aria-hidden": "true" },
659
659
  ...s
660
660
  }, [...o.map(([e, t]) => c(e, t)), ...Array.isArray(a) ? a : [a]]);
661
- }), M = (e, t) => {
662
- let n = l(({ className: n, ...r }, i) => c(re, {
661
+ }), A = (e, t) => {
662
+ let n = l(({ className: n, ...r }, i) => c(k, {
663
663
  ref: i,
664
664
  iconNode: t,
665
- className: w(`lucide-${T(D(e))}`, `lucide-${e}`, n),
665
+ className: S(`lucide-${C(ie(e))}`, `lucide-${e}`, n),
666
666
  ...r
667
667
  }));
668
- return n.displayName = D(e), n;
669
- }, N = M("align-center-vertical", [
668
+ return n.displayName = ie(e), n;
669
+ }, oe = A("align-center-vertical", [
670
670
  ["path", {
671
671
  d: "M12 2v20",
672
672
  key: "t6zp3m"
@@ -687,7 +687,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
687
687
  d: "M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",
688
688
  key: "1euafb"
689
689
  }]
690
- ]), P = M("align-end-vertical", [
690
+ ]), se = A("align-end-vertical", [
691
691
  ["rect", {
692
692
  width: "16",
693
693
  height: "6",
@@ -708,7 +708,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
708
708
  d: "M22 22V2",
709
709
  key: "12ipfv"
710
710
  }]
711
- ]), F = M("align-horizontal-distribute-center", [
711
+ ]), j = A("align-horizontal-distribute-center", [
712
712
  ["rect", {
713
713
  width: "6",
714
714
  height: "14",
@@ -741,7 +741,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
741
741
  d: "M7 5V2",
742
742
  key: "liy1u9"
743
743
  }]
744
- ]), ie = M("align-start-vertical", [
744
+ ]), M = A("align-start-vertical", [
745
745
  ["rect", {
746
746
  width: "9",
747
747
  height: "6",
@@ -762,7 +762,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
762
762
  d: "M2 2v20",
763
763
  key: "1ivd8o"
764
764
  }]
765
- ]), I = M("align-vertical-distribute-center", [
765
+ ]), N = A("align-vertical-distribute-center", [
766
766
  ["path", {
767
767
  d: "M22 17h-3",
768
768
  key: "1lwga1"
@@ -795,7 +795,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
795
795
  rx: "2",
796
796
  key: "we8e9z"
797
797
  }]
798
- ]), L = M("anchor", [
798
+ ]), ce = A("anchor", [
799
799
  ["path", {
800
800
  d: "M12 6v16",
801
801
  key: "nqf5sj"
@@ -814,7 +814,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
814
814
  r: "2",
815
815
  key: "muu5ef"
816
816
  }]
817
- ]), ae = M("arrow-down-to-line", [
817
+ ]), P = A("arrow-down-to-line", [
818
818
  ["path", {
819
819
  d: "M12 17V3",
820
820
  key: "1cwfxf"
@@ -827,34 +827,34 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
827
827
  d: "M19 21H5",
828
828
  key: "150jfl"
829
829
  }]
830
- ]), R = M("arrow-down", [["path", {
830
+ ]), F = A("arrow-down", [["path", {
831
831
  d: "M12 5v14",
832
832
  key: "s699le"
833
833
  }], ["path", {
834
834
  d: "m19 12-7 7-7-7",
835
835
  key: "1idqje"
836
- }]]), z = M("arrow-left", [["path", {
836
+ }]]), le = A("arrow-left", [["path", {
837
837
  d: "m12 19-7-7 7-7",
838
838
  key: "1l729n"
839
839
  }], ["path", {
840
840
  d: "M19 12H5",
841
841
  key: "x3x0zl"
842
- }]]), oe = M("arrow-right", [["path", {
842
+ }]]), I = A("arrow-right", [["path", {
843
843
  d: "M5 12h14",
844
844
  key: "1ays0h"
845
845
  }], ["path", {
846
846
  d: "m12 5 7 7-7 7",
847
847
  key: "xquz4c"
848
- }]]), B = M("arrow-up", [["path", {
848
+ }]]), L = A("arrow-up", [["path", {
849
849
  d: "m5 12 7-7 7 7",
850
850
  key: "hav0vg"
851
851
  }], ["path", {
852
852
  d: "M12 19V5",
853
853
  key: "x0mq9r"
854
- }]]), V = M("bold", [["path", {
854
+ }]]), ue = A("bold", [["path", {
855
855
  d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
856
856
  key: "mg9rjx"
857
- }]]), H = M("box", [
857
+ }]]), R = A("box", [
858
858
  ["path", {
859
859
  d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
860
860
  key: "hh9hay"
@@ -867,7 +867,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
867
867
  d: "M12 22V12",
868
868
  key: "d0xqtd"
869
869
  }]
870
- ]), U = M("boxes", [
870
+ ]), z = A("boxes", [
871
871
  ["path", {
872
872
  d: "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",
873
873
  key: "lc1i9w"
@@ -916,7 +916,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
916
916
  d: "M12 13.5V8",
917
917
  key: "1io7kd"
918
918
  }]
919
- ]), W = M("calendar-check", [
919
+ ]), B = A("calendar-check", [
920
920
  ["path", {
921
921
  d: "M8 2v4",
922
922
  key: "1cmpym"
@@ -941,7 +941,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
941
941
  d: "m9 16 2 2 4-4",
942
942
  key: "19s6y9"
943
943
  }]
944
- ]), G = M("calendar", [
944
+ ]), V = A("calendar", [
945
945
  ["path", {
946
946
  d: "M8 2v4",
947
947
  key: "1cmpym"
@@ -962,31 +962,31 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
962
962
  d: "M3 10h18",
963
963
  key: "8toen8"
964
964
  }]
965
- ]), K = M("check", [["path", {
965
+ ]), H = A("check", [["path", {
966
966
  d: "M20 6 9 17l-5-5",
967
967
  key: "1gmf2c"
968
- }]]), q = M("chevron-down", [["path", {
968
+ }]]), U = A("chevron-down", [["path", {
969
969
  d: "m6 9 6 6 6-6",
970
970
  key: "qrunsl"
971
- }]]), se = M("chevron-right", [["path", {
971
+ }]]), W = A("chevron-right", [["path", {
972
972
  d: "m9 18 6-6-6-6",
973
973
  key: "mthhwq"
974
- }]]), J = M("chevron-up", [["path", {
974
+ }]]), G = A("chevron-up", [["path", {
975
975
  d: "m18 15-6-6-6 6",
976
976
  key: "153udz"
977
- }]]), ce = M("chevrons-down", [["path", {
977
+ }]]), de = A("chevrons-down", [["path", {
978
978
  d: "m7 6 5 5 5-5",
979
979
  key: "1lc07p"
980
980
  }], ["path", {
981
981
  d: "m7 13 5 5 5-5",
982
982
  key: "1d48rs"
983
- }]]), Y = M("chevrons-up", [["path", {
983
+ }]]), K = A("chevrons-up", [["path", {
984
984
  d: "m17 11-5-5-5 5",
985
985
  key: "e8nh98"
986
986
  }], ["path", {
987
987
  d: "m17 18-5-5-5 5",
988
988
  key: "2avn1x"
989
- }]]), X = M("circle-question-mark", [
989
+ }]]), fe = A("circle-question-mark", [
990
990
  ["circle", {
991
991
  cx: "12",
992
992
  cy: "12",
@@ -1001,7 +1001,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1001
1001
  d: "M12 17h.01",
1002
1002
  key: "p32p05"
1003
1003
  }]
1004
- ]), le = M("clock", [["circle", {
1004
+ ]), q = A("clock", [["circle", {
1005
1005
  cx: "12",
1006
1006
  cy: "12",
1007
1007
  r: "10",
@@ -1009,7 +1009,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1009
1009
  }], ["path", {
1010
1010
  d: "M12 6v6l4 2",
1011
1011
  key: "mmk7yg"
1012
- }]]), ue = M("code-xml", [
1012
+ }]]), J = A("code-xml", [
1013
1013
  ["path", {
1014
1014
  d: "m18 16 4-4-4-4",
1015
1015
  key: "1inbqp"
@@ -1022,7 +1022,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1022
1022
  d: "m14.5 4-5 16",
1023
1023
  key: "e7oirm"
1024
1024
  }]
1025
- ]), de = M("columns-2", [["rect", {
1025
+ ]), pe = A("columns-2", [["rect", {
1026
1026
  width: "18",
1027
1027
  height: "18",
1028
1028
  x: "3",
@@ -1032,7 +1032,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1032
1032
  }], ["path", {
1033
1033
  d: "M12 3v18",
1034
1034
  key: "108xh3"
1035
- }]]), Z = M("columns-3", [
1035
+ }]]), me = A("columns-3", [
1036
1036
  ["rect", {
1037
1037
  width: "18",
1038
1038
  height: "18",
@@ -1049,10 +1049,10 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1049
1049
  d: "M15 3v18",
1050
1050
  key: "14nvp0"
1051
1051
  }]
1052
- ]), fe = M("command", [["path", {
1052
+ ]), he = A("command", [["path", {
1053
1053
  d: "M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",
1054
1054
  key: "11bfej"
1055
- }]]), pe = M("copy", [["rect", {
1055
+ }]]), Y = A("copy", [["rect", {
1056
1056
  width: "14",
1057
1057
  height: "14",
1058
1058
  x: "8",
@@ -1063,7 +1063,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1063
1063
  }], ["path", {
1064
1064
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
1065
1065
  key: "zix9uf"
1066
- }]]), Q = M("credit-card", [["rect", {
1066
+ }]]), ge = A("credit-card", [["rect", {
1067
1067
  width: "20",
1068
1068
  height: "14",
1069
1069
  x: "2",
@@ -1076,7 +1076,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1076
1076
  y1: "10",
1077
1077
  y2: "10",
1078
1078
  key: "1b3vmo"
1079
- }]]), me = M("ellipsis-vertical", [
1079
+ }]]), _e = A("ellipsis-vertical", [
1080
1080
  ["circle", {
1081
1081
  cx: "12",
1082
1082
  cy: "12",
@@ -1095,7 +1095,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1095
1095
  r: "1",
1096
1096
  key: "lyex9k"
1097
1097
  }]
1098
- ]), he = M("ellipsis", [
1098
+ ]), X = A("ellipsis", [
1099
1099
  ["circle", {
1100
1100
  cx: "12",
1101
1101
  cy: "12",
@@ -1114,7 +1114,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1114
1114
  r: "1",
1115
1115
  key: "1pcz8c"
1116
1116
  }]
1117
- ]), ge = M("external-link", [
1117
+ ]), ve = A("external-link", [
1118
1118
  ["path", {
1119
1119
  d: "M15 3h6v6",
1120
1120
  key: "1q9fwt"
@@ -1127,7 +1127,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1127
1127
  d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
1128
1128
  key: "a6xqqp"
1129
1129
  }]
1130
- ]), _e = M("eye-off", [
1130
+ ]), ye = A("eye-off", [
1131
1131
  ["path", {
1132
1132
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
1133
1133
  key: "ct8e1f"
@@ -1144,7 +1144,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1144
1144
  d: "m2 2 20 20",
1145
1145
  key: "1ooewy"
1146
1146
  }]
1147
- ]), ve = M("eye", [["path", {
1147
+ ]), be = A("eye", [["path", {
1148
1148
  d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
1149
1149
  key: "1nclc0"
1150
1150
  }], ["circle", {
@@ -1152,7 +1152,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1152
1152
  cy: "12",
1153
1153
  r: "3",
1154
1154
  key: "1v7zrd"
1155
- }]]), ye = M("file-code-corner", [
1155
+ }]]), xe = A("file-code-corner", [
1156
1156
  ["path", {
1157
1157
  d: "M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",
1158
1158
  key: "1wthlu"
@@ -1169,7 +1169,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1169
1169
  d: "m9 22 3-3-3-3",
1170
1170
  key: "lsp7cz"
1171
1171
  }]
1172
- ]), be = M("file-text", [
1172
+ ]), Se = A("file-text", [
1173
1173
  ["path", {
1174
1174
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
1175
1175
  key: "1oefj6"
@@ -1190,7 +1190,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1190
1190
  d: "M16 17H8",
1191
1191
  key: "z1uh3a"
1192
1192
  }]
1193
- ]), xe = M("globe", [
1193
+ ]), Ce = A("globe", [
1194
1194
  ["circle", {
1195
1195
  cx: "12",
1196
1196
  cy: "12",
@@ -1205,7 +1205,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1205
1205
  d: "M2 12h20",
1206
1206
  key: "9i4pu4"
1207
1207
  }]
1208
- ]), Se = M("grid-3x3", [
1208
+ ]), we = A("grid-3x3", [
1209
1209
  ["rect", {
1210
1210
  width: "18",
1211
1211
  height: "18",
@@ -1230,7 +1230,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1230
1230
  d: "M15 3v18",
1231
1231
  key: "14nvp0"
1232
1232
  }]
1233
- ]), Ce = M("grip-vertical", [
1233
+ ]), Te = A("grip-vertical", [
1234
1234
  ["circle", {
1235
1235
  cx: "9",
1236
1236
  cy: "12",
@@ -1267,7 +1267,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1267
1267
  r: "1",
1268
1268
  key: "f4zoj3"
1269
1269
  }]
1270
- ]), we = M("group", [
1270
+ ]), Ee = A("group", [
1271
1271
  ["path", {
1272
1272
  d: "M3 7V5c0-1.1.9-2 2-2h2",
1273
1273
  key: "adw53z"
@@ -1300,7 +1300,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1300
1300
  rx: "1",
1301
1301
  key: "1qlmkx"
1302
1302
  }]
1303
- ]), Te = M("hand", [
1303
+ ]), De = A("hand", [
1304
1304
  ["path", {
1305
1305
  d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",
1306
1306
  key: "1fvzgz"
@@ -1317,7 +1317,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1317
1317
  d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",
1318
1318
  key: "1s1gnw"
1319
1319
  }]
1320
- ]), Ee = M("heading", [
1320
+ ]), Z = A("heading", [
1321
1321
  ["path", {
1322
1322
  d: "M6 12h12",
1323
1323
  key: "8npq4p"
@@ -1330,13 +1330,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1330
1330
  d: "M18 20V4",
1331
1331
  key: "o2hl4u"
1332
1332
  }]
1333
- ]), De = M("house", [["path", {
1333
+ ]), Oe = A("house", [["path", {
1334
1334
  d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
1335
1335
  key: "5wwlr5"
1336
1336
  }], ["path", {
1337
1337
  d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
1338
1338
  key: "r6nss1"
1339
- }]]), Oe = M("image", [
1339
+ }]]), ke = A("image", [
1340
1340
  ["rect", {
1341
1341
  width: "18",
1342
1342
  height: "18",
@@ -1356,7 +1356,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1356
1356
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1357
1357
  key: "1xmnt7"
1358
1358
  }]
1359
- ]), ke = M("info", [
1359
+ ]), Ae = A("info", [
1360
1360
  ["circle", {
1361
1361
  cx: "12",
1362
1362
  cy: "12",
@@ -1371,7 +1371,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1371
1371
  d: "M12 8h.01",
1372
1372
  key: "e9boi3"
1373
1373
  }]
1374
- ]), Ae = M("italic", [
1374
+ ]), je = A("italic", [
1375
1375
  ["line", {
1376
1376
  x1: "19",
1377
1377
  x2: "10",
@@ -1393,7 +1393,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1393
1393
  y2: "20",
1394
1394
  key: "uljnxc"
1395
1395
  }]
1396
- ]), je = M("keyboard", [
1396
+ ]), Me = A("keyboard", [
1397
1397
  ["path", {
1398
1398
  d: "M10 8h.01",
1399
1399
  key: "1r9ogq"
@@ -1434,7 +1434,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1434
1434
  rx: "2",
1435
1435
  key: "18n3k1"
1436
1436
  }]
1437
- ]), Me = M("layers", [
1437
+ ]), Ne = A("layers", [
1438
1438
  ["path", {
1439
1439
  d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",
1440
1440
  key: "zw3jo"
@@ -1447,7 +1447,40 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1447
1447
  d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",
1448
1448
  key: "kqbvx6"
1449
1449
  }]
1450
- ]), Ne = M("layout-template", [
1450
+ ]), Pe = A("layout-grid", [
1451
+ ["rect", {
1452
+ width: "7",
1453
+ height: "7",
1454
+ x: "3",
1455
+ y: "3",
1456
+ rx: "1",
1457
+ key: "1g98yp"
1458
+ }],
1459
+ ["rect", {
1460
+ width: "7",
1461
+ height: "7",
1462
+ x: "14",
1463
+ y: "3",
1464
+ rx: "1",
1465
+ key: "6d4xhi"
1466
+ }],
1467
+ ["rect", {
1468
+ width: "7",
1469
+ height: "7",
1470
+ x: "14",
1471
+ y: "14",
1472
+ rx: "1",
1473
+ key: "nxv5o0"
1474
+ }],
1475
+ ["rect", {
1476
+ width: "7",
1477
+ height: "7",
1478
+ x: "3",
1479
+ y: "14",
1480
+ rx: "1",
1481
+ key: "1bb6yr"
1482
+ }]
1483
+ ]), Fe = A("layout-template", [
1451
1484
  ["rect", {
1452
1485
  width: "18",
1453
1486
  height: "7",
@@ -1472,7 +1505,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1472
1505
  rx: "1",
1473
1506
  key: "q5h2i8"
1474
1507
  }]
1475
- ]), Pe = M("link-2-off", [
1508
+ ]), Ie = A("link-2-off", [
1476
1509
  ["path", {
1477
1510
  d: "M9 17H7A5 5 0 0 1 7 7",
1478
1511
  key: "10o201"
@@ -1495,10 +1528,51 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1495
1528
  y2: "22",
1496
1529
  key: "a6p6uj"
1497
1530
  }]
1498
- ]), Fe = M("loader-circle", [["path", {
1531
+ ]), Le = A("link-2", [
1532
+ ["path", {
1533
+ d: "M9 17H7A5 5 0 0 1 7 7h2",
1534
+ key: "8i5ue5"
1535
+ }],
1536
+ ["path", {
1537
+ d: "M15 7h2a5 5 0 1 1 0 10h-2",
1538
+ key: "1b9ql8"
1539
+ }],
1540
+ ["line", {
1541
+ x1: "8",
1542
+ x2: "16",
1543
+ y1: "12",
1544
+ y2: "12",
1545
+ key: "1jonct"
1546
+ }]
1547
+ ]), Re = A("list", [
1548
+ ["path", {
1549
+ d: "M3 5h.01",
1550
+ key: "18ugdj"
1551
+ }],
1552
+ ["path", {
1553
+ d: "M3 12h.01",
1554
+ key: "nlz23k"
1555
+ }],
1556
+ ["path", {
1557
+ d: "M3 19h.01",
1558
+ key: "noohij"
1559
+ }],
1560
+ ["path", {
1561
+ d: "M8 5h13",
1562
+ key: "1pao27"
1563
+ }],
1564
+ ["path", {
1565
+ d: "M8 12h13",
1566
+ key: "1za7za"
1567
+ }],
1568
+ ["path", {
1569
+ d: "M8 19h13",
1570
+ key: "m83p4d"
1571
+ }]
1572
+ ]), ze = A("loader-circle", [["path", {
1499
1573
  d: "M21 12a9 9 0 1 1-6.219-8.56",
1500
1574
  key: "13zald"
1501
- }]]), Ie = M("lock-open", [["rect", {
1575
+ }]]), Be = A("lock-open", [["rect", {
1502
1576
  width: "18",
1503
1577
  height: "11",
1504
1578
  x: "3",
@@ -1509,7 +1583,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1509
1583
  }], ["path", {
1510
1584
  d: "M7 11V7a5 5 0 0 1 9.9-1",
1511
1585
  key: "1mm8w8"
1512
- }]]), Le = M("lock", [["rect", {
1586
+ }]]), Ve = A("lock", [["rect", {
1513
1587
  width: "18",
1514
1588
  height: "11",
1515
1589
  x: "3",
@@ -1520,7 +1594,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1520
1594
  }], ["path", {
1521
1595
  d: "M7 11V7a5 5 0 0 1 10 0v4",
1522
1596
  key: "fwvmzm"
1523
- }]]), Re = M("magnet", [
1597
+ }]]), He = A("magnet", [
1524
1598
  ["path", {
1525
1599
  d: "m12 15 4 4",
1526
1600
  key: "lnac28"
@@ -1533,7 +1607,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1533
1607
  d: "m5 8 4 4",
1534
1608
  key: "j6kj7e"
1535
1609
  }]
1536
- ]), ze = M("maximize-2", [
1610
+ ]), Ue = A("maximize-2", [
1537
1611
  ["path", {
1538
1612
  d: "M15 3h6v6",
1539
1613
  key: "1q9fwt"
@@ -1550,7 +1624,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1550
1624
  d: "M9 21H3v-6",
1551
1625
  key: "wtvkvv"
1552
1626
  }]
1553
- ]), Be = M("maximize", [
1627
+ ]), We = A("maximize", [
1554
1628
  ["path", {
1555
1629
  d: "M8 3H5a2 2 0 0 0-2 2v3",
1556
1630
  key: "1dcmit"
@@ -1567,7 +1641,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1567
1641
  d: "M16 21h3a2 2 0 0 0 2-2v-3",
1568
1642
  key: "18trek"
1569
1643
  }]
1570
- ]), Ve = M("menu", [
1644
+ ]), Ge = A("menu", [
1571
1645
  ["path", {
1572
1646
  d: "M4 5h16",
1573
1647
  key: "1tepv9"
@@ -1580,13 +1654,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1580
1654
  d: "M4 19h16",
1581
1655
  key: "1djgab"
1582
1656
  }]
1583
- ]), He = M("message-square", [["path", {
1657
+ ]), Ke = A("message-square", [["path", {
1584
1658
  d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
1585
1659
  key: "18887p"
1586
- }]]), Ue = M("minus", [["path", {
1660
+ }]]), qe = A("minus", [["path", {
1587
1661
  d: "M5 12h14",
1588
1662
  key: "1ays0h"
1589
- }]]), We = M("monitor", [
1663
+ }]]), Je = A("monitor", [
1590
1664
  ["rect", {
1591
1665
  width: "20",
1592
1666
  height: "14",
@@ -1609,13 +1683,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1609
1683
  y2: "21",
1610
1684
  key: "vw1qmm"
1611
1685
  }]
1612
- ]), Ge = M("mouse-pointer", [["path", {
1686
+ ]), Ye = A("mouse-pointer", [["path", {
1613
1687
  d: "M12.586 12.586 19 19",
1614
1688
  key: "ea5xo7"
1615
1689
  }], ["path", {
1616
1690
  d: "M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",
1617
1691
  key: "277e5u"
1618
- }]]), Ke = M("move-vertical", [
1692
+ }]]), Xe = A("move-vertical", [
1619
1693
  ["path", {
1620
1694
  d: "M12 2v20",
1621
1695
  key: "t6zp3m"
@@ -1628,7 +1702,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1628
1702
  d: "m8 6 4-4 4 4",
1629
1703
  key: "ybng9g"
1630
1704
  }]
1631
- ]), qe = M("move", [
1705
+ ]), Ze = A("move", [
1632
1706
  ["path", {
1633
1707
  d: "M12 2v20",
1634
1708
  key: "t6zp3m"
@@ -1653,7 +1727,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1653
1727
  d: "m9 5 3-3 3 3",
1654
1728
  key: "l8vdw6"
1655
1729
  }]
1656
- ]), Je = M("newspaper", [
1730
+ ]), Qe = A("newspaper", [
1657
1731
  ["path", {
1658
1732
  d: "M15 18h-5",
1659
1733
  key: "95g1m2"
@@ -1674,7 +1748,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1674
1748
  rx: "1",
1675
1749
  key: "aywv1n"
1676
1750
  }]
1677
- ]), Ye = M("package-check", [
1751
+ ]), $e = A("package-check", [
1678
1752
  ["path", {
1679
1753
  d: "M12 22V12",
1680
1754
  key: "d0xqtd"
@@ -1695,7 +1769,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1695
1769
  d: "m7.5 4.27 8.997 5.148",
1696
1770
  key: "9yrvtv"
1697
1771
  }]
1698
- ]), Xe = M("palette", [
1772
+ ]), et = A("palette", [
1699
1773
  ["path", {
1700
1774
  d: "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",
1701
1775
  key: "e79jfc"
@@ -1728,7 +1802,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1728
1802
  fill: "currentColor",
1729
1803
  key: "fotxhn"
1730
1804
  }]
1731
- ]), Ze = M("panel-left-close", [
1805
+ ]), tt = A("panel-left-close", [
1732
1806
  ["rect", {
1733
1807
  width: "18",
1734
1808
  height: "18",
@@ -1745,7 +1819,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1745
1819
  d: "m16 15-3-3 3-3",
1746
1820
  key: "14y99z"
1747
1821
  }]
1748
- ]), Qe = M("panel-left-open", [
1822
+ ]), nt = A("panel-left-open", [
1749
1823
  ["rect", {
1750
1824
  width: "18",
1751
1825
  height: "18",
@@ -1762,25 +1836,25 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1762
1836
  d: "m14 9 3 3-3 3",
1763
1837
  key: "8010ee"
1764
1838
  }]
1765
- ]), $e = M("pen-line", [["path", {
1839
+ ]), rt = A("pen-line", [["path", {
1766
1840
  d: "M13 21h8",
1767
1841
  key: "1jsn5i"
1768
1842
  }], ["path", {
1769
1843
  d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
1770
1844
  key: "1a8usu"
1771
- }]]), et = M("plus", [["path", {
1845
+ }]]), it = A("plus", [["path", {
1772
1846
  d: "M5 12h14",
1773
1847
  key: "1ays0h"
1774
1848
  }], ["path", {
1775
1849
  d: "M12 5v14",
1776
1850
  key: "s699le"
1777
- }]]), tt = M("redo-2", [["path", {
1851
+ }]]), at = A("redo-2", [["path", {
1778
1852
  d: "m15 14 5-5-5-5",
1779
1853
  key: "12vg1m"
1780
1854
  }], ["path", {
1781
1855
  d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",
1782
1856
  key: "6uklza"
1783
- }]]), nt = M("refresh-cw", [
1857
+ }]]), ot = A("refresh-cw", [
1784
1858
  ["path", {
1785
1859
  d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",
1786
1860
  key: "v9h5vc"
@@ -1797,7 +1871,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1797
1871
  d: "M8 16H3v5",
1798
1872
  key: "1cv678"
1799
1873
  }]
1800
- ]), rt = M("repeat", [
1874
+ ]), st = A("repeat", [
1801
1875
  ["path", {
1802
1876
  d: "m17 2 4 4-4 4",
1803
1877
  key: "nntrym"
@@ -1814,13 +1888,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1814
1888
  d: "M21 13v1a4 4 0 0 1-4 4H3",
1815
1889
  key: "1rx37r"
1816
1890
  }]
1817
- ]), it = M("rotate-ccw", [["path", {
1891
+ ]), ct = A("rotate-ccw", [["path", {
1818
1892
  d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
1819
1893
  key: "1357e3"
1820
1894
  }], ["path", {
1821
1895
  d: "M3 3v5h5",
1822
1896
  key: "1xhq8a"
1823
- }]]), at = M("search", [["path", {
1897
+ }]]), lt = A("search", [["path", {
1824
1898
  d: "m21 21-4.34-4.34",
1825
1899
  key: "14j7rj"
1826
1900
  }], ["circle", {
@@ -1828,13 +1902,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1828
1902
  cy: "11",
1829
1903
  r: "8",
1830
1904
  key: "4ej97u"
1831
- }]]), ot = M("send", [["path", {
1905
+ }]]), ut = A("send", [["path", {
1832
1906
  d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",
1833
1907
  key: "1ffxy3"
1834
1908
  }], ["path", {
1835
1909
  d: "m21.854 2.147-10.94 10.939",
1836
1910
  key: "12cjpa"
1837
- }]]), st = M("settings", [["path", {
1911
+ }]]), dt = A("settings", [["path", {
1838
1912
  d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
1839
1913
  key: "1i5ecw"
1840
1914
  }], ["circle", {
@@ -1842,7 +1916,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1842
1916
  cy: "12",
1843
1917
  r: "3",
1844
1918
  key: "1v7zrd"
1845
- }]]), ct = M("share-2", [
1919
+ }]]), ft = A("share-2", [
1846
1920
  ["circle", {
1847
1921
  cx: "18",
1848
1922
  cy: "5",
@@ -1875,7 +1949,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1875
1949
  y2: "10.49",
1876
1950
  key: "1n3mei"
1877
1951
  }]
1878
- ]), lt = M("shopping-bag", [
1952
+ ]), pt = A("shopping-bag", [
1879
1953
  ["path", {
1880
1954
  d: "M16 10a4 4 0 0 1-8 0",
1881
1955
  key: "1ltviw"
@@ -1888,7 +1962,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1888
1962
  d: "M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",
1889
1963
  key: "o988cm"
1890
1964
  }]
1891
- ]), ut = M("shopping-cart", [
1965
+ ]), mt = A("shopping-cart", [
1892
1966
  ["circle", {
1893
1967
  cx: "8",
1894
1968
  cy: "21",
@@ -1905,7 +1979,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1905
1979
  d: "M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",
1906
1980
  key: "9zh506"
1907
1981
  }]
1908
- ]), dt = M("sliders-horizontal", [
1982
+ ]), ht = A("sliders-horizontal", [
1909
1983
  ["path", {
1910
1984
  d: "M10 5H3",
1911
1985
  key: "1qgfaw"
@@ -1942,7 +2016,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1942
2016
  d: "M8 12H3",
1943
2017
  key: "a7s4jb"
1944
2018
  }]
1945
- ]), ft = M("sliders-vertical", [
2019
+ ]), gt = A("sliders-vertical", [
1946
2020
  ["path", {
1947
2021
  d: "M10 8h4",
1948
2022
  key: "1sr2af"
@@ -1979,7 +2053,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1979
2053
  d: "M5 21v-7",
1980
2054
  key: "1w1uti"
1981
2055
  }]
1982
- ]), pt = M("smartphone", [["rect", {
2056
+ ]), _t = A("smartphone", [["rect", {
1983
2057
  width: "14",
1984
2058
  height: "20",
1985
2059
  x: "5",
@@ -1990,7 +2064,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1990
2064
  }], ["path", {
1991
2065
  d: "M12 18h.01",
1992
2066
  key: "mhygvu"
1993
- }]]), mt = M("smile", [
2067
+ }]]), vt = A("smile", [
1994
2068
  ["circle", {
1995
2069
  cx: "12",
1996
2070
  cy: "12",
@@ -2015,13 +2089,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2015
2089
  y2: "9",
2016
2090
  key: "1p4y9e"
2017
2091
  }]
2018
- ]), ht = M("square-check-big", [["path", {
2092
+ ]), yt = A("square-check-big", [["path", {
2019
2093
  d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",
2020
2094
  key: "2acyp4"
2021
2095
  }], ["path", {
2022
2096
  d: "m9 11 3 3L22 4",
2023
2097
  key: "1pflzl"
2024
- }]]), gt = M("square-chevron-down", [["rect", {
2098
+ }]]), bt = A("square-chevron-down", [["rect", {
2025
2099
  width: "18",
2026
2100
  height: "18",
2027
2101
  x: "3",
@@ -2031,17 +2105,17 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2031
2105
  }], ["path", {
2032
2106
  d: "m16 10-4 4-4-4",
2033
2107
  key: "894hmk"
2034
- }]]), _t = M("square", [["rect", {
2108
+ }]]), xt = A("square", [["rect", {
2035
2109
  width: "18",
2036
2110
  height: "18",
2037
2111
  x: "3",
2038
2112
  y: "3",
2039
2113
  rx: "2",
2040
2114
  key: "afitv7"
2041
- }]]), vt = M("star", [["path", {
2115
+ }]]), St = A("star", [["path", {
2042
2116
  d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
2043
2117
  key: "r04s7s"
2044
- }]]), yt = M("store", [
2118
+ }]]), Ct = A("store", [
2045
2119
  ["path", {
2046
2120
  d: "M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",
2047
2121
  key: "slp6dd"
@@ -2054,7 +2128,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2054
2128
  d: "M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",
2055
2129
  key: "wn3emo"
2056
2130
  }]
2057
- ]), bt = M("table", [
2131
+ ]), wt = A("table", [
2058
2132
  ["path", {
2059
2133
  d: "M12 3v18",
2060
2134
  key: "108xh3"
@@ -2075,7 +2149,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2075
2149
  d: "M3 15h18",
2076
2150
  key: "5xshup"
2077
2151
  }]
2078
- ]), xt = M("tablet", [["rect", {
2152
+ ]), Tt = A("tablet", [["rect", {
2079
2153
  width: "16",
2080
2154
  height: "20",
2081
2155
  x: "4",
@@ -2089,7 +2163,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2089
2163
  y1: "18",
2090
2164
  y2: "18",
2091
2165
  key: "1dp563"
2092
- }]]), St = M("tag", [["path", {
2166
+ }]]), Et = A("tag", [["path", {
2093
2167
  d: "M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",
2094
2168
  key: "vktsd0"
2095
2169
  }], ["circle", {
@@ -2098,7 +2172,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2098
2172
  r: ".5",
2099
2173
  fill: "currentColor",
2100
2174
  key: "kqv944"
2101
- }]]), Ct = M("tags", [
2175
+ }]]), Dt = A("tags", [
2102
2176
  ["path", {
2103
2177
  d: "M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",
2104
2178
  key: "16rjxf"
@@ -2114,7 +2188,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2114
2188
  fill: "currentColor",
2115
2189
  key: "12ikhr"
2116
2190
  }]
2117
- ]), wt = M("text-align-center", [
2191
+ ]), Ot = A("text-align-center", [
2118
2192
  ["path", {
2119
2193
  d: "M21 5H3",
2120
2194
  key: "1fi0y6"
@@ -2127,7 +2201,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2127
2201
  d: "M19 19H5",
2128
2202
  key: "vjpgq2"
2129
2203
  }]
2130
- ]), Tt = M("text-align-end", [
2204
+ ]), kt = A("text-align-end", [
2131
2205
  ["path", {
2132
2206
  d: "M21 5H3",
2133
2207
  key: "1fi0y6"
@@ -2140,7 +2214,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2140
2214
  d: "M21 19H7",
2141
2215
  key: "4cu937"
2142
2216
  }]
2143
- ]), Et = M("text-align-start", [
2217
+ ]), At = A("text-align-start", [
2144
2218
  ["path", {
2145
2219
  d: "M21 5H3",
2146
2220
  key: "1fi0y6"
@@ -2153,7 +2227,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2153
2227
  d: "M17 19H3",
2154
2228
  key: "z6ezky"
2155
2229
  }]
2156
- ]), Dt = M("trash-2", [
2230
+ ]), jt = A("trash-2", [
2157
2231
  ["path", {
2158
2232
  d: "M10 11v6",
2159
2233
  key: "nco0om"
@@ -2174,7 +2248,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2174
2248
  d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
2175
2249
  key: "e791ji"
2176
2250
  }]
2177
- ]), Ot = M("triangle-alert", [
2251
+ ]), Mt = A("triangle-alert", [
2178
2252
  ["path", {
2179
2253
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
2180
2254
  key: "wmoenq"
@@ -2187,7 +2261,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2187
2261
  d: "M12 17h.01",
2188
2262
  key: "p32p05"
2189
2263
  }]
2190
- ]), kt = M("truck", [
2264
+ ]), Nt = A("truck", [
2191
2265
  ["path", {
2192
2266
  d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",
2193
2267
  key: "wrbu53"
@@ -2212,7 +2286,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2212
2286
  r: "2",
2213
2287
  key: "19iecd"
2214
2288
  }]
2215
- ]), At = M("underline", [["path", {
2289
+ ]), Pt = A("underline", [["path", {
2216
2290
  d: "M6 4v6a6 6 0 0 0 12 0V4",
2217
2291
  key: "9kb039"
2218
2292
  }], ["line", {
@@ -2221,13 +2295,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2221
2295
  y1: "20",
2222
2296
  y2: "20",
2223
2297
  key: "nun2al"
2224
- }]]), jt = M("undo-2", [["path", {
2298
+ }]]), Ft = A("undo-2", [["path", {
2225
2299
  d: "M9 14 4 9l5-5",
2226
2300
  key: "102s5s"
2227
2301
  }], ["path", {
2228
2302
  d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",
2229
2303
  key: "f3b9sd"
2230
- }]]), Mt = M("ungroup", [["rect", {
2304
+ }]]), It = A("ungroup", [["rect", {
2231
2305
  x: "11",
2232
2306
  y: "14",
2233
2307
  width: "10",
@@ -2241,7 +2315,10 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2241
2315
  height: "7",
2242
2316
  rx: "2",
2243
2317
  key: "1ljebb"
2244
- }]]), Nt = M("upload", [
2318
+ }]]), Lt = A("unlink-2", [["path", {
2319
+ d: "M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2",
2320
+ key: "1re2ne"
2321
+ }]]), Rt = A("upload", [
2245
2322
  ["path", {
2246
2323
  d: "M12 3v12",
2247
2324
  key: "1x0j5s"
@@ -2254,7 +2331,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2254
2331
  d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
2255
2332
  key: "ih7n3h"
2256
2333
  }]
2257
- ]), Pt = M("user-plus", [
2334
+ ]), zt = A("user-plus", [
2258
2335
  ["path", {
2259
2336
  d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
2260
2337
  key: "1yyitq"
@@ -2279,7 +2356,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2279
2356
  y2: "11",
2280
2357
  key: "1shjgl"
2281
2358
  }]
2282
- ]), Ft = M("user", [["path", {
2359
+ ]), Bt = A("user", [["path", {
2283
2360
  d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",
2284
2361
  key: "975kel"
2285
2362
  }], ["circle", {
@@ -2287,7 +2364,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2287
2364
  cy: "7",
2288
2365
  r: "4",
2289
2366
  key: "17ys0d"
2290
- }]]), It = M("video", [["path", {
2367
+ }]]), Vt = A("video", [["path", {
2291
2368
  d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
2292
2369
  key: "ftymec"
2293
2370
  }], ["rect", {
@@ -2297,7 +2374,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2297
2374
  height: "12",
2298
2375
  rx: "2",
2299
2376
  key: "158x01"
2300
- }]]), Lt = M("wand-sparkles", [
2377
+ }]]), Ht = A("wand-sparkles", [
2301
2378
  ["path", {
2302
2379
  d: "m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",
2303
2380
  key: "ul74o6"
@@ -2330,13 +2407,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2330
2407
  d: "M11 3H9",
2331
2408
  key: "1obp7u"
2332
2409
  }]
2333
- ]), Rt = M("x", [["path", {
2410
+ ]), Ut = A("x", [["path", {
2334
2411
  d: "M18 6 6 18",
2335
2412
  key: "1bl5f8"
2336
2413
  }], ["path", {
2337
2414
  d: "m6 6 12 12",
2338
2415
  key: "d8bk6v"
2339
- }]]), zt = M("zoom-in", [
2416
+ }]]), Wt = A("zoom-in", [
2340
2417
  ["circle", {
2341
2418
  cx: "11",
2342
2419
  cy: "11",
@@ -2364,7 +2441,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2364
2441
  y2: "11",
2365
2442
  key: "durymu"
2366
2443
  }]
2367
- ]), Bt = M("zoom-out", [
2444
+ ]), Gt = A("zoom-out", [
2368
2445
  ["circle", {
2369
2446
  cx: "11",
2370
2447
  cy: "11",
@@ -2385,11 +2462,11 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2385
2462
  y2: "11",
2386
2463
  key: "durymu"
2387
2464
  }]
2388
- ]), Vt = ({ filter: e, onSelect: t, currentValue: n }) => {
2465
+ ]), Kt = ({ filter: e, onSelect: t, currentValue: n }) => {
2389
2466
  let [r, i] = g(!1), a = h(null), o = h(null), [s, c] = g({
2390
2467
  top: 0,
2391
2468
  left: 0
2392
- }), l = C((e) => e.strataTokens), u = C((e) => e.builderTheme), d = l.filter(e);
2469
+ }), l = re((e) => e.strataTokens), u = re((e) => e.builderTheme), d = l.filter(e);
2393
2470
  return f(() => {
2394
2471
  if (!r) return;
2395
2472
  let e = (e) => {
@@ -2479,15 +2556,15 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2479
2556
  }, e.key);
2480
2557
  })
2481
2558
  }), document.body)] });
2482
- }, Ht = {
2559
+ }, Q = {
2483
2560
  backgroundImage: "linear-gradient(45deg, #8884 25%, transparent 25%), linear-gradient(-45deg, #8884 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #8884 75%), linear-gradient(-45deg, transparent 75%, #8884 75%)",
2484
2561
  backgroundSize: "8px 8px",
2485
2562
  backgroundPosition: "0 0, 0 4px, 4px -4px, -4px 0",
2486
2563
  backgroundColor: "#fff"
2487
- }, Ut = 232, $ = (e, t, n) => Math.min(n, Math.max(t, e)), Wt = [], Gt = (e) => {
2488
- Wt = [e, ...Wt.filter((t) => t !== e)].slice(0, 8);
2489
- }, Kt = (e) => (e || "").trim().toLowerCase().startsWith("rgb") ? "rgba" : "hex";
2490
- function qt(e, t, n) {
2564
+ }, qt = 232, $ = (e, t, n) => Math.min(n, Math.max(t, e)), Jt = [], Yt = (e) => {
2565
+ Jt = [e, ...Jt.filter((t) => t !== e)].slice(0, 8);
2566
+ }, Xt = (e) => (e || "").trim().toLowerCase().startsWith("rgb") ? "rgba" : "hex";
2567
+ function Zt(e, t, n) {
2491
2568
  let r = h(null), i = h(!1), a = (t) => {
2492
2569
  let n = r.current?.getBoundingClientRect();
2493
2570
  !n || !n.width || !n.height || e($((t.clientX - n.left) / n.width, 0, 1), $((t.clientY - n.top) / n.height, 0, 1));
@@ -2522,139 +2599,139 @@ function qt(e, t, n) {
2522
2599
  }
2523
2600
  };
2524
2601
  }
2525
- var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, compact: d, accentColor: _, swatches: ee, tokens: b, resolve: x }) => {
2526
- let S = c || "var(--builder-text-color, #e2e8f0)", C = l || "var(--builder-background-color, #0e1526)", w = _ || "var(--theme-accent, #6366f1)", T = "rgba(128,128,128,0.35)", [E, D] = g(!1), [O, k] = g(null), [A, ne] = g(() => Kt(t)), [j, re] = g(null), M = h(null), N = h(null), P = h(null), F = b?.find((e) => e.value === t), ie = m(() => /^\s*var\(/.test(t) ? x?.(t) ?? F?.color ?? t : t, [
2602
+ var Qt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, compact: d, accentColor: _, swatches: ee, tokens: b, resolve: ne }) => {
2603
+ let x = c || "var(--builder-text-color, #e2e8f0)", re = l || "var(--builder-background-color, #0e1526)", S = _ || "var(--theme-accent, #6366f1)", C = "rgba(128,128,128,0.35)", [w, ie] = g(!1), [T, ae] = g("grid"), [E, D] = g(null), [O, k] = g(() => Xt(t)), [A, oe] = g(null), se = h(null), j = h(null), M = h(null), N = b?.find((e) => e.value === t), ce = m(() => /^\s*var\(/.test(t) ? ne?.(t) ?? N?.color ?? t : t, [
2527
2604
  t,
2528
- x,
2529
- F
2530
- ]), I = m(() => n(ie), [ie]), L = !t || t.trim().toLowerCase() === "transparent", ae = !L && !I, R = h(I ?? {
2605
+ ne,
2606
+ N
2607
+ ]), P = m(() => n(ce), [ce]), F = !t || t.trim().toLowerCase() === "transparent", le = !F && !P, I = h(P ?? {
2531
2608
  r: 255,
2532
2609
  g: 255,
2533
2610
  b: 255
2534
2611
  });
2535
- I && !L && (R.current = I);
2536
- let [z, oe] = g(() => a(R.current)), [B, V] = g(() => L ? 0 : I?.a ?? 1), H = h(z);
2537
- H.current = z;
2538
- let U = h(B);
2539
- U.current = B;
2540
- let W = h(A);
2541
- W.current = A;
2542
- let G = h(null);
2612
+ P && !F && (I.current = P);
2613
+ let [L, ue] = g(() => a(I.current)), [R, z] = g(() => F ? 0 : P?.a ?? 1), B = h(L);
2614
+ B.current = L;
2615
+ let V = h(R);
2616
+ V.current = R;
2617
+ let H = h(O);
2618
+ H.current = O;
2619
+ let U = h(null);
2543
2620
  f(() => {
2544
- t === G.current && !F || (I && !L ? (oe((e) => a(I, e)), V(I.a), F || ne(Kt(t))) : L && V(0));
2621
+ t === U.current && !N || (P && !F ? (ue((e) => a(P, e)), z(P.a), N || k(Xt(t))) : F && z(0));
2545
2622
  }, [
2546
2623
  t,
2547
- I,
2548
- L,
2549
- F
2624
+ P,
2625
+ F,
2626
+ N
2550
2627
  ]);
2551
- let K = u((e, t, n = W.current) => {
2628
+ let W = u((e, t, n = H.current) => {
2552
2629
  let a = r(e.h, e.s, e.v);
2553
- R.current = a;
2630
+ I.current = a;
2554
2631
  let c = {
2555
2632
  ...a,
2556
2633
  a: t
2557
2634
  }, l = n === "rgba" ? o(c) : i(c);
2558
- G.current = l, oe(e), V(t), s(l);
2559
- }, [s]), q = u((e, t) => {
2635
+ U.current = l, ue(e), z(t), s(l);
2636
+ }, [s]), G = u((e, t) => {
2560
2637
  if (t.trim().toLowerCase() === "transparent") {
2561
- G.current = "transparent", V(0), s("transparent");
2638
+ U.current = "transparent", z(0), s("transparent");
2562
2639
  return;
2563
2640
  }
2564
- let n = /^\s*rgb/i.test(t) ? "rgba" : W.current;
2565
- n !== W.current && ne(n), K(a(e, H.current), e.a, n);
2566
- }, [K, s]), se = () => {
2567
- if (O === null) return;
2568
- let e = n(O);
2569
- e && O.trim() && q(e, O), k(null);
2570
- }, J = O !== null && O.trim() !== "" && !n(O), ce = O ?? F?.label ?? t, Y = u(() => {
2571
- let e = N.current?.getBoundingClientRect();
2641
+ let n = /^\s*rgb/i.test(t) ? "rgba" : H.current;
2642
+ n !== H.current && k(n), W(a(e, B.current), e.a, n);
2643
+ }, [W, s]), de = () => {
2644
+ if (E === null) return;
2645
+ let e = n(E);
2646
+ e && E.trim() && G(e, E), D(null);
2647
+ }, K = E !== null && E.trim() !== "" && !n(E), fe = E ?? N?.label ?? t, q = u(() => {
2648
+ let e = j.current?.getBoundingClientRect();
2572
2649
  if (!e) return;
2573
- let t = P.current?.offsetHeight ?? 340, n = $(e.right - Ut, 8, Math.max(8, window.innerWidth - Ut - 8)), r = e.bottom + 6, i = r + t > window.innerHeight - 8 ? Math.max(8, e.top - t - 6) : r;
2574
- re({
2650
+ let t = M.current?.offsetHeight ?? 340, n = $(e.right - qt, 8, Math.max(8, window.innerWidth - qt - 8)), r = e.bottom + 6, i = r + t > window.innerHeight - 8 ? Math.max(8, e.top - t - 6) : r;
2651
+ oe({
2575
2652
  top: i,
2576
2653
  left: n
2577
2654
  });
2578
2655
  }, []);
2579
2656
  p(() => {
2580
- E && Y();
2581
- }, [E, Y]);
2582
- let X = u((e = !1) => {
2583
- D(!1), !L && I && Gt(i({
2584
- ...R.current,
2657
+ w && q();
2658
+ }, [w, q]);
2659
+ let J = u((e = !1) => {
2660
+ ie(!1), !F && P && Yt(i({
2661
+ ...I.current,
2585
2662
  a: 1
2586
- })), e && N.current?.focus();
2587
- }, [L, I]);
2663
+ })), e && j.current?.focus();
2664
+ }, [F, P]);
2588
2665
  f(() => {
2589
- if (!E) return;
2666
+ if (!w) return;
2590
2667
  let e = (e) => {
2591
2668
  let t = e.target;
2592
- P.current?.contains(t) || N.current?.contains(t) || X();
2669
+ M.current?.contains(t) || j.current?.contains(t) || J();
2593
2670
  }, t = (e) => {
2594
- e.key === "Escape" && (e.stopPropagation(), X(!0));
2671
+ e.key === "Escape" && (e.stopPropagation(), J(!0));
2595
2672
  }, n = (e) => {
2596
- P.current?.contains(e.target) || X();
2673
+ M.current?.contains(e.target) || J();
2597
2674
  };
2598
- return document.addEventListener("pointerdown", e, !0), document.addEventListener("keydown", t, !0), window.addEventListener("scroll", n, !0), window.addEventListener("resize", Y), () => {
2599
- document.removeEventListener("pointerdown", e, !0), document.removeEventListener("keydown", t, !0), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", Y);
2675
+ return document.addEventListener("pointerdown", e, !0), document.addEventListener("keydown", t, !0), window.addEventListener("scroll", n, !0), window.addEventListener("resize", q), () => {
2676
+ document.removeEventListener("pointerdown", e, !0), document.removeEventListener("keydown", t, !0), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", q);
2600
2677
  };
2601
2678
  }, [
2602
- E,
2603
- X,
2604
- Y
2679
+ w,
2680
+ J,
2681
+ q
2605
2682
  ]);
2606
- let le = qt((e, t) => K({
2607
- ...H.current,
2683
+ let pe = Zt((e, t) => W({
2684
+ ...B.current,
2608
2685
  s: e * 100,
2609
2686
  v: (1 - t) * 100
2610
- }, U.current === 0 ? 1 : U.current), (e, t) => K({
2611
- ...H.current,
2612
- s: $(H.current.s + e, 0, 100),
2613
- v: $(H.current.v + t, 0, 100)
2614
- }, U.current === 0 ? 1 : U.current), () => void 0), ue = qt((e) => K({
2615
- ...H.current,
2687
+ }, V.current === 0 ? 1 : V.current), (e, t) => W({
2688
+ ...B.current,
2689
+ s: $(B.current.s + e, 0, 100),
2690
+ v: $(B.current.v + t, 0, 100)
2691
+ }, V.current === 0 ? 1 : V.current), () => void 0), me = Zt((e) => W({
2692
+ ...B.current,
2616
2693
  h: e * 360
2617
- }, U.current === 0 ? 1 : U.current), (e) => K({
2618
- ...H.current,
2619
- h: $(H.current.h + e * 2, 0, 360)
2620
- }, U.current === 0 ? 1 : U.current), () => void 0), de = qt((e) => K(H.current, Math.round(e * 100) / 100), (e) => K(H.current, $(Math.round((U.current + e / 100) * 100) / 100, 0, 1)), () => void 0), Z = r(z.h, z.s, z.v), fe = `rgb(${Z.r}, ${Z.g}, ${Z.b})`, pe = L ? "transparent" : ae ? t : I ? o(I) : "transparent", Q = L, me = typeof window < "u" && "EyeDropper" in window, he = async () => {
2694
+ }, V.current === 0 ? 1 : V.current), (e) => W({
2695
+ ...B.current,
2696
+ h: $(B.current.h + e * 2, 0, 360)
2697
+ }, V.current === 0 ? 1 : V.current), () => void 0), he = Zt((e) => W(B.current, Math.round(e * 100) / 100), (e) => W(B.current, $(Math.round((V.current + e / 100) * 100) / 100, 0, 1)), () => void 0), Y = r(L.h, L.s, L.v), ge = `rgb(${Y.r}, ${Y.g}, ${Y.b})`, _e = F ? "transparent" : le ? t : P ? o(P) : "transparent", X = F, ve = typeof window < "u" && "EyeDropper" in window, ye = async () => {
2621
2698
  try {
2622
2699
  let e = window.EyeDropper, t = await new e().open(), r = n(t.sRGBHex);
2623
- r && q({
2700
+ r && G({
2624
2701
  ...r,
2625
- a: U.current === 0 ? 1 : U.current
2702
+ a: V.current === 0 ? 1 : V.current
2626
2703
  }, t.sRGBHex);
2627
2704
  } catch {}
2628
- }, ge = () => {
2629
- let e = A === "hex" ? "rgba" : "hex";
2630
- ne(e), !L && I && K(H.current, U.current === 0 ? 1 : U.current, e);
2631
- }, _e = (e) => {
2632
- e ? (G.current = "transparent", V(0), s("transparent")) : K(H.current, 1);
2633
- }, ve = [...ee ?? [], ...Wt.filter((e) => !(ee ?? []).includes(e))].slice(0, 14), ye = /* @__PURE__ */ v("input", {
2705
+ }, be = () => {
2706
+ let e = O === "hex" ? "rgba" : "hex";
2707
+ k(e), !F && P && W(B.current, V.current === 0 ? 1 : V.current, e);
2708
+ }, xe = (e) => {
2709
+ e ? (U.current = "transparent", z(0), s("transparent")) : W(B.current, 1);
2710
+ }, Se = [...ee ?? [], ...Jt.filter((e) => !(ee ?? []).includes(e))].slice(0, 14), Ce = /* @__PURE__ */ v("input", {
2634
2711
  type: "text",
2635
- value: ce,
2712
+ value: fe,
2636
2713
  spellCheck: !1,
2637
2714
  autoComplete: "off",
2638
2715
  "aria-label": e ? `${e} colour code` : "Colour code",
2639
- "aria-invalid": J || void 0,
2716
+ "aria-invalid": K || void 0,
2640
2717
  placeholder: "#3b82f6",
2641
2718
  onFocus: (e) => e.currentTarget.select(),
2642
2719
  onChange: (e) => {
2643
2720
  let t = e.target.value;
2644
- k(t);
2721
+ D(t);
2645
2722
  let c = n(t);
2646
2723
  if (c && t.trim()) {
2647
- let e = /^\s*rgb/i.test(t) ? "rgba" : W.current;
2648
- if (t.trim().toLowerCase() === "transparent") G.current = "transparent", s("transparent");
2724
+ let e = /^\s*rgb/i.test(t) ? "rgba" : H.current;
2725
+ if (t.trim().toLowerCase() === "transparent") U.current = "transparent", s("transparent");
2649
2726
  else {
2650
- let t = a(c, H.current), n = r(t.h, t.s, t.v), l = e === "rgba" ? o({
2727
+ let t = a(c, B.current), n = r(t.h, t.s, t.v), l = e === "rgba" ? o({
2651
2728
  ...n,
2652
2729
  a: c.a
2653
2730
  }) : i({
2654
2731
  ...n,
2655
2732
  a: c.a
2656
2733
  });
2657
- G.current = l, oe(t), V(c.a), s(l);
2734
+ U.current = l, ue(t), z(c.a), s(l);
2658
2735
  }
2659
2736
  }
2660
2737
  },
@@ -2663,82 +2740,83 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2663
2740
  if (!t) return;
2664
2741
  e.preventDefault();
2665
2742
  let r = n(t);
2666
- r ? (q(r, t), k(null)) : k(t);
2743
+ r ? (G(r, t), D(null)) : D(t);
2667
2744
  },
2668
- onBlur: se,
2745
+ onBlur: de,
2669
2746
  onKeyDown: (e) => {
2670
- e.key === "Enter" ? (e.preventDefault(), se(), e.target.blur()) : e.key === "Escape" && (k(null), e.target.blur());
2747
+ e.key === "Enter" ? (e.preventDefault(), de(), e.target.blur()) : e.key === "Escape" && (D(null), e.target.blur());
2671
2748
  },
2672
2749
  className: `${d ? "flex-1 min-w-0" : "w-24"} bg-transparent font-mono text-xs outline-none rounded px-1.5 py-1 border`,
2673
2750
  style: {
2674
- color: S,
2675
- borderColor: J ? "#f43f5e" : "transparent"
2751
+ color: N && E === null ? S : x,
2752
+ borderColor: K ? "#f43f5e" : "transparent"
2676
2753
  },
2754
+ title: N ? `${N.hint ? `${N.hint} · ` : ""}${N.label} in Strata` : void 0,
2677
2755
  onMouseEnter: (e) => {
2678
- J || (e.currentTarget.style.borderColor = T);
2756
+ K || (e.currentTarget.style.borderColor = C);
2679
2757
  },
2680
2758
  onMouseLeave: (e) => {
2681
- !J && document.activeElement !== e.currentTarget && (e.currentTarget.style.borderColor = "transparent");
2759
+ !K && document.activeElement !== e.currentTarget && (e.currentTarget.style.borderColor = "transparent");
2682
2760
  }
2683
- }), be = /* @__PURE__ */ y("button", {
2684
- ref: N,
2761
+ }), we = /* @__PURE__ */ y("button", {
2762
+ ref: j,
2685
2763
  type: "button",
2686
- onClick: () => D((e) => !e),
2764
+ onClick: () => ie((e) => !e),
2687
2765
  "aria-haspopup": "dialog",
2688
- "aria-expanded": E,
2766
+ "aria-expanded": w,
2689
2767
  "aria-label": `${e ?? "Colour"}: ${t || "none"}. Open colour picker`,
2690
2768
  className: "relative w-6 h-6 rounded-md overflow-hidden shrink-0 focus:outline-none",
2691
2769
  style: {
2692
- ...Ht,
2693
- border: `1px solid ${T}`,
2694
- boxShadow: E ? `0 0 0 2px ${w}` : void 0
2770
+ ...Q,
2771
+ border: `1px solid ${C}`,
2772
+ boxShadow: w ? `0 0 0 2px ${S}` : void 0
2695
2773
  },
2696
2774
  children: [/* @__PURE__ */ v("span", {
2697
2775
  className: "absolute inset-0",
2698
- style: { backgroundColor: pe }
2699
- }), L && /* @__PURE__ */ v("span", { className: "absolute left-0 right-0 top-1/2 h-0.5 bg-rose-500 rotate-45 scale-110" })]
2700
- }), xe = M.current?.closest(".plexo-editor") ?? (typeof document < "u" ? document.body : null), Se = E && xe ? te.createPortal(/* @__PURE__ */ y("div", {
2701
- ref: P,
2776
+ style: { backgroundColor: _e }
2777
+ }), F && /* @__PURE__ */ v("span", { className: "absolute left-0 right-0 top-1/2 h-0.5 bg-rose-500 rotate-45 scale-110" })]
2778
+ }), Te = se.current?.closest(".plexo-editor") ?? (typeof document < "u" ? document.body : null), Ee = w && Te ? te.createPortal(/* @__PURE__ */ y("div", {
2779
+ ref: M,
2702
2780
  role: "dialog",
2703
2781
  "aria-label": "Colour picker",
2704
2782
  tabIndex: -1,
2705
2783
  style: {
2706
2784
  position: "fixed",
2707
- top: j?.top ?? 0,
2708
- left: j?.left ?? 0,
2709
- visibility: j ? "visible" : "hidden",
2785
+ top: A?.top ?? 0,
2786
+ left: A?.left ?? 0,
2787
+ visibility: A ? "visible" : "hidden",
2710
2788
  zIndex: 2147483e3,
2711
- width: Ut,
2789
+ width: qt,
2712
2790
  boxSizing: "border-box",
2713
2791
  padding: 12,
2714
2792
  display: "flex",
2715
2793
  flexDirection: "column",
2716
2794
  gap: 12,
2717
2795
  borderRadius: 12,
2718
- border: `1px solid ${T}`,
2796
+ border: `1px solid ${C}`,
2719
2797
  boxShadow: "0 16px 40px rgba(0,0,0,0.45)",
2720
- backgroundColor: C,
2721
- color: S,
2798
+ backgroundColor: re,
2799
+ color: x,
2722
2800
  fontSize: 12
2723
2801
  },
2724
2802
  children: [
2725
2803
  /* @__PURE__ */ y("div", {
2726
- ref: le.ref,
2727
- ...le.props,
2804
+ ref: pe.ref,
2805
+ ...pe.props,
2728
2806
  role: "slider",
2729
2807
  "aria-label": "Saturation and brightness",
2730
- "aria-valuetext": `Saturation ${Math.round(z.s)}%, brightness ${Math.round(z.v)}%`,
2731
- "aria-valuenow": Math.round(z.s),
2808
+ "aria-valuetext": `Saturation ${Math.round(L.s)}%, brightness ${Math.round(L.v)}%`,
2809
+ "aria-valuenow": Math.round(L.s),
2732
2810
  style: {
2733
- ...le.props.style,
2811
+ ...pe.props.style,
2734
2812
  position: "relative",
2735
2813
  height: 120,
2736
2814
  borderRadius: 8,
2737
2815
  cursor: "crosshair",
2738
2816
  overflow: "hidden",
2739
- opacity: Q ? .35 : 1,
2740
- pointerEvents: Q ? "none" : "auto",
2741
- backgroundColor: `hsl(${z.h}, 100%, 50%)`
2817
+ opacity: X ? .35 : 1,
2818
+ pointerEvents: X ? "none" : "auto",
2819
+ backgroundColor: `hsl(${L.h}, 100%, 50%)`
2742
2820
  },
2743
2821
  children: [
2744
2822
  /* @__PURE__ */ v("div", { style: {
@@ -2753,8 +2831,8 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2753
2831
  } }),
2754
2832
  /* @__PURE__ */ v("div", { style: {
2755
2833
  position: "absolute",
2756
- left: `${z.s}%`,
2757
- bottom: `${z.v}%`,
2834
+ left: `${L.s}%`,
2835
+ bottom: `${L.v}%`,
2758
2836
  width: 14,
2759
2837
  height: 14,
2760
2838
  marginLeft: -7,
@@ -2762,7 +2840,7 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2762
2840
  borderRadius: 999,
2763
2841
  border: "2px solid #fff",
2764
2842
  boxShadow: "0 0 0 1px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.4)",
2765
- backgroundColor: fe,
2843
+ backgroundColor: ge,
2766
2844
  pointerEvents: "none"
2767
2845
  } })
2768
2846
  ]
@@ -2773,9 +2851,9 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2773
2851
  alignItems: "center",
2774
2852
  gap: 8
2775
2853
  },
2776
- children: [me && /* @__PURE__ */ v("button", {
2854
+ children: [ve && /* @__PURE__ */ v("button", {
2777
2855
  type: "button",
2778
- onClick: he,
2856
+ onClick: ye,
2779
2857
  title: "Pick a colour from the screen",
2780
2858
  "aria-label": "Pick a colour from the screen",
2781
2859
  style: {
@@ -2786,9 +2864,9 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2786
2864
  height: 28,
2787
2865
  flex: "none",
2788
2866
  borderRadius: 8,
2789
- border: `1px solid ${T}`,
2867
+ border: `1px solid ${C}`,
2790
2868
  background: "transparent",
2791
- color: S,
2869
+ color: x,
2792
2870
  cursor: "pointer"
2793
2871
  },
2794
2872
  children: /* @__PURE__ */ y("svg", {
@@ -2808,28 +2886,28 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2808
2886
  ]
2809
2887
  })
2810
2888
  }), /* @__PURE__ */ v("div", {
2811
- ref: ue.ref,
2812
- ...ue.props,
2889
+ ref: me.ref,
2890
+ ...me.props,
2813
2891
  role: "slider",
2814
2892
  "aria-label": "Hue",
2815
2893
  "aria-valuemin": 0,
2816
2894
  "aria-valuemax": 360,
2817
- "aria-valuenow": Math.round(z.h),
2895
+ "aria-valuenow": Math.round(L.h),
2818
2896
  style: {
2819
- ...ue.props.style,
2897
+ ...me.props.style,
2820
2898
  position: "relative",
2821
2899
  flex: 1,
2822
2900
  height: 10,
2823
2901
  borderRadius: 999,
2824
2902
  cursor: "pointer",
2825
- opacity: Q ? .35 : 1,
2826
- pointerEvents: Q ? "none" : "auto",
2903
+ opacity: X ? .35 : 1,
2904
+ pointerEvents: X ? "none" : "auto",
2827
2905
  background: "linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)"
2828
2906
  },
2829
2907
  children: /* @__PURE__ */ v("div", { style: {
2830
2908
  position: "absolute",
2831
2909
  top: "50%",
2832
- left: `${z.h / 360 * 100}%`,
2910
+ left: `${L.h / 360 * 100}%`,
2833
2911
  width: 14,
2834
2912
  height: 14,
2835
2913
  marginLeft: -7,
@@ -2837,7 +2915,7 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2837
2915
  borderRadius: 999,
2838
2916
  border: "2px solid #fff",
2839
2917
  boxShadow: "0 0 0 1px rgba(0,0,0,0.4)",
2840
- backgroundColor: `hsl(${z.h}, 100%, 50%)`,
2918
+ backgroundColor: `hsl(${L.h}, 100%, 50%)`,
2841
2919
  pointerEvents: "none"
2842
2920
  } })
2843
2921
  })]
@@ -2860,35 +2938,35 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2860
2938
  fontWeight: 500,
2861
2939
  opacity: .8
2862
2940
  },
2863
- children: [Math.round(B * 100), "%"]
2941
+ children: [Math.round(R * 100), "%"]
2864
2942
  })]
2865
2943
  }), /* @__PURE__ */ y("div", {
2866
- ref: de.ref,
2867
- ...de.props,
2944
+ ref: he.ref,
2945
+ ...he.props,
2868
2946
  role: "slider",
2869
2947
  "aria-label": "Opacity",
2870
2948
  "aria-valuemin": 0,
2871
2949
  "aria-valuemax": 100,
2872
- "aria-valuenow": Math.round(B * 100),
2950
+ "aria-valuenow": Math.round(R * 100),
2873
2951
  style: {
2874
- ...de.props.style,
2875
- ...Ht,
2952
+ ...he.props.style,
2953
+ ...Q,
2876
2954
  position: "relative",
2877
2955
  height: 10,
2878
2956
  borderRadius: 999,
2879
2957
  cursor: "pointer",
2880
- opacity: Q ? .35 : 1,
2881
- pointerEvents: Q ? "none" : "auto"
2958
+ opacity: X ? .35 : 1,
2959
+ pointerEvents: X ? "none" : "auto"
2882
2960
  },
2883
2961
  children: [/* @__PURE__ */ v("div", { style: {
2884
2962
  position: "absolute",
2885
2963
  inset: 0,
2886
2964
  borderRadius: 999,
2887
- background: `linear-gradient(to right, rgba(${Z.r},${Z.g},${Z.b},0), ${fe})`
2965
+ background: `linear-gradient(to right, rgba(${Y.r},${Y.g},${Y.b},0), ${ge})`
2888
2966
  } }), /* @__PURE__ */ v("div", { style: {
2889
2967
  position: "absolute",
2890
2968
  top: "50%",
2891
- left: `${B * 100}%`,
2969
+ left: `${R * 100}%`,
2892
2970
  width: 14,
2893
2971
  height: 14,
2894
2972
  marginLeft: -7,
@@ -2896,7 +2974,7 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2896
2974
  borderRadius: 999,
2897
2975
  border: "2px solid #fff",
2898
2976
  boxShadow: "0 0 0 1px rgba(0,0,0,0.4)",
2899
- backgroundColor: fe,
2977
+ backgroundColor: ge,
2900
2978
  pointerEvents: "none"
2901
2979
  } })]
2902
2980
  })]
@@ -2908,37 +2986,90 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2908
2986
  gap: 6
2909
2987
  },
2910
2988
  children: [
2911
- /* @__PURE__ */ v("div", {
2912
- style: { fontWeight: 600 },
2913
- children: "Brand colours"
2989
+ /* @__PURE__ */ y("div", {
2990
+ style: {
2991
+ display: "flex",
2992
+ alignItems: "center",
2993
+ justifyContent: "space-between"
2994
+ },
2995
+ children: [/* @__PURE__ */ v("div", {
2996
+ style: {
2997
+ fontWeight: 600,
2998
+ fontSize: 12
2999
+ },
3000
+ children: "Brand colours"
3001
+ }), /* @__PURE__ */ y("div", {
3002
+ style: {
3003
+ display: "flex",
3004
+ gap: 2
3005
+ },
3006
+ children: [/* @__PURE__ */ v("button", {
3007
+ type: "button",
3008
+ title: "Grid view",
3009
+ "aria-label": "Grid view",
3010
+ onClick: () => ae("grid"),
3011
+ style: {
3012
+ padding: "2px 4px",
3013
+ border: "none",
3014
+ background: T === "grid" ? "rgba(128,128,128,0.25)" : "transparent",
3015
+ borderRadius: 4,
3016
+ color: x,
3017
+ cursor: "pointer",
3018
+ display: "flex",
3019
+ alignItems: "center"
3020
+ },
3021
+ children: /* @__PURE__ */ v(Pe, { size: 13 })
3022
+ }), /* @__PURE__ */ v("button", {
3023
+ type: "button",
3024
+ title: "List view",
3025
+ "aria-label": "List view",
3026
+ onClick: () => ae("list"),
3027
+ style: {
3028
+ padding: "2px 4px",
3029
+ border: "none",
3030
+ background: T === "list" ? "rgba(128,128,128,0.25)" : "transparent",
3031
+ borderRadius: 4,
3032
+ color: x,
3033
+ cursor: "pointer",
3034
+ display: "flex",
3035
+ alignItems: "center"
3036
+ },
3037
+ children: /* @__PURE__ */ v(Re, { size: 13 })
3038
+ })]
3039
+ })]
2914
3040
  }),
2915
- /* @__PURE__ */ v("div", {
3041
+ T === "grid" ? /* @__PURE__ */ v("div", {
3042
+ role: "listbox",
3043
+ "aria-label": "Brand colours",
2916
3044
  style: {
2917
3045
  display: "flex",
2918
3046
  flexWrap: "wrap",
2919
- gap: 6
3047
+ gap: 6,
3048
+ maxHeight: 110,
3049
+ overflowY: "auto"
2920
3050
  },
2921
3051
  children: b.map((e) => {
2922
3052
  let n = e.value === t;
2923
3053
  return /* @__PURE__ */ v("button", {
2924
3054
  type: "button",
2925
- title: e.label,
3055
+ role: "option",
3056
+ "aria-selected": n,
3057
+ title: e.hint ? `${e.hint} — ${e.label}` : e.label,
2926
3058
  "aria-label": `Use ${e.label}`,
2927
- "aria-pressed": n,
2928
3059
  onClick: () => {
2929
- G.current = e.value, s(e.value);
3060
+ U.current = e.value, s(e.value);
2930
3061
  },
2931
3062
  style: {
2932
- ...Ht,
3063
+ ...Q,
2933
3064
  position: "relative",
2934
3065
  width: 22,
2935
3066
  height: 22,
2936
- borderRadius: 7,
2937
- border: `1px solid ${T}`,
2938
- boxShadow: n ? `0 0 0 2px ${w}` : void 0,
3067
+ borderRadius: 6,
3068
+ border: n ? "2px solid #3b82f6" : `1px solid ${C}`,
2939
3069
  padding: 0,
2940
3070
  cursor: "pointer",
2941
- overflow: "hidden"
3071
+ overflow: "hidden",
3072
+ boxShadow: n ? "0 0 0 1px #3b82f6" : "none"
2942
3073
  },
2943
3074
  children: /* @__PURE__ */ v("span", { style: {
2944
3075
  position: "absolute",
@@ -2947,41 +3078,102 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2947
3078
  } })
2948
3079
  }, e.value);
2949
3080
  })
3081
+ }) : /* @__PURE__ */ v("div", {
3082
+ role: "listbox",
3083
+ "aria-label": "Brand colours",
3084
+ style: {
3085
+ display: "flex",
3086
+ flexDirection: "column",
3087
+ gap: 2,
3088
+ maxHeight: 132,
3089
+ overflowY: "auto"
3090
+ },
3091
+ children: b.map((e) => {
3092
+ let n = e.value === t;
3093
+ return /* @__PURE__ */ y("button", {
3094
+ type: "button",
3095
+ role: "option",
3096
+ "aria-selected": n,
3097
+ title: e.hint ? `${e.hint} — ${e.label}` : e.label,
3098
+ "aria-label": `Use ${e.label}`,
3099
+ onClick: () => {
3100
+ U.current = e.value, s(e.value);
3101
+ },
3102
+ style: {
3103
+ display: "flex",
3104
+ alignItems: "center",
3105
+ gap: 8,
3106
+ padding: "3px 4px",
3107
+ borderRadius: 6,
3108
+ border: "none",
3109
+ background: n ? "rgba(128,128,128,0.18)" : "transparent",
3110
+ color: x,
3111
+ cursor: "pointer",
3112
+ textAlign: "left"
3113
+ },
3114
+ children: [/* @__PURE__ */ v("span", {
3115
+ style: {
3116
+ ...Q,
3117
+ position: "relative",
3118
+ width: 18,
3119
+ height: 18,
3120
+ borderRadius: 5,
3121
+ border: `1px solid ${C}`,
3122
+ flex: "none",
3123
+ overflow: "hidden"
3124
+ },
3125
+ children: /* @__PURE__ */ v("span", { style: {
3126
+ position: "absolute",
3127
+ inset: 0,
3128
+ backgroundColor: e.color
3129
+ } })
3130
+ }), /* @__PURE__ */ v("span", {
3131
+ style: {
3132
+ fontFamily: "ui-monospace, monospace",
3133
+ fontSize: 10.5,
3134
+ overflow: "hidden",
3135
+ textOverflow: "ellipsis",
3136
+ whiteSpace: "nowrap"
3137
+ },
3138
+ children: e.label
3139
+ })]
3140
+ }, e.value);
3141
+ })
2950
3142
  }),
2951
- F && /* @__PURE__ */ y("div", {
3143
+ N && /* @__PURE__ */ y("div", {
2952
3144
  style: {
2953
3145
  fontSize: 11,
2954
3146
  opacity: .7
2955
3147
  },
2956
3148
  children: [
2957
3149
  "Using “",
2958
- F.label,
2959
- "” — it changes if your brand does."
3150
+ N.label,
3151
+ "” — it changes if your brand does. Use the unlink button to keep this colour."
2960
3152
  ]
2961
3153
  })
2962
3154
  ]
2963
3155
  }),
2964
- ve.length > 0 && /* @__PURE__ */ v("div", {
3156
+ Se.length > 0 && /* @__PURE__ */ v("div", {
2965
3157
  style: {
2966
3158
  display: "flex",
2967
3159
  flexWrap: "wrap",
2968
3160
  gap: 6
2969
3161
  },
2970
- children: ve.map((e) => /* @__PURE__ */ v("button", {
3162
+ children: Se.map((e) => /* @__PURE__ */ v("button", {
2971
3163
  type: "button",
2972
3164
  title: e,
2973
3165
  "aria-label": `Use ${e}`,
2974
3166
  onClick: () => {
2975
3167
  let t = n(e);
2976
- t && q(t, e);
3168
+ t && G(t, e);
2977
3169
  },
2978
3170
  style: {
2979
- ...Ht,
3171
+ ...Q,
2980
3172
  position: "relative",
2981
3173
  width: 20,
2982
3174
  height: 20,
2983
3175
  borderRadius: 6,
2984
- border: `1px solid ${T}`,
3176
+ border: `1px solid ${C}`,
2985
3177
  padding: 0,
2986
3178
  cursor: "pointer",
2987
3179
  overflow: "hidden"
@@ -2999,24 +3191,24 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2999
3191
  alignItems: "center",
3000
3192
  justifyContent: "space-between",
3001
3193
  paddingTop: 10,
3002
- borderTop: `1px solid ${T}`
3194
+ borderTop: `1px solid ${C}`
3003
3195
  },
3004
3196
  children: [/* @__PURE__ */ v("button", {
3005
3197
  type: "button",
3006
- onClick: ge,
3007
- title: `Write colours as ${A === "hex" ? "RGBA" : "HEX"}`,
3198
+ onClick: be,
3199
+ title: `Write colours as ${O === "hex" ? "RGBA" : "HEX"}`,
3008
3200
  style: {
3009
3201
  padding: "3px 8px",
3010
3202
  borderRadius: 6,
3011
- border: `1px solid ${T}`,
3203
+ border: `1px solid ${C}`,
3012
3204
  background: "transparent",
3013
- color: S,
3205
+ color: x,
3014
3206
  cursor: "pointer",
3015
3207
  fontSize: 10,
3016
3208
  fontWeight: 700,
3017
3209
  letterSpacing: "0.05em"
3018
3210
  },
3019
- children: A === "hex" ? "HEX" : "RGBA"
3211
+ children: O === "hex" ? "HEX" : "RGBA"
3020
3212
  }), /* @__PURE__ */ y("label", {
3021
3213
  style: {
3022
3214
  display: "flex",
@@ -3028,9 +3220,9 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
3028
3220
  children: ["Transparent", /* @__PURE__ */ v("button", {
3029
3221
  type: "button",
3030
3222
  role: "switch",
3031
- "aria-checked": L,
3223
+ "aria-checked": F,
3032
3224
  "aria-label": "Transparent",
3033
- onClick: () => _e(!L),
3225
+ onClick: () => xe(!F),
3034
3226
  style: {
3035
3227
  position: "relative",
3036
3228
  width: 30,
@@ -3039,13 +3231,13 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
3039
3231
  border: 0,
3040
3232
  padding: 0,
3041
3233
  cursor: "pointer",
3042
- backgroundColor: L ? w : "rgba(128,128,128,0.4)",
3234
+ backgroundColor: F ? S : "rgba(128,128,128,0.4)",
3043
3235
  transition: "background-color .15s"
3044
3236
  },
3045
3237
  children: /* @__PURE__ */ v("span", { style: {
3046
3238
  position: "absolute",
3047
3239
  top: 2,
3048
- left: L ? 14 : 2,
3240
+ left: F ? 14 : 2,
3049
3241
  width: 14,
3050
3242
  height: 14,
3051
3243
  borderRadius: 999,
@@ -3056,7 +3248,7 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
3056
3248
  })]
3057
3249
  })]
3058
3250
  }),
3059
- ae && !F && /* @__PURE__ */ v("p", {
3251
+ le && !N && /* @__PURE__ */ v("p", {
3060
3252
  style: {
3061
3253
  margin: 0,
3062
3254
  fontSize: 11,
@@ -3065,53 +3257,94 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
3065
3257
  children: "This colour comes from a setting the picker can't show. Picking a colour replaces it."
3066
3258
  })
3067
3259
  ]
3068
- }), xe) : null, Ce = /* @__PURE__ */ v(Vt, {
3260
+ }), Te) : null, De = (e) => {
3261
+ let t = n(e);
3262
+ return !!t && !!P && i(t) === i(P);
3263
+ }, Z = !N && !F && P ? b?.find((e) => De(e.color)) : void 0, Oe = N ? /* @__PURE__ */ v("button", {
3264
+ type: "button",
3265
+ onClick: () => {
3266
+ let e = P ? i(P) : N.color;
3267
+ U.current = e, s(e);
3268
+ },
3269
+ title: `Linked to ${N.label}. Unlink to keep this colour even if the brand changes.`,
3270
+ "aria-label": `Unlink from ${N.label}`,
3271
+ className: "shrink-0 w-6 h-6 rounded-md flex items-center justify-center cursor-pointer",
3272
+ style: {
3273
+ color: S,
3274
+ border: `1px solid ${C}`,
3275
+ background: "transparent"
3276
+ },
3277
+ children: /* @__PURE__ */ v(Lt, {
3278
+ width: 13,
3279
+ height: 13
3280
+ })
3281
+ }) : Z ? /* @__PURE__ */ v("button", {
3282
+ type: "button",
3283
+ onClick: () => {
3284
+ U.current = Z.value, s(Z.value);
3285
+ },
3286
+ title: `This is ${Z.label}. Link it so it follows the brand.`,
3287
+ "aria-label": `Link to ${Z.label}`,
3288
+ className: "shrink-0 w-6 h-6 rounded-md flex items-center justify-center cursor-pointer",
3289
+ style: {
3290
+ color: x,
3291
+ opacity: .7,
3292
+ border: `1px solid ${C}`,
3293
+ background: "transparent"
3294
+ },
3295
+ children: /* @__PURE__ */ v(Le, {
3296
+ width: 13,
3297
+ height: 13
3298
+ })
3299
+ }) : null, ke = /* @__PURE__ */ v(Kt, {
3069
3300
  filter: (e) => e.type === "color" || /^#[0-9a-fA-F]{3,8}$|^rgba?\(|^hsla?\(/.test(e.value),
3070
3301
  onSelect: s,
3071
3302
  currentValue: t
3072
3303
  });
3073
3304
  return d ? /* @__PURE__ */ y("div", {
3074
- ref: M,
3305
+ ref: se,
3075
3306
  className: "relative flex items-center gap-1.5 w-full min-w-0",
3076
3307
  children: [
3077
- be,
3078
- ye,
3308
+ we,
3079
3309
  Ce,
3080
- J && /* @__PURE__ */ v("span", {
3310
+ Oe,
3311
+ ke,
3312
+ K && /* @__PURE__ */ v("span", {
3081
3313
  className: "sr-only",
3082
3314
  role: "alert",
3083
3315
  children: "That isn't a colour. Try something like #3b82f6."
3084
3316
  }),
3085
- Se
3317
+ Ee
3086
3318
  ]
3087
3319
  }) : /* @__PURE__ */ y("div", {
3088
- ref: M,
3320
+ ref: se,
3089
3321
  className: "relative flex flex-col border-b border-slate-800/10 last:border-b-0 py-3",
3090
3322
  children: [
3091
3323
  /* @__PURE__ */ y("div", {
3092
3324
  className: "flex items-center justify-between gap-2",
3093
3325
  children: [e && /* @__PURE__ */ v("span", {
3094
3326
  className: "text-sm font-semibold leading-5 tracking-[0.01em]",
3095
- style: { color: S },
3327
+ style: { color: x },
3096
3328
  children: e
3097
3329
  }), /* @__PURE__ */ y("div", {
3098
3330
  className: "flex items-center gap-2 min-w-0",
3099
3331
  children: [
3100
- ye,
3101
3332
  Ce,
3102
- be
3333
+ Oe,
3334
+ ke,
3335
+ we
3103
3336
  ]
3104
3337
  })]
3105
3338
  }),
3106
- J && /* @__PURE__ */ v("p", {
3339
+ K && /* @__PURE__ */ v("p", {
3107
3340
  role: "alert",
3108
3341
  className: "text-[11px] text-right mt-1",
3109
3342
  style: { color: "#fb7185" },
3110
3343
  children: "That isn't a colour. Try something like #3b82f6."
3111
3344
  }),
3112
- Se
3345
+ Ee
3113
3346
  ]
3114
3347
  });
3115
3348
  };
3116
3349
  //#endregion
3117
- export { We as $, ae as $t, pt as A, Q as At, rt as B, J as Bt, bt as C, be as Ct, gt as D, ge as Dt, _t as E, _e as Et, ct as F, ue as Ft, Qe as G, W as Gt, tt as H, q as Ht, st as I, le as It, Ye as J, V as Jt, Ze as K, U as Kt, ot as L, X as Lt, dt as M, fe as Mt, ut as N, Z as Nt, ht as O, he as Ot, lt as P, de as Pt, Ge as Q, R as Qt, at as R, Y as Rt, xt as S, xe as St, vt as T, ve as Tt, et as U, K as Ut, nt as V, se as Vt, $e as W, G as Wt, qe as X, oe as Xt, Je as Y, B as Yt, Ke as Z, z as Zt, Et as _, Ee as _t, Rt as a, N as an, Re as at, Ct as b, Ce as bt, Ft as c, ne as cn, Fe as ct, Mt as d, Me as dt, L as en, Ue as et, jt as f, je as ft, Dt as g, De as gt, Ot as h, Oe as ht, zt as i, P as in, ze as it, ft as j, pe as jt, mt as k, me as kt, Pt as l, j as ln, Pe as lt, kt as m, ke as mt, Vt as n, ie as nn, Ve as nt, Lt as o, M as on, Le as ot, At as p, Ae as pt, Xe as q, H as qt, Bt as r, F as rn, Be as rt, It as s, re as sn, Ie as st, Jt as t, I as tn, He as tt, Nt as u, C as un, Ne as ut, Tt as v, Te as vt, yt as w, ye as wt, St as x, Se as xt, wt as y, we as yt, it as z, ce as zt };
3350
+ export { Ye as $, L as $t, vt as A, ye as At, ct as B, q as Bt, Tt as C, Ee as Ct, xt as D, Se as Dt, St as E, Ce as Et, pt as F, Y as Ft, rt as G, W as Gt, ot as H, K as Ht, ft as I, he as It, et as J, V as Jt, nt as K, U as Kt, dt as L, me as Lt, gt as M, X as Mt, ht as N, _e as Nt, bt as O, xe as Ot, mt as P, ge as Pt, Xe as Q, ue as Qt, ut as R, pe as Rt, Et as S, De as St, Ct as T, we as Tt, at as U, de as Ut, st as V, fe as Vt, it as W, G as Wt, Qe as X, z as Xt, $e as Y, B as Yt, Ze as Z, R as Zt, jt as _, je as _t, Ut as a, N as an, Ue as at, Ot as b, Oe as bt, Bt as c, se as cn, Be as ct, Lt as d, k as dn, Le as dt, I as en, Je as et, It as f, D as fn, Ie as ft, Mt as g, Me as gt, Nt as h, Ne as ht, Wt as i, ce as in, We as it, _t as j, ve as jt, yt as k, be as kt, zt as l, oe as ln, ze as lt, Pt as m, re as mn, Pe as mt, Kt as n, F as nn, Ke as nt, Ht as o, M as on, He as ot, Ft as p, O as pn, Fe as pt, tt as q, H as qt, Gt as r, P as rn, Ge as rt, Vt as s, j as sn, Ve as st, Qt as t, le as tn, qe as tt, Rt as u, A as un, Re as ut, At as v, Ae as vt, wt as w, Te as wt, Dt as x, Z as xt, kt as y, ke as yt, lt as z, J as zt };