@firecms/ui 3.0.0-alpha.62 → 3.0.0-alpha.63
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/components/SearchBar.d.ts +2 -1
- package/dist/index.es.js +126 -124
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Button.tsx +2 -2
- package/src/components/SearchBar.tsx +5 -2
- package/src/scripts/generateIconKeys.ts +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as e, jsxs as y, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import * as K from "react";
|
|
3
3
|
import w, { useEffect as N, useCallback as cn, useRef as tn, useState as Y, useMemo as Fn, useDeferredValue as In, useLayoutEffect as Bn } from "react";
|
|
4
4
|
import * as $ from "@radix-ui/react-collapsible";
|
|
5
5
|
import { clsx as Tn } from "clsx";
|
|
@@ -232,7 +232,7 @@ const jn = (n) => {
|
|
|
232
232
|
style: i
|
|
233
233
|
}) => {
|
|
234
234
|
const u = jn(r);
|
|
235
|
-
return /* @__PURE__ */
|
|
235
|
+
return /* @__PURE__ */ y(
|
|
236
236
|
"div",
|
|
237
237
|
{
|
|
238
238
|
style: i,
|
|
@@ -287,7 +287,7 @@ const jn = (n) => {
|
|
|
287
287
|
size: u = "medium",
|
|
288
288
|
...l
|
|
289
289
|
}, s) {
|
|
290
|
-
return /* @__PURE__ */
|
|
290
|
+
return /* @__PURE__ */ y(
|
|
291
291
|
"button",
|
|
292
292
|
{
|
|
293
293
|
ref: s,
|
|
@@ -347,13 +347,13 @@ const jn = (n) => {
|
|
|
347
347
|
autoFocus: l,
|
|
348
348
|
disabled: s,
|
|
349
349
|
size: f,
|
|
350
|
-
...
|
|
350
|
+
...p
|
|
351
351
|
}) {
|
|
352
|
-
const g = w.useRef(null), d = w.useRef(null), [
|
|
352
|
+
const g = w.useRef(null), d = w.useRef(null), [h, b] = w.useState(l), S = () => b(!0), x = () => b(!1);
|
|
353
353
|
w.useEffect(() => {
|
|
354
354
|
}, []);
|
|
355
355
|
const v = document.activeElement === d?.current || document.activeElement === g?.current;
|
|
356
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ y(
|
|
357
357
|
"div",
|
|
358
358
|
{
|
|
359
359
|
ref: g,
|
|
@@ -373,7 +373,7 @@ const jn = (n) => {
|
|
|
373
373
|
r === "end" ? "flex-row-reverse" : "flex-row"
|
|
374
374
|
),
|
|
375
375
|
onClick: s ? void 0 : (P) => {
|
|
376
|
-
|
|
376
|
+
p.allowIndeterminate ? t == null ? a?.(!0) : a?.(t ? !1 : null) : a?.(!t);
|
|
377
377
|
},
|
|
378
378
|
children: [
|
|
379
379
|
/* @__PURE__ */ e(
|
|
@@ -384,7 +384,7 @@ const jn = (n) => {
|
|
|
384
384
|
size: f,
|
|
385
385
|
className: c && v ? yn : "",
|
|
386
386
|
disabled: s,
|
|
387
|
-
...
|
|
387
|
+
...p
|
|
388
388
|
}
|
|
389
389
|
),
|
|
390
390
|
/* @__PURE__ */ e("div", { className: _(
|
|
@@ -407,7 +407,7 @@ function Jn({
|
|
|
407
407
|
component: l,
|
|
408
408
|
...s
|
|
409
409
|
}) {
|
|
410
|
-
const f = "h-fit rounded-md border uppercase inline-flex items-center justify-center p-2 px-4 text-sm font-medium focus:outline-none transition ease-in-out duration-150 gap-2",
|
|
410
|
+
const f = "h-fit rounded-md border uppercase inline-flex items-center justify-center p-2 px-4 text-sm font-medium focus:outline-none transition ease-in-out duration-150 gap-2", p = _(
|
|
411
411
|
{
|
|
412
412
|
"w-full": u,
|
|
413
413
|
"w-fit": !u,
|
|
@@ -420,27 +420,27 @@ function Jn({
|
|
|
420
420
|
), g = _(
|
|
421
421
|
{
|
|
422
422
|
"py-1 px-2": a === "small",
|
|
423
|
-
"py-2 px-
|
|
424
|
-
"py-3 px-
|
|
423
|
+
"py-2 px-3.5": a === "medium",
|
|
424
|
+
"py-3 px-4": a === "large"
|
|
425
425
|
}
|
|
426
426
|
);
|
|
427
|
-
return l ? /* @__PURE__ */
|
|
427
|
+
return l ? /* @__PURE__ */ y(
|
|
428
428
|
l,
|
|
429
429
|
{
|
|
430
430
|
onClick: s.onClick,
|
|
431
|
-
className: _(A, i ? "pl-3" : "", f,
|
|
431
|
+
className: _(A, i ? "pl-3" : "", f, p, g, t),
|
|
432
432
|
...s,
|
|
433
433
|
children: [
|
|
434
434
|
i,
|
|
435
435
|
n
|
|
436
436
|
]
|
|
437
437
|
}
|
|
438
|
-
) : /* @__PURE__ */
|
|
438
|
+
) : /* @__PURE__ */ y(
|
|
439
439
|
"button",
|
|
440
440
|
{
|
|
441
441
|
type: s.type ?? "button",
|
|
442
442
|
onClick: s.onClick,
|
|
443
|
-
className: _(A, i ? "pl-3" : "", f,
|
|
443
|
+
className: _(A, i ? "pl-3" : "", f, p, g, t),
|
|
444
444
|
disabled: c,
|
|
445
445
|
...s,
|
|
446
446
|
children: [
|
|
@@ -14578,7 +14578,7 @@ function non({
|
|
|
14578
14578
|
className: l
|
|
14579
14579
|
}) {
|
|
14580
14580
|
const s = typeof t == "string" ? Vn(t) : t;
|
|
14581
|
-
return /* @__PURE__ */
|
|
14581
|
+
return /* @__PURE__ */ y(
|
|
14582
14582
|
"div",
|
|
14583
14583
|
{
|
|
14584
14584
|
className: _(
|
|
@@ -14639,7 +14639,7 @@ const ue = "hover:bg-gray-200 hover:bg-opacity-75 dark:hover:bg-gray-700 dark:ho
|
|
|
14639
14639
|
),
|
|
14640
14640
|
children: n
|
|
14641
14641
|
}
|
|
14642
|
-
), _n = w.forwardRef(de), kn =
|
|
14642
|
+
), _n = w.forwardRef(de), kn = K.forwardRef(function(t, r) {
|
|
14643
14643
|
const {
|
|
14644
14644
|
shrink: c,
|
|
14645
14645
|
className: a,
|
|
@@ -14714,11 +14714,11 @@ function rn({
|
|
|
14714
14714
|
paragraph: l = !1,
|
|
14715
14715
|
variant: s = "body1",
|
|
14716
14716
|
variantMapping: f = pn,
|
|
14717
|
-
style:
|
|
14717
|
+
style: p,
|
|
14718
14718
|
onClick: g,
|
|
14719
14719
|
...d
|
|
14720
14720
|
}) {
|
|
14721
|
-
const
|
|
14721
|
+
const h = a || (l ? "p" : f[s] || pn[s]) || "span", b = _(
|
|
14722
14722
|
A,
|
|
14723
14723
|
pe[s],
|
|
14724
14724
|
t ? ye[t] : "",
|
|
@@ -14729,11 +14729,11 @@ function rn({
|
|
|
14729
14729
|
c
|
|
14730
14730
|
);
|
|
14731
14731
|
return /* @__PURE__ */ e(
|
|
14732
|
-
|
|
14732
|
+
h,
|
|
14733
14733
|
{
|
|
14734
14734
|
className: b,
|
|
14735
14735
|
onClick: g,
|
|
14736
|
-
style:
|
|
14736
|
+
style: p,
|
|
14737
14737
|
...d,
|
|
14738
14738
|
children: r
|
|
14739
14739
|
}
|
|
@@ -14750,18 +14750,18 @@ const eon = ({
|
|
|
14750
14750
|
size: l,
|
|
14751
14751
|
className: s,
|
|
14752
14752
|
style: f,
|
|
14753
|
-
inputClassName:
|
|
14753
|
+
inputClassName: p,
|
|
14754
14754
|
preventOpenOnFocus: g,
|
|
14755
14755
|
invisible: d,
|
|
14756
|
-
locale:
|
|
14756
|
+
locale: h
|
|
14757
14757
|
}) => {
|
|
14758
14758
|
const b = tn(null), S = tn(null), [x, v] = w.useState(document.activeElement === S.current), P = n != null, C = n != null && !(n instanceof Date);
|
|
14759
14759
|
nn("DateTimeField", me);
|
|
14760
14760
|
const D = (F) => {
|
|
14761
14761
|
F.preventDefault(), r(null);
|
|
14762
14762
|
};
|
|
14763
|
-
return /* @__PURE__ */
|
|
14764
|
-
/* @__PURE__ */
|
|
14763
|
+
return /* @__PURE__ */ y(V, { children: [
|
|
14764
|
+
/* @__PURE__ */ y(
|
|
14765
14765
|
"div",
|
|
14766
14766
|
{
|
|
14767
14767
|
className: _(
|
|
@@ -14792,7 +14792,7 @@ const eon = ({
|
|
|
14792
14792
|
Mn,
|
|
14793
14793
|
{
|
|
14794
14794
|
ref: b,
|
|
14795
|
-
locale:
|
|
14795
|
+
locale: h,
|
|
14796
14796
|
selected: (C ? null : n) ?? null,
|
|
14797
14797
|
onChange: r,
|
|
14798
14798
|
disabled: !1,
|
|
@@ -14813,7 +14813,7 @@ const eon = ({
|
|
|
14813
14813
|
!d && A,
|
|
14814
14814
|
l === "small" ? "min-h-[48px]" : "min-h-[64px]",
|
|
14815
14815
|
t ? "pt-[28px] pb-2" : "py-2",
|
|
14816
|
-
|
|
14816
|
+
p,
|
|
14817
14817
|
c && "border border-transparent outline-none opacity-50 dark:opacity-50 text-gray-600 dark:text-gray-500"
|
|
14818
14818
|
)
|
|
14819
14819
|
}
|
|
@@ -14837,13 +14837,13 @@ const eon = ({
|
|
|
14837
14837
|
]
|
|
14838
14838
|
}
|
|
14839
14839
|
),
|
|
14840
|
-
C && /* @__PURE__ */
|
|
14840
|
+
C && /* @__PURE__ */ y(
|
|
14841
14841
|
"div",
|
|
14842
14842
|
{
|
|
14843
14843
|
className: "flex items-center m-2",
|
|
14844
14844
|
children: [
|
|
14845
14845
|
/* @__PURE__ */ e(te, { size: "small", color: "error" }),
|
|
14846
|
-
/* @__PURE__ */
|
|
14846
|
+
/* @__PURE__ */ y("div", { className: "pl-2", children: [
|
|
14847
14847
|
/* @__PURE__ */ e(
|
|
14848
14848
|
rn,
|
|
14849
14849
|
{
|
|
@@ -15717,7 +15717,7 @@ const eon = ({
|
|
|
15717
15717
|
maxWidth: s = "lg",
|
|
15718
15718
|
modal: f = !0
|
|
15719
15719
|
}) => {
|
|
15720
|
-
const [
|
|
15720
|
+
const [p, g] = Y(!1);
|
|
15721
15721
|
return N(() => {
|
|
15722
15722
|
if (n)
|
|
15723
15723
|
return g(!0), () => {
|
|
@@ -15731,20 +15731,20 @@ const eon = ({
|
|
|
15731
15731
|
}, [n]), /* @__PURE__ */ e(
|
|
15732
15732
|
R.Root,
|
|
15733
15733
|
{
|
|
15734
|
-
open:
|
|
15734
|
+
open: p || n,
|
|
15735
15735
|
modal: f,
|
|
15736
15736
|
onOpenChange: t,
|
|
15737
|
-
children: /* @__PURE__ */ e(R.Portal, { children: /* @__PURE__ */
|
|
15737
|
+
children: /* @__PURE__ */ e(R.Portal, { children: /* @__PURE__ */ y("div", { className: "fixed inset-0 z-30", children: [
|
|
15738
15738
|
/* @__PURE__ */ e(
|
|
15739
15739
|
R.Overlay,
|
|
15740
15740
|
{
|
|
15741
15741
|
className: _(
|
|
15742
15742
|
"fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black bg-opacity-50 dark:bg-opacity-60 backdrop-blur-sm ",
|
|
15743
|
-
|
|
15743
|
+
p && n ? "opacity-100" : "opacity-0",
|
|
15744
15744
|
"z-20 fixed top-0 left-0 w-full h-full flex justify-center items-center"
|
|
15745
15745
|
),
|
|
15746
15746
|
style: {
|
|
15747
|
-
pointerEvents:
|
|
15747
|
+
pointerEvents: p ? "auto" : "none"
|
|
15748
15748
|
}
|
|
15749
15749
|
}
|
|
15750
15750
|
),
|
|
@@ -15767,7 +15767,7 @@ const eon = ({
|
|
|
15767
15767
|
u ? "h-screen w-screen" : "max-h-[90vh] shadow-xl",
|
|
15768
15768
|
"ease-in-out duration-200",
|
|
15769
15769
|
l && "overflow-y-auto",
|
|
15770
|
-
|
|
15770
|
+
p && n ? "opacity-100" : "opacity-0",
|
|
15771
15771
|
s && !u ? Ie[s] : void 0,
|
|
15772
15772
|
c
|
|
15773
15773
|
),
|
|
@@ -15853,14 +15853,14 @@ function con({
|
|
|
15853
15853
|
height: 0;
|
|
15854
15854
|
}
|
|
15855
15855
|
}`);
|
|
15856
|
-
const [f,
|
|
15856
|
+
const [f, p] = Y(c !== void 0 ? c : i), [g, d] = Y(f);
|
|
15857
15857
|
return N(() => {
|
|
15858
15858
|
f ? setTimeout(() => {
|
|
15859
15859
|
d(!0);
|
|
15860
15860
|
}, 220) : d(!1);
|
|
15861
15861
|
}, [f]), N(() => {
|
|
15862
|
-
c !== void 0 &&
|
|
15863
|
-
}, [c]), /* @__PURE__ */ e(V, { children: /* @__PURE__ */
|
|
15862
|
+
c !== void 0 && p(c);
|
|
15863
|
+
}, [c]), /* @__PURE__ */ e(V, { children: /* @__PURE__ */ y(
|
|
15864
15864
|
$.Root,
|
|
15865
15865
|
{
|
|
15866
15866
|
className: _(
|
|
@@ -15868,11 +15868,11 @@ function con({
|
|
|
15868
15868
|
"rounded-md"
|
|
15869
15869
|
),
|
|
15870
15870
|
open: f,
|
|
15871
|
-
onOpenChange: (
|
|
15872
|
-
a?.(
|
|
15871
|
+
onOpenChange: (h) => {
|
|
15872
|
+
a?.(h), p(h);
|
|
15873
15873
|
},
|
|
15874
15874
|
children: [
|
|
15875
|
-
/* @__PURE__ */
|
|
15875
|
+
/* @__PURE__ */ y(
|
|
15876
15876
|
$.Trigger,
|
|
15877
15877
|
{
|
|
15878
15878
|
className: _(
|
|
@@ -15914,12 +15914,12 @@ function ion({
|
|
|
15914
15914
|
uploadDescription: l = "Drag and drop a file here or click",
|
|
15915
15915
|
children: s,
|
|
15916
15916
|
preventDropOnDocument: f = !0,
|
|
15917
|
-
size:
|
|
15917
|
+
size: p
|
|
15918
15918
|
}) {
|
|
15919
15919
|
const {
|
|
15920
15920
|
getRootProps: g,
|
|
15921
15921
|
getInputProps: d,
|
|
15922
|
-
isDragActive:
|
|
15922
|
+
isDragActive: h,
|
|
15923
15923
|
isDragAccept: b,
|
|
15924
15924
|
isDragReject: S
|
|
15925
15925
|
} = Rn(
|
|
@@ -15934,7 +15934,7 @@ function ion({
|
|
|
15934
15934
|
preventDropOnDocument: f
|
|
15935
15935
|
}
|
|
15936
15936
|
);
|
|
15937
|
-
return /* @__PURE__ */
|
|
15937
|
+
return /* @__PURE__ */ y(
|
|
15938
15938
|
"div",
|
|
15939
15939
|
{
|
|
15940
15940
|
...g(),
|
|
@@ -15945,10 +15945,10 @@ function ion({
|
|
|
15945
15945
|
"flex gap-2",
|
|
15946
15946
|
"p-4 box-border relative items-center border-2 border-solid border-transparent outline-none rounded-md duration-200 ease-[cubic-bezier(0.4,0,0.2,1)] focus:border-primary-solid",
|
|
15947
15947
|
{
|
|
15948
|
-
"h-44":
|
|
15949
|
-
"h-28":
|
|
15948
|
+
"h-44": p === "medium",
|
|
15949
|
+
"h-28": p === "small",
|
|
15950
15950
|
"cursor-pointer": !a,
|
|
15951
|
-
"hover:bg-field-hover dark:hover:bg-field-hover-dark": !
|
|
15951
|
+
"hover:bg-field-hover dark:hover:bg-field-hover-dark": !h,
|
|
15952
15952
|
"transition-colors duration-200 ease-[cubic-bezier(0,0,0.2,1)] border-red-500": S,
|
|
15953
15953
|
"transition-colors duration-200 ease-[cubic-bezier(0,0,0.2,1)] border-green-500": b
|
|
15954
15954
|
}
|
|
@@ -16004,7 +16004,7 @@ function uon({
|
|
|
16004
16004
|
startIcon: a,
|
|
16005
16005
|
...i
|
|
16006
16006
|
}) {
|
|
16007
|
-
return /* @__PURE__ */
|
|
16007
|
+
return /* @__PURE__ */ y(
|
|
16008
16008
|
Jn,
|
|
16009
16009
|
{
|
|
16010
16010
|
disabled: t || r,
|
|
@@ -16042,7 +16042,7 @@ function lon({
|
|
|
16042
16042
|
defaultOpen: c,
|
|
16043
16043
|
onOpenChange: a
|
|
16044
16044
|
}) {
|
|
16045
|
-
return /* @__PURE__ */
|
|
16045
|
+
return /* @__PURE__ */ y(
|
|
16046
16046
|
Z.Root,
|
|
16047
16047
|
{
|
|
16048
16048
|
open: r,
|
|
@@ -16079,7 +16079,7 @@ function wn({ children: n, error: t }) {
|
|
|
16079
16079
|
t ? "text-red-500 dark:text-red-600" : "text-gray-500 dark:text-gray-300"
|
|
16080
16080
|
), children: n });
|
|
16081
16081
|
}
|
|
16082
|
-
const vn =
|
|
16082
|
+
const vn = K.createContext({});
|
|
16083
16083
|
function fon({
|
|
16084
16084
|
value: n,
|
|
16085
16085
|
open: t,
|
|
@@ -16091,19 +16091,19 @@ function fon({
|
|
|
16091
16091
|
renderValues: l,
|
|
16092
16092
|
includeFocusOutline: s = !0,
|
|
16093
16093
|
containerClassName: f,
|
|
16094
|
-
className:
|
|
16094
|
+
className: p,
|
|
16095
16095
|
children: g,
|
|
16096
16096
|
error: d
|
|
16097
16097
|
}) {
|
|
16098
|
-
const
|
|
16098
|
+
const h = K.useRef(null), b = K.useRef(null), S = K.useRef(null);
|
|
16099
16099
|
hn(S, () => v(!1));
|
|
16100
|
-
const [x, v] =
|
|
16100
|
+
const [x, v] = K.useState(!1);
|
|
16101
16101
|
N(() => {
|
|
16102
16102
|
v(t ?? !1);
|
|
16103
16103
|
}, [t]);
|
|
16104
|
-
const P =
|
|
16104
|
+
const P = K.useCallback((m) => {
|
|
16105
16105
|
Array.isArray(n) && n.includes(m) ? r?.(n.filter((k) => k !== m)) : r?.([...n ?? [], m]);
|
|
16106
|
-
}, [n, r]), [C, D] =
|
|
16106
|
+
}, [n, r]), [C, D] = K.useState(""), [F, L] = K.useState(null), E = K.useCallback((m) => {
|
|
16107
16107
|
const k = b.current;
|
|
16108
16108
|
if (k) {
|
|
16109
16109
|
if ((m.key === "Delete" || m.key === "Backspace") && k.value === "") {
|
|
@@ -16112,12 +16112,12 @@ function fon({
|
|
|
16112
16112
|
}
|
|
16113
16113
|
m.key === "Escape" && (k.blur(), v(!1), m.stopPropagation());
|
|
16114
16114
|
}
|
|
16115
|
-
}, [r, n]), O =
|
|
16116
|
-
L(
|
|
16117
|
-
}, []), B = F ??
|
|
16118
|
-
return /* @__PURE__ */
|
|
16115
|
+
}, [r, n]), O = K.useCallback(() => {
|
|
16116
|
+
L(h.current?.getBoundingClientRect() ?? null), v(!0);
|
|
16117
|
+
}, []), B = F ?? h.current?.getBoundingClientRect(), j = window.innerHeight - (B?.top ?? 0) - (B?.height ?? 0) - 16;
|
|
16118
|
+
return /* @__PURE__ */ y(V, { children: [
|
|
16119
16119
|
typeof a == "string" ? /* @__PURE__ */ e(wn, { error: d, children: a }) : a,
|
|
16120
|
-
/* @__PURE__ */
|
|
16120
|
+
/* @__PURE__ */ y(
|
|
16121
16121
|
on,
|
|
16122
16122
|
{
|
|
16123
16123
|
onKeyDown: E,
|
|
@@ -16126,10 +16126,10 @@ function fon({
|
|
|
16126
16126
|
},
|
|
16127
16127
|
className: _("relative overflow-visible bg-transparent", f),
|
|
16128
16128
|
children: [
|
|
16129
|
-
/* @__PURE__ */
|
|
16129
|
+
/* @__PURE__ */ y(
|
|
16130
16130
|
"div",
|
|
16131
16131
|
{
|
|
16132
|
-
ref:
|
|
16132
|
+
ref: h,
|
|
16133
16133
|
className: _(
|
|
16134
16134
|
"flex flex-row",
|
|
16135
16135
|
c === "small" ? "min-h-[42px]" : "min-h-[64px]",
|
|
@@ -16141,10 +16141,10 @@ function fon({
|
|
|
16141
16141
|
d ? "text-red-500 dark:text-red-600" : "focus:text-text-primary dark:focus:text-text-primary-dark",
|
|
16142
16142
|
d ? "border border-red-500 dark:border-red-600" : "",
|
|
16143
16143
|
s ? A : "",
|
|
16144
|
-
|
|
16144
|
+
p
|
|
16145
16145
|
),
|
|
16146
16146
|
children: [
|
|
16147
|
-
/* @__PURE__ */
|
|
16147
|
+
/* @__PURE__ */ y("div", { className: _("flex-grow flex gap-1.5 flex-wrap items-center"), children: [
|
|
16148
16148
|
u && (n ?? []).map((m, k) => u(m, k)),
|
|
16149
16149
|
l && l(n ?? []),
|
|
16150
16150
|
/* @__PURE__ */ e(
|
|
@@ -16206,7 +16206,7 @@ function fon({
|
|
|
16206
16206
|
] });
|
|
16207
16207
|
}
|
|
16208
16208
|
function don({ children: n, value: t, className: r }) {
|
|
16209
|
-
const c =
|
|
16209
|
+
const c = K.useContext(vn);
|
|
16210
16210
|
if (!c)
|
|
16211
16211
|
throw new Error("MultiSelectItem must be used inside a MultiSelect");
|
|
16212
16212
|
const { fieldValue: a, setInputValue: i, onValueChangeInternal: u } = c;
|
|
@@ -16258,10 +16258,10 @@ function pon({
|
|
|
16258
16258
|
onValueChange: l,
|
|
16259
16259
|
onMultiValueChange: s,
|
|
16260
16260
|
className: f,
|
|
16261
|
-
inputClassName:
|
|
16261
|
+
inputClassName: p,
|
|
16262
16262
|
placeholder: g,
|
|
16263
16263
|
renderValue: d,
|
|
16264
|
-
renderValues:
|
|
16264
|
+
renderValues: h,
|
|
16265
16265
|
label: b,
|
|
16266
16266
|
size: S = "medium",
|
|
16267
16267
|
includeFocusOutline: x = !0,
|
|
@@ -16287,7 +16287,7 @@ function pon({
|
|
|
16287
16287
|
}
|
|
16288
16288
|
});
|
|
16289
16289
|
}, [L, u, i, s, l]);
|
|
16290
|
-
return /* @__PURE__ */
|
|
16290
|
+
return /* @__PURE__ */ y(
|
|
16291
16291
|
M.Root,
|
|
16292
16292
|
{
|
|
16293
16293
|
name: r,
|
|
@@ -16302,7 +16302,7 @@ function pon({
|
|
|
16302
16302
|
...B,
|
|
16303
16303
|
children: [
|
|
16304
16304
|
typeof b == "string" ? /* @__PURE__ */ e(wn, { error: v, children: b }) : b,
|
|
16305
|
-
/* @__PURE__ */
|
|
16305
|
+
/* @__PURE__ */ y(
|
|
16306
16306
|
"div",
|
|
16307
16307
|
{
|
|
16308
16308
|
className: _(
|
|
@@ -16314,7 +16314,7 @@ function pon({
|
|
|
16314
16314
|
f
|
|
16315
16315
|
),
|
|
16316
16316
|
children: [
|
|
16317
|
-
/* @__PURE__ */
|
|
16317
|
+
/* @__PURE__ */ y(
|
|
16318
16318
|
M.Trigger,
|
|
16319
16319
|
{
|
|
16320
16320
|
ref: n,
|
|
@@ -16330,17 +16330,17 @@ function pon({
|
|
|
16330
16330
|
P ? "text-gray-600 dark:text-gray-400" : "text-gray-800 dark:text-gray-200",
|
|
16331
16331
|
"relative flex items-center",
|
|
16332
16332
|
x ? A : "",
|
|
16333
|
-
|
|
16333
|
+
p
|
|
16334
16334
|
),
|
|
16335
16335
|
children: [
|
|
16336
|
-
/* @__PURE__ */ e(M.Value, { asChild: !0, children: /* @__PURE__ */
|
|
16336
|
+
/* @__PURE__ */ e(M.Value, { asChild: !0, children: /* @__PURE__ */ y("div", { className: _(
|
|
16337
16337
|
"flex-grow w-full max-w-full flex flex-row gap-2 items-center",
|
|
16338
16338
|
"overflow-visible",
|
|
16339
16339
|
S === "small" ? "h-[42px]" : "h-[64px]"
|
|
16340
16340
|
), children: [
|
|
16341
16341
|
d && (i && Array.isArray(i) ? i.map((I, T) => /* @__PURE__ */ e("div", { className: "flex items-center gap-1 max-w-full", children: d ? d(I, T) : I }, I)) : typeof i == "string" ? d ? d(i, 0) : i : g),
|
|
16342
|
-
|
|
16343
|
-
!d && !
|
|
16342
|
+
h && (!i || Array.isArray(i)) ? h(i ?? []) : null,
|
|
16343
|
+
!d && !h && i
|
|
16344
16344
|
] }) }),
|
|
16345
16345
|
/* @__PURE__ */ e(M.Icon, { className: _(
|
|
16346
16346
|
"px-2 h-full flex items-center"
|
|
@@ -16395,7 +16395,7 @@ function mon({
|
|
|
16395
16395
|
disabled: r,
|
|
16396
16396
|
className: c
|
|
16397
16397
|
}) {
|
|
16398
|
-
return /* @__PURE__ */
|
|
16398
|
+
return /* @__PURE__ */ y(
|
|
16399
16399
|
M.Item,
|
|
16400
16400
|
{
|
|
16401
16401
|
value: n,
|
|
@@ -16434,7 +16434,7 @@ function Ion({
|
|
|
16434
16434
|
children: t,
|
|
16435
16435
|
className: r
|
|
16436
16436
|
}) {
|
|
16437
|
-
return /* @__PURE__ */
|
|
16437
|
+
return /* @__PURE__ */ y(V, { children: [
|
|
16438
16438
|
/* @__PURE__ */ e(
|
|
16439
16439
|
M.Group,
|
|
16440
16440
|
{
|
|
@@ -16454,22 +16454,24 @@ function gon({
|
|
|
16454
16454
|
placeholder: t = "Search",
|
|
16455
16455
|
expandable: r = !1,
|
|
16456
16456
|
large: c = !1,
|
|
16457
|
-
|
|
16458
|
-
|
|
16457
|
+
innerClassName: a,
|
|
16458
|
+
className: i,
|
|
16459
|
+
autoFocus: u
|
|
16459
16460
|
}) {
|
|
16460
|
-
const [
|
|
16461
|
+
const [l, s] = Y(""), [f, p] = Y(!1), g = In(l);
|
|
16461
16462
|
w.useEffect(() => {
|
|
16462
|
-
n(
|
|
16463
|
-
}, [
|
|
16464
|
-
const
|
|
16465
|
-
|
|
16463
|
+
n(g || void 0);
|
|
16464
|
+
}, [g]);
|
|
16465
|
+
const d = cn(() => {
|
|
16466
|
+
s(""), n(void 0);
|
|
16466
16467
|
}, []);
|
|
16467
|
-
return /* @__PURE__ */
|
|
16468
|
+
return /* @__PURE__ */ y("div", { className: _(
|
|
16468
16469
|
"relative",
|
|
16469
16470
|
c ? "h-14" : "h-[42px]",
|
|
16470
16471
|
"bg-gray-50 dark:bg-gray-800 transition duration-150 ease-in-out border",
|
|
16471
16472
|
X,
|
|
16472
|
-
"rounded"
|
|
16473
|
+
"rounded",
|
|
16474
|
+
i
|
|
16473
16475
|
), children: [
|
|
16474
16476
|
/* @__PURE__ */ e(
|
|
16475
16477
|
"div",
|
|
@@ -16482,27 +16484,27 @@ function gon({
|
|
|
16482
16484
|
"input",
|
|
16483
16485
|
{
|
|
16484
16486
|
placeholder: t,
|
|
16485
|
-
value:
|
|
16486
|
-
onChange: (
|
|
16487
|
-
|
|
16487
|
+
value: l,
|
|
16488
|
+
onChange: (h) => {
|
|
16489
|
+
s(h.target.value);
|
|
16488
16490
|
},
|
|
16489
|
-
autoFocus:
|
|
16490
|
-
onFocus: () =>
|
|
16491
|
-
onBlur: () =>
|
|
16491
|
+
autoFocus: u,
|
|
16492
|
+
onFocus: () => p(!0),
|
|
16493
|
+
onBlur: () => p(!1),
|
|
16492
16494
|
className: _(
|
|
16493
16495
|
"relative flex items-center rounded transition-all bg-transparent outline-none appearance-none border-none",
|
|
16494
16496
|
"pl-12 h-full text-current ",
|
|
16495
|
-
r ?
|
|
16497
|
+
r ? f ? "w-[220px]" : "w-[180px]" : "",
|
|
16496
16498
|
A,
|
|
16497
16499
|
a
|
|
16498
16500
|
)
|
|
16499
16501
|
}
|
|
16500
16502
|
),
|
|
16501
|
-
|
|
16503
|
+
l ? /* @__PURE__ */ e(
|
|
16502
16504
|
_n,
|
|
16503
16505
|
{
|
|
16504
16506
|
className: `${c ? "mr-2 top-1" : "mr-1 top-0"} absolute right-0 z-10`,
|
|
16505
|
-
onClick:
|
|
16507
|
+
onClick: d,
|
|
16506
16508
|
children: /* @__PURE__ */ e(bn, { size: "small" })
|
|
16507
16509
|
}
|
|
16508
16510
|
) : /* @__PURE__ */ e("div", { style: { width: 26 } })
|
|
@@ -16539,7 +16541,7 @@ const hon = ({
|
|
|
16539
16541
|
{
|
|
16540
16542
|
open: u || r,
|
|
16541
16543
|
onOpenChange: c,
|
|
16542
|
-
children: /* @__PURE__ */
|
|
16544
|
+
children: /* @__PURE__ */ y(R.Portal, { children: [
|
|
16543
16545
|
/* @__PURE__ */ e(
|
|
16544
16546
|
R.Overlay,
|
|
16545
16547
|
{
|
|
@@ -16578,8 +16580,8 @@ const hon = ({
|
|
|
16578
16580
|
);
|
|
16579
16581
|
};
|
|
16580
16582
|
function Kon() {
|
|
16581
|
-
return /* @__PURE__ */
|
|
16582
|
-
/* @__PURE__ */
|
|
16583
|
+
return /* @__PURE__ */ y("div", { role: "status", children: [
|
|
16584
|
+
/* @__PURE__ */ y(
|
|
16583
16585
|
"svg",
|
|
16584
16586
|
{
|
|
16585
16587
|
"aria-hidden": "true",
|
|
@@ -16629,7 +16631,7 @@ const Ke = {
|
|
|
16629
16631
|
function mn(n) {
|
|
16630
16632
|
return n == null || Object.keys(n).length === 0 || n.outerHeightStyle === 0 && !n.overflow;
|
|
16631
16633
|
}
|
|
16632
|
-
const be =
|
|
16634
|
+
const be = K.forwardRef(function(t, r) {
|
|
16633
16635
|
const {
|
|
16634
16636
|
onChange: c,
|
|
16635
16637
|
onScroll: a,
|
|
@@ -16638,14 +16640,14 @@ const be = h.forwardRef(function(t, r) {
|
|
|
16638
16640
|
minRows: l = 1,
|
|
16639
16641
|
style: s,
|
|
16640
16642
|
value: f,
|
|
16641
|
-
onFocus:
|
|
16643
|
+
onFocus: p,
|
|
16642
16644
|
onBlur: g,
|
|
16643
16645
|
sizeRef: d,
|
|
16644
|
-
ignoreBoxSizing:
|
|
16646
|
+
ignoreBoxSizing: h,
|
|
16645
16647
|
...b
|
|
16646
|
-
} = t, { current: S } =
|
|
16648
|
+
} = t, { current: S } = K.useRef(f != null), x = K.useRef(null), v = ke(r, x), P = K.useRef(null), C = K.useRef(0), [D, F] = K.useState({
|
|
16647
16649
|
outerHeightStyle: 0
|
|
16648
|
-
}), L =
|
|
16650
|
+
}), L = K.useCallback(() => {
|
|
16649
16651
|
const m = x.current;
|
|
16650
16652
|
if (typeof window > "u")
|
|
16651
16653
|
return {
|
|
@@ -16664,7 +16666,7 @@ const be = h.forwardRef(function(t, r) {
|
|
|
16664
16666
|
const an = T.scrollHeight;
|
|
16665
16667
|
let H = sn;
|
|
16666
16668
|
l && (H = Math.max(Number(l) * an, H)), u && (H = Math.min(Number(u) * an, H)), H = Math.max(H, an, An);
|
|
16667
|
-
const Pn = H + (!
|
|
16669
|
+
const Pn = H + (!h && xn === "border-box" ? Sn + Cn : 0), Dn = Math.abs(H - sn) <= 1;
|
|
16668
16670
|
return {
|
|
16669
16671
|
outerHeightStyle: Pn,
|
|
16670
16672
|
overflow: Dn
|
|
@@ -16684,7 +16686,7 @@ const be = h.forwardRef(function(t, r) {
|
|
|
16684
16686
|
].join(`
|
|
16685
16687
|
`)
|
|
16686
16688
|
), m);
|
|
16687
|
-
}, O =
|
|
16689
|
+
}, O = K.useCallback(() => {
|
|
16688
16690
|
const m = L();
|
|
16689
16691
|
mn(m) || (i && i(m), F((k) => E(k, m)));
|
|
16690
16692
|
}, [L, i]), B = () => {
|
|
@@ -16693,7 +16695,7 @@ const be = h.forwardRef(function(t, r) {
|
|
|
16693
16695
|
F((k) => E(k, m));
|
|
16694
16696
|
});
|
|
16695
16697
|
};
|
|
16696
|
-
|
|
16698
|
+
K.useEffect(() => {
|
|
16697
16699
|
const m = zn(() => {
|
|
16698
16700
|
C.current = 0, x.current && B();
|
|
16699
16701
|
});
|
|
@@ -16705,13 +16707,13 @@ const be = h.forwardRef(function(t, r) {
|
|
|
16705
16707
|
};
|
|
16706
16708
|
}), Bn(() => {
|
|
16707
16709
|
O();
|
|
16708
|
-
}),
|
|
16710
|
+
}), K.useEffect(() => {
|
|
16709
16711
|
C.current = 0;
|
|
16710
16712
|
}, [f]);
|
|
16711
16713
|
const j = (m) => {
|
|
16712
16714
|
C.current = 0, S || O(), c && c(m);
|
|
16713
16715
|
};
|
|
16714
|
-
return /* @__PURE__ */
|
|
16716
|
+
return /* @__PURE__ */ y(K.Fragment, { children: [
|
|
16715
16717
|
/* @__PURE__ */ e(
|
|
16716
16718
|
"textarea",
|
|
16717
16719
|
{
|
|
@@ -16719,7 +16721,7 @@ const be = h.forwardRef(function(t, r) {
|
|
|
16719
16721
|
onChange: j,
|
|
16720
16722
|
className: t.className,
|
|
16721
16723
|
ref: v,
|
|
16722
|
-
onFocus:
|
|
16724
|
+
onFocus: p,
|
|
16723
16725
|
onBlur: g,
|
|
16724
16726
|
rows: l,
|
|
16725
16727
|
style: {
|
|
@@ -16751,7 +16753,7 @@ const be = h.forwardRef(function(t, r) {
|
|
|
16751
16753
|
] });
|
|
16752
16754
|
});
|
|
16753
16755
|
function ke(...n) {
|
|
16754
|
-
return
|
|
16756
|
+
return K.useMemo(() => n.every((t) => t == null) ? null : (t) => {
|
|
16755
16757
|
n.forEach((r) => {
|
|
16756
16758
|
we(r, t);
|
|
16757
16759
|
});
|
|
@@ -16771,10 +16773,10 @@ function ve({
|
|
|
16771
16773
|
disabled: l,
|
|
16772
16774
|
error: s,
|
|
16773
16775
|
endAdornment: f,
|
|
16774
|
-
autoFocus:
|
|
16776
|
+
autoFocus: p,
|
|
16775
16777
|
placeholder: g,
|
|
16776
16778
|
size: d = "medium",
|
|
16777
|
-
className:
|
|
16779
|
+
className: h,
|
|
16778
16780
|
style: b,
|
|
16779
16781
|
inputClassName: S,
|
|
16780
16782
|
inputStyle: x,
|
|
@@ -16791,7 +16793,7 @@ function ve({
|
|
|
16791
16793
|
...P,
|
|
16792
16794
|
ref: C,
|
|
16793
16795
|
placeholder: D || L || !r ? g : void 0,
|
|
16794
|
-
autoFocus:
|
|
16796
|
+
autoFocus: p,
|
|
16795
16797
|
rows: u,
|
|
16796
16798
|
value: n ?? "",
|
|
16797
16799
|
onChange: t,
|
|
@@ -16823,7 +16825,7 @@ function ve({
|
|
|
16823
16825
|
S
|
|
16824
16826
|
),
|
|
16825
16827
|
placeholder: D || L || !r ? g : void 0,
|
|
16826
|
-
autoFocus:
|
|
16828
|
+
autoFocus: p,
|
|
16827
16829
|
onFocus: () => F(!0),
|
|
16828
16830
|
onBlur: () => F(!1),
|
|
16829
16831
|
type: c,
|
|
@@ -16831,7 +16833,7 @@ function ve({
|
|
|
16831
16833
|
onChange: t
|
|
16832
16834
|
}
|
|
16833
16835
|
);
|
|
16834
|
-
return /* @__PURE__ */
|
|
16836
|
+
return /* @__PURE__ */ y(
|
|
16835
16837
|
"div",
|
|
16836
16838
|
{
|
|
16837
16839
|
className: _(
|
|
@@ -16843,7 +16845,7 @@ function ve({
|
|
|
16843
16845
|
"min-h-[48px]": !i && d === "small",
|
|
16844
16846
|
"min-h-[64px]": !i && d === "medium"
|
|
16845
16847
|
},
|
|
16846
|
-
|
|
16848
|
+
h
|
|
16847
16849
|
),
|
|
16848
16850
|
style: b,
|
|
16849
16851
|
children: [
|
|
@@ -16876,7 +16878,7 @@ const bon = ({
|
|
|
16876
16878
|
style: u,
|
|
16877
16879
|
tooltipClassName: l,
|
|
16878
16880
|
children: s
|
|
16879
|
-
}) => (nn("Tooltip", xe), a ? /* @__PURE__ */ e(U.Provider, { delayDuration: 250, children: /* @__PURE__ */
|
|
16881
|
+
}) => (nn("Tooltip", xe), a ? /* @__PURE__ */ e(U.Provider, { delayDuration: 250, children: /* @__PURE__ */ y(U.Root, { open: n, onOpenChange: c, children: [
|
|
16880
16882
|
/* @__PURE__ */ e(U.Trigger, { asChild: !0, children: /* @__PURE__ */ e("div", { className: i, style: u, children: s }) }),
|
|
16881
16883
|
/* @__PURE__ */ e(U.Portal, { children: /* @__PURE__ */ e(
|
|
16882
16884
|
U.Content,
|
|
@@ -17097,21 +17099,21 @@ function Pon({
|
|
|
17097
17099
|
alignOffset: l,
|
|
17098
17100
|
arrowPadding: s,
|
|
17099
17101
|
sticky: f,
|
|
17100
|
-
hideWhenDetached:
|
|
17102
|
+
hideWhenDetached: p,
|
|
17101
17103
|
avoidCollisions: g,
|
|
17102
17104
|
enabled: d = !0,
|
|
17103
|
-
modal:
|
|
17105
|
+
modal: h = !1,
|
|
17104
17106
|
className: b
|
|
17105
17107
|
}) {
|
|
17106
|
-
return nn("Popover", Ce), d ? /* @__PURE__ */
|
|
17108
|
+
return nn("Popover", Ce), d ? /* @__PURE__ */ y(
|
|
17107
17109
|
Q.Root,
|
|
17108
17110
|
{
|
|
17109
17111
|
open: r,
|
|
17110
17112
|
onOpenChange: c,
|
|
17111
|
-
modal:
|
|
17113
|
+
modal: h,
|
|
17112
17114
|
children: [
|
|
17113
17115
|
/* @__PURE__ */ e(Q.Trigger, { asChild: !0, children: n }),
|
|
17114
|
-
/* @__PURE__ */ e(Q.Portal, { children: /* @__PURE__ */
|
|
17116
|
+
/* @__PURE__ */ e(Q.Portal, { children: /* @__PURE__ */ y(
|
|
17115
17117
|
Q.Content,
|
|
17116
17118
|
{
|
|
17117
17119
|
className: _(G, "PopoverContent shadow z-40", b),
|
|
@@ -17121,7 +17123,7 @@ function Pon({
|
|
|
17121
17123
|
alignOffset: l,
|
|
17122
17124
|
arrowPadding: s,
|
|
17123
17125
|
sticky: f,
|
|
17124
|
-
hideWhenDetached:
|
|
17126
|
+
hideWhenDetached: p,
|
|
17125
17127
|
avoidCollisions: g,
|
|
17126
17128
|
children: [
|
|
17127
17129
|
t,
|
|
@@ -17212,7 +17214,7 @@ const Ce = `
|
|
|
17212
17214
|
color: n = "primary",
|
|
17213
17215
|
invisible: t = !1,
|
|
17214
17216
|
children: r
|
|
17215
|
-
}) => /* @__PURE__ */
|
|
17217
|
+
}) => /* @__PURE__ */ y("div", { className: "relative inline-block", children: [
|
|
17216
17218
|
r,
|
|
17217
17219
|
/* @__PURE__ */ e(
|
|
17218
17220
|
"span",
|