@npm-questionpro/wick-ui-lib 1.49.2 → 1.51.0
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/src/components/appHeader/utils/dataFromApi.d.ts +3 -3
- package/dist/src/components/table/components/dataTable/WuDataTable.d.ts +2 -1
- package/dist/src/components/table/components/table/WuTable.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +347 -333
- package/dist/wick-ui-lib/umd/index.js +6 -6
- package/package.json +1 -1
|
@@ -13,22 +13,22 @@ import { PopoverClose as ee, PopoverTrigger as te } from "@radix-ui/react-popove
|
|
|
13
13
|
import { DayPicker as ne, getDefaultClassNames as re } from "react-day-picker";
|
|
14
14
|
import { Slot as ie } from "@radix-ui/react-slot";
|
|
15
15
|
import { cva as V } from "class-variance-authority";
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import { Command as
|
|
20
|
-
import { TableVirtuoso as
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import { DialogClose as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
import { flexRender as
|
|
31
|
-
import * as
|
|
16
|
+
import * as H from "@radix-ui/react-label";
|
|
17
|
+
import * as ae from "react-dom";
|
|
18
|
+
import * as oe from "@radix-ui/react-checkbox";
|
|
19
|
+
import { Command as U } from "cmdk";
|
|
20
|
+
import { TableVirtuoso as se, Virtuoso as ce } from "react-virtuoso";
|
|
21
|
+
import * as W from "@radix-ui/react-dropdown-menu";
|
|
22
|
+
import * as G from "@radix-ui/react-dialog";
|
|
23
|
+
import { DialogClose as le } from "@radix-ui/react-dialog";
|
|
24
|
+
import * as ue from "@radix-ui/react-scroll-area";
|
|
25
|
+
import * as de from "@radix-ui/react-radio-group";
|
|
26
|
+
import * as fe from "@radix-ui/react-separator";
|
|
27
|
+
import * as pe from "@radix-ui/react-toggle-group";
|
|
28
|
+
import * as me from "@radix-ui/react-toggle";
|
|
29
|
+
import * as he from "@radix-ui/react-tabs";
|
|
30
|
+
import { flexRender as ge, getCoreRowModel as _e, getExpandedRowModel as ve, getFilteredRowModel as ye, getPaginationRowModel as be, getSortedRowModel as xe, useReactTable as Se } from "@tanstack/react-table";
|
|
31
|
+
import * as Ce from "@radix-ui/react-toast";
|
|
32
32
|
import * as we from "@radix-ui/react-switch";
|
|
33
33
|
//#region \0rolldown/runtime.js
|
|
34
34
|
var Te = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, De = Object.getOwnPropertyNames, Oe = Object.prototype.hasOwnProperty, ke = (e, t) => () => (e && (t = e(e = 0)), t), Ae = (e, t) => {
|
|
@@ -733,7 +733,7 @@ var dt = (e) => {
|
|
|
733
733
|
}, gt = ({ buttonRef: e, handleDropdownToggle: t, handleKeyDown: n, isDropdownOpen: r, activeProductName: i, dir: a = "ltr", homeLink: o = "/" }) => /* @__PURE__ */ w("button", {
|
|
734
734
|
ref: e,
|
|
735
735
|
type: "button",
|
|
736
|
-
className: K("wu-text-base wu-font-normal wu-flex wu-items-center wu-justify-between wu-w-full focus:wu-outline-none focus-visible:wu-
|
|
736
|
+
className: K("wu-text-base wu-font-normal", "wu-flex wu-items-center wu-justify-between wu-w-full wu-h-12", "focus:wu-outline-none focus-visible:wu-outline-none", "focus-visible:wu-ring-2 focus-visible:wu-ring-transparent", "focus-visible:wu-ring-inset", "focus-visible:wu-bg-white/10", "rtl:wu-pr-2 wu-pl-2 rtl:wu-pl-1 wu-pr-1", "wu-switcher-trigger"),
|
|
737
737
|
onClick: t,
|
|
738
738
|
onKeyDown: (e) => {
|
|
739
739
|
r && e.key === "ArrowDown" && n(e, -1);
|
|
@@ -818,7 +818,8 @@ var dt = (e) => {
|
|
|
818
818
|
e379: "wp-suite-cx",
|
|
819
819
|
e382: "wp-suite-cx",
|
|
820
820
|
e308: "wp-surveys",
|
|
821
|
-
e315: "wp-workforce"
|
|
821
|
+
e315: "wp-workforce",
|
|
822
|
+
e418: "wp-digsite"
|
|
822
823
|
}, yt = ({ product: e, currentProduct: t, activeProductName: n, dir: r, focusItem: i, setFocusItem: a }) => {
|
|
823
824
|
let [o, s] = y(e.name === t), c = e.name === n, l = e.name === t, u = !e.active, d = K("wu-font-normal wu-text-xs wu-text-gray-lead wu-text-center", l && "wu-text-blue-q wu-font-normal", !e.active && "wu-text-gray-subtle", o && "wu-font-normal", e.active && o && "wu-text-blue-q"), f = K("wu-text-blue-p wu-text-base", l && "wu-text-blue-q", !e.active && "wu-text-gray-subtle", e.active && o && "wu-text-blue-q"), p = o || i === e.name || c ? "#1b3380" : "#c5cce0";
|
|
824
825
|
return /* @__PURE__ */ w("li", {
|
|
@@ -1390,12 +1391,12 @@ var Bt = (e) => /* @__PURE__ */ C(zt, { ...e }), Vt = (e) => {
|
|
|
1390
1391
|
},
|
|
1391
1392
|
children: a && `${t?.current?.value.length}/${n}`
|
|
1392
1393
|
});
|
|
1393
|
-
}, Yt = V("wu-text-xs wu-font-normal wu-leading-none peer-disabled:wu-cursor-not-allowed peer-disabled:wu-text-gray-subtle peer-readonly:wu-text-gray-subtle peer-required:after:wu-content-['*'] peer-required:after:wu-ml-[2px] peer-required:after:wu-text-red-deep peer-aria-[required]:after:wu-content-['*'] peer-aria-[required]:after:wu-ml-[2px] peer-aria-[required]:after:wu-text-red-deep"), Xt = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
1394
|
+
}, Yt = V("wu-text-xs wu-font-normal wu-leading-none peer-disabled:wu-cursor-not-allowed peer-disabled:wu-text-gray-subtle peer-readonly:wu-text-gray-subtle peer-required:after:wu-content-['*'] peer-required:after:wu-ml-[2px] peer-required:after:wu-text-red-deep peer-aria-[required]:after:wu-content-['*'] peer-aria-[required]:after:wu-ml-[2px] peer-aria-[required]:after:wu-text-red-deep"), Xt = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(H.Root, {
|
|
1394
1395
|
ref: n,
|
|
1395
1396
|
className: K(Yt(), e),
|
|
1396
1397
|
...t
|
|
1397
1398
|
}));
|
|
1398
|
-
Xt.displayName =
|
|
1399
|
+
Xt.displayName = H.Root.displayName;
|
|
1399
1400
|
//#endregion
|
|
1400
1401
|
//#region src/components/formGroup/components/WuLabel.tsx
|
|
1401
1402
|
var Zt = (e) => /* @__PURE__ */ C(Xt, {
|
|
@@ -1422,7 +1423,7 @@ var Zt = (e) => /* @__PURE__ */ C(Xt, {
|
|
|
1422
1423
|
]
|
|
1423
1424
|
})]
|
|
1424
1425
|
});
|
|
1425
|
-
}, $t = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: n, disabled: r, minDate: i = z(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: a = k(/* @__PURE__ */ new Date(), { years: 1 }), dir: o = "ltr", Label: s, labelPosition: c = "top", onReset: l, showResetButton: d = !1, placeholder: f
|
|
1426
|
+
}, $t = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: n, disabled: r, minDate: i = z(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: a = k(/* @__PURE__ */ new Date(), { years: 1 }), dir: o = "ltr", Label: s, labelPosition: c = "top", onReset: l, showResetButton: d = !1, placeholder: f, CustomTrigger: m, align: h = "start", sideOffset: g = -.5, side: _, alignOffset: v, ...b }) => {
|
|
1426
1427
|
let [x, S] = y(), [T, E] = y(""), D = u(() => {
|
|
1427
1428
|
E(j(Wt(x), e)), n && n(x);
|
|
1428
1429
|
}, [
|
|
@@ -1433,9 +1434,16 @@ var Zt = (e) => /* @__PURE__ */ C(Xt, {
|
|
|
1433
1434
|
l ? l() : (S(void 0), E(""), n && n(void 0));
|
|
1434
1435
|
}, [n, l]);
|
|
1435
1436
|
return p(() => {
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1437
|
+
if (!t && f) S(void 0), E("");
|
|
1438
|
+
else {
|
|
1439
|
+
let n = Wt(t);
|
|
1440
|
+
S(n), E(j(n, e));
|
|
1441
|
+
}
|
|
1442
|
+
}, [
|
|
1443
|
+
t,
|
|
1444
|
+
e,
|
|
1445
|
+
f
|
|
1446
|
+
]), /* @__PURE__ */ w(Zt, {
|
|
1439
1447
|
className: K("wu-flex wu-gap-1", c === "left" ? "wu-items-center" : "wu-flex-col wu-items-start", "wu-date-picker-label"),
|
|
1440
1448
|
dir: o,
|
|
1441
1449
|
children: [s, /* @__PURE__ */ w(Pt, { children: [/* @__PURE__ */ C(Ht, {
|
|
@@ -2094,7 +2102,7 @@ function qr(e, t = !1, n = !0) {
|
|
|
2094
2102
|
let o = Hr(e);
|
|
2095
2103
|
if (o == null) return;
|
|
2096
2104
|
let s = o, c = () => {
|
|
2097
|
-
|
|
2105
|
+
ae.flushSync(i);
|
|
2098
2106
|
};
|
|
2099
2107
|
if (typeof s.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
|
|
2100
2108
|
i();
|
|
@@ -2746,7 +2754,7 @@ function Di({ ranges: e = xi, excludeToday: t = !0, current: r, onSelect: i, onR
|
|
|
2746
2754
|
}
|
|
2747
2755
|
//#endregion
|
|
2748
2756
|
//#region src/components/calendar/components/dateRangePicker/WuDateRangePicker.tsx
|
|
2749
|
-
var Oi = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: r, disabled: i, minDate: a = z(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: o = k(/* @__PURE__ */ new Date(), { years: 1 }), dir: s = "ltr", minDateToSelect: c, maxDateToSelect: l, presetRanges: u, Label: d, labelPosition: f = "top", onReset: p, showResetButton: m = !0, placeholder: h
|
|
2757
|
+
var Oi = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: r, disabled: i, minDate: a = z(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: o = k(/* @__PURE__ */ new Date(), { years: 1 }), dir: s = "ltr", minDateToSelect: c, maxDateToSelect: l, presetRanges: u, Label: d, labelPosition: f = "top", onReset: p, showResetButton: m = !0, placeholder: h, CustomTrigger: g, native: _, align: v = "start", alignOffset: y, side: b, sideOffset: x = -.5, ...T }) => {
|
|
2750
2758
|
let [E, D] = n.useState(t), [O, A] = n.useState(t), [M, N] = n.useState(""), P = n.useCallback(() => {
|
|
2751
2759
|
if (O) {
|
|
2752
2760
|
let t = O.from, n = O.to;
|
|
@@ -2771,11 +2779,15 @@ var Oi = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: r, disabled: i
|
|
|
2771
2779
|
if (t?.from && t?.to) {
|
|
2772
2780
|
let n = Wt(t.from), r = Wt(t.to);
|
|
2773
2781
|
D(t), A(t), N(`${j(n, e)} - ${j(r, e)}`);
|
|
2774
|
-
} else D(void 0), A({
|
|
2782
|
+
} else h ? (D(void 0), A(void 0), N("")) : (D(void 0), A({
|
|
2775
2783
|
to: /* @__PURE__ */ new Date(),
|
|
2776
2784
|
from: /* @__PURE__ */ new Date()
|
|
2777
|
-
});
|
|
2778
|
-
}, [
|
|
2785
|
+
}));
|
|
2786
|
+
}, [
|
|
2787
|
+
t,
|
|
2788
|
+
e,
|
|
2789
|
+
h
|
|
2790
|
+
]), /* @__PURE__ */ w(Zt, {
|
|
2779
2791
|
className: K("wu-flex wu-gap-1", f === "left" ? "wu-items-center" : "wu-flex-col wu-items-start", "wu-date-picker-label"),
|
|
2780
2792
|
dir: s,
|
|
2781
2793
|
children: [d, /* @__PURE__ */ w(Pt, {
|
|
@@ -2863,16 +2875,16 @@ var ji = n.forwardRef((e, t) => {
|
|
|
2863
2875
|
ji.displayName = "WuCardHeader";
|
|
2864
2876
|
//#endregion
|
|
2865
2877
|
//#region src/base/ui/checkbox.tsx
|
|
2866
|
-
var Mi = t.forwardRef(({ className: e, partial: t, ...n }, r) => /* @__PURE__ */ C(
|
|
2878
|
+
var Mi = t.forwardRef(({ className: e, partial: t, ...n }, r) => /* @__PURE__ */ C(oe.Root, {
|
|
2867
2879
|
ref: r,
|
|
2868
2880
|
className: K("wu-h-4 wu-w-4 wu-shrink-0 wu-rounded-[2px] wu-bg-white wu-border wu-border-gray-subtle wu-ring-offset-background focus-visible:wu-outline-none focus-visible:wu-ring-2 focus-visible:wu-ring-ring focus-visible:wu-ring-offset-[1px] data-[state=checked]:wu-bg-blue-p data-[state=checked]:wu-text-white data-[state=checked]:wu-border-none data-[state=checked]:hover:wu-bg-blue-q hover:wu-bg-gray-20 hover:wu-border-blue-p wu-transition-all data-[state=checked]:disabled:wu-bg-gray-20", "disabled:wu-cursor-not-allowed disabled:wu-opacity-50 disabled:data-[state=unchecked]:wu-bg-gray-20 disabled:hover:wu-border-gray-subtle disabled:wu-border-gray-subtle", e),
|
|
2869
2881
|
...n,
|
|
2870
|
-
children: /* @__PURE__ */ w(
|
|
2882
|
+
children: /* @__PURE__ */ w(oe.Indicator, {
|
|
2871
2883
|
className: K("wu-flex wu-items-center wu-justify-center wu-text-current"),
|
|
2872
2884
|
children: [!t && /* @__PURE__ */ C("span", { className: "wm-check wu-text-base wu-leading-4" }), t && /* @__PURE__ */ C("span", { className: "wm-check-indeterminate-small wu-text-base wu-leading-4" })]
|
|
2873
2885
|
})
|
|
2874
2886
|
}));
|
|
2875
|
-
Mi.displayName =
|
|
2887
|
+
Mi.displayName = oe.Root.displayName;
|
|
2876
2888
|
//#endregion
|
|
2877
2889
|
//#region src/components/checkbox/WuCheckbox.tsx
|
|
2878
2890
|
var Ni = n.forwardRef((e, t) => {
|
|
@@ -2949,51 +2961,51 @@ var Fi = {
|
|
|
2949
2961
|
Ii.displayName = "WuChip";
|
|
2950
2962
|
//#endregion
|
|
2951
2963
|
//#region src/base/ui/command.tsx
|
|
2952
|
-
var Li = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
2964
|
+
var Li = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U, {
|
|
2953
2965
|
ref: n,
|
|
2954
2966
|
className: K("wu-flex wu-h-full wu-w-full wu-flex-col wu-overflow-hidden wu-rounded-md", e),
|
|
2955
2967
|
...t
|
|
2956
2968
|
}));
|
|
2957
|
-
Li.displayName =
|
|
2969
|
+
Li.displayName = U.displayName;
|
|
2958
2970
|
var Ri = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", {
|
|
2959
2971
|
className: "wu-flex wu-items-center wu-border-b wu-px-3",
|
|
2960
|
-
children: /* @__PURE__ */ C(
|
|
2972
|
+
children: /* @__PURE__ */ C(U.Input, {
|
|
2961
2973
|
ref: n,
|
|
2962
2974
|
className: K("wu-flex wu-h-11 wu-w-full wu-rounded-md wu-bg-transparent wu-py-3 wu-text-sm wu-outline-none wu-placeholder:wu-text-muted-foreground disabled:wu-cursor-not-allowed disabled:wu-opacity-50", e),
|
|
2963
2975
|
...t
|
|
2964
2976
|
})
|
|
2965
2977
|
}));
|
|
2966
|
-
Ri.displayName =
|
|
2967
|
-
var zi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
2978
|
+
Ri.displayName = U.Input.displayName;
|
|
2979
|
+
var zi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.List, {
|
|
2968
2980
|
ref: n,
|
|
2969
2981
|
className: K("", e),
|
|
2970
2982
|
...t
|
|
2971
2983
|
}));
|
|
2972
|
-
zi.displayName =
|
|
2973
|
-
var Bi = t.forwardRef((e, t) => /* @__PURE__ */ C(
|
|
2984
|
+
zi.displayName = U.List.displayName;
|
|
2985
|
+
var Bi = t.forwardRef((e, t) => /* @__PURE__ */ C(U.Empty, {
|
|
2974
2986
|
ref: t,
|
|
2975
2987
|
className: "wu-text-center wu-p-2 wu-pb-2.5 wu-text-xs",
|
|
2976
2988
|
...e
|
|
2977
2989
|
}));
|
|
2978
|
-
Bi.displayName =
|
|
2979
|
-
var Vi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
2990
|
+
Bi.displayName = U.Empty.displayName;
|
|
2991
|
+
var Vi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.Group, {
|
|
2980
2992
|
ref: n,
|
|
2981
2993
|
className: K("", e),
|
|
2982
2994
|
...t
|
|
2983
2995
|
}));
|
|
2984
|
-
Vi.displayName =
|
|
2985
|
-
var Hi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
2996
|
+
Vi.displayName = U.Group.displayName;
|
|
2997
|
+
var Hi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.Separator, {
|
|
2986
2998
|
ref: n,
|
|
2987
2999
|
className: K("wu-mx-2 wu-my-1 wu-h-px wu-bg-gray-40", e),
|
|
2988
3000
|
...t
|
|
2989
3001
|
}));
|
|
2990
|
-
Hi.displayName =
|
|
2991
|
-
var Ui = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
3002
|
+
Hi.displayName = U.Separator.displayName;
|
|
3003
|
+
var Ui = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.Item, {
|
|
2992
3004
|
ref: n,
|
|
2993
3005
|
className: K("wu-relative wu-flex wu-cursor-default wu-gap-2 wu-select-none wu-items-center wu-rounded-sm wu-px-2 wu-py-3 wu-text-sm wu-outline-none data-[disabled=true]:wu-pointer-events-none data-[disabled=true]:wu-opacity-50 [&_svg]:wu-pointer-events-none [&_svg]:wu-size-4 [&_svg]:wu-shrink-0", e),
|
|
2994
3006
|
...t
|
|
2995
3007
|
}));
|
|
2996
|
-
Ui.displayName =
|
|
3008
|
+
Ui.displayName = U.Item.displayName;
|
|
2997
3009
|
var Wi = ({ className: e, ...t }) => /* @__PURE__ */ C("span", {
|
|
2998
3010
|
className: K("wu-ml-auto wu-text-xs wu-tracking-widest", e),
|
|
2999
3011
|
...t
|
|
@@ -3019,7 +3031,7 @@ var Gi = (e, t, n, r) => _(() => {
|
|
|
3019
3031
|
n,
|
|
3020
3032
|
r.value,
|
|
3021
3033
|
e
|
|
3022
|
-
]), Ki = n.forwardRef(({ containerHeight: e = 400, list: t, callback: n, dir: r, className: i, style: a }, o) => /* @__PURE__ */ C(
|
|
3034
|
+
]), Ki = n.forwardRef(({ containerHeight: e = 400, list: t, callback: n, dir: r, className: i, style: a }, o) => /* @__PURE__ */ C(ce, {
|
|
3023
3035
|
ref: o,
|
|
3024
3036
|
dir: r,
|
|
3025
3037
|
className: i,
|
|
@@ -3120,7 +3132,7 @@ var qi = ({ tags: e, triggerRef: t }) => {
|
|
|
3120
3132
|
children: [_(), /* @__PURE__ */ C("span", { className: "wm-arrow-drop-down group-data-[state=open]/wuCombobox:wu-rotate-180 wu-transition-transform wu-duration-300 wu-text-base" })]
|
|
3121
3133
|
})
|
|
3122
3134
|
});
|
|
3123
|
-
}, Yi =
|
|
3135
|
+
}, Yi = W.Root, Xi = W.Trigger, Zi = W.Group, Qi = W.Portal, $i = W.Sub, ea = W.RadioGroup, ta = t.forwardRef(({ className: e, inset: t, children: n, position: r, ...i }, a) => /* @__PURE__ */ w(W.SubTrigger, {
|
|
3124
3136
|
ref: a,
|
|
3125
3137
|
className: K("wu-flex wu-cursor-default wu-select-none wu-text-xs wu-items-center wu-p-2 wu-outline-none focus:wu-bg-gray-20 data-[state=open]:wu-bg-gray-20", t && "wu-pl-8", e),
|
|
3126
3138
|
...i,
|
|
@@ -3130,62 +3142,62 @@ var qi = ({ tags: e, triggerRef: t }) => {
|
|
|
3130
3142
|
r !== "left" && /* @__PURE__ */ C("span", { className: K("wu-text-base wu-leading-4", i.dir === "rtl" && "wu-mr-auto wm-chevron-left", i.dir !== "rtl" && "wu-ml-auto wm-chevron-right") })
|
|
3131
3143
|
]
|
|
3132
3144
|
}));
|
|
3133
|
-
ta.displayName =
|
|
3134
|
-
var na = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
3145
|
+
ta.displayName = W.SubTrigger.displayName;
|
|
3146
|
+
var na = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.SubContent, {
|
|
3135
3147
|
ref: n,
|
|
3136
3148
|
className: K("wu-z-50 wu-min-w-[8rem] wu-overflow-hidden wu-border wu-text-xs wu-bg-white wu-text-gray-lead wu-shadow-lg data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[state=closed]:wu-fade-out-0 data-[state=open]:wu-fade-in-0 data-[state=closed]:wu-zoom-out-95 data-[state=open]:wu-zoom-in-95 data-[side=bottom]:wu-slide-in-from-top-2 data-[side=left]:wu-slide-in-from-right-2 data-[side=right]:wu-slide-in-from-left-2 data-[side=top]:wu-slide-in-from-bottom-2", e),
|
|
3137
3149
|
...t
|
|
3138
3150
|
}));
|
|
3139
|
-
na.displayName =
|
|
3140
|
-
var ra = t.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ C(
|
|
3151
|
+
na.displayName = W.SubContent.displayName;
|
|
3152
|
+
var ra = t.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ C(W.Portal, { children: /* @__PURE__ */ C(W.Content, {
|
|
3141
3153
|
ref: r,
|
|
3142
3154
|
sideOffset: t,
|
|
3143
3155
|
className: K("wu-z-50 wu-min-w-[8rem] wu-overflow-hidden wu-border wu-text-xs wu-bg-white wu-text-gray-lead wu-shadow-md data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[state=closed]:wu-fade-out-0 data-[state=open]:wu-fade-in-0 data-[state=closed]:wu-zoom-out-95 data-[state=open]:wu-zoom-in-95 data-[side=bottom]:wu-slide-in-from-top-2 data-[side=left]:wu-slide-in-from-right-2 data-[side=right]:wu-slide-in-from-left-2 data-[side=top]:wu-slide-in-from-bottom-2", e),
|
|
3144
3156
|
...n
|
|
3145
3157
|
}) }));
|
|
3146
|
-
ra.displayName =
|
|
3147
|
-
var ia = t.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ C(
|
|
3158
|
+
ra.displayName = W.Content.displayName;
|
|
3159
|
+
var ia = t.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ C(W.Item, {
|
|
3148
3160
|
ref: r,
|
|
3149
3161
|
className: K("wu-relative wu-flex wu-cursor-default wu-select-none wu-items-center wu-text-xs wu-p-2 wu-outline-none wu-transition-colors focus:wu-bg-gray-20 data-[disabled]:wu-cursor-not-allowed data-[disabled]:wu-opacity-50", t && "wu-pl-8", e),
|
|
3150
3162
|
...n
|
|
3151
3163
|
}));
|
|
3152
|
-
ia.displayName =
|
|
3153
|
-
var aa = t.forwardRef(({ className: e, children: t, checked: n, dir: r, ...i }, a) => /* @__PURE__ */ w(
|
|
3164
|
+
ia.displayName = W.Item.displayName;
|
|
3165
|
+
var aa = t.forwardRef(({ className: e, children: t, checked: n, dir: r, ...i }, a) => /* @__PURE__ */ w(W.CheckboxItem, {
|
|
3154
3166
|
ref: a,
|
|
3155
3167
|
className: K("wu-group wu-relative wu-flex wu-cursor-default wu-select-none wu-items-center wu-text-xs wu-py-3 wu-outline-none wu-transition-colors focus:wu-bg-gray-20 data-[disabled]:wu-cursor-not-allowed data-[disabled]:wu-opacity-50", r === "rtl" && "wu-pr-8 wu-pl-2", r !== "rtl" && "wu-pl-8 wu-pr-2", e),
|
|
3156
3168
|
checked: n,
|
|
3157
3169
|
...i,
|
|
3158
3170
|
children: [/* @__PURE__ */ C("span", {
|
|
3159
3171
|
className: K("wu-absolute wu-flex wu-items-center wu-justify-center wu-w-4 wu-h-4 wu-rounded-sm wu-ring-1 wu-ring-gray-subtle group-disabled:wu-bg-gray-20 group-data-[state=checked]:wu-bg-blue-p group-hover:wu-bg-gray-20 group-hover:wu-ring-blue-p wu-transition-all group-data-[state=checked]:wu-ring-blue-p", r === "rtl" && "wu-right-2", r !== "rtl" && "wu-left-2"),
|
|
3160
|
-
children: /* @__PURE__ */ C(
|
|
3172
|
+
children: /* @__PURE__ */ C(W.ItemIndicator, { children: /* @__PURE__ */ C("span", { className: "wm-check wu-text-base wu-text-white" }) })
|
|
3161
3173
|
}), t]
|
|
3162
3174
|
}));
|
|
3163
|
-
aa.displayName =
|
|
3164
|
-
var oa = t.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ w(
|
|
3175
|
+
aa.displayName = W.CheckboxItem.displayName;
|
|
3176
|
+
var oa = t.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ w(W.RadioItem, {
|
|
3165
3177
|
ref: r,
|
|
3166
3178
|
className: K("wu-group wu-relative wu-flex wu-cursor-default wu-select-none wu-items-center wu-text-xs wu-py-3 wu-pl-8 wu-pr-2 wu-outline-none wu-transition-colors focus:wu-bg-gray-20 focus:wu-text-accent-foreground data-[disabled]:wu-cursor-not-allowed data-[disabled]:wu-opacity-50", e),
|
|
3167
3179
|
...n,
|
|
3168
3180
|
children: [/* @__PURE__ */ C("span", {
|
|
3169
3181
|
className: "wu-absolute wu-rounded-full wu-left-2 wu-flex wu-h-4 wu-w-4 wu-items-center wu-justify-center wu-ring-1 wu-ring-gray-subtle group-disabled:wu-bg-gray-20 group-data-[state=checked]:wu-bg-white group-hover:wu-bg-gray-20 group-hover:wu-ring-blue-p wu-transition-all group-data-[state=checked]:wu-ring-blue-p group-hover:group-data-[state=checked]:wu-ring-blue-q",
|
|
3170
|
-
children: /* @__PURE__ */ C(
|
|
3182
|
+
children: /* @__PURE__ */ C(W.ItemIndicator, {
|
|
3171
3183
|
className: "wu-w-4 wu-h-4 wu-flex wu-items-center wu-justify-center",
|
|
3172
3184
|
children: /* @__PURE__ */ C("span", { className: "wm-circle wu-text-blue-p group-hover:group-data-[state=checked]:wu-text-blue-q wu-text-xs" })
|
|
3173
3185
|
})
|
|
3174
3186
|
}), t]
|
|
3175
3187
|
}));
|
|
3176
|
-
oa.displayName =
|
|
3177
|
-
var sa = t.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ C(
|
|
3188
|
+
oa.displayName = W.RadioItem.displayName;
|
|
3189
|
+
var sa = t.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ C(W.Label, {
|
|
3178
3190
|
ref: r,
|
|
3179
3191
|
className: K("wu-p-2 wu-font-medium wu-text-xs", t && "wu-pl-8", e),
|
|
3180
3192
|
...n
|
|
3181
3193
|
}));
|
|
3182
|
-
sa.displayName =
|
|
3183
|
-
var ca = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
3194
|
+
sa.displayName = W.Label.displayName;
|
|
3195
|
+
var ca = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.Separator, {
|
|
3184
3196
|
ref: n,
|
|
3185
3197
|
className: K("-wu-mx-1 wu-my-1 wu-h-px wu-bg-gray-20", e),
|
|
3186
3198
|
...t
|
|
3187
3199
|
}));
|
|
3188
|
-
ca.displayName =
|
|
3200
|
+
ca.displayName = W.Separator.displayName;
|
|
3189
3201
|
var la = ({ className: e, ...t }) => /* @__PURE__ */ C("span", {
|
|
3190
3202
|
className: K("wu-ml-auto wu-text-xs wu-tracking-widest wu-opacity-60", e),
|
|
3191
3203
|
...t
|
|
@@ -3281,11 +3293,11 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
|
|
|
3281
3293
|
re,
|
|
3282
3294
|
e,
|
|
3283
3295
|
t.label
|
|
3284
|
-
]),
|
|
3296
|
+
]), H = Gi(j, _(() => h && b?.enable && !N && V.length > 0 ? [{ type: "all" }, ...V] : V, [
|
|
3285
3297
|
V,
|
|
3286
3298
|
N,
|
|
3287
3299
|
h
|
|
3288
|
-
]), F, t),
|
|
3300
|
+
]), F, t), ae = u((e) => {
|
|
3289
3301
|
let n = e[t.value];
|
|
3290
3302
|
h ? I((r) => {
|
|
3291
3303
|
let i = r || [], a = i.some((e) => e[t.value] === n) ? i.filter((e) => e[t.value] !== n) : [...i, e];
|
|
@@ -3295,7 +3307,7 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
|
|
|
3295
3307
|
h,
|
|
3296
3308
|
t.value,
|
|
3297
3309
|
d
|
|
3298
|
-
]),
|
|
3310
|
+
]), oe = u((e) => P(e.target.value), []), U = u(() => P(""), []);
|
|
3299
3311
|
p(() => {
|
|
3300
3312
|
if (n !== void 0 && r !== void 0) {
|
|
3301
3313
|
console.error("defaultValue and value cannot be used simultaneously");
|
|
@@ -3306,7 +3318,7 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
|
|
|
3306
3318
|
let e = b?.includeDisabled ? F?.length === re.length : F?.length === ie.length;
|
|
3307
3319
|
B(e), te(F?.length > 0 && !e);
|
|
3308
3320
|
}, [F, b]);
|
|
3309
|
-
let
|
|
3321
|
+
let se = u(() => {
|
|
3310
3322
|
let e = z ? [] : b?.includeDisabled ? re : ie;
|
|
3311
3323
|
I(e), d?.(e);
|
|
3312
3324
|
}, [
|
|
@@ -3322,7 +3334,7 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
|
|
|
3322
3334
|
ref: ne,
|
|
3323
3335
|
children: [/* @__PURE__ */ w(Pt, {
|
|
3324
3336
|
onOpenChange: (e) => {
|
|
3325
|
-
e &&
|
|
3337
|
+
e && U(), R(e);
|
|
3326
3338
|
},
|
|
3327
3339
|
open: L,
|
|
3328
3340
|
modal: !0,
|
|
@@ -3354,7 +3366,7 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
|
|
|
3354
3366
|
placeholder: "Search...",
|
|
3355
3367
|
Icon: /* @__PURE__ */ C("span", { className: "wm-search" }),
|
|
3356
3368
|
className: "wu-text-xs wu-combobox-search",
|
|
3357
|
-
onChange:
|
|
3369
|
+
onChange: oe,
|
|
3358
3370
|
name: "Search",
|
|
3359
3371
|
"aria-label": "Search",
|
|
3360
3372
|
dir: l,
|
|
@@ -3362,21 +3374,21 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
|
|
|
3362
3374
|
})
|
|
3363
3375
|
}),
|
|
3364
3376
|
i,
|
|
3365
|
-
/* @__PURE__ */ w(zi, { children: [/* @__PURE__ */ C(Bi, { children: A || "No results found." }),
|
|
3377
|
+
/* @__PURE__ */ w(zi, { children: [/* @__PURE__ */ C(Bi, { children: A || "No results found." }), H.length >= a ? /* @__PURE__ */ C(Ki, {
|
|
3366
3378
|
className: "wu-combobox-list",
|
|
3367
3379
|
containerHeight: m,
|
|
3368
|
-
list:
|
|
3380
|
+
list: H,
|
|
3369
3381
|
callback: (e, n) => {
|
|
3370
3382
|
let r = n, i = r[t.value], a = i == null ? `__${"type" in r ? r.type : "item"}__${e}` : String(i);
|
|
3371
3383
|
return /* @__PURE__ */ C(fa, {
|
|
3372
3384
|
option: n,
|
|
3373
3385
|
value: F,
|
|
3374
|
-
onSelect:
|
|
3386
|
+
onSelect: ae,
|
|
3375
3387
|
multiple: h,
|
|
3376
3388
|
accessorKey: t,
|
|
3377
3389
|
dir: l,
|
|
3378
3390
|
selectAll: b,
|
|
3379
|
-
handleSelectAll:
|
|
3391
|
+
handleSelectAll: se,
|
|
3380
3392
|
isCheckedAll: z,
|
|
3381
3393
|
isPartialSelected: ee
|
|
3382
3394
|
}, a);
|
|
@@ -3390,17 +3402,17 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
|
|
|
3390
3402
|
},
|
|
3391
3403
|
className: "wu-combobox-list",
|
|
3392
3404
|
onScroll: D,
|
|
3393
|
-
children:
|
|
3405
|
+
children: H.map((e, n) => {
|
|
3394
3406
|
let r = e, i = r[t.value], a = i == null ? `__${"type" in r ? r.type : "item"}__${n}` : String(i);
|
|
3395
3407
|
return /* @__PURE__ */ C(fa, {
|
|
3396
3408
|
option: r,
|
|
3397
3409
|
value: F,
|
|
3398
|
-
onSelect:
|
|
3410
|
+
onSelect: ae,
|
|
3399
3411
|
multiple: h,
|
|
3400
3412
|
accessorKey: t,
|
|
3401
3413
|
dir: l,
|
|
3402
3414
|
selectAll: b,
|
|
3403
|
-
handleSelectAll:
|
|
3415
|
+
handleSelectAll: se,
|
|
3404
3416
|
isCheckedAll: z,
|
|
3405
3417
|
isPartialSelected: ee
|
|
3406
3418
|
}, a);
|
|
@@ -3437,12 +3449,12 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
|
|
|
3437
3449
|
className: "wu-text-lg"
|
|
3438
3450
|
})]
|
|
3439
3451
|
});
|
|
3440
|
-
}, _a =
|
|
3452
|
+
}, _a = G.Root, va = G.Trigger, ya = G.Close, ba = G.Portal, xa = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Overlay, {
|
|
3441
3453
|
className: K("wu-fixed wu-inset-0 wu-z-50 wu-bg-black/30 data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[state=closed]:wu-fade-out-0 data-[state=open]:wu-fade-in-0", "wu-drawer-overlay", e),
|
|
3442
3454
|
...t,
|
|
3443
3455
|
ref: n
|
|
3444
3456
|
}));
|
|
3445
|
-
xa.displayName =
|
|
3457
|
+
xa.displayName = G.Overlay.displayName;
|
|
3446
3458
|
var Sa = V("wu-fixed wu-z-50 wu-gap-4 wu-p-6 wu-shadow-lg wu-transition wu-ease-in-out data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[state=closed]:wu-duration-500 data-[state=open]:wu-duration-500", {
|
|
3447
3459
|
variants: { side: {
|
|
3448
3460
|
top: "wu-inset-x-0 wu-top-0 wu-border-b data-[state=closed]:wu-slide-out-to-top data-[state=open]:wu-slide-in-from-top",
|
|
@@ -3451,11 +3463,11 @@ var Sa = V("wu-fixed wu-z-50 wu-gap-4 wu-p-6 wu-shadow-lg wu-transition wu-ease-
|
|
|
3451
3463
|
right: "wu-inset-y-0 wu-right-0 wu-h-full wu-w-3/4 wu-border-l data-[state=closed]:wu-slide-out-to-right data-[state=open]:wu-slide-in-from-right sm:wu-max-w-sm"
|
|
3452
3464
|
} },
|
|
3453
3465
|
defaultVariants: { side: "right" }
|
|
3454
|
-
}), Ca = t.forwardRef(({ side: e = "right", className: t, children: n, hideCloseButton: r, overlayClassName: i, closeButtonClassName: a, ...o }, s) => /* @__PURE__ */ w(ba, { children: [/* @__PURE__ */ C(xa, { className: i }), /* @__PURE__ */ w(
|
|
3466
|
+
}), Ca = t.forwardRef(({ side: e = "right", className: t, children: n, hideCloseButton: r, overlayClassName: i, closeButtonClassName: a, ...o }, s) => /* @__PURE__ */ w(ba, { children: [/* @__PURE__ */ C(xa, { className: i }), /* @__PURE__ */ w(G.Content, {
|
|
3455
3467
|
ref: s,
|
|
3456
3468
|
className: K(Sa({ side: e }), t),
|
|
3457
3469
|
...o,
|
|
3458
|
-
children: [n, !r && /* @__PURE__ */ C(
|
|
3470
|
+
children: [n, !r && /* @__PURE__ */ C(G.Close, {
|
|
3459
3471
|
"aria-label": "close",
|
|
3460
3472
|
asChild: !0,
|
|
3461
3473
|
children: /* @__PURE__ */ w(Rt, {
|
|
@@ -3468,7 +3480,7 @@ var Sa = V("wu-fixed wu-z-50 wu-gap-4 wu-p-6 wu-shadow-lg wu-transition wu-ease-
|
|
|
3468
3480
|
})
|
|
3469
3481
|
})]
|
|
3470
3482
|
})] }));
|
|
3471
|
-
Ca.displayName =
|
|
3483
|
+
Ca.displayName = G.Content.displayName;
|
|
3472
3484
|
var wa = ({ className: e, ...t }) => /* @__PURE__ */ C("div", {
|
|
3473
3485
|
className: K("", e),
|
|
3474
3486
|
...t
|
|
@@ -3479,18 +3491,18 @@ var Ta = ({ className: e, ...t }) => /* @__PURE__ */ C("div", {
|
|
|
3479
3491
|
...t
|
|
3480
3492
|
});
|
|
3481
3493
|
Ta.displayName = "SheetFooter";
|
|
3482
|
-
var Ea = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
3494
|
+
var Ea = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Title, {
|
|
3483
3495
|
ref: n,
|
|
3484
3496
|
className: K("wu-text-lg wu-font-semibold", e),
|
|
3485
3497
|
...t
|
|
3486
3498
|
}));
|
|
3487
|
-
Ea.displayName =
|
|
3488
|
-
var Da = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
3499
|
+
Ea.displayName = G.Title.displayName;
|
|
3500
|
+
var Da = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Description, {
|
|
3489
3501
|
ref: n,
|
|
3490
3502
|
className: K("wu-text-sm", e),
|
|
3491
3503
|
...t
|
|
3492
3504
|
}));
|
|
3493
|
-
Da.displayName =
|
|
3505
|
+
Da.displayName = G.Description.displayName;
|
|
3494
3506
|
//#endregion
|
|
3495
3507
|
//#region src/components/drawer/WuDrawer.tsx
|
|
3496
3508
|
var Oa = (e) => (t) => {
|
|
@@ -7166,11 +7178,11 @@ var jp = /* @__PURE__ */ Ap("div"), Mp = (e) => {
|
|
|
7166
7178
|
...n,
|
|
7167
7179
|
className: r
|
|
7168
7180
|
});
|
|
7169
|
-
}, Lp = t.forwardRef(({ className: e, children: t, thumbColor: n, railColor: r, ...i }, a) => /* @__PURE__ */ w(
|
|
7181
|
+
}, Lp = t.forwardRef(({ className: e, children: t, thumbColor: n, railColor: r, ...i }, a) => /* @__PURE__ */ w(ue.Root, {
|
|
7170
7182
|
ref: a,
|
|
7171
7183
|
className: K("wu-relative wu-overflow-hidden", e),
|
|
7172
7184
|
children: [
|
|
7173
|
-
/* @__PURE__ */ C(
|
|
7185
|
+
/* @__PURE__ */ C(ue.Viewport, {
|
|
7174
7186
|
className: "wu-h-full wu-w-full wu-rounded-[inherit]",
|
|
7175
7187
|
...i,
|
|
7176
7188
|
children: t
|
|
@@ -7179,22 +7191,22 @@ var jp = /* @__PURE__ */ Ap("div"), Mp = (e) => {
|
|
|
7179
7191
|
thumbColor: n,
|
|
7180
7192
|
railColor: r
|
|
7181
7193
|
}),
|
|
7182
|
-
/* @__PURE__ */ C(
|
|
7194
|
+
/* @__PURE__ */ C(ue.Corner, {})
|
|
7183
7195
|
]
|
|
7184
7196
|
}));
|
|
7185
|
-
Lp.displayName =
|
|
7186
|
-
var Rp = t.forwardRef(({ className: e, orientation: t = "vertical", thumbColor: n = "#d4d4d4", railColor: r = "#eeeeee", ...i }, a) => /* @__PURE__ */ C(
|
|
7197
|
+
Lp.displayName = ue.Root.displayName;
|
|
7198
|
+
var Rp = t.forwardRef(({ className: e, orientation: t = "vertical", thumbColor: n = "#d4d4d4", railColor: r = "#eeeeee", ...i }, a) => /* @__PURE__ */ C(ue.ScrollAreaScrollbar, {
|
|
7187
7199
|
ref: a,
|
|
7188
7200
|
orientation: t,
|
|
7189
7201
|
className: K("wu-flex wu-touch-none wu-select-none wu-transition-colors", t === "vertical" && "wu-h-full wu-w-2 wu-border-l wu-border-l-transparent wu-p-[1px]", t === "horizontal" && "wu-h-2 wu-flex-col wu-border-t wu-border-t-transparent wu-p-[1px]", e),
|
|
7190
7202
|
style: { background: r },
|
|
7191
7203
|
...i,
|
|
7192
|
-
children: /* @__PURE__ */ C(
|
|
7204
|
+
children: /* @__PURE__ */ C(ue.ScrollAreaThumb, {
|
|
7193
7205
|
className: "wu-relative wu-flex-1 wu-rounded-full",
|
|
7194
7206
|
style: { background: n }
|
|
7195
7207
|
})
|
|
7196
7208
|
}));
|
|
7197
|
-
Rp.displayName =
|
|
7209
|
+
Rp.displayName = ue.ScrollAreaScrollbar.displayName;
|
|
7198
7210
|
//#endregion
|
|
7199
7211
|
//#region src/components/menu/ui/WuSubMenu.tsx
|
|
7200
7212
|
var zp = (e) => {
|
|
@@ -7761,20 +7773,20 @@ lm.displayName = "WuMenuIcon";
|
|
|
7761
7773
|
var um = {
|
|
7762
7774
|
overlay: "data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[state=closed]:wu-fade-out-0 data-[state=open]:wu-fade-in-0",
|
|
7763
7775
|
content: "data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[state=closed]:wu-fade-out-0 data-[state=open]:wu-fade-in-0 data-[state=closed]:wu-zoom-out-95 data-[state=open]:wu-zoom-in-95 data-[state=closed]:wu-slide-out-to-left-1/2 data-[state=closed]:wu-slide-out-to-top-[48%] data-[state=open]:wu-slide-in-from-left-1/2 data-[state=open]:wu-slide-in-from-top-[48%]"
|
|
7764
|
-
}, dm =
|
|
7776
|
+
}, dm = G.Root, fm = G.Trigger, pm = G.Portal, mm = G.Close, hm = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Overlay, {
|
|
7765
7777
|
ref: n,
|
|
7766
7778
|
className: K("wu-fixed wu-inset-0 wu-z-50 wu-bg-black/30", um.overlay, e),
|
|
7767
7779
|
...t
|
|
7768
7780
|
}));
|
|
7769
|
-
hm.displayName =
|
|
7781
|
+
hm.displayName = G.Overlay.displayName;
|
|
7770
7782
|
var gm = s(({ className: e, children: t, hideCloseButton: n, isStackedCard: r, ...i }, a) => /* @__PURE__ */ w(pm, { children: [/* @__PURE__ */ C(hm, {
|
|
7771
7783
|
className: r ? "wu-bg-transparent" : "",
|
|
7772
7784
|
"data-wu-overlay": !0
|
|
7773
|
-
}), /* @__PURE__ */ w(
|
|
7785
|
+
}), /* @__PURE__ */ w(G.Content, {
|
|
7774
7786
|
ref: a,
|
|
7775
7787
|
className: K("wu-fixed wu-left-[50%] wu-z-50 wu-top-[50%] wu-flex wu-flex-col wu-w-full wu-max-w-lg wu-translate-x-[-50%] wu-translate-y-[-50%] wu-bg-white wu-shadow-lg wu-duration-200", um.content, e),
|
|
7776
7788
|
...i,
|
|
7777
|
-
children: [t, !n && /* @__PURE__ */ C(
|
|
7789
|
+
children: [t, !n && /* @__PURE__ */ C(G.Close, {
|
|
7778
7790
|
"aria-label": "close",
|
|
7779
7791
|
asChild: !0,
|
|
7780
7792
|
children: /* @__PURE__ */ w(Rt, {
|
|
@@ -7787,7 +7799,7 @@ var gm = s(({ className: e, children: t, hideCloseButton: n, isStackedCard: r, .
|
|
|
7787
7799
|
})
|
|
7788
7800
|
})]
|
|
7789
7801
|
})] }));
|
|
7790
|
-
gm.displayName =
|
|
7802
|
+
gm.displayName = G.Content.displayName;
|
|
7791
7803
|
var _m = ({ className: e, ...t }) => /* @__PURE__ */ C("div", {
|
|
7792
7804
|
className: K("wu-text-center wu-bg-gray-20 wu-w-full", e),
|
|
7793
7805
|
...t
|
|
@@ -7798,18 +7810,18 @@ var vm = ({ className: e, ...t }) => /* @__PURE__ */ C("div", {
|
|
|
7798
7810
|
...t
|
|
7799
7811
|
});
|
|
7800
7812
|
vm.displayName = "DialogFooter";
|
|
7801
|
-
var ym = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
7813
|
+
var ym = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Title, {
|
|
7802
7814
|
ref: n,
|
|
7803
7815
|
className: K("wu-text-lg wu-font-medium wu-flex wu-items-center wu-justify-center wu-gap-1 wu-h-10 wu-leading-none wu-tracking-tight", e),
|
|
7804
7816
|
...t
|
|
7805
7817
|
}));
|
|
7806
|
-
ym.displayName =
|
|
7807
|
-
var bm = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
7818
|
+
ym.displayName = G.Title.displayName;
|
|
7819
|
+
var bm = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Description, {
|
|
7808
7820
|
ref: n,
|
|
7809
7821
|
className: K("wu-text-sm wu-text-muted-foreground", e),
|
|
7810
7822
|
...t
|
|
7811
7823
|
}));
|
|
7812
|
-
bm.displayName =
|
|
7824
|
+
bm.displayName = G.Description.displayName;
|
|
7813
7825
|
var xm = { gradientBackground: "_gradientBackground_1uc4j_1" }, Sm = (e) => {
|
|
7814
7826
|
let { colors: t, size: n = .55, children: r, className: i, strokeWidth: a, centerOffset: o = {
|
|
7815
7827
|
x: 0,
|
|
@@ -8465,22 +8477,22 @@ var Jm = ({ label: e, onClick: t, disabled: n, icon: r, className: i }) => /* @_
|
|
|
8465
8477
|
className: K("wu-w-8 wu-h-8 wu-rounded-xs wu-group disabled:wu-text-zinc-300 disabled:wu-bg-white wu-text-gray-lead focus:wu-bg-color-none", i),
|
|
8466
8478
|
"aria-label": e,
|
|
8467
8479
|
children: /* @__PURE__ */ C("span", { className: K("wu-text-sm", r) })
|
|
8468
|
-
}), Ym = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
8480
|
+
}), Ym = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(de.Root, {
|
|
8469
8481
|
className: K("wu-grid wu-gap-2", e),
|
|
8470
8482
|
...t,
|
|
8471
8483
|
ref: n
|
|
8472
8484
|
}));
|
|
8473
|
-
Ym.displayName =
|
|
8474
|
-
var Xm = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
8485
|
+
Ym.displayName = de.Root.displayName;
|
|
8486
|
+
var Xm = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(de.Item, {
|
|
8475
8487
|
ref: n,
|
|
8476
8488
|
className: K("wu-group wu-aspect-square wu-h-4 wu-w-4 wu-rounded-full wu-border wu-border-gray-subtle wu-text-blue-p wu-ring-offset-white disabled:wu-cursor-not-allowed disabled:wu-opacity-50 hover:wu-border-blue-p hover:wu-bg-gray-20 data-[state=checked]:wu-border-blue-p hover:data-[state=checked]:wu-border-blue-q hover:data-[state=checked]:wu-bg-inherit focus:wu-outline-2 focus:wu-outline-offset-4 focus:wu-outline-blue-soft disabled:hover:wu-border-gray-subtle disabled:wu-hover:bg-gray-20 disabled:wu-bg-gray-20", e),
|
|
8477
8489
|
...t,
|
|
8478
|
-
children: /* @__PURE__ */ C(
|
|
8490
|
+
children: /* @__PURE__ */ C(de.Indicator, {
|
|
8479
8491
|
className: "wu-flex wu-items-center wu-justify-center",
|
|
8480
8492
|
children: /* @__PURE__ */ C("div", { className: "wu-w-2 wu-h-2 wu-rounded-full wu-bg-blue-p group-hover:group-data-[state=checked]:wu-bg-blue-q" })
|
|
8481
8493
|
})
|
|
8482
8494
|
}));
|
|
8483
|
-
Xm.displayName =
|
|
8495
|
+
Xm.displayName = de.Item.displayName;
|
|
8484
8496
|
//#endregion
|
|
8485
8497
|
//#region src/components/radio/WuRadioGroup.tsx
|
|
8486
8498
|
var Zm = n.forwardRef((e, t) => {
|
|
@@ -8537,14 +8549,14 @@ var Qm = (e) => {
|
|
|
8537
8549
|
$m.displayName = "Input";
|
|
8538
8550
|
//#endregion
|
|
8539
8551
|
//#region src/base/ui/separator.tsx
|
|
8540
|
-
var eh = t.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ C(
|
|
8552
|
+
var eh = t.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ C(fe.Root, {
|
|
8541
8553
|
ref: i,
|
|
8542
8554
|
decorative: n,
|
|
8543
8555
|
orientation: t,
|
|
8544
8556
|
className: K("wu-shrink-0 wu-bg-gray-40", t === "horizontal" ? "wu-h-[1px] wu-w-full" : "wu-h-full wu-w-[1px]", e),
|
|
8545
8557
|
...r
|
|
8546
8558
|
}));
|
|
8547
|
-
eh.displayName =
|
|
8559
|
+
eh.displayName = fe.Root.displayName;
|
|
8548
8560
|
//#endregion
|
|
8549
8561
|
//#region src/base/ui/skeleton.tsx
|
|
8550
8562
|
function th({ className: e, ...t }) {
|
|
@@ -9601,7 +9613,7 @@ var fg = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
|
|
|
9601
9613
|
style: r.Content,
|
|
9602
9614
|
children: [
|
|
9603
9615
|
/* @__PURE__ */ C(ym, {}),
|
|
9604
|
-
/* @__PURE__ */ C(
|
|
9616
|
+
/* @__PURE__ */ C(le, {
|
|
9605
9617
|
className: K("wu-absolute wu-right-2 wu-top-2 wu-w-8 wu-h-8 wu-flex wu-items-center wu-justify-center wu-z-10", i.CloseButton),
|
|
9606
9618
|
style: r.CloseButton,
|
|
9607
9619
|
"aria-label": "Close dialog",
|
|
@@ -9874,55 +9886,55 @@ function C_(e, { step: t, minWithDefault: n, maxWithDefault: r, minWithZeroDefau
|
|
|
9874
9886
|
//#endregion
|
|
9875
9887
|
//#region ../node_modules/.pnpm/@base-ui+react@1.5.0_@date-fns+tz@1.4.1_@types+react@18.3.29_date-fns@4.2.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/number-field/root/NumberFieldRoot.js
|
|
9876
9888
|
var w_ = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
9877
|
-
let { id: r, min: i, max: a, smallStep: o = .1, step: s = 1, largeStep: c = 10, required: l = !1, disabled: u = !1, readOnly: d = !1, form: f, name: p, defaultValue: m, value: h, onValueChange: g, onValueCommitted: _, allowWheelScrub: v = !1, snapOnStep: y = !1, allowOutOfRange: b = !1, format: x, locale: S, render: T, className: E, inputRef: D, style: O, ...k } = e, { setDirty: A, validityData: j, disabled: M, setFilled: N, invalid: P, name: F, state: I, validation: L, shouldValidateOnChange: R } = yn(), z = M || u, B = F ?? p, ee = s === "any" ? 1 : s, [te, ne] = t.useState(!1), re = i ?? -(2 ** 53 - 1), ie = a ?? 2 ** 53 - 1, V = i ?? 0,
|
|
9889
|
+
let { id: r, min: i, max: a, smallStep: o = .1, step: s = 1, largeStep: c = 10, required: l = !1, disabled: u = !1, readOnly: d = !1, form: f, name: p, defaultValue: m, value: h, onValueChange: g, onValueCommitted: _, allowWheelScrub: v = !1, snapOnStep: y = !1, allowOutOfRange: b = !1, format: x, locale: S, render: T, className: E, inputRef: D, style: O, ...k } = e, { setDirty: A, validityData: j, disabled: M, setFilled: N, invalid: P, name: F, state: I, validation: L, shouldValidateOnChange: R } = yn(), z = M || u, B = F ?? p, ee = s === "any" ? 1 : s, [te, ne] = t.useState(!1), re = i ?? -(2 ** 53 - 1), ie = a ?? 2 ** 53 - 1, V = i ?? 0, H = x?.style, ae = t.useRef(null), oe = sr(D, L.inputRef), U = Yn({ id: r }), [se, ce] = Xr({
|
|
9878
9890
|
controlled: h,
|
|
9879
9891
|
default: m,
|
|
9880
9892
|
name: "NumberField",
|
|
9881
9893
|
state: "value"
|
|
9882
|
-
}),
|
|
9894
|
+
}), W = se ?? null, G = tg(W);
|
|
9883
9895
|
X(() => {
|
|
9884
|
-
N(
|
|
9885
|
-
}, [N,
|
|
9886
|
-
let
|
|
9887
|
-
|
|
9888
|
-
}),
|
|
9896
|
+
N(W !== null);
|
|
9897
|
+
}, [N, W]);
|
|
9898
|
+
let le = Eg(), ue = tg(x), de = t.useRef(!1), fe = Y((e, t) => {
|
|
9899
|
+
de.current = !1, _?.(e, t);
|
|
9900
|
+
}), pe = t.useRef(!0), me = t.useRef(null), [he, ge] = t.useState(() => h === void 0 ? Fg(W, S, x) : T_(W, S, x)), [_e, ve] = t.useState("numeric"), ye = Y(() => {
|
|
9889
9901
|
let { decimal: e, group: t, currency: n, literal: r } = h_(S, x), i = /* @__PURE__ */ new Set();
|
|
9890
9902
|
n_.forEach((e) => i.add(e)), e && i.add(e), t && (i.add(t), r_.test(t) && i.add(" "));
|
|
9891
|
-
let a =
|
|
9892
|
-
return a && Hg.forEach((e) => i.add(e)), o && Ug.forEach((e) => i.add(e)),
|
|
9893
|
-
}),
|
|
9903
|
+
let a = H === "percent" || H === "unit" && x?.unit === "percent", o = H === "percent" || H === "unit" && x?.unit === "permille";
|
|
9904
|
+
return a && Hg.forEach((e) => i.add(e)), o && Ug.forEach((e) => i.add(e)), H === "currency" && n && i.add(n), r && (Array.from(r).forEach((e) => i.add(e)), r_.test(r) && i.add(" ")), i_.forEach((e) => i.add(e)), re < 0 && a_.forEach((e) => i.add(e)), i;
|
|
9905
|
+
}), be = Y((e) => e?.altKey ? o : e?.shiftKey ? c : ee), xe = Y((e, t) => {
|
|
9894
9906
|
let n = t.event, r = t.direction, i = t.reason, a = !b || !(i === "input-change" || i === "input-blur" || i === "input-paste" || i === "input-clear" || i === "none"), o = C_(e, {
|
|
9895
|
-
step: r ?
|
|
9896
|
-
format:
|
|
9907
|
+
step: r ? be(n) * r : void 0,
|
|
9908
|
+
format: ue.current,
|
|
9897
9909
|
minWithDefault: re,
|
|
9898
9910
|
maxWithDefault: ie,
|
|
9899
9911
|
minWithZeroDefault: V,
|
|
9900
9912
|
snapOnStep: y,
|
|
9901
9913
|
small: n?.altKey ?? !1,
|
|
9902
9914
|
clamp: a
|
|
9903
|
-
}), s = t.reason === "input-change" || t.reason === "input-clear" || t.reason === "input-blur" || t.reason === "input-paste" || t.reason === "none", c = o !==
|
|
9915
|
+
}), s = t.reason === "input-change" || t.reason === "input-clear" || t.reason === "input-blur" || t.reason === "input-paste" || t.reason === "none", c = o !== W || s && (e !== W || pe.current === !1);
|
|
9904
9916
|
if (c) {
|
|
9905
|
-
if (
|
|
9906
|
-
|
|
9917
|
+
if (me.current = o, g?.(o, t), t.isCanceled) return c;
|
|
9918
|
+
ce(o), A(o !== j.initialValue), de.current = !0;
|
|
9907
9919
|
}
|
|
9908
|
-
return
|
|
9909
|
-
}),
|
|
9910
|
-
let o = n ??
|
|
9911
|
-
return
|
|
9920
|
+
return pe.current && ge(Fg(o, S, x)), le(), c;
|
|
9921
|
+
}), Se = Y((e, { direction: t, currentValue: n, event: r, reason: a }) => {
|
|
9922
|
+
let o = n ?? G.current;
|
|
9923
|
+
return xe(typeof o == "number" ? o + e * t : Math.max(0, i ?? 0), ci(a, r, void 0, { direction: t }));
|
|
9912
9924
|
});
|
|
9913
9925
|
X(function() {
|
|
9914
|
-
if (!
|
|
9915
|
-
let e = h === void 0 ? Fg(
|
|
9916
|
-
e !==
|
|
9926
|
+
if (!pe.current) return;
|
|
9927
|
+
let e = h === void 0 ? Fg(W, S, x) : T_(W, S, x);
|
|
9928
|
+
e !== he && ge(e);
|
|
9917
9929
|
}), X(function() {
|
|
9918
9930
|
if (!tr) return;
|
|
9919
9931
|
let e = "text";
|
|
9920
|
-
re >= 0 && (e = "decimal"),
|
|
9921
|
-
}, [re,
|
|
9922
|
-
let e =
|
|
9932
|
+
re >= 0 && (e = "decimal"), ve(e);
|
|
9933
|
+
}, [re, H]), t.useEffect(function() {
|
|
9934
|
+
let e = ae.current;
|
|
9923
9935
|
if (z || d || !v || !e) return;
|
|
9924
9936
|
function t(e) {
|
|
9925
|
-
e.ctrlKey || ar(Xn(
|
|
9937
|
+
e.ctrlKey || ar(Xn(ae.current)) !== ae.current || (e.preventDefault(), pe.current = !0, Se(be(e) ?? 1, {
|
|
9926
9938
|
direction: e.deltaY > 0 ? -1 : 1,
|
|
9927
9939
|
event: e,
|
|
9928
9940
|
reason: "wheel"
|
|
@@ -9931,86 +9943,86 @@ var w_ = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
9931
9943
|
return eg(e, "wheel", t);
|
|
9932
9944
|
}, [
|
|
9933
9945
|
v,
|
|
9934
|
-
|
|
9946
|
+
Se,
|
|
9935
9947
|
z,
|
|
9936
9948
|
d,
|
|
9937
|
-
|
|
9949
|
+
be
|
|
9938
9950
|
]);
|
|
9939
|
-
let
|
|
9951
|
+
let Ce = t.useMemo(() => ({
|
|
9940
9952
|
...I,
|
|
9941
9953
|
disabled: z,
|
|
9942
9954
|
readOnly: d,
|
|
9943
9955
|
required: l,
|
|
9944
|
-
value:
|
|
9945
|
-
inputValue:
|
|
9956
|
+
value: W,
|
|
9957
|
+
inputValue: he,
|
|
9946
9958
|
scrubbing: te
|
|
9947
9959
|
}), [
|
|
9948
9960
|
I,
|
|
9949
9961
|
z,
|
|
9950
9962
|
d,
|
|
9951
9963
|
l,
|
|
9952
|
-
|
|
9953
|
-
|
|
9964
|
+
W,
|
|
9965
|
+
he,
|
|
9954
9966
|
te
|
|
9955
9967
|
]), we = t.useMemo(() => ({
|
|
9956
|
-
inputRef:
|
|
9957
|
-
inputValue:
|
|
9958
|
-
value:
|
|
9968
|
+
inputRef: ae,
|
|
9969
|
+
inputValue: he,
|
|
9970
|
+
value: W,
|
|
9959
9971
|
minWithDefault: re,
|
|
9960
9972
|
maxWithDefault: ie,
|
|
9961
9973
|
disabled: z,
|
|
9962
9974
|
readOnly: d,
|
|
9963
|
-
id:
|
|
9964
|
-
setValue:
|
|
9965
|
-
incrementValue:
|
|
9966
|
-
getStepAmount:
|
|
9967
|
-
allowInputSyncRef:
|
|
9968
|
-
formatOptionsRef:
|
|
9969
|
-
valueRef:
|
|
9970
|
-
lastChangedValueRef:
|
|
9971
|
-
hasPendingCommitRef:
|
|
9975
|
+
id: U,
|
|
9976
|
+
setValue: xe,
|
|
9977
|
+
incrementValue: Se,
|
|
9978
|
+
getStepAmount: be,
|
|
9979
|
+
allowInputSyncRef: pe,
|
|
9980
|
+
formatOptionsRef: ue,
|
|
9981
|
+
valueRef: G,
|
|
9982
|
+
lastChangedValueRef: me,
|
|
9983
|
+
hasPendingCommitRef: de,
|
|
9972
9984
|
name: B,
|
|
9973
9985
|
required: l,
|
|
9974
9986
|
invalid: P,
|
|
9975
|
-
inputMode:
|
|
9976
|
-
getAllowedNonNumericKeys:
|
|
9987
|
+
inputMode: _e,
|
|
9988
|
+
getAllowedNonNumericKeys: ye,
|
|
9977
9989
|
min: i,
|
|
9978
9990
|
max: a,
|
|
9979
|
-
setInputValue:
|
|
9991
|
+
setInputValue: ge,
|
|
9980
9992
|
locale: S,
|
|
9981
9993
|
isScrubbing: te,
|
|
9982
9994
|
setIsScrubbing: ne,
|
|
9983
|
-
state:
|
|
9984
|
-
onValueCommitted:
|
|
9995
|
+
state: Ce,
|
|
9996
|
+
onValueCommitted: fe
|
|
9985
9997
|
}), [
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9998
|
+
ae,
|
|
9999
|
+
he,
|
|
10000
|
+
W,
|
|
9989
10001
|
re,
|
|
9990
10002
|
ie,
|
|
9991
10003
|
z,
|
|
9992
10004
|
d,
|
|
9993
|
-
|
|
9994
|
-
Se,
|
|
9995
|
-
Ce,
|
|
10005
|
+
U,
|
|
9996
10006
|
xe,
|
|
9997
|
-
|
|
9998
|
-
|
|
10007
|
+
Se,
|
|
10008
|
+
be,
|
|
10009
|
+
ue,
|
|
10010
|
+
G,
|
|
9999
10011
|
B,
|
|
10000
10012
|
l,
|
|
10001
10013
|
P,
|
|
10002
|
-
|
|
10003
|
-
|
|
10014
|
+
_e,
|
|
10015
|
+
ye,
|
|
10004
10016
|
i,
|
|
10005
10017
|
a,
|
|
10006
|
-
|
|
10018
|
+
ge,
|
|
10007
10019
|
S,
|
|
10008
10020
|
te,
|
|
10009
|
-
|
|
10010
|
-
|
|
10021
|
+
Ce,
|
|
10022
|
+
fe
|
|
10011
10023
|
]), Te = xr("div", e, {
|
|
10012
10024
|
ref: n,
|
|
10013
|
-
state:
|
|
10025
|
+
state: Ce,
|
|
10014
10026
|
props: k,
|
|
10015
10027
|
stateAttributesMapping: Mg
|
|
10016
10028
|
});
|
|
@@ -10019,7 +10031,7 @@ var w_ = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
10019
10031
|
children: [Te, /* @__PURE__ */ C("input", {
|
|
10020
10032
|
...L.getInputValidationProps({
|
|
10021
10033
|
onFocus() {
|
|
10022
|
-
|
|
10034
|
+
ae.current?.focus();
|
|
10023
10035
|
},
|
|
10024
10036
|
onChange(e) {
|
|
10025
10037
|
if (e.nativeEvent.defaultPrevented || z || d) {
|
|
@@ -10027,14 +10039,14 @@ var w_ = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
10027
10039
|
return;
|
|
10028
10040
|
}
|
|
10029
10041
|
let t = e.currentTarget.valueAsNumber, n = Number.isNaN(t) ? null : t, r = ci($r, e.nativeEvent);
|
|
10030
|
-
A(n !== j.initialValue),
|
|
10042
|
+
A(n !== j.initialValue), xe(n, r), R() && L.commit(n);
|
|
10031
10043
|
}
|
|
10032
10044
|
}),
|
|
10033
|
-
ref:
|
|
10045
|
+
ref: oe,
|
|
10034
10046
|
type: "number",
|
|
10035
10047
|
form: f,
|
|
10036
10048
|
name: B,
|
|
10037
|
-
value:
|
|
10049
|
+
value: W ?? "",
|
|
10038
10050
|
min: i,
|
|
10039
10051
|
max: a,
|
|
10040
10052
|
step: s,
|
|
@@ -10617,7 +10629,7 @@ var nv = V("wu-inline-flex wu-items-center wu-justify-center wu-text-sm wu-font-
|
|
|
10617
10629
|
variant: "default",
|
|
10618
10630
|
size: "default"
|
|
10619
10631
|
}
|
|
10620
|
-
}), rv = t.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ C(
|
|
10632
|
+
}), rv = t.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ C(me.Root, {
|
|
10621
10633
|
ref: i,
|
|
10622
10634
|
className: K(nv({
|
|
10623
10635
|
variant: t,
|
|
@@ -10626,13 +10638,13 @@ var nv = V("wu-inline-flex wu-items-center wu-justify-center wu-text-sm wu-font-
|
|
|
10626
10638
|
})),
|
|
10627
10639
|
...r
|
|
10628
10640
|
}));
|
|
10629
|
-
rv.displayName =
|
|
10641
|
+
rv.displayName = me.Root.displayName;
|
|
10630
10642
|
//#endregion
|
|
10631
10643
|
//#region src/base/ui/toggleGroup.tsx
|
|
10632
10644
|
var iv = t.createContext({
|
|
10633
10645
|
size: "default",
|
|
10634
10646
|
variant: "default"
|
|
10635
|
-
}), av = t.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ C(
|
|
10647
|
+
}), av = t.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ C(pe.Root, {
|
|
10636
10648
|
ref: a,
|
|
10637
10649
|
className: K("wu-flex wu-items-center wu-justify-center wu-gap-1", e),
|
|
10638
10650
|
...i,
|
|
@@ -10644,10 +10656,10 @@ var iv = t.createContext({
|
|
|
10644
10656
|
children: r
|
|
10645
10657
|
})
|
|
10646
10658
|
}));
|
|
10647
|
-
av.displayName =
|
|
10659
|
+
av.displayName = pe.Root.displayName;
|
|
10648
10660
|
var ov = t.forwardRef(({ className: e, children: n, variant: r, size: i, ...a }, o) => {
|
|
10649
10661
|
let s = t.useContext(iv);
|
|
10650
|
-
return /* @__PURE__ */ C(
|
|
10662
|
+
return /* @__PURE__ */ C(pe.Item, {
|
|
10651
10663
|
ref: o,
|
|
10652
10664
|
className: K(nv({
|
|
10653
10665
|
variant: s.variant || r,
|
|
@@ -10657,7 +10669,7 @@ var ov = t.forwardRef(({ className: e, children: n, variant: r, size: i, ...a },
|
|
|
10657
10669
|
children: n
|
|
10658
10670
|
});
|
|
10659
10671
|
});
|
|
10660
|
-
ov.displayName =
|
|
10672
|
+
ov.displayName = pe.Item.displayName;
|
|
10661
10673
|
//#endregion
|
|
10662
10674
|
//#region src/components/switcher/ui/_iconTab.tsx
|
|
10663
10675
|
var sv = n.forwardRef((e, t) => {
|
|
@@ -10816,25 +10828,25 @@ var uv = n.forwardRef((e, t) => {
|
|
|
10816
10828
|
uv.displayName = "WuSwitcher";
|
|
10817
10829
|
//#endregion
|
|
10818
10830
|
//#region src/components/tab/shadcn/tabs.tsx
|
|
10819
|
-
var dv =
|
|
10831
|
+
var dv = he.Root, fv = t.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ C(he.List, {
|
|
10820
10832
|
className: K("wu-relative wu-flex", e),
|
|
10821
10833
|
...n,
|
|
10822
10834
|
ref: r,
|
|
10823
10835
|
children: t
|
|
10824
10836
|
}));
|
|
10825
|
-
fv.displayName =
|
|
10826
|
-
var pv = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
10837
|
+
fv.displayName = he.List.displayName;
|
|
10838
|
+
var pv = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(he.Trigger, {
|
|
10827
10839
|
ref: n,
|
|
10828
10840
|
className: K("wu-relative wu-inline-flex wu-items-center wu-whitespace-nowrap wu-text-xs wu-px-4 wu-py-2 wu-text-gray-600 wu-transition-colors wu-duration-200 data-[state=active]:wu-text-blue-p", "data-[orientation=horizontal]:wu-justify-center", e),
|
|
10829
10841
|
...t
|
|
10830
10842
|
}));
|
|
10831
|
-
pv.displayName =
|
|
10832
|
-
var mv = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
10843
|
+
pv.displayName = he.Trigger.displayName;
|
|
10844
|
+
var mv = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(he.Content, {
|
|
10833
10845
|
ref: n,
|
|
10834
10846
|
className: e,
|
|
10835
10847
|
...t
|
|
10836
10848
|
}));
|
|
10837
|
-
mv.displayName =
|
|
10849
|
+
mv.displayName = he.Content.displayName;
|
|
10838
10850
|
//#endregion
|
|
10839
10851
|
//#region src/components/tab/components/BaseTabContent.tsx
|
|
10840
10852
|
var hv = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ C("div", {
|
|
@@ -11163,7 +11175,7 @@ function Iv(e, t, n) {
|
|
|
11163
11175
|
return e === !0 && (!t || n > t);
|
|
11164
11176
|
}
|
|
11165
11177
|
function Lv(e, t) {
|
|
11166
|
-
let n =
|
|
11178
|
+
let n = ge(t.cell, e.getContext());
|
|
11167
11179
|
return e.column.id === "actions" ? /* @__PURE__ */ C("div", {
|
|
11168
11180
|
className: "wu-opacity-0 wu-transition-opacity wu-duration-150 wu-ease-in-out group-hover:wu-opacity-100",
|
|
11169
11181
|
children: n
|
|
@@ -11292,7 +11304,7 @@ var Bv = (e) => K("wu-group wu-border-b wu-border-black/[12%] [--wu-row-overlay:
|
|
|
11292
11304
|
}) }) });
|
|
11293
11305
|
}, Jv = ({ table: e, sortableColumns: t, manual: n = !1, onSort: r, size: i, isRowSelected: a, HeaderAction: o, isStickyHeader: s, asVirtualContent: c = !1, isRowExpandable: l, isScrolledLeft: u, isScrolledRight: d }) => {
|
|
11294
11306
|
let f = i === "compact" ? "wu-h-8" : "wu-h-10", p = e.getVisibleLeafColumns(), m = Pv(p), h = (e) => {
|
|
11295
|
-
let { id: i, columnDef: a, getIsSorted: o, toggleSorting: s } = e.column, c = a.headerAlign, l =
|
|
11307
|
+
let { id: i, columnDef: a, getIsSorted: o, toggleSorting: s } = e.column, c = a.headerAlign, l = ge(a.header, e.getContext());
|
|
11296
11308
|
if (!t.includes(i)) return l;
|
|
11297
11309
|
let u = o(), d = u === "asc", f = u === "desc";
|
|
11298
11310
|
return /* @__PURE__ */ w("button", {
|
|
@@ -11381,7 +11393,7 @@ var Xv = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
|
|
|
11381
11393
|
});
|
|
11382
11394
|
return /* @__PURE__ */ C("div", {
|
|
11383
11395
|
className: "wu-w-full",
|
|
11384
|
-
children: /* @__PURE__ */ C(
|
|
11396
|
+
children: /* @__PURE__ */ C(se, {
|
|
11385
11397
|
style: { height: r },
|
|
11386
11398
|
totalCount: _.length,
|
|
11387
11399
|
fixedHeaderContent: p ? void 0 : () => /* @__PURE__ */ C(Jv, {
|
|
@@ -11449,215 +11461,217 @@ var Xv = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
|
|
|
11449
11461
|
striped: "[&_tr:nth-child(even):not([data-expanded])_td]:wu-bg-zinc-50 [&_tr:nth-child(odd)[data-expanded]:not([data-state=\"selected\"])_td]:wu-bg-zinc-50",
|
|
11450
11462
|
unstyled: "",
|
|
11451
11463
|
bordered: "wu-border-collapse wu-border wu-border-black/[12%] [&_th]:wu-border [&_td]:wu-border"
|
|
11452
|
-
} } }), Qv = ({ data: e, columns: t, isLoading: r = !1, variant: i = "unstyled", sort: a, size: o, rowSelection: s, HeaderAction: c, NoDataContent: l, stickyHeader: u = !1,
|
|
11453
|
-
let [
|
|
11464
|
+
} } }), Qv = ({ data: e, columns: t, isLoading: r = !1, variant: i = "unstyled", sort: a, size: o, rowSelection: s, HeaderAction: c, NoDataContent: l, stickyHeader: u = !1, maxHeight: d, CustomLoader: f, caption: p, virtualization: m, isRowExpandable: h, hideHeader: g = !1, tableLayout: _ = "fixed", style: v, className: y, ...b }) => {
|
|
11465
|
+
let [x, S] = n.useState(() => a?.defaultSort ?? null), { scrollContainerRef: T, isScrolledLeft: E, isScrolledRight: D, handleScroll: O } = Av(), { rowSelectionState: k, sortableColumns: A, selectedRowCount: j, columnsWithExpand: M, expanded: N, setExpanded: P, handleRowSelectionChange: F } = zv({
|
|
11454
11466
|
data: e,
|
|
11455
11467
|
columns: t,
|
|
11456
11468
|
rowSelection: s,
|
|
11457
|
-
isRowExpandable:
|
|
11458
|
-
}),
|
|
11469
|
+
isRowExpandable: h
|
|
11470
|
+
}), I = Se({
|
|
11459
11471
|
data: e,
|
|
11460
|
-
columns:
|
|
11461
|
-
getCoreRowModel:
|
|
11462
|
-
getPaginationRowModel:
|
|
11463
|
-
getExpandedRowModel:
|
|
11472
|
+
columns: M,
|
|
11473
|
+
getCoreRowModel: _e(),
|
|
11474
|
+
getPaginationRowModel: be(),
|
|
11475
|
+
getExpandedRowModel: h ? ve() : void 0,
|
|
11464
11476
|
manualPagination: !0,
|
|
11465
11477
|
manualSorting: !0,
|
|
11466
11478
|
manualFiltering: !0,
|
|
11467
11479
|
enableRowSelection: s?.isRowDisabled ? (e) => !s.isRowDisabled(e.original) : !0,
|
|
11468
|
-
enableExpanding: !!
|
|
11480
|
+
enableExpanding: !!h,
|
|
11469
11481
|
state: {
|
|
11470
|
-
sorting:
|
|
11471
|
-
id:
|
|
11472
|
-
desc:
|
|
11482
|
+
sorting: x ? [{
|
|
11483
|
+
id: x.id,
|
|
11484
|
+
desc: x.desc
|
|
11473
11485
|
}] : [],
|
|
11474
|
-
...s?.isEnabled ? { rowSelection:
|
|
11475
|
-
...
|
|
11486
|
+
...s?.isEnabled ? { rowSelection: k } : {},
|
|
11487
|
+
...h ? { expanded: N } : {}
|
|
11476
11488
|
},
|
|
11477
|
-
onRowSelectionChange:
|
|
11478
|
-
...
|
|
11479
|
-
}),
|
|
11489
|
+
onRowSelectionChange: F,
|
|
11490
|
+
...h ? { onExpandedChange: P } : {}
|
|
11491
|
+
}), L = Iv(m?.enabled, m?.threshold, e.length), R = m?.maxHeight ?? 600, z = typeof d == "number" ? `${d}px` : d;
|
|
11480
11492
|
return /* @__PURE__ */ C("div", {
|
|
11481
|
-
className: K("wu-text-gray-lead wu-table-container wu-relative", !
|
|
11482
|
-
children:
|
|
11483
|
-
ref:
|
|
11484
|
-
onScroll:
|
|
11493
|
+
className: K("wu-text-gray-lead wu-table-container wu-relative", !L && u && !z && "wu-h-full"),
|
|
11494
|
+
children: L ? /* @__PURE__ */ w("div", {
|
|
11495
|
+
ref: T,
|
|
11496
|
+
onScroll: O,
|
|
11485
11497
|
className: K("wu-overflow-x-auto wu-w-full", Zv({ variant: i })),
|
|
11486
|
-
children: [
|
|
11498
|
+
children: [p && /* @__PURE__ */ C(kv, {
|
|
11487
11499
|
className: "wu-font-light",
|
|
11488
|
-
children:
|
|
11500
|
+
children: p
|
|
11489
11501
|
}), r ? /* @__PURE__ */ C("div", {
|
|
11490
11502
|
className: "wu-text-center wu-h-[35vh] wu-flex wu-items-center wu-justify-center",
|
|
11491
|
-
children:
|
|
11492
|
-
}) :
|
|
11493
|
-
table:
|
|
11503
|
+
children: f ?? /* @__PURE__ */ C(Qe, { className: "wu-w-full" })
|
|
11504
|
+
}) : I.getRowModel().rows?.length ? /* @__PURE__ */ C(Xv, {
|
|
11505
|
+
table: I,
|
|
11494
11506
|
size: o,
|
|
11495
11507
|
isRowDisabled: s?.isRowDisabled,
|
|
11496
|
-
containerHeight:
|
|
11497
|
-
sortableColumns:
|
|
11508
|
+
containerHeight: R,
|
|
11509
|
+
sortableColumns: A,
|
|
11498
11510
|
HeaderAction: c,
|
|
11499
|
-
isRowSelected:
|
|
11511
|
+
isRowSelected: j > 0,
|
|
11500
11512
|
manual: !0,
|
|
11501
11513
|
onSort: (e) => {
|
|
11502
|
-
|
|
11514
|
+
S(e), a?.onSort(e);
|
|
11503
11515
|
},
|
|
11504
|
-
tableLayout:
|
|
11505
|
-
isScrolledLeft:
|
|
11506
|
-
isScrolledRight:
|
|
11507
|
-
hideHeader:
|
|
11516
|
+
tableLayout: _,
|
|
11517
|
+
isScrolledLeft: E,
|
|
11518
|
+
isScrolledRight: D,
|
|
11519
|
+
hideHeader: g
|
|
11508
11520
|
}) : /* @__PURE__ */ C("div", {
|
|
11509
11521
|
className: "wu-p-4 wu-text-center",
|
|
11510
11522
|
children: l
|
|
11511
11523
|
})]
|
|
11512
11524
|
}) : /* @__PURE__ */ C("div", {
|
|
11513
|
-
ref:
|
|
11514
|
-
onScroll:
|
|
11515
|
-
className: K("wu-overflow-x-auto wu-w-full", u && "wu-overflow-y-auto wu-h-full"),
|
|
11525
|
+
ref: T,
|
|
11526
|
+
onScroll: O,
|
|
11527
|
+
className: K("wu-overflow-x-auto wu-w-full", u && "wu-overflow-y-auto", u && !z && "wu-h-full"),
|
|
11528
|
+
style: u && z ? { maxHeight: z } : void 0,
|
|
11516
11529
|
children: /* @__PURE__ */ w(Sv, {
|
|
11517
|
-
...
|
|
11518
|
-
className: K("wu-w-full", Zv({ variant: i }),
|
|
11530
|
+
...b,
|
|
11531
|
+
className: K("wu-w-full", Zv({ variant: i }), y),
|
|
11519
11532
|
style: {
|
|
11520
|
-
tableLayout:
|
|
11521
|
-
...
|
|
11533
|
+
tableLayout: _,
|
|
11534
|
+
...v
|
|
11522
11535
|
},
|
|
11523
11536
|
children: [
|
|
11524
|
-
|
|
11537
|
+
p && /* @__PURE__ */ C(kv, {
|
|
11525
11538
|
className: "wu-font-light",
|
|
11526
|
-
children:
|
|
11539
|
+
children: p
|
|
11527
11540
|
}),
|
|
11528
|
-
!
|
|
11529
|
-
table:
|
|
11530
|
-
sortableColumns:
|
|
11541
|
+
!g && /* @__PURE__ */ C(Jv, {
|
|
11542
|
+
table: I,
|
|
11543
|
+
sortableColumns: A,
|
|
11531
11544
|
manual: !0,
|
|
11532
11545
|
onSort: (e) => {
|
|
11533
|
-
|
|
11546
|
+
S(e), a?.onSort(e);
|
|
11534
11547
|
},
|
|
11535
11548
|
size: o,
|
|
11536
11549
|
HeaderAction: c,
|
|
11537
|
-
isRowSelected:
|
|
11550
|
+
isRowSelected: j > 0,
|
|
11538
11551
|
isStickyHeader: u,
|
|
11539
|
-
isRowExpandable:
|
|
11540
|
-
isScrolledLeft:
|
|
11541
|
-
isScrolledRight:
|
|
11552
|
+
isRowExpandable: h,
|
|
11553
|
+
isScrolledLeft: E,
|
|
11554
|
+
isScrolledRight: D
|
|
11542
11555
|
}),
|
|
11543
11556
|
/* @__PURE__ */ C(qv, {
|
|
11544
|
-
table:
|
|
11557
|
+
table: I,
|
|
11545
11558
|
size: o,
|
|
11546
11559
|
NoDataContent: l,
|
|
11547
|
-
CustomLoader:
|
|
11560
|
+
CustomLoader: f,
|
|
11548
11561
|
isLoading: r,
|
|
11549
11562
|
isRowDisabled: s?.isRowDisabled,
|
|
11550
|
-
isRowExpandable:
|
|
11551
|
-
isScrolledLeft:
|
|
11552
|
-
isScrolledRight:
|
|
11563
|
+
isRowExpandable: h,
|
|
11564
|
+
isScrolledLeft: E,
|
|
11565
|
+
isScrolledRight: D
|
|
11553
11566
|
})
|
|
11554
11567
|
]
|
|
11555
11568
|
})
|
|
11556
11569
|
})
|
|
11557
11570
|
});
|
|
11558
|
-
}, $v = ({ data: e, columns: t, variant: r = "unstyled", size: i = "default", sort: a, filterText: o, pagination: s, stickyHeader: c,
|
|
11559
|
-
let [
|
|
11571
|
+
}, $v = ({ data: e, columns: t, variant: r = "unstyled", size: i = "default", sort: a, filterText: o, pagination: s, stickyHeader: c, maxHeight: l, HeaderAction: u, CustomLoader: d, NoDataContent: f, isLoading: m, caption: h, rowSelection: g, isRowExpandable: v, hideHeader: b = !1, virtualization: x, tableLayout: S = "fixed", style: T, className: E, ...D }) => {
|
|
11572
|
+
let [O, k] = n.useState(() => a?.defaultSort ? [{
|
|
11560
11573
|
id: a.defaultSort.id,
|
|
11561
11574
|
desc: a.defaultSort.desc
|
|
11562
|
-
}] : []), [
|
|
11575
|
+
}] : []), [A, j] = y([]), [M, N] = y(s?.pageIndex ?? 0), { scrollContainerRef: P, isScrolledLeft: F, isScrolledRight: I, handleScroll: L } = Av(), { finalColumns: R, rowSelectionState: z, sortableColumns: B, selectedRowCount: ee, columnsWithExpand: te, expanded: ne, setExpanded: re, handleRowSelectionChange: ie } = zv({
|
|
11563
11576
|
data: e,
|
|
11564
11577
|
columns: t,
|
|
11565
|
-
rowSelection:
|
|
11566
|
-
isRowExpandable:
|
|
11567
|
-
}),
|
|
11578
|
+
rowSelection: g,
|
|
11579
|
+
isRowExpandable: v
|
|
11580
|
+
}), V = _(() => R.filter((e) => e.filterable).map((e) => e.accessorKey), [R]), H = Se({
|
|
11568
11581
|
data: e,
|
|
11569
|
-
columns:
|
|
11570
|
-
getCoreRowModel:
|
|
11571
|
-
getFilteredRowModel:
|
|
11572
|
-
getSortedRowModel:
|
|
11573
|
-
getPaginationRowModel: s ?
|
|
11574
|
-
getExpandedRowModel:
|
|
11575
|
-
enableRowSelection:
|
|
11576
|
-
enableExpanding: !!
|
|
11582
|
+
columns: te,
|
|
11583
|
+
getCoreRowModel: _e(),
|
|
11584
|
+
getFilteredRowModel: ye(),
|
|
11585
|
+
getSortedRowModel: xe(),
|
|
11586
|
+
getPaginationRowModel: s ? be() : void 0,
|
|
11587
|
+
getExpandedRowModel: v ? ve() : void 0,
|
|
11588
|
+
enableRowSelection: g?.isRowDisabled ? (e) => !g.isRowDisabled(e.original) : !0,
|
|
11589
|
+
enableExpanding: !!v,
|
|
11577
11590
|
state: {
|
|
11578
|
-
sorting:
|
|
11579
|
-
columnFilters:
|
|
11591
|
+
sorting: O,
|
|
11592
|
+
columnFilters: A,
|
|
11580
11593
|
...s ? { pagination: s } : {},
|
|
11581
|
-
...
|
|
11582
|
-
...
|
|
11594
|
+
...g?.isEnabled ? { rowSelection: z } : {},
|
|
11595
|
+
...v ? { expanded: ne } : {}
|
|
11583
11596
|
},
|
|
11584
|
-
onSortingChange:
|
|
11585
|
-
onColumnFiltersChange:
|
|
11586
|
-
onRowSelectionChange:
|
|
11587
|
-
...
|
|
11597
|
+
onSortingChange: k,
|
|
11598
|
+
onColumnFiltersChange: j,
|
|
11599
|
+
onRowSelectionChange: ie,
|
|
11600
|
+
...v ? { onExpandedChange: re } : {}
|
|
11588
11601
|
});
|
|
11589
11602
|
p(() => {
|
|
11590
|
-
|
|
11591
|
-
|
|
11603
|
+
V.forEach((e) => {
|
|
11604
|
+
H.getColumn(e)?.setFilterValue(o);
|
|
11592
11605
|
});
|
|
11593
11606
|
}, [
|
|
11594
11607
|
o,
|
|
11595
|
-
|
|
11596
|
-
|
|
11608
|
+
V,
|
|
11609
|
+
H
|
|
11597
11610
|
]), p(() => {
|
|
11598
|
-
s && s?.pageIndex !==
|
|
11611
|
+
s && s?.pageIndex !== M && (g?.onRowSelect([]), H.resetRowSelection(), N(s.pageIndex));
|
|
11599
11612
|
}, [s?.pageIndex]);
|
|
11600
|
-
let ae = Iv(
|
|
11613
|
+
let ae = Iv(x?.enabled, x?.threshold, e.length), oe = x?.maxHeight ?? 600, U = typeof l == "number" ? `${l}px` : l;
|
|
11601
11614
|
return /* @__PURE__ */ C("div", {
|
|
11602
|
-
className: K("wu-text-gray-lead wu-table-container wu-relative", !ae && c && "wu-h-full"),
|
|
11615
|
+
className: K("wu-text-gray-lead wu-table-container wu-relative", !ae && c && !U && "wu-h-full"),
|
|
11603
11616
|
children: ae ? /* @__PURE__ */ w("div", {
|
|
11604
|
-
ref:
|
|
11605
|
-
onScroll:
|
|
11617
|
+
ref: P,
|
|
11618
|
+
onScroll: L,
|
|
11606
11619
|
className: K("wu-overflow-x-auto wu-w-full", Zv({ variant: r })),
|
|
11607
|
-
children: [
|
|
11620
|
+
children: [h && /* @__PURE__ */ C(kv, { children: h }), m ? /* @__PURE__ */ C("div", {
|
|
11608
11621
|
className: "wu-text-center wu-h-[35vh] wu-flex wu-items-center wu-justify-center",
|
|
11609
|
-
children:
|
|
11610
|
-
}) :
|
|
11611
|
-
table:
|
|
11622
|
+
children: d ?? /* @__PURE__ */ C(Qe, { className: "wu-w-full" })
|
|
11623
|
+
}) : H.getRowModel().rows?.length ? /* @__PURE__ */ C(Xv, {
|
|
11624
|
+
table: H,
|
|
11612
11625
|
size: i,
|
|
11613
|
-
isRowDisabled:
|
|
11626
|
+
isRowDisabled: g?.isRowDisabled,
|
|
11614
11627
|
containerHeight: oe,
|
|
11615
|
-
sortableColumns:
|
|
11616
|
-
HeaderAction:
|
|
11617
|
-
isRowSelected:
|
|
11618
|
-
tableLayout:
|
|
11619
|
-
isScrolledLeft:
|
|
11620
|
-
isScrolledRight:
|
|
11621
|
-
isRowExpandable:
|
|
11622
|
-
hideHeader:
|
|
11628
|
+
sortableColumns: B,
|
|
11629
|
+
HeaderAction: u,
|
|
11630
|
+
isRowSelected: ee > 0,
|
|
11631
|
+
tableLayout: S,
|
|
11632
|
+
isScrolledLeft: F,
|
|
11633
|
+
isScrolledRight: I,
|
|
11634
|
+
isRowExpandable: v,
|
|
11635
|
+
hideHeader: b
|
|
11623
11636
|
}) : /* @__PURE__ */ C("div", {
|
|
11624
11637
|
className: "wu-p-4 wu-text-center",
|
|
11625
|
-
children:
|
|
11638
|
+
children: f
|
|
11626
11639
|
})]
|
|
11627
11640
|
}) : /* @__PURE__ */ C("div", {
|
|
11628
|
-
ref:
|
|
11629
|
-
onScroll:
|
|
11630
|
-
className: K("wu-overflow-x-auto wu-w-full", c && "wu-overflow-y-auto wu-h-full"),
|
|
11641
|
+
ref: P,
|
|
11642
|
+
onScroll: L,
|
|
11643
|
+
className: K("wu-overflow-x-auto wu-w-full", c && "wu-overflow-y-auto", c && !U && "wu-h-full"),
|
|
11644
|
+
style: c && U ? { maxHeight: U } : void 0,
|
|
11631
11645
|
children: /* @__PURE__ */ w(Sv, {
|
|
11632
|
-
...
|
|
11633
|
-
className: K(`wu-table-${
|
|
11646
|
+
...D,
|
|
11647
|
+
className: K(`wu-table-${S}`, "wu-w-full", Zv({ variant: r }), E),
|
|
11634
11648
|
style: {
|
|
11635
|
-
tableLayout:
|
|
11636
|
-
...
|
|
11649
|
+
tableLayout: S,
|
|
11650
|
+
...T
|
|
11637
11651
|
},
|
|
11638
11652
|
children: [
|
|
11639
|
-
|
|
11640
|
-
!
|
|
11641
|
-
table:
|
|
11642
|
-
sortableColumns:
|
|
11653
|
+
h && /* @__PURE__ */ C(kv, { children: h }),
|
|
11654
|
+
!b && /* @__PURE__ */ C(Jv, {
|
|
11655
|
+
table: H,
|
|
11656
|
+
sortableColumns: B,
|
|
11643
11657
|
size: i,
|
|
11644
|
-
HeaderAction:
|
|
11645
|
-
isRowSelected:
|
|
11658
|
+
HeaderAction: u,
|
|
11659
|
+
isRowSelected: ee > 0,
|
|
11646
11660
|
isStickyHeader: c,
|
|
11647
|
-
isRowExpandable:
|
|
11648
|
-
isScrolledLeft:
|
|
11649
|
-
isScrolledRight:
|
|
11661
|
+
isRowExpandable: v,
|
|
11662
|
+
isScrolledLeft: F,
|
|
11663
|
+
isScrolledRight: I
|
|
11650
11664
|
}),
|
|
11651
11665
|
/* @__PURE__ */ C(qv, {
|
|
11652
|
-
table:
|
|
11666
|
+
table: H,
|
|
11653
11667
|
size: i,
|
|
11654
|
-
NoDataContent:
|
|
11655
|
-
CustomLoader:
|
|
11656
|
-
isLoading:
|
|
11657
|
-
isRowDisabled:
|
|
11658
|
-
isRowExpandable:
|
|
11659
|
-
isScrolledLeft:
|
|
11660
|
-
isScrolledRight:
|
|
11668
|
+
NoDataContent: f,
|
|
11669
|
+
CustomLoader: d,
|
|
11670
|
+
isLoading: m,
|
|
11671
|
+
isRowDisabled: g?.isRowDisabled,
|
|
11672
|
+
isRowExpandable: v,
|
|
11673
|
+
isScrolledLeft: F,
|
|
11674
|
+
isScrolledRight: I
|
|
11661
11675
|
})
|
|
11662
11676
|
]
|
|
11663
11677
|
})
|
|
@@ -11972,7 +11986,7 @@ var Dy = () => ({ showToast: ({ message: e, variant: t, duration: n, position: r
|
|
|
11972
11986
|
variant: t,
|
|
11973
11987
|
duration: n,
|
|
11974
11988
|
position: r
|
|
11975
|
-
}) }), Oy =
|
|
11989
|
+
}) }), Oy = Ce.Provider, ky = V("wu-fixed wu-z-[100] wu-flex wu-max-h-screen wu-w-full wu-flex-col-reverse wu-px-4 wu-py-2 sm:wu-flex-col md:wu-max-w-[720px] wu-w-fit wu-toast-container", {
|
|
11976
11990
|
variants: { position: {
|
|
11977
11991
|
topRight: "wu-right-0 wu-top-0",
|
|
11978
11992
|
top: "wu-top-0 wu-left-1/2 wu--translate-x-1/2",
|
|
@@ -11982,12 +11996,12 @@ var Dy = () => ({ showToast: ({ message: e, variant: t, duration: n, position: r
|
|
|
11982
11996
|
bottomLeft: "wu-left-0 wu-bottom-0"
|
|
11983
11997
|
} },
|
|
11984
11998
|
defaultVariants: { position: "top" }
|
|
11985
|
-
}), Ay = t.forwardRef(({ className: e, position: t, ...n }, r) => /* @__PURE__ */ C(
|
|
11999
|
+
}), Ay = t.forwardRef(({ className: e, position: t, ...n }, r) => /* @__PURE__ */ C(Ce.Viewport, {
|
|
11986
12000
|
ref: r,
|
|
11987
12001
|
className: K(ky({ position: t }), e),
|
|
11988
12002
|
...n
|
|
11989
12003
|
}));
|
|
11990
|
-
Ay.displayName =
|
|
12004
|
+
Ay.displayName = Ce.Viewport.displayName;
|
|
11991
12005
|
var jy = V("group wu-pointer-events-auto wu-text-xs wu-font-normal wu-relative wu-flex wu-w-full wu-min-h-12 wu-items-center wu-justify-between wu-overflow-hidden wu-px-4 wu-pr-0 wu-py-2 wu-shadow-sm wu-transition-all data-[swipe=cancel]:wu-translate-y-0 data-[swipe=end]:wu-translate-y-[var(--radix-toast-swipe-end-y)] data-[swipe=move]:wu-translate-y-[var(--radix-toast-swipe-move-y)] data-[swipe=move]:wu-transition-none data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[swipe=end]:wu-animate-out data-[state=closed]:wu-fade-out-80", {
|
|
11992
12006
|
variants: {
|
|
11993
12007
|
variant: {
|
|
@@ -12010,7 +12024,7 @@ var jy = V("group wu-pointer-events-auto wu-text-xs wu-font-normal wu-relative w
|
|
|
12010
12024
|
variant: "success",
|
|
12011
12025
|
position: "top"
|
|
12012
12026
|
}
|
|
12013
|
-
}), My = t.forwardRef(({ className: e, variant: t, position: n, ...r }, i) => /* @__PURE__ */ C(
|
|
12027
|
+
}), My = t.forwardRef(({ className: e, variant: t, position: n, ...r }, i) => /* @__PURE__ */ C(Ce.Root, {
|
|
12014
12028
|
ref: i,
|
|
12015
12029
|
className: K(jy({
|
|
12016
12030
|
variant: t,
|
|
@@ -12018,14 +12032,14 @@ var jy = V("group wu-pointer-events-auto wu-text-xs wu-font-normal wu-relative w
|
|
|
12018
12032
|
}), e),
|
|
12019
12033
|
...r
|
|
12020
12034
|
}));
|
|
12021
|
-
My.displayName =
|
|
12022
|
-
var Ny = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
12035
|
+
My.displayName = Ce.Root.displayName;
|
|
12036
|
+
var Ny = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(Ce.Action, {
|
|
12023
12037
|
ref: n,
|
|
12024
12038
|
className: K("wu-inline-flex wu-h-8 wu-shrink-0 wu-items-center wu-justify-center wu-border wu-bg-transparent wu-px-3 wu-text-sm wu-font-medium wu-ring-offset-background wu-transition-colors hover:wu-bg-secondary focus:wu-outline-none focus:wu-ring-2 focus:wu-ring-ring focus:wu-ring-offset-2 disabled:wu-cursor-not-allowed disabled:wu-opacity-50 group-[.destructive]:wu-border-muted/40 group-[.destructive]:hover:wu-border-destructive/30 group-[.destructive]:hover:wu-bg-destructive group-[.destructive]:hover:wu-text-destructive-foreground group-[.destructive]:focus:wu-ring-destructive", e),
|
|
12025
12039
|
...t
|
|
12026
12040
|
}));
|
|
12027
|
-
Ny.displayName =
|
|
12028
|
-
var Py = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
12041
|
+
Ny.displayName = Ce.Action.displayName;
|
|
12042
|
+
var Py = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(Ce.Close, {
|
|
12029
12043
|
ref: n,
|
|
12030
12044
|
className: K("wu-relative wu-right-4 wu-bottom-2 wu-rounded-sm wu-w-4 wu-h-4 wu-p-1 wu-text-foreground/50 wu-opacity-100 wu-transition-opacity hover:wu-text-foreground focus:wu-opacity-100 focus:wu-outline-none group-hover:wu-opacity-100 group-[.destructive]:wu-text-red-300 group-[.destructive]:hover:wu-text-red-50 group-[.destructive]:focus:wu-ring-red-400 group-[.destructive]:focus:wu-ring-offset-red-600", e),
|
|
12031
12045
|
"toast-close": "",
|
|
@@ -12033,19 +12047,19 @@ var Py = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Close,
|
|
|
12033
12047
|
...t,
|
|
12034
12048
|
children: /* @__PURE__ */ C("span", { className: "wm-close wu-text-base" })
|
|
12035
12049
|
}));
|
|
12036
|
-
Py.displayName =
|
|
12037
|
-
var Fy = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
12050
|
+
Py.displayName = Ce.Close.displayName;
|
|
12051
|
+
var Fy = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(Ce.Title, {
|
|
12038
12052
|
ref: n,
|
|
12039
12053
|
className: K("wu-text-sm wu-font-semibold", e),
|
|
12040
12054
|
...t
|
|
12041
12055
|
}));
|
|
12042
|
-
Fy.displayName =
|
|
12043
|
-
var Iy = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
12056
|
+
Fy.displayName = Ce.Title.displayName;
|
|
12057
|
+
var Iy = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(Ce.Description, {
|
|
12044
12058
|
ref: n,
|
|
12045
12059
|
className: K("wu-text-sm wu-opacity-90", e),
|
|
12046
12060
|
...t
|
|
12047
12061
|
}));
|
|
12048
|
-
Iy.displayName =
|
|
12062
|
+
Iy.displayName = Ce.Description.displayName;
|
|
12049
12063
|
//#endregion
|
|
12050
12064
|
//#region src/base/ui/toaster.tsx
|
|
12051
12065
|
function Ly() {
|
|
@@ -12359,6 +12373,6 @@ var Vy = V("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosit
|
|
|
12359
12373
|
});
|
|
12360
12374
|
//#endregion
|
|
12361
12375
|
//#region src/index.ts
|
|
12362
|
-
ob.displayName = "WuTranslate", typeof window < "u" && (window.wickUiVersion = "1.
|
|
12376
|
+
ob.displayName = "WuTranslate", typeof window < "u" && (window.wickUiVersion = "1.51.0");
|
|
12363
12377
|
//#endregion
|
|
12364
12378
|
export { Ky as CHART_COLOR_SYSTEM, He as WuAccordion, Je as WuActivityLog, Nt as WuAppHeader, ot as WuAppHeaderAccount, Tt as WuAppHeaderBar, st as WuAppHeaderHelp, wt as WuAppHeaderMenu, Et as WuAppHeaderSearch, tt as WuButton, Bt as WuCalender, ki as WuCard, ji as WuCardFooter, Ai as WuCardHeader, Ni as WuCheckbox, Ii as WuChip, ha as WuCombobox, ga as WuCopyToClipboard, Qv as WuDataTable, $t as WuDatePicker, Oi as WuDateRangePicker, mt as WuDisplay, ka as WuDrawer, Aa as WuDrawerClose, Kp as WuDrilldown, Qp as WuFooter, Qt as WuFormGroup, ft as WuHeading, $p as WuHelpButton, ht as WuIcon, mi as WuInput, qt as WuInputError, Jt as WuInputHint, Zt as WuLabel, cm as WuListbox, Qe as WuLoader, Vp as WuMenu, Mp as WuMenuCheckboxItem, lm as WuMenuIcon, Np as WuMenuItem, Pp as WuMenuItemGroup, Fp as WuMenuRadioItem, Ip as WuMenuSeparatorItem, Em as WuModal, Am as WuModalClose, Dm as WuModalContent, km as WuModalFooter, Om as WuModalHeader, Bm as WuMonthPicker, qm as WuPagination, vi as WuPopover, yi as WuPopoverClose, Wm as WuPrimaryNavbar, Zm as WuRadioGroup, Qm as WuScrollArea, Km as WuSecondaryNavbar, Rm as WuSelect, Y_ as WuSharedSurvey, fg as WuSidebar, yg as WuSidebarCollapsibleMenu, mg as WuSidebarContent, hg as WuSidebarFooter, gg as WuSidebarGroup, vg as WuSidebarItem, _g as WuSidebarMenu, pg as WuSidebarTrigger, Sm as WuSpotlight, wg as WuStackedCard, Tg as WuStackedCardOverlay, K_ as WuStepper, zp as WuSubMenu, pt as WuSubtext, Z_ as WuSurveyItem, Q_ as WuSurveyList, tv as WuSurveySelect, ev as WuSurveySource, uv as WuSwitcher, xv as WuTab, $v as WuTable, dt as WuText, ty as WuTextarea, my as WuTimePicker, Ry as WuToast, By as WuToggle, jt as WuTooltip, ob as WuTranslate, ab as WuTranslateProvider, Hy as WuTranslationContext, Gy as WuTranslationProvider, Mt as WuTruncatedLabel, Ki as WuVirtualScroll, Sg as calculatePosition, d as useContext, Uy as useTranslation, Wy as useTranslationsContext, nb as useWickuiTranslate, rb as useWt, Dy as useWuShowToast, dh as useWuSidebar, Qy as wt, eb as wtCharacterSet, $y as wtIsRtl };
|