@stackone/malachite 2.13.0 → 2.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMPONENTS.md +1 -1
- package/dist/{CodeBlockHighlighter-CJDfmRyz.js → CodeBlockHighlighter-DYSYBGVc.js} +2 -2
- package/dist/{CodeBlockHighlighter-CJDfmRyz.js.map → CodeBlockHighlighter-DYSYBGVc.js.map} +1 -1
- package/dist/{index-DEtNVums.js → index-BscmsnkZ.js} +758 -757
- package/dist/{index-DEtNVums.js.map → index-BscmsnkZ.js.map} +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1593,14 +1593,14 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
1593
1593
|
stickyTopOffset: p = 0,
|
|
1594
1594
|
animate: g = !0
|
|
1595
1595
|
}) => {
|
|
1596
|
-
const m = l === "sunken",
|
|
1596
|
+
const m = l === "sunken", f = `${l1()}-body`, [x, y] = Y(s), w = i !== void 0 ? i : x, A = g || w && !!a, [k, I] = Y(!1), B = () => {
|
|
1597
1597
|
const z = !w;
|
|
1598
1598
|
i === void 0 && y(z), c == null || c(z);
|
|
1599
1599
|
}, E = [
|
|
1600
1600
|
"flex flex-col w-full text-left",
|
|
1601
1601
|
m ? "rounded-xl bg-[var(--malachite-card-dimmed-background)] p-[4px]" : "",
|
|
1602
1602
|
r
|
|
1603
|
-
].filter(Boolean).join(" "),
|
|
1603
|
+
].filter(Boolean).join(" "), M = [
|
|
1604
1604
|
// `group` only when enabled, so the arrow doesn't darken on hover while disabled.
|
|
1605
1605
|
d ? "" : "group",
|
|
1606
1606
|
"flex items-center w-full transition-colors",
|
|
@@ -1610,9 +1610,9 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
1610
1610
|
].filter(Boolean).join(" "), N = [
|
|
1611
1611
|
"flex flex-1 items-center min-w-0 appearance-none border-0 bg-transparent text-left cursor-pointer select-none disabled:cursor-not-allowed",
|
|
1612
1612
|
m ? `gap-[16px] px-[16px] py-[12px] rounded-lg ${_e}` : `gap-[12px] p-[16px] ${Kt}`
|
|
1613
|
-
].join(" "),
|
|
1613
|
+
].join(" "), T = h ? { top: `${p}px`, backgroundColor: "var(--malachite-card-background)" } : {};
|
|
1614
1614
|
return /* @__PURE__ */ v("div", { className: E, children: [
|
|
1615
|
-
/* @__PURE__ */ v("div", { className:
|
|
1615
|
+
/* @__PURE__ */ v("div", { className: M, style: T, "data-accordion-header": "", children: [
|
|
1616
1616
|
/* @__PURE__ */ v(
|
|
1617
1617
|
"button",
|
|
1618
1618
|
{
|
|
@@ -1620,7 +1620,7 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
1620
1620
|
className: N,
|
|
1621
1621
|
onClick: B,
|
|
1622
1622
|
"aria-expanded": w,
|
|
1623
|
-
"aria-controls": A ?
|
|
1623
|
+
"aria-controls": A ? f : void 0,
|
|
1624
1624
|
disabled: d,
|
|
1625
1625
|
children: [
|
|
1626
1626
|
m ? null : /* @__PURE__ */ n(L5, { expanded: w }),
|
|
@@ -1639,7 +1639,7 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
1639
1639
|
/* @__PURE__ */ n(
|
|
1640
1640
|
"div",
|
|
1641
1641
|
{
|
|
1642
|
-
id:
|
|
1642
|
+
id: f,
|
|
1643
1643
|
className: "grid grid-cols-[minmax(0,1fr)] w-full transition-[grid-template-rows] duration-200 ease-in-out",
|
|
1644
1644
|
style: { gridTemplateRows: w ? "1fr" : "0fr" },
|
|
1645
1645
|
onTransitionEnd: (z) => {
|
|
@@ -1665,7 +1665,7 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
1665
1665
|
w && a && /* @__PURE__ */ n(
|
|
1666
1666
|
"div",
|
|
1667
1667
|
{
|
|
1668
|
-
id:
|
|
1668
|
+
id: f,
|
|
1669
1669
|
className: m ? "pt-[4px]" : "border-b border-solid border-[var(--malachite-card-border)]",
|
|
1670
1670
|
children: a
|
|
1671
1671
|
}
|
|
@@ -1763,10 +1763,10 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
1763
1763
|
shouldShow: d,
|
|
1764
1764
|
describesTrigger: h = !0
|
|
1765
1765
|
}) => {
|
|
1766
|
-
const p = s || c ? { ...s ? Wi : {}, ...c ? Gi : {} } : void 0, [g, m] = Y(!1), [b,
|
|
1766
|
+
const p = s || c ? { ...s ? Wi : {}, ...c ? Gi : {} } : void 0, [g, m] = Y(!1), [b, f] = Y(!1), x = R(null), y = R(null), w = he(() => {
|
|
1767
1767
|
x.current && (clearTimeout(x.current), x.current = null), y.current !== null && (cancelAnimationFrame(y.current), y.current = null);
|
|
1768
1768
|
}, []), A = () => {
|
|
1769
|
-
|
|
1769
|
+
f(!0), y.current !== null && cancelAnimationFrame(y.current), y.current = requestAnimationFrame(() => {
|
|
1770
1770
|
y.current = null, m(!0);
|
|
1771
1771
|
});
|
|
1772
1772
|
}, k = R(null), I = R(null);
|
|
@@ -1775,11 +1775,11 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
1775
1775
|
P.stopPropagation(), !(!E || d && !d()) && (w(), x.current = setTimeout(() => {
|
|
1776
1776
|
A();
|
|
1777
1777
|
}, r * 1e3));
|
|
1778
|
-
},
|
|
1778
|
+
}, M = (P) => {
|
|
1779
1779
|
P.stopPropagation(), w(), m(!1);
|
|
1780
1780
|
}, N = () => {
|
|
1781
1781
|
!E || d && !d() || (w(), A());
|
|
1782
|
-
},
|
|
1782
|
+
}, T = () => {
|
|
1783
1783
|
w(), m(!1);
|
|
1784
1784
|
}, [, z] = Y({});
|
|
1785
1785
|
ue(() => {
|
|
@@ -1872,9 +1872,9 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
1872
1872
|
className: "relative flex items-center",
|
|
1873
1873
|
style: p,
|
|
1874
1874
|
onMouseEnter: V,
|
|
1875
|
-
onMouseLeave:
|
|
1875
|
+
onMouseLeave: M,
|
|
1876
1876
|
onFocus: N,
|
|
1877
|
-
onBlur:
|
|
1877
|
+
onBlur: T,
|
|
1878
1878
|
children: pe
|
|
1879
1879
|
}
|
|
1880
1880
|
),
|
|
@@ -2053,7 +2053,7 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
2053
2053
|
children: g,
|
|
2054
2054
|
className: m = "",
|
|
2055
2055
|
href: b,
|
|
2056
|
-
target:
|
|
2056
|
+
target: f,
|
|
2057
2057
|
rel: x,
|
|
2058
2058
|
...y
|
|
2059
2059
|
}, w) => {
|
|
@@ -2097,8 +2097,8 @@ const pl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
|
|
|
2097
2097
|
{
|
|
2098
2098
|
ref: w,
|
|
2099
2099
|
href: b,
|
|
2100
|
-
target:
|
|
2101
|
-
rel: zi(x,
|
|
2100
|
+
target: f,
|
|
2101
|
+
rel: zi(x, f),
|
|
2102
2102
|
className: I,
|
|
2103
2103
|
...y,
|
|
2104
2104
|
children: B()
|
|
@@ -2262,14 +2262,14 @@ ${h}` : h;
|
|
|
2262
2262
|
if ((g == null ? void 0 : g.type) === "blockquote") {
|
|
2263
2263
|
let m = g, b = m.raw + `
|
|
2264
2264
|
` + r.join(`
|
|
2265
|
-
`),
|
|
2266
|
-
l[l.length - 1] =
|
|
2265
|
+
`), f = this.blockquote(b);
|
|
2266
|
+
l[l.length - 1] = f, a = a.substring(0, a.length - m.raw.length) + f.raw, o = o.substring(0, o.length - m.text.length) + f.text;
|
|
2267
2267
|
break;
|
|
2268
2268
|
} else if ((g == null ? void 0 : g.type) === "list") {
|
|
2269
2269
|
let m = g, b = m.raw + `
|
|
2270
2270
|
` + r.join(`
|
|
2271
|
-
`),
|
|
2272
|
-
l[l.length - 1] =
|
|
2271
|
+
`), f = this.list(b);
|
|
2272
|
+
l[l.length - 1] = f, a = a.substring(0, a.length - g.raw.length) + f.raw, o = o.substring(0, o.length - m.raw.length) + f.raw, r = b.substring(l.at(-1).raw.length).split(`
|
|
2273
2273
|
`);
|
|
2274
2274
|
continue;
|
|
2275
2275
|
}
|
|
@@ -2309,8 +2309,8 @@ ${h}` : h;
|
|
|
2309
2309
|
}
|
|
2310
2310
|
}
|
|
2311
2311
|
o.loose || (s ? o.loose = !0 : this.rules.other.doubleBlankLine.test(d) && (s = !0));
|
|
2312
|
-
let
|
|
2313
|
-
this.options.gfm && (
|
|
2312
|
+
let f = null, x;
|
|
2313
|
+
this.options.gfm && (f = this.rules.other.listIsTask.exec(h), f && (x = f[0] !== "[ ] ", h = h.replace(this.rules.other.listReplaceTask, ""))), o.items.push({ type: "list_item", raw: d, task: !!f, checked: x, loose: !1, text: h, tokens: [] }), o.raw += d;
|
|
2314
2314
|
}
|
|
2315
2315
|
let i = o.items.at(-1);
|
|
2316
2316
|
if (i) i.raw = i.raw.trimEnd(), i.text = i.text.trimEnd();
|
|
@@ -2660,8 +2660,8 @@ ${h}` : h;
|
|
|
2660
2660
|
let p = t;
|
|
2661
2661
|
if ((d = this.options.extensions) != null && d.startInline) {
|
|
2662
2662
|
let g = 1 / 0, m = t.slice(1), b;
|
|
2663
|
-
this.options.extensions.startInline.forEach((
|
|
2664
|
-
b =
|
|
2663
|
+
this.options.extensions.startInline.forEach((f) => {
|
|
2664
|
+
b = f.call({ lexer: this }, m), typeof b == "number" && b >= 0 && (g = Math.min(g, b));
|
|
2665
2665
|
}), g < 1 / 0 && g >= 0 && (p = t.substring(0, g + 1));
|
|
2666
2666
|
}
|
|
2667
2667
|
if (h = this.tokenizer.inlineText(p)) {
|
|
@@ -3897,8 +3897,8 @@ const H7 = (e) => {
|
|
|
3897
3897
|
onToggle: s
|
|
3898
3898
|
}) => {
|
|
3899
3899
|
const i = !!o, [c, d] = Y(!1), h = l !== void 0 ? l : c, p = () => {
|
|
3900
|
-
const
|
|
3901
|
-
l === void 0 && d(
|
|
3900
|
+
const f = !h;
|
|
3901
|
+
l === void 0 && d(f), s == null || s(f);
|
|
3902
3902
|
}, g = [
|
|
3903
3903
|
"alert-base",
|
|
3904
3904
|
`alert-${e}`,
|
|
@@ -4084,7 +4084,7 @@ const H7 = (e) => {
|
|
|
4084
4084
|
height: i ? "100%" : void 0,
|
|
4085
4085
|
width: c ? "100%" : void 0
|
|
4086
4086
|
},
|
|
4087
|
-
children: m.map((b,
|
|
4087
|
+
children: m.map((b, f) => /* @__PURE__ */ n(Fe.Fragment, { children: b }, f))
|
|
4088
4088
|
}
|
|
4089
4089
|
);
|
|
4090
4090
|
}, Xe = ({
|
|
@@ -4137,7 +4137,7 @@ const H7 = (e) => {
|
|
|
4137
4137
|
descriptionId: m,
|
|
4138
4138
|
hintId: b
|
|
4139
4139
|
}) => {
|
|
4140
|
-
const
|
|
4140
|
+
const f = c ? /* @__PURE__ */ n(h4, { control: c, name: a, children: h }) : Y2(h, d4);
|
|
4141
4141
|
return /* @__PURE__ */ v(it, { direction: "vertical", size: 6, align: "stretch", children: [
|
|
4142
4142
|
(e ?? t ?? o) && /* @__PURE__ */ v(it, { direction: "vertical", size: 4, align: "stretch", children: [
|
|
4143
4143
|
/* @__PURE__ */ v("div", { className: "flex justify-between items-start", children: [
|
|
@@ -4156,7 +4156,7 @@ const H7 = (e) => {
|
|
|
4156
4156
|
] }),
|
|
4157
4157
|
o && /* @__PURE__ */ n(g4, { text: o, id: m })
|
|
4158
4158
|
] }),
|
|
4159
|
-
i ? d :
|
|
4159
|
+
i ? d : f
|
|
4160
4160
|
] });
|
|
4161
4161
|
}, p4 = ({ text: e, id: t }) => /* @__PURE__ */ n("span", { id: t, children: /* @__PURE__ */ n(Xe, { size: "xsmall", color: "dimmed", className: "pr-2 relative top-[3px]", children: e }) }), g4 = ({ text: e, id: t }) => /* @__PURE__ */ n("div", { className: "pl-2 text-left", id: t, children: /* @__PURE__ */ n(n5, { color: "dimmed", size: "small", text: e ?? "", omitMargin: !0 }) }), m4 = ({
|
|
4162
4162
|
text: e,
|
|
@@ -4337,18 +4337,18 @@ const H7 = (e) => {
|
|
|
4337
4337
|
height: g,
|
|
4338
4338
|
footer: m,
|
|
4339
4339
|
glassFooter: b = !1,
|
|
4340
|
-
className:
|
|
4340
|
+
className: f = "",
|
|
4341
4341
|
style: x = {},
|
|
4342
4342
|
headerConfig: y = {}
|
|
4343
4343
|
}) => {
|
|
4344
4344
|
const w = R(null), [A, k] = Y(0);
|
|
4345
4345
|
ue(() => {
|
|
4346
4346
|
if (b && m && w.current) {
|
|
4347
|
-
const
|
|
4347
|
+
const T = new ResizeObserver((z) => {
|
|
4348
4348
|
for (const ee of z)
|
|
4349
4349
|
k(ee.contentRect.height);
|
|
4350
4350
|
});
|
|
4351
|
-
return
|
|
4351
|
+
return T.observe(w.current), k(w.current.offsetHeight), () => T.disconnect();
|
|
4352
4352
|
}
|
|
4353
4353
|
}, [b, m]);
|
|
4354
4354
|
const B = [
|
|
@@ -4358,8 +4358,8 @@ const H7 = (e) => {
|
|
|
4358
4358
|
d ? "h-full" : "",
|
|
4359
4359
|
g ? "flex flex-col" : "",
|
|
4360
4360
|
a === "small" ? "text-sm" : "",
|
|
4361
|
-
|
|
4362
|
-
].filter(Boolean).join(" "), E = parseInt(r) || 20,
|
|
4361
|
+
f
|
|
4362
|
+
].filter(Boolean).join(" "), E = parseInt(r) || 20, M = {
|
|
4363
4363
|
padding: r,
|
|
4364
4364
|
display: i ? "flex" : void 0,
|
|
4365
4365
|
flexDirection: i,
|
|
@@ -4397,7 +4397,7 @@ const H7 = (e) => {
|
|
|
4397
4397
|
{
|
|
4398
4398
|
className: "flex-1",
|
|
4399
4399
|
style: {
|
|
4400
|
-
...
|
|
4400
|
+
...M,
|
|
4401
4401
|
...b && m && { position: "relative" }
|
|
4402
4402
|
},
|
|
4403
4403
|
children: t
|
|
@@ -4516,17 +4516,17 @@ const H7 = (e) => {
|
|
|
4516
4516
|
onRemove: m,
|
|
4517
4517
|
className: b = ""
|
|
4518
4518
|
}) => {
|
|
4519
|
-
const
|
|
4519
|
+
const f = p ? { color: mt(p) } : void 0, x = R(null), y = R(null), [w, A] = Y(!1), k = typeof e == "string" || typeof e == "number", I = he((N) => {
|
|
4520
4520
|
var ee;
|
|
4521
4521
|
if ((ee = x.current) == null || ee.disconnect(), x.current = null, y.current !== null && (cancelAnimationFrame(y.current), y.current = null), !N || typeof ResizeObserver > "u")
|
|
4522
4522
|
return;
|
|
4523
|
-
const
|
|
4523
|
+
const T = () => {
|
|
4524
4524
|
y.current = null, N.clientWidth !== 0 && A((ie) => {
|
|
4525
4525
|
const pe = N.scrollWidth > N.clientWidth;
|
|
4526
4526
|
return ie === pe ? ie : pe;
|
|
4527
4527
|
});
|
|
4528
4528
|
}, z = () => {
|
|
4529
|
-
y.current === null && (y.current = requestAnimationFrame(
|
|
4529
|
+
y.current === null && (y.current = requestAnimationFrame(T));
|
|
4530
4530
|
};
|
|
4531
4531
|
z(), x.current = B4(N, z);
|
|
4532
4532
|
}, []), B = (N) => {
|
|
@@ -4538,7 +4538,7 @@ const H7 = (e) => {
|
|
|
4538
4538
|
o ? `cursor-pointer ${_e}` : `cursor-${g}`,
|
|
4539
4539
|
k ? "min-w-0 max-w-full" : "",
|
|
4540
4540
|
b
|
|
4541
|
-
].filter(Boolean).join(" "), V = I4(r, a, l, c),
|
|
4541
|
+
].filter(Boolean).join(" "), V = I4(r, a, l, c), M = /* @__PURE__ */ v(
|
|
4542
4542
|
"div",
|
|
4543
4543
|
{
|
|
4544
4544
|
className: E,
|
|
@@ -4547,9 +4547,9 @@ const H7 = (e) => {
|
|
|
4547
4547
|
onKeyDown: o ? (N) => en(N, o) : void 0,
|
|
4548
4548
|
style: V,
|
|
4549
4549
|
children: [
|
|
4550
|
-
d && h === "left" && /* @__PURE__ */ n("span", { className: "mr-1 flex items-center", style:
|
|
4550
|
+
d && h === "left" && /* @__PURE__ */ n("span", { className: "mr-1 flex items-center", style: f, children: d }),
|
|
4551
4551
|
k ? /* @__PURE__ */ n("span", { className: "flex items-center min-w-0", children: /* @__PURE__ */ n("span", { ref: I, className: "block min-w-0 truncate", children: e }, String(e)) }) : /* @__PURE__ */ n("span", { className: "flex items-center", children: e }),
|
|
4552
|
-
d && h === "right" && /* @__PURE__ */ n("span", { className: "ml-1 flex items-center", style:
|
|
4552
|
+
d && h === "right" && /* @__PURE__ */ n("span", { className: "ml-1 flex items-center", style: f, children: d }),
|
|
4553
4553
|
m && /* @__PURE__ */ n(
|
|
4554
4554
|
"button",
|
|
4555
4555
|
{
|
|
@@ -4565,7 +4565,7 @@ const H7 = (e) => {
|
|
|
4565
4565
|
]
|
|
4566
4566
|
}
|
|
4567
4567
|
);
|
|
4568
|
-
return w ? /* @__PURE__ */ n(h1, { text: e, placement: "top", wrapChildren: !1, isShrinkable: !0, children:
|
|
4568
|
+
return w ? /* @__PURE__ */ n(h1, { text: e, placement: "top", wrapChildren: !1, isShrinkable: !0, children: M }) : M;
|
|
4569
4569
|
}, ya = ({
|
|
4570
4570
|
text: e,
|
|
4571
4571
|
children: t,
|
|
@@ -4783,7 +4783,7 @@ ${_4}`, n8 = {
|
|
|
4783
4783
|
hoverLabel: g = "Select",
|
|
4784
4784
|
loading: m = !1,
|
|
4785
4785
|
loadingLabel: b = "Loading…",
|
|
4786
|
-
loadingHint:
|
|
4786
|
+
loadingHint: f,
|
|
4787
4787
|
disabled: x = !1,
|
|
4788
4788
|
dimmed: y = !1,
|
|
4789
4789
|
onSelect: w,
|
|
@@ -4792,9 +4792,9 @@ ${_4}`, n8 = {
|
|
|
4792
4792
|
className: I = "",
|
|
4793
4793
|
style: B
|
|
4794
4794
|
}) => {
|
|
4795
|
-
const { pinned: E } = N4(), V = !h && !x,
|
|
4796
|
-
tt(
|
|
4797
|
-
const N = `mal-selectable-card-${l1().replace(/[^a-zA-Z0-9_-]/g, "")}`,
|
|
4795
|
+
const { pinned: E } = N4(), V = !h && !x, M = R(null);
|
|
4796
|
+
tt(M, o8, J4);
|
|
4797
|
+
const N = `mal-selectable-card-${l1().replace(/[^a-zA-Z0-9_-]/g, "")}`, T = `${N}-outline`, z = `${N}-eyebrow`, ee = `${N}-status`, ie = `${N}-title`, pe = `${N}-description`, ae = `${N}-count`, P = k ? void 0 : po([l ? z : void 0, ie, s ? ee : void 0]), $ = po([
|
|
4798
4798
|
i ? pe : void 0,
|
|
4799
4799
|
c ? ae : void 0
|
|
4800
4800
|
]);
|
|
@@ -4802,7 +4802,7 @@ ${_4}`, n8 = {
|
|
|
4802
4802
|
return /* @__PURE__ */ v(
|
|
4803
4803
|
"div",
|
|
4804
4804
|
{
|
|
4805
|
-
ref:
|
|
4805
|
+
ref: M,
|
|
4806
4806
|
role: "status",
|
|
4807
4807
|
"aria-busy": "true",
|
|
4808
4808
|
"aria-live": "polite",
|
|
@@ -4832,7 +4832,7 @@ ${_4}`, n8 = {
|
|
|
4832
4832
|
fill: "none",
|
|
4833
4833
|
"aria-hidden": "true",
|
|
4834
4834
|
children: [
|
|
4835
|
-
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ v("linearGradient", { id:
|
|
4835
|
+
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ v("linearGradient", { id: T, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
4836
4836
|
/* @__PURE__ */ n("stop", { offset: "0", style: { stopColor: `var(${ct})` } }),
|
|
4837
4837
|
/* @__PURE__ */ n("stop", { offset: "1", style: { stopColor: io } })
|
|
4838
4838
|
] }) }),
|
|
@@ -4841,7 +4841,7 @@ ${_4}`, n8 = {
|
|
|
4841
4841
|
{
|
|
4842
4842
|
d: so,
|
|
4843
4843
|
"data-malachite-shape": "",
|
|
4844
|
-
style: { fill: `url(#${
|
|
4844
|
+
style: { fill: `url(#${T})` }
|
|
4845
4845
|
}
|
|
4846
4846
|
),
|
|
4847
4847
|
/* @__PURE__ */ n(
|
|
@@ -4857,7 +4857,7 @@ ${_4}`, n8 = {
|
|
|
4857
4857
|
}
|
|
4858
4858
|
),
|
|
4859
4859
|
/* @__PURE__ */ n(Xe, { size: "small", fontWeight: "semi-bold", style: c8, children: b }),
|
|
4860
|
-
|
|
4860
|
+
f ? /* @__PURE__ */ n(Xe, { size: "xsmall", fontWeight: "semi-bold", style: d8, children: f }) : null
|
|
4861
4861
|
]
|
|
4862
4862
|
}
|
|
4863
4863
|
);
|
|
@@ -4865,7 +4865,7 @@ ${_4}`, n8 = {
|
|
|
4865
4865
|
return /* @__PURE__ */ v(
|
|
4866
4866
|
"div",
|
|
4867
4867
|
{
|
|
4868
|
-
ref:
|
|
4868
|
+
ref: M,
|
|
4869
4869
|
"data-variant": o,
|
|
4870
4870
|
"data-pinned": E ? "true" : "false",
|
|
4871
4871
|
"data-state": h ? "selected" : "resting",
|
|
@@ -4889,7 +4889,7 @@ ${_4}`, n8 = {
|
|
|
4889
4889
|
fill: "none",
|
|
4890
4890
|
"aria-hidden": "true",
|
|
4891
4891
|
children: [
|
|
4892
|
-
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ v("linearGradient", { id:
|
|
4892
|
+
/* @__PURE__ */ n("defs", { children: /* @__PURE__ */ v("linearGradient", { id: T, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
4893
4893
|
/* @__PURE__ */ n("stop", { offset: "0", style: { stopColor: `var(${ct})` } }),
|
|
4894
4894
|
/* @__PURE__ */ n("stop", { offset: "1", style: { stopColor: io } })
|
|
4895
4895
|
] }) }),
|
|
@@ -4898,7 +4898,7 @@ ${_4}`, n8 = {
|
|
|
4898
4898
|
{
|
|
4899
4899
|
d: so,
|
|
4900
4900
|
"data-malachite-shape": "",
|
|
4901
|
-
style: { fill: `url(#${
|
|
4901
|
+
style: { fill: `url(#${T})` }
|
|
4902
4902
|
}
|
|
4903
4903
|
),
|
|
4904
4904
|
/* @__PURE__ */ n(
|
|
@@ -5238,17 +5238,17 @@ ${_4}`, n8 = {
|
|
|
5238
5238
|
className: g = "",
|
|
5239
5239
|
style: m
|
|
5240
5240
|
}) => {
|
|
5241
|
-
const b = R(null),
|
|
5241
|
+
const b = R(null), f = R(null), [x, y] = Y({ canScrollLeft: !1, canScrollRight: !1 });
|
|
5242
5242
|
tt(b, O8, W8);
|
|
5243
5243
|
const w = Fe.Children.toArray(a), A = w.filter((D) => !Ba(D)), k = A.some(o9), I = A.length > 0, B = w.filter(Ba).map(
|
|
5244
5244
|
(D) => D.props.emphasis === void 0 ? Fe.cloneElement(D, { emphasis: I ? "secondary" : "primary" }) : D
|
|
5245
5245
|
), E = w.length, V = he(() => {
|
|
5246
5246
|
const D = b.current;
|
|
5247
5247
|
return D ? Array.from(D.querySelectorAll(jt)) : [];
|
|
5248
|
-
}, []),
|
|
5248
|
+
}, []), M = he(
|
|
5249
5249
|
() => V().filter((D) => M1(D) !== null),
|
|
5250
5250
|
[V]
|
|
5251
|
-
), N = R(/* @__PURE__ */ new Set()),
|
|
5251
|
+
), N = R(/* @__PURE__ */ new Set()), T = he((D, G) => {
|
|
5252
5252
|
N.current.has(D) || (N.current.add(D), console.warn(G));
|
|
5253
5253
|
}, []), [z, ee] = Y("profile");
|
|
5254
5254
|
Ye(() => {
|
|
@@ -5256,7 +5256,7 @@ ${_4}`, n8 = {
|
|
|
5256
5256
|
const D = (Q = (G = V().find((X) => M1(X) === e)) == null ? void 0 : G.parentElement) == null ? void 0 : Q.getAttribute("data-variant");
|
|
5257
5257
|
(D === "profile" || D === "library" || D === "editing") && ee(D);
|
|
5258
5258
|
}, [V, e]), Ye(() => {
|
|
5259
|
-
const D = V(), G =
|
|
5259
|
+
const D = V(), G = M(), X = G.find((K) => M1(K) === e) ?? G.find((K) => !oa(K)) ?? null;
|
|
5260
5260
|
if (D.forEach((K) => {
|
|
5261
5261
|
const le = K === X, be = le ? 0 : -1;
|
|
5262
5262
|
K.tabIndex !== be && (K.tabIndex = be);
|
|
@@ -5264,37 +5264,37 @@ ${_4}`, n8 = {
|
|
|
5264
5264
|
le ? j8(De) : Y8(De);
|
|
5265
5265
|
}), process.env.NODE_ENV === "production")
|
|
5266
5266
|
return;
|
|
5267
|
-
G.length !== D.length &&
|
|
5267
|
+
G.length !== D.length && T(
|
|
5268
5268
|
"missing-value",
|
|
5269
5269
|
'CardStrip: a child with role="radio" has no `data-value`. It cannot be selected or reached by arrow keys, so it is excluded from the radio set. Give every card a `data-value`.'
|
|
5270
5270
|
);
|
|
5271
5271
|
const O = /* @__PURE__ */ new Set();
|
|
5272
5272
|
for (const K of G) {
|
|
5273
5273
|
const le = M1(K);
|
|
5274
|
-
le !== null && (O.has(le) &&
|
|
5274
|
+
le !== null && (O.has(le) && T(
|
|
5275
5275
|
`duplicate:${le}`,
|
|
5276
5276
|
`CardStrip: two cards share the data-value "${le}". Both will read as checked and only the first is selectable — data-value must be unique.`
|
|
5277
5277
|
), O.add(le));
|
|
5278
5278
|
}
|
|
5279
5279
|
const j = e !== "";
|
|
5280
|
-
D.length > 0 && j && !O.has(e) &&
|
|
5280
|
+
D.length > 0 && j && !O.has(e) && T(
|
|
5281
5281
|
`unmatched:${e}`,
|
|
5282
5282
|
`CardStrip: value "${e}" matches no card's data-value, so the group reports no selection.`
|
|
5283
5283
|
);
|
|
5284
5284
|
const ge = D.filter(
|
|
5285
5285
|
(K) => K.getAttribute("aria-checked") === "true"
|
|
5286
5286
|
).length;
|
|
5287
|
-
D.length > 0 && j && ge !== 1 &&
|
|
5287
|
+
D.length > 0 && j && ge !== 1 && T(
|
|
5288
5288
|
`checked:${ge}`,
|
|
5289
5289
|
`CardStrip: ${ge} cards are aria-checked, but a radiogroup has exactly one. Drive each card's checked state from the strip's \`value\`.`
|
|
5290
|
-
), k &&
|
|
5290
|
+
), k && T(
|
|
5291
5291
|
"wrapped-add-tile",
|
|
5292
5292
|
"CardStrip: a CardStrip.AddTile inside a fragment is treated as a card and scrolls with them. The add tile must be a direct child of CardStrip."
|
|
5293
5293
|
);
|
|
5294
5294
|
}), Ye(() => {
|
|
5295
5295
|
if (!d)
|
|
5296
5296
|
return;
|
|
5297
|
-
const D =
|
|
5297
|
+
const D = f.current, G = V().find((be) => M1(be) === e);
|
|
5298
5298
|
if (!D || !G || typeof D.scrollTo != "function")
|
|
5299
5299
|
return;
|
|
5300
5300
|
const X = (G.closest('[role="radio"]') ?? G).getBoundingClientRect(), O = D.getBoundingClientRect(), j = D.scrollLeft + (X.left - O.left), ge = j + X.width, K = D.scrollLeft + C1, le = D.scrollLeft + D.clientWidth - C1;
|
|
@@ -5305,7 +5305,7 @@ ${_4}`, n8 = {
|
|
|
5305
5305
|
}, [V, d, e, E]);
|
|
5306
5306
|
const ie = t ?? z, pe = (m == null ? void 0 : m.background) !== void 0 || (m == null ? void 0 : m.backgroundImage) !== void 0, ae = he(() => {
|
|
5307
5307
|
var ge;
|
|
5308
|
-
const D =
|
|
5308
|
+
const D = f.current;
|
|
5309
5309
|
if (!D)
|
|
5310
5310
|
return;
|
|
5311
5311
|
pe || J8(
|
|
@@ -5323,7 +5323,7 @@ ${_4}`, n8 = {
|
|
|
5323
5323
|
);
|
|
5324
5324
|
}, [pe, V, ie, e]);
|
|
5325
5325
|
Ye(() => {
|
|
5326
|
-
const D =
|
|
5326
|
+
const D = f.current;
|
|
5327
5327
|
if (!D)
|
|
5328
5328
|
return;
|
|
5329
5329
|
ae();
|
|
@@ -5335,7 +5335,7 @@ ${_4}`, n8 = {
|
|
|
5335
5335
|
};
|
|
5336
5336
|
}, [ae, E]);
|
|
5337
5337
|
const P = he((D) => {
|
|
5338
|
-
const G =
|
|
5338
|
+
const G = f.current;
|
|
5339
5339
|
!G || typeof G.scrollBy != "function" || G.scrollBy({
|
|
5340
5340
|
left: D * w8(G),
|
|
5341
5341
|
behavior: G8() ? "auto" : "smooth"
|
|
@@ -5347,7 +5347,7 @@ ${_4}`, n8 = {
|
|
|
5347
5347
|
const G = D.target;
|
|
5348
5348
|
if (!(G instanceof Element) || !G.closest(jt))
|
|
5349
5349
|
return;
|
|
5350
|
-
const Q =
|
|
5350
|
+
const Q = M().filter((K) => !oa(K));
|
|
5351
5351
|
if (Q.length === 0)
|
|
5352
5352
|
return;
|
|
5353
5353
|
D.preventDefault();
|
|
@@ -5364,7 +5364,7 @@ ${_4}`, n8 = {
|
|
|
5364
5364
|
const j = Q[O], ge = M1(j);
|
|
5365
5365
|
ge !== null && ge !== e && r(ge), j.focus();
|
|
5366
5366
|
},
|
|
5367
|
-
[
|
|
5367
|
+
[M, r, e]
|
|
5368
5368
|
), J = he(
|
|
5369
5369
|
(D) => {
|
|
5370
5370
|
const G = D.target;
|
|
@@ -5413,7 +5413,7 @@ ${_4}`, n8 = {
|
|
|
5413
5413
|
/* @__PURE__ */ n(
|
|
5414
5414
|
"div",
|
|
5415
5415
|
{
|
|
5416
|
-
ref:
|
|
5416
|
+
ref: f,
|
|
5417
5417
|
tabIndex: -1,
|
|
5418
5418
|
[f8]: "",
|
|
5419
5419
|
"data-snap": i ? "true" : "false",
|
|
@@ -5483,7 +5483,7 @@ const lp = ({
|
|
|
5483
5483
|
color: "#fff",
|
|
5484
5484
|
opacity: a ? 0.5 : 1,
|
|
5485
5485
|
transition: "background-color 150ms ease, border-color 150ms ease"
|
|
5486
|
-
},
|
|
5486
|
+
}, f = /* @__PURE__ */ v(je, { children: [
|
|
5487
5487
|
h && /* @__PURE__ */ v(
|
|
5488
5488
|
"svg",
|
|
5489
5489
|
{
|
|
@@ -5509,7 +5509,7 @@ const lp = ({
|
|
|
5509
5509
|
}
|
|
5510
5510
|
)
|
|
5511
5511
|
] });
|
|
5512
|
-
return l ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: c, style: b, children:
|
|
5512
|
+
return l ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: c, style: b, children: f }) : /* @__PURE__ */ n(
|
|
5513
5513
|
"button",
|
|
5514
5514
|
{
|
|
5515
5515
|
type: "button",
|
|
@@ -5522,7 +5522,7 @@ const lp = ({
|
|
|
5522
5522
|
onClick: () => r == null ? void 0 : r(t ? !0 : !e),
|
|
5523
5523
|
className: `${_e} ${c}`,
|
|
5524
5524
|
style: { ...b, cursor: a ? "not-allowed" : "pointer" },
|
|
5525
|
-
children:
|
|
5525
|
+
children: f
|
|
5526
5526
|
}
|
|
5527
5527
|
);
|
|
5528
5528
|
}, l9 = [
|
|
@@ -6023,7 +6023,7 @@ var rt = () => b1(f5), Vn = (e) => {
|
|
|
6023
6023
|
children: t,
|
|
6024
6024
|
initialState: r,
|
|
6025
6025
|
initialTypes: a
|
|
6026
|
-
} = e, [o, l] = gt(k9, Object.assign({}, In, r)), [s, i] = d9(), [c, d] = u9(), [h, p] = m9(), [g, m] = v9(), [b,
|
|
6026
|
+
} = e, [o, l] = gt(k9, Object.assign({}, In, r)), [s, i] = d9(), [c, d] = u9(), [h, p] = m9(), [g, m] = v9(), [b, f] = y9();
|
|
6027
6027
|
return ue(() => l(S({}, r)), [r]), /* @__PURE__ */ n(f5.Provider, {
|
|
6028
6028
|
value: o,
|
|
6029
6029
|
children: /* @__PURE__ */ n(Bn.Provider, {
|
|
@@ -6042,7 +6042,7 @@ var rt = () => b1(f5), Vn = (e) => {
|
|
|
6042
6042
|
dispatch: m,
|
|
6043
6043
|
children: /* @__PURE__ */ n(Sn, {
|
|
6044
6044
|
initial: b,
|
|
6045
|
-
dispatch:
|
|
6045
|
+
dispatch: f,
|
|
6046
6046
|
children: t
|
|
6047
6047
|
})
|
|
6048
6048
|
})
|
|
@@ -6123,7 +6123,7 @@ var Mn = (e) => {
|
|
|
6123
6123
|
as: h,
|
|
6124
6124
|
style: p,
|
|
6125
6125
|
render: g
|
|
6126
|
-
} = t, m = ce(t, N9), b = h || "span",
|
|
6126
|
+
} = t, m = ce(t, N9), b = h || "span", f = g && typeof g == "function", x = S({}, m, {
|
|
6127
6127
|
"data-expanded": d,
|
|
6128
6128
|
style: S({}, p, o)
|
|
6129
6129
|
}), y = {
|
|
@@ -6131,7 +6131,7 @@ var Mn = (e) => {
|
|
|
6131
6131
|
parentValue: s,
|
|
6132
6132
|
keyName: i,
|
|
6133
6133
|
keys: c || (i ? [i] : [])
|
|
6134
|
-
}, w =
|
|
6134
|
+
}, w = f && g(x, y);
|
|
6135
6135
|
return w || /* @__PURE__ */ n(b, S({}, m, {
|
|
6136
6136
|
style: S({}, p, o)
|
|
6137
6137
|
}));
|
|
@@ -6162,8 +6162,8 @@ var Ln = (e) => {
|
|
|
6162
6162
|
}
|
|
6163
6163
|
var {
|
|
6164
6164
|
as: b,
|
|
6165
|
-
render:
|
|
6166
|
-
} = i, x = ce(i, L9), y = b || "span", w =
|
|
6165
|
+
render: f
|
|
6166
|
+
} = i, x = ce(i, L9), y = b || "span", w = f && typeof f == "function" && f(x, c);
|
|
6167
6167
|
return w || /* @__PURE__ */ n(y, S({}, x));
|
|
6168
6168
|
};
|
|
6169
6169
|
Ln.displayName = "JVR.BracketsOpen";
|
|
@@ -6194,9 +6194,9 @@ var b5 = (e) => {
|
|
|
6194
6194
|
return b || /* @__PURE__ */ n(m, S({}, g));
|
|
6195
6195
|
}
|
|
6196
6196
|
var {
|
|
6197
|
-
as:
|
|
6197
|
+
as: f,
|
|
6198
6198
|
render: x
|
|
6199
|
-
} = d, y = ce(d, R9), w =
|
|
6199
|
+
} = d, y = ce(d, R9), w = f || "span", A = x && typeof x == "function" && x(y, i);
|
|
6200
6200
|
return A || /* @__PURE__ */ n(w, S({}, y));
|
|
6201
6201
|
};
|
|
6202
6202
|
b5.displayName = "JVR.BracketsClose";
|
|
@@ -6223,7 +6223,7 @@ var Fn = (e) => {
|
|
|
6223
6223
|
var b = Object.keys(a).length;
|
|
6224
6224
|
if (g || b === 0)
|
|
6225
6225
|
return null;
|
|
6226
|
-
var
|
|
6226
|
+
var f = {
|
|
6227
6227
|
paddingLeft: 4
|
|
6228
6228
|
}, x = {
|
|
6229
6229
|
keyName: r,
|
|
@@ -6232,7 +6232,7 @@ var Fn = (e) => {
|
|
|
6232
6232
|
parentValue: l
|
|
6233
6233
|
}, y = Array.isArray(a), w = a instanceof Set;
|
|
6234
6234
|
return /* @__PURE__ */ n("div", {
|
|
6235
|
-
style:
|
|
6235
|
+
style: f,
|
|
6236
6236
|
children: /* @__PURE__ */ n(b5, S({
|
|
6237
6237
|
isBrackets: y || w
|
|
6238
6238
|
}, x, {
|
|
@@ -6314,14 +6314,14 @@ var k1 = {
|
|
|
6314
6314
|
render: d
|
|
6315
6315
|
} = o, h = ce(o, D9), p = t, [g, m] = Y(s && p.length > s);
|
|
6316
6316
|
ue(() => m(s && p.length > s), [s]);
|
|
6317
|
-
var b = c || "span",
|
|
6317
|
+
var b = c || "span", f = S({}, k1, o.style || {});
|
|
6318
6318
|
s > 0 && (h.style = S({}, h.style, {
|
|
6319
6319
|
cursor: p.length <= s ? "initial" : "pointer"
|
|
6320
6320
|
}), p.length > s && (h.onClick = () => {
|
|
6321
6321
|
m(!g);
|
|
6322
6322
|
}));
|
|
6323
6323
|
var x = g ? "" + p.slice(0, s) + i : p, y = d && typeof d == "function", w = y && d(S({}, h, {
|
|
6324
|
-
style:
|
|
6324
|
+
style: f
|
|
6325
6325
|
}), {
|
|
6326
6326
|
type: "type",
|
|
6327
6327
|
value: t,
|
|
@@ -6338,7 +6338,7 @@ var k1 = {
|
|
|
6338
6338
|
});
|
|
6339
6339
|
return /* @__PURE__ */ v($e, {
|
|
6340
6340
|
children: [l && (w || /* @__PURE__ */ n(b, S({}, h, {
|
|
6341
|
-
style:
|
|
6341
|
+
style: f
|
|
6342
6342
|
}))), k || /* @__PURE__ */ v($e, {
|
|
6343
6343
|
children: [/* @__PURE__ */ n(Ut, {}), /* @__PURE__ */ n(b, S({}, h, {
|
|
6344
6344
|
className: A,
|
|
@@ -6896,12 +6896,12 @@ var es = ["keyName", "value", "parentValue", "expandKey", "keys"], ts = ["as", "
|
|
|
6896
6896
|
var b = (I) => {
|
|
6897
6897
|
I.stopPropagation();
|
|
6898
6898
|
var B = "";
|
|
6899
|
-
typeof r == "number" && r === 1 / 0 ? B = "Infinity" : typeof r == "number" && isNaN(r) ? B = "NaN" : typeof r == "bigint" ? B = Na(r) : r instanceof Date ? B = r.toLocaleString() : B = JSON.stringify(r, (V,
|
|
6899
|
+
typeof r == "number" && r === 1 / 0 ? B = "Infinity" : typeof r == "number" && isNaN(r) ? B = "NaN" : typeof r == "bigint" ? B = Na(r) : r instanceof Date ? B = r.toLocaleString() : B = JSON.stringify(r, (V, M) => typeof M == "bigint" ? Na(M) : M, 2), i && i(B, r), g(!0);
|
|
6900
6900
|
var E = navigator.clipboard || {
|
|
6901
6901
|
writeText(V) {
|
|
6902
|
-
return new Promise((
|
|
6903
|
-
var
|
|
6904
|
-
|
|
6902
|
+
return new Promise((M, N) => {
|
|
6903
|
+
var T = document.createElement("textarea");
|
|
6904
|
+
T.style.position = "absolute", T.style.opacity = "0", T.style.left = "-99999999px", T.value = V, document.body.appendChild(T), T.select(), document.execCommand("copy") ? M() : N(), T.remove();
|
|
6905
6905
|
});
|
|
6906
6906
|
}
|
|
6907
6907
|
};
|
|
@@ -6911,7 +6911,7 @@ var es = ["keyName", "value", "parentValue", "expandKey", "keys"], ts = ["as", "
|
|
|
6911
6911
|
}, 3e3);
|
|
6912
6912
|
}).catch((V) => {
|
|
6913
6913
|
});
|
|
6914
|
-
},
|
|
6914
|
+
}, f = {
|
|
6915
6915
|
style: {
|
|
6916
6916
|
display: "inline-flex"
|
|
6917
6917
|
},
|
|
@@ -6919,8 +6919,8 @@ var es = ["keyName", "value", "parentValue", "expandKey", "keys"], ts = ["as", "
|
|
|
6919
6919
|
onClick: b
|
|
6920
6920
|
}, {
|
|
6921
6921
|
render: x
|
|
6922
|
-
} = m, y = ce(m, ts), w = S({}, y, s,
|
|
6923
|
-
style: S({}, y.style, s.style,
|
|
6922
|
+
} = m, y = ce(m, ts), w = S({}, y, s, f, {
|
|
6923
|
+
style: S({}, y.style, s.style, f.style)
|
|
6924
6924
|
}), A = x && typeof x == "function", k = A && x(S({}, w, {
|
|
6925
6925
|
"data-copied": p
|
|
6926
6926
|
}), {
|
|
@@ -6961,14 +6961,14 @@ var _n = (e) => {
|
|
|
6961
6961
|
indentWidth: h,
|
|
6962
6962
|
collapsed: p,
|
|
6963
6963
|
shouldExpandNodeInitially: g
|
|
6964
|
-
} = rt(), m = typeof p == "boolean" ? p : typeof p == "number" ? l > p : !1, b = (t = c[o]) != null ? t : m,
|
|
6964
|
+
} = rt(), m = typeof p == "boolean" ? p : typeof p == "number" ? l > p : !1, b = (t = c[o]) != null ? t : m, f = g && g(b, {
|
|
6965
6965
|
value: a,
|
|
6966
6966
|
keys: s,
|
|
6967
6967
|
level: l,
|
|
6968
6968
|
keyName: r,
|
|
6969
6969
|
parentValue: i
|
|
6970
6970
|
});
|
|
6971
|
-
if (c[o] === void 0 &&
|
|
6971
|
+
if (c[o] === void 0 && f || b)
|
|
6972
6972
|
return null;
|
|
6973
6973
|
var x = Array.isArray(a), y = x ? Object.entries(a).map((A) => [Number(A[0]), A[1]]) : Object.entries(a);
|
|
6974
6974
|
d && (y = d === !0 ? y.sort((A, k) => {
|
|
@@ -7044,10 +7044,10 @@ var e0 = (e) => {
|
|
|
7044
7044
|
keys: l = []
|
|
7045
7045
|
} = e, s = un(), i = $n(), c = Array.isArray(r), d = r instanceof Set, h = r instanceof Map, p = r instanceof Date, g = r instanceof URL, m = r && typeof r == "object" && !c && !d && !h && !p && !g, b = m || c || d || h;
|
|
7046
7046
|
if (b) {
|
|
7047
|
-
var
|
|
7047
|
+
var f = d ? Array.from(r) : h ? Object.fromEntries(r) : r;
|
|
7048
7048
|
return /* @__PURE__ */ n(w5, {
|
|
7049
7049
|
keyName: t,
|
|
7050
|
-
value:
|
|
7050
|
+
value: f,
|
|
7051
7051
|
parentValue: a,
|
|
7052
7052
|
initialValue: r,
|
|
7053
7053
|
keys: l,
|
|
@@ -7185,41 +7185,41 @@ var i0 = (e) => {
|
|
|
7185
7185
|
onExpand: p,
|
|
7186
7186
|
collapsed: g,
|
|
7187
7187
|
shouldExpandNodeInitially: m
|
|
7188
|
-
} = rt(), b = typeof g == "boolean" ? g : typeof g == "number" ? c > g : !1,
|
|
7188
|
+
} = rt(), b = typeof g == "boolean" ? g : typeof g == "number" ? c > g : !1, f = (t = d[a]) != null ? t : b, x = m && m(f, {
|
|
7189
7189
|
value: s,
|
|
7190
7190
|
keys: o,
|
|
7191
7191
|
level: c,
|
|
7192
7192
|
keyName: r,
|
|
7193
7193
|
parentValue: i
|
|
7194
7194
|
});
|
|
7195
|
-
d[a] === void 0 && m && (
|
|
7195
|
+
d[a] === void 0 && m && (f = !!x);
|
|
7196
7196
|
var y = () => {
|
|
7197
|
-
var
|
|
7198
|
-
expand: !
|
|
7197
|
+
var T = {
|
|
7198
|
+
expand: !f,
|
|
7199
7199
|
value: s,
|
|
7200
7200
|
keyid: a,
|
|
7201
7201
|
keyName: r
|
|
7202
7202
|
};
|
|
7203
|
-
p && p(
|
|
7204
|
-
[a]:
|
|
7203
|
+
p && p(T), h({
|
|
7204
|
+
[a]: T.expand
|
|
7205
7205
|
});
|
|
7206
7206
|
}, w = {
|
|
7207
7207
|
display: "inline-flex",
|
|
7208
7208
|
alignItems: "center"
|
|
7209
7209
|
}, A = {
|
|
7210
|
-
transform: "rotate(" + (
|
|
7210
|
+
transform: "rotate(" + (f ? "-90" : "0") + "deg)",
|
|
7211
7211
|
transition: "all 0.3s"
|
|
7212
|
-
}, k = Object.keys(s).length, I = typeof s == "object", B = Array.isArray(s), E = s instanceof Set, V = k !== 0 && (B || E || I),
|
|
7212
|
+
}, k = Object.keys(s).length, I = typeof s == "object", B = Array.isArray(s), E = s instanceof Set, V = k !== 0 && (B || E || I), M = {
|
|
7213
7213
|
style: w
|
|
7214
7214
|
};
|
|
7215
|
-
V && (
|
|
7215
|
+
V && (M.onClick = y);
|
|
7216
7216
|
var N = {
|
|
7217
7217
|
keyName: r,
|
|
7218
7218
|
value: s,
|
|
7219
7219
|
keys: o,
|
|
7220
7220
|
parentValue: i
|
|
7221
7221
|
};
|
|
7222
|
-
return /* @__PURE__ */ v("span", S({},
|
|
7222
|
+
return /* @__PURE__ */ v("span", S({}, M, {
|
|
7223
7223
|
children: [V && /* @__PURE__ */ n(Mn, S({
|
|
7224
7224
|
style: A,
|
|
7225
7225
|
expandKey: a
|
|
@@ -7234,9 +7234,9 @@ var i0 = (e) => {
|
|
|
7234
7234
|
}, N)), /* @__PURE__ */ n(l0, {
|
|
7235
7235
|
keyName: r,
|
|
7236
7236
|
value: s,
|
|
7237
|
-
isExpanded:
|
|
7237
|
+
isExpanded: f
|
|
7238
7238
|
}), /* @__PURE__ */ n(b5, S({
|
|
7239
|
-
isVisiable:
|
|
7239
|
+
isVisiable: f || !V,
|
|
7240
7240
|
isBrackets: B || E
|
|
7241
7241
|
}, N)), /* @__PURE__ */ n(o0, {
|
|
7242
7242
|
value: s,
|
|
@@ -7470,7 +7470,7 @@ var ss = ["className", "style", "value", "children", "collapsed", "shouldExpandN
|
|
|
7470
7470
|
highlightUpdates: g = !0,
|
|
7471
7471
|
enableClipboard: m = !0,
|
|
7472
7472
|
displayDataTypes: b = !0,
|
|
7473
|
-
objectSortKeys:
|
|
7473
|
+
objectSortKeys: f = !1,
|
|
7474
7474
|
onExpand: x,
|
|
7475
7475
|
onCopied: y
|
|
7476
7476
|
} = e, w = ce(e, ss), A = S({
|
|
@@ -7483,7 +7483,7 @@ var ss = ["className", "style", "value", "children", "collapsed", "shouldExpandN
|
|
|
7483
7483
|
return /* @__PURE__ */ v(Vn, {
|
|
7484
7484
|
initialState: {
|
|
7485
7485
|
value: o,
|
|
7486
|
-
objectSortKeys:
|
|
7486
|
+
objectSortKeys: f,
|
|
7487
7487
|
indentWidth: c,
|
|
7488
7488
|
shouldExpandNodeInitially: i,
|
|
7489
7489
|
displayObjectSize: d,
|
|
@@ -7577,7 +7577,7 @@ const Io = {
|
|
|
7577
7577
|
children: a
|
|
7578
7578
|
}
|
|
7579
7579
|
)
|
|
7580
|
-
] }), Cs = Fe.lazy(() => import("./CodeBlockHighlighter-
|
|
7580
|
+
] }), Cs = Fe.lazy(() => import("./CodeBlockHighlighter-DYSYBGVc.js")), cp = ({
|
|
7581
7581
|
code: e,
|
|
7582
7582
|
json: t,
|
|
7583
7583
|
showLineNumbers: r = !0,
|
|
@@ -7655,13 +7655,13 @@ const Io = {
|
|
|
7655
7655
|
{
|
|
7656
7656
|
className: "p-4 overflow-auto text-left",
|
|
7657
7657
|
style: { paddingRight: h ? 44 : void 0 },
|
|
7658
|
-
children: b.map((
|
|
7658
|
+
children: b.map((f, x) => /* @__PURE__ */ n(
|
|
7659
7659
|
ms,
|
|
7660
7660
|
{
|
|
7661
|
-
line:
|
|
7661
|
+
line: f,
|
|
7662
7662
|
lineNumber: r ? x + 1 : void 0,
|
|
7663
7663
|
wrap: i,
|
|
7664
|
-
children:
|
|
7664
|
+
children: f
|
|
7665
7665
|
},
|
|
7666
7666
|
x
|
|
7667
7667
|
))
|
|
@@ -7677,8 +7677,8 @@ const Io = {
|
|
|
7677
7677
|
copyClearance: h
|
|
7678
7678
|
}
|
|
7679
7679
|
) }) : p() : null, m = () => {
|
|
7680
|
-
var b,
|
|
7681
|
-
(
|
|
7680
|
+
var b, f;
|
|
7681
|
+
(f = (b = navigator.clipboard) == null ? void 0 : b.writeText(e ?? "")) == null || f.catch(() => {
|
|
7682
7682
|
});
|
|
7683
7683
|
};
|
|
7684
7684
|
return /* @__PURE__ */ v(
|
|
@@ -8224,7 +8224,7 @@ const U1 = [], Vo = (e) => {
|
|
|
8224
8224
|
onArrowDown: g,
|
|
8225
8225
|
size: m = "large",
|
|
8226
8226
|
hasClear: b = !1,
|
|
8227
|
-
onClear:
|
|
8227
|
+
onClear: f,
|
|
8228
8228
|
clearLabel: x,
|
|
8229
8229
|
controlId: y,
|
|
8230
8230
|
labelId: w,
|
|
@@ -8234,9 +8234,9 @@ const U1 = [], Vo = (e) => {
|
|
|
8234
8234
|
ariaLabelledBy: B,
|
|
8235
8235
|
hasCallerId: E = !1
|
|
8236
8236
|
}, V) => {
|
|
8237
|
-
const
|
|
8237
|
+
const M = c && !i && !!(r != null && r.subtitle), N = M ? Ys[m] : Qs[m], T = Us[m], z = `${y}-value`, ee = `${y}-subtitle`, ie = !w && !I && !E && M, pe = B ?? (w && !I ? `${w} ${z}` : void 0) ?? (ie ? z : void 0), ae = (O) => {
|
|
8238
8238
|
O.key === "ArrowDown" && (O.preventDefault(), g == null || g());
|
|
8239
|
-
}, P = R(null), $ = R(null), J = L0({ disabled: a, error: o, tone: l, open: e }), Se = !e && !!r, de = (r == null ? void 0 : r.triggerLabel) ?? (r == null ? void 0 : r.label), me =
|
|
8239
|
+
}, P = R(null), $ = R(null), J = L0({ disabled: a, error: o, tone: l, open: e }), Se = !e && !!r, de = (r == null ? void 0 : r.triggerLabel) ?? (r == null ? void 0 : r.label), me = M ? r == null ? void 0 : r.subtitle : void 0, Ze = () => {
|
|
8240
8240
|
const O = P.current;
|
|
8241
8241
|
return !!O && O.scrollWidth > O.clientWidth;
|
|
8242
8242
|
}, ze = () => {
|
|
@@ -8252,7 +8252,7 @@ const U1 = [], Vo = (e) => {
|
|
|
8252
8252
|
{
|
|
8253
8253
|
ref: V,
|
|
8254
8254
|
className: `
|
|
8255
|
-
relative w-full ${N} ${
|
|
8255
|
+
relative w-full ${N} ${T}
|
|
8256
8256
|
border border-solid
|
|
8257
8257
|
transition-all duration-200
|
|
8258
8258
|
flex items-center
|
|
@@ -8309,7 +8309,7 @@ const U1 = [], Vo = (e) => {
|
|
|
8309
8309
|
{
|
|
8310
8310
|
type: "button",
|
|
8311
8311
|
"aria-label": x,
|
|
8312
|
-
onClick:
|
|
8312
|
+
onClick: f,
|
|
8313
8313
|
className: `flex shrink-0 items-center justify-center pl-2 cursor-pointer
|
|
8314
8314
|
bg-transparent border-none p-0 text-[var(--malachite-text-placeholder)]
|
|
8315
8315
|
hover:text-[var(--malachite-text-primary)] transition-colors
|
|
@@ -8362,10 +8362,10 @@ const U1 = [], Vo = (e) => {
|
|
|
8362
8362
|
style: J,
|
|
8363
8363
|
[La]: "",
|
|
8364
8364
|
className: `
|
|
8365
|
-
relative w-full ${N} ${
|
|
8365
|
+
relative w-full ${N} ${T}
|
|
8366
8366
|
border border-solid
|
|
8367
8367
|
transition-all duration-200
|
|
8368
|
-
flex ${
|
|
8368
|
+
flex ${M ? "items-start" : "items-center"} gap-3
|
|
8369
8369
|
cursor-pointer
|
|
8370
8370
|
disabled:cursor-not-allowed
|
|
8371
8371
|
`,
|
|
@@ -8633,12 +8633,12 @@ const _s = ({
|
|
|
8633
8633
|
var y;
|
|
8634
8634
|
if (!i || !c)
|
|
8635
8635
|
return;
|
|
8636
|
-
const
|
|
8637
|
-
(y =
|
|
8636
|
+
const f = Fa(m.current);
|
|
8637
|
+
(y = f.find((w) => w.dataset.selected === "true") ?? f[0] ?? m.current) == null || y.focus();
|
|
8638
8638
|
}, [i, c]);
|
|
8639
|
-
const b = (
|
|
8639
|
+
const b = (f) => {
|
|
8640
8640
|
var A;
|
|
8641
|
-
if (
|
|
8641
|
+
if (f.key === "Tab") {
|
|
8642
8642
|
d();
|
|
8643
8643
|
return;
|
|
8644
8644
|
}
|
|
@@ -8650,14 +8650,14 @@ const _s = ({
|
|
|
8650
8650
|
ArrowUp: y - 1,
|
|
8651
8651
|
Home: 0,
|
|
8652
8652
|
End: x.length - 1
|
|
8653
|
-
}[
|
|
8654
|
-
w !== void 0 && (
|
|
8653
|
+
}[f.key];
|
|
8654
|
+
w !== void 0 && (f.preventDefault(), (A = x[Math.min(Math.max(w, 0), x.length - 1)]) == null || A.focus());
|
|
8655
8655
|
};
|
|
8656
8656
|
return /* @__PURE__ */ n(
|
|
8657
8657
|
"div",
|
|
8658
8658
|
{
|
|
8659
|
-
ref: (
|
|
8660
|
-
m.current =
|
|
8659
|
+
ref: (f) => {
|
|
8660
|
+
m.current = f, typeof t == "function" ? t(f) : t && (t.current = f);
|
|
8661
8661
|
},
|
|
8662
8662
|
...G1("dropdown"),
|
|
8663
8663
|
tabIndex: -1,
|
|
@@ -8688,8 +8688,8 @@ const _s = ({
|
|
|
8688
8688
|
scrollbarWidth: "thin",
|
|
8689
8689
|
scrollbarColor: "var(--malachite-text-placeholder, rgb(187, 187, 187)) transparent"
|
|
8690
8690
|
},
|
|
8691
|
-
children: r.map((
|
|
8692
|
-
const y = r[x - 1], w = !!
|
|
8691
|
+
children: r.map((f, x) => {
|
|
8692
|
+
const y = r[x - 1], w = !!f.group && (!y || y.group !== f.group);
|
|
8693
8693
|
return /* @__PURE__ */ v(Fe.Fragment, { children: [
|
|
8694
8694
|
w && /* @__PURE__ */ n(
|
|
8695
8695
|
"div",
|
|
@@ -8702,19 +8702,19 @@ const _s = ({
|
|
|
8702
8702
|
textTransform: "none",
|
|
8703
8703
|
userSelect: "none"
|
|
8704
8704
|
},
|
|
8705
|
-
children:
|
|
8705
|
+
children: f.group
|
|
8706
8706
|
}
|
|
8707
8707
|
),
|
|
8708
8708
|
/* @__PURE__ */ n(
|
|
8709
8709
|
_s,
|
|
8710
8710
|
{
|
|
8711
|
-
item:
|
|
8711
|
+
item: f,
|
|
8712
8712
|
onItemSelected: a,
|
|
8713
8713
|
subtitleLayout: h,
|
|
8714
|
-
selected:
|
|
8714
|
+
selected: f.id === (o == null ? void 0 : o.id) || !1
|
|
8715
8715
|
}
|
|
8716
8716
|
)
|
|
8717
|
-
] },
|
|
8717
|
+
] }, f.id);
|
|
8718
8718
|
})
|
|
8719
8719
|
}
|
|
8720
8720
|
)
|
|
@@ -8738,7 +8738,7 @@ const up = ({
|
|
|
8738
8738
|
requiredIndicator: g,
|
|
8739
8739
|
loading: m,
|
|
8740
8740
|
menuLoading: b,
|
|
8741
|
-
formControl:
|
|
8741
|
+
formControl: f,
|
|
8742
8742
|
description: x,
|
|
8743
8743
|
helperText: y,
|
|
8744
8744
|
placeholder: w,
|
|
@@ -8748,10 +8748,10 @@ const up = ({
|
|
|
8748
8748
|
clearable: B = !1,
|
|
8749
8749
|
size: E = "large",
|
|
8750
8750
|
id: V,
|
|
8751
|
-
"aria-label":
|
|
8751
|
+
"aria-label": M,
|
|
8752
8752
|
"aria-labelledby": N
|
|
8753
8753
|
}) => {
|
|
8754
|
-
const { controlId:
|
|
8754
|
+
const { controlId: T, labelId: z, descriptionId: ee, hintId: ie, helperTextId: pe } = Wr({
|
|
8755
8755
|
id: V,
|
|
8756
8756
|
label: i,
|
|
8757
8757
|
description: x,
|
|
@@ -8793,8 +8793,8 @@ const up = ({
|
|
|
8793
8793
|
Te();
|
|
8794
8794
|
const oe = (a1) => {
|
|
8795
8795
|
var W;
|
|
8796
|
-
const Ke = a1.composedPath(), i1 = j.current,
|
|
8797
|
-
!
|
|
8796
|
+
const Ke = a1.composedPath(), i1 = j.current, L = K.current, Z = !!i1 && Ke.includes(i1), se = !!L && Ke.includes(L);
|
|
8797
|
+
!Z && !se && (P(!1), A && Q(""), (W = e1.current) == null || W.call(e1));
|
|
8798
8798
|
}, Ae = $t(() => {
|
|
8799
8799
|
P(!1), A && Q(""), te();
|
|
8800
8800
|
}), Ge = () => Te();
|
|
@@ -8841,9 +8841,9 @@ const up = ({
|
|
|
8841
8841
|
required: p,
|
|
8842
8842
|
requiredIndicator: g,
|
|
8843
8843
|
loading: m,
|
|
8844
|
-
formControl:
|
|
8844
|
+
formControl: f,
|
|
8845
8845
|
description: x,
|
|
8846
|
-
controlId:
|
|
8846
|
+
controlId: T,
|
|
8847
8847
|
labelId: z,
|
|
8848
8848
|
descriptionId: ee,
|
|
8849
8849
|
hintId: ie,
|
|
@@ -8869,10 +8869,10 @@ const up = ({
|
|
|
8869
8869
|
{
|
|
8870
8870
|
ref: j,
|
|
8871
8871
|
className: "relative w-full",
|
|
8872
|
-
onBlur: (
|
|
8872
|
+
onBlur: (L) => {
|
|
8873
8873
|
var W, ke;
|
|
8874
|
-
const
|
|
8875
|
-
|
|
8874
|
+
const Z = L.relatedTarget;
|
|
8875
|
+
L.currentTarget.contains(Z) || ((W = K.current) == null ? void 0 : W.contains(Z)) === !0 || (ke = e1.current) == null || ke.call(e1);
|
|
8876
8876
|
},
|
|
8877
8877
|
children: [
|
|
8878
8878
|
me && !A && /* @__PURE__ */ n(
|
|
@@ -8917,12 +8917,12 @@ const up = ({
|
|
|
8917
8917
|
o || t1();
|
|
8918
8918
|
},
|
|
8919
8919
|
size: E,
|
|
8920
|
-
controlId:
|
|
8920
|
+
controlId: T,
|
|
8921
8921
|
hasCallerId: !!V,
|
|
8922
8922
|
labelId: z,
|
|
8923
8923
|
describedBy: i1,
|
|
8924
8924
|
required: p,
|
|
8925
|
-
ariaLabel:
|
|
8925
|
+
ariaLabel: M,
|
|
8926
8926
|
ariaLabelledBy: N
|
|
8927
8927
|
}
|
|
8928
8928
|
),
|
|
@@ -8985,7 +8985,7 @@ const up = ({
|
|
|
8985
8985
|
className: i = "",
|
|
8986
8986
|
style: c
|
|
8987
8987
|
}) => {
|
|
8988
|
-
const [d, h] = Y(!1), p = o === "muted", g = p ? "bg-[var(--malachite-card-border)]" : "bg-[var(--malachite-card-background)]", m = p ? "border-transparent" : "border-[var(--malachite-card-border)]", b = l ? "" : "hover:border-[var(--malachite-text-placeholder)]",
|
|
8988
|
+
const [d, h] = Y(!1), p = o === "muted", g = p ? "bg-[var(--malachite-card-border)]" : "bg-[var(--malachite-card-background)]", m = p ? "border-transparent" : "border-[var(--malachite-card-border)]", b = l ? "" : "hover:border-[var(--malachite-text-placeholder)]", f = p ? "text-[var(--malachite-text-secondary)]" : "text-[var(--malachite-text-placeholder)]", x = p ? "placeholder:text-[var(--malachite-text-secondary)]" : "placeholder:text-[var(--malachite-text-placeholder)]", y = p ? "none" : d ? "var(--malachite-shadow-accent, 0px 1px 0px 0px rgba(0, 175, 102, 0.15))" : "0px 1px 1px 0px rgba(0, 0, 0, 0.15)";
|
|
8989
8989
|
return /* @__PURE__ */ v(
|
|
8990
8990
|
"div",
|
|
8991
8991
|
{
|
|
@@ -8996,7 +8996,7 @@ const up = ({
|
|
|
8996
8996
|
...c
|
|
8997
8997
|
},
|
|
8998
8998
|
children: [
|
|
8999
|
-
/* @__PURE__ */ n(za, { size: tc, className: `${
|
|
8999
|
+
/* @__PURE__ */ n(za, { size: tc, className: `${f} shrink-0` }),
|
|
9000
9000
|
/* @__PURE__ */ n(
|
|
9001
9001
|
"input",
|
|
9002
9002
|
{
|
|
@@ -9042,23 +9042,23 @@ const up = ({
|
|
|
9042
9042
|
"aria-labelledby": i,
|
|
9043
9043
|
className: c = ""
|
|
9044
9044
|
}) => {
|
|
9045
|
-
const d = R([]), h = rc[a], p = e.findIndex((
|
|
9046
|
-
(
|
|
9045
|
+
const d = R([]), h = rc[a], p = e.findIndex((f) => f.value === t), m = p >= 0 && !e[p].disabled ? p : e.findIndex((f) => !f.disabled), b = he(
|
|
9046
|
+
(f) => {
|
|
9047
9047
|
var k;
|
|
9048
|
-
if (l || !ac.has(
|
|
9048
|
+
if (l || !ac.has(f.key))
|
|
9049
9049
|
return;
|
|
9050
9050
|
const x = e.reduce((I, B, E) => (B.disabled || I.push({ option: B, index: E }), I), []);
|
|
9051
9051
|
if (x.length === 0)
|
|
9052
9052
|
return;
|
|
9053
|
-
|
|
9053
|
+
f.preventDefault();
|
|
9054
9054
|
const y = x.findIndex(({ option: I }) => I.value === t);
|
|
9055
9055
|
let w;
|
|
9056
|
-
if (
|
|
9056
|
+
if (f.key === "Home")
|
|
9057
9057
|
w = 0;
|
|
9058
|
-
else if (
|
|
9058
|
+
else if (f.key === "End")
|
|
9059
9059
|
w = x.length - 1;
|
|
9060
9060
|
else {
|
|
9061
|
-
const I =
|
|
9061
|
+
const I = f.key === "ArrowLeft" || f.key === "ArrowUp" ? -1 : 1;
|
|
9062
9062
|
w = ((y === -1 ? 0 : y) + I + x.length) % x.length;
|
|
9063
9063
|
}
|
|
9064
9064
|
const A = x[w];
|
|
@@ -9078,8 +9078,8 @@ const up = ({
|
|
|
9078
9078
|
// `display` utilities, so emitting both would resolve by stylesheet order
|
|
9079
9079
|
// (same hazard as the background above).
|
|
9080
9080
|
o ? "flex w-full" : "inline-flex"} ${h.track} items-center gap-1 p-0.5 rounded-xl bg-[var(--malachite-segmented-control-track-background)] ${l ? "opacity-50" : ""} ${c}`,
|
|
9081
|
-
children: e.map((
|
|
9082
|
-
const y =
|
|
9081
|
+
children: e.map((f, x) => {
|
|
9082
|
+
const y = f.value === t, w = l || f.disabled;
|
|
9083
9083
|
let A;
|
|
9084
9084
|
return y ? A = "bg-[var(--malachite-segmented-control-selected-background)] text-[var(--malachite-segmented-control-selected-foreground)]" : w ? A = "bg-transparent text-[var(--malachite-segmented-control-item-foreground)]" : A = "bg-transparent text-[var(--malachite-segmented-control-item-foreground)] hover:text-[var(--malachite-segmented-control-item-hover-foreground)] cursor-pointer", /* @__PURE__ */ v(
|
|
9085
9085
|
"button",
|
|
@@ -9093,9 +9093,9 @@ const up = ({
|
|
|
9093
9093
|
disabled: w,
|
|
9094
9094
|
tabIndex: x === m ? 0 : -1,
|
|
9095
9095
|
onClick: () => {
|
|
9096
|
-
!w && !y && r(
|
|
9096
|
+
!w && !y && r(f.value);
|
|
9097
9097
|
},
|
|
9098
|
-
className: `${_e} ${oc} ${h.text} ${h.item} ${A} ${o ? "flex-1" : ""} ${
|
|
9098
|
+
className: `${_e} ${oc} ${h.text} ${h.item} ${A} ${o ? "flex-1" : ""} ${f.disabled && !l ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
9099
9099
|
style: {
|
|
9100
9100
|
// Inline rather than a `shadow-[...]` class: Tailwind's shadow
|
|
9101
9101
|
// utilities compose `--tw-shadow-*` custom properties that rely on
|
|
@@ -9104,11 +9104,11 @@ const up = ({
|
|
|
9104
9104
|
boxShadow: y ? "var(--malachite-segmented-control-selected-shadow, 0px 1px 5px 0px rgba(0, 0, 0, 0.1))" : void 0
|
|
9105
9105
|
},
|
|
9106
9106
|
children: [
|
|
9107
|
-
|
|
9108
|
-
|
|
9107
|
+
f.icon ? /* @__PURE__ */ n("span", { className: "inline-flex items-center justify-center w-4 h-4 shrink-0", children: f.icon }) : null,
|
|
9108
|
+
f.label
|
|
9109
9109
|
]
|
|
9110
9110
|
},
|
|
9111
|
-
|
|
9111
|
+
f.value
|
|
9112
9112
|
);
|
|
9113
9113
|
})
|
|
9114
9114
|
}
|
|
@@ -9162,7 +9162,7 @@ const mp = ({
|
|
|
9162
9162
|
loading: g = !1,
|
|
9163
9163
|
label: m,
|
|
9164
9164
|
name: b,
|
|
9165
|
-
description:
|
|
9165
|
+
description: f,
|
|
9166
9166
|
tooltip: x,
|
|
9167
9167
|
hint: y,
|
|
9168
9168
|
required: w = !1,
|
|
@@ -9172,9 +9172,9 @@ const mp = ({
|
|
|
9172
9172
|
chipsRemovable: B = !0,
|
|
9173
9173
|
chipsMax: E = "auto",
|
|
9174
9174
|
inlineSearch: V = !1,
|
|
9175
|
-
onSearchChange:
|
|
9175
|
+
onSearchChange: M,
|
|
9176
9176
|
localFilter: N = !0,
|
|
9177
|
-
className:
|
|
9177
|
+
className: T = "",
|
|
9178
9178
|
style: z,
|
|
9179
9179
|
id: ee,
|
|
9180
9180
|
"aria-label": ie,
|
|
@@ -9183,7 +9183,7 @@ const mp = ({
|
|
|
9183
9183
|
const ae = l1(), P = `${ae}-listbox`, $ = (F) => `${ae}-option-${F}`, { controlId: J, labelId: Se, descriptionId: de, hintId: me, describedBy: Ze } = Wr({
|
|
9184
9184
|
id: ee,
|
|
9185
9185
|
label: m,
|
|
9186
|
-
description:
|
|
9186
|
+
description: f,
|
|
9187
9187
|
hint: y
|
|
9188
9188
|
}), [ze, D] = Y(() => r ?? []), G = t !== void 0, Q = G ? t : ze, [X, O] = Y(!1), [j, ge] = Y(
|
|
9189
9189
|
null
|
|
@@ -9198,9 +9198,9 @@ const mp = ({
|
|
|
9198
9198
|
return F ? e.filter((q) => (q.searchText ?? (typeof q.label == "string" ? q.label : "")).toLowerCase().includes(F)) : e;
|
|
9199
9199
|
}, [e, K, N]), x1 = R(!1), oe = R(""), Ae = he(
|
|
9200
9200
|
(F, q) => {
|
|
9201
|
-
oe.current !== F && (oe.current = F, q && (x1.current = !0), le(F),
|
|
9201
|
+
oe.current !== F && (oe.current = F, q && (x1.current = !0), le(F), M == null || M(F));
|
|
9202
9202
|
},
|
|
9203
|
-
[
|
|
9203
|
+
[M]
|
|
9204
9204
|
), Ge = he(
|
|
9205
9205
|
(F) => Ae(F, !0),
|
|
9206
9206
|
[Ae]
|
|
@@ -9208,7 +9208,7 @@ const mp = ({
|
|
|
9208
9208
|
ue(() => {
|
|
9209
9209
|
x1.current && (De(-1), x1.current = !1);
|
|
9210
9210
|
}, [K]);
|
|
9211
|
-
const E1 = s ?? (
|
|
9211
|
+
const E1 = s ?? (M !== void 0 || e.length > ic), w1 = V ? !1 : E1, a1 = he(() => {
|
|
9212
9212
|
var ft, bt;
|
|
9213
9213
|
const F = te.current;
|
|
9214
9214
|
if (!F) return;
|
|
@@ -9240,12 +9240,12 @@ const mp = ({
|
|
|
9240
9240
|
), i1 = he(
|
|
9241
9241
|
(F) => e.some((q) => q.value === F && q.disabled),
|
|
9242
9242
|
[e]
|
|
9243
|
-
),
|
|
9243
|
+
), L = he(
|
|
9244
9244
|
(F) => {
|
|
9245
9245
|
i1(F) || (Q.includes(F) ? Ke(Q.filter((q) => q !== F)) : Ke([...Q, F]));
|
|
9246
9246
|
},
|
|
9247
9247
|
[Q, Ke, i1]
|
|
9248
|
-
),
|
|
9248
|
+
), Z = y1(() => {
|
|
9249
9249
|
const F = /* @__PURE__ */ new Set();
|
|
9250
9250
|
for (const q of e)
|
|
9251
9251
|
q.disabled && F.add(q.value);
|
|
@@ -9253,10 +9253,10 @@ const mp = ({
|
|
|
9253
9253
|
}, [e]), se = he(
|
|
9254
9254
|
(F) => {
|
|
9255
9255
|
F.stopPropagation();
|
|
9256
|
-
const q = Q.filter((Pe) =>
|
|
9256
|
+
const q = Q.filter((Pe) => Z.has(Pe));
|
|
9257
9257
|
Ke(q);
|
|
9258
9258
|
},
|
|
9259
|
-
[Ke, Q,
|
|
9259
|
+
[Ke, Q, Z]
|
|
9260
9260
|
), W = he(
|
|
9261
9261
|
(F, q) => {
|
|
9262
9262
|
q.stopPropagation(), !i1(F) && Ke(Q.filter((Pe) => Pe !== F));
|
|
@@ -9293,7 +9293,7 @@ const mp = ({
|
|
|
9293
9293
|
var Ue;
|
|
9294
9294
|
if (be < 0 || be >= q || (Ue = t1[be]) != null && Ue.disabled) return;
|
|
9295
9295
|
const He = t1[be].value;
|
|
9296
|
-
|
|
9296
|
+
L(He), Ve();
|
|
9297
9297
|
const Me = e.findIndex((o1) => o1.value === He);
|
|
9298
9298
|
De(Me >= 0 ? Me : -1), Pe(Me >= 0 ? Me : 0), requestAnimationFrame(() => {
|
|
9299
9299
|
var o1;
|
|
@@ -9312,7 +9312,7 @@ const mp = ({
|
|
|
9312
9312
|
break;
|
|
9313
9313
|
}
|
|
9314
9314
|
},
|
|
9315
|
-
[X, t1, be,
|
|
9315
|
+
[X, t1, be, L, e, Ve]
|
|
9316
9316
|
), Be = he(
|
|
9317
9317
|
(F) => {
|
|
9318
9318
|
if (F.key === sc && K === "" && Q.length > 0) {
|
|
@@ -9364,7 +9364,7 @@ const mp = ({
|
|
|
9364
9364
|
style: { flexWrap: "nowrap" },
|
|
9365
9365
|
children: [
|
|
9366
9366
|
F.map((Pe) => {
|
|
9367
|
-
const Ce =
|
|
9367
|
+
const Ce = Z.has(Pe.value);
|
|
9368
9368
|
return /* @__PURE__ */ n(
|
|
9369
9369
|
s5,
|
|
9370
9370
|
{
|
|
@@ -9398,7 +9398,7 @@ const mp = ({
|
|
|
9398
9398
|
V,
|
|
9399
9399
|
Ne,
|
|
9400
9400
|
o,
|
|
9401
|
-
|
|
9401
|
+
Z
|
|
9402
9402
|
]), Je = e.length === 0 ? "No options available" : "No results found";
|
|
9403
9403
|
Rr(() => {
|
|
9404
9404
|
X && Gs();
|
|
@@ -9421,7 +9421,7 @@ const mp = ({
|
|
|
9421
9421
|
fontSize: M0[i],
|
|
9422
9422
|
visibility: j ? "visible" : "hidden",
|
|
9423
9423
|
opacity: j ? 1 : 0
|
|
9424
|
-
}, ve = !!(
|
|
9424
|
+
}, ve = !!(f || x || y || b || k || w), V1 = ve && !!m, Q1 = /* @__PURE__ */ v(je, { children: [
|
|
9425
9425
|
/* @__PURE__ */ v("div", { className: "relative", style: { width: U }, children: [
|
|
9426
9426
|
/* @__PURE__ */ v(
|
|
9427
9427
|
P0,
|
|
@@ -9450,7 +9450,7 @@ const mp = ({
|
|
|
9450
9450
|
...ne,
|
|
9451
9451
|
...z
|
|
9452
9452
|
},
|
|
9453
|
-
className: `w-full ${lc[i]} border border-solid flex items-center font-normal text-[var(--malachite-text-primary)] ${h || g ? "cursor-not-allowed" : "cursor-pointer"} ${
|
|
9453
|
+
className: `w-full ${lc[i]} border border-solid flex items-center font-normal text-[var(--malachite-text-primary)] ${h || g ? "cursor-not-allowed" : "cursor-pointer"} ${T}`,
|
|
9454
9454
|
children: [
|
|
9455
9455
|
/* @__PURE__ */ n(
|
|
9456
9456
|
"span",
|
|
@@ -9589,7 +9589,7 @@ const mp = ({
|
|
|
9589
9589
|
"aria-disabled": m1 || void 0,
|
|
9590
9590
|
onClick: () => {
|
|
9591
9591
|
var He;
|
|
9592
|
-
|
|
9592
|
+
L(F.value), Ve(), (He = We.current) == null || He.focus();
|
|
9593
9593
|
},
|
|
9594
9594
|
onMouseEnter: () => De(q),
|
|
9595
9595
|
onMouseLeave: () => {
|
|
@@ -9723,7 +9723,7 @@ const mp = ({
|
|
|
9723
9723
|
requiredIndicator: A,
|
|
9724
9724
|
loading: g,
|
|
9725
9725
|
formControl: k,
|
|
9726
|
-
description:
|
|
9726
|
+
description: f,
|
|
9727
9727
|
controlId: J,
|
|
9728
9728
|
labelId: Se,
|
|
9729
9729
|
descriptionId: de,
|
|
@@ -9947,47 +9947,48 @@ const uc = { small: 16, medium: 24, large: 32 }, pc = (e) => e ? `${mc(e)}px` :
|
|
|
9947
9947
|
onClick: a,
|
|
9948
9948
|
href: o,
|
|
9949
9949
|
selected: l,
|
|
9950
|
-
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
"aria-
|
|
9955
|
-
|
|
9956
|
-
|
|
9950
|
+
selection: s,
|
|
9951
|
+
trailing: i,
|
|
9952
|
+
tone: c = "default",
|
|
9953
|
+
role: d,
|
|
9954
|
+
"aria-label": h,
|
|
9955
|
+
"aria-labelledby": p,
|
|
9956
|
+
className: g = "",
|
|
9957
|
+
style: m
|
|
9957
9958
|
}) => {
|
|
9958
|
-
const
|
|
9959
|
+
const b = !!(a || o), f = r && b ? "" : "transition-colors hover:bg-[var(--malachite-buttonlist-hover-background)]", x = c === "muted", w = [
|
|
9959
9960
|
"w-full text-left border-0",
|
|
9960
|
-
|
|
9961
|
+
x ? "bg-[var(--malachite-card-dimmed-background)]" : "",
|
|
9961
9962
|
t ? "border-b border-solid border-[var(--malachite-card-border)]" : "",
|
|
9962
|
-
|
|
9963
|
-
].filter(Boolean).join(" "),
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
].filter(Boolean).join(" "),
|
|
9963
|
+
f
|
|
9964
|
+
].filter(Boolean).join(" "), A = [
|
|
9965
|
+
b ? `appearance-none ${x ? "" : "bg-transparent"} p-0 ${Kt}` : "",
|
|
9966
|
+
b && !r ? "cursor-pointer" : ""
|
|
9967
|
+
].filter(Boolean).join(" "), k = [w, A, g].filter(Boolean).join(" "), E = { ...l && (s ? s === "highlight" : d !== "checkbox") ? {
|
|
9967
9968
|
backgroundImage: `linear-gradient(${ut}, ${ut})`,
|
|
9968
9969
|
color: jr,
|
|
9969
9970
|
boxShadow: `inset 2px 0 0 ${A5}`,
|
|
9970
9971
|
...k5
|
|
9971
|
-
} : {}, ...
|
|
9972
|
-
role:
|
|
9973
|
-
"aria-checked":
|
|
9974
|
-
"aria-current":
|
|
9975
|
-
"aria-label":
|
|
9976
|
-
"aria-labelledby":
|
|
9977
|
-
"aria-disabled":
|
|
9972
|
+
} : {}, ...m }, V = d === "radio" || d === "checkbox" ? !!l : void 0, M = V === void 0 && l ? !0 : void 0, N = {
|
|
9973
|
+
role: d,
|
|
9974
|
+
"aria-checked": V,
|
|
9975
|
+
"aria-current": M,
|
|
9976
|
+
"aria-label": h,
|
|
9977
|
+
"aria-labelledby": p,
|
|
9978
|
+
"aria-disabled": d && r ? !0 : void 0
|
|
9978
9979
|
};
|
|
9979
|
-
if (xr(
|
|
9980
|
-
const
|
|
9980
|
+
if (xr(i)) {
|
|
9981
|
+
const T = o && !r ? /* @__PURE__ */ n(
|
|
9981
9982
|
"a",
|
|
9982
9983
|
{
|
|
9983
9984
|
href: o,
|
|
9984
9985
|
onClick: a,
|
|
9985
|
-
className: `${
|
|
9986
|
-
role:
|
|
9987
|
-
"aria-checked":
|
|
9988
|
-
"aria-current":
|
|
9989
|
-
"aria-label":
|
|
9990
|
-
"aria-labelledby":
|
|
9986
|
+
className: `${A} border-0 flex-1 min-w-0 text-left no-underline text-inherit`,
|
|
9987
|
+
role: d,
|
|
9988
|
+
"aria-checked": V,
|
|
9989
|
+
"aria-current": M,
|
|
9990
|
+
"aria-label": h,
|
|
9991
|
+
"aria-labelledby": p,
|
|
9991
9992
|
children: e
|
|
9992
9993
|
}
|
|
9993
9994
|
) : a ? /* @__PURE__ */ n(
|
|
@@ -9996,27 +9997,27 @@ const uc = { small: 16, medium: 24, large: 32 }, pc = (e) => e ? `${mc(e)}px` :
|
|
|
9996
9997
|
type: "button",
|
|
9997
9998
|
onClick: a,
|
|
9998
9999
|
disabled: r,
|
|
9999
|
-
className: `${
|
|
10000
|
-
role:
|
|
10001
|
-
"aria-checked":
|
|
10002
|
-
"aria-current":
|
|
10003
|
-
"aria-label":
|
|
10004
|
-
"aria-labelledby":
|
|
10000
|
+
className: `${A} border-0 flex-1 min-w-0 text-left`,
|
|
10001
|
+
role: d,
|
|
10002
|
+
"aria-checked": V,
|
|
10003
|
+
"aria-current": M,
|
|
10004
|
+
"aria-label": h,
|
|
10005
|
+
"aria-labelledby": p,
|
|
10005
10006
|
children: e
|
|
10006
10007
|
}
|
|
10007
10008
|
) : (
|
|
10008
10009
|
// The set goes here, not on the wrapper: `radio` and `checkbox` make their
|
|
10009
10010
|
// descendants presentational, which would bury a control in the trailing slot.
|
|
10010
|
-
/* @__PURE__ */ n("div", { className: "flex-1 min-w-0", ...
|
|
10011
|
+
/* @__PURE__ */ n("div", { className: "flex-1 min-w-0", ...N, children: e })
|
|
10011
10012
|
);
|
|
10012
10013
|
return /* @__PURE__ */ v(
|
|
10013
10014
|
"div",
|
|
10014
10015
|
{
|
|
10015
|
-
className: [
|
|
10016
|
-
style:
|
|
10016
|
+
className: [w, "flex items-center", g].filter(Boolean).join(" "),
|
|
10017
|
+
style: E,
|
|
10017
10018
|
children: [
|
|
10018
|
-
|
|
10019
|
-
/* @__PURE__ */ n("div", { className: "shrink-0 flex items-center", children:
|
|
10019
|
+
T,
|
|
10020
|
+
/* @__PURE__ */ n("div", { className: "shrink-0 flex items-center", children: i })
|
|
10020
10021
|
]
|
|
10021
10022
|
}
|
|
10022
10023
|
);
|
|
@@ -10026,13 +10027,13 @@ const uc = { small: 16, medium: 24, large: 32 }, pc = (e) => e ? `${mc(e)}px` :
|
|
|
10026
10027
|
{
|
|
10027
10028
|
href: o,
|
|
10028
10029
|
onClick: a,
|
|
10029
|
-
className: `${
|
|
10030
|
-
style:
|
|
10031
|
-
role:
|
|
10032
|
-
"aria-checked":
|
|
10033
|
-
"aria-current":
|
|
10034
|
-
"aria-label":
|
|
10035
|
-
"aria-labelledby":
|
|
10030
|
+
className: `${k} no-underline text-inherit`,
|
|
10031
|
+
style: E,
|
|
10032
|
+
role: d,
|
|
10033
|
+
"aria-checked": V,
|
|
10034
|
+
"aria-current": M,
|
|
10035
|
+
"aria-label": h,
|
|
10036
|
+
"aria-labelledby": p,
|
|
10036
10037
|
children: e
|
|
10037
10038
|
}
|
|
10038
10039
|
) : a ? /* @__PURE__ */ n(
|
|
@@ -10041,16 +10042,16 @@ const uc = { small: 16, medium: 24, large: 32 }, pc = (e) => e ? `${mc(e)}px` :
|
|
|
10041
10042
|
type: "button",
|
|
10042
10043
|
onClick: a,
|
|
10043
10044
|
disabled: r,
|
|
10044
|
-
className:
|
|
10045
|
-
style:
|
|
10046
|
-
role:
|
|
10047
|
-
"aria-checked":
|
|
10048
|
-
"aria-current":
|
|
10049
|
-
"aria-label":
|
|
10050
|
-
"aria-labelledby":
|
|
10045
|
+
className: k,
|
|
10046
|
+
style: E,
|
|
10047
|
+
role: d,
|
|
10048
|
+
"aria-checked": V,
|
|
10049
|
+
"aria-current": M,
|
|
10050
|
+
"aria-label": h,
|
|
10051
|
+
"aria-labelledby": p,
|
|
10051
10052
|
children: e
|
|
10052
10053
|
}
|
|
10053
|
-
) : /* @__PURE__ */ n("div", { className:
|
|
10054
|
+
) : /* @__PURE__ */ n("div", { className: k, style: E, ...N, children: e });
|
|
10054
10055
|
}, xc = ({
|
|
10055
10056
|
children: e,
|
|
10056
10057
|
padding: t = !1,
|
|
@@ -10109,7 +10110,7 @@ const xp = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ v("div
|
|
|
10109
10110
|
children: g,
|
|
10110
10111
|
className: m = ""
|
|
10111
10112
|
}) => {
|
|
10112
|
-
const b = R(null), [
|
|
10113
|
+
const b = R(null), [f, x] = Y(0);
|
|
10113
10114
|
return Ye(() => {
|
|
10114
10115
|
const y = b.current;
|
|
10115
10116
|
if (!y) {
|
|
@@ -10165,7 +10166,7 @@ const xp = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ v("div
|
|
|
10165
10166
|
// Reserve the overlaid footer's height plus a gap, so the last item
|
|
10166
10167
|
// clears the footer with breathing room (not flush against it, which
|
|
10167
10168
|
// reads as hidden content continuing underneath).
|
|
10168
|
-
paddingBottom: i ? `${
|
|
10169
|
+
paddingBottom: i ? `${f + 24}px` : "48px"
|
|
10169
10170
|
},
|
|
10170
10171
|
children: /* @__PURE__ */ n(
|
|
10171
10172
|
"div",
|
|
@@ -10409,7 +10410,7 @@ const Pc = () => {
|
|
|
10409
10410
|
small: "28px",
|
|
10410
10411
|
medium: "32px",
|
|
10411
10412
|
large: "42px"
|
|
10412
|
-
},
|
|
10413
|
+
}, C = {
|
|
10413
10414
|
fontSizes: {
|
|
10414
10415
|
xsmall: "11px",
|
|
10415
10416
|
small: "13px",
|
|
@@ -11501,10 +11502,10 @@ function f1(e, t) {
|
|
|
11501
11502
|
typeof d == "object" && d !== null ? Object.entries(d).forEach(([p, g]) => {
|
|
11502
11503
|
const m = p.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
11503
11504
|
typeof g == "object" && g !== null ? Object.entries(g).forEach(
|
|
11504
|
-
([b,
|
|
11505
|
+
([b, f]) => {
|
|
11505
11506
|
const x = b.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
11506
11507
|
l.push(
|
|
11507
|
-
`--malachite-text-${h}-${m}-${x}: ${
|
|
11508
|
+
`--malachite-text-${h}-${m}-${x}: ${f}`
|
|
11508
11509
|
);
|
|
11509
11510
|
}
|
|
11510
11511
|
) : l.push(
|
|
@@ -11646,7 +11647,7 @@ function f1(e, t) {
|
|
|
11646
11647
|
}
|
|
11647
11648
|
function Qc(e) {
|
|
11648
11649
|
try {
|
|
11649
|
-
const t = _t(), r = er(), a = t === "dark" ? $1 :
|
|
11650
|
+
const t = _t(), r = er(), a = t === "dark" ? $1 : C, o = r ? _1(a, r) : a;
|
|
11650
11651
|
f1(o, e);
|
|
11651
11652
|
} catch (t) {
|
|
11652
11653
|
console.error("Error applying theme to shadow root:", t);
|
|
@@ -11739,18 +11740,18 @@ function _1(e, t) {
|
|
|
11739
11740
|
}
|
|
11740
11741
|
function jc(e) {
|
|
11741
11742
|
Yc(e);
|
|
11742
|
-
const t = _t(), a = _1(t === "dark" ? $1 :
|
|
11743
|
+
const t = _t(), a = _1(t === "dark" ? $1 : C, e);
|
|
11743
11744
|
f1(a, document.documentElement), pt.forEach((o) => {
|
|
11744
11745
|
f1(a, o);
|
|
11745
11746
|
}), t === "dark" ? document.documentElement.setAttribute("data-theme", "dark") : document.documentElement.removeAttribute("data-theme");
|
|
11746
11747
|
}
|
|
11747
11748
|
function zc(e, t) {
|
|
11748
|
-
const r = t === "dark" ? $1 :
|
|
11749
|
+
const r = t === "dark" ? $1 : C, a = er(), o = a ? _1(r, a) : r;
|
|
11749
11750
|
f1(o, e);
|
|
11750
11751
|
}
|
|
11751
11752
|
function z0() {
|
|
11752
11753
|
j0("light"), document.documentElement.removeAttribute("data-theme");
|
|
11753
|
-
const e = er(), t = e ? _1(
|
|
11754
|
+
const e = er(), t = e ? _1(C, e) : C;
|
|
11754
11755
|
f1(t, document.documentElement), pt.forEach((r) => {
|
|
11755
11756
|
f1(t, r);
|
|
11756
11757
|
});
|
|
@@ -11784,10 +11785,10 @@ function Uc() {
|
|
|
11784
11785
|
document.documentElement.setAttribute("data-theme", "dark");
|
|
11785
11786
|
} else {
|
|
11786
11787
|
if (t) {
|
|
11787
|
-
const r = _1(
|
|
11788
|
+
const r = _1(C, t);
|
|
11788
11789
|
f1(r, document.documentElement);
|
|
11789
11790
|
} else
|
|
11790
|
-
f1(
|
|
11791
|
+
f1(C, document.documentElement);
|
|
11791
11792
|
document.documentElement.removeAttribute("data-theme");
|
|
11792
11793
|
}
|
|
11793
11794
|
}
|
|
@@ -11796,19 +11797,19 @@ function Ip() {
|
|
|
11796
11797
|
const e = getComputedStyle(document.documentElement);
|
|
11797
11798
|
return {
|
|
11798
11799
|
fontSizes: {
|
|
11799
|
-
xsmall: e.getPropertyValue("--malachite-font-size-xsmall").trim() ||
|
|
11800
|
-
small: e.getPropertyValue("--malachite-font-size-small").trim() ||
|
|
11801
|
-
medium: e.getPropertyValue("--malachite-font-size-medium").trim() ||
|
|
11802
|
-
15: e.getPropertyValue("--malachite-font-size-15").trim() ||
|
|
11803
|
-
large: e.getPropertyValue("--malachite-font-size-large").trim() ||
|
|
11804
|
-
xlarge: e.getPropertyValue("--malachite-font-size-xlarge").trim() ||
|
|
11805
|
-
xxlarge: e.getPropertyValue("--malachite-font-size-xxlarge").trim() ||
|
|
11800
|
+
xsmall: e.getPropertyValue("--malachite-font-size-xsmall").trim() || C.fontSizes.xsmall,
|
|
11801
|
+
small: e.getPropertyValue("--malachite-font-size-small").trim() || C.fontSizes.small,
|
|
11802
|
+
medium: e.getPropertyValue("--malachite-font-size-medium").trim() || C.fontSizes.medium,
|
|
11803
|
+
15: e.getPropertyValue("--malachite-font-size-15").trim() || C.fontSizes[15],
|
|
11804
|
+
large: e.getPropertyValue("--malachite-font-size-large").trim() || C.fontSizes.large,
|
|
11805
|
+
xlarge: e.getPropertyValue("--malachite-font-size-xlarge").trim() || C.fontSizes.xlarge,
|
|
11806
|
+
xxlarge: e.getPropertyValue("--malachite-font-size-xxlarge").trim() || C.fontSizes.xxlarge
|
|
11806
11807
|
},
|
|
11807
11808
|
iconSizes: {
|
|
11808
|
-
xsmall: e.getPropertyValue("--malachite-icon-size-xsmall").trim() ||
|
|
11809
|
-
small: e.getPropertyValue("--malachite-icon-size-small").trim() ||
|
|
11810
|
-
medium: e.getPropertyValue("--malachite-icon-size-medium").trim() ||
|
|
11811
|
-
large: e.getPropertyValue("--malachite-icon-size-large").trim() ||
|
|
11809
|
+
xsmall: e.getPropertyValue("--malachite-icon-size-xsmall").trim() || C.iconSizes.xsmall,
|
|
11810
|
+
small: e.getPropertyValue("--malachite-icon-size-small").trim() || C.iconSizes.small,
|
|
11811
|
+
medium: e.getPropertyValue("--malachite-icon-size-medium").trim() || C.iconSizes.medium,
|
|
11812
|
+
large: e.getPropertyValue("--malachite-icon-size-large").trim() || C.iconSizes.large
|
|
11812
11813
|
},
|
|
11813
11814
|
controlHeights: {
|
|
11814
11815
|
small: e.getPropertyValue("--malachite-control-height-small").trim() || W1.small,
|
|
@@ -11816,80 +11817,80 @@ function Ip() {
|
|
|
11816
11817
|
large: e.getPropertyValue("--malachite-control-height-large").trim() || W1.large
|
|
11817
11818
|
},
|
|
11818
11819
|
radius: {
|
|
11819
|
-
xs: e.getPropertyValue("--malachite-radius-xs").trim() ||
|
|
11820
|
-
sm: e.getPropertyValue("--malachite-radius-sm").trim() ||
|
|
11821
|
-
md: e.getPropertyValue("--malachite-radius-md").trim() ||
|
|
11822
|
-
lg: e.getPropertyValue("--malachite-radius-lg").trim() ||
|
|
11823
|
-
10: e.getPropertyValue("--malachite-radius-10").trim() ||
|
|
11824
|
-
xl: e.getPropertyValue("--malachite-radius-xl").trim() ||
|
|
11825
|
-
xxl: e.getPropertyValue("--malachite-radius-xxl").trim() ||
|
|
11826
|
-
xxxl: e.getPropertyValue("--malachite-radius-xxxl").trim() ||
|
|
11820
|
+
xs: e.getPropertyValue("--malachite-radius-xs").trim() || C.radius.xs,
|
|
11821
|
+
sm: e.getPropertyValue("--malachite-radius-sm").trim() || C.radius.sm,
|
|
11822
|
+
md: e.getPropertyValue("--malachite-radius-md").trim() || C.radius.md,
|
|
11823
|
+
lg: e.getPropertyValue("--malachite-radius-lg").trim() || C.radius.lg,
|
|
11824
|
+
10: e.getPropertyValue("--malachite-radius-10").trim() || C.radius[10],
|
|
11825
|
+
xl: e.getPropertyValue("--malachite-radius-xl").trim() || C.radius.xl,
|
|
11826
|
+
xxl: e.getPropertyValue("--malachite-radius-xxl").trim() || C.radius.xxl,
|
|
11827
|
+
xxxl: e.getPropertyValue("--malachite-radius-xxxl").trim() || C.radius.xxxl
|
|
11827
11828
|
},
|
|
11828
11829
|
shadows: {
|
|
11829
|
-
sm: e.getPropertyValue("--malachite-shadow-sm").trim() ||
|
|
11830
|
-
md: e.getPropertyValue("--malachite-shadow-md").trim() ||
|
|
11831
|
-
lg: e.getPropertyValue("--malachite-shadow-lg").trim() ||
|
|
11832
|
-
xl: e.getPropertyValue("--malachite-shadow-xl").trim() ||
|
|
11833
|
-
glow: e.getPropertyValue("--malachite-shadow-glow").trim() ||
|
|
11834
|
-
glowLg: e.getPropertyValue("--malachite-shadow-glow-lg").trim() ||
|
|
11835
|
-
default: e.getPropertyValue("--malachite-shadow-default").trim() ||
|
|
11830
|
+
sm: e.getPropertyValue("--malachite-shadow-sm").trim() || C.shadows.sm,
|
|
11831
|
+
md: e.getPropertyValue("--malachite-shadow-md").trim() || C.shadows.md,
|
|
11832
|
+
lg: e.getPropertyValue("--malachite-shadow-lg").trim() || C.shadows.lg,
|
|
11833
|
+
xl: e.getPropertyValue("--malachite-shadow-xl").trim() || C.shadows.xl,
|
|
11834
|
+
glow: e.getPropertyValue("--malachite-shadow-glow").trim() || C.shadows.glow,
|
|
11835
|
+
glowLg: e.getPropertyValue("--malachite-shadow-glow-lg").trim() || C.shadows.glowLg,
|
|
11836
|
+
default: e.getPropertyValue("--malachite-shadow-default").trim() || C.shadows.default,
|
|
11836
11837
|
accent: e.getPropertyValue("--malachite-shadow-accent").trim() || E5,
|
|
11837
|
-
success: e.getPropertyValue("--malachite-shadow-success").trim() ||
|
|
11838
|
-
warning: e.getPropertyValue("--malachite-shadow-warning").trim() ||
|
|
11839
|
-
error: e.getPropertyValue("--malachite-shadow-error").trim() ||
|
|
11838
|
+
success: e.getPropertyValue("--malachite-shadow-success").trim() || C.shadows.success,
|
|
11839
|
+
warning: e.getPropertyValue("--malachite-shadow-warning").trim() || C.shadows.warning,
|
|
11840
|
+
error: e.getPropertyValue("--malachite-shadow-error").trim() || C.shadows.error
|
|
11840
11841
|
},
|
|
11841
11842
|
colors: {
|
|
11842
|
-
shadowColor: e.getPropertyValue("--malachite-shadow-color").trim() ||
|
|
11843
|
-
shadowOpacity: parseFloat(e.getPropertyValue("--malachite-shadow-opacity").trim()) ||
|
|
11843
|
+
shadowColor: e.getPropertyValue("--malachite-shadow-color").trim() || C.colors.shadowColor,
|
|
11844
|
+
shadowOpacity: parseFloat(e.getPropertyValue("--malachite-shadow-opacity").trim()) || C.colors.shadowOpacity,
|
|
11844
11845
|
card: {
|
|
11845
|
-
background: e.getPropertyValue("--malachite-card-background").trim() ||
|
|
11846
|
-
foreground: e.getPropertyValue("--malachite-card-foreground").trim() ||
|
|
11847
|
-
border: e.getPropertyValue("--malachite-card-border").trim() ||
|
|
11848
|
-
shadow: e.getPropertyValue("--malachite-card-shadow").trim() ||
|
|
11849
|
-
dimmedBackground: e.getPropertyValue("--malachite-card-dimmed-background").trim() ||
|
|
11850
|
-
sunkenBackground: e.getPropertyValue("--malachite-card-sunken-background").trim() ||
|
|
11851
|
-
warmBackground: e.getPropertyValue("--malachite-card-warm-background").trim() ||
|
|
11852
|
-
headerBackground: e.getPropertyValue("--malachite-card-header-background").trim() ||
|
|
11853
|
-
footerBackground: e.getPropertyValue("--malachite-card-footer-background").trim() ||
|
|
11854
|
-
footerGlassBackground: e.getPropertyValue("--malachite-card-footer-glass-background").trim() ||
|
|
11855
|
-
trayNeutral: e.getPropertyValue("--malachite-card-tray-neutral").trim() ||
|
|
11856
|
-
trayWarning: e.getPropertyValue("--malachite-card-tray-warning").trim() ||
|
|
11857
|
-
trayError: e.getPropertyValue("--malachite-card-tray-error").trim() ||
|
|
11858
|
-
traySuccess: e.getPropertyValue("--malachite-card-tray-success").trim() ||
|
|
11859
|
-
subtleDivider: e.getPropertyValue("--malachite-card-subtle-divider").trim() ||
|
|
11846
|
+
background: e.getPropertyValue("--malachite-card-background").trim() || C.colors.card.background,
|
|
11847
|
+
foreground: e.getPropertyValue("--malachite-card-foreground").trim() || C.colors.card.foreground,
|
|
11848
|
+
border: e.getPropertyValue("--malachite-card-border").trim() || C.colors.card.border,
|
|
11849
|
+
shadow: e.getPropertyValue("--malachite-card-shadow").trim() || C.colors.card.shadow,
|
|
11850
|
+
dimmedBackground: e.getPropertyValue("--malachite-card-dimmed-background").trim() || C.colors.card.dimmedBackground,
|
|
11851
|
+
sunkenBackground: e.getPropertyValue("--malachite-card-sunken-background").trim() || C.colors.card.sunkenBackground,
|
|
11852
|
+
warmBackground: e.getPropertyValue("--malachite-card-warm-background").trim() || C.colors.card.warmBackground,
|
|
11853
|
+
headerBackground: e.getPropertyValue("--malachite-card-header-background").trim() || C.colors.card.headerBackground,
|
|
11854
|
+
footerBackground: e.getPropertyValue("--malachite-card-footer-background").trim() || C.colors.card.footerBackground,
|
|
11855
|
+
footerGlassBackground: e.getPropertyValue("--malachite-card-footer-glass-background").trim() || C.colors.card.footerGlassBackground,
|
|
11856
|
+
trayNeutral: e.getPropertyValue("--malachite-card-tray-neutral").trim() || C.colors.card.trayNeutral,
|
|
11857
|
+
trayWarning: e.getPropertyValue("--malachite-card-tray-warning").trim() || C.colors.card.trayWarning,
|
|
11858
|
+
trayError: e.getPropertyValue("--malachite-card-tray-error").trim() || C.colors.card.trayError,
|
|
11859
|
+
traySuccess: e.getPropertyValue("--malachite-card-tray-success").trim() || C.colors.card.traySuccess,
|
|
11860
|
+
subtleDivider: e.getPropertyValue("--malachite-card-subtle-divider").trim() || C.colors.card.subtleDivider
|
|
11860
11861
|
},
|
|
11861
11862
|
overlay: {
|
|
11862
|
-
scrim: e.getPropertyValue("--malachite-overlay-scrim").trim() ||
|
|
11863
|
+
scrim: e.getPropertyValue("--malachite-overlay-scrim").trim() || C.colors.overlay.scrim
|
|
11863
11864
|
},
|
|
11864
11865
|
alert: {
|
|
11865
11866
|
info: {
|
|
11866
|
-
background: e.getPropertyValue("--malachite-alert-info-background").trim() ||
|
|
11867
|
-
foreground: e.getPropertyValue("--malachite-alert-info-foreground").trim() ||
|
|
11867
|
+
background: e.getPropertyValue("--malachite-alert-info-background").trim() || C.colors.alert.info.background,
|
|
11868
|
+
foreground: e.getPropertyValue("--malachite-alert-info-foreground").trim() || C.colors.alert.info.foreground
|
|
11868
11869
|
},
|
|
11869
11870
|
success: {
|
|
11870
|
-
background: e.getPropertyValue("--malachite-alert-success-background").trim() ||
|
|
11871
|
-
foreground: e.getPropertyValue("--malachite-alert-success-foreground").trim() ||
|
|
11871
|
+
background: e.getPropertyValue("--malachite-alert-success-background").trim() || C.colors.alert.success.background,
|
|
11872
|
+
foreground: e.getPropertyValue("--malachite-alert-success-foreground").trim() || C.colors.alert.success.foreground
|
|
11872
11873
|
},
|
|
11873
11874
|
error: {
|
|
11874
|
-
background: e.getPropertyValue("--malachite-alert-error-background").trim() ||
|
|
11875
|
-
foreground: e.getPropertyValue("--malachite-alert-error-foreground").trim() ||
|
|
11875
|
+
background: e.getPropertyValue("--malachite-alert-error-background").trim() || C.colors.alert.error.background,
|
|
11876
|
+
foreground: e.getPropertyValue("--malachite-alert-error-foreground").trim() || C.colors.alert.error.foreground
|
|
11876
11877
|
},
|
|
11877
11878
|
warning: {
|
|
11878
|
-
background: e.getPropertyValue("--malachite-alert-warning-background").trim() ||
|
|
11879
|
-
foreground: e.getPropertyValue("--malachite-alert-warning-foreground").trim() ||
|
|
11879
|
+
background: e.getPropertyValue("--malachite-alert-warning-background").trim() || C.colors.alert.warning.background,
|
|
11880
|
+
foreground: e.getPropertyValue("--malachite-alert-warning-foreground").trim() || C.colors.alert.warning.foreground
|
|
11880
11881
|
}
|
|
11881
11882
|
},
|
|
11882
11883
|
tooltip: {
|
|
11883
|
-
background: e.getPropertyValue("--malachite-tooltip-background").trim() ||
|
|
11884
|
-
foreground: e.getPropertyValue("--malachite-tooltip-foreground").trim() ||
|
|
11885
|
-
border: e.getPropertyValue("--malachite-tooltip-border").trim() ||
|
|
11886
|
-
shadow: e.getPropertyValue("--malachite-tooltip-shadow").trim() ||
|
|
11884
|
+
background: e.getPropertyValue("--malachite-tooltip-background").trim() || C.colors.tooltip.background,
|
|
11885
|
+
foreground: e.getPropertyValue("--malachite-tooltip-foreground").trim() || C.colors.tooltip.foreground,
|
|
11886
|
+
border: e.getPropertyValue("--malachite-tooltip-border").trim() || C.colors.tooltip.border,
|
|
11887
|
+
shadow: e.getPropertyValue("--malachite-tooltip-shadow").trim() || C.colors.tooltip.shadow
|
|
11887
11888
|
},
|
|
11888
11889
|
primary: {
|
|
11889
|
-
background: e.getPropertyValue("--malachite-primary-background").trim() ||
|
|
11890
|
-
foreground: e.getPropertyValue("--malachite-primary-foreground").trim() ||
|
|
11891
|
-
border: e.getPropertyValue("--malachite-primary-border").trim() ||
|
|
11892
|
-
borderHover: e.getPropertyValue("--malachite-primary-border-hover").trim() ||
|
|
11890
|
+
background: e.getPropertyValue("--malachite-primary-background").trim() || C.colors.primary.background,
|
|
11891
|
+
foreground: e.getPropertyValue("--malachite-primary-foreground").trim() || C.colors.primary.foreground,
|
|
11892
|
+
border: e.getPropertyValue("--malachite-primary-border").trim() || C.colors.primary.border,
|
|
11893
|
+
borderHover: e.getPropertyValue("--malachite-primary-border-hover").trim() || C.colors.primary.borderHover
|
|
11893
11894
|
},
|
|
11894
11895
|
accent: {
|
|
11895
11896
|
background: e.getPropertyValue("--malachite-accent-background").trim() || q1.background,
|
|
@@ -11898,285 +11899,285 @@ function Ip() {
|
|
|
11898
11899
|
backgroundGlass: e.getPropertyValue("--malachite-accent-background-glass").trim() || q1.backgroundGlass
|
|
11899
11900
|
},
|
|
11900
11901
|
control: {
|
|
11901
|
-
borderHover: e.getPropertyValue("--malachite-control-border-hover").trim() ||
|
|
11902
|
+
borderHover: e.getPropertyValue("--malachite-control-border-hover").trim() || C.colors.control.borderHover
|
|
11902
11903
|
},
|
|
11903
11904
|
outline: {
|
|
11904
|
-
foreground: e.getPropertyValue("--malachite-outline-foreground").trim() ||
|
|
11905
|
+
foreground: e.getPropertyValue("--malachite-outline-foreground").trim() || C.colors.outline.foreground
|
|
11905
11906
|
},
|
|
11906
11907
|
secondary: {
|
|
11907
|
-
background: e.getPropertyValue("--malachite-secondary-background").trim() ||
|
|
11908
|
-
foreground: e.getPropertyValue("--malachite-secondary-foreground").trim() ||
|
|
11909
|
-
border: e.getPropertyValue("--malachite-secondary-border").trim() ||
|
|
11910
|
-
borderHover: e.getPropertyValue("--malachite-secondary-border-hover").trim() ||
|
|
11908
|
+
background: e.getPropertyValue("--malachite-secondary-background").trim() || C.colors.secondary.background,
|
|
11909
|
+
foreground: e.getPropertyValue("--malachite-secondary-foreground").trim() || C.colors.secondary.foreground,
|
|
11910
|
+
border: e.getPropertyValue("--malachite-secondary-border").trim() || C.colors.secondary.border,
|
|
11911
|
+
borderHover: e.getPropertyValue("--malachite-secondary-border-hover").trim() || C.colors.secondary.borderHover
|
|
11911
11912
|
},
|
|
11912
11913
|
destructive: {
|
|
11913
|
-
background: e.getPropertyValue("--malachite-destructive-background").trim() ||
|
|
11914
|
-
foreground: e.getPropertyValue("--malachite-destructive-foreground").trim() ||
|
|
11915
|
-
border: e.getPropertyValue("--malachite-destructive-border").trim() ||
|
|
11916
|
-
borderHover: e.getPropertyValue("--malachite-destructive-border-hover").trim() ||
|
|
11917
|
-
shadow: e.getPropertyValue("--malachite-destructive-shadow").trim() ||
|
|
11918
|
-
shadowLight: e.getPropertyValue("--malachite-destructive-shadow-light").trim() ||
|
|
11919
|
-
shadowMedium: e.getPropertyValue("--malachite-destructive-shadow-medium").trim() ||
|
|
11914
|
+
background: e.getPropertyValue("--malachite-destructive-background").trim() || C.colors.destructive.background,
|
|
11915
|
+
foreground: e.getPropertyValue("--malachite-destructive-foreground").trim() || C.colors.destructive.foreground,
|
|
11916
|
+
border: e.getPropertyValue("--malachite-destructive-border").trim() || C.colors.destructive.border,
|
|
11917
|
+
borderHover: e.getPropertyValue("--malachite-destructive-border-hover").trim() || C.colors.destructive.borderHover,
|
|
11918
|
+
shadow: e.getPropertyValue("--malachite-destructive-shadow").trim() || C.colors.destructive.shadow,
|
|
11919
|
+
shadowLight: e.getPropertyValue("--malachite-destructive-shadow-light").trim() || C.colors.destructive.shadowLight,
|
|
11920
|
+
shadowMedium: e.getPropertyValue("--malachite-destructive-shadow-medium").trim() || C.colors.destructive.shadowMedium
|
|
11920
11921
|
},
|
|
11921
11922
|
success: {
|
|
11922
|
-
background: e.getPropertyValue("--malachite-success-background").trim() ||
|
|
11923
|
-
foreground: e.getPropertyValue("--malachite-success-foreground").trim() ||
|
|
11924
|
-
border: e.getPropertyValue("--malachite-success-border").trim() ||
|
|
11925
|
-
borderHover: e.getPropertyValue("--malachite-success-border-hover").trim() ||
|
|
11926
|
-
backgroundGlass: e.getPropertyValue("--malachite-success-background-glass").trim() ||
|
|
11927
|
-
shadowLight: e.getPropertyValue("--malachite-success-shadow-light").trim() ||
|
|
11928
|
-
shadowMedium: e.getPropertyValue("--malachite-success-shadow-medium").trim() ||
|
|
11923
|
+
background: e.getPropertyValue("--malachite-success-background").trim() || C.colors.success.background,
|
|
11924
|
+
foreground: e.getPropertyValue("--malachite-success-foreground").trim() || C.colors.success.foreground,
|
|
11925
|
+
border: e.getPropertyValue("--malachite-success-border").trim() || C.colors.success.border,
|
|
11926
|
+
borderHover: e.getPropertyValue("--malachite-success-border-hover").trim() || C.colors.success.borderHover,
|
|
11927
|
+
backgroundGlass: e.getPropertyValue("--malachite-success-background-glass").trim() || C.colors.success.backgroundGlass,
|
|
11928
|
+
shadowLight: e.getPropertyValue("--malachite-success-shadow-light").trim() || C.colors.success.shadowLight,
|
|
11929
|
+
shadowMedium: e.getPropertyValue("--malachite-success-shadow-medium").trim() || C.colors.success.shadowMedium
|
|
11929
11930
|
},
|
|
11930
11931
|
warning: {
|
|
11931
|
-
background: e.getPropertyValue("--malachite-warning-background").trim() ||
|
|
11932
|
-
foreground: e.getPropertyValue("--malachite-warning-foreground").trim() ||
|
|
11933
|
-
border: e.getPropertyValue("--malachite-warning-border").trim() ||
|
|
11934
|
-
borderHover: e.getPropertyValue("--malachite-warning-border-hover").trim() ||
|
|
11935
|
-
backgroundGlass: e.getPropertyValue("--malachite-warning-background-glass").trim() ||
|
|
11936
|
-
shadowLight: e.getPropertyValue("--malachite-warning-shadow-light").trim() ||
|
|
11937
|
-
shadowMedium: e.getPropertyValue("--malachite-warning-shadow-medium").trim() ||
|
|
11932
|
+
background: e.getPropertyValue("--malachite-warning-background").trim() || C.colors.warning.background,
|
|
11933
|
+
foreground: e.getPropertyValue("--malachite-warning-foreground").trim() || C.colors.warning.foreground,
|
|
11934
|
+
border: e.getPropertyValue("--malachite-warning-border").trim() || C.colors.warning.border,
|
|
11935
|
+
borderHover: e.getPropertyValue("--malachite-warning-border-hover").trim() || C.colors.warning.borderHover,
|
|
11936
|
+
backgroundGlass: e.getPropertyValue("--malachite-warning-background-glass").trim() || C.colors.warning.backgroundGlass,
|
|
11937
|
+
shadowLight: e.getPropertyValue("--malachite-warning-shadow-light").trim() || C.colors.warning.shadowLight,
|
|
11938
|
+
shadowMedium: e.getPropertyValue("--malachite-warning-shadow-medium").trim() || C.colors.warning.shadowMedium
|
|
11938
11939
|
},
|
|
11939
11940
|
error: {
|
|
11940
|
-
background: e.getPropertyValue("--malachite-error-background").trim() ||
|
|
11941
|
-
foreground: e.getPropertyValue("--malachite-error-foreground").trim() ||
|
|
11942
|
-
border: e.getPropertyValue("--malachite-error-border").trim() ||
|
|
11943
|
-
borderHover: e.getPropertyValue("--malachite-error-border-hover").trim() ||
|
|
11944
|
-
backgroundGlass: e.getPropertyValue("--malachite-error-background-glass").trim() ||
|
|
11945
|
-
shadowLight: e.getPropertyValue("--malachite-error-shadow-light").trim() ||
|
|
11946
|
-
shadowMedium: e.getPropertyValue("--malachite-error-shadow-medium").trim() ||
|
|
11941
|
+
background: e.getPropertyValue("--malachite-error-background").trim() || C.colors.error.background,
|
|
11942
|
+
foreground: e.getPropertyValue("--malachite-error-foreground").trim() || C.colors.error.foreground,
|
|
11943
|
+
border: e.getPropertyValue("--malachite-error-border").trim() || C.colors.error.border,
|
|
11944
|
+
borderHover: e.getPropertyValue("--malachite-error-border-hover").trim() || C.colors.error.borderHover,
|
|
11945
|
+
backgroundGlass: e.getPropertyValue("--malachite-error-background-glass").trim() || C.colors.error.backgroundGlass,
|
|
11946
|
+
shadowLight: e.getPropertyValue("--malachite-error-shadow-light").trim() || C.colors.error.shadowLight,
|
|
11947
|
+
shadowMedium: e.getPropertyValue("--malachite-error-shadow-medium").trim() || C.colors.error.shadowMedium
|
|
11947
11948
|
},
|
|
11948
11949
|
buttonList: {
|
|
11949
|
-
background: e.getPropertyValue("--malachite-buttonlist-background").trim() ||
|
|
11950
|
-
foreground: e.getPropertyValue("--malachite-buttonlist-foreground").trim() ||
|
|
11951
|
-
hoverBackground: e.getPropertyValue("--malachite-buttonlist-hover-background").trim() ||
|
|
11952
|
-
hoverForeground: e.getPropertyValue("--malachite-buttonlist-hover-foreground").trim() ||
|
|
11950
|
+
background: e.getPropertyValue("--malachite-buttonlist-background").trim() || C.colors.buttonList.background,
|
|
11951
|
+
foreground: e.getPropertyValue("--malachite-buttonlist-foreground").trim() || C.colors.buttonList.foreground,
|
|
11952
|
+
hoverBackground: e.getPropertyValue("--malachite-buttonlist-hover-background").trim() || C.colors.buttonList.hoverBackground,
|
|
11953
|
+
hoverForeground: e.getPropertyValue("--malachite-buttonlist-hover-foreground").trim() || C.colors.buttonList.hoverForeground
|
|
11953
11954
|
},
|
|
11954
11955
|
pillButton: {
|
|
11955
|
-
background: e.getPropertyValue("--malachite-pillbutton-background").trim() ||
|
|
11956
|
-
foreground: e.getPropertyValue("--malachite-pillbutton-foreground").trim() ||
|
|
11957
|
-
hoverBackground: e.getPropertyValue("--malachite-pillbutton-hover-background").trim() ||
|
|
11958
|
-
hoverForeground: e.getPropertyValue("--malachite-pillbutton-hover-foreground").trim() ||
|
|
11959
|
-
pressedBackground: e.getPropertyValue("--malachite-pillbutton-pressed-background").trim() ||
|
|
11960
|
-
pressedForeground: e.getPropertyValue("--malachite-pillbutton-pressed-foreground").trim() ||
|
|
11961
|
-
pressedOpacity: e.getPropertyValue("--malachite-pillbutton-pressed-opacity").trim() ||
|
|
11962
|
-
activeBackground: e.getPropertyValue("--malachite-pillbutton-active-background").trim() ||
|
|
11963
|
-
activeForeground: e.getPropertyValue("--malachite-pillbutton-active-foreground").trim() ||
|
|
11964
|
-
staticBackground: e.getPropertyValue("--malachite-pillbutton-static-background").trim() ||
|
|
11965
|
-
staticForeground: e.getPropertyValue("--malachite-pillbutton-static-foreground").trim() ||
|
|
11966
|
-
invertedBackground: e.getPropertyValue("--malachite-pillbutton-inverted-background").trim() ||
|
|
11967
|
-
invertedForeground: e.getPropertyValue("--malachite-pillbutton-inverted-foreground").trim() ||
|
|
11968
|
-
invertedHoverBackground: e.getPropertyValue("--malachite-pillbutton-inverted-hover-background").trim() ||
|
|
11969
|
-
invertedHoverForeground: e.getPropertyValue("--malachite-pillbutton-inverted-hover-foreground").trim() ||
|
|
11970
|
-
invertedPressedBackground: e.getPropertyValue("--malachite-pillbutton-inverted-pressed-background").trim() ||
|
|
11971
|
-
invertedPressedForeground: e.getPropertyValue("--malachite-pillbutton-inverted-pressed-foreground").trim() ||
|
|
11956
|
+
background: e.getPropertyValue("--malachite-pillbutton-background").trim() || C.colors.pillButton.background,
|
|
11957
|
+
foreground: e.getPropertyValue("--malachite-pillbutton-foreground").trim() || C.colors.pillButton.foreground,
|
|
11958
|
+
hoverBackground: e.getPropertyValue("--malachite-pillbutton-hover-background").trim() || C.colors.pillButton.hoverBackground,
|
|
11959
|
+
hoverForeground: e.getPropertyValue("--malachite-pillbutton-hover-foreground").trim() || C.colors.pillButton.hoverForeground,
|
|
11960
|
+
pressedBackground: e.getPropertyValue("--malachite-pillbutton-pressed-background").trim() || C.colors.pillButton.pressedBackground,
|
|
11961
|
+
pressedForeground: e.getPropertyValue("--malachite-pillbutton-pressed-foreground").trim() || C.colors.pillButton.pressedForeground,
|
|
11962
|
+
pressedOpacity: e.getPropertyValue("--malachite-pillbutton-pressed-opacity").trim() || C.colors.pillButton.pressedOpacity,
|
|
11963
|
+
activeBackground: e.getPropertyValue("--malachite-pillbutton-active-background").trim() || C.colors.pillButton.activeBackground,
|
|
11964
|
+
activeForeground: e.getPropertyValue("--malachite-pillbutton-active-foreground").trim() || C.colors.pillButton.activeForeground,
|
|
11965
|
+
staticBackground: e.getPropertyValue("--malachite-pillbutton-static-background").trim() || C.colors.pillButton.staticBackground,
|
|
11966
|
+
staticForeground: e.getPropertyValue("--malachite-pillbutton-static-foreground").trim() || C.colors.pillButton.staticForeground,
|
|
11967
|
+
invertedBackground: e.getPropertyValue("--malachite-pillbutton-inverted-background").trim() || C.colors.pillButton.invertedBackground,
|
|
11968
|
+
invertedForeground: e.getPropertyValue("--malachite-pillbutton-inverted-foreground").trim() || C.colors.pillButton.invertedForeground,
|
|
11969
|
+
invertedHoverBackground: e.getPropertyValue("--malachite-pillbutton-inverted-hover-background").trim() || C.colors.pillButton.invertedHoverBackground,
|
|
11970
|
+
invertedHoverForeground: e.getPropertyValue("--malachite-pillbutton-inverted-hover-foreground").trim() || C.colors.pillButton.invertedHoverForeground,
|
|
11971
|
+
invertedPressedBackground: e.getPropertyValue("--malachite-pillbutton-inverted-pressed-background").trim() || C.colors.pillButton.invertedPressedBackground,
|
|
11972
|
+
invertedPressedForeground: e.getPropertyValue("--malachite-pillbutton-inverted-pressed-foreground").trim() || C.colors.pillButton.invertedPressedForeground
|
|
11972
11973
|
},
|
|
11973
11974
|
toggle: {
|
|
11974
|
-
track: e.getPropertyValue("--malachite-toggle-track").trim() ||
|
|
11975
|
-
trackChecked: e.getPropertyValue("--malachite-toggle-track-checked").trim() ||
|
|
11976
|
-
trackCheckedPending: e.getPropertyValue("--malachite-toggle-track-checked-pending").trim() ||
|
|
11977
|
-
knob: e.getPropertyValue("--malachite-toggle-knob").trim() ||
|
|
11975
|
+
track: e.getPropertyValue("--malachite-toggle-track").trim() || C.colors.toggle.track,
|
|
11976
|
+
trackChecked: e.getPropertyValue("--malachite-toggle-track-checked").trim() || C.colors.toggle.trackChecked,
|
|
11977
|
+
trackCheckedPending: e.getPropertyValue("--malachite-toggle-track-checked-pending").trim() || C.colors.toggle.trackCheckedPending,
|
|
11978
|
+
knob: e.getPropertyValue("--malachite-toggle-knob").trim() || C.colors.toggle.knob
|
|
11978
11979
|
},
|
|
11979
11980
|
segmentedControl: {
|
|
11980
|
-
trackBackground: e.getPropertyValue("--malachite-segmented-control-track-background").trim() ||
|
|
11981
|
-
itemForeground: e.getPropertyValue("--malachite-segmented-control-item-foreground").trim() ||
|
|
11982
|
-
itemHoverForeground: e.getPropertyValue("--malachite-segmented-control-item-hover-foreground").trim() ||
|
|
11983
|
-
selectedBackground: e.getPropertyValue("--malachite-segmented-control-selected-background").trim() ||
|
|
11984
|
-
selectedForeground: e.getPropertyValue("--malachite-segmented-control-selected-foreground").trim() ||
|
|
11985
|
-
selectedShadow: e.getPropertyValue("--malachite-segmented-control-selected-shadow").trim() ||
|
|
11981
|
+
trackBackground: e.getPropertyValue("--malachite-segmented-control-track-background").trim() || C.colors.segmentedControl.trackBackground,
|
|
11982
|
+
itemForeground: e.getPropertyValue("--malachite-segmented-control-item-foreground").trim() || C.colors.segmentedControl.itemForeground,
|
|
11983
|
+
itemHoverForeground: e.getPropertyValue("--malachite-segmented-control-item-hover-foreground").trim() || C.colors.segmentedControl.itemHoverForeground,
|
|
11984
|
+
selectedBackground: e.getPropertyValue("--malachite-segmented-control-selected-background").trim() || C.colors.segmentedControl.selectedBackground,
|
|
11985
|
+
selectedForeground: e.getPropertyValue("--malachite-segmented-control-selected-foreground").trim() || C.colors.segmentedControl.selectedForeground,
|
|
11986
|
+
selectedShadow: e.getPropertyValue("--malachite-segmented-control-selected-shadow").trim() || C.colors.segmentedControl.selectedShadow
|
|
11986
11987
|
},
|
|
11987
11988
|
selectableCard: {
|
|
11988
|
-
background: e.getPropertyValue("--malachite-selectable-card-background").trim() ||
|
|
11989
|
-
border: e.getPropertyValue("--malachite-selectable-card-border").trim() ||
|
|
11990
|
-
selectedTint: e.getPropertyValue("--malachite-selectable-card-selected-tint").trim() ||
|
|
11991
|
-
selectedSurfaceEnd: e.getPropertyValue("--malachite-selectable-card-selected-surface-end").trim() ||
|
|
11992
|
-
selectedBorder: e.getPropertyValue("--malachite-selectable-card-selected-border").trim() ||
|
|
11993
|
-
indicatorFill: e.getPropertyValue("--malachite-selectable-card-indicator-fill").trim() ||
|
|
11994
|
-
libraryAccent: e.getPropertyValue("--malachite-selectable-card-library-accent").trim() ||
|
|
11995
|
-
librarySelectedTint: e.getPropertyValue("--malachite-selectable-card-library-selected-tint").trim() ||
|
|
11996
|
-
librarySelectedBorder: e.getPropertyValue("--malachite-selectable-card-library-selected-border").trim() ||
|
|
11997
|
-
editingTint: e.getPropertyValue("--malachite-selectable-card-editing-tint").trim() ||
|
|
11998
|
-
editingIndicatorFill: e.getPropertyValue("--malachite-selectable-card-editing-indicator-fill").trim() ||
|
|
11999
|
-
libraryIndicatorFill: e.getPropertyValue("--malachite-selectable-card-library-indicator-fill").trim() ||
|
|
12000
|
-
accent: e.getPropertyValue("--malachite-selectable-card-accent").trim() ||
|
|
12001
|
-
mutedForeground: e.getPropertyValue("--malachite-selectable-card-muted-foreground").trim() ||
|
|
12002
|
-
hoverBackground: e.getPropertyValue("--malachite-selectable-card-hover-background").trim() ||
|
|
12003
|
-
hoverRule: e.getPropertyValue("--malachite-selectable-card-hover-rule").trim() ||
|
|
12004
|
-
pendingForeground: e.getPropertyValue("--malachite-selectable-card-pending-foreground").trim() ||
|
|
11989
|
+
background: e.getPropertyValue("--malachite-selectable-card-background").trim() || C.colors.selectableCard.background,
|
|
11990
|
+
border: e.getPropertyValue("--malachite-selectable-card-border").trim() || C.colors.selectableCard.border,
|
|
11991
|
+
selectedTint: e.getPropertyValue("--malachite-selectable-card-selected-tint").trim() || C.colors.selectableCard.selectedTint,
|
|
11992
|
+
selectedSurfaceEnd: e.getPropertyValue("--malachite-selectable-card-selected-surface-end").trim() || C.colors.selectableCard.selectedSurfaceEnd,
|
|
11993
|
+
selectedBorder: e.getPropertyValue("--malachite-selectable-card-selected-border").trim() || C.colors.selectableCard.selectedBorder,
|
|
11994
|
+
indicatorFill: e.getPropertyValue("--malachite-selectable-card-indicator-fill").trim() || C.colors.selectableCard.indicatorFill,
|
|
11995
|
+
libraryAccent: e.getPropertyValue("--malachite-selectable-card-library-accent").trim() || C.colors.selectableCard.libraryAccent,
|
|
11996
|
+
librarySelectedTint: e.getPropertyValue("--malachite-selectable-card-library-selected-tint").trim() || C.colors.selectableCard.librarySelectedTint,
|
|
11997
|
+
librarySelectedBorder: e.getPropertyValue("--malachite-selectable-card-library-selected-border").trim() || C.colors.selectableCard.librarySelectedBorder,
|
|
11998
|
+
editingTint: e.getPropertyValue("--malachite-selectable-card-editing-tint").trim() || C.colors.selectableCard.editingTint,
|
|
11999
|
+
editingIndicatorFill: e.getPropertyValue("--malachite-selectable-card-editing-indicator-fill").trim() || C.colors.selectableCard.editingIndicatorFill,
|
|
12000
|
+
libraryIndicatorFill: e.getPropertyValue("--malachite-selectable-card-library-indicator-fill").trim() || C.colors.selectableCard.libraryIndicatorFill,
|
|
12001
|
+
accent: e.getPropertyValue("--malachite-selectable-card-accent").trim() || C.colors.selectableCard.accent,
|
|
12002
|
+
mutedForeground: e.getPropertyValue("--malachite-selectable-card-muted-foreground").trim() || C.colors.selectableCard.mutedForeground,
|
|
12003
|
+
hoverBackground: e.getPropertyValue("--malachite-selectable-card-hover-background").trim() || C.colors.selectableCard.hoverBackground,
|
|
12004
|
+
hoverRule: e.getPropertyValue("--malachite-selectable-card-hover-rule").trim() || C.colors.selectableCard.hoverRule,
|
|
12005
|
+
pendingForeground: e.getPropertyValue("--malachite-selectable-card-pending-foreground").trim() || C.colors.selectableCard.pendingForeground
|
|
12005
12006
|
},
|
|
12006
12007
|
cardStrip: {
|
|
12007
|
-
background: e.getPropertyValue("--malachite-card-strip-background").trim() ||
|
|
12008
|
-
divider: e.getPropertyValue("--malachite-card-strip-divider").trim() ||
|
|
12009
|
-
fade: e.getPropertyValue("--malachite-card-strip-fade").trim() ||
|
|
12010
|
-
arrowBackground: e.getPropertyValue("--malachite-card-strip-arrow-background").trim() ||
|
|
12011
|
-
arrowBorder: e.getPropertyValue("--malachite-card-strip-arrow-border").trim() ||
|
|
12012
|
-
addPrimaryBackground: e.getPropertyValue("--malachite-card-strip-add-primary-background").trim() ||
|
|
12013
|
-
addPrimaryForeground: e.getPropertyValue("--malachite-card-strip-add-primary-foreground").trim() ||
|
|
12008
|
+
background: e.getPropertyValue("--malachite-card-strip-background").trim() || C.colors.cardStrip.background,
|
|
12009
|
+
divider: e.getPropertyValue("--malachite-card-strip-divider").trim() || C.colors.cardStrip.divider,
|
|
12010
|
+
fade: e.getPropertyValue("--malachite-card-strip-fade").trim() || C.colors.cardStrip.fade,
|
|
12011
|
+
arrowBackground: e.getPropertyValue("--malachite-card-strip-arrow-background").trim() || C.colors.cardStrip.arrowBackground,
|
|
12012
|
+
arrowBorder: e.getPropertyValue("--malachite-card-strip-arrow-border").trim() || C.colors.cardStrip.arrowBorder,
|
|
12013
|
+
addPrimaryBackground: e.getPropertyValue("--malachite-card-strip-add-primary-background").trim() || C.colors.cardStrip.addPrimaryBackground,
|
|
12014
|
+
addPrimaryForeground: e.getPropertyValue("--malachite-card-strip-add-primary-foreground").trim() || C.colors.cardStrip.addPrimaryForeground
|
|
12014
12015
|
},
|
|
12015
12016
|
selectionBar: {
|
|
12016
|
-
background: e.getPropertyValue("--malachite-selection-bar-background").trim() ||
|
|
12017
|
-
foreground: e.getPropertyValue("--malachite-selection-bar-foreground").trim() ||
|
|
12018
|
-
mutedForeground: e.getPropertyValue("--malachite-selection-bar-muted-foreground").trim() ||
|
|
12019
|
-
divider: e.getPropertyValue("--malachite-selection-bar-divider").trim() ||
|
|
12020
|
-
border: e.getPropertyValue("--malachite-selection-bar-border").trim() ||
|
|
12021
|
-
primaryBorder: e.getPropertyValue("--malachite-selection-bar-primary-border").trim() ||
|
|
12022
|
-
shadow: e.getPropertyValue("--malachite-selection-bar-shadow").trim() ||
|
|
12017
|
+
background: e.getPropertyValue("--malachite-selection-bar-background").trim() || C.colors.selectionBar.background,
|
|
12018
|
+
foreground: e.getPropertyValue("--malachite-selection-bar-foreground").trim() || C.colors.selectionBar.foreground,
|
|
12019
|
+
mutedForeground: e.getPropertyValue("--malachite-selection-bar-muted-foreground").trim() || C.colors.selectionBar.mutedForeground,
|
|
12020
|
+
divider: e.getPropertyValue("--malachite-selection-bar-divider").trim() || C.colors.selectionBar.divider,
|
|
12021
|
+
border: e.getPropertyValue("--malachite-selection-bar-border").trim() || C.colors.selectionBar.border,
|
|
12022
|
+
primaryBorder: e.getPropertyValue("--malachite-selection-bar-primary-border").trim() || C.colors.selectionBar.primaryBorder,
|
|
12023
|
+
shadow: e.getPropertyValue("--malachite-selection-bar-shadow").trim() || C.colors.selectionBar.shadow
|
|
12023
12024
|
},
|
|
12024
12025
|
inlineConfirm: {
|
|
12025
|
-
background: e.getPropertyValue("--malachite-inline-confirm-background").trim() ||
|
|
12026
|
-
foreground: e.getPropertyValue("--malachite-inline-confirm-foreground").trim() ||
|
|
12027
|
-
divider: e.getPropertyValue("--malachite-inline-confirm-divider").trim() ||
|
|
12028
|
-
shadow: e.getPropertyValue("--malachite-inline-confirm-shadow").trim() ||
|
|
12026
|
+
background: e.getPropertyValue("--malachite-inline-confirm-background").trim() || C.colors.inlineConfirm.background,
|
|
12027
|
+
foreground: e.getPropertyValue("--malachite-inline-confirm-foreground").trim() || C.colors.inlineConfirm.foreground,
|
|
12028
|
+
divider: e.getPropertyValue("--malachite-inline-confirm-divider").trim() || C.colors.inlineConfirm.divider,
|
|
12029
|
+
shadow: e.getPropertyValue("--malachite-inline-confirm-shadow").trim() || C.colors.inlineConfirm.shadow
|
|
12029
12030
|
},
|
|
12030
12031
|
dropdown: {
|
|
12031
|
-
border: e.getPropertyValue("--malachite-dropdown-border").trim() ||
|
|
12032
|
-
borderActive: e.getPropertyValue("--malachite-dropdown-border-active").trim() ||
|
|
12033
|
-
borderFilter: e.getPropertyValue("--malachite-dropdown-border-filter").trim() ||
|
|
12034
|
-
borderError: e.getPropertyValue("--malachite-dropdown-border-error").trim() ||
|
|
12035
|
-
borderPending: e.getPropertyValue("--malachite-dropdown-border-pending").trim() ||
|
|
12036
|
-
shadow: e.getPropertyValue("--malachite-dropdown-shadow").trim() ||
|
|
12037
|
-
shadowHover: e.getPropertyValue("--malachite-dropdown-shadow-hover").trim() ||
|
|
12038
|
-
shadowActive: e.getPropertyValue("--malachite-dropdown-shadow-active").trim() ||
|
|
12039
|
-
shadowFilter: e.getPropertyValue("--malachite-dropdown-shadow-filter").trim() ||
|
|
12040
|
-
shadowError: e.getPropertyValue("--malachite-dropdown-shadow-error").trim() ||
|
|
12041
|
-
shadowPending: e.getPropertyValue("--malachite-dropdown-shadow-pending").trim() ||
|
|
12042
|
-
disabledBackground: e.getPropertyValue("--malachite-dropdown-disabled-background").trim() ||
|
|
12032
|
+
border: e.getPropertyValue("--malachite-dropdown-border").trim() || C.colors.dropdown.border,
|
|
12033
|
+
borderActive: e.getPropertyValue("--malachite-dropdown-border-active").trim() || C.colors.dropdown.borderActive,
|
|
12034
|
+
borderFilter: e.getPropertyValue("--malachite-dropdown-border-filter").trim() || C.colors.dropdown.borderFilter,
|
|
12035
|
+
borderError: e.getPropertyValue("--malachite-dropdown-border-error").trim() || C.colors.dropdown.borderError,
|
|
12036
|
+
borderPending: e.getPropertyValue("--malachite-dropdown-border-pending").trim() || C.colors.dropdown.borderPending,
|
|
12037
|
+
shadow: e.getPropertyValue("--malachite-dropdown-shadow").trim() || C.colors.dropdown.shadow,
|
|
12038
|
+
shadowHover: e.getPropertyValue("--malachite-dropdown-shadow-hover").trim() || C.colors.dropdown.shadowHover,
|
|
12039
|
+
shadowActive: e.getPropertyValue("--malachite-dropdown-shadow-active").trim() || C.colors.dropdown.shadowActive,
|
|
12040
|
+
shadowFilter: e.getPropertyValue("--malachite-dropdown-shadow-filter").trim() || C.colors.dropdown.shadowFilter,
|
|
12041
|
+
shadowError: e.getPropertyValue("--malachite-dropdown-shadow-error").trim() || C.colors.dropdown.shadowError,
|
|
12042
|
+
shadowPending: e.getPropertyValue("--malachite-dropdown-shadow-pending").trim() || C.colors.dropdown.shadowPending,
|
|
12043
|
+
disabledBackground: e.getPropertyValue("--malachite-dropdown-disabled-background").trim() || C.colors.dropdown.disabledBackground
|
|
12043
12044
|
},
|
|
12044
12045
|
tag: {
|
|
12045
12046
|
primary: {
|
|
12046
|
-
background: e.getPropertyValue("--malachite-tag-primary-background").trim() ||
|
|
12047
|
-
foreground: e.getPropertyValue("--malachite-tag-primary-foreground").trim() ||
|
|
12048
|
-
border: e.getPropertyValue("--malachite-tag-primary-border").trim() ||
|
|
12049
|
-
shadow: e.getPropertyValue("--malachite-tag-primary-shadow").trim() ||
|
|
12047
|
+
background: e.getPropertyValue("--malachite-tag-primary-background").trim() || C.colors.tag.primary.background,
|
|
12048
|
+
foreground: e.getPropertyValue("--malachite-tag-primary-foreground").trim() || C.colors.tag.primary.foreground,
|
|
12049
|
+
border: e.getPropertyValue("--malachite-tag-primary-border").trim() || C.colors.tag.primary.border,
|
|
12050
|
+
shadow: e.getPropertyValue("--malachite-tag-primary-shadow").trim() || C.colors.tag.primary.shadow
|
|
12050
12051
|
},
|
|
12051
12052
|
secondary: {
|
|
12052
|
-
background: e.getPropertyValue("--malachite-tag-secondary-background").trim() ||
|
|
12053
|
-
foreground: e.getPropertyValue("--malachite-tag-secondary-foreground").trim() ||
|
|
12054
|
-
border: e.getPropertyValue("--malachite-tag-secondary-border").trim() ||
|
|
12055
|
-
shadow: e.getPropertyValue("--malachite-tag-secondary-shadow").trim() ||
|
|
12053
|
+
background: e.getPropertyValue("--malachite-tag-secondary-background").trim() || C.colors.tag.secondary.background,
|
|
12054
|
+
foreground: e.getPropertyValue("--malachite-tag-secondary-foreground").trim() || C.colors.tag.secondary.foreground,
|
|
12055
|
+
border: e.getPropertyValue("--malachite-tag-secondary-border").trim() || C.colors.tag.secondary.border,
|
|
12056
|
+
shadow: e.getPropertyValue("--malachite-tag-secondary-shadow").trim() || C.colors.tag.secondary.shadow
|
|
12056
12057
|
},
|
|
12057
12058
|
default: {
|
|
12058
|
-
background: e.getPropertyValue("--malachite-tag-default-background").trim() ||
|
|
12059
|
-
foreground: e.getPropertyValue("--malachite-tag-default-foreground").trim() ||
|
|
12060
|
-
border: e.getPropertyValue("--malachite-tag-default-border").trim() ||
|
|
12061
|
-
shadow: e.getPropertyValue("--malachite-tag-default-shadow").trim() ||
|
|
12059
|
+
background: e.getPropertyValue("--malachite-tag-default-background").trim() || C.colors.tag.default.background,
|
|
12060
|
+
foreground: e.getPropertyValue("--malachite-tag-default-foreground").trim() || C.colors.tag.default.foreground,
|
|
12061
|
+
border: e.getPropertyValue("--malachite-tag-default-border").trim() || C.colors.tag.default.border,
|
|
12062
|
+
shadow: e.getPropertyValue("--malachite-tag-default-shadow").trim() || C.colors.tag.default.shadow
|
|
12062
12063
|
},
|
|
12063
12064
|
error: {
|
|
12064
|
-
background: e.getPropertyValue("--malachite-tag-error-background").trim() ||
|
|
12065
|
-
foreground: e.getPropertyValue("--malachite-tag-error-foreground").trim() ||
|
|
12066
|
-
border: e.getPropertyValue("--malachite-tag-error-border").trim() ||
|
|
12067
|
-
shadow: e.getPropertyValue("--malachite-tag-error-shadow").trim() ||
|
|
12065
|
+
background: e.getPropertyValue("--malachite-tag-error-background").trim() || C.colors.tag.error.background,
|
|
12066
|
+
foreground: e.getPropertyValue("--malachite-tag-error-foreground").trim() || C.colors.tag.error.foreground,
|
|
12067
|
+
border: e.getPropertyValue("--malachite-tag-error-border").trim() || C.colors.tag.error.border,
|
|
12068
|
+
shadow: e.getPropertyValue("--malachite-tag-error-shadow").trim() || C.colors.tag.error.shadow
|
|
12068
12069
|
},
|
|
12069
12070
|
warning: {
|
|
12070
|
-
background: e.getPropertyValue("--malachite-tag-warning-background").trim() ||
|
|
12071
|
-
foreground: e.getPropertyValue("--malachite-tag-warning-foreground").trim() ||
|
|
12072
|
-
border: e.getPropertyValue("--malachite-tag-warning-border").trim() ||
|
|
12073
|
-
shadow: e.getPropertyValue("--malachite-tag-warning-shadow").trim() ||
|
|
12071
|
+
background: e.getPropertyValue("--malachite-tag-warning-background").trim() || C.colors.tag.warning.background,
|
|
12072
|
+
foreground: e.getPropertyValue("--malachite-tag-warning-foreground").trim() || C.colors.tag.warning.foreground,
|
|
12073
|
+
border: e.getPropertyValue("--malachite-tag-warning-border").trim() || C.colors.tag.warning.border,
|
|
12074
|
+
shadow: e.getPropertyValue("--malachite-tag-warning-shadow").trim() || C.colors.tag.warning.shadow
|
|
12074
12075
|
},
|
|
12075
12076
|
success: {
|
|
12076
|
-
background: e.getPropertyValue("--malachite-tag-success-background").trim() ||
|
|
12077
|
-
foreground: e.getPropertyValue("--malachite-tag-success-foreground").trim() ||
|
|
12078
|
-
border: e.getPropertyValue("--malachite-tag-success-border").trim() ||
|
|
12079
|
-
shadow: e.getPropertyValue("--malachite-tag-success-shadow").trim() ||
|
|
12077
|
+
background: e.getPropertyValue("--malachite-tag-success-background").trim() || C.colors.tag.success.background,
|
|
12078
|
+
foreground: e.getPropertyValue("--malachite-tag-success-foreground").trim() || C.colors.tag.success.foreground,
|
|
12079
|
+
border: e.getPropertyValue("--malachite-tag-success-border").trim() || C.colors.tag.success.border,
|
|
12080
|
+
shadow: e.getPropertyValue("--malachite-tag-success-shadow").trim() || C.colors.tag.success.shadow
|
|
12080
12081
|
},
|
|
12081
12082
|
emphasis: {
|
|
12082
|
-
background: e.getPropertyValue("--malachite-tag-emphasis-background").trim() ||
|
|
12083
|
-
foreground: e.getPropertyValue("--malachite-tag-emphasis-foreground").trim() ||
|
|
12084
|
-
border: e.getPropertyValue("--malachite-tag-emphasis-border").trim() ||
|
|
12085
|
-
shadow: e.getPropertyValue("--malachite-tag-emphasis-shadow").trim() ||
|
|
12083
|
+
background: e.getPropertyValue("--malachite-tag-emphasis-background").trim() || C.colors.tag.emphasis.background,
|
|
12084
|
+
foreground: e.getPropertyValue("--malachite-tag-emphasis-foreground").trim() || C.colors.tag.emphasis.foreground,
|
|
12085
|
+
border: e.getPropertyValue("--malachite-tag-emphasis-border").trim() || C.colors.tag.emphasis.border,
|
|
12086
|
+
shadow: e.getPropertyValue("--malachite-tag-emphasis-shadow").trim() || C.colors.tag.emphasis.shadow
|
|
12086
12087
|
},
|
|
12087
12088
|
info: {
|
|
12088
|
-
background: e.getPropertyValue("--malachite-tag-info-background").trim() ||
|
|
12089
|
-
foreground: e.getPropertyValue("--malachite-tag-info-foreground").trim() ||
|
|
12090
|
-
border: e.getPropertyValue("--malachite-tag-info-border").trim() ||
|
|
12091
|
-
shadow: e.getPropertyValue("--malachite-tag-info-shadow").trim() ||
|
|
12089
|
+
background: e.getPropertyValue("--malachite-tag-info-background").trim() || C.colors.tag.info.background,
|
|
12090
|
+
foreground: e.getPropertyValue("--malachite-tag-info-foreground").trim() || C.colors.tag.info.foreground,
|
|
12091
|
+
border: e.getPropertyValue("--malachite-tag-info-border").trim() || C.colors.tag.info.border,
|
|
12092
|
+
shadow: e.getPropertyValue("--malachite-tag-info-shadow").trim() || C.colors.tag.info.shadow
|
|
12092
12093
|
}
|
|
12093
12094
|
},
|
|
12094
12095
|
numberTag: {
|
|
12095
|
-
background: e.getPropertyValue("--malachite-number-tag-background").trim() ||
|
|
12096
|
-
foreground: e.getPropertyValue("--malachite-number-tag-foreground").trim() ||
|
|
12097
|
-
emphasisBackground: e.getPropertyValue("--malachite-number-tag-emphasis-background").trim() ||
|
|
12098
|
-
emphasisForeground: e.getPropertyValue("--malachite-number-tag-emphasis-foreground").trim() ||
|
|
12096
|
+
background: e.getPropertyValue("--malachite-number-tag-background").trim() || C.colors.numberTag.background,
|
|
12097
|
+
foreground: e.getPropertyValue("--malachite-number-tag-foreground").trim() || C.colors.numberTag.foreground,
|
|
12098
|
+
emphasisBackground: e.getPropertyValue("--malachite-number-tag-emphasis-background").trim() || C.colors.numberTag.emphasisBackground,
|
|
12099
|
+
emphasisForeground: e.getPropertyValue("--malachite-number-tag-emphasis-foreground").trim() || C.colors.numberTag.emphasisForeground
|
|
12099
12100
|
},
|
|
12100
12101
|
text: {
|
|
12101
|
-
primary: e.getPropertyValue("--malachite-text-primary").trim() ||
|
|
12102
|
-
secondary: e.getPropertyValue("--malachite-text-secondary").trim() ||
|
|
12103
|
-
dimmed: e.getPropertyValue("--malachite-text-dimmed").trim() ||
|
|
12104
|
-
emphasis: e.getPropertyValue("--malachite-text-emphasis").trim() ||
|
|
12105
|
-
muted: e.getPropertyValue("--malachite-text-muted").trim() ||
|
|
12106
|
-
placeholder: e.getPropertyValue("--malachite-text-placeholder").trim() ||
|
|
12107
|
-
destructive: e.getPropertyValue("--malachite-text-destructive").trim() ||
|
|
12108
|
-
success: e.getPropertyValue("--malachite-text-success").trim() ||
|
|
12109
|
-
highlight: e.getPropertyValue("--malachite-text-highlight").trim() ||
|
|
12110
|
-
warning: e.getPropertyValue("--malachite-text-warning").trim() ||
|
|
12111
|
-
warningMuted: e.getPropertyValue("--malachite-text-warning-muted").trim() ||
|
|
12112
|
-
error: e.getPropertyValue("--malachite-text-error").trim() ||
|
|
12113
|
-
info: e.getPropertyValue("--malachite-text-info").trim() ||
|
|
12114
|
-
linkForeground: e.getPropertyValue("--malachite-text-link-foreground").trim() ||
|
|
12115
|
-
linkForegroundHover: e.getPropertyValue("--malachite-text-link-foreground-hover").trim() ||
|
|
12102
|
+
primary: e.getPropertyValue("--malachite-text-primary").trim() || C.colors.text.primary,
|
|
12103
|
+
secondary: e.getPropertyValue("--malachite-text-secondary").trim() || C.colors.text.secondary,
|
|
12104
|
+
dimmed: e.getPropertyValue("--malachite-text-dimmed").trim() || C.colors.text.dimmed,
|
|
12105
|
+
emphasis: e.getPropertyValue("--malachite-text-emphasis").trim() || C.colors.text.emphasis,
|
|
12106
|
+
muted: e.getPropertyValue("--malachite-text-muted").trim() || C.colors.text.muted,
|
|
12107
|
+
placeholder: e.getPropertyValue("--malachite-text-placeholder").trim() || C.colors.text.placeholder,
|
|
12108
|
+
destructive: e.getPropertyValue("--malachite-text-destructive").trim() || C.colors.text.destructive,
|
|
12109
|
+
success: e.getPropertyValue("--malachite-text-success").trim() || C.colors.text.success,
|
|
12110
|
+
highlight: e.getPropertyValue("--malachite-text-highlight").trim() || C.colors.text.highlight,
|
|
12111
|
+
warning: e.getPropertyValue("--malachite-text-warning").trim() || C.colors.text.warning,
|
|
12112
|
+
warningMuted: e.getPropertyValue("--malachite-text-warning-muted").trim() || C.colors.text.warningMuted,
|
|
12113
|
+
error: e.getPropertyValue("--malachite-text-error").trim() || C.colors.text.error,
|
|
12114
|
+
info: e.getPropertyValue("--malachite-text-info").trim() || C.colors.text.info,
|
|
12115
|
+
linkForeground: e.getPropertyValue("--malachite-text-link-foreground").trim() || C.colors.text.linkForeground,
|
|
12116
|
+
linkForegroundHover: e.getPropertyValue("--malachite-text-link-foreground-hover").trim() || C.colors.text.linkForegroundHover,
|
|
12116
12117
|
rightSideText: {
|
|
12117
|
-
muted: e.getPropertyValue("--malachite-text-right-side-text-muted").trim() ||
|
|
12118
|
-
primary: e.getPropertyValue("--malachite-text-right-side-text-primary").trim() ||
|
|
12119
|
-
alignment: e.getPropertyValue("--malachite-text-right-side-text-alignment").trim() ||
|
|
12120
|
-
fontSize: e.getPropertyValue("--malachite-text-right-side-text-font-size").trim() ||
|
|
12121
|
-
minWidth: e.getPropertyValue("--malachite-text-right-side-text-min-width").trim() ||
|
|
12118
|
+
muted: e.getPropertyValue("--malachite-text-right-side-text-muted").trim() || C.colors.text.rightSideText.muted,
|
|
12119
|
+
primary: e.getPropertyValue("--malachite-text-right-side-text-primary").trim() || C.colors.text.rightSideText.primary,
|
|
12120
|
+
alignment: e.getPropertyValue("--malachite-text-right-side-text-alignment").trim() || C.colors.text.rightSideText.alignment,
|
|
12121
|
+
fontSize: e.getPropertyValue("--malachite-text-right-side-text-font-size").trim() || C.colors.text.rightSideText.fontSize,
|
|
12122
|
+
minWidth: e.getPropertyValue("--malachite-text-right-side-text-min-width").trim() || C.colors.text.rightSideText.minWidth
|
|
12122
12123
|
}
|
|
12123
12124
|
},
|
|
12124
12125
|
codeBlock: {
|
|
12125
|
-
background: e.getPropertyValue("--malachite-codeblock-background").trim() ||
|
|
12126
|
-
foreground: e.getPropertyValue("--malachite-codeblock-foreground").trim() ||
|
|
12127
|
-
border: e.getPropertyValue("--malachite-codeblock-border").trim() ||
|
|
12128
|
-
lineNumber: e.getPropertyValue("--malachite-codeblock-line-number").trim() ||
|
|
12129
|
-
keyword: e.getPropertyValue("--malachite-codeblock-keyword").trim() ||
|
|
12130
|
-
comment: e.getPropertyValue("--malachite-codeblock-comment").trim() ||
|
|
12131
|
-
string: e.getPropertyValue("--malachite-codeblock-string").trim() ||
|
|
12132
|
-
number: e.getPropertyValue("--malachite-codeblock-number").trim() ||
|
|
12133
|
-
type: e.getPropertyValue("--malachite-codeblock-type").trim() ||
|
|
12126
|
+
background: e.getPropertyValue("--malachite-codeblock-background").trim() || C.colors.codeBlock.background,
|
|
12127
|
+
foreground: e.getPropertyValue("--malachite-codeblock-foreground").trim() || C.colors.codeBlock.foreground,
|
|
12128
|
+
border: e.getPropertyValue("--malachite-codeblock-border").trim() || C.colors.codeBlock.border,
|
|
12129
|
+
lineNumber: e.getPropertyValue("--malachite-codeblock-line-number").trim() || C.colors.codeBlock.lineNumber,
|
|
12130
|
+
keyword: e.getPropertyValue("--malachite-codeblock-keyword").trim() || C.colors.codeBlock.keyword,
|
|
12131
|
+
comment: e.getPropertyValue("--malachite-codeblock-comment").trim() || C.colors.codeBlock.comment,
|
|
12132
|
+
string: e.getPropertyValue("--malachite-codeblock-string").trim() || C.colors.codeBlock.string,
|
|
12133
|
+
number: e.getPropertyValue("--malachite-codeblock-number").trim() || C.colors.codeBlock.number,
|
|
12134
|
+
type: e.getPropertyValue("--malachite-codeblock-type").trim() || C.colors.codeBlock.type
|
|
12134
12135
|
},
|
|
12135
12136
|
table: {
|
|
12136
|
-
background: e.getPropertyValue("--malachite-table-background").trim() ||
|
|
12137
|
-
boxShadow: e.getPropertyValue("--malachite-table-box-shadow").trim() ||
|
|
12137
|
+
background: e.getPropertyValue("--malachite-table-background").trim() || C.colors.table.background,
|
|
12138
|
+
boxShadow: e.getPropertyValue("--malachite-table-box-shadow").trim() || C.colors.table.boxShadow,
|
|
12138
12139
|
header: {
|
|
12139
|
-
background: e.getPropertyValue("--malachite-table-header-background").trim() ||
|
|
12140
|
-
foreground: e.getPropertyValue("--malachite-table-header-foreground").trim() ||
|
|
12141
|
-
border: e.getPropertyValue("--malachite-table-header-border").trim() ||
|
|
12140
|
+
background: e.getPropertyValue("--malachite-table-header-background").trim() || C.colors.table.header.background,
|
|
12141
|
+
foreground: e.getPropertyValue("--malachite-table-header-foreground").trim() || C.colors.table.header.foreground,
|
|
12142
|
+
border: e.getPropertyValue("--malachite-table-header-border").trim() || C.colors.table.header.border
|
|
12142
12143
|
},
|
|
12143
12144
|
row: {
|
|
12144
|
-
background: e.getPropertyValue("--malachite-table-row-background").trim() ||
|
|
12145
|
-
foreground: e.getPropertyValue("--malachite-table-row-foreground").trim() ||
|
|
12146
|
-
hoverBackground: e.getPropertyValue("--malachite-table-row-hover-background").trim() ||
|
|
12147
|
-
border: e.getPropertyValue("--malachite-table-row-border").trim() ||
|
|
12148
|
-
selectedBackground: e.getPropertyValue("--malachite-table-row-selected-background").trim() ||
|
|
12149
|
-
selectedAccent: e.getPropertyValue("--malachite-table-row-selected-accent").trim() ||
|
|
12150
|
-
selectedForeground: e.getPropertyValue("--malachite-table-row-selected-foreground").trim() ||
|
|
12145
|
+
background: e.getPropertyValue("--malachite-table-row-background").trim() || C.colors.table.row.background,
|
|
12146
|
+
foreground: e.getPropertyValue("--malachite-table-row-foreground").trim() || C.colors.table.row.foreground,
|
|
12147
|
+
hoverBackground: e.getPropertyValue("--malachite-table-row-hover-background").trim() || C.colors.table.row.hoverBackground,
|
|
12148
|
+
border: e.getPropertyValue("--malachite-table-row-border").trim() || C.colors.table.row.border,
|
|
12149
|
+
selectedBackground: e.getPropertyValue("--malachite-table-row-selected-background").trim() || C.colors.table.row.selectedBackground,
|
|
12150
|
+
selectedAccent: e.getPropertyValue("--malachite-table-row-selected-accent").trim() || C.colors.table.row.selectedAccent,
|
|
12151
|
+
selectedForeground: e.getPropertyValue("--malachite-table-row-selected-foreground").trim() || C.colors.table.row.selectedForeground
|
|
12151
12152
|
},
|
|
12152
|
-
border: e.getPropertyValue("--malachite-table-border").trim() ||
|
|
12153
|
+
border: e.getPropertyValue("--malachite-table-border").trim() || C.colors.table.border,
|
|
12153
12154
|
borderedRow: {
|
|
12154
|
-
background: e.getPropertyValue("--malachite-table-borderedRow-background").trim() ||
|
|
12155
|
-
outline: e.getPropertyValue("--malachite-table-borderedRow-outline").trim() ||
|
|
12155
|
+
background: e.getPropertyValue("--malachite-table-borderedRow-background").trim() || C.colors.table.borderedRow.background,
|
|
12156
|
+
outline: e.getPropertyValue("--malachite-table-borderedRow-outline").trim() || C.colors.table.borderedRow.outline
|
|
12156
12157
|
},
|
|
12157
12158
|
rowVariant: {
|
|
12158
12159
|
success: {
|
|
12159
12160
|
background: e.getPropertyValue(
|
|
12160
12161
|
"--malachite-table-row-variant-success-background"
|
|
12161
|
-
).trim() ||
|
|
12162
|
+
).trim() || C.colors.table.rowVariant.success.background
|
|
12162
12163
|
},
|
|
12163
12164
|
warning: {
|
|
12164
12165
|
background: e.getPropertyValue(
|
|
12165
12166
|
"--malachite-table-row-variant-warning-background"
|
|
12166
|
-
).trim() ||
|
|
12167
|
+
).trim() || C.colors.table.rowVariant.warning.background
|
|
12167
12168
|
},
|
|
12168
12169
|
error: {
|
|
12169
|
-
background: e.getPropertyValue("--malachite-table-row-variant-error-background").trim() ||
|
|
12170
|
+
background: e.getPropertyValue("--malachite-table-row-variant-error-background").trim() || C.colors.table.rowVariant.error.background
|
|
12170
12171
|
},
|
|
12171
12172
|
info: {
|
|
12172
|
-
background: e.getPropertyValue("--malachite-table-row-variant-info-background").trim() ||
|
|
12173
|
+
background: e.getPropertyValue("--malachite-table-row-variant-info-background").trim() || C.colors.table.rowVariant.info.background
|
|
12173
12174
|
}
|
|
12174
12175
|
},
|
|
12175
12176
|
error: {
|
|
12176
|
-
iconBackground: e.getPropertyValue("--malachite-table-error-icon-background").trim() ||
|
|
12177
|
-
iconForeground: e.getPropertyValue("--malachite-table-error-icon-foreground").trim() ||
|
|
12178
|
-
titleForeground: e.getPropertyValue("--malachite-table-error-title-foreground").trim() ||
|
|
12179
|
-
subtitleForeground: e.getPropertyValue("--malachite-table-error-subtitle-foreground").trim() ||
|
|
12177
|
+
iconBackground: e.getPropertyValue("--malachite-table-error-icon-background").trim() || C.colors.table.error.iconBackground,
|
|
12178
|
+
iconForeground: e.getPropertyValue("--malachite-table-error-icon-foreground").trim() || C.colors.table.error.iconForeground,
|
|
12179
|
+
titleForeground: e.getPropertyValue("--malachite-table-error-title-foreground").trim() || C.colors.table.error.titleForeground,
|
|
12180
|
+
subtitleForeground: e.getPropertyValue("--malachite-table-error-subtitle-foreground").trim() || C.colors.table.error.subtitleForeground
|
|
12180
12181
|
}
|
|
12181
12182
|
}
|
|
12182
12183
|
}
|
|
@@ -12336,9 +12337,9 @@ const ad = () => {
|
|
|
12336
12337
|
if (!e)
|
|
12337
12338
|
return;
|
|
12338
12339
|
i.current = l;
|
|
12339
|
-
const b = $t(() => c.current()),
|
|
12340
|
+
const b = $t(() => c.current()), f = ed(), x = nd(l, () => (a == null ? void 0 : a.current) ?? null);
|
|
12340
12341
|
return (y = o.current) == null || y.focus(), () => {
|
|
12341
|
-
i.current = null, x(), b(),
|
|
12342
|
+
i.current = null, x(), b(), f();
|
|
12342
12343
|
};
|
|
12343
12344
|
}, [e, a, l]), Ye(() => {
|
|
12344
12345
|
if (!(!e || !r))
|
|
@@ -12394,13 +12395,13 @@ const ad = () => {
|
|
|
12394
12395
|
closeOnOverlayClick: g = !0,
|
|
12395
12396
|
bodyPadding: m = !0,
|
|
12396
12397
|
role: b = "dialog",
|
|
12397
|
-
"aria-label":
|
|
12398
|
+
"aria-label": f,
|
|
12398
12399
|
"aria-labelledby": x,
|
|
12399
12400
|
"aria-describedby": y,
|
|
12400
12401
|
busy: w = !1,
|
|
12401
12402
|
children: A
|
|
12402
12403
|
}) => {
|
|
12403
|
-
const k = l1(), [I, B] = Y(!1), [E, V] = Y(!1), [
|
|
12404
|
+
const k = l1(), [I, B] = Y(!1), [E, V] = Y(!1), [M, N] = Y(!1), T = R(null), z = R(null), ee = R(null), ie = R(w), pe = R(t);
|
|
12404
12405
|
ue(() => {
|
|
12405
12406
|
ie.current = w, pe.current = t;
|
|
12406
12407
|
}, [w, t]);
|
|
@@ -12417,7 +12418,7 @@ const ad = () => {
|
|
|
12417
12418
|
hostRef: P
|
|
12418
12419
|
}), me = he(
|
|
12419
12420
|
(Ze) => {
|
|
12420
|
-
|
|
12421
|
+
T.current = Ze, $(Ze);
|
|
12421
12422
|
},
|
|
12422
12423
|
[$]
|
|
12423
12424
|
);
|
|
@@ -12429,7 +12430,7 @@ const ad = () => {
|
|
|
12429
12430
|
});
|
|
12430
12431
|
else {
|
|
12431
12432
|
const ze = qt();
|
|
12432
|
-
ze && ((Ze =
|
|
12433
|
+
ze && ((Ze = T.current) != null && Ze.contains(ze)) && ze.blur(), N(!0), B(!1), ee.current = setTimeout(() => {
|
|
12433
12434
|
ee.current = null, V(!1);
|
|
12434
12435
|
}, da);
|
|
12435
12436
|
}
|
|
@@ -12463,12 +12464,12 @@ const ad = () => {
|
|
|
12463
12464
|
{
|
|
12464
12465
|
ref: me,
|
|
12465
12466
|
role: b,
|
|
12466
|
-
"aria-hidden":
|
|
12467
|
+
"aria-hidden": M ? "true" : void 0,
|
|
12467
12468
|
"aria-modal": J ? "true" : void 0,
|
|
12468
12469
|
"aria-describedby": [y, i != null && i.caption ? k : null].filter(Boolean).join(" ") || void 0,
|
|
12469
12470
|
"aria-busy": w || void 0,
|
|
12470
12471
|
tabIndex: -1,
|
|
12471
|
-
"aria-label": x ? void 0 :
|
|
12472
|
+
"aria-label": x ? void 0 : f ?? (typeof r == "string" ? r : void 0),
|
|
12472
12473
|
"aria-labelledby": x,
|
|
12473
12474
|
className: i ? "relative flex max-h-full w-full flex-col gap-[4px] rounded-[20px] p-[4px] text-[var(--malachite-card-foreground)] outline-none [box-shadow:var(--malachite-shadow-glow,var(--malachite-shadow-lg))]" : "relative flex max-h-full w-full flex-col overflow-hidden rounded-[20px] border border-solid border-[var(--malachite-card-border)] bg-[var(--malachite-card-background)] text-[var(--malachite-card-foreground)] outline-none [box-shadow:var(--malachite-shadow-glow,var(--malachite-shadow-lg))]",
|
|
12474
12475
|
style: {
|
|
@@ -12641,7 +12642,7 @@ const ad = () => {
|
|
|
12641
12642
|
type: g = "text",
|
|
12642
12643
|
size: m = "large",
|
|
12643
12644
|
variant: b = "default",
|
|
12644
|
-
defaultValue:
|
|
12645
|
+
defaultValue: f,
|
|
12645
12646
|
disabled: x,
|
|
12646
12647
|
prefixValue: y,
|
|
12647
12648
|
prefixSecondaryValue: w,
|
|
@@ -12651,9 +12652,9 @@ const ad = () => {
|
|
|
12651
12652
|
onCopyClick: B,
|
|
12652
12653
|
showCopyButton: E,
|
|
12653
12654
|
onChange: V,
|
|
12654
|
-
value:
|
|
12655
|
+
value: M,
|
|
12655
12656
|
onBlur: N,
|
|
12656
|
-
helperText:
|
|
12657
|
+
helperText: T,
|
|
12657
12658
|
showPasswordToggle: z = !0,
|
|
12658
12659
|
id: ee,
|
|
12659
12660
|
"aria-label": ie,
|
|
@@ -12666,7 +12667,7 @@ const ad = () => {
|
|
|
12666
12667
|
description: d,
|
|
12667
12668
|
hint: t,
|
|
12668
12669
|
helperText: !0
|
|
12669
|
-
}), [me, Ze] = Y(!1), [ze, D] = Y(
|
|
12670
|
+
}), [me, Ze] = Y(!1), [ze, D] = Y(f || ""), [G, Q] = Y(!1);
|
|
12670
12671
|
ue(() => {
|
|
12671
12672
|
if (G) {
|
|
12672
12673
|
const te = setTimeout(() => {
|
|
@@ -12681,9 +12682,9 @@ const ad = () => {
|
|
|
12681
12682
|
}, O = R(void 0), j = (te) => J0({
|
|
12682
12683
|
component: "Input",
|
|
12683
12684
|
name: l,
|
|
12684
|
-
value:
|
|
12685
|
+
value: M,
|
|
12685
12686
|
formValue: te,
|
|
12686
|
-
defaultValue:
|
|
12687
|
+
defaultValue: f,
|
|
12687
12688
|
bound: !!k,
|
|
12688
12689
|
uncontrolledValue: ze
|
|
12689
12690
|
}), ge = B ? () => {
|
|
@@ -12719,13 +12720,13 @@ const ad = () => {
|
|
|
12719
12720
|
labelId: $,
|
|
12720
12721
|
descriptionId: J,
|
|
12721
12722
|
hintId: Se,
|
|
12722
|
-
loadingComponent: /* @__PURE__ */ n(y5, { heightClass: be, helperText: !!
|
|
12723
|
+
loadingComponent: /* @__PURE__ */ n(y5, { heightClass: be, helperText: !!T }),
|
|
12723
12724
|
children: ({ error: te, message: We, onFieldChange: Te, onFieldBlur: qe, value: e1 }) => {
|
|
12724
12725
|
O.current = e1;
|
|
12725
12726
|
const ye = j(e1), Ie = E ?? !!(ge && x && ye), g1 = c ?? te, t1 = c === !1 ? void 0 : We, x1 = g1 && !t1, oe = x1 || Ie || (I == null ? void 0 : I.length) || g === "password" && z, Ae = `${de}-error`, Ge = [
|
|
12726
12727
|
J,
|
|
12727
12728
|
Se,
|
|
12728
|
-
|
|
12729
|
+
T ? de : void 0,
|
|
12729
12730
|
t1 ? Ae : void 0,
|
|
12730
12731
|
ae
|
|
12731
12732
|
].filter(Boolean).join(" ") || void 0;
|
|
@@ -12786,12 +12787,12 @@ const ad = () => {
|
|
|
12786
12787
|
}
|
|
12787
12788
|
)
|
|
12788
12789
|
] }),
|
|
12789
|
-
|
|
12790
|
+
T && /* @__PURE__ */ n(
|
|
12790
12791
|
"div",
|
|
12791
12792
|
{
|
|
12792
12793
|
id: de,
|
|
12793
12794
|
className: "text-[length:var(--malachite-font-size-small,13px)] text-left pl-2 text-[var(--malachite-text-dimmed,rgb(161,161,161))]",
|
|
12794
|
-
children:
|
|
12795
|
+
children: T
|
|
12795
12796
|
}
|
|
12796
12797
|
),
|
|
12797
12798
|
/* @__PURE__ */ n(Yr, { id: Ae, message: t1 })
|
|
@@ -12948,7 +12949,7 @@ const ad = () => {
|
|
|
12948
12949
|
onCopy: h,
|
|
12949
12950
|
nearMissMessage: p
|
|
12950
12951
|
}) => {
|
|
12951
|
-
const g = l1(), m = l1(), b = l1(),
|
|
12952
|
+
const g = l1(), m = l1(), b = l1(), f = [p, c === "failed" ? bd : void 0].filter(Boolean).join(" ") || void 0, x = t ? [g, t.suffix ? m : void 0].filter(Boolean).join(" ") : void 0;
|
|
12952
12953
|
return /* @__PURE__ */ v("div", { className: "flex flex-col gap-[6px]", children: [
|
|
12953
12954
|
t ? /* @__PURE__ */ v("div", { className: "flex flex-wrap items-center gap-[6px] px-2", children: [
|
|
12954
12955
|
/* @__PURE__ */ v("span", { id: g, children: [
|
|
@@ -12982,11 +12983,11 @@ const ad = () => {
|
|
|
12982
12983
|
placeholder: a,
|
|
12983
12984
|
requiredIndicator: "none",
|
|
12984
12985
|
error: !!p,
|
|
12985
|
-
"aria-describedby":
|
|
12986
|
+
"aria-describedby": f ? b : void 0,
|
|
12986
12987
|
disabled: s
|
|
12987
12988
|
}
|
|
12988
12989
|
),
|
|
12989
|
-
/* @__PURE__ */ n(Yr, { id: b, message:
|
|
12990
|
+
/* @__PURE__ */ n(Yr, { id: b, message: f }),
|
|
12990
12991
|
t ? /* @__PURE__ */ n("span", { role: "status", className: "sr-only", children: xd(c, e) }) : null
|
|
12991
12992
|
] });
|
|
12992
12993
|
}, Ad = {
|
|
@@ -13010,7 +13011,7 @@ const ad = () => {
|
|
|
13010
13011
|
onPhraseCopied: g,
|
|
13011
13012
|
confirmPhrasePlaceholder: m,
|
|
13012
13013
|
confirmLabel: b = "Confirm",
|
|
13013
|
-
cancelLabel:
|
|
13014
|
+
cancelLabel: f = "Cancel",
|
|
13014
13015
|
loading: x = !1,
|
|
13015
13016
|
tip: y,
|
|
13016
13017
|
size: w = "medium",
|
|
@@ -13018,8 +13019,8 @@ const ad = () => {
|
|
|
13018
13019
|
"aria-labelledby": k,
|
|
13019
13020
|
children: I
|
|
13020
13021
|
}) => {
|
|
13021
|
-
const [B, E] = Y(""), V = l1(),
|
|
13022
|
-
(N.open !== e || N.confirmPhrase !== d) && (
|
|
13022
|
+
const [B, E] = Y(""), V = l1(), M = md[i], [N, T] = Y({ open: e, confirmPhrase: d });
|
|
13023
|
+
(N.open !== e || N.confirmPhrase !== d) && (T({ open: e, confirmPhrase: d }), e && E(""));
|
|
13023
13024
|
const { parts: z, text: ee } = vd(
|
|
13024
13025
|
h,
|
|
13025
13026
|
d
|
|
@@ -13028,11 +13029,11 @@ const ad = () => {
|
|
|
13028
13029
|
canCopy: pe,
|
|
13029
13030
|
copy: ae
|
|
13030
13031
|
} = wd(d, e, x, g), P = !d || B.trim() === d, $ = fd(B, d), J = x || !P, Se = /* @__PURE__ */ v("div", { className: "flex w-full flex-wrap items-center justify-end gap-[8px]", children: [
|
|
13031
|
-
/* @__PURE__ */ n(s1, { variant: "outline", size: "small", onClick: t, disabled: x, children:
|
|
13032
|
+
/* @__PURE__ */ n(s1, { variant: "outline", size: "small", onClick: t, disabled: x, children: f }),
|
|
13032
13033
|
/* @__PURE__ */ n(
|
|
13033
13034
|
s1,
|
|
13034
13035
|
{
|
|
13035
|
-
variant:
|
|
13036
|
+
variant: M.confirmVariant,
|
|
13036
13037
|
size: "small",
|
|
13037
13038
|
onClick: r,
|
|
13038
13039
|
disabled: J,
|
|
@@ -13059,13 +13060,13 @@ const ad = () => {
|
|
|
13059
13060
|
headerDivider: !0,
|
|
13060
13061
|
titleAdornment: o,
|
|
13061
13062
|
bodyPadding: !1,
|
|
13062
|
-
tray: { tone:
|
|
13063
|
+
tray: { tone: M.tray, caption: y },
|
|
13063
13064
|
icon: /* @__PURE__ */ n(
|
|
13064
13065
|
"span",
|
|
13065
13066
|
{
|
|
13066
13067
|
"aria-hidden": "true",
|
|
13067
13068
|
className: "confirmation-badge flex size-[18px] shrink-0 items-center justify-center rounded-[7px] text-[var(--malachite-card-background)]",
|
|
13068
|
-
style: { backgroundColor:
|
|
13069
|
+
style: { backgroundColor: M.badge },
|
|
13069
13070
|
children: l ?? Ad[i]
|
|
13070
13071
|
}
|
|
13071
13072
|
),
|
|
@@ -13073,7 +13074,7 @@ const ad = () => {
|
|
|
13073
13074
|
c ? /* @__PURE__ */ n("div", { className: "border-0 border-b border-solid border-[var(--malachite-card-subtle-divider,var(--malachite-card-border))] p-[10px]", children: /* @__PURE__ */ n(
|
|
13074
13075
|
Q2,
|
|
13075
13076
|
{
|
|
13076
|
-
type: c.type ??
|
|
13077
|
+
type: c.type ?? M.calloutType,
|
|
13077
13078
|
message: c.message,
|
|
13078
13079
|
hasMargin: !1
|
|
13079
13080
|
}
|
|
@@ -13125,18 +13126,18 @@ const ad = () => {
|
|
|
13125
13126
|
"aria-label": g,
|
|
13126
13127
|
"aria-labelledby": m,
|
|
13127
13128
|
bodyPadding: b = !0,
|
|
13128
|
-
stacking:
|
|
13129
|
+
stacking: f = "default",
|
|
13129
13130
|
children: x
|
|
13130
13131
|
}) => {
|
|
13131
13132
|
const [y, w] = Y(!1), [A, k] = Y(!1), I = R(null), B = R(null), E = R(null), {
|
|
13132
13133
|
ref: V,
|
|
13133
|
-
isTopmost:
|
|
13134
|
+
isTopmost: M,
|
|
13134
13135
|
zIndex: N,
|
|
13135
|
-
elevated:
|
|
13136
|
+
elevated: T
|
|
13136
13137
|
} = q0({
|
|
13137
13138
|
open: e,
|
|
13138
13139
|
onClose: t,
|
|
13139
|
-
elevated:
|
|
13140
|
+
elevated: f === "above-app-overlays",
|
|
13140
13141
|
hostRef: E
|
|
13141
13142
|
});
|
|
13142
13143
|
return ue(() => (e ? (k(!0), B.current && (clearTimeout(B.current), B.current = null), I.current = requestAnimationFrame(() => {
|
|
@@ -13153,7 +13154,7 @@ const ad = () => {
|
|
|
13153
13154
|
{
|
|
13154
13155
|
hostRef: E,
|
|
13155
13156
|
hostStyle: { position: "relative", zIndex: N },
|
|
13156
|
-
hostProps:
|
|
13157
|
+
hostProps: T ? { ...G1("sidepanel"), [wr]: "" } : G1("sidepanel"),
|
|
13157
13158
|
children: /* @__PURE__ */ v("div", { className: "fixed inset-0 z-[1000]", children: [
|
|
13158
13159
|
/* @__PURE__ */ n(
|
|
13159
13160
|
"div",
|
|
@@ -13168,7 +13169,7 @@ const ad = () => {
|
|
|
13168
13169
|
{
|
|
13169
13170
|
ref: V,
|
|
13170
13171
|
role: "dialog",
|
|
13171
|
-
"aria-modal":
|
|
13172
|
+
"aria-modal": M ? "true" : void 0,
|
|
13172
13173
|
tabIndex: -1,
|
|
13173
13174
|
"aria-label": m ? void 0 : g ?? (typeof r == "string" ? r : void 0),
|
|
13174
13175
|
"aria-labelledby": m,
|
|
@@ -13517,7 +13518,7 @@ const _o = (e) => {
|
|
|
13517
13518
|
size: g = "medium",
|
|
13518
13519
|
defaultValue: m,
|
|
13519
13520
|
disabled: b,
|
|
13520
|
-
prefixValue:
|
|
13521
|
+
prefixValue: f,
|
|
13521
13522
|
prefixSecondaryValue: x,
|
|
13522
13523
|
// ellipsis = false,
|
|
13523
13524
|
formControl: y,
|
|
@@ -13528,9 +13529,9 @@ const _o = (e) => {
|
|
|
13528
13529
|
onBlur: B,
|
|
13529
13530
|
helperText: E,
|
|
13530
13531
|
rows: V = 4,
|
|
13531
|
-
maxLength:
|
|
13532
|
+
maxLength: M,
|
|
13532
13533
|
resize: N = "vertical",
|
|
13533
|
-
wrap:
|
|
13534
|
+
wrap: T = !0,
|
|
13534
13535
|
id: z,
|
|
13535
13536
|
"aria-label": ee,
|
|
13536
13537
|
"aria-labelledby": ie
|
|
@@ -13552,7 +13553,7 @@ const _o = (e) => {
|
|
|
13552
13553
|
}), ze = (j) => (ge) => {
|
|
13553
13554
|
const K = ge.target.value;
|
|
13554
13555
|
me || de(K), k == null || k(K), j == null || j(K);
|
|
13555
|
-
}, D = o ||
|
|
13556
|
+
}, D = o || f || x, G = `${J}-error`, Q = (j, ge, K, le, be, De) => {
|
|
13556
13557
|
const te = Ze(De), We = j && !be, Te = We || A && b && te || (w == null ? void 0 : w.length), qe = [
|
|
13557
13558
|
P,
|
|
13558
13559
|
$,
|
|
@@ -13584,7 +13585,7 @@ const _o = (e) => {
|
|
|
13584
13585
|
"px-[16px]",
|
|
13585
13586
|
"py-[12px]",
|
|
13586
13587
|
N === "none" ? "resize-none" : N === "vertical" ? "resize-y" : N === "horizontal" ? "resize-x" : "resize",
|
|
13587
|
-
|
|
13588
|
+
T ? "" : "whitespace-pre overflow-x-auto min-w-0"
|
|
13588
13589
|
].filter(Boolean).join(" "), Ie = /* @__PURE__ */ n(
|
|
13589
13590
|
"textarea",
|
|
13590
13591
|
{
|
|
@@ -13600,11 +13601,11 @@ const _o = (e) => {
|
|
|
13600
13601
|
"aria-invalid": j || void 0,
|
|
13601
13602
|
"aria-required": s || void 0,
|
|
13602
13603
|
"aria-describedby": qe,
|
|
13603
|
-
disabled: b || !!
|
|
13604
|
+
disabled: b || !!f || !!x || p,
|
|
13604
13605
|
readOnly: p,
|
|
13605
|
-
wrap:
|
|
13606
|
+
wrap: T ? void 0 : "off",
|
|
13606
13607
|
rows: V,
|
|
13607
|
-
maxLength:
|
|
13608
|
+
maxLength: M,
|
|
13608
13609
|
style: { minHeight: $0(g, V) },
|
|
13609
13610
|
className: ye,
|
|
13610
13611
|
name: l
|
|
@@ -13614,7 +13615,7 @@ const _o = (e) => {
|
|
|
13614
13615
|
D && /* @__PURE__ */ n("div", { className: "flex pt-3 pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ n(
|
|
13615
13616
|
Fd,
|
|
13616
13617
|
{
|
|
13617
|
-
prefixValue:
|
|
13618
|
+
prefixValue: f,
|
|
13618
13619
|
prefixSecondaryValue: x,
|
|
13619
13620
|
icon: o
|
|
13620
13621
|
}
|
|
@@ -13793,7 +13794,7 @@ function ot(e, t, r) {
|
|
|
13793
13794
|
a = h;
|
|
13794
13795
|
let g = 0;
|
|
13795
13796
|
if (c && (g = Date.now()), o = t(...h), c) {
|
|
13796
|
-
const m = Math.round((Date.now() - d) * 100) / 100, b = Math.round((Date.now() - g) * 100) / 100,
|
|
13797
|
+
const m = Math.round((Date.now() - d) * 100) / 100, b = Math.round((Date.now() - g) * 100) / 100, f = b / 16, x = (y, w) => {
|
|
13797
13798
|
for (y = String(y); y.length < w; )
|
|
13798
13799
|
y = " " + y;
|
|
13799
13800
|
return y;
|
|
@@ -13805,7 +13806,7 @@ function ot(e, t, r) {
|
|
|
13805
13806
|
font-weight: bold;
|
|
13806
13807
|
color: hsl(${Math.max(
|
|
13807
13808
|
0,
|
|
13808
|
-
Math.min(120 - 120 *
|
|
13809
|
+
Math.min(120 - 120 * f, 120)
|
|
13809
13810
|
)}deg 100% 31%);`,
|
|
13810
13811
|
r == null ? void 0 : r.key
|
|
13811
13812
|
);
|
|
@@ -14007,8 +14008,8 @@ class Ud {
|
|
|
14007
14008
|
const s = this.options;
|
|
14008
14009
|
let i = null, c = null, d = !1;
|
|
14009
14010
|
if (s !== void 0 && s.enabled && l.enabled && l.anchorTo === "end" && this.scrollElement !== null) {
|
|
14010
|
-
const g = s.count, m = l.count, b = this.getMeasurements(),
|
|
14011
|
-
if (m !== g || g > 0 && m > 0 && (l.getItemKey(0) !==
|
|
14011
|
+
const g = s.count, m = l.count, b = this.getMeasurements(), f = g > 0 ? ((a = b[0]) == null ? void 0 : a.key) ?? s.getItemKey(0) : null, x = g > 0 ? ((o = b[g - 1]) == null ? void 0 : o.key) ?? s.getItemKey(g - 1) : null;
|
|
14012
|
+
if (m !== g || g > 0 && m > 0 && (l.getItemKey(0) !== f || l.getItemKey(m - 1) !== x)) {
|
|
14012
14013
|
d = !0;
|
|
14013
14014
|
const A = g > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? b[0] : null;
|
|
14014
14015
|
A && (i = [A.key, this.getScrollOffset() - A.start]);
|
|
@@ -14019,11 +14020,11 @@ class Ud {
|
|
|
14019
14020
|
this.options = l, d && (this.pendingMin = 0, this.itemSizeCacheVersion++);
|
|
14020
14021
|
let h = !1, p = 0;
|
|
14021
14022
|
if (i && this.scrollOffset !== null) {
|
|
14022
|
-
const [g, m] = i, b = this.getMeasurements(), { count:
|
|
14023
|
+
const [g, m] = i, b = this.getMeasurements(), { count: f, getItemKey: x } = this.options;
|
|
14023
14024
|
let y = 0;
|
|
14024
|
-
for (; y <
|
|
14025
|
+
for (; y < f && x(y) !== g; )
|
|
14025
14026
|
y++;
|
|
14026
|
-
if (y <
|
|
14027
|
+
if (y < f) {
|
|
14027
14028
|
const w = b[y];
|
|
14028
14029
|
if (w) {
|
|
14029
14030
|
const A = w.start + m;
|
|
@@ -14183,10 +14184,10 @@ class Ud {
|
|
|
14183
14184
|
}));
|
|
14184
14185
|
const p = this.lanesSettling ? 0 : this.pendingMin ?? 0;
|
|
14185
14186
|
if (this.pendingMin = null, this.lanesSettling && this.measurementsCache.length === r && (this.lanesSettling = !1), i === 1) {
|
|
14186
|
-
const b = this.options.gap,
|
|
14187
|
+
const b = this.options.gap, f = r * 2;
|
|
14187
14188
|
let x = this._flatMeasurements;
|
|
14188
|
-
if (!x || x.length <
|
|
14189
|
-
const A = new Float64Array(
|
|
14189
|
+
if (!x || x.length < f) {
|
|
14190
|
+
const A = new Float64Array(f);
|
|
14190
14191
|
x && p > 0 && A.set(x.subarray(0, p * 2)), x = A, this._flatMeasurements = x;
|
|
14191
14192
|
}
|
|
14192
14193
|
let y;
|
|
@@ -14207,13 +14208,13 @@ class Ud {
|
|
|
14207
14208
|
void 0
|
|
14208
14209
|
);
|
|
14209
14210
|
for (let b = 0; b < p; b++) {
|
|
14210
|
-
const
|
|
14211
|
-
|
|
14211
|
+
const f = g[b];
|
|
14212
|
+
f && (m[f.lane] = b);
|
|
14212
14213
|
}
|
|
14213
14214
|
for (let b = p; b < r; b++) {
|
|
14214
|
-
const
|
|
14215
|
+
const f = l(b), x = this.laneAssignments.get(b);
|
|
14215
14216
|
let y, w;
|
|
14216
|
-
const A = c === "estimate" || h.has(
|
|
14217
|
+
const A = c === "estimate" || h.has(f);
|
|
14217
14218
|
if (x !== void 0 && this.options.lanes > 1) {
|
|
14218
14219
|
y = x;
|
|
14219
14220
|
const E = m[y], V = E !== void 0 ? g[E] : void 0;
|
|
@@ -14222,13 +14223,13 @@ class Ud {
|
|
|
14222
14223
|
const E = this.options.lanes === 1 ? g[b - 1] : this.getFurthestMeasurement(g, b);
|
|
14223
14224
|
w = E ? E.end + this.options.gap : a + o, y = E ? E.lane : b % this.options.lanes, this.options.lanes > 1 && A && this.laneAssignments.set(b, y);
|
|
14224
14225
|
}
|
|
14225
|
-
const k = h.get(
|
|
14226
|
+
const k = h.get(f), I = typeof k == "number" ? k : this.options.estimateSize(b), B = w + I;
|
|
14226
14227
|
g[b] = {
|
|
14227
14228
|
index: b,
|
|
14228
14229
|
start: w,
|
|
14229
14230
|
size: I,
|
|
14230
14231
|
end: B,
|
|
14231
|
-
key:
|
|
14232
|
+
key: f,
|
|
14232
14233
|
lane: y
|
|
14233
14234
|
}, m[y] = b;
|
|
14234
14235
|
}
|
|
@@ -14629,9 +14630,9 @@ function Xd({
|
|
|
14629
14630
|
const y = d.options.horizontal ? "width" : "height";
|
|
14630
14631
|
h.container.style[y] = `${p}px`;
|
|
14631
14632
|
}
|
|
14632
|
-
const g = !!d.options.horizontal, m = h.mode === "transform", b = g ? "left" : "top",
|
|
14633
|
+
const g = !!d.options.horizontal, m = h.mode === "transform", b = g ? "left" : "top", f = d.options.scrollMargin, x = d.getVirtualItems();
|
|
14633
14634
|
for (const y of x) {
|
|
14634
|
-
const w = y.start -
|
|
14635
|
+
const w = y.start - f, A = d.elementsCache.get(y.key);
|
|
14635
14636
|
A && h.lastPositions.get(A) !== w && (h.lastPositions.set(A, w), m ? A.style.transform = g ? `translate3d(${w}px, 0, 0)` : `translate3d(0, ${w}px, 0)` : A.style[b] = `${w}px`);
|
|
14636
14637
|
}
|
|
14637
14638
|
}, i = {
|
|
@@ -14642,8 +14643,8 @@ function Xd({
|
|
|
14642
14643
|
let m = !0;
|
|
14643
14644
|
if (g.enabled) {
|
|
14644
14645
|
s(d);
|
|
14645
|
-
const b = d.range,
|
|
14646
|
-
m = !
|
|
14646
|
+
const b = d.range, f = g.prevRange;
|
|
14647
|
+
m = !f || f.isScrolling !== d.isScrolling || f.startIndex !== (b == null ? void 0 : b.startIndex) || f.endIndex !== (b == null ? void 0 : b.endIndex), m && (g.prevRange = b ? {
|
|
14647
14648
|
startIndex: b.startIndex,
|
|
14648
14649
|
endIndex: b.endIndex,
|
|
14649
14650
|
isScrolling: d.isScrolling
|
|
@@ -14764,7 +14765,7 @@ const S5 = {
|
|
|
14764
14765
|
const d = t > 0 ? t : 10, h = Math.max(1, Math.ceil(r / d)), p = Math.min(Math.max(1, e), h), [g, m] = Y(""), b = (k) => {
|
|
14765
14766
|
const I = Math.min(Math.max(1, k), h);
|
|
14766
14767
|
I !== p && (i == null || i(I, d));
|
|
14767
|
-
},
|
|
14768
|
+
}, f = r === 0 ? 0 : (p - 1) * d + 1, x = Math.min(p * d, r), y = l ? l(r, [f, x]) : `Total ${r.toLocaleString("en-US")} items`, w = () => {
|
|
14768
14769
|
const k = parseInt(g, 10);
|
|
14769
14770
|
Number.isNaN(k) || (b(k), m(""));
|
|
14770
14771
|
}, A = oh(p, h);
|
|
@@ -14955,8 +14956,8 @@ const S5 = {
|
|
|
14955
14956
|
if (V)
|
|
14956
14957
|
B = V;
|
|
14957
14958
|
else {
|
|
14958
|
-
const
|
|
14959
|
-
B =
|
|
14959
|
+
const M = B.getRootNode();
|
|
14960
|
+
B = M instanceof ShadowRoot ? M.host : null;
|
|
14960
14961
|
}
|
|
14961
14962
|
}
|
|
14962
14963
|
return () => I.disconnect();
|
|
@@ -15036,7 +15037,7 @@ const S5 = {
|
|
|
15036
15037
|
showSelectedAccent: p,
|
|
15037
15038
|
isSelected: g
|
|
15038
15039
|
}) => {
|
|
15039
|
-
const m = t[e.dataIndex], b = e.render ? e.render(m, t, r) : m == null ? "" : String(m),
|
|
15040
|
+
const m = t[e.dataIndex], b = e.render ? e.render(m, t, r) : m == null ? "" : String(m), f = e.ellipsis && el(m) ? m : void 0;
|
|
15040
15041
|
return /* @__PURE__ */ n(
|
|
15041
15042
|
"td",
|
|
15042
15043
|
{
|
|
@@ -15067,7 +15068,7 @@ const S5 = {
|
|
|
15067
15068
|
boxShadow: p ? `inset 2px 0 0 ${A5}` : void 0,
|
|
15068
15069
|
borderBottom: l ? void 0 : i ? "none" : "1px solid var(--malachite-table-row-border)"
|
|
15069
15070
|
},
|
|
15070
|
-
title:
|
|
15071
|
+
title: f,
|
|
15071
15072
|
children: b
|
|
15072
15073
|
}
|
|
15073
15074
|
);
|
|
@@ -15183,7 +15184,7 @@ const S5 = {
|
|
|
15183
15184
|
size: g = "small",
|
|
15184
15185
|
rowDensity: m = "default",
|
|
15185
15186
|
layout: b = "auto",
|
|
15186
|
-
headerVariant:
|
|
15187
|
+
headerVariant: f = "inline",
|
|
15187
15188
|
rowClassName: x,
|
|
15188
15189
|
rowVariant: y,
|
|
15189
15190
|
onRow: w,
|
|
@@ -15193,9 +15194,9 @@ const S5 = {
|
|
|
15193
15194
|
rowSelection: B,
|
|
15194
15195
|
pagination: E,
|
|
15195
15196
|
className: V = "",
|
|
15196
|
-
style:
|
|
15197
|
+
style: M,
|
|
15197
15198
|
stickyHeaderTop: N,
|
|
15198
|
-
scrollX:
|
|
15199
|
+
scrollX: T = !1,
|
|
15199
15200
|
rowSection: z,
|
|
15200
15201
|
renderSectionDivider: ee,
|
|
15201
15202
|
onVisibleOrderChange: ie,
|
|
@@ -15204,30 +15205,30 @@ const S5 = {
|
|
|
15204
15205
|
virtualScrollElement: P = null
|
|
15205
15206
|
}) => {
|
|
15206
15207
|
const $ = m === "compact" ? "py-1.5" : "py-3", [J, Se] = Y(null), de = R(null), me = R(null), Ze = R(null), ze = R(/* @__PURE__ */ new Map()), D = he(
|
|
15207
|
-
(
|
|
15208
|
-
|
|
15208
|
+
(L, Z) => {
|
|
15209
|
+
Z ? ze.current.set(L, Z) : ze.current.delete(L);
|
|
15209
15210
|
},
|
|
15210
15211
|
[]
|
|
15211
|
-
), G = l1(), [Q, X] = Y(0), O = pe &&
|
|
15212
|
-
me.current =
|
|
15213
|
-
}, []), be = O ? P ?? ge : null, De = !(O && P), te =
|
|
15212
|
+
), G = l1(), [Q, X] = Y(0), O = pe && f === "detached", j = ae ?? uh, [ge, K] = Y(null), le = he((L) => {
|
|
15213
|
+
me.current = L, L && K((Z) => Z === L ? Z : L);
|
|
15214
|
+
}, []), be = O ? P ?? ge : null, De = !(O && P), te = f === "detached" && N !== void 0 && d && !p && (!O || !De), We = k != null, [Te, qe] = Y(0);
|
|
15214
15215
|
ue(() => {
|
|
15215
|
-
const
|
|
15216
|
-
if (!
|
|
15216
|
+
const L = de.current;
|
|
15217
|
+
if (!L || !te || !We || typeof ResizeObserver > "u") {
|
|
15217
15218
|
qe(0);
|
|
15218
15219
|
return;
|
|
15219
15220
|
}
|
|
15220
|
-
const
|
|
15221
|
+
const Z = new ResizeObserver((se) => {
|
|
15221
15222
|
var Be, U;
|
|
15222
15223
|
const W = se[0], ke = ((U = (Be = W == null ? void 0 : W.borderBoxSize) == null ? void 0 : Be[0]) == null ? void 0 : U.blockSize) ?? (W == null ? void 0 : W.contentRect.height) ?? 0;
|
|
15223
15224
|
qe(
|
|
15224
15225
|
(_) => Math.abs(_ - ke) < 1 ? _ : ke
|
|
15225
15226
|
);
|
|
15226
15227
|
});
|
|
15227
|
-
return
|
|
15228
|
+
return Z.observe(L), () => Z.disconnect();
|
|
15228
15229
|
}, [te, We]);
|
|
15229
15230
|
const e1 = te ? (N ?? 0) + Te : void 0, { sortedData: ye, sectionDividers: Ie } = y1(() => {
|
|
15230
|
-
const
|
|
15231
|
+
const L = (Be) => {
|
|
15231
15232
|
if (!J) return Be;
|
|
15232
15233
|
const U = e.find((ne) => ne.key === J.key);
|
|
15233
15234
|
if (!U) return Be;
|
|
@@ -15243,36 +15244,36 @@ const S5 = {
|
|
|
15243
15244
|
};
|
|
15244
15245
|
if (!z)
|
|
15245
15246
|
return {
|
|
15246
|
-
sortedData:
|
|
15247
|
+
sortedData: L(t),
|
|
15247
15248
|
sectionDividers: /* @__PURE__ */ new Map()
|
|
15248
15249
|
};
|
|
15249
|
-
const
|
|
15250
|
+
const Z = [], se = /* @__PURE__ */ new Map();
|
|
15250
15251
|
for (const Be of t) {
|
|
15251
15252
|
const U = z(Be);
|
|
15252
15253
|
let _ = se.get(U);
|
|
15253
|
-
_ === void 0 && (_ =
|
|
15254
|
+
_ === void 0 && (_ = Z.length, se.set(U, _), Z.push({ key: U, records: [] })), Z[_].records.push(Be);
|
|
15254
15255
|
}
|
|
15255
15256
|
const W = [], ke = /* @__PURE__ */ new Map();
|
|
15256
|
-
for (const Be of
|
|
15257
|
-
const U =
|
|
15257
|
+
for (const Be of Z) {
|
|
15258
|
+
const U = L(Be.records);
|
|
15258
15259
|
ke.set(W.length, { key: Be.key, records: U }), W.push(...U);
|
|
15259
15260
|
}
|
|
15260
15261
|
return { sortedData: W, sectionDividers: ke };
|
|
15261
|
-
}, [t, J, e, z]), g1 = (
|
|
15262
|
-
Se((
|
|
15263
|
-
}, t1 = (
|
|
15262
|
+
}, [t, J, e, z]), g1 = (L) => {
|
|
15263
|
+
Se((Z) => (Z == null ? void 0 : Z.key) === L ? Z.direction === "asc" ? { key: L, direction: "desc" } : null : { key: L, direction: "asc" });
|
|
15264
|
+
}, t1 = (L, Z) => typeof h == "function" ? h(L) : String(L[h] ?? Z), x1 = typeof h == "function" ? null : h, oe = R(void 0), Ae = R(void 0);
|
|
15264
15265
|
ue(() => {
|
|
15265
15266
|
if (!ie)
|
|
15266
15267
|
return;
|
|
15267
15268
|
Ae.current ?? (Ae.current = { ids: /* @__PURE__ */ new WeakMap(), next: 0 });
|
|
15268
|
-
const
|
|
15269
|
-
|
|
15269
|
+
const L = sh(ye, h, Ae.current), Z = oe.current;
|
|
15270
|
+
Z && lh(Z, L) || (oe.current = L, ie(ye));
|
|
15270
15271
|
}, [ye, x1, ie]);
|
|
15271
15272
|
const Ge = Math.min(Q, Math.max(0, ye.length - 1)), Ve = y1(() => {
|
|
15272
15273
|
if (k == null)
|
|
15273
15274
|
return -1;
|
|
15274
|
-
const
|
|
15275
|
-
return ye.findIndex((
|
|
15275
|
+
const L = String(k);
|
|
15276
|
+
return ye.findIndex((Z, se) => t1(Z, se) === L);
|
|
15276
15277
|
}, [k, ye, x1]);
|
|
15277
15278
|
ue(() => {
|
|
15278
15279
|
Ve >= 0 && X(Ve);
|
|
@@ -15285,13 +15286,13 @@ const S5 = {
|
|
|
15285
15286
|
}
|
|
15286
15287
|
if (!I || Ve < 0)
|
|
15287
15288
|
return;
|
|
15288
|
-
const
|
|
15289
|
-
if (
|
|
15289
|
+
const L = E1.current;
|
|
15290
|
+
if (L && L.key === k && L.index === Ve || r || a || O && !be)
|
|
15290
15291
|
return;
|
|
15291
|
-
const
|
|
15292
|
-
if (!
|
|
15292
|
+
const Z = Ze.current;
|
|
15293
|
+
if (!Z)
|
|
15293
15294
|
return;
|
|
15294
|
-
const se = te && Te === 0, W = (H) =>
|
|
15295
|
+
const se = te && Te === 0, W = (H) => Z.querySelector(
|
|
15295
15296
|
`[data-table-id="${G}"][data-row-index="${H}"]`
|
|
15296
15297
|
), ke = (H) => {
|
|
15297
15298
|
const Je = me.current, r1 = P, ve = Je == null ? void 0 : Je.scrollLeft, V1 = r1 == null ? void 0 : r1.scrollLeft;
|
|
@@ -15332,45 +15333,45 @@ const S5 = {
|
|
|
15332
15333
|
G,
|
|
15333
15334
|
I
|
|
15334
15335
|
]);
|
|
15335
|
-
const w1 = R(null), a1 = (
|
|
15336
|
-
w1.current =
|
|
15336
|
+
const w1 = R(null), a1 = (L, Z) => {
|
|
15337
|
+
w1.current = L, X(Math.min(Math.max(0, Z), ye.length - 1));
|
|
15337
15338
|
};
|
|
15338
15339
|
Ye(() => {
|
|
15339
|
-
const
|
|
15340
|
-
if (!
|
|
15340
|
+
const L = w1.current;
|
|
15341
|
+
if (!L)
|
|
15341
15342
|
return;
|
|
15342
15343
|
w1.current = null;
|
|
15343
|
-
const
|
|
15344
|
+
const Z = L.getRootNode(), W = ((U) => Z.querySelector(
|
|
15344
15345
|
`[data-table-id="${G}"][data-row-index="${U}"]`
|
|
15345
15346
|
))(Ge);
|
|
15346
15347
|
if (W) {
|
|
15347
15348
|
W.focus();
|
|
15348
15349
|
return;
|
|
15349
15350
|
}
|
|
15350
|
-
const ke =
|
|
15351
|
+
const ke = Z.querySelectorAll(
|
|
15351
15352
|
`[data-table-id="${G}"][data-row-index]`
|
|
15352
15353
|
), Be = Ge > 0 ? ke[ke.length - 1] : ke[0];
|
|
15353
15354
|
Be && (X(Number(Be.dataset.rowIndex)), Be.focus());
|
|
15354
15355
|
}, [Ge, G]);
|
|
15355
|
-
const Ke = (
|
|
15356
|
+
const Ke = (L, Z) => (se) => {
|
|
15356
15357
|
const W = { ArrowDown: 1, ArrowUp: -1 }[se.key];
|
|
15357
15358
|
if (W !== void 0) {
|
|
15358
|
-
se.preventDefault(), a1(se.currentTarget,
|
|
15359
|
+
se.preventDefault(), a1(se.currentTarget, L + W);
|
|
15359
15360
|
return;
|
|
15360
15361
|
}
|
|
15361
15362
|
if (!O && (se.key === "Home" || se.key === "End")) {
|
|
15362
15363
|
se.preventDefault(), a1(se.currentTarget, se.key === "Home" ? 0 : ye.length - 1);
|
|
15363
15364
|
return;
|
|
15364
15365
|
}
|
|
15365
|
-
|
|
15366
|
+
Z && en(se, Z, "enter");
|
|
15366
15367
|
};
|
|
15367
|
-
if (
|
|
15368
|
-
const
|
|
15368
|
+
if (f === "detached") {
|
|
15369
|
+
const L = T ? dh(e) : 0, Z = T ? { minWidth: L } : {}, se = {
|
|
15369
15370
|
border: "1px solid var(--malachite-card-border, #e8e8e8)",
|
|
15370
15371
|
borderRadius: St,
|
|
15371
15372
|
overflow: "hidden",
|
|
15372
15373
|
flexShrink: 0,
|
|
15373
|
-
...
|
|
15374
|
+
...Z
|
|
15374
15375
|
}, W = (U, _, ne = !1, Ne = !1, H, Je = Ge) => {
|
|
15375
15376
|
const r1 = t1(U, _), ve = (w == null ? void 0 : w(U, _)) || {}, V1 = y == null ? void 0 : y(U, _), Q1 = _ === Ve, F = A || ve.onClick ? () => {
|
|
15376
15377
|
var Ce;
|
|
@@ -15393,7 +15394,7 @@ const S5 = {
|
|
|
15393
15394
|
`,
|
|
15394
15395
|
style: {
|
|
15395
15396
|
...Pe,
|
|
15396
|
-
...
|
|
15397
|
+
...Z,
|
|
15397
15398
|
scrollMarginTop: e1,
|
|
15398
15399
|
// Echo the card's clip, or it cuts the accent bar's end into a stub.
|
|
15399
15400
|
...Ne ? {
|
|
@@ -15454,7 +15455,7 @@ const S5 = {
|
|
|
15454
15455
|
"div",
|
|
15455
15456
|
{
|
|
15456
15457
|
className: "bg-white flex min-h-10 items-stretch w-full",
|
|
15457
|
-
style: { ..._ ? {} : n2, ...
|
|
15458
|
+
style: { ..._ ? {} : n2, ...Z },
|
|
15458
15459
|
children: e.map((ne) => (ne.title === "" || ne.title == null) && ne.width !== void 0 ? /* @__PURE__ */ n(
|
|
15459
15460
|
"div",
|
|
15460
15461
|
{
|
|
@@ -15474,7 +15475,7 @@ const S5 = {
|
|
|
15474
15475
|
))
|
|
15475
15476
|
},
|
|
15476
15477
|
`skeleton-${U}`
|
|
15477
|
-
), Be = d ? /* @__PURE__ */ n("div", { className: "flex min-h-10 items-stretch w-full", style:
|
|
15478
|
+
), Be = d ? /* @__PURE__ */ n("div", { className: "flex min-h-10 items-stretch w-full", style: Z, children: e.map((U) => /* @__PURE__ */ n(
|
|
15478
15479
|
Ah,
|
|
15479
15480
|
{
|
|
15480
15481
|
column: U,
|
|
@@ -15488,7 +15489,7 @@ const S5 = {
|
|
|
15488
15489
|
{
|
|
15489
15490
|
ref: Ze,
|
|
15490
15491
|
className: `w-full ${V}`,
|
|
15491
|
-
style: { ...vr, ...
|
|
15492
|
+
style: { ...vr, ...M },
|
|
15492
15493
|
children: [
|
|
15493
15494
|
/* @__PURE__ */ v(
|
|
15494
15495
|
"div",
|
|
@@ -15499,7 +15500,7 @@ const S5 = {
|
|
|
15499
15500
|
"div",
|
|
15500
15501
|
{
|
|
15501
15502
|
ref: de,
|
|
15502
|
-
onScroll:
|
|
15503
|
+
onScroll: T ? () => l2(de.current, me.current) : void 0,
|
|
15503
15504
|
style: {
|
|
15504
15505
|
...te ? {
|
|
15505
15506
|
position: "sticky",
|
|
@@ -15514,7 +15515,7 @@ const S5 = {
|
|
|
15514
15515
|
marginTop: -It,
|
|
15515
15516
|
paddingTop: It
|
|
15516
15517
|
} : { width: "100%" },
|
|
15517
|
-
...
|
|
15518
|
+
...T ? { overflowX: "auto", scrollbarWidth: "none" } : {}
|
|
15518
15519
|
},
|
|
15519
15520
|
children: [
|
|
15520
15521
|
te && /* @__PURE__ */ n(fh, {}),
|
|
@@ -15526,8 +15527,8 @@ const S5 = {
|
|
|
15526
15527
|
"div",
|
|
15527
15528
|
{
|
|
15528
15529
|
ref: le,
|
|
15529
|
-
onScroll:
|
|
15530
|
-
className: `flex flex-col items-start ${
|
|
15530
|
+
onScroll: T ? () => l2(me.current, de.current) : void 0,
|
|
15531
|
+
className: `flex flex-col items-start ${T ? "overflow-x-auto" : "overflow-x-clip"} ${De ? "overflow-y-auto" : "overflow-y-visible"} w-full`,
|
|
15531
15532
|
style: {
|
|
15532
15533
|
// Firefox + modern Chromium only; older Webkit keeps its default.
|
|
15533
15534
|
scrollbarWidth: "thin",
|
|
@@ -15599,7 +15600,7 @@ const S5 = {
|
|
|
15599
15600
|
"div",
|
|
15600
15601
|
{
|
|
15601
15602
|
className: "table-section-divider",
|
|
15602
|
-
style:
|
|
15603
|
+
style: Z,
|
|
15603
15604
|
children: ve
|
|
15604
15605
|
}
|
|
15605
15606
|
) : null,
|
|
@@ -15630,11 +15631,11 @@ const S5 = {
|
|
|
15630
15631
|
}
|
|
15631
15632
|
);
|
|
15632
15633
|
}
|
|
15633
|
-
const i1 = (
|
|
15634
|
-
const
|
|
15635
|
-
/* @__PURE__ */ n("span", { children:
|
|
15636
|
-
|
|
15637
|
-
|
|
15634
|
+
const i1 = (L) => {
|
|
15635
|
+
const Z = L.sorter, W = (J == null ? void 0 : J.key) === L.key ? J == null ? void 0 : J.direction : null, ke = /* @__PURE__ */ v("div", { className: `flex items-center gap-2 ${J1(L.align)}`, children: [
|
|
15636
|
+
/* @__PURE__ */ n("span", { children: L.title }),
|
|
15637
|
+
L.info && /* @__PURE__ */ n(Lr, { info: L.info }),
|
|
15638
|
+
Z && /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
|
|
15638
15639
|
/* @__PURE__ */ n(
|
|
15639
15640
|
re.CaretUpIcon,
|
|
15640
15641
|
{
|
|
@@ -15657,23 +15658,23 @@ const S5 = {
|
|
|
15657
15658
|
className: `
|
|
15658
15659
|
table-header table-cell px-4 py-3 font-semibold border-0 first:rounded-tl-lg last:rounded-tr-lg
|
|
15659
15660
|
${Ot(g)}
|
|
15660
|
-
${Gt(
|
|
15661
|
+
${Gt(L.align)}
|
|
15661
15662
|
`,
|
|
15662
|
-
style: { width:
|
|
15663
|
-
"aria-sort":
|
|
15664
|
-
children:
|
|
15663
|
+
style: { width: L.width },
|
|
15664
|
+
"aria-sort": Z ? xh(W) : void 0,
|
|
15665
|
+
children: Z ? /* @__PURE__ */ n(
|
|
15665
15666
|
"button",
|
|
15666
15667
|
{
|
|
15667
|
-
...rl(
|
|
15668
|
-
className: `flex w-full items-center ${J1(
|
|
15668
|
+
...rl(L.title, () => g1(L.key)),
|
|
15669
|
+
className: `flex w-full items-center ${J1(L.align)} cursor-pointer hover:opacity-80 appearance-none bg-transparent border-0 p-0 font-semibold text-inherit ${Gt(L.align)}`,
|
|
15669
15670
|
children: ke
|
|
15670
15671
|
}
|
|
15671
15672
|
) : ke
|
|
15672
15673
|
},
|
|
15673
|
-
|
|
15674
|
+
L.key
|
|
15674
15675
|
);
|
|
15675
15676
|
};
|
|
15676
|
-
return a ? /* @__PURE__ */ n("div", { className: "w-full", style: { ...vr, ...
|
|
15677
|
+
return a ? /* @__PURE__ */ n("div", { className: "w-full", style: { ...vr, ...M }, children: /* @__PURE__ */ n(
|
|
15677
15678
|
"div",
|
|
15678
15679
|
{
|
|
15679
15680
|
className: "overflow-x-auto",
|
|
@@ -15681,30 +15682,30 @@ const S5 = {
|
|
|
15681
15682
|
...p ? { maxHeight: p } : {}
|
|
15682
15683
|
},
|
|
15683
15684
|
children: /* @__PURE__ */ v("table", { className: "w-full border-collapse rounded-lg overflow-hidden", children: [
|
|
15684
|
-
d && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((
|
|
15685
|
+
d && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((L) => /* @__PURE__ */ n(
|
|
15685
15686
|
"th",
|
|
15686
15687
|
{
|
|
15687
15688
|
className: `
|
|
15688
15689
|
table-header table-cell px-4 py-3 font-semibold border-0 first:rounded-tl-lg last:rounded-tr-lg
|
|
15689
15690
|
${c ? "table-cell-bordered table-cell-bordered-top" : ""}
|
|
15690
|
-
${c &&
|
|
15691
|
-
${c &&
|
|
15691
|
+
${c && L === e[0] ? "table-cell-bordered-left" : ""}
|
|
15692
|
+
${c && L === e[e.length - 1] ? "table-cell-bordered-right" : ""}
|
|
15692
15693
|
${Ot(g)}
|
|
15693
|
-
${Gt(
|
|
15694
|
+
${Gt(L.align)}
|
|
15694
15695
|
`,
|
|
15695
|
-
style: { width:
|
|
15696
|
+
style: { width: L.width },
|
|
15696
15697
|
children: /* @__PURE__ */ v(
|
|
15697
15698
|
"div",
|
|
15698
15699
|
{
|
|
15699
|
-
className: `flex items-center gap-2 ${J1(
|
|
15700
|
+
className: `flex items-center gap-2 ${J1(L.align)}`,
|
|
15700
15701
|
children: [
|
|
15701
|
-
/* @__PURE__ */ n("span", { children:
|
|
15702
|
-
|
|
15702
|
+
/* @__PURE__ */ n("span", { children: L.title }),
|
|
15703
|
+
L.info && /* @__PURE__ */ n(Lr, { info: L.info })
|
|
15703
15704
|
]
|
|
15704
15705
|
}
|
|
15705
15706
|
)
|
|
15706
15707
|
},
|
|
15707
|
-
|
|
15708
|
+
L.key
|
|
15708
15709
|
)) }) }),
|
|
15709
15710
|
/* @__PURE__ */ n("tbody", { children: /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n(
|
|
15710
15711
|
"td",
|
|
@@ -15725,7 +15726,7 @@ const S5 = {
|
|
|
15725
15726
|
{
|
|
15726
15727
|
ref: Ze,
|
|
15727
15728
|
className: `w-full ${V}`,
|
|
15728
|
-
style: { ...vr, ...
|
|
15729
|
+
style: { ...vr, ...M },
|
|
15729
15730
|
children: [
|
|
15730
15731
|
/* @__PURE__ */ n(
|
|
15731
15732
|
"div",
|
|
@@ -15742,11 +15743,11 @@ const S5 = {
|
|
|
15742
15743
|
children: /* @__PURE__ */ v(
|
|
15743
15744
|
"table",
|
|
15744
15745
|
{
|
|
15745
|
-
className: `w-full ${b === "fixed" || e.some((
|
|
15746
|
+
className: `w-full ${b === "fixed" || e.some((L) => L.width) ? "table-fixed" : "table-auto"} ${c ? "border-separate table-bordered" : "border-collapse"} rounded-lg overflow-hidden`,
|
|
15746
15747
|
style: { borderSpacing: "0" },
|
|
15747
15748
|
children: [
|
|
15748
|
-
d && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((
|
|
15749
|
-
/* @__PURE__ */ n("tbody", { children: r ? Array.from({ length: 5 }).map((
|
|
15749
|
+
d && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((L) => i1(L)) }) }),
|
|
15750
|
+
/* @__PURE__ */ n("tbody", { children: r ? Array.from({ length: 5 }).map((L, Z) => /* @__PURE__ */ n(
|
|
15750
15751
|
"tr",
|
|
15751
15752
|
{
|
|
15752
15753
|
className: `table-row ${c ? "table-row-bordered" : ""}`,
|
|
@@ -15760,7 +15761,7 @@ const S5 = {
|
|
|
15760
15761
|
se.key
|
|
15761
15762
|
))
|
|
15762
15763
|
},
|
|
15763
|
-
|
|
15764
|
+
Z
|
|
15764
15765
|
)) : ye.length === 0 ? /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n(
|
|
15765
15766
|
"td",
|
|
15766
15767
|
{
|
|
@@ -15771,10 +15772,10 @@ const S5 = {
|
|
|
15771
15772
|
i && /* @__PURE__ */ n("div", { className: "text-[var(--malachite-text-secondary)] text-[13px] mt-1", children: i })
|
|
15772
15773
|
] })
|
|
15773
15774
|
}
|
|
15774
|
-
) }) : ye.map((
|
|
15775
|
-
const se = t1(
|
|
15775
|
+
) }) : ye.map((L, Z) => {
|
|
15776
|
+
const se = t1(L, Z), W = (w == null ? void 0 : w(L, Z)) || {}, ke = y == null ? void 0 : y(L, Z), Be = Z === 0, U = Z === t.length - 1, _ = Z === Ve, ne = ke ? `var(--malachite-table-row-variant-${ke}-background)` : void 0, Ne = A || W.onClick ? () => {
|
|
15776
15777
|
var H;
|
|
15777
|
-
A == null || A(
|
|
15778
|
+
A == null || A(L, Z), (H = W.onClick) == null || H.call(W, L, Z);
|
|
15778
15779
|
} : void 0;
|
|
15779
15780
|
return (
|
|
15780
15781
|
// Keeps `row` semantics: `role="button"` would strip the table
|
|
@@ -15783,13 +15784,13 @@ const S5 = {
|
|
|
15783
15784
|
"tr",
|
|
15784
15785
|
{
|
|
15785
15786
|
"data-table-id": G,
|
|
15786
|
-
"data-row-index":
|
|
15787
|
+
"data-row-index": Z,
|
|
15787
15788
|
"aria-current": _ ? "true" : void 0,
|
|
15788
|
-
tabIndex: Ne ?
|
|
15789
|
-
onKeyDown: Ne ? Ke(
|
|
15789
|
+
tabIndex: Ne ? Z === Ge ? 0 : -1 : void 0,
|
|
15790
|
+
onKeyDown: Ne ? Ke(Z, Ne) : void 0,
|
|
15790
15791
|
className: `
|
|
15791
15792
|
${c ? "table-row-bordered" : `table-row ${_ ? "" : "hover:opacity-80"}`}
|
|
15792
|
-
${(x == null ? void 0 : x(
|
|
15793
|
+
${(x == null ? void 0 : x(L, Z)) || ""}
|
|
15793
15794
|
${Ne ? `cursor-pointer ${Kt}` : ""}
|
|
15794
15795
|
`,
|
|
15795
15796
|
onClick: Ne ? (H) => {
|
|
@@ -15797,19 +15798,19 @@ const S5 = {
|
|
|
15797
15798
|
} : void 0,
|
|
15798
15799
|
onDoubleClick: W.onDoubleClick ? () => {
|
|
15799
15800
|
var H;
|
|
15800
|
-
return (H = W.onDoubleClick) == null ? void 0 : H.call(W,
|
|
15801
|
+
return (H = W.onDoubleClick) == null ? void 0 : H.call(W, L, Z);
|
|
15801
15802
|
} : void 0,
|
|
15802
15803
|
onContextMenu: W.onContextMenu ? () => {
|
|
15803
15804
|
var H;
|
|
15804
|
-
return (H = W.onContextMenu) == null ? void 0 : H.call(W,
|
|
15805
|
+
return (H = W.onContextMenu) == null ? void 0 : H.call(W, L, Z);
|
|
15805
15806
|
} : void 0,
|
|
15806
15807
|
onMouseEnter: W.onMouseEnter ? () => {
|
|
15807
15808
|
var H;
|
|
15808
|
-
return (H = W.onMouseEnter) == null ? void 0 : H.call(W,
|
|
15809
|
+
return (H = W.onMouseEnter) == null ? void 0 : H.call(W, L, Z);
|
|
15809
15810
|
} : void 0,
|
|
15810
15811
|
onMouseLeave: W.onMouseLeave ? () => {
|
|
15811
15812
|
var H;
|
|
15812
|
-
return (H = W.onMouseLeave) == null ? void 0 : H.call(W,
|
|
15813
|
+
return (H = W.onMouseLeave) == null ? void 0 : H.call(W, L, Z);
|
|
15813
15814
|
} : void 0,
|
|
15814
15815
|
children: e.map((H) => {
|
|
15815
15816
|
const Je = H === e[0], r1 = H === e[e.length - 1];
|
|
@@ -15817,8 +15818,8 @@ const S5 = {
|
|
|
15817
15818
|
yh,
|
|
15818
15819
|
{
|
|
15819
15820
|
column: H,
|
|
15820
|
-
record:
|
|
15821
|
-
index:
|
|
15821
|
+
record: L,
|
|
15822
|
+
index: Z,
|
|
15822
15823
|
size: g,
|
|
15823
15824
|
paddingYClass: $,
|
|
15824
15825
|
bordered: c,
|
|
@@ -15950,31 +15951,31 @@ const S5 = {
|
|
|
15950
15951
|
const l = Sh[o], [s, i] = Y(!1), [c, d] = Y(null), h = R(null), p = R(null);
|
|
15951
15952
|
Dr(p, s);
|
|
15952
15953
|
const g = he(() => {
|
|
15953
|
-
var
|
|
15954
|
-
const
|
|
15955
|
-
if (!
|
|
15954
|
+
var M, N;
|
|
15955
|
+
const f = h.current;
|
|
15956
|
+
if (!f)
|
|
15956
15957
|
return;
|
|
15957
|
-
const x =
|
|
15958
|
+
const x = f.getBoundingClientRect(), y = ((M = p.current) == null ? void 0 : M.offsetWidth) || a, w = ((N = p.current) == null ? void 0 : N.offsetHeight) || 0, A = 8, k = x.right - y, I = window.innerWidth - y - A, B = Math.max(A, Math.min(k, I)), E = window.innerHeight - x.bottom, V = w > 0 && E < w + A ? x.top - w - 4 : x.bottom + 4;
|
|
15958
15959
|
d({ top: V, left: B });
|
|
15959
15960
|
}, [a]);
|
|
15960
15961
|
ue(() => {
|
|
15961
15962
|
if (!s)
|
|
15962
15963
|
return;
|
|
15963
15964
|
g();
|
|
15964
|
-
const
|
|
15965
|
+
const f = () => g(), x = (w) => {
|
|
15965
15966
|
var k, I;
|
|
15966
15967
|
const A = w.target;
|
|
15967
15968
|
!((k = h.current) != null && k.contains(A)) && !((I = p.current) != null && I.contains(A)) && i(!1);
|
|
15968
15969
|
}, y = $t(() => i(!1));
|
|
15969
|
-
return window.addEventListener("scroll",
|
|
15970
|
-
window.removeEventListener("scroll",
|
|
15970
|
+
return window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), document.addEventListener("mousedown", x, !0), () => {
|
|
15971
|
+
window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f), document.removeEventListener("mousedown", x, !0), y();
|
|
15971
15972
|
};
|
|
15972
15973
|
}, [s, g]), Ye(() => {
|
|
15973
15974
|
s && p.current && g();
|
|
15974
15975
|
}, [s, g]);
|
|
15975
|
-
const m = (
|
|
15976
|
+
const m = (f) => {
|
|
15976
15977
|
var x;
|
|
15977
|
-
|
|
15978
|
+
f.type === "divider" || f.disabled || ((x = f.onClick) == null || x.call(f), i(!1));
|
|
15978
15979
|
};
|
|
15979
15980
|
Rr(() => {
|
|
15980
15981
|
s && Zr();
|
|
@@ -16008,10 +16009,10 @@ const S5 = {
|
|
|
16008
16009
|
"aria-haspopup": "menu",
|
|
16009
16010
|
"aria-expanded": s,
|
|
16010
16011
|
className: "shrink-0 aria-expanded:border-[var(--malachite-primary-border-hover)]",
|
|
16011
|
-
onClick: (
|
|
16012
|
-
|
|
16012
|
+
onClick: (f) => {
|
|
16013
|
+
f.stopPropagation(), i((x) => !x);
|
|
16013
16014
|
},
|
|
16014
|
-
onMouseDown: (
|
|
16015
|
+
onMouseDown: (f) => f.stopPropagation(),
|
|
16015
16016
|
children: /* @__PURE__ */ n("span", { className: `inline-flex items-center justify-center ${l.iconBox}`, children: r ?? /* @__PURE__ */ n(re.MoreHorizontalIcon, { size: l.icon }) })
|
|
16016
16017
|
}
|
|
16017
16018
|
),
|
|
@@ -16023,30 +16024,30 @@ const S5 = {
|
|
|
16023
16024
|
role: "menu",
|
|
16024
16025
|
...G1("actionmenu"),
|
|
16025
16026
|
style: b,
|
|
16026
|
-
onMouseDown: (
|
|
16027
|
-
onClick: (
|
|
16027
|
+
onMouseDown: (f) => f.stopPropagation(),
|
|
16028
|
+
onClick: (f) => f.stopPropagation(),
|
|
16028
16029
|
children: [
|
|
16029
16030
|
e.length === 0 && // role="menu" takes menuitem children only, so the notice is one.
|
|
16030
16031
|
/* @__PURE__ */ n("div", { role: "menuitem", "aria-disabled": "true", style: Eh, children: "No actions available" }),
|
|
16031
16032
|
e.map(
|
|
16032
|
-
(
|
|
16033
|
+
(f) => f.type === "divider" ? /* @__PURE__ */ n("div", { style: i2(f) }, f.key) : /* @__PURE__ */ v(
|
|
16033
16034
|
"button",
|
|
16034
16035
|
{
|
|
16035
16036
|
type: "button",
|
|
16036
16037
|
role: "menuitem",
|
|
16037
|
-
disabled:
|
|
16038
|
-
title:
|
|
16039
|
-
onClick: () => m(
|
|
16038
|
+
disabled: f.disabled,
|
|
16039
|
+
title: f.tooltip,
|
|
16040
|
+
onClick: () => m(f),
|
|
16040
16041
|
onMouseEnter: (x) => {
|
|
16041
|
-
|
|
16042
|
+
f.disabled || (x.currentTarget.style.background = "rgba(0, 0, 0, 0.04)");
|
|
16042
16043
|
},
|
|
16043
16044
|
onMouseLeave: (x) => {
|
|
16044
16045
|
x.currentTarget.style.background = "transparent";
|
|
16045
16046
|
},
|
|
16046
|
-
style: i2(
|
|
16047
|
+
style: i2(f),
|
|
16047
16048
|
children: [
|
|
16048
|
-
|
|
16049
|
-
|
|
16049
|
+
f.label,
|
|
16050
|
+
f.icon && /* @__PURE__ */ n(
|
|
16050
16051
|
"span",
|
|
16051
16052
|
{
|
|
16052
16053
|
style: {
|
|
@@ -16056,12 +16057,12 @@ const S5 = {
|
|
|
16056
16057
|
paddingLeft: 16,
|
|
16057
16058
|
color: "var(--malachite-icon-secondary, rgb(148, 148, 148))"
|
|
16058
16059
|
},
|
|
16059
|
-
children:
|
|
16060
|
+
children: f.icon
|
|
16060
16061
|
}
|
|
16061
16062
|
)
|
|
16062
16063
|
]
|
|
16063
16064
|
},
|
|
16064
|
-
|
|
16065
|
+
f.key
|
|
16065
16066
|
)
|
|
16066
16067
|
)
|
|
16067
16068
|
]
|
|
@@ -16104,9 +16105,9 @@ const S5 = {
|
|
|
16104
16105
|
onClick: c
|
|
16105
16106
|
}) => {
|
|
16106
16107
|
const d = Bh[s], h = t ? d.paddingWithIcon : d.padding, p = Mh[i], g = l && !o, m = g && !!c, b = m ? ` ${Nh}` : "";
|
|
16107
|
-
let
|
|
16108
|
-
l ? a ?
|
|
16109
|
-
const x = o ? "opacity-50 cursor-not-allowed pointer-events-none" : "", y = `${Ih} ${d.text} ${h} ${
|
|
16108
|
+
let f;
|
|
16109
|
+
l ? a ? f = g ? `${p.selected}${b}` : p.selected : g ? f = `${p.base} ${p.hover}${b}` : f = p.base : f = Vh;
|
|
16110
|
+
const x = o ? "opacity-50 cursor-not-allowed pointer-events-none" : "", y = `${Ih} ${d.text} ${h} ${f} ${x} ${r}`, w = t ? /* @__PURE__ */ n("span", { className: "inline-flex items-center justify-center w-4 h-4 shrink-0 [&>img]:max-w-full [&>img]:max-h-full [&>img]:object-contain", children: t }) : null;
|
|
16110
16111
|
return m ? /* @__PURE__ */ v("button", { type: "button", className: `${_e} ${y}`, onClick: c, children: [
|
|
16111
16112
|
w,
|
|
16112
16113
|
e
|
|
@@ -16194,12 +16195,12 @@ const S5 = {
|
|
|
16194
16195
|
className: p = "",
|
|
16195
16196
|
id: g
|
|
16196
16197
|
}, m) => {
|
|
16197
|
-
const { track: b, height:
|
|
16198
|
+
const { track: b, height: f, knob: x } = Lh[a], y = e ? b - x - pa : pa, w = s ?? (i ? "pill" : void 0), A = l1(), k = !!l, I = k && !d ? A : void 0, B = d || I, E = {
|
|
16198
16199
|
position: "relative",
|
|
16199
16200
|
display: "inline-block",
|
|
16200
16201
|
flexShrink: 0,
|
|
16201
16202
|
width: `${b}px`,
|
|
16202
|
-
height: `${
|
|
16203
|
+
height: `${f}px`,
|
|
16203
16204
|
borderRadius: "999px",
|
|
16204
16205
|
transition: "background-color 150ms ease-in-out",
|
|
16205
16206
|
backgroundColor: e ? o === "pending" ? "var(--malachite-toggle-track-checked-pending, rgb(241, 139, 10))" : "var(--malachite-toggle-track-checked, rgb(0, 175, 102))" : "var(--malachite-toggle-track, rgb(232, 232, 232))"
|
|
@@ -16241,10 +16242,10 @@ const S5 = {
|
|
|
16241
16242
|
children: k && /* @__PURE__ */ n("span", { id: I, children: l })
|
|
16242
16243
|
}
|
|
16243
16244
|
);
|
|
16244
|
-
const
|
|
16245
|
+
const M = !k && !w, N = /* @__PURE__ */ n(
|
|
16245
16246
|
"button",
|
|
16246
16247
|
{
|
|
16247
|
-
ref:
|
|
16248
|
+
ref: M ? m : null,
|
|
16248
16249
|
type: "button",
|
|
16249
16250
|
role: "switch",
|
|
16250
16251
|
id: g,
|
|
@@ -16265,10 +16266,10 @@ const S5 = {
|
|
|
16265
16266
|
children: V
|
|
16266
16267
|
}
|
|
16267
16268
|
);
|
|
16268
|
-
if (
|
|
16269
|
+
if (M)
|
|
16269
16270
|
return N;
|
|
16270
|
-
const
|
|
16271
|
-
return /* @__PURE__ */ v("span", { ref: m, className:
|
|
16271
|
+
const T = `${Rh}${w === "pill" ? ` ${Zh[a]} ${Th}` : ""} ${p}`.trim();
|
|
16272
|
+
return /* @__PURE__ */ v("span", { ref: m, className: T, children: [
|
|
16272
16273
|
k && /* @__PURE__ */ n("span", { id: I, children: l }),
|
|
16273
16274
|
N
|
|
16274
16275
|
] });
|
|
@@ -16429,7 +16430,7 @@ const $h = () => {
|
|
|
16429
16430
|
const p = h.getRootNode();
|
|
16430
16431
|
(p instanceof Document || p instanceof ShadowRoot) && Xh(p);
|
|
16431
16432
|
const g = typeof ResizeObserver < "u", m = typeof MutationObserver < "u";
|
|
16432
|
-
let b = !1,
|
|
16433
|
+
let b = !1, f = -1;
|
|
16433
16434
|
const x = {
|
|
16434
16435
|
dataItems: [],
|
|
16435
16436
|
indicator: null,
|
|
@@ -16440,47 +16441,47 @@ const $h = () => {
|
|
|
16440
16441
|
}, y = {
|
|
16441
16442
|
isActive: () => !b && s.current === h && h.isConnected,
|
|
16442
16443
|
reveal: () => {
|
|
16443
|
-
var
|
|
16444
|
-
const
|
|
16445
|
-
x.indicator = N ?
|
|
16444
|
+
var T;
|
|
16445
|
+
const M = Array.from(h.children), N = !!l;
|
|
16446
|
+
x.indicator = N ? M[M.length - 1] ?? null : null, x.dataItems = N ? M.slice(0, -1) : M;
|
|
16446
16447
|
for (const z of x.dataItems)
|
|
16447
16448
|
z.removeAttribute(Lt);
|
|
16448
|
-
(
|
|
16449
|
+
(T = x.indicator) == null || T.removeAttribute(Lt);
|
|
16449
16450
|
},
|
|
16450
16451
|
measure: () => {
|
|
16451
|
-
var
|
|
16452
|
+
var M;
|
|
16452
16453
|
x.containerWidth = h.getBoundingClientRect().width, x.itemWidths = x.dataItems.map(
|
|
16453
16454
|
(N) => N.getBoundingClientRect().width
|
|
16454
|
-
), x.indicatorWidth = ((
|
|
16455
|
+
), x.indicatorWidth = ((M = x.indicator) == null ? void 0 : M.getBoundingClientRect().width) ?? 0, x.gapPx = typeof t == "number" ? t : Number.parseFloat(getComputedStyle(h).columnGap) || 0;
|
|
16455
16456
|
},
|
|
16456
16457
|
apply: () => {
|
|
16457
|
-
const { dataItems:
|
|
16458
|
-
let ae =
|
|
16458
|
+
const { dataItems: M, indicator: N, itemWidths: T, indicatorWidth: z, containerWidth: ee, gapPx: ie } = x, pe = T.reduce(($, J) => $ + J, 0) + ie * Math.max(0, M.length - 1);
|
|
16459
|
+
let ae = M.length;
|
|
16459
16460
|
if (pe > ee + s2) {
|
|
16460
16461
|
ae = 0;
|
|
16461
16462
|
let $ = N ? z : 0;
|
|
16462
|
-
for (const J of
|
|
16463
|
+
for (const J of T) {
|
|
16463
16464
|
const Se = N || ae > 0 ? ie : 0, de = $ + Se + J;
|
|
16464
16465
|
if (de > ee + s2)
|
|
16465
16466
|
break;
|
|
16466
16467
|
$ = de, ae += 1;
|
|
16467
16468
|
}
|
|
16468
16469
|
}
|
|
16469
|
-
const P =
|
|
16470
|
-
for (let $ = ae; $ <
|
|
16471
|
-
|
|
16470
|
+
const P = M.length - ae;
|
|
16471
|
+
for (let $ = ae; $ < M.length; $ += 1)
|
|
16472
|
+
M[$].setAttribute(Lt, "");
|
|
16472
16473
|
P === 0 && (N == null || N.setAttribute(Lt, "")), c(($) => $ === P ? $ : P);
|
|
16473
16474
|
}
|
|
16474
16475
|
}, w = () => {
|
|
16475
16476
|
b || _h(y);
|
|
16476
16477
|
};
|
|
16477
16478
|
w();
|
|
16478
|
-
const A = (
|
|
16479
|
-
var
|
|
16479
|
+
const A = (M) => {
|
|
16480
|
+
var T;
|
|
16480
16481
|
if (b)
|
|
16481
16482
|
return;
|
|
16482
|
-
const N = (
|
|
16483
|
-
N !== void 0 && Math.abs(N -
|
|
16483
|
+
const N = (T = M[0]) == null ? void 0 : T.contentRect.width;
|
|
16484
|
+
N !== void 0 && Math.abs(N - f) < 1 || (N !== void 0 && (f = N), w());
|
|
16484
16485
|
}, k = g ? new ResizeObserver(A) : null;
|
|
16485
16486
|
k == null || k.observe(h);
|
|
16486
16487
|
const I = g ? new ResizeObserver(w) : null;
|
|
@@ -16538,12 +16539,12 @@ const $h = () => {
|
|
|
16538
16539
|
const c = ((g) => {
|
|
16539
16540
|
let m = g;
|
|
16540
16541
|
for (let b = 0; m && b < 5; b += 1) {
|
|
16541
|
-
const
|
|
16542
|
-
if (!
|
|
16542
|
+
const f = m.parentElement;
|
|
16543
|
+
if (!f)
|
|
16543
16544
|
return m;
|
|
16544
|
-
if (
|
|
16545
|
-
return
|
|
16546
|
-
m =
|
|
16545
|
+
if (f.clientWidth > m.clientWidth)
|
|
16546
|
+
return f;
|
|
16547
|
+
m = f;
|
|
16547
16548
|
}
|
|
16548
16549
|
return m;
|
|
16549
16550
|
})(o.current);
|
|
@@ -16684,14 +16685,14 @@ const $h = () => {
|
|
|
16684
16685
|
className: d = "",
|
|
16685
16686
|
style: h = {}
|
|
16686
16687
|
}) => {
|
|
16687
|
-
const p = Math.max(0, Math.min(100, e ?? 0)), g = Math.max(2, Math.round(l / 2)), m = (t == null ? void 0 : t.filter((w) => w.value > 0)) ?? [], b = t !== void 0,
|
|
16688
|
+
const p = Math.max(0, Math.min(100, e ?? 0)), g = Math.max(2, Math.round(l / 2)), m = (t == null ? void 0 : t.filter((w) => w.value > 0)) ?? [], b = t !== void 0, f = b ? fu(m) : 0, x = Math.max(r ?? f, f), y = x > 0 ? x : 1;
|
|
16688
16689
|
return /* @__PURE__ */ n(
|
|
16689
16690
|
"div",
|
|
16690
16691
|
{
|
|
16691
16692
|
role: "progressbar",
|
|
16692
16693
|
"aria-valuemin": 0,
|
|
16693
16694
|
"aria-valuemax": b ? y : 100,
|
|
16694
|
-
"aria-valuenow": b ?
|
|
16695
|
+
"aria-valuenow": b ? f : Math.round(p),
|
|
16695
16696
|
"aria-valuetext": c,
|
|
16696
16697
|
"aria-label": s,
|
|
16697
16698
|
"aria-labelledby": i,
|
|
@@ -17028,7 +17029,7 @@ const $h = () => {
|
|
|
17028
17029
|
contentGap: g = "small",
|
|
17029
17030
|
alert: m,
|
|
17030
17031
|
role: b,
|
|
17031
|
-
"aria-label":
|
|
17032
|
+
"aria-label": f,
|
|
17032
17033
|
"aria-labelledby": x,
|
|
17033
17034
|
className: y = "",
|
|
17034
17035
|
style: w
|
|
@@ -17036,14 +17037,14 @@ const $h = () => {
|
|
|
17036
17037
|
const A = j2(e), k = p ? 0 : h ? "5vh 14vw" : "40px", I = p ? "0px" : h ? "14vw" : "40px", B = !!(c || a || l || s || i.length > 0), E = l ? c ? /* @__PURE__ */ n(ga.Input, { width: 120, height: 24 }) : /* @__PURE__ */ n(Xe, { color: "secondary", size: "small", children: l }) : null, V = c ? /* @__PURE__ */ n(ga.Input, { width: 200, height: 40 }) : a ? /* @__PURE__ */ v("div", { className: "flex items-center", style: { gap: 12 }, children: [
|
|
17037
17038
|
/* @__PURE__ */ n(a5, { children: a }),
|
|
17038
17039
|
o
|
|
17039
|
-
] }) : null,
|
|
17040
|
+
] }) : null, M = s ? c ? /* @__PURE__ */ n(ga.Input, { width: 120, height: 24 }) : /* @__PURE__ */ n(Xe, { color: "secondary", style: { lineHeight: 1.6 }, children: s }) : null;
|
|
17040
17041
|
return /* @__PURE__ */ v(
|
|
17041
17042
|
"main",
|
|
17042
17043
|
{
|
|
17043
17044
|
className: `${q2} ${y}`,
|
|
17044
17045
|
style: { borderRadius: U2, minHeight: X2, ...w },
|
|
17045
17046
|
role: b,
|
|
17046
|
-
"aria-label":
|
|
17047
|
+
"aria-label": f,
|
|
17047
17048
|
"aria-labelledby": x,
|
|
17048
17049
|
"aria-busy": c || void 0,
|
|
17049
17050
|
children: [
|
|
@@ -17101,7 +17102,7 @@ const $h = () => {
|
|
|
17101
17102
|
]
|
|
17102
17103
|
}
|
|
17103
17104
|
) : null,
|
|
17104
|
-
|
|
17105
|
+
M
|
|
17105
17106
|
] }) : null,
|
|
17106
17107
|
d
|
|
17107
17108
|
]
|
|
@@ -17147,7 +17148,7 @@ const Ku = () => /* @__PURE__ */ n(
|
|
|
17147
17148
|
className: i = "",
|
|
17148
17149
|
style: c
|
|
17149
17150
|
}) => {
|
|
17150
|
-
const d = R(null), h = R(null), p = R(null), g = l1(), [m, b] = Y(null),
|
|
17151
|
+
const d = R(null), h = R(null), p = R(null), g = l1(), [m, b] = Y(null), f = R(""), x = R(o);
|
|
17151
17152
|
if (Ye(() => {
|
|
17152
17153
|
x.current = o;
|
|
17153
17154
|
}), Ye(() => {
|
|
@@ -17166,25 +17167,25 @@ const Ku = () => /* @__PURE__ */ n(
|
|
|
17166
17167
|
};
|
|
17167
17168
|
}, [e, l]), Ye(() => {
|
|
17168
17169
|
if (!e || !l) {
|
|
17169
|
-
b(null),
|
|
17170
|
+
b(null), f.current = "";
|
|
17170
17171
|
return;
|
|
17171
17172
|
}
|
|
17172
17173
|
let w = 0;
|
|
17173
17174
|
const A = () => {
|
|
17174
|
-
var
|
|
17175
|
+
var T, z;
|
|
17175
17176
|
const k = l.current, I = k == null ? void 0 : k.getBoundingClientRect();
|
|
17176
17177
|
if (!I || Du(I, window.innerWidth, window.innerHeight)) {
|
|
17177
17178
|
x.current();
|
|
17178
17179
|
return;
|
|
17179
17180
|
}
|
|
17180
|
-
const B = ((
|
|
17181
|
-
N !==
|
|
17181
|
+
const B = ((T = d.current) == null ? void 0 : T.offsetWidth) ?? 0, E = ((z = d.current) == null ? void 0 : z.offsetHeight) ?? 0, { clientWidth: V, clientHeight: M } = document.documentElement, N = Ou(I, B, E, V, M);
|
|
17182
|
+
N !== f.current && (f.current = N, b(
|
|
17182
17183
|
Pu({
|
|
17183
17184
|
anchorRect: I,
|
|
17184
17185
|
chipWidth: B,
|
|
17185
17186
|
chipHeight: E,
|
|
17186
17187
|
viewportWidth: V,
|
|
17187
|
-
viewportHeight:
|
|
17188
|
+
viewportHeight: M
|
|
17188
17189
|
})
|
|
17189
17190
|
)), w = requestAnimationFrame(A);
|
|
17190
17191
|
};
|
|
@@ -17301,14 +17302,14 @@ const Ku = () => /* @__PURE__ */ n(
|
|
|
17301
17302
|
}) => {
|
|
17302
17303
|
const i = R(null), [c, d] = Y(e), [h, p] = Y(e), g = R(null), m = R(null);
|
|
17303
17304
|
return tt(i, Qu, Hu), ue(() => {
|
|
17304
|
-
var
|
|
17305
|
+
var f;
|
|
17305
17306
|
if (e)
|
|
17306
17307
|
d(!0), m.current && (clearTimeout(m.current), m.current = null), g.current = requestAnimationFrame(() => {
|
|
17307
17308
|
g.current = null, p(!0);
|
|
17308
17309
|
});
|
|
17309
17310
|
else {
|
|
17310
17311
|
const x = document.activeElement;
|
|
17311
|
-
x instanceof HTMLElement && ((
|
|
17312
|
+
x instanceof HTMLElement && ((f = i.current) != null && f.contains(x)) && x.blur(), p(!1), m.current = setTimeout(() => {
|
|
17312
17313
|
m.current = null, d(!1);
|
|
17313
17314
|
}, nl);
|
|
17314
17315
|
}
|
|
@@ -17339,14 +17340,14 @@ const Ku = () => /* @__PURE__ */ n(
|
|
|
17339
17340
|
{
|
|
17340
17341
|
"aria-hidden": "true",
|
|
17341
17342
|
className: "m-0 flex items-center gap-2 text-[13px] leading-[1.6] tracking-[0.13px]",
|
|
17342
|
-
children: t.map((
|
|
17343
|
+
children: t.map((f, x) => /* @__PURE__ */ v($e, { children: [
|
|
17343
17344
|
x > 0 && /* @__PURE__ */ n("span", { className: C2, children: "•" }),
|
|
17344
|
-
/* @__PURE__ */ n("span", { children: ll(
|
|
17345
|
-
] },
|
|
17345
|
+
/* @__PURE__ */ n("span", { children: ll(f) })
|
|
17346
|
+
] }, f.label))
|
|
17346
17347
|
}
|
|
17347
17348
|
),
|
|
17348
|
-
r.map((
|
|
17349
|
-
|
|
17349
|
+
r.map((f) => /* @__PURE__ */ v($e, { children: [
|
|
17350
|
+
f.dividerBefore && /* @__PURE__ */ n(
|
|
17350
17351
|
"span",
|
|
17351
17352
|
{
|
|
17352
17353
|
"aria-hidden": "true",
|
|
@@ -17358,18 +17359,18 @@ const Ku = () => /* @__PURE__ */ n(
|
|
|
17358
17359
|
"button",
|
|
17359
17360
|
{
|
|
17360
17361
|
type: "button",
|
|
17361
|
-
disabled:
|
|
17362
|
+
disabled: f.disabled,
|
|
17362
17363
|
tabIndex: h ? void 0 : -1,
|
|
17363
|
-
onClick:
|
|
17364
|
-
className: `${Yu} ${Z1}--${
|
|
17364
|
+
onClick: f.onClick,
|
|
17365
|
+
className: `${Yu} ${Z1}--${f.emphasis ?? "secondary"}`,
|
|
17365
17366
|
children: [
|
|
17366
|
-
|
|
17367
|
-
|
|
17368
|
-
|
|
17367
|
+
f.icon && f.iconPosition !== "end" && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "flex items-center", children: f.icon }),
|
|
17368
|
+
f.label,
|
|
17369
|
+
f.icon && f.iconPosition === "end" && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "flex items-center", children: f.icon })
|
|
17369
17370
|
]
|
|
17370
17371
|
}
|
|
17371
17372
|
)
|
|
17372
|
-
] },
|
|
17373
|
+
] }, f.label))
|
|
17373
17374
|
]
|
|
17374
17375
|
}
|
|
17375
17376
|
)
|
|
@@ -17498,7 +17499,7 @@ export {
|
|
|
17498
17499
|
zc as aF,
|
|
17499
17500
|
ru as aG,
|
|
17500
17501
|
$1 as aH,
|
|
17501
|
-
|
|
17502
|
+
C as aI,
|
|
17502
17503
|
Ip as aJ,
|
|
17503
17504
|
_t as aK,
|
|
17504
17505
|
Uc as aL,
|
|
@@ -17556,4 +17557,4 @@ export {
|
|
|
17556
17557
|
Cp as y,
|
|
17557
17558
|
W0 as z
|
|
17558
17559
|
};
|
|
17559
|
-
//# sourceMappingURL=index-
|
|
17560
|
+
//# sourceMappingURL=index-BscmsnkZ.js.map
|