@opencxh/ui-kit 3.137.1 → 3.137.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +132 -140
- package/dist/index.js.map +1 -1
- package/dist/src/action/Button.d.ts +1 -1
- package/dist/src/content/AssistantCard.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clsx as et } from "clsx";
|
|
2
2
|
import { jsxs as i, jsx as e, Fragment as ve } from "react/jsx-runtime";
|
|
3
|
-
import { VideoOff as tt, User as rt, MicOff as nt, Mic as st, X as we, ChevronDown as Se, ExternalLink as at, Calendar as lt, ChevronLeft as
|
|
3
|
+
import { VideoOff as tt, User as rt, MicOff as nt, Mic as st, X as we, ChevronDown as Se, ExternalLink as at, Calendar as lt, ChevronLeft as Ee, ChevronRight as ze, ChevronDownIcon as ot, Loader2 as ct, Search as Me, Check as Ie, ChevronUp as it, Ellipsis as dt, FileText as Te, HardDrive as Pe, ArrowLeft as ut, FolderPlus as mt, Upload as ft, Folder as je, Trash2 as ht, Plus as xt, Sparkles as bt, ImageOff as gt, Pencil as pt, ArrowUpRight as vt } from "lucide-react";
|
|
4
4
|
import oe, { useRef as se, useEffect as X, forwardRef as xe, useState as O, useLayoutEffect as yt, useMemo as pe, useCallback as he, createContext as Nt, Component as wt } from "react";
|
|
5
5
|
import kt from "dompurify";
|
|
6
6
|
import Ct from "react-markdown";
|
|
@@ -78,7 +78,7 @@ function hn({ attach: t, active: r = !0, mirrored: n = !1, className: s }) {
|
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const Et = {
|
|
82
82
|
primary: "bg-accent text-accent-fg hover:bg-accent-hover disabled:bg-surface-hover",
|
|
83
83
|
secondary: "bg-surface-sunk text-text-strong hover:bg-surface-hover disabled:bg-surface-hover",
|
|
84
84
|
// No resting fill, so no disabled fill either — a greyed-out plate where
|
|
@@ -91,7 +91,7 @@ const zt = {
|
|
|
91
91
|
success: "bg-success text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
|
|
92
92
|
warning: "bg-warning text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
|
|
93
93
|
"danger-solid": "bg-danger text-text-inverse hover:opacity-90 disabled:bg-surface-hover"
|
|
94
|
-
},
|
|
94
|
+
}, zt = {
|
|
95
95
|
xs: "h-control-xs px-2 text-xs",
|
|
96
96
|
sm: "h-control-sm px-3 text-sm",
|
|
97
97
|
md: "h-control-md px-4 text-sm",
|
|
@@ -138,8 +138,8 @@ const zt = {
|
|
|
138
138
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
139
139
|
"disabled:cursor-not-allowed disabled:border-border-subtle",
|
|
140
140
|
"disabled:text-text-disabled",
|
|
141
|
-
|
|
142
|
-
o ? Mt[r] :
|
|
141
|
+
Et[t],
|
|
142
|
+
o ? Mt[r] : zt[r],
|
|
143
143
|
(n || r === "full") && "w-full",
|
|
144
144
|
s && "cursor-wait",
|
|
145
145
|
m
|
|
@@ -664,7 +664,7 @@ const Ht = {
|
|
|
664
664
|
}
|
|
665
665
|
);
|
|
666
666
|
ye.displayName = "Checkbox";
|
|
667
|
-
const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }), Wt = () => /* @__PURE__ */ e(Q, { icon:
|
|
667
|
+
const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }), Wt = () => /* @__PURE__ */ e(Q, { icon: Ee, size: "md", color: "current" }), Kt = () => /* @__PURE__ */ e(Q, { icon: ze, size: "md", color: "current" }), Ae = xe(({
|
|
668
668
|
value: t,
|
|
669
669
|
onChange: r,
|
|
670
670
|
placeholder: n = "Select date",
|
|
@@ -886,31 +886,31 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
|
|
|
886
886
|
}, []);
|
|
887
887
|
const S = oe.useCallback(
|
|
888
888
|
(D, A) => D.some(
|
|
889
|
-
(
|
|
889
|
+
(z) => ke(z.value) === ke(A) || ke(z.label) === ke(A)
|
|
890
890
|
),
|
|
891
891
|
[]
|
|
892
892
|
), p = oe.useCallback(
|
|
893
893
|
(D, A) => {
|
|
894
|
-
const
|
|
894
|
+
const z = [...D], F = (j) => {
|
|
895
895
|
const B = (j ?? "").trim();
|
|
896
|
-
B && (S(
|
|
896
|
+
B && (S(z, B) || z.push({ value: B, label: B }));
|
|
897
897
|
};
|
|
898
|
-
return Array.isArray(A) ? A.forEach(F) : F(A),
|
|
898
|
+
return Array.isArray(A) ? A.forEach(F) : F(A), z;
|
|
899
899
|
},
|
|
900
900
|
[S]
|
|
901
901
|
);
|
|
902
902
|
oe.useEffect(() => {
|
|
903
903
|
c((D) => {
|
|
904
904
|
const A = [...o];
|
|
905
|
-
return D.forEach((
|
|
906
|
-
!S(A,
|
|
905
|
+
return D.forEach((z) => {
|
|
906
|
+
!S(A, z.value) && !S(A, z.label) && A.push(z);
|
|
907
907
|
}), p(A, k);
|
|
908
908
|
});
|
|
909
909
|
}, [o, k, p, S]);
|
|
910
910
|
const _ = (D) => {
|
|
911
911
|
if (v) {
|
|
912
|
-
const A = Array.isArray(k) ? k : [],
|
|
913
|
-
g?.(
|
|
912
|
+
const A = Array.isArray(k) ? k : [], z = A.includes(D) ? A.filter((F) => F !== D) : [...A, D];
|
|
913
|
+
g?.(z);
|
|
914
914
|
} else
|
|
915
915
|
g?.(D), I(!1), te("");
|
|
916
916
|
}, N = v ? null : w.find((D) => D.value === k), U = v ? w.filter(
|
|
@@ -920,15 +920,15 @@ const Ut = () => /* @__PURE__ */ e(Q, { icon: lt, size: "md", color: "current" }
|
|
|
920
920
|
) : w, ee = !!f && !!b && !!H.trim() && !S(w, H), Y = (D) => {
|
|
921
921
|
const A = D.trim();
|
|
922
922
|
if (!A) return;
|
|
923
|
-
const
|
|
923
|
+
const z = $?.(A) ?? {
|
|
924
924
|
value: A,
|
|
925
925
|
label: A
|
|
926
926
|
};
|
|
927
|
-
if (S(w,
|
|
928
|
-
_(
|
|
927
|
+
if (S(w, z.value) || S(w, z.label)) {
|
|
928
|
+
_(z.value), te(""), v || I(!1);
|
|
929
929
|
return;
|
|
930
930
|
}
|
|
931
|
-
c((F) => [...F,
|
|
931
|
+
c((F) => [...F, z]), _(z.value), te(""), v || I(!1);
|
|
932
932
|
}, P = () => v ? U.length > 0 ? U.map((D) => D.label).join(", ") : u || "Select options" : N?.label || u || "Select an option";
|
|
933
933
|
return /* @__PURE__ */ i(
|
|
934
934
|
"div",
|
|
@@ -1822,7 +1822,7 @@ const nr = ({
|
|
|
1822
1822
|
variant: "secondary",
|
|
1823
1823
|
onClick: r,
|
|
1824
1824
|
"aria-label": n,
|
|
1825
|
-
leftIcon: /* @__PURE__ */ e(Q, { icon:
|
|
1825
|
+
leftIcon: /* @__PURE__ */ e(Q, { icon: Ee, size: "sm" }),
|
|
1826
1826
|
iconOnly: !0
|
|
1827
1827
|
}
|
|
1828
1828
|
),
|
|
@@ -1852,7 +1852,6 @@ const cr = (t) => {
|
|
|
1852
1852
|
return /* @__PURE__ */ e(
|
|
1853
1853
|
Ae,
|
|
1854
1854
|
{
|
|
1855
|
-
size: "sm",
|
|
1856
1855
|
value: t.value,
|
|
1857
1856
|
onChange: (u) => t.onChange(u),
|
|
1858
1857
|
placeholder: t.placeholder || t.label,
|
|
@@ -1932,74 +1931,74 @@ const cr = (t) => {
|
|
|
1932
1931
|
page: 0,
|
|
1933
1932
|
pageSize: x
|
|
1934
1933
|
}), N = se(null), U = pe(() => {
|
|
1935
|
-
let
|
|
1934
|
+
let E = t;
|
|
1936
1935
|
if (s && !K && ce.trim()) {
|
|
1937
1936
|
const W = r.filter(
|
|
1938
1937
|
(ie) => ie.searchable !== !1
|
|
1939
1938
|
), le = ce.toLowerCase();
|
|
1940
|
-
|
|
1939
|
+
E = E.filter((ie) => W.some((R) => {
|
|
1941
1940
|
const ue = typeof R.accessor == "function" ? R.accessor(ie) : ie[R.accessor];
|
|
1942
1941
|
return String(ue || "").toLowerCase().includes(le);
|
|
1943
1942
|
}));
|
|
1944
1943
|
}
|
|
1945
1944
|
return u.forEach((W) => {
|
|
1946
|
-
W.value && W.value !== "all" && (
|
|
1945
|
+
W.value && W.value !== "all" && (E = E.filter((le) => {
|
|
1947
1946
|
const ie = r.find((ue) => ue.id === W.id);
|
|
1948
1947
|
if (!ie) return !0;
|
|
1949
1948
|
const R = typeof ie.accessor == "function" ? ie.accessor(le) : le[ie.accessor];
|
|
1950
1949
|
return String(R || "") === W.value;
|
|
1951
1950
|
}));
|
|
1952
|
-
}),
|
|
1951
|
+
}), E;
|
|
1953
1952
|
}, [t, ce, K, r, s, u]), re = pe(() => {
|
|
1954
1953
|
if (!c.column || !c.direction) return U;
|
|
1955
|
-
const
|
|
1956
|
-
return
|
|
1957
|
-
const ie = typeof
|
|
1954
|
+
const E = r.find((W) => W.id === c.column);
|
|
1955
|
+
return E ? [...U].sort((W, le) => {
|
|
1956
|
+
const ie = typeof E.accessor == "function" ? E.accessor(W) : W[E.accessor], R = typeof E.accessor == "function" ? E.accessor(le) : le[E.accessor];
|
|
1958
1957
|
let ue = 0;
|
|
1959
1958
|
return ie < R ? ue = -1 : ie > R && (ue = 1), c.direction === "desc" ? -ue : ue;
|
|
1960
1959
|
}) : U;
|
|
1961
1960
|
}, [U, c, r]), ee = pe(() => {
|
|
1962
1961
|
if (!y) return re;
|
|
1963
|
-
const
|
|
1964
|
-
return re.slice(
|
|
1962
|
+
const E = p.page * p.pageSize, W = E + p.pageSize;
|
|
1963
|
+
return re.slice(E, W);
|
|
1965
1964
|
}, [re, p, y]), Y = he(
|
|
1966
|
-
(
|
|
1967
|
-
r.find((le) => le.id ===
|
|
1965
|
+
(E) => {
|
|
1966
|
+
r.find((le) => le.id === E)?.sortable && S((le) => le.column !== E ? { column: E, direction: "asc" } : le.direction === "asc" ? { column: E, direction: "desc" } : { column: null, direction: null });
|
|
1968
1967
|
},
|
|
1969
1968
|
[r]
|
|
1970
|
-
), P = he((
|
|
1971
|
-
_((W) => ({ ...W, page:
|
|
1969
|
+
), P = he((E) => {
|
|
1970
|
+
_((W) => ({ ...W, page: E }));
|
|
1972
1971
|
}, []), D = he(
|
|
1973
|
-
(
|
|
1972
|
+
(E, W) => {
|
|
1974
1973
|
if (!g) return;
|
|
1975
|
-
const le = f(
|
|
1976
|
-
g(W ? [...k,
|
|
1974
|
+
const le = f(E, 0);
|
|
1975
|
+
g(W ? [...k, E] : k.filter(
|
|
1977
1976
|
(ie, R) => f(k[R], R) !== le
|
|
1978
1977
|
));
|
|
1979
1978
|
},
|
|
1980
1979
|
[k, g, f]
|
|
1981
1980
|
), A = he(
|
|
1982
|
-
(
|
|
1983
|
-
g && g(
|
|
1981
|
+
(E) => {
|
|
1982
|
+
g && g(E ? [...ee] : []);
|
|
1984
1983
|
},
|
|
1985
1984
|
[ee, g]
|
|
1986
1985
|
);
|
|
1987
1986
|
X(() => {
|
|
1988
|
-
_((
|
|
1987
|
+
_((E) => ({ ...E, page: 0 }));
|
|
1989
1988
|
}, [ce, c]), X(() => {
|
|
1990
|
-
_((
|
|
1991
|
-
}, [u.map((
|
|
1992
|
-
const
|
|
1993
|
-
const W = f(
|
|
1989
|
+
_((E) => ({ ...E, page: 0 }));
|
|
1990
|
+
}, [u.map((E) => E.value).join(",")]);
|
|
1991
|
+
const z = re.length, F = Math.ceil(z / p.pageSize), j = p.page * p.pageSize + 1, B = Math.min(j + p.pageSize - 1, z), M = ee.length > 0 && ee.every((E) => {
|
|
1992
|
+
const W = f(E, 0);
|
|
1994
1993
|
return k.some(
|
|
1995
1994
|
(le, ie) => f(le, ie) === W
|
|
1996
1995
|
);
|
|
1997
|
-
}), L = ee.some((
|
|
1998
|
-
const W = f(
|
|
1996
|
+
}), L = ee.some((E) => {
|
|
1997
|
+
const W = f(E, 0);
|
|
1999
1998
|
return k.some(
|
|
2000
1999
|
(le, ie) => f(le, ie) === W
|
|
2001
2000
|
);
|
|
2002
|
-
}), Z = ar[G], ne = H ? "bg-surface-sunk" : "bg-surface", de = d("text-text", Z), be = s || u.length > 0 || m.length > 0, fe = y &&
|
|
2001
|
+
}), Z = ar[G], ne = H ? "bg-surface-sunk" : "bg-surface", de = d("text-text", Z), be = s || u.length > 0 || m.length > 0, fe = y && z > 0, De = fe || C !== void 0;
|
|
2003
2002
|
return /* @__PURE__ */ i("div", { className: d("flex min-w-0 flex-col", V), children: [
|
|
2004
2003
|
be && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
|
|
2005
2004
|
s && /* @__PURE__ */ e(
|
|
@@ -2011,7 +2010,7 @@ const cr = (t) => {
|
|
|
2011
2010
|
containerClassName: "w-full sm:w-66"
|
|
2012
2011
|
}
|
|
2013
2012
|
),
|
|
2014
|
-
u.map((
|
|
2013
|
+
u.map((E) => /* @__PURE__ */ e(cr, { ...E }, E.id)),
|
|
2015
2014
|
m.length > 0 && /* @__PURE__ */ e(Je, { actions: m, className: "ml-auto" })
|
|
2016
2015
|
] }),
|
|
2017
2016
|
/* @__PURE__ */ i("div", { className: "relative w-full overflow-x-auto rounded-lg ring-1 ring-border", children: [
|
|
@@ -2031,11 +2030,11 @@ const cr = (t) => {
|
|
|
2031
2030
|
size: "sm",
|
|
2032
2031
|
checked: M,
|
|
2033
2032
|
indeterminate: L && !M,
|
|
2034
|
-
onChange: (
|
|
2033
|
+
onChange: (E) => A(E.target.checked),
|
|
2035
2034
|
"aria-label": "Select all rows"
|
|
2036
2035
|
}
|
|
2037
2036
|
) }),
|
|
2038
|
-
!n && r.map((
|
|
2037
|
+
!n && r.map((E) => /* @__PURE__ */ e(
|
|
2039
2038
|
"th",
|
|
2040
2039
|
{
|
|
2041
2040
|
className: d(
|
|
@@ -2043,32 +2042,32 @@ const cr = (t) => {
|
|
|
2043
2042
|
"text-xs font-semibold uppercase tracking-label text-text-muted",
|
|
2044
2043
|
"group",
|
|
2045
2044
|
{
|
|
2046
|
-
"text-left":
|
|
2047
|
-
"text-center":
|
|
2048
|
-
"text-right":
|
|
2049
|
-
"cursor-pointer select-none":
|
|
2050
|
-
[`sticky left-0 ${ne}`]:
|
|
2051
|
-
[`sticky right-0 ${ne}`]:
|
|
2045
|
+
"text-left": E.align === "left" || !E.align,
|
|
2046
|
+
"text-center": E.align === "center",
|
|
2047
|
+
"text-right": E.align === "right",
|
|
2048
|
+
"cursor-pointer select-none": E.sortable,
|
|
2049
|
+
[`sticky left-0 ${ne}`]: E.sticky === "left",
|
|
2050
|
+
[`sticky right-0 ${ne}`]: E.sticky === "right"
|
|
2052
2051
|
}
|
|
2053
2052
|
),
|
|
2054
|
-
style: { width:
|
|
2055
|
-
onClick: () =>
|
|
2053
|
+
style: { width: E.width },
|
|
2054
|
+
onClick: () => E.sortable && Y(E.id),
|
|
2056
2055
|
children: /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
|
|
2057
|
-
|
|
2058
|
-
|
|
2056
|
+
E.headerCell ? E.headerCell() : E.header,
|
|
2057
|
+
E.sortable && /* @__PURE__ */ e(
|
|
2059
2058
|
Q,
|
|
2060
2059
|
{
|
|
2061
|
-
icon: c.column ===
|
|
2060
|
+
icon: c.column === E.id && c.direction === "desc" ? Se : it,
|
|
2062
2061
|
size: "xs",
|
|
2063
2062
|
className: d(
|
|
2064
2063
|
"transition-opacity duration-fast ease-out",
|
|
2065
|
-
c.column ===
|
|
2064
|
+
c.column === E.id ? "text-text opacity-100" : "text-text-subtle opacity-0 group-hover:opacity-100"
|
|
2066
2065
|
)
|
|
2067
2066
|
}
|
|
2068
2067
|
)
|
|
2069
2068
|
] })
|
|
2070
2069
|
},
|
|
2071
|
-
|
|
2070
|
+
E.id
|
|
2072
2071
|
)),
|
|
2073
2072
|
h.length > 0 && /* @__PURE__ */ e("th", { className: d(de, "w-10"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
|
|
2074
2073
|
] }) }),
|
|
@@ -2082,8 +2081,8 @@ const cr = (t) => {
|
|
|
2082
2081
|
),
|
|
2083
2082
|
children: $ || "No data available"
|
|
2084
2083
|
}
|
|
2085
|
-
) }) : ee.map((
|
|
2086
|
-
const le = f(
|
|
2084
|
+
) }) : ee.map((E, W) => {
|
|
2085
|
+
const le = f(E, W), ie = k.some(
|
|
2087
2086
|
(R, ue) => f(R, ue) === le
|
|
2088
2087
|
);
|
|
2089
2088
|
return /* @__PURE__ */ i(
|
|
@@ -2097,10 +2096,10 @@ const cr = (t) => {
|
|
|
2097
2096
|
T && "transition-colors duration-fast ease-out hover:bg-surface-hover",
|
|
2098
2097
|
b && "cursor-pointer",
|
|
2099
2098
|
ie && "bg-accent-soft",
|
|
2100
|
-
I?.(
|
|
2099
|
+
I?.(E, W)
|
|
2101
2100
|
),
|
|
2102
2101
|
onClick: (R) => {
|
|
2103
|
-
R.stopPropagation(), b?.(
|
|
2102
|
+
R.stopPropagation(), b?.(E, W);
|
|
2104
2103
|
},
|
|
2105
2104
|
children: [
|
|
2106
2105
|
v && /* @__PURE__ */ e("td", { className: de, children: /* @__PURE__ */ e(
|
|
@@ -2110,13 +2109,13 @@ const cr = (t) => {
|
|
|
2110
2109
|
checked: ie,
|
|
2111
2110
|
onClick: (R) => R.stopPropagation(),
|
|
2112
2111
|
onChange: (R) => {
|
|
2113
|
-
R.stopPropagation(), D(
|
|
2112
|
+
R.stopPropagation(), D(E, R.target.checked);
|
|
2114
2113
|
},
|
|
2115
2114
|
"aria-label": "Select row"
|
|
2116
2115
|
}
|
|
2117
2116
|
) }),
|
|
2118
2117
|
r.map((R) => {
|
|
2119
|
-
const ue = typeof R.accessor == "function" ? R.accessor(
|
|
2118
|
+
const ue = typeof R.accessor == "function" ? R.accessor(E) : E[R.accessor];
|
|
2120
2119
|
return /* @__PURE__ */ e(
|
|
2121
2120
|
"td",
|
|
2122
2121
|
{
|
|
@@ -2127,7 +2126,7 @@ const cr = (t) => {
|
|
|
2127
2126
|
"sticky left-0 bg-surface": R.sticky === "left",
|
|
2128
2127
|
"sticky right-0 bg-surface": R.sticky === "right"
|
|
2129
2128
|
}),
|
|
2130
|
-
children: R.cell ? R.cell(ue,
|
|
2129
|
+
children: R.cell ? R.cell(ue, E, W) : String(ue || "")
|
|
2131
2130
|
},
|
|
2132
2131
|
R.id
|
|
2133
2132
|
);
|
|
@@ -2141,13 +2140,13 @@ const cr = (t) => {
|
|
|
2141
2140
|
value: R.id,
|
|
2142
2141
|
label: R.label,
|
|
2143
2142
|
icon: R.icon,
|
|
2144
|
-
disabled: R.disabled?.(
|
|
2143
|
+
disabled: R.disabled?.(E)
|
|
2145
2144
|
})),
|
|
2146
2145
|
onSelect: (R) => {
|
|
2147
2146
|
const ue = h.find(
|
|
2148
2147
|
(Qe) => Qe.id === R
|
|
2149
2148
|
);
|
|
2150
|
-
ue && ue.onClick(
|
|
2149
|
+
ue && ue.onClick(E, W);
|
|
2151
2150
|
},
|
|
2152
2151
|
placement: "bottom-end"
|
|
2153
2152
|
}
|
|
@@ -2160,7 +2159,7 @@ const cr = (t) => {
|
|
|
2160
2159
|
] })
|
|
2161
2160
|
] }),
|
|
2162
2161
|
De && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
|
|
2163
|
-
/* @__PURE__ */ e("span", { className: "min-w-0 flex-1", children: C ?? `Showing ${j}–${B} of ${
|
|
2162
|
+
/* @__PURE__ */ e("span", { className: "min-w-0 flex-1", children: C ?? `Showing ${j}–${B} of ${z}` }),
|
|
2164
2163
|
fe && /* @__PURE__ */ i("div", { className: "flex items-center gap-0.5", children: [
|
|
2165
2164
|
/* @__PURE__ */ e(
|
|
2166
2165
|
ae,
|
|
@@ -2171,25 +2170,25 @@ const cr = (t) => {
|
|
|
2171
2170
|
"aria-label": "Previous page",
|
|
2172
2171
|
onClick: () => P(p.page - 1),
|
|
2173
2172
|
disabled: p.page === 0,
|
|
2174
|
-
children: /* @__PURE__ */ e(Q, { icon:
|
|
2173
|
+
children: /* @__PURE__ */ e(Q, { icon: Ee, size: "md", color: "current" })
|
|
2175
2174
|
}
|
|
2176
2175
|
),
|
|
2177
2176
|
or(p.page, F).map(
|
|
2178
|
-
(
|
|
2177
|
+
(E, W) => E === "gap" ? /* @__PURE__ */ e("span", { className: "px-1 text-text-subtle", children: "…" }, `gap-${W}`) : /* @__PURE__ */ e(
|
|
2179
2178
|
"button",
|
|
2180
2179
|
{
|
|
2181
2180
|
type: "button",
|
|
2182
|
-
"aria-current":
|
|
2183
|
-
onClick: () => P(
|
|
2181
|
+
"aria-current": E === p.page ? "page" : void 0,
|
|
2182
|
+
onClick: () => P(E),
|
|
2184
2183
|
className: d(
|
|
2185
2184
|
"h-control-xs min-w-6 cursor-pointer rounded-sm px-1.5 tabular-nums",
|
|
2186
2185
|
"transition-colors duration-fast ease-out",
|
|
2187
2186
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
2188
|
-
|
|
2187
|
+
E === p.page ? "bg-surface-sunk font-semibold text-text" : "text-text-muted hover:bg-surface-hover hover:text-text"
|
|
2189
2188
|
),
|
|
2190
|
-
children:
|
|
2189
|
+
children: E + 1
|
|
2191
2190
|
},
|
|
2192
|
-
|
|
2191
|
+
E
|
|
2193
2192
|
)
|
|
2194
2193
|
),
|
|
2195
2194
|
/* @__PURE__ */ e(
|
|
@@ -2201,7 +2200,7 @@ const cr = (t) => {
|
|
|
2201
2200
|
"aria-label": "Next page",
|
|
2202
2201
|
onClick: () => P(p.page + 1),
|
|
2203
2202
|
disabled: p.page >= F - 1,
|
|
2204
|
-
children: /* @__PURE__ */ e(Q, { icon:
|
|
2203
|
+
children: /* @__PURE__ */ e(Q, { icon: ze, size: "md", color: "current" })
|
|
2205
2204
|
}
|
|
2206
2205
|
)
|
|
2207
2206
|
] })
|
|
@@ -2617,7 +2616,7 @@ const pr = ({
|
|
|
2617
2616
|
};
|
|
2618
2617
|
}, [T, C]), A = (M) => {
|
|
2619
2618
|
q((L) => `${L}${M}/`);
|
|
2620
|
-
},
|
|
2619
|
+
}, z = () => {
|
|
2621
2620
|
const M = C.split("/").filter((L) => L !== "");
|
|
2622
2621
|
M.pop(), M.length === 0 ? q("/") : q(`${M.join("/")}/`);
|
|
2623
2622
|
}, F = pe(() => {
|
|
@@ -2667,7 +2666,6 @@ const pr = ({
|
|
|
2667
2666
|
cell: (M, L) => /* @__PURE__ */ e(
|
|
2668
2667
|
ae,
|
|
2669
2668
|
{
|
|
2670
|
-
size: "sm",
|
|
2671
2669
|
variant: "outline",
|
|
2672
2670
|
onClick: (Z) => {
|
|
2673
2671
|
Z.stopPropagation(), L.type === "folder" ? A(L.name) : Y(L);
|
|
@@ -2692,7 +2690,7 @@ const pr = ({
|
|
|
2692
2690
|
header: "",
|
|
2693
2691
|
accessor: "id",
|
|
2694
2692
|
align: "right",
|
|
2695
|
-
cell: (M, L) => /* @__PURE__ */ e(ae, {
|
|
2693
|
+
cell: (M, L) => /* @__PURE__ */ e(ae, { variant: "outline", onClick: () => $(L), children: "Open" })
|
|
2696
2694
|
}
|
|
2697
2695
|
];
|
|
2698
2696
|
return /* @__PURE__ */ i("div", { className: "space-y-1", children: [
|
|
@@ -2745,9 +2743,8 @@ const pr = ({
|
|
|
2745
2743
|
ae,
|
|
2746
2744
|
{
|
|
2747
2745
|
variant: "ghost",
|
|
2748
|
-
size: "sm",
|
|
2749
2746
|
onClick: () => {
|
|
2750
|
-
C && C !== "/" ?
|
|
2747
|
+
C && C !== "/" ? z() : $(null);
|
|
2751
2748
|
},
|
|
2752
2749
|
leftIcon: /* @__PURE__ */ e(Q, { icon: ut, size: "xs" }),
|
|
2753
2750
|
children: C ? "Back" : "Back to Mounts"
|
|
@@ -2761,8 +2758,7 @@ const pr = ({
|
|
|
2761
2758
|
value: H,
|
|
2762
2759
|
onChange: (M) => te(M.target.value),
|
|
2763
2760
|
startIcon: /* @__PURE__ */ e(Me, { size: 14 }),
|
|
2764
|
-
fullWidth: !0
|
|
2765
|
-
size: "sm"
|
|
2761
|
+
fullWidth: !0
|
|
2766
2762
|
}
|
|
2767
2763
|
) }),
|
|
2768
2764
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
|
|
@@ -2770,7 +2766,6 @@ const pr = ({
|
|
|
2770
2766
|
ae,
|
|
2771
2767
|
{
|
|
2772
2768
|
variant: "outline",
|
|
2773
|
-
size: "sm",
|
|
2774
2769
|
onClick: () => w(!0),
|
|
2775
2770
|
leftIcon: /* @__PURE__ */ e(Q, { icon: mt, size: "xs" }),
|
|
2776
2771
|
children: "New Folder"
|
|
@@ -2780,7 +2775,6 @@ const pr = ({
|
|
|
2780
2775
|
ae,
|
|
2781
2776
|
{
|
|
2782
2777
|
variant: "primary",
|
|
2783
|
-
size: "sm",
|
|
2784
2778
|
onClick: () => p.current?.click(),
|
|
2785
2779
|
leftIcon: /* @__PURE__ */ e(Q, { icon: ft, size: "xs" }),
|
|
2786
2780
|
loading: V,
|
|
@@ -2804,15 +2798,14 @@ const pr = ({
|
|
|
2804
2798
|
/* @__PURE__ */ e(
|
|
2805
2799
|
Ne,
|
|
2806
2800
|
{
|
|
2807
|
-
size: "sm",
|
|
2808
2801
|
placeholder: "Folder name",
|
|
2809
2802
|
value: c,
|
|
2810
2803
|
onChange: (M) => S(M.target.value),
|
|
2811
2804
|
autoFocus: !0
|
|
2812
2805
|
}
|
|
2813
2806
|
),
|
|
2814
|
-
/* @__PURE__ */ e(ae, {
|
|
2815
|
-
/* @__PURE__ */ e(ae, {
|
|
2807
|
+
/* @__PURE__ */ e(ae, { onClick: ee, loading: V, children: "Create" }),
|
|
2808
|
+
/* @__PURE__ */ e(ae, { variant: "ghost", onClick: () => w(!1), children: "Cancel" })
|
|
2816
2809
|
] }),
|
|
2817
2810
|
/* @__PURE__ */ e("div", { className: "max-h-100 overflow-auto rounded-lg border border-border", children: /* @__PURE__ */ e(
|
|
2818
2811
|
Fe,
|
|
@@ -3261,16 +3254,16 @@ const Nn = ({
|
|
|
3261
3254
|
N.filter((D, A) => A !== P)
|
|
3262
3255
|
);
|
|
3263
3256
|
}, Y = (P, D, A) => {
|
|
3264
|
-
const
|
|
3265
|
-
|
|
3266
|
-
...
|
|
3257
|
+
const z = [...N];
|
|
3258
|
+
z[P] = {
|
|
3259
|
+
...z[P],
|
|
3267
3260
|
[D]: A
|
|
3268
|
-
}, I(w.name,
|
|
3261
|
+
}, I(w.name, z);
|
|
3269
3262
|
};
|
|
3270
3263
|
return /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
|
|
3271
3264
|
N.map((P, D) => /* @__PURE__ */ i("div", { className: "flex items-start gap-2", children: [
|
|
3272
3265
|
/* @__PURE__ */ e("div", { className: "grid flex-1 gap-2 sm:grid-cols-2", children: w.arrayFields?.map((A) => {
|
|
3273
|
-
const
|
|
3266
|
+
const z = U?.[D]?.[A.name];
|
|
3274
3267
|
return /* @__PURE__ */ i(
|
|
3275
3268
|
"div",
|
|
3276
3269
|
{
|
|
@@ -3306,7 +3299,7 @@ const Nn = ({
|
|
|
3306
3299
|
),
|
|
3307
3300
|
type: A.textType || A.type,
|
|
3308
3301
|
autoComplete: A.autocomplete,
|
|
3309
|
-
error:
|
|
3302
|
+
error: z,
|
|
3310
3303
|
size: h
|
|
3311
3304
|
}
|
|
3312
3305
|
);
|
|
@@ -3321,7 +3314,7 @@ const Nn = ({
|
|
|
3321
3314
|
j.target.value
|
|
3322
3315
|
),
|
|
3323
3316
|
rows: 4,
|
|
3324
|
-
error:
|
|
3317
|
+
error: z,
|
|
3325
3318
|
size: h
|
|
3326
3319
|
}
|
|
3327
3320
|
);
|
|
@@ -3344,7 +3337,7 @@ const Nn = ({
|
|
|
3344
3337
|
searchable: A.searchable,
|
|
3345
3338
|
multiple: A.multiple,
|
|
3346
3339
|
allowCreate: A.allowCreate,
|
|
3347
|
-
error:
|
|
3340
|
+
error: z,
|
|
3348
3341
|
size: h
|
|
3349
3342
|
}
|
|
3350
3343
|
);
|
|
@@ -3413,7 +3406,7 @@ const Nn = ({
|
|
|
3413
3406
|
A.name,
|
|
3414
3407
|
j
|
|
3415
3408
|
),
|
|
3416
|
-
error:
|
|
3409
|
+
error: z,
|
|
3417
3410
|
disabled: p
|
|
3418
3411
|
});
|
|
3419
3412
|
// Add other field types here as needed
|
|
@@ -3425,7 +3418,7 @@ const Nn = ({
|
|
|
3425
3418
|
] });
|
|
3426
3419
|
}
|
|
3427
3420
|
})(),
|
|
3428
|
-
|
|
3421
|
+
z && /* @__PURE__ */ e("p", { className: "text-xs text-danger-fg", children: z })
|
|
3429
3422
|
]
|
|
3430
3423
|
},
|
|
3431
3424
|
A.name
|
|
@@ -3451,7 +3444,6 @@ const Nn = ({
|
|
|
3451
3444
|
{
|
|
3452
3445
|
type: "button",
|
|
3453
3446
|
variant: "secondary",
|
|
3454
|
-
size: "sm",
|
|
3455
3447
|
leftIcon: /* @__PURE__ */ e(xt, { className: "size-icon-sm" }),
|
|
3456
3448
|
onClick: re,
|
|
3457
3449
|
disabled: p,
|
|
@@ -3673,7 +3665,7 @@ function kn({
|
|
|
3673
3665
|
}
|
|
3674
3666
|
);
|
|
3675
3667
|
}
|
|
3676
|
-
const
|
|
3668
|
+
const Er = {
|
|
3677
3669
|
neutral: "bg-surface-hover text-text-muted",
|
|
3678
3670
|
success: "bg-success-soft text-success-fg"
|
|
3679
3671
|
};
|
|
@@ -3697,7 +3689,7 @@ function Cn({
|
|
|
3697
3689
|
),
|
|
3698
3690
|
...u,
|
|
3699
3691
|
children: [
|
|
3700
|
-
t != null && /* @__PURE__ */ e("span", { className: d("flex size-disc items-center justify-center rounded-full text-2xl",
|
|
3692
|
+
t != null && /* @__PURE__ */ e("span", { className: d("flex size-disc items-center justify-center rounded-full text-2xl", Er[r]), children: t }),
|
|
3701
3693
|
/* @__PURE__ */ e("div", { className: "text-lg font-semibold text-text", children: n }),
|
|
3702
3694
|
s && /* @__PURE__ */ e("div", { className: "max-w-sm text-sm leading-relaxed text-text-muted", children: s }),
|
|
3703
3695
|
a && /* @__PURE__ */ e("div", { className: "flex gap-2 pt-1.5", children: a })
|
|
@@ -3718,14 +3710,14 @@ function Sn({ children: t, className: r, ...n }) {
|
|
|
3718
3710
|
}
|
|
3719
3711
|
);
|
|
3720
3712
|
}
|
|
3721
|
-
const
|
|
3713
|
+
const zr = {
|
|
3722
3714
|
sm: "h-1",
|
|
3723
3715
|
md: "h-1.5"
|
|
3724
3716
|
}, Mr = {
|
|
3725
3717
|
accent: "bg-accent",
|
|
3726
3718
|
success: "bg-success"
|
|
3727
3719
|
};
|
|
3728
|
-
function
|
|
3720
|
+
function En({ value: t, variant: r = "accent", size: n = "md", className: s, ...a }) {
|
|
3729
3721
|
const l = Math.max(0, Math.min(100, t));
|
|
3730
3722
|
return /* @__PURE__ */ e(
|
|
3731
3723
|
"div",
|
|
@@ -3734,7 +3726,7 @@ function zn({ value: t, variant: r = "accent", size: n = "md", className: s, ...
|
|
|
3734
3726
|
"aria-valuenow": Math.round(l),
|
|
3735
3727
|
"aria-valuemin": 0,
|
|
3736
3728
|
"aria-valuemax": 100,
|
|
3737
|
-
className: d("w-full overflow-hidden rounded-full bg-surface-hover",
|
|
3729
|
+
className: d("w-full overflow-hidden rounded-full bg-surface-hover", zr[n], s),
|
|
3738
3730
|
...a,
|
|
3739
3731
|
children: /* @__PURE__ */ e(
|
|
3740
3732
|
"div",
|
|
@@ -3764,7 +3756,7 @@ const $r = {
|
|
|
3764
3756
|
lg: "text-base",
|
|
3765
3757
|
xl: "text-lg"
|
|
3766
3758
|
};
|
|
3767
|
-
function
|
|
3759
|
+
function zn({
|
|
3768
3760
|
size: t = "md",
|
|
3769
3761
|
variant: r = "primary",
|
|
3770
3762
|
label: n = "Loading...",
|
|
@@ -4152,28 +4144,28 @@ function In({
|
|
|
4152
4144
|
}) {
|
|
4153
4145
|
const [w, c] = oe.useState(
|
|
4154
4146
|
() => Object.fromEntries(
|
|
4155
|
-
(b ?? []).filter((
|
|
4147
|
+
(b ?? []).filter((z) => z.defaultCollapsed).map((z) => [z.id, !0])
|
|
4156
4148
|
)
|
|
4157
|
-
), S = oe.useRef(null), p = (
|
|
4158
|
-
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
4149
|
+
), S = oe.useRef(null), p = (z) => {
|
|
4150
|
+
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(z.key)) return;
|
|
4159
4151
|
const j = Array.from(
|
|
4160
4152
|
S.current?.querySelectorAll("li[data-list-row]") ?? []
|
|
4161
4153
|
);
|
|
4162
4154
|
if (j.length === 0) return;
|
|
4163
|
-
|
|
4164
|
-
const B = j.indexOf(document.activeElement), M =
|
|
4155
|
+
z.preventDefault();
|
|
4156
|
+
const B = j.indexOf(document.activeElement), M = z.key === "Home" ? 0 : z.key === "End" ? j.length - 1 : z.key === "ArrowDown" ? (B + 1) % j.length : (B - 1 + j.length) % j.length;
|
|
4165
4157
|
j[M]?.focus();
|
|
4166
|
-
}, _ = (
|
|
4158
|
+
}, _ = (z, F) => r ? r(z, F) : F, N = (z) => C.includes(z), U = (z, F) => {
|
|
4167
4159
|
q && q(
|
|
4168
|
-
F ? [...C,
|
|
4160
|
+
F ? [...C, z] : C.filter((j) => j !== z)
|
|
4169
4161
|
);
|
|
4170
|
-
}, re = (
|
|
4162
|
+
}, re = (z) => q?.(z ? [...t] : []), ee = d(
|
|
4171
4163
|
"flex flex-col",
|
|
4172
4164
|
I && "overflow-hidden rounded-lg border border-border-subtle",
|
|
4173
4165
|
K
|
|
4174
4166
|
);
|
|
4175
4167
|
if (te)
|
|
4176
|
-
return /* @__PURE__ */ e("div", { className: ee, children: Array.from({ length: J }).map((
|
|
4168
|
+
return /* @__PURE__ */ e("div", { className: ee, children: Array.from({ length: J }).map((z, F) => /* @__PURE__ */ i(
|
|
4177
4169
|
"div",
|
|
4178
4170
|
{
|
|
4179
4171
|
className: d(
|
|
@@ -4191,8 +4183,8 @@ function In({
|
|
|
4191
4183
|
)) });
|
|
4192
4184
|
if (t.length === 0 && H)
|
|
4193
4185
|
return /* @__PURE__ */ e("div", { className: ee, children: H });
|
|
4194
|
-
const Y = t.length > 0 && C.length === t.length, P = C.length > 0 && !Y, D = (
|
|
4195
|
-
const B = m?.(
|
|
4186
|
+
const Y = t.length > 0 && C.length === t.length, P = C.length > 0 && !Y, D = (z, F, j) => {
|
|
4187
|
+
const B = m?.(z, F) ?? !1, M = y?.(z, F) ?? !1, L = x?.(z, F) ?? !1, Z = $ && N(z);
|
|
4196
4188
|
return /* @__PURE__ */ i(
|
|
4197
4189
|
"li",
|
|
4198
4190
|
{
|
|
@@ -4201,10 +4193,10 @@ function In({
|
|
|
4201
4193
|
tabIndex: 0,
|
|
4202
4194
|
"data-list-row": "",
|
|
4203
4195
|
"aria-current": B || void 0,
|
|
4204
|
-
onClick: () => o(
|
|
4196
|
+
onClick: () => o(z, F),
|
|
4205
4197
|
onFocus: () => u?.(F),
|
|
4206
4198
|
onKeyDown: (ne) => {
|
|
4207
|
-
ne.key !== "Enter" && ne.key !== " " || (ne.preventDefault(), o(
|
|
4199
|
+
ne.key !== "Enter" && ne.key !== " " || (ne.preventDefault(), o(z, F));
|
|
4208
4200
|
}
|
|
4209
4201
|
} : {},
|
|
4210
4202
|
className: d(
|
|
@@ -4226,8 +4218,8 @@ function In({
|
|
|
4226
4218
|
$ && /* @__PURE__ */ e("span", { onClick: (ne) => ne.stopPropagation(), children: /* @__PURE__ */ e(
|
|
4227
4219
|
ye,
|
|
4228
4220
|
{
|
|
4229
|
-
checked: N(
|
|
4230
|
-
onChange: (ne) => U(
|
|
4221
|
+
checked: N(z),
|
|
4222
|
+
onChange: (ne) => U(z, ne.target.checked),
|
|
4231
4223
|
"aria-label": "Rij selecteren"
|
|
4232
4224
|
}
|
|
4233
4225
|
) }),
|
|
@@ -4238,27 +4230,27 @@ function In({
|
|
|
4238
4230
|
className: "mt-2 size-1.5 shrink-0 self-start rounded-full bg-border-strong"
|
|
4239
4231
|
}
|
|
4240
4232
|
),
|
|
4241
|
-
s && /* @__PURE__ */ e("span", { className: "shrink-0", children: s(
|
|
4242
|
-
/* @__PURE__ */ e("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: a ? a(
|
|
4243
|
-
l && /* @__PURE__ */ e("span", { className: "shrink-0 text-xs text-text-subtle", children: l(
|
|
4233
|
+
s && /* @__PURE__ */ e("span", { className: "shrink-0", children: s(z, F) }),
|
|
4234
|
+
/* @__PURE__ */ e("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: a ? a(z, F) : String(z) }),
|
|
4235
|
+
l && /* @__PURE__ */ e("span", { className: "shrink-0 text-xs text-text-subtle", children: l(z, F) })
|
|
4244
4236
|
]
|
|
4245
4237
|
},
|
|
4246
|
-
_(
|
|
4238
|
+
_(z, F)
|
|
4247
4239
|
);
|
|
4248
4240
|
}, A = (() => {
|
|
4249
4241
|
if (!h)
|
|
4250
4242
|
return t.map((B, M) => D(B, M, M === 0));
|
|
4251
|
-
const
|
|
4243
|
+
const z = /* @__PURE__ */ new Map();
|
|
4252
4244
|
t.forEach((B, M) => {
|
|
4253
4245
|
const L = h(B, M);
|
|
4254
|
-
|
|
4246
|
+
z.has(L) || z.set(L, []), z.get(L).push({ item: B, index: M });
|
|
4255
4247
|
});
|
|
4256
4248
|
const F = b ?? [];
|
|
4257
4249
|
return [
|
|
4258
|
-
...F.filter((B) =>
|
|
4259
|
-
...[...
|
|
4250
|
+
...F.filter((B) => z.has(B.id)),
|
|
4251
|
+
...[...z.keys()].filter((B) => !F.some((M) => M.id === B)).map((B) => ({ id: B }))
|
|
4260
4252
|
].flatMap((B, M) => {
|
|
4261
|
-
const L =
|
|
4253
|
+
const L = z.get(B.id) ?? [], Z = g && w[B.id], ne = B.title ?? B.id, de = B.count ?? L.length, be = /* @__PURE__ */ e(
|
|
4262
4254
|
"li",
|
|
4263
4255
|
{
|
|
4264
4256
|
onClick: g ? () => c((fe) => ({ ...fe, [B.id]: !fe[B.id] })) : void 0,
|
|
@@ -4276,7 +4268,7 @@ function In({
|
|
|
4276
4268
|
style: k ? { top: V ? 28 : 0 } : void 0,
|
|
4277
4269
|
children: v ? v(B, L.map((fe) => fe.item)) : /* @__PURE__ */ i(ve, { children: [
|
|
4278
4270
|
g && /* @__PURE__ */ e(
|
|
4279
|
-
|
|
4271
|
+
ze,
|
|
4280
4272
|
{
|
|
4281
4273
|
"aria-hidden": !0,
|
|
4282
4274
|
className: d(
|
|
@@ -4303,7 +4295,7 @@ function In({
|
|
|
4303
4295
|
return Z ? [be] : [
|
|
4304
4296
|
be,
|
|
4305
4297
|
...L.map(
|
|
4306
|
-
({ item: fe, index: De },
|
|
4298
|
+
({ item: fe, index: De }, E) => D(fe, De, E === 0)
|
|
4307
4299
|
)
|
|
4308
4300
|
];
|
|
4309
4301
|
});
|
|
@@ -4325,7 +4317,7 @@ function In({
|
|
|
4325
4317
|
{
|
|
4326
4318
|
checked: Y,
|
|
4327
4319
|
indeterminate: P,
|
|
4328
|
-
onChange: (
|
|
4320
|
+
onChange: (z) => re(z.target.checked),
|
|
4329
4321
|
"aria-label": "Alles selecteren"
|
|
4330
4322
|
}
|
|
4331
4323
|
) }),
|
|
@@ -4438,7 +4430,7 @@ const On = ({
|
|
|
4438
4430
|
children: [
|
|
4439
4431
|
/* @__PURE__ */ i("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
|
|
4440
4432
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ i("div", { className: "flex items-start gap-4 text-text", children: [
|
|
4441
|
-
y && /* @__PURE__ */ e(ae, { variant: "outline", onClick: y, leftIcon: /* @__PURE__ */ e(Q, { icon:
|
|
4433
|
+
y && /* @__PURE__ */ e(ae, { variant: "outline", onClick: y, leftIcon: /* @__PURE__ */ e(Q, { icon: Ee, size: "sm" }), iconOnly: !0 }),
|
|
4442
4434
|
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
|
|
4443
4435
|
b ? /* @__PURE__ */ e(
|
|
4444
4436
|
"input",
|
|
@@ -5136,7 +5128,7 @@ const Kn = ({
|
|
|
5136
5128
|
children: [
|
|
5137
5129
|
f.icon && /* @__PURE__ */ e("span", { className: "mr-3", children: f.icon }),
|
|
5138
5130
|
/* @__PURE__ */ e("span", { className: "flex-grow", children: f.label }),
|
|
5139
|
-
f.subCommands && /* @__PURE__ */ e("span", { className: "text-text-muted", children: /* @__PURE__ */ e(
|
|
5131
|
+
f.subCommands && /* @__PURE__ */ e("span", { className: "text-text-muted", children: /* @__PURE__ */ e(ze, { className: "w-4 h-4" }) })
|
|
5140
5132
|
]
|
|
5141
5133
|
},
|
|
5142
5134
|
f.id
|
|
@@ -5388,7 +5380,7 @@ export {
|
|
|
5388
5380
|
Je as PageToolbarActions,
|
|
5389
5381
|
fn as ParticipantTile,
|
|
5390
5382
|
Ve as Popover,
|
|
5391
|
-
|
|
5383
|
+
En as ProgressBar,
|
|
5392
5384
|
Fn as RichText,
|
|
5393
5385
|
Ge as SearchField,
|
|
5394
5386
|
er as SearchableTextField,
|
|
@@ -5399,7 +5391,7 @@ export {
|
|
|
5399
5391
|
Hn as SettingsSection,
|
|
5400
5392
|
Un as SidebarMenu,
|
|
5401
5393
|
Vn as SourceChip,
|
|
5402
|
-
|
|
5394
|
+
zn as Spinner,
|
|
5403
5395
|
qe as SplitButton,
|
|
5404
5396
|
Mn as StatusDot,
|
|
5405
5397
|
$n as StepIndicator,
|