@sonamu-kit/react-components 0.3.2 → 0.3.3
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/react-components.es.js +244 -230
- package/dist/react-components.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -2126,7 +2126,21 @@ function ii(e, t) {
|
|
|
2126
2126
|
getItemLabel: b
|
|
2127
2127
|
};
|
|
2128
2128
|
}
|
|
2129
|
-
function ai(
|
|
2129
|
+
function ai(e, t) {
|
|
2130
|
+
if (!t || typeof e != "string") return e;
|
|
2131
|
+
let n = e.toLowerCase(), r = t.toLowerCase(), i = n.indexOf(r);
|
|
2132
|
+
if (i === -1) return e;
|
|
2133
|
+
let a = e.slice(0, i), o = e.slice(i, i + t.length), s = e.slice(i + t.length);
|
|
2134
|
+
return /* @__PURE__ */ p(d, { children: [
|
|
2135
|
+
a,
|
|
2136
|
+
/* @__PURE__ */ f("strong", {
|
|
2137
|
+
className: "font-bold",
|
|
2138
|
+
children: o
|
|
2139
|
+
}),
|
|
2140
|
+
s
|
|
2141
|
+
] });
|
|
2142
|
+
}
|
|
2143
|
+
function oi({ props: e, isMultiple: t, isAsync: n, isPopoverOpen: i, setIsPopoverOpen: a, searchValue: o, handleSearchChange: s, filteredOptions: l, getKeyForValue: u, getItemLabel: m }) {
|
|
2130
2144
|
let { SD: h } = K(), g = c(null), _ = n || "searchable" in e && e.searchable === !0, v = r((e) => {
|
|
2131
2145
|
let t = g.current;
|
|
2132
2146
|
if (!t) return;
|
|
@@ -2270,7 +2284,7 @@ function ai({ props: e, isMultiple: t, isAsync: n, isPopoverOpen: i, setIsPopove
|
|
|
2270
2284
|
children: /* @__PURE__ */ f(G, { className: "h-4 w-4" })
|
|
2271
2285
|
}),
|
|
2272
2286
|
!t && /* @__PURE__ */ f(G, { className: U("mr-2 h-4 w-4", r ? "opacity-100" : "opacity-0") }),
|
|
2273
|
-
/* @__PURE__ */ f("span", { children: m(e.value) })
|
|
2287
|
+
/* @__PURE__ */ f("span", { children: ai(m(e.value), o) })
|
|
2274
2288
|
]
|
|
2275
2289
|
}, n);
|
|
2276
2290
|
}) })] })
|
|
@@ -2281,7 +2295,7 @@ function ai({ props: e, isMultiple: t, isAsync: n, isPopoverOpen: i, setIsPopove
|
|
|
2281
2295
|
}
|
|
2282
2296
|
var Q = e.forwardRef(function(e, t) {
|
|
2283
2297
|
let n = ii(e, t);
|
|
2284
|
-
return /* @__PURE__ */ f(
|
|
2298
|
+
return /* @__PURE__ */ f(oi, {
|
|
2285
2299
|
props: e,
|
|
2286
2300
|
isMultiple: n.isMultiple,
|
|
2287
2301
|
isAsync: n.isAsync,
|
|
@@ -2293,7 +2307,7 @@ var Q = e.forwardRef(function(e, t) {
|
|
|
2293
2307
|
getKeyForValue: n.getKeyForValue,
|
|
2294
2308
|
getItemLabel: n.getItemLabel
|
|
2295
2309
|
});
|
|
2296
|
-
}),
|
|
2310
|
+
}), si = [
|
|
2297
2311
|
"Jan",
|
|
2298
2312
|
"Feb",
|
|
2299
2313
|
"Mar",
|
|
@@ -2307,7 +2321,7 @@ var Q = e.forwardRef(function(e, t) {
|
|
|
2307
2321
|
"Nov",
|
|
2308
2322
|
"Dec"
|
|
2309
2323
|
];
|
|
2310
|
-
function
|
|
2324
|
+
function ci({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, placeholder: a, dateFormat: o = "MMM/yyyy", className: s = "", yearRange: c = {
|
|
2311
2325
|
start: 2020,
|
|
2312
2326
|
end: 2030
|
|
2313
2327
|
}, defaultRangeMode: l = !1 }) {
|
|
@@ -2388,7 +2402,7 @@ function si({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2388
2402
|
}),
|
|
2389
2403
|
/* @__PURE__ */ f("div", {
|
|
2390
2404
|
className: "grid grid-cols-3 gap-2",
|
|
2391
|
-
children:
|
|
2405
|
+
children: si.map((e, t) => {
|
|
2392
2406
|
let n = y?.to ? C > y.to.getFullYear() || C === y.to.getFullYear() && t > y.to.getMonth() : !1;
|
|
2393
2407
|
return /* @__PURE__ */ f(W, {
|
|
2394
2408
|
variant: y?.from?.getMonth() === t && y?.from?.getFullYear() === C ? "default" : "outline",
|
|
@@ -2433,7 +2447,7 @@ function si({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2433
2447
|
}),
|
|
2434
2448
|
/* @__PURE__ */ f("div", {
|
|
2435
2449
|
className: "grid grid-cols-3 gap-2",
|
|
2436
|
-
children:
|
|
2450
|
+
children: si.map((e, t) => {
|
|
2437
2451
|
let n = y?.from ? T < y.from.getFullYear() || T === y.from.getFullYear() && t < y.from.getMonth() : !1;
|
|
2438
2452
|
return /* @__PURE__ */ f(W, {
|
|
2439
2453
|
variant: y?.to?.getMonth() === t && y?.to?.getFullYear() === T ? "default" : "outline",
|
|
@@ -2471,7 +2485,7 @@ function si({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2471
2485
|
className: "h-8 text-xs"
|
|
2472
2486
|
}), /* @__PURE__ */ f("div", {
|
|
2473
2487
|
className: "grid grid-cols-3 gap-2",
|
|
2474
|
-
children:
|
|
2488
|
+
children: si.map((e, t) => /* @__PURE__ */ f(W, {
|
|
2475
2489
|
variant: _?.getMonth() === t && _?.getFullYear() === x ? "default" : "outline",
|
|
2476
2490
|
size: "sm",
|
|
2477
2491
|
onClick: () => {
|
|
@@ -2518,22 +2532,22 @@ function si({ CalendarIcon: t, ChevronDownIcon: n, value: r, onValueChange: i, p
|
|
|
2518
2532
|
}
|
|
2519
2533
|
//#endregion
|
|
2520
2534
|
//#region src/components/ui/navigation-menu.tsx
|
|
2521
|
-
var
|
|
2535
|
+
var li = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(I.Root, {
|
|
2522
2536
|
ref: r,
|
|
2523
2537
|
className: U("relative z-10 flex max-w-max flex-1 items-center justify-center", e),
|
|
2524
2538
|
...n,
|
|
2525
|
-
children: [t, /* @__PURE__ */ f(
|
|
2539
|
+
children: [t, /* @__PURE__ */ f(gi, {})]
|
|
2526
2540
|
}));
|
|
2527
|
-
|
|
2528
|
-
var
|
|
2541
|
+
li.displayName = I.Root.displayName;
|
|
2542
|
+
var ui = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(I.List, {
|
|
2529
2543
|
ref: n,
|
|
2530
2544
|
className: U("group flex flex-1 list-none items-center justify-center space-x-1", e),
|
|
2531
2545
|
...t
|
|
2532
2546
|
}));
|
|
2533
|
-
|
|
2534
|
-
var
|
|
2547
|
+
ui.displayName = I.List.displayName;
|
|
2548
|
+
var di = I.Item, fi = g("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"), pi = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(I.Trigger, {
|
|
2535
2549
|
ref: r,
|
|
2536
|
-
className: U(
|
|
2550
|
+
className: U(fi(), "group", e),
|
|
2537
2551
|
...n,
|
|
2538
2552
|
children: [
|
|
2539
2553
|
t,
|
|
@@ -2544,14 +2558,14 @@ var ui = I.Item, di = g("group inline-flex h-10 w-max items-center justify-cente
|
|
|
2544
2558
|
})
|
|
2545
2559
|
]
|
|
2546
2560
|
}));
|
|
2547
|
-
|
|
2548
|
-
var
|
|
2561
|
+
pi.displayName = I.Trigger.displayName;
|
|
2562
|
+
var mi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(I.Content, {
|
|
2549
2563
|
ref: n,
|
|
2550
2564
|
className: U("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", e),
|
|
2551
2565
|
...t
|
|
2552
2566
|
}));
|
|
2553
|
-
|
|
2554
|
-
var
|
|
2567
|
+
mi.displayName = I.Content.displayName;
|
|
2568
|
+
var hi = I.Link, gi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2555
2569
|
className: U("absolute left-0 top-full flex justify-center"),
|
|
2556
2570
|
children: /* @__PURE__ */ f(I.Viewport, {
|
|
2557
2571
|
className: U("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)", e),
|
|
@@ -2559,17 +2573,17 @@ var mi = I.Link, hi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ *
|
|
|
2559
2573
|
...t
|
|
2560
2574
|
})
|
|
2561
2575
|
}));
|
|
2562
|
-
|
|
2563
|
-
var
|
|
2576
|
+
gi.displayName = I.Viewport.displayName;
|
|
2577
|
+
var _i = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(I.Indicator, {
|
|
2564
2578
|
ref: n,
|
|
2565
2579
|
className: U("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", e),
|
|
2566
2580
|
...t,
|
|
2567
2581
|
children: /* @__PURE__ */ f("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
2568
2582
|
}));
|
|
2569
|
-
|
|
2583
|
+
_i.displayName = I.Indicator.displayName;
|
|
2570
2584
|
//#endregion
|
|
2571
2585
|
//#region src/components/ui/pagination.tsx
|
|
2572
|
-
var
|
|
2586
|
+
var vi = e.forwardRef(({ value: e, onValueChange: t, total: n, itemsPerPage: r, className: i, maxVisible: a = 6 }, o) => {
|
|
2573
2587
|
let { SD: s } = K(), c = Math.ceil(n / r), l = e, u = (l - 1) * r + 1, d = Math.min(l * r, n);
|
|
2574
2588
|
return /* @__PURE__ */ p("div", {
|
|
2575
2589
|
ref: o,
|
|
@@ -2613,10 +2627,10 @@ var _i = e.forwardRef(({ value: e, onValueChange: t, total: n, itemsPerPage: r,
|
|
|
2613
2627
|
})]
|
|
2614
2628
|
});
|
|
2615
2629
|
});
|
|
2616
|
-
|
|
2630
|
+
vi.displayName = "Pagination";
|
|
2617
2631
|
//#endregion
|
|
2618
2632
|
//#region src/components/ui/progress.tsx
|
|
2619
|
-
var
|
|
2633
|
+
var yi = e.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ f(ce.Root, {
|
|
2620
2634
|
ref: r,
|
|
2621
2635
|
className: U("relative h-4 w-full overflow-hidden rounded-full bg-secondary", e),
|
|
2622
2636
|
...n,
|
|
@@ -2625,16 +2639,16 @@ var vi = e.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ f
|
|
|
2625
2639
|
style: { transform: `translateX(-${100 - (t || 0)}%)` }
|
|
2626
2640
|
})
|
|
2627
2641
|
}));
|
|
2628
|
-
|
|
2642
|
+
yi.displayName = ce.Root.displayName;
|
|
2629
2643
|
//#endregion
|
|
2630
2644
|
//#region src/components/ui/radio-group.tsx
|
|
2631
|
-
var
|
|
2645
|
+
var bi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(L.Root, {
|
|
2632
2646
|
className: U("grid gap-2", e),
|
|
2633
2647
|
...t,
|
|
2634
2648
|
ref: n
|
|
2635
2649
|
}));
|
|
2636
|
-
|
|
2637
|
-
var
|
|
2650
|
+
bi.displayName = L.Root.displayName;
|
|
2651
|
+
var xi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(L.Item, {
|
|
2638
2652
|
ref: n,
|
|
2639
2653
|
className: U("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
2640
2654
|
...t,
|
|
@@ -2643,10 +2657,10 @@ var bi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(L.Item, {
|
|
|
2643
2657
|
children: /* @__PURE__ */ f(xn, { className: "h-2.5 w-2.5 fill-current text-current" })
|
|
2644
2658
|
})
|
|
2645
2659
|
}));
|
|
2646
|
-
|
|
2660
|
+
xi.displayName = L.Item.displayName;
|
|
2647
2661
|
//#endregion
|
|
2648
2662
|
//#region src/components/ui/range-number-input.tsx
|
|
2649
|
-
function
|
|
2663
|
+
function Si({ value: e = [void 0, void 0], onChange: t, placeholder: n = ["최소값", "최대값"], disabled: r, className: i }) {
|
|
2650
2664
|
let [a, o] = e;
|
|
2651
2665
|
return /* @__PURE__ */ p("div", {
|
|
2652
2666
|
className: `flex items-center gap-2 ${i}`,
|
|
@@ -2682,7 +2696,7 @@ function xi({ value: e = [void 0, void 0], onChange: t, placeholder: n = ["최
|
|
|
2682
2696
|
}
|
|
2683
2697
|
//#endregion
|
|
2684
2698
|
//#region ~icons/lucide/grip-vertical.jsx
|
|
2685
|
-
var
|
|
2699
|
+
var Ci = (e) => /* @__PURE__ */ f("svg", {
|
|
2686
2700
|
viewBox: "0 0 24 24",
|
|
2687
2701
|
width: "1.2em",
|
|
2688
2702
|
height: "1.2em",
|
|
@@ -2726,17 +2740,17 @@ var Si = (e) => /* @__PURE__ */ f("svg", {
|
|
|
2726
2740
|
})
|
|
2727
2741
|
]
|
|
2728
2742
|
})
|
|
2729
|
-
}),
|
|
2743
|
+
}), wi = ({ className: e, ...t }) => /* @__PURE__ */ f(R.PanelGroup, {
|
|
2730
2744
|
className: U("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e),
|
|
2731
2745
|
...t
|
|
2732
|
-
}),
|
|
2746
|
+
}), Ti = R.Panel, Ei = ({ withHandle: e, className: t, ...n }) => /* @__PURE__ */ f(R.PanelResizeHandle, {
|
|
2733
2747
|
className: U("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", t),
|
|
2734
2748
|
...n,
|
|
2735
2749
|
children: e && /* @__PURE__ */ f("div", {
|
|
2736
2750
|
className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
|
|
2737
|
-
children: /* @__PURE__ */ f(
|
|
2751
|
+
children: /* @__PURE__ */ f(Ci, { className: "h-2.5 w-2.5" })
|
|
2738
2752
|
})
|
|
2739
|
-
}),
|
|
2753
|
+
}), Di = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ p(z.Root, {
|
|
2740
2754
|
ref: r,
|
|
2741
2755
|
className: U("relative overflow-hidden", e),
|
|
2742
2756
|
...n,
|
|
@@ -2745,22 +2759,22 @@ var Si = (e) => /* @__PURE__ */ f("svg", {
|
|
|
2745
2759
|
className: "h-full w-full rounded-[inherit]",
|
|
2746
2760
|
children: t
|
|
2747
2761
|
}),
|
|
2748
|
-
/* @__PURE__ */ f(
|
|
2762
|
+
/* @__PURE__ */ f(Oi, {}),
|
|
2749
2763
|
/* @__PURE__ */ f(z.Corner, {})
|
|
2750
2764
|
]
|
|
2751
2765
|
}));
|
|
2752
|
-
|
|
2753
|
-
var
|
|
2766
|
+
Di.displayName = z.Root.displayName;
|
|
2767
|
+
var Oi = e.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ f(z.ScrollAreaScrollbar, {
|
|
2754
2768
|
ref: r,
|
|
2755
2769
|
orientation: t,
|
|
2756
2770
|
className: U("flex touch-none select-none transition-colors", t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px", t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px", e),
|
|
2757
2771
|
...n,
|
|
2758
2772
|
children: /* @__PURE__ */ f(z.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
2759
2773
|
}));
|
|
2760
|
-
|
|
2774
|
+
Oi.displayName = z.ScrollAreaScrollbar.displayName;
|
|
2761
2775
|
//#endregion
|
|
2762
2776
|
//#region src/components/ui/select/enum-select.tsx
|
|
2763
|
-
function
|
|
2777
|
+
function ki({ enum: t, labels: n, value: r, onValueChange: i, placeholder: a, textPrefix: o = "", clearable: s = !1, disabled: c = !1, className: l, multiple: u = !1 }) {
|
|
2764
2778
|
let d = e.useMemo(() => t.options.filter((e) => e !== ""), [t]), p = e.useMemo(() => d.map((e) => ({
|
|
2765
2779
|
value: e,
|
|
2766
2780
|
label: o + n[e]
|
|
@@ -2797,22 +2811,22 @@ function Oi({ enum: t, labels: n, value: r, onValueChange: i, placeholder: a, te
|
|
|
2797
2811
|
}
|
|
2798
2812
|
//#endregion
|
|
2799
2813
|
//#region src/components/ui/select/id-async-select.tsx
|
|
2800
|
-
var
|
|
2814
|
+
var Ai = [
|
|
2801
2815
|
"name",
|
|
2802
2816
|
"title",
|
|
2803
2817
|
"label",
|
|
2804
2818
|
"display_name",
|
|
2805
2819
|
"username"
|
|
2806
2820
|
];
|
|
2807
|
-
function
|
|
2808
|
-
for (let t of
|
|
2821
|
+
function ji(e) {
|
|
2822
|
+
for (let t of Ai) if (Object.keys(e).includes(t)) return t;
|
|
2809
2823
|
for (let [t, n] of Object.entries(e)) if (t !== "id" && typeof n == "string") return t;
|
|
2810
2824
|
return "id";
|
|
2811
2825
|
}
|
|
2812
|
-
function
|
|
2826
|
+
function Mi({ config: e, subset: t, baseListParams: n, displayField: i, valueField: a = "id", placeholder: o, clearable: c, disabled: u, className: d, multiple: p = !1, preload: m = !1, value: h, onValueChange: g, onRowChange: _ }) {
|
|
2813
2827
|
let { SD: v } = K(), y = typeof i == "function", b = r((e) => {
|
|
2814
2828
|
if (y) return i(e);
|
|
2815
|
-
let t = typeof i == "string" ? i :
|
|
2829
|
+
let t = typeof i == "string" ? i : ji(e);
|
|
2816
2830
|
return String(e[t] ?? "");
|
|
2817
2831
|
}, [i, y]), [x, S] = l(void 0), C = r((e) => {
|
|
2818
2832
|
S(e || void 0);
|
|
@@ -2942,13 +2956,13 @@ function ji({ config: e, subset: t, baseListParams: n, displayField: i, valueFie
|
|
|
2942
2956
|
}
|
|
2943
2957
|
//#endregion
|
|
2944
2958
|
//#region src/components/ui/sheet.tsx
|
|
2945
|
-
var
|
|
2959
|
+
var Ni = D.Root, Pi = D.Trigger, Fi = D.Close, Ii = D.Portal, Li = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(D.Overlay, {
|
|
2946
2960
|
className: U("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", e),
|
|
2947
2961
|
...t,
|
|
2948
2962
|
ref: n
|
|
2949
2963
|
}));
|
|
2950
|
-
|
|
2951
|
-
var
|
|
2964
|
+
Li.displayName = D.Overlay.displayName;
|
|
2965
|
+
var Ri = g("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
|
|
2952
2966
|
variants: { side: {
|
|
2953
2967
|
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
2954
2968
|
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
@@ -2956,9 +2970,9 @@ var Li = g("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out
|
|
|
2956
2970
|
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
2957
2971
|
} },
|
|
2958
2972
|
defaultVariants: { side: "right" }
|
|
2959
|
-
}),
|
|
2973
|
+
}), zi = e.forwardRef(({ side: e = "right", className: t, children: n, ...r }, i) => /* @__PURE__ */ p(Ii, { children: [/* @__PURE__ */ f(Li, {}), /* @__PURE__ */ p(D.Content, {
|
|
2960
2974
|
ref: i,
|
|
2961
|
-
className: U(
|
|
2975
|
+
className: U(Ri({ side: e }), t),
|
|
2962
2976
|
...r,
|
|
2963
2977
|
children: [n, /* @__PURE__ */ p(D.Close, {
|
|
2964
2978
|
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
@@ -2968,32 +2982,32 @@ var Li = g("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out
|
|
|
2968
2982
|
})]
|
|
2969
2983
|
})]
|
|
2970
2984
|
})] }));
|
|
2971
|
-
|
|
2972
|
-
var
|
|
2985
|
+
zi.displayName = D.Content.displayName;
|
|
2986
|
+
var Bi = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
2973
2987
|
className: U("flex flex-col space-y-2 text-center sm:text-left", e),
|
|
2974
2988
|
...t
|
|
2975
2989
|
});
|
|
2976
|
-
|
|
2977
|
-
var
|
|
2990
|
+
Bi.displayName = "SheetHeader";
|
|
2991
|
+
var Vi = ({ className: e, ...t }) => /* @__PURE__ */ f("div", {
|
|
2978
2992
|
className: U("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
2979
2993
|
...t
|
|
2980
2994
|
});
|
|
2981
|
-
|
|
2982
|
-
var
|
|
2995
|
+
Vi.displayName = "SheetFooter";
|
|
2996
|
+
var Hi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(D.Title, {
|
|
2983
2997
|
ref: n,
|
|
2984
2998
|
className: U("text-lg font-semibold text-foreground", e),
|
|
2985
2999
|
...t
|
|
2986
3000
|
}));
|
|
2987
|
-
|
|
2988
|
-
var
|
|
3001
|
+
Hi.displayName = D.Title.displayName;
|
|
3002
|
+
var Ui = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(D.Description, {
|
|
2989
3003
|
ref: n,
|
|
2990
3004
|
className: U("text-sm text-muted-foreground", e),
|
|
2991
3005
|
...t
|
|
2992
3006
|
}));
|
|
2993
|
-
|
|
3007
|
+
Ui.displayName = D.Description.displayName;
|
|
2994
3008
|
//#endregion
|
|
2995
3009
|
//#region ~icons/lucide/panel-left.jsx
|
|
2996
|
-
var
|
|
3010
|
+
var Wi = (e) => /* @__PURE__ */ f("svg", {
|
|
2997
3011
|
viewBox: "0 0 24 24",
|
|
2998
3012
|
width: "1.2em",
|
|
2999
3013
|
height: "1.2em",
|
|
@@ -3012,19 +3026,19 @@ var Ui = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3012
3026
|
rx: 2
|
|
3013
3027
|
}), /* @__PURE__ */ f("path", { d: "M9 3v18" })]
|
|
3014
3028
|
})
|
|
3015
|
-
}),
|
|
3016
|
-
function
|
|
3029
|
+
}), Gi = 768;
|
|
3030
|
+
function Ki() {
|
|
3017
3031
|
let [t, n] = e.useState(void 0);
|
|
3018
3032
|
return e.useEffect(() => {
|
|
3019
|
-
let e = window.matchMedia(`(max-width: ${
|
|
3020
|
-
n(window.innerWidth <
|
|
3033
|
+
let e = window.matchMedia(`(max-width: ${Gi - 1}px)`), t = () => {
|
|
3034
|
+
n(window.innerWidth < Gi);
|
|
3021
3035
|
};
|
|
3022
|
-
return e.addEventListener("change", t), n(window.innerWidth <
|
|
3036
|
+
return e.addEventListener("change", t), n(window.innerWidth < Gi), () => e.removeEventListener("change", t);
|
|
3023
3037
|
}, []), !!t;
|
|
3024
3038
|
}
|
|
3025
3039
|
//#endregion
|
|
3026
3040
|
//#region src/components/ui/skeleton.tsx
|
|
3027
|
-
function
|
|
3041
|
+
function qi({ className: e, ...t }) {
|
|
3028
3042
|
return /* @__PURE__ */ f("div", {
|
|
3029
3043
|
className: U("animate-pulse rounded-md bg-muted", e),
|
|
3030
3044
|
...t
|
|
@@ -3032,23 +3046,23 @@ function Ki({ className: e, ...t }) {
|
|
|
3032
3046
|
}
|
|
3033
3047
|
//#endregion
|
|
3034
3048
|
//#region src/components/ui/tooltip.tsx
|
|
3035
|
-
var
|
|
3049
|
+
var Ji = le.Provider, Yi = le.Root, Xi = le.Trigger, Zi = e.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ f(le.Content, {
|
|
3036
3050
|
ref: r,
|
|
3037
3051
|
sideOffset: t,
|
|
3038
3052
|
className: U("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]", e),
|
|
3039
3053
|
...n
|
|
3040
3054
|
}));
|
|
3041
|
-
|
|
3055
|
+
Zi.displayName = le.Content.displayName;
|
|
3042
3056
|
//#endregion
|
|
3043
3057
|
//#region src/components/ui/sidebar.tsx
|
|
3044
|
-
var
|
|
3045
|
-
function
|
|
3046
|
-
let t = e.useContext(
|
|
3058
|
+
var Qi = "16rem", $i = "18rem", ea = "3rem", ta = "b", na = e.createContext(null);
|
|
3059
|
+
function ra() {
|
|
3060
|
+
let t = e.useContext(na);
|
|
3047
3061
|
if (!t) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
3048
3062
|
return t;
|
|
3049
3063
|
}
|
|
3050
|
-
function
|
|
3051
|
-
let c =
|
|
3064
|
+
function ia({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style: a, children: o, ...s }) {
|
|
3065
|
+
let c = Ki(), [l, u] = e.useState(!1), [d, p] = e.useState(t), m = n ?? d, h = e.useCallback((e) => {
|
|
3052
3066
|
let t = typeof e == "function" ? e(m) : e;
|
|
3053
3067
|
r ? r(t) : p(t);
|
|
3054
3068
|
}, [r, m]), g = e.useCallback(() => c ? u((e) => !e) : h((e) => !e), [
|
|
@@ -3058,7 +3072,7 @@ function ra({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style
|
|
|
3058
3072
|
]);
|
|
3059
3073
|
e.useEffect(() => {
|
|
3060
3074
|
let e = (e) => {
|
|
3061
|
-
e.key ===
|
|
3075
|
+
e.key === ta && (e.metaKey || e.ctrlKey) && (e.preventDefault(), g());
|
|
3062
3076
|
};
|
|
3063
3077
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
3064
3078
|
}, [g]);
|
|
@@ -3079,15 +3093,15 @@ function ra({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style
|
|
|
3079
3093
|
u,
|
|
3080
3094
|
g
|
|
3081
3095
|
]);
|
|
3082
|
-
return /* @__PURE__ */ f(
|
|
3096
|
+
return /* @__PURE__ */ f(na.Provider, {
|
|
3083
3097
|
value: v,
|
|
3084
|
-
children: /* @__PURE__ */ f(
|
|
3098
|
+
children: /* @__PURE__ */ f(Ji, {
|
|
3085
3099
|
delayDuration: 0,
|
|
3086
3100
|
children: /* @__PURE__ */ f("div", {
|
|
3087
3101
|
"data-slot": "sidebar-wrapper",
|
|
3088
3102
|
style: {
|
|
3089
|
-
"--sidebar-width":
|
|
3090
|
-
"--sidebar-width-icon":
|
|
3103
|
+
"--sidebar-width": Qi,
|
|
3104
|
+
"--sidebar-width-icon": ea,
|
|
3091
3105
|
...a
|
|
3092
3106
|
},
|
|
3093
3107
|
className: U("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", i),
|
|
@@ -3097,27 +3111,27 @@ function ra({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style
|
|
|
3097
3111
|
})
|
|
3098
3112
|
});
|
|
3099
3113
|
}
|
|
3100
|
-
function
|
|
3101
|
-
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } =
|
|
3114
|
+
function aa({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, ...a }) {
|
|
3115
|
+
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } = ra();
|
|
3102
3116
|
return n === "none" ? /* @__PURE__ */ f("div", {
|
|
3103
3117
|
"data-slot": "sidebar",
|
|
3104
3118
|
className: U("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
3105
3119
|
...a,
|
|
3106
3120
|
children: i
|
|
3107
|
-
}) : o ? /* @__PURE__ */ f(
|
|
3121
|
+
}) : o ? /* @__PURE__ */ f(Ni, {
|
|
3108
3122
|
open: c,
|
|
3109
3123
|
onOpenChange: l,
|
|
3110
3124
|
...a,
|
|
3111
|
-
children: /* @__PURE__ */ p(
|
|
3125
|
+
children: /* @__PURE__ */ p(zi, {
|
|
3112
3126
|
"data-sidebar": "sidebar",
|
|
3113
3127
|
"data-slot": "sidebar",
|
|
3114
3128
|
"data-mobile": "true",
|
|
3115
3129
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
3116
|
-
style: { "--sidebar-width":
|
|
3130
|
+
style: { "--sidebar-width": $i },
|
|
3117
3131
|
side: e,
|
|
3118
|
-
children: [/* @__PURE__ */ p(
|
|
3132
|
+
children: [/* @__PURE__ */ p(Bi, {
|
|
3119
3133
|
className: "sr-only",
|
|
3120
|
-
children: [/* @__PURE__ */ f(
|
|
3134
|
+
children: [/* @__PURE__ */ f(Hi, { children: "Sidebar" }), /* @__PURE__ */ f(Ui, { children: "Displays the mobile sidebar." })]
|
|
3121
3135
|
}), /* @__PURE__ */ f("div", {
|
|
3122
3136
|
className: "flex h-full w-full flex-col",
|
|
3123
3137
|
children: i
|
|
@@ -3146,8 +3160,8 @@ function ia({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
3146
3160
|
})]
|
|
3147
3161
|
});
|
|
3148
3162
|
}
|
|
3149
|
-
function
|
|
3150
|
-
let { toggleSidebar: r } =
|
|
3163
|
+
function oa({ className: e, onClick: t, ...n }) {
|
|
3164
|
+
let { toggleSidebar: r } = ra();
|
|
3151
3165
|
return /* @__PURE__ */ p(W, {
|
|
3152
3166
|
"data-sidebar": "trigger",
|
|
3153
3167
|
"data-slot": "sidebar-trigger",
|
|
@@ -3157,14 +3171,14 @@ function aa({ className: e, onClick: t, ...n }) {
|
|
|
3157
3171
|
t?.(e), r();
|
|
3158
3172
|
},
|
|
3159
3173
|
...n,
|
|
3160
|
-
children: [/* @__PURE__ */ f(
|
|
3174
|
+
children: [/* @__PURE__ */ f(Wi, {}), /* @__PURE__ */ f("span", {
|
|
3161
3175
|
className: "sr-only",
|
|
3162
3176
|
children: "Toggle Sidebar"
|
|
3163
3177
|
})]
|
|
3164
3178
|
});
|
|
3165
3179
|
}
|
|
3166
|
-
function
|
|
3167
|
-
let { toggleSidebar: n } =
|
|
3180
|
+
function sa({ className: e, ...t }) {
|
|
3181
|
+
let { toggleSidebar: n } = ra();
|
|
3168
3182
|
return /* @__PURE__ */ f("button", {
|
|
3169
3183
|
"data-sidebar": "rail",
|
|
3170
3184
|
"data-slot": "sidebar-rail",
|
|
@@ -3176,14 +3190,14 @@ function oa({ className: e, ...t }) {
|
|
|
3176
3190
|
...t
|
|
3177
3191
|
});
|
|
3178
3192
|
}
|
|
3179
|
-
function
|
|
3193
|
+
function ca({ className: e, ...t }) {
|
|
3180
3194
|
return /* @__PURE__ */ f("main", {
|
|
3181
3195
|
"data-slot": "sidebar-inset",
|
|
3182
3196
|
className: U("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
|
|
3183
3197
|
...t
|
|
3184
3198
|
});
|
|
3185
3199
|
}
|
|
3186
|
-
function
|
|
3200
|
+
function la({ className: e, ...t }) {
|
|
3187
3201
|
return /* @__PURE__ */ f(Z, {
|
|
3188
3202
|
"data-slot": "sidebar-input",
|
|
3189
3203
|
"data-sidebar": "input",
|
|
@@ -3191,7 +3205,7 @@ function ca({ className: e, ...t }) {
|
|
|
3191
3205
|
...t
|
|
3192
3206
|
});
|
|
3193
3207
|
}
|
|
3194
|
-
function
|
|
3208
|
+
function ua({ className: e, ...t }) {
|
|
3195
3209
|
return /* @__PURE__ */ f("div", {
|
|
3196
3210
|
"data-slot": "sidebar-header",
|
|
3197
3211
|
"data-sidebar": "header",
|
|
@@ -3199,7 +3213,7 @@ function la({ className: e, ...t }) {
|
|
|
3199
3213
|
...t
|
|
3200
3214
|
});
|
|
3201
3215
|
}
|
|
3202
|
-
function
|
|
3216
|
+
function da({ className: e, ...t }) {
|
|
3203
3217
|
return /* @__PURE__ */ f("div", {
|
|
3204
3218
|
"data-slot": "sidebar-footer",
|
|
3205
3219
|
"data-sidebar": "footer",
|
|
@@ -3207,7 +3221,7 @@ function ua({ className: e, ...t }) {
|
|
|
3207
3221
|
...t
|
|
3208
3222
|
});
|
|
3209
3223
|
}
|
|
3210
|
-
function
|
|
3224
|
+
function fa({ className: e, ...t }) {
|
|
3211
3225
|
return /* @__PURE__ */ f(ni, {
|
|
3212
3226
|
"data-slot": "sidebar-separator",
|
|
3213
3227
|
"data-sidebar": "separator",
|
|
@@ -3215,7 +3229,7 @@ function da({ className: e, ...t }) {
|
|
|
3215
3229
|
...t
|
|
3216
3230
|
});
|
|
3217
3231
|
}
|
|
3218
|
-
function
|
|
3232
|
+
function pa({ className: e, ...t }) {
|
|
3219
3233
|
return /* @__PURE__ */ f("div", {
|
|
3220
3234
|
"data-slot": "sidebar-content",
|
|
3221
3235
|
"data-sidebar": "content",
|
|
@@ -3223,7 +3237,7 @@ function fa({ className: e, ...t }) {
|
|
|
3223
3237
|
...t
|
|
3224
3238
|
});
|
|
3225
3239
|
}
|
|
3226
|
-
function
|
|
3240
|
+
function ma({ className: e, ...t }) {
|
|
3227
3241
|
return /* @__PURE__ */ f("div", {
|
|
3228
3242
|
"data-slot": "sidebar-group",
|
|
3229
3243
|
"data-sidebar": "group",
|
|
@@ -3231,7 +3245,7 @@ function pa({ className: e, ...t }) {
|
|
|
3231
3245
|
...t
|
|
3232
3246
|
});
|
|
3233
3247
|
}
|
|
3234
|
-
function
|
|
3248
|
+
function ha({ className: e, asChild: t = !1, ...n }) {
|
|
3235
3249
|
return /* @__PURE__ */ f(t ? v : "div", {
|
|
3236
3250
|
"data-slot": "sidebar-group-label",
|
|
3237
3251
|
"data-sidebar": "group-label",
|
|
@@ -3239,7 +3253,7 @@ function ma({ className: e, asChild: t = !1, ...n }) {
|
|
|
3239
3253
|
...n
|
|
3240
3254
|
});
|
|
3241
3255
|
}
|
|
3242
|
-
function
|
|
3256
|
+
function ga({ className: e, asChild: t = !1, ...n }) {
|
|
3243
3257
|
return /* @__PURE__ */ f(t ? v : "button", {
|
|
3244
3258
|
"data-slot": "sidebar-group-action",
|
|
3245
3259
|
"data-sidebar": "group-action",
|
|
@@ -3247,7 +3261,7 @@ function ha({ className: e, asChild: t = !1, ...n }) {
|
|
|
3247
3261
|
...n
|
|
3248
3262
|
});
|
|
3249
3263
|
}
|
|
3250
|
-
function
|
|
3264
|
+
function _a({ className: e, ...t }) {
|
|
3251
3265
|
return /* @__PURE__ */ f("div", {
|
|
3252
3266
|
"data-slot": "sidebar-group-content",
|
|
3253
3267
|
"data-sidebar": "group-content",
|
|
@@ -3255,7 +3269,7 @@ function ga({ className: e, ...t }) {
|
|
|
3255
3269
|
...t
|
|
3256
3270
|
});
|
|
3257
3271
|
}
|
|
3258
|
-
function
|
|
3272
|
+
function va({ className: e, ...t }) {
|
|
3259
3273
|
return /* @__PURE__ */ f("ul", {
|
|
3260
3274
|
"data-slot": "sidebar-menu",
|
|
3261
3275
|
"data-sidebar": "menu",
|
|
@@ -3263,7 +3277,7 @@ function _a({ className: e, ...t }) {
|
|
|
3263
3277
|
...t
|
|
3264
3278
|
});
|
|
3265
3279
|
}
|
|
3266
|
-
function
|
|
3280
|
+
function ya({ className: e, ...t }) {
|
|
3267
3281
|
return /* @__PURE__ */ f("li", {
|
|
3268
3282
|
"data-slot": "sidebar-menu-item",
|
|
3269
3283
|
"data-sidebar": "menu-item",
|
|
@@ -3271,7 +3285,7 @@ function va({ className: e, ...t }) {
|
|
|
3271
3285
|
...t
|
|
3272
3286
|
});
|
|
3273
3287
|
}
|
|
3274
|
-
var
|
|
3288
|
+
var ba = g("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
3275
3289
|
variants: {
|
|
3276
3290
|
variant: {
|
|
3277
3291
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -3288,29 +3302,29 @@ var ya = g("peer/menu-button flex w-full items-center gap-2 overflow-hidden roun
|
|
|
3288
3302
|
size: "default"
|
|
3289
3303
|
}
|
|
3290
3304
|
});
|
|
3291
|
-
function
|
|
3292
|
-
let s = e ? v : "button", { isMobile: c, state: l } =
|
|
3305
|
+
function xa({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
3306
|
+
let s = e ? v : "button", { isMobile: c, state: l } = ra(), u = /* @__PURE__ */ f(s, {
|
|
3293
3307
|
"data-slot": "sidebar-menu-button",
|
|
3294
3308
|
"data-sidebar": "menu-button",
|
|
3295
3309
|
"data-size": r,
|
|
3296
3310
|
"data-active": t,
|
|
3297
|
-
className: U(
|
|
3311
|
+
className: U(ba({
|
|
3298
3312
|
variant: n,
|
|
3299
3313
|
size: r
|
|
3300
3314
|
}), a),
|
|
3301
3315
|
...o
|
|
3302
3316
|
});
|
|
3303
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ p(
|
|
3317
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ p(Yi, { children: [/* @__PURE__ */ f(Xi, {
|
|
3304
3318
|
asChild: !0,
|
|
3305
3319
|
children: u
|
|
3306
|
-
}), /* @__PURE__ */ f(
|
|
3320
|
+
}), /* @__PURE__ */ f(Zi, {
|
|
3307
3321
|
side: "right",
|
|
3308
3322
|
align: "center",
|
|
3309
3323
|
hidden: l !== "collapsed" || c,
|
|
3310
3324
|
...i
|
|
3311
3325
|
})] })) : u;
|
|
3312
3326
|
}
|
|
3313
|
-
function
|
|
3327
|
+
function Sa({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
3314
3328
|
return /* @__PURE__ */ f(t ? v : "button", {
|
|
3315
3329
|
"data-slot": "sidebar-menu-action",
|
|
3316
3330
|
"data-sidebar": "menu-action",
|
|
@@ -3318,7 +3332,7 @@ function xa({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
|
3318
3332
|
...r
|
|
3319
3333
|
});
|
|
3320
3334
|
}
|
|
3321
|
-
function
|
|
3335
|
+
function Ca({ className: e, ...t }) {
|
|
3322
3336
|
return /* @__PURE__ */ f("div", {
|
|
3323
3337
|
"data-slot": "sidebar-menu-badge",
|
|
3324
3338
|
"data-sidebar": "menu-badge",
|
|
@@ -3326,24 +3340,24 @@ function Sa({ className: e, ...t }) {
|
|
|
3326
3340
|
...t
|
|
3327
3341
|
});
|
|
3328
3342
|
}
|
|
3329
|
-
function
|
|
3343
|
+
function wa({ className: t, showIcon: n = !1, ...r }) {
|
|
3330
3344
|
let i = e.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
3331
3345
|
return /* @__PURE__ */ p("div", {
|
|
3332
3346
|
"data-slot": "sidebar-menu-skeleton",
|
|
3333
3347
|
"data-sidebar": "menu-skeleton",
|
|
3334
3348
|
className: U("flex h-8 items-center gap-2 rounded-md px-2", t),
|
|
3335
3349
|
...r,
|
|
3336
|
-
children: [n && /* @__PURE__ */ f(
|
|
3350
|
+
children: [n && /* @__PURE__ */ f(qi, {
|
|
3337
3351
|
className: "size-4 rounded-md",
|
|
3338
3352
|
"data-sidebar": "menu-skeleton-icon"
|
|
3339
|
-
}), /* @__PURE__ */ f(
|
|
3353
|
+
}), /* @__PURE__ */ f(qi, {
|
|
3340
3354
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
3341
3355
|
"data-sidebar": "menu-skeleton-text",
|
|
3342
3356
|
style: { "--skeleton-width": i }
|
|
3343
3357
|
})]
|
|
3344
3358
|
});
|
|
3345
3359
|
}
|
|
3346
|
-
function
|
|
3360
|
+
function Ta({ className: e, ...t }) {
|
|
3347
3361
|
return /* @__PURE__ */ f("ul", {
|
|
3348
3362
|
"data-slot": "sidebar-menu-sub",
|
|
3349
3363
|
"data-sidebar": "menu-sub",
|
|
@@ -3351,7 +3365,7 @@ function wa({ className: e, ...t }) {
|
|
|
3351
3365
|
...t
|
|
3352
3366
|
});
|
|
3353
3367
|
}
|
|
3354
|
-
function
|
|
3368
|
+
function Ea({ className: e, ...t }) {
|
|
3355
3369
|
return /* @__PURE__ */ f("li", {
|
|
3356
3370
|
"data-slot": "sidebar-menu-sub-item",
|
|
3357
3371
|
"data-sidebar": "menu-sub-item",
|
|
@@ -3359,7 +3373,7 @@ function Ta({ className: e, ...t }) {
|
|
|
3359
3373
|
...t
|
|
3360
3374
|
});
|
|
3361
3375
|
}
|
|
3362
|
-
function
|
|
3376
|
+
function Da({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
3363
3377
|
return /* @__PURE__ */ f(e ? v : "a", {
|
|
3364
3378
|
"data-slot": "sidebar-menu-sub-button",
|
|
3365
3379
|
"data-sidebar": "menu-sub-button",
|
|
@@ -3371,7 +3385,7 @@ function Ea({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, .
|
|
|
3371
3385
|
}
|
|
3372
3386
|
//#endregion
|
|
3373
3387
|
//#region src/components/ui/slider.tsx
|
|
3374
|
-
var
|
|
3388
|
+
var Oa = e.forwardRef(({ className: t, name: n, value: r, defaultValue: i, onValueChange: a, onBlur: o, ...s }, c) => {
|
|
3375
3389
|
let l = e.useRef(null);
|
|
3376
3390
|
e.useImperativeHandle(c, () => l.current);
|
|
3377
3391
|
let u = (e) => {
|
|
@@ -3398,10 +3412,10 @@ var Da = e.forwardRef(({ className: t, name: n, value: r, defaultValue: i, onVal
|
|
|
3398
3412
|
}), /* @__PURE__ */ f(ue.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })]
|
|
3399
3413
|
})] });
|
|
3400
3414
|
});
|
|
3401
|
-
|
|
3415
|
+
Oa.displayName = "Slider";
|
|
3402
3416
|
//#endregion
|
|
3403
3417
|
//#region ~icons/lucide/plus.jsx
|
|
3404
|
-
var
|
|
3418
|
+
var ka = (e) => /* @__PURE__ */ f("svg", {
|
|
3405
3419
|
viewBox: "0 0 24 24",
|
|
3406
3420
|
width: "1.2em",
|
|
3407
3421
|
height: "1.2em",
|
|
@@ -3414,7 +3428,7 @@ var Oa = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3414
3428
|
strokeWidth: 2,
|
|
3415
3429
|
d: "M5 12h14m-7-7v14"
|
|
3416
3430
|
})
|
|
3417
|
-
}),
|
|
3431
|
+
}), Aa = (e) => /* @__PURE__ */ f("svg", {
|
|
3418
3432
|
viewBox: "0 0 24 24",
|
|
3419
3433
|
width: "1.2em",
|
|
3420
3434
|
height: "1.2em",
|
|
@@ -3427,7 +3441,7 @@ var Oa = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3427
3441
|
strokeWidth: 2,
|
|
3428
3442
|
d: "M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
|
|
3429
3443
|
})
|
|
3430
|
-
}),
|
|
3444
|
+
}), ja = {
|
|
3431
3445
|
string: [
|
|
3432
3446
|
"eq",
|
|
3433
3447
|
"ne",
|
|
@@ -3498,7 +3512,7 @@ var Oa = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3498
3512
|
"isNotNull"
|
|
3499
3513
|
],
|
|
3500
3514
|
json: ["isNull", "isNotNull"]
|
|
3501
|
-
},
|
|
3515
|
+
}, Ma = {
|
|
3502
3516
|
string: "contains",
|
|
3503
3517
|
integer: "eq",
|
|
3504
3518
|
numeric: "eq",
|
|
@@ -3507,7 +3521,7 @@ var Oa = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3507
3521
|
datetime: "eq",
|
|
3508
3522
|
enum: "eq",
|
|
3509
3523
|
json: "isNull"
|
|
3510
|
-
},
|
|
3524
|
+
}, Na = {
|
|
3511
3525
|
eq: "=",
|
|
3512
3526
|
ne: "≠",
|
|
3513
3527
|
gt: ">",
|
|
@@ -3524,7 +3538,7 @@ var Oa = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3524
3538
|
after: "after",
|
|
3525
3539
|
isNull: "null",
|
|
3526
3540
|
isNotNull: "not null"
|
|
3527
|
-
},
|
|
3541
|
+
}, Pa = {
|
|
3528
3542
|
string: "string",
|
|
3529
3543
|
number: "integer",
|
|
3530
3544
|
boolean: "boolean",
|
|
@@ -3535,7 +3549,7 @@ var Oa = (e) => /* @__PURE__ */ f("svg", {
|
|
|
3535
3549
|
};
|
|
3536
3550
|
//#endregion
|
|
3537
3551
|
//#region src/components/ui/tag-input.tsx
|
|
3538
|
-
function
|
|
3552
|
+
function Fa({ value: e = [], onChange: t, type: n = "text", placeholder: r, disabled: i, className: a }) {
|
|
3539
3553
|
let [o, s] = l(""), c = (r) => {
|
|
3540
3554
|
let i = r.trim();
|
|
3541
3555
|
if (i && !(n === "number" && !/^-?\d+(\.\d+)?$/.test(i))) {
|
|
@@ -3585,35 +3599,35 @@ function Pa({ value: e = [], onChange: t, type: n = "text", placeholder: r, disa
|
|
|
3585
3599
|
}
|
|
3586
3600
|
//#endregion
|
|
3587
3601
|
//#region src/components/ui/sonamu-filter/value-input.tsx
|
|
3588
|
-
var
|
|
3602
|
+
var Ia = {
|
|
3589
3603
|
options: ["true", "false"],
|
|
3590
3604
|
labels: {
|
|
3591
3605
|
true: "True",
|
|
3592
3606
|
false: "False"
|
|
3593
3607
|
}
|
|
3594
3608
|
};
|
|
3595
|
-
function
|
|
3609
|
+
function La({ propType: e, operator: t, value: n, onChange: r, fieldMeta: i }) {
|
|
3596
3610
|
let { SD: a } = K();
|
|
3597
|
-
if (t === "isNull" || t === "isNotNull") return /* @__PURE__ */ f(
|
|
3598
|
-
enum: { options:
|
|
3599
|
-
labels:
|
|
3611
|
+
if (t === "isNull" || t === "isNotNull") return /* @__PURE__ */ f(ki, {
|
|
3612
|
+
enum: { options: Ia.options },
|
|
3613
|
+
labels: Ia.labels,
|
|
3600
3614
|
value: n === void 0 ? "" : String(n),
|
|
3601
3615
|
onValueChange: (e) => e && r(e === "true"),
|
|
3602
3616
|
className: "w-full"
|
|
3603
3617
|
});
|
|
3604
|
-
if (t === "in" || t === "notIn") return e === "enum" && i?.enumData ? /* @__PURE__ */ f(
|
|
3618
|
+
if (t === "in" || t === "notIn") return e === "enum" && i?.enumData ? /* @__PURE__ */ f(ki, {
|
|
3605
3619
|
enum: { options: i.enumData.options },
|
|
3606
3620
|
labels: i.enumData.labels,
|
|
3607
3621
|
value: n ?? [],
|
|
3608
3622
|
onValueChange: r,
|
|
3609
3623
|
multiple: !0
|
|
3610
|
-
}) : /* @__PURE__ */ f(
|
|
3624
|
+
}) : /* @__PURE__ */ f(Fa, {
|
|
3611
3625
|
value: n ?? [],
|
|
3612
3626
|
onChange: r,
|
|
3613
3627
|
type: e === "integer" || e === "numeric" ? "number" : "text"
|
|
3614
3628
|
});
|
|
3615
3629
|
if (t === "between") {
|
|
3616
|
-
if (e === "integer" || e === "numeric") return /* @__PURE__ */ f(
|
|
3630
|
+
if (e === "integer" || e === "numeric") return /* @__PURE__ */ f(Si, {
|
|
3617
3631
|
value: n ?? [void 0, void 0],
|
|
3618
3632
|
onChange: r
|
|
3619
3633
|
});
|
|
@@ -3642,7 +3656,7 @@ function Ia({ propType: e, operator: t, value: n, onChange: r, fieldMeta: i }) {
|
|
|
3642
3656
|
});
|
|
3643
3657
|
}
|
|
3644
3658
|
}
|
|
3645
|
-
return e === "enum" && i?.enumData ? /* @__PURE__ */ f(
|
|
3659
|
+
return e === "enum" && i?.enumData ? /* @__PURE__ */ f(ki, {
|
|
3646
3660
|
enum: { options: i.enumData.options },
|
|
3647
3661
|
labels: i.enumData.labels,
|
|
3648
3662
|
value: n ?? "",
|
|
@@ -3660,9 +3674,9 @@ function Ia({ propType: e, operator: t, value: n, onChange: r, fieldMeta: i }) {
|
|
|
3660
3674
|
value: n === void 0 ? "" : String(n),
|
|
3661
3675
|
onValueChange: (e) => r(e === "" ? void 0 : Number(e)),
|
|
3662
3676
|
placeholder: a("rc.sonamuFilter.enterNumber")
|
|
3663
|
-
}) : e === "boolean" ? /* @__PURE__ */ f(
|
|
3664
|
-
enum: { options:
|
|
3665
|
-
labels:
|
|
3677
|
+
}) : e === "boolean" ? /* @__PURE__ */ f(ki, {
|
|
3678
|
+
enum: { options: Ia.options },
|
|
3679
|
+
labels: Ia.labels,
|
|
3666
3680
|
value: n === void 0 ? "" : String(n),
|
|
3667
3681
|
onValueChange: (e) => e && r(e === "true"),
|
|
3668
3682
|
className: "w-full"
|
|
@@ -3675,8 +3689,8 @@ function Ia({ propType: e, operator: t, value: n, onChange: r, fieldMeta: i }) {
|
|
|
3675
3689
|
}
|
|
3676
3690
|
//#endregion
|
|
3677
3691
|
//#region src/components/ui/sonamu-filter/rule-row-input.tsx
|
|
3678
|
-
function
|
|
3679
|
-
let { SD: i } = K(), a = Object.keys(t), o = e.field ? t[e.field] : null, s = o ?
|
|
3692
|
+
function Ra({ rule: e, fieldMeta: t, onUpdate: n, onRemove: r }) {
|
|
3693
|
+
let { SD: i } = K(), a = Object.keys(t), o = e.field ? t[e.field] : null, s = o ? ja[o.propType] : [];
|
|
3680
3694
|
return /* @__PURE__ */ p("div", {
|
|
3681
3695
|
className: "flex items-start gap-2 p-3 border rounded-lg bg-gray-50",
|
|
3682
3696
|
children: [
|
|
@@ -3700,7 +3714,7 @@ function La({ rule: e, fieldMeta: t, onUpdate: n, onRemove: r }) {
|
|
|
3700
3714
|
children: /* @__PURE__ */ f(Q, {
|
|
3701
3715
|
items: s.map((e) => ({
|
|
3702
3716
|
value: e,
|
|
3703
|
-
label:
|
|
3717
|
+
label: Na[e]
|
|
3704
3718
|
})),
|
|
3705
3719
|
value: e.operator ?? void 0,
|
|
3706
3720
|
onValueChange: (e) => {
|
|
@@ -3715,7 +3729,7 @@ function La({ rule: e, fieldMeta: t, onUpdate: n, onRemove: r }) {
|
|
|
3715
3729
|
}),
|
|
3716
3730
|
/* @__PURE__ */ f("div", {
|
|
3717
3731
|
className: "flex-1 min-w-[150px]",
|
|
3718
|
-
children: e.operator && o ? /* @__PURE__ */ f(
|
|
3732
|
+
children: e.operator && o ? /* @__PURE__ */ f(La, {
|
|
3719
3733
|
propType: o.propType,
|
|
3720
3734
|
operator: e.operator,
|
|
3721
3735
|
value: e.value,
|
|
@@ -3732,14 +3746,14 @@ function La({ rule: e, fieldMeta: t, onUpdate: n, onRemove: r }) {
|
|
|
3732
3746
|
size: "sm",
|
|
3733
3747
|
onClick: r,
|
|
3734
3748
|
className: "shrink-0 h-10 px-3",
|
|
3735
|
-
children: /* @__PURE__ */ f(
|
|
3749
|
+
children: /* @__PURE__ */ f(Aa, {})
|
|
3736
3750
|
})
|
|
3737
3751
|
]
|
|
3738
3752
|
});
|
|
3739
3753
|
}
|
|
3740
3754
|
//#endregion
|
|
3741
3755
|
//#region src/components/ui/sonamu-filter/utils.ts
|
|
3742
|
-
function
|
|
3756
|
+
function za(e) {
|
|
3743
3757
|
let t = e, n = !1;
|
|
3744
3758
|
for (; t._def.type === "nullable" || t._def.type === "optional";) t._def.type === "nullable" && (n = !0), t = t._def.innerType;
|
|
3745
3759
|
return {
|
|
@@ -3747,10 +3761,10 @@ function Ra(e) {
|
|
|
3747
3761
|
nullable: n
|
|
3748
3762
|
};
|
|
3749
3763
|
}
|
|
3750
|
-
function
|
|
3751
|
-
return
|
|
3764
|
+
function Ba(e) {
|
|
3765
|
+
return Pa[e] ?? "string";
|
|
3752
3766
|
}
|
|
3753
|
-
function
|
|
3767
|
+
function Va(e, t) {
|
|
3754
3768
|
let n = e.options ? Array.from(e.options) : void 0;
|
|
3755
3769
|
if (!n) return;
|
|
3756
3770
|
let r = e._def?.description || e.description, i = {};
|
|
@@ -3760,29 +3774,29 @@ function Ba(e, t) {
|
|
|
3760
3774
|
labels: i
|
|
3761
3775
|
};
|
|
3762
3776
|
}
|
|
3763
|
-
function
|
|
3777
|
+
function Ha(e, t) {
|
|
3764
3778
|
let n = e.shape, r = {};
|
|
3765
3779
|
for (let [e, i] of Object.entries(n)) {
|
|
3766
3780
|
if (e.startsWith("virtual") || e.startsWith("textsearchable")) continue;
|
|
3767
|
-
let { innerType: n, nullable: a } =
|
|
3781
|
+
let { innerType: n, nullable: a } = za(i), o = i.meta?.()?.SonamuPropType === "numeric" ? "numeric" : Ba(n._def.type);
|
|
3768
3782
|
r[e] = {
|
|
3769
3783
|
propType: o,
|
|
3770
3784
|
nullable: a,
|
|
3771
|
-
enumData: o === "enum" ?
|
|
3785
|
+
enumData: o === "enum" ? Va(n, t) : void 0
|
|
3772
3786
|
};
|
|
3773
3787
|
}
|
|
3774
3788
|
return r;
|
|
3775
3789
|
}
|
|
3776
3790
|
//#endregion
|
|
3777
3791
|
//#region src/components/ui/sonamu-filter/sonamu-filter-modal.tsx
|
|
3778
|
-
function
|
|
3792
|
+
function Ua({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onApply: i }) {
|
|
3779
3793
|
let { SD: o } = K(), [s, c] = l(r), [u, d] = l([]);
|
|
3780
3794
|
a(() => {
|
|
3781
3795
|
c(r);
|
|
3782
3796
|
}, [r]), a(() => {
|
|
3783
3797
|
t && d(s.map((e) => ({ ...e })));
|
|
3784
3798
|
}, [t, s]);
|
|
3785
|
-
let m =
|
|
3799
|
+
let m = Ha(e, o), h = () => {
|
|
3786
3800
|
d([...u, {
|
|
3787
3801
|
id: crypto.randomUUID(),
|
|
3788
3802
|
field: null,
|
|
@@ -3819,7 +3833,7 @@ function Ha({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onA
|
|
|
3819
3833
|
})
|
|
3820
3834
|
}) : /* @__PURE__ */ f("div", {
|
|
3821
3835
|
className: "space-y-2",
|
|
3822
|
-
children: u.map((e) => /* @__PURE__ */ f(
|
|
3836
|
+
children: u.map((e) => /* @__PURE__ */ f(Ra, {
|
|
3823
3837
|
rule: e,
|
|
3824
3838
|
fieldMeta: m,
|
|
3825
3839
|
onUpdate: (t) => _(e.id, t),
|
|
@@ -3832,7 +3846,7 @@ function Ha({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onA
|
|
|
3832
3846
|
variant: "outline",
|
|
3833
3847
|
onClick: h,
|
|
3834
3848
|
className: "flex-1",
|
|
3835
|
-
children: [/* @__PURE__ */ f(
|
|
3849
|
+
children: [/* @__PURE__ */ f(ka, {}), o("rc.sonamuFilter.addRule")]
|
|
3836
3850
|
}), u.length > 0 && /* @__PURE__ */ f(W, {
|
|
3837
3851
|
variant: "outline",
|
|
3838
3852
|
onClick: () => {
|
|
@@ -3876,14 +3890,14 @@ function Ha({ baseSchema: e, open: t, onOpenChange: n, initialRules: r = [], onA
|
|
|
3876
3890
|
}
|
|
3877
3891
|
//#endregion
|
|
3878
3892
|
//#region src/lib/caster.ts
|
|
3879
|
-
function
|
|
3893
|
+
function Wa(e) {
|
|
3880
3894
|
return e instanceof B.ZodNumber || e instanceof B.ZodNullable && e._def.innerType instanceof B.ZodNumber || e instanceof B.ZodOptional && e._def.innerType instanceof B.ZodNumber ? !0 : e instanceof B.ZodOptional && e._def.innerType instanceof B.ZodOptional && e._def.innerType._def.innerType instanceof B.ZodNumber;
|
|
3881
3895
|
}
|
|
3882
3896
|
function $(e, t) {
|
|
3883
|
-
if (
|
|
3897
|
+
if (Wa(e) && typeof t == "string") return Number(t);
|
|
3884
3898
|
if (e instanceof B.ZodUnion) {
|
|
3885
3899
|
let n = e.options;
|
|
3886
|
-
if (n.some((e) =>
|
|
3900
|
+
if (n.some((e) => Wa(e))) if (Array.isArray(t)) {
|
|
3887
3901
|
let e = n.find((e) => e instanceof B.ZodNumber);
|
|
3888
3902
|
if (!e) throw Error("Expected to find a number type in union");
|
|
3889
3903
|
return t.map((t) => $(e, t));
|
|
@@ -3894,36 +3908,36 @@ function $(e, t) {
|
|
|
3894
3908
|
else if (e instanceof B.ZodOptional) return $(e._def.innerType, t);
|
|
3895
3909
|
return t;
|
|
3896
3910
|
}
|
|
3897
|
-
function
|
|
3911
|
+
function Ga(e) {
|
|
3898
3912
|
return B.preprocess((t) => $(e, t), e);
|
|
3899
3913
|
}
|
|
3900
3914
|
//#endregion
|
|
3901
3915
|
//#region src/lib/base-helpers.ts
|
|
3902
|
-
function
|
|
3916
|
+
function Ka(e) {
|
|
3903
3917
|
return e === !0 ? "hidden" : "";
|
|
3904
3918
|
}
|
|
3905
|
-
function
|
|
3919
|
+
function qa(e, t) {
|
|
3906
3920
|
return $(t, de.parse(e.toString()));
|
|
3907
3921
|
}
|
|
3908
|
-
function
|
|
3922
|
+
function Ja(e) {
|
|
3909
3923
|
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0).map(([e, t]) => Array.isArray(t) ? [[`${e}[]`, t]] : pe(t) ? Object.keys(t).map((n) => [`${e}[${n}]`, String(t[n])]) : [[e, String(t)]]).flat());
|
|
3910
3924
|
}
|
|
3911
|
-
function
|
|
3925
|
+
function Ya(e) {
|
|
3912
3926
|
return e === null ? null : e.slice(0, 10);
|
|
3913
3927
|
}
|
|
3914
|
-
function
|
|
3928
|
+
function Xa(e) {
|
|
3915
3929
|
return e && new Intl.NumberFormat().format(e);
|
|
3916
3930
|
}
|
|
3917
|
-
function
|
|
3931
|
+
function Za(e) {
|
|
3918
3932
|
return e == null ? null : e instanceof Date ? e.toISOString().slice(0, 10) : e.slice(0, 10);
|
|
3919
3933
|
}
|
|
3920
|
-
function
|
|
3934
|
+
function Qa(e) {
|
|
3921
3935
|
return e == null ? null : e instanceof Date ? e.toISOString().slice(0, 19).replace("T", " ") : e.slice(0, 19);
|
|
3922
3936
|
}
|
|
3923
|
-
function
|
|
3937
|
+
function $a(e) {
|
|
3924
3938
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
3925
3939
|
}
|
|
3926
|
-
function
|
|
3940
|
+
function eo() {
|
|
3927
3941
|
let e = null;
|
|
3928
3942
|
return {
|
|
3929
3943
|
set: (t) => {
|
|
@@ -3936,20 +3950,20 @@ function $a() {
|
|
|
3936
3950
|
}
|
|
3937
3951
|
//#endregion
|
|
3938
3952
|
//#region src/lib/form-helpers.ts
|
|
3939
|
-
async function
|
|
3953
|
+
async function to(e, t) {
|
|
3940
3954
|
if (e instanceof File) {
|
|
3941
3955
|
let [n] = await t([e]);
|
|
3942
3956
|
return n;
|
|
3943
3957
|
}
|
|
3944
|
-
if (Array.isArray(e)) return e.length > 0 && e.every((e) => e instanceof File) ? await t(e) : await Promise.all(e.map((e) =>
|
|
3958
|
+
if (Array.isArray(e)) return e.length > 0 && e.every((e) => e instanceof File) ? await t(e) : await Promise.all(e.map((e) => to(e, t)));
|
|
3945
3959
|
if (typeof e == "object" && e && Object.prototype.toString.call(e) === "[object Object]") {
|
|
3946
3960
|
let n = {};
|
|
3947
|
-
for (let [r, i] of Object.entries(e)) n[r] = await
|
|
3961
|
+
for (let [r, i] of Object.entries(e)) n[r] = await to(i, t);
|
|
3948
3962
|
return n;
|
|
3949
3963
|
}
|
|
3950
3964
|
return e;
|
|
3951
3965
|
}
|
|
3952
|
-
function
|
|
3966
|
+
function no(e, t) {
|
|
3953
3967
|
let [n, r] = l(t), [i, a] = l(/* @__PURE__ */ new Map()), { uploader: o } = K();
|
|
3954
3968
|
function s(e, t) {
|
|
3955
3969
|
let n = t.replace(/\./g, ".shape.").replace(/\[[^\]]+\]/g, ".element").replace(/^\.element/, "element"), r;
|
|
@@ -3978,7 +3992,7 @@ function to(e, t) {
|
|
|
3978
3992
|
return u && (d.error = u), d;
|
|
3979
3993
|
},
|
|
3980
3994
|
submit: (e) => async () => {
|
|
3981
|
-
let t = await
|
|
3995
|
+
let t = await to(n, o);
|
|
3982
3996
|
return r(t), await e(t);
|
|
3983
3997
|
},
|
|
3984
3998
|
addError: (e, t) => {
|
|
@@ -4003,10 +4017,10 @@ function to(e, t) {
|
|
|
4003
4017
|
}
|
|
4004
4018
|
//#endregion
|
|
4005
4019
|
//#region src/lib/list-helpers.ts
|
|
4006
|
-
function
|
|
4020
|
+
function ro(e, t) {
|
|
4007
4021
|
return e.filter((e) => t.includes(e));
|
|
4008
4022
|
}
|
|
4009
|
-
function
|
|
4023
|
+
function io(e, t, n) {
|
|
4010
4024
|
let r = _e({ strict: !1 }), i = ge(), a = (() => {
|
|
4011
4025
|
if (n?.disableSearchParams) return t;
|
|
4012
4026
|
let i = e.safeParse(r);
|
|
@@ -4039,11 +4053,11 @@ function ro(e, t, n) {
|
|
|
4039
4053
|
register: s
|
|
4040
4054
|
};
|
|
4041
4055
|
}
|
|
4042
|
-
function
|
|
4056
|
+
function ao(e, t = []) {
|
|
4043
4057
|
let [n, r] = l(new Map(e.map((e) => [e, t.includes(e)]))), [i, o] = l(0);
|
|
4044
4058
|
a(() => {
|
|
4045
4059
|
let t = Array.from(n.keys());
|
|
4046
|
-
|
|
4060
|
+
ro(e, t).length !== t.length && r(new Map(Array.from(n).filter(([t, n]) => e.includes(t))));
|
|
4047
4061
|
}, [e, n]);
|
|
4048
4062
|
let s = Array.from(n).filter(([t, n]) => e.includes(t) && n).map(([e]) => e);
|
|
4049
4063
|
return {
|
|
@@ -4066,7 +4080,7 @@ function io(e, t = []) {
|
|
|
4066
4080
|
}
|
|
4067
4081
|
//#endregion
|
|
4068
4082
|
//#region src/lib/modal-helpers.ts
|
|
4069
|
-
function
|
|
4083
|
+
function oo(e, n) {
|
|
4070
4084
|
let [r, i] = l({
|
|
4071
4085
|
...n,
|
|
4072
4086
|
open: !1
|
|
@@ -4092,12 +4106,12 @@ function ao(e, n) {
|
|
|
4092
4106
|
}
|
|
4093
4107
|
//#endregion
|
|
4094
4108
|
//#region src/components/ui/sonamu-filter/sonamu-filter-popover.tsx
|
|
4095
|
-
function
|
|
4096
|
-
let { SD: a } = K(), o = (e) => e ?
|
|
4109
|
+
function so({ rules: e, fieldMeta: t, children: n, side: r = "bottom", align: i = "start" }) {
|
|
4110
|
+
let { SD: a } = K(), o = (e) => e ? Na[e] : "", s = (e) => {
|
|
4097
4111
|
let { value: n, field: r, operator: i } = e;
|
|
4098
4112
|
if (i === "isNull" || i === "isNotNull" || !r || n == null) return "";
|
|
4099
4113
|
let a = t[r];
|
|
4100
|
-
return a ? a.propType === "enum" && a.enumData ? Array.isArray(n) ? n.map((e) => a.enumData?.labels[e] || e).join(", ") : a.enumData.labels[n] || String(n) : a.propType === "date" || a.propType === "datetime" ? Array.isArray(n) ? n.map((e) =>
|
|
4114
|
+
return a ? a.propType === "enum" && a.enumData ? Array.isArray(n) ? n.map((e) => a.enumData?.labels[e] || e).join(", ") : a.enumData.labels[n] || String(n) : a.propType === "date" || a.propType === "datetime" ? Array.isArray(n) ? n.map((e) => Qa(e) ?? "").join(" ~ ") : Qa(n) ?? "" : a.propType === "integer" || a.propType === "numeric" ? Array.isArray(n) ? n.map((e) => String(Xa(e) ?? "")).join(" ~ ") : String(Xa(n) ?? "") : Array.isArray(n) ? n.join(", ") : String(n) : String(n);
|
|
4101
4115
|
};
|
|
4102
4116
|
return e.length === 0 ? /* @__PURE__ */ f(d, { children: n }) : /* @__PURE__ */ p(J, {
|
|
4103
4117
|
open: !0,
|
|
@@ -4144,7 +4158,7 @@ function oo({ rules: e, fieldMeta: t, children: n, side: r = "bottom", align: i
|
|
|
4144
4158
|
}
|
|
4145
4159
|
//#endregion
|
|
4146
4160
|
//#region src/components/ui/switch.tsx
|
|
4147
|
-
var
|
|
4161
|
+
var co = e.forwardRef(({ className: t, name: n, checked: r, value: i, defaultChecked: a, onValueChange: o, onBlur: s, ...c }, l) => {
|
|
4148
4162
|
let u = i === void 0 ? r : i, m = e.useRef(null);
|
|
4149
4163
|
e.useImperativeHandle(l, () => m.current);
|
|
4150
4164
|
let h = (e) => {
|
|
@@ -4168,10 +4182,10 @@ var so = e.forwardRef(({ className: t, name: n, checked: r, value: i, defaultChe
|
|
|
4168
4182
|
children: /* @__PURE__ */ f(ye.Thumb, { className: U("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") })
|
|
4169
4183
|
})] });
|
|
4170
4184
|
});
|
|
4171
|
-
|
|
4185
|
+
co.displayName = "Switch";
|
|
4172
4186
|
//#endregion
|
|
4173
4187
|
//#region src/components/ui/table.tsx
|
|
4174
|
-
function
|
|
4188
|
+
function lo({ className: e, containerClassName: t, ...n }) {
|
|
4175
4189
|
return /* @__PURE__ */ f("div", {
|
|
4176
4190
|
"data-slot": "table-container",
|
|
4177
4191
|
className: U("relative w-full overflow-x-auto", t),
|
|
@@ -4182,35 +4196,35 @@ function co({ className: e, containerClassName: t, ...n }) {
|
|
|
4182
4196
|
})
|
|
4183
4197
|
});
|
|
4184
4198
|
}
|
|
4185
|
-
function
|
|
4199
|
+
function uo({ className: e, ...t }) {
|
|
4186
4200
|
return /* @__PURE__ */ f("thead", {
|
|
4187
4201
|
"data-slot": "table-header",
|
|
4188
4202
|
className: U("[&_tr]:border-b", e),
|
|
4189
4203
|
...t
|
|
4190
4204
|
});
|
|
4191
4205
|
}
|
|
4192
|
-
function
|
|
4206
|
+
function fo({ className: e, ...t }) {
|
|
4193
4207
|
return /* @__PURE__ */ f("tbody", {
|
|
4194
4208
|
"data-slot": "table-body",
|
|
4195
4209
|
className: U("[&_tr:last-child]:border-0", e),
|
|
4196
4210
|
...t
|
|
4197
4211
|
});
|
|
4198
4212
|
}
|
|
4199
|
-
function
|
|
4213
|
+
function po({ className: e, ...t }) {
|
|
4200
4214
|
return /* @__PURE__ */ f("tfoot", {
|
|
4201
4215
|
"data-slot": "table-footer",
|
|
4202
4216
|
className: U("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
|
|
4203
4217
|
...t
|
|
4204
4218
|
});
|
|
4205
4219
|
}
|
|
4206
|
-
function
|
|
4220
|
+
function mo({ className: e, ...t }) {
|
|
4207
4221
|
return /* @__PURE__ */ f("tr", {
|
|
4208
4222
|
"data-slot": "table-row",
|
|
4209
4223
|
className: U("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
|
|
4210
4224
|
...t
|
|
4211
4225
|
});
|
|
4212
4226
|
}
|
|
4213
|
-
function
|
|
4227
|
+
function ho({ className: e, fit: t, align: n, ...r }) {
|
|
4214
4228
|
return /* @__PURE__ */ f("th", {
|
|
4215
4229
|
"data-slot": "table-head",
|
|
4216
4230
|
className: U("text-foreground h-10 px-2 text-left font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]", t && "w-px", n === "center" && "text-center", n === "right" && "text-right", e),
|
|
@@ -4218,7 +4232,7 @@ function mo({ className: e, fit: t, align: n, ...r }) {
|
|
|
4218
4232
|
...r
|
|
4219
4233
|
});
|
|
4220
4234
|
}
|
|
4221
|
-
function
|
|
4235
|
+
function go({ className: e, fit: t, align: n, ...r }) {
|
|
4222
4236
|
return /* @__PURE__ */ f("td", {
|
|
4223
4237
|
"data-slot": "table-cell",
|
|
4224
4238
|
className: U("p-2 whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]", t && "w-px", n === "center" && "text-center", n === "right" && "text-right", e),
|
|
@@ -4226,7 +4240,7 @@ function ho({ className: e, fit: t, align: n, ...r }) {
|
|
|
4226
4240
|
...r
|
|
4227
4241
|
});
|
|
4228
4242
|
}
|
|
4229
|
-
function
|
|
4243
|
+
function _o({ className: e, ...t }) {
|
|
4230
4244
|
return /* @__PURE__ */ f("caption", {
|
|
4231
4245
|
"data-slot": "table-caption",
|
|
4232
4246
|
className: U("text-muted-foreground mt-4 text-sm", e),
|
|
@@ -4235,27 +4249,27 @@ function go({ className: e, ...t }) {
|
|
|
4235
4249
|
}
|
|
4236
4250
|
//#endregion
|
|
4237
4251
|
//#region src/components/ui/tabs.tsx
|
|
4238
|
-
var
|
|
4252
|
+
var vo = V.Root, yo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(V.List, {
|
|
4239
4253
|
ref: n,
|
|
4240
4254
|
className: U("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", e),
|
|
4241
4255
|
...t
|
|
4242
4256
|
}));
|
|
4243
|
-
|
|
4244
|
-
var
|
|
4257
|
+
yo.displayName = V.List.displayName;
|
|
4258
|
+
var bo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(V.Trigger, {
|
|
4245
4259
|
ref: n,
|
|
4246
4260
|
className: U("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", e),
|
|
4247
4261
|
...t
|
|
4248
4262
|
}));
|
|
4249
|
-
|
|
4250
|
-
var
|
|
4263
|
+
bo.displayName = V.Trigger.displayName;
|
|
4264
|
+
var xo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(V.Content, {
|
|
4251
4265
|
ref: n,
|
|
4252
4266
|
className: U("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", e),
|
|
4253
4267
|
...t
|
|
4254
4268
|
}));
|
|
4255
|
-
|
|
4269
|
+
xo.displayName = V.Content.displayName;
|
|
4256
4270
|
//#endregion
|
|
4257
4271
|
//#region src/components/ui/textarea.tsx
|
|
4258
|
-
var
|
|
4272
|
+
var So = e.forwardRef(({ className: e, onValueChange: t, onChange: n, ...r }, i) => {
|
|
4259
4273
|
let a = (e) => {
|
|
4260
4274
|
t?.(e.target.value), n?.(e);
|
|
4261
4275
|
};
|
|
@@ -4266,70 +4280,70 @@ var xo = e.forwardRef(({ className: e, onValueChange: t, onChange: n, ...r }, i)
|
|
|
4266
4280
|
onChange: a
|
|
4267
4281
|
});
|
|
4268
4282
|
});
|
|
4269
|
-
|
|
4283
|
+
So.displayName = "Textarea";
|
|
4270
4284
|
//#endregion
|
|
4271
4285
|
//#region src/components/ui/toast.tsx
|
|
4272
|
-
var
|
|
4286
|
+
var Co = H.Provider, wo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(H.Viewport, {
|
|
4273
4287
|
ref: n,
|
|
4274
4288
|
className: U("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", e),
|
|
4275
4289
|
...t
|
|
4276
4290
|
}));
|
|
4277
|
-
|
|
4278
|
-
var
|
|
4291
|
+
wo.displayName = H.Viewport.displayName;
|
|
4292
|
+
var To = g("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
|
|
4279
4293
|
variants: { variant: {
|
|
4280
4294
|
default: "border bg-background text-foreground",
|
|
4281
4295
|
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
4282
4296
|
} },
|
|
4283
4297
|
defaultVariants: { variant: "default" }
|
|
4284
|
-
}),
|
|
4298
|
+
}), Eo = e.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ f(H.Root, {
|
|
4285
4299
|
ref: r,
|
|
4286
|
-
className: U(
|
|
4300
|
+
className: U(To({ variant: t }), e),
|
|
4287
4301
|
...n
|
|
4288
4302
|
}));
|
|
4289
|
-
|
|
4290
|
-
var
|
|
4303
|
+
Eo.displayName = H.Root.displayName;
|
|
4304
|
+
var Do = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(H.Action, {
|
|
4291
4305
|
ref: n,
|
|
4292
4306
|
className: U("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive", e),
|
|
4293
4307
|
...t
|
|
4294
4308
|
}));
|
|
4295
|
-
|
|
4296
|
-
var
|
|
4309
|
+
Do.displayName = H.Action.displayName;
|
|
4310
|
+
var Oo = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(H.Close, {
|
|
4297
4311
|
ref: n,
|
|
4298
4312
|
className: U("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", e),
|
|
4299
4313
|
"toast-close": "",
|
|
4300
4314
|
...t,
|
|
4301
4315
|
children: /* @__PURE__ */ f(q, { className: "h-4 w-4" })
|
|
4302
4316
|
}));
|
|
4303
|
-
|
|
4304
|
-
var
|
|
4317
|
+
Oo.displayName = H.Close.displayName;
|
|
4318
|
+
var ko = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(H.Title, {
|
|
4305
4319
|
ref: n,
|
|
4306
4320
|
className: U("text-sm font-semibold", e),
|
|
4307
4321
|
...t
|
|
4308
4322
|
}));
|
|
4309
|
-
|
|
4310
|
-
var
|
|
4323
|
+
ko.displayName = H.Title.displayName;
|
|
4324
|
+
var Ao = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(H.Description, {
|
|
4311
4325
|
ref: n,
|
|
4312
4326
|
className: U("text-sm opacity-90", e),
|
|
4313
4327
|
...t
|
|
4314
4328
|
}));
|
|
4315
|
-
|
|
4329
|
+
Ao.displayName = H.Description.displayName;
|
|
4316
4330
|
//#endregion
|
|
4317
4331
|
//#region src/components/ui/toaster.tsx
|
|
4318
|
-
function
|
|
4332
|
+
function jo() {
|
|
4319
4333
|
let { toasts: e } = Ne();
|
|
4320
|
-
return /* @__PURE__ */ p(
|
|
4334
|
+
return /* @__PURE__ */ p(Co, { children: [e.map(({ id: e, title: t, description: n, action: r, ...i }) => /* @__PURE__ */ p(Eo, {
|
|
4321
4335
|
...i,
|
|
4322
4336
|
children: [
|
|
4323
4337
|
/* @__PURE__ */ p("div", {
|
|
4324
4338
|
className: "grid gap-1",
|
|
4325
|
-
children: [t && /* @__PURE__ */ f(
|
|
4339
|
+
children: [t && /* @__PURE__ */ f(ko, { children: t }), n && /* @__PURE__ */ f(Ao, { children: n })]
|
|
4326
4340
|
}),
|
|
4327
4341
|
r,
|
|
4328
|
-
/* @__PURE__ */ f(
|
|
4342
|
+
/* @__PURE__ */ f(Oo, {})
|
|
4329
4343
|
]
|
|
4330
|
-
}, e)), /* @__PURE__ */ f(
|
|
4344
|
+
}, e)), /* @__PURE__ */ f(wo, {})] });
|
|
4331
4345
|
}
|
|
4332
|
-
var
|
|
4346
|
+
var Mo = g("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2", {
|
|
4333
4347
|
variants: {
|
|
4334
4348
|
variant: {
|
|
4335
4349
|
default: "bg-transparent",
|
|
@@ -4345,7 +4359,7 @@ var jo = g("inline-flex items-center justify-center rounded-md text-sm font-medi
|
|
|
4345
4359
|
variant: "default",
|
|
4346
4360
|
size: "default"
|
|
4347
4361
|
}
|
|
4348
|
-
}),
|
|
4362
|
+
}), No = e.forwardRef(({ className: e, variant: t, size: n, value: r, pressed: i, onValueChange: a, onPressedChange: o, ...s }, c) => {
|
|
4349
4363
|
let l = r === void 0 ? i : r;
|
|
4350
4364
|
return /* @__PURE__ */ f(be.Root, {
|
|
4351
4365
|
ref: c,
|
|
@@ -4353,7 +4367,7 @@ var jo = g("inline-flex items-center justify-center rounded-md text-sm font-medi
|
|
|
4353
4367
|
onPressedChange: (e) => {
|
|
4354
4368
|
a?.(e), o?.(e);
|
|
4355
4369
|
},
|
|
4356
|
-
className: U(
|
|
4370
|
+
className: U(Mo({
|
|
4357
4371
|
variant: t,
|
|
4358
4372
|
size: n,
|
|
4359
4373
|
className: e
|
|
@@ -4361,17 +4375,17 @@ var jo = g("inline-flex items-center justify-center rounded-md text-sm font-medi
|
|
|
4361
4375
|
...s
|
|
4362
4376
|
});
|
|
4363
4377
|
});
|
|
4364
|
-
|
|
4378
|
+
No.displayName = be.Root.displayName;
|
|
4365
4379
|
//#endregion
|
|
4366
4380
|
//#region src/components/ui/toggle-group.tsx
|
|
4367
|
-
var
|
|
4381
|
+
var Po = e.createContext({
|
|
4368
4382
|
size: "default",
|
|
4369
4383
|
variant: "default"
|
|
4370
|
-
}),
|
|
4384
|
+
}), Fo = e.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ f(xe.Root, {
|
|
4371
4385
|
ref: a,
|
|
4372
4386
|
className: U("flex items-center justify-center gap-1", e),
|
|
4373
4387
|
...i,
|
|
4374
|
-
children: /* @__PURE__ */ f(
|
|
4388
|
+
children: /* @__PURE__ */ f(Po.Provider, {
|
|
4375
4389
|
value: {
|
|
4376
4390
|
variant: t,
|
|
4377
4391
|
size: n
|
|
@@ -4379,12 +4393,12 @@ var No = e.createContext({
|
|
|
4379
4393
|
children: r
|
|
4380
4394
|
})
|
|
4381
4395
|
}));
|
|
4382
|
-
|
|
4383
|
-
var
|
|
4384
|
-
let s = e.useContext(
|
|
4396
|
+
Fo.displayName = xe.Root.displayName;
|
|
4397
|
+
var Io = e.forwardRef(({ className: t, children: n, variant: r, size: i, ...a }, o) => {
|
|
4398
|
+
let s = e.useContext(Po);
|
|
4385
4399
|
return /* @__PURE__ */ f(xe.Item, {
|
|
4386
4400
|
ref: o,
|
|
4387
|
-
className: U(
|
|
4401
|
+
className: U(Mo({
|
|
4388
4402
|
variant: s.variant || r,
|
|
4389
4403
|
size: s.size || i
|
|
4390
4404
|
}), t),
|
|
@@ -4392,8 +4406,8 @@ var Fo = e.forwardRef(({ className: t, children: n, variant: r, size: i, ...a },
|
|
|
4392
4406
|
children: n
|
|
4393
4407
|
});
|
|
4394
4408
|
});
|
|
4395
|
-
|
|
4409
|
+
Io.displayName = xe.Item.displayName;
|
|
4396
4410
|
//#endregion
|
|
4397
|
-
export { Le as Accordion, Be as AccordionContent, Re as AccordionItem, ze as AccordionTrigger, He as Alert, We as AlertDescription, qe as AlertDialog, nt as AlertDialogAction, rt as AlertDialogCancel, Ze as AlertDialogContent, tt as AlertDialogDescription, $e as AlertDialogFooter, Qe as AlertDialogHeader, Xe as AlertDialogOverlay, Ye as AlertDialogPortal, et as AlertDialogTitle, Je as AlertDialogTrigger, Ue as AlertTitle, it as AspectRatio, at as Avatar, st as AvatarFallback, ot as AvatarImage, lt as Badge, ft as Breadcrumb, vt as BreadcrumbEllipsis, mt as BreadcrumbItem, ht as BreadcrumbLink, pt as BreadcrumbList, gt as BreadcrumbPage, _t as BreadcrumbSeparator, W as Button, bt as Calendar, xt as Card, Tt as CardAction, Et as CardContent, wt as CardDescription, Dt as CardFooter, St as CardHeader, Ct as CardTitle, Mt as Carousel, Nt as CarouselContent, Pt as CarouselItem, It as CarouselNext, Ft as CarouselPrevious, Lt as Checkbox, Rt as Collapsible, Bt as CollapsibleContent, zt as CollapsibleTrigger, _n as Combobox, sn as Command, cn as CommandDialog, dn as CommandEmpty, fn as CommandGroup, ln as CommandInput, mn as CommandItem, un as CommandList, pn as CommandSeparator, hn as CommandShortcut, yn as CommonModal, Sn as ContextMenu, Mn as ContextMenuCheckboxItem, An as ContextMenuContent, wn as ContextMenuGroup, jn as ContextMenuItem, Pn as ContextMenuLabel, Tn as ContextMenuPortal, Dn as ContextMenuRadioGroup, Nn as ContextMenuRadioItem, Fn as ContextMenuSeparator, In as ContextMenuShortcut, En as ContextMenuSub, kn as ContextMenuSubContent, On as ContextMenuSubTrigger, Cn as ContextMenuTrigger, Ln as DateInput, zn as DatePicker, Bn as DatePickerWithDropdown, Vn as DatePickerWithRange, Xt as Dialog, $t as DialogClose, tn as DialogContent, on as DialogDescription, rn as DialogFooter, nn as DialogHeader, en as DialogOverlay, Qt as DialogPortal, an as DialogTitle, Zt as DialogTrigger, Hn as Drawer, Gn as DrawerClose, qn as DrawerContent, Zn as DrawerDescription, Yn as DrawerFooter, Jn as DrawerHeader, Kn as DrawerOverlay, Wn as DrawerPortal, Xn as DrawerTitle, Un as DrawerTrigger, Qn as DropdownMenu, cr as DropdownMenuCheckboxItem, or as DropdownMenuContent, er as DropdownMenuGroup, sr as DropdownMenuItem, ur as DropdownMenuLabel, tr as DropdownMenuPortal, rr as DropdownMenuRadioGroup, lr as DropdownMenuRadioItem, dr as DropdownMenuSeparator, fr as DropdownMenuShortcut, nr as DropdownMenuSub, ar as DropdownMenuSubContent, ir as DropdownMenuSubTrigger, $n as DropdownMenuTrigger,
|
|
4411
|
+
export { Le as Accordion, Be as AccordionContent, Re as AccordionItem, ze as AccordionTrigger, He as Alert, We as AlertDescription, qe as AlertDialog, nt as AlertDialogAction, rt as AlertDialogCancel, Ze as AlertDialogContent, tt as AlertDialogDescription, $e as AlertDialogFooter, Qe as AlertDialogHeader, Xe as AlertDialogOverlay, Ye as AlertDialogPortal, et as AlertDialogTitle, Je as AlertDialogTrigger, Ue as AlertTitle, it as AspectRatio, at as Avatar, st as AvatarFallback, ot as AvatarImage, lt as Badge, ft as Breadcrumb, vt as BreadcrumbEllipsis, mt as BreadcrumbItem, ht as BreadcrumbLink, pt as BreadcrumbList, gt as BreadcrumbPage, _t as BreadcrumbSeparator, W as Button, bt as Calendar, xt as Card, Tt as CardAction, Et as CardContent, wt as CardDescription, Dt as CardFooter, St as CardHeader, Ct as CardTitle, Mt as Carousel, Nt as CarouselContent, Pt as CarouselItem, It as CarouselNext, Ft as CarouselPrevious, Lt as Checkbox, Rt as Collapsible, Bt as CollapsibleContent, zt as CollapsibleTrigger, _n as Combobox, sn as Command, cn as CommandDialog, dn as CommandEmpty, fn as CommandGroup, ln as CommandInput, mn as CommandItem, un as CommandList, pn as CommandSeparator, hn as CommandShortcut, yn as CommonModal, Sn as ContextMenu, Mn as ContextMenuCheckboxItem, An as ContextMenuContent, wn as ContextMenuGroup, jn as ContextMenuItem, Pn as ContextMenuLabel, Tn as ContextMenuPortal, Dn as ContextMenuRadioGroup, Nn as ContextMenuRadioItem, Fn as ContextMenuSeparator, In as ContextMenuShortcut, En as ContextMenuSub, kn as ContextMenuSubContent, On as ContextMenuSubTrigger, Cn as ContextMenuTrigger, Ln as DateInput, zn as DatePicker, Bn as DatePickerWithDropdown, Vn as DatePickerWithRange, Xt as Dialog, $t as DialogClose, tn as DialogContent, on as DialogDescription, rn as DialogFooter, nn as DialogHeader, en as DialogOverlay, Qt as DialogPortal, an as DialogTitle, Zt as DialogTrigger, Hn as Drawer, Gn as DrawerClose, qn as DrawerContent, Zn as DrawerDescription, Yn as DrawerFooter, Jn as DrawerHeader, Kn as DrawerOverlay, Wn as DrawerPortal, Xn as DrawerTitle, Un as DrawerTrigger, Qn as DropdownMenu, cr as DropdownMenuCheckboxItem, or as DropdownMenuContent, er as DropdownMenuGroup, sr as DropdownMenuItem, ur as DropdownMenuLabel, tr as DropdownMenuPortal, rr as DropdownMenuRadioGroup, lr as DropdownMenuRadioItem, dr as DropdownMenuSeparator, fr as DropdownMenuShortcut, nr as DropdownMenuSub, ar as DropdownMenuSubContent, ir as DropdownMenuSubTrigger, $n as DropdownMenuTrigger, ki as EnumSelect, yr as FileInput, Sr as Form, kr as FormControl, Ar as FormDescription, wr as FormField, Dr as FormItem, Or as FormLabel, jr as FormMessage, Mr as HoverCard, Pr as HoverCardContent, Nr as HoverCardTrigger, Mi as IdAsyncSelect, Z as Input, Ir as InputOTP, Lr as InputOTPGroup, zr as InputOTPSeparator, Rr as InputOTPSlot, xr as Label, Gr as Menubar, Zr as MenubarCheckboxItem, Yr as MenubarContent, Vr as MenubarGroup, Xr as MenubarItem, $r as MenubarLabel, Br as MenubarMenu, Hr as MenubarPortal, Ur as MenubarRadioGroup, Qr as MenubarRadioItem, ei as MenubarSeparator, ti as MenubarShortcut, Wr as MenubarSub, Jr as MenubarSubContent, qr as MenubarSubTrigger, Kr as MenubarTrigger, ci as MonthPickerMultiple, li as NavigationMenu, mi as NavigationMenuContent, _i as NavigationMenuIndicator, di as NavigationMenuItem, hi as NavigationMenuLink, ui as NavigationMenuList, pi as NavigationMenuTrigger, gi as NavigationMenuViewport, vi as Pagination, J as Popover, gn as PopoverAnchor, X as PopoverContent, Y as PopoverTrigger, yi as Progress, bi as RadioGroup, xi as RadioGroupItem, Si as RangeNumberInput, Ei as ResizableHandle, Ti as ResizablePanel, wi as ResizablePanelGroup, Di as ScrollArea, Oi as ScrollBar, Q as Select, ni as Separator, Ni as Sheet, Fi as SheetClose, zi as SheetContent, Ui as SheetDescription, Vi as SheetFooter, Bi as SheetHeader, Li as SheetOverlay, Ii as SheetPortal, Hi as SheetTitle, Pi as SheetTrigger, aa as Sidebar, pa as SidebarContent, da as SidebarFooter, ma as SidebarGroup, ga as SidebarGroupAction, _a as SidebarGroupContent, ha as SidebarGroupLabel, ua as SidebarHeader, la as SidebarInput, ca as SidebarInset, va as SidebarMenu, Sa as SidebarMenuAction, Ca as SidebarMenuBadge, xa as SidebarMenuButton, ya as SidebarMenuItem, wa as SidebarMenuSkeleton, Ta as SidebarMenuSub, Da as SidebarMenuSubButton, Ea as SidebarMenuSubItem, ia as SidebarProvider, sa as SidebarRail, fa as SidebarSeparator, oa as SidebarTrigger, qi as Skeleton, Oa as Slider, Ua as SonamuFilterModal, so as SonamuFilterPopover, so as SonamuFilterTooltip, Jt as SonamuProvider, co as Switch, lo as Table, fo as TableBody, _o as TableCaption, go as TableCell, po as TableFooter, ho as TableHead, uo as TableHeader, mo as TableRow, vo as Tabs, xo as TabsContent, yo as TabsList, bo as TabsTrigger, Fa as TagInput, So as Textarea, Eo as Toast, Do as ToastAction, Oo as ToastClose, Ao as ToastDescription, Co as ToastProvider, ko as ToastTitle, wo as ToastViewport, jo as Toaster, No as Toggle, Fo as ToggleGroup, Io as ToggleGroupItem, Yi as Tooltip, Zi as TooltipContent, Ji as TooltipProvider, Xi as TooltipTrigger, $a as arrayableToArray, ct as badgeVariants, Ke as buttonVariants, eo as caller, $ as caster, U as cn, vn as commonModalAtom, Za as dateF, Qa as datetimeF, Ma as defaultOperatorByPropType, Ha as extractFieldMetaFromSchema, Ga as fastifyCaster, Ka as hidden, fi as navigationMenuTriggerStyle, Xa as numF, ja as operatorsByPropType, Ja as paramsToSearchParams, qa as searchParamsToParams, Ya as sqlDateToDateString, Me as toast, Mo as toggleVariants, bn as useCommonModal, Tr as useFormField, Ki as useIsMobile, io as useListParams, oo as useModal, ao as useSelection, ra as useSidebar, K as useSonamuBaseContext, Ne as useToast, no as useTypeForm };
|
|
4398
4412
|
|
|
4399
4413
|
//# sourceMappingURL=react-components.es.js.map
|