@turystack/ui 0.0.27 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +16 -3
- package/dist/index.js +293 -263
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import * as Y from "@radix-ui/react-dialog";
|
|
|
20
20
|
import { OTPInput as Ss, OTPInputContext as Rs } from "input-otp";
|
|
21
21
|
import * as me from "@radix-ui/react-progress";
|
|
22
22
|
import { Toaster as Ts } from "sonner";
|
|
23
|
-
import { toast as
|
|
23
|
+
import { toast as Kr } from "sonner";
|
|
24
24
|
import * as gt from "@radix-ui/react-radio-group";
|
|
25
25
|
import { Command as q } from "cmdk";
|
|
26
26
|
import * as zs from "@radix-ui/react-separator";
|
|
@@ -381,7 +381,7 @@ function As({ children: e }) {
|
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const lr = Object.assign(Os, {
|
|
385
385
|
Content: As,
|
|
386
386
|
Item: Ls,
|
|
387
387
|
Trigger: $s
|
|
@@ -536,7 +536,7 @@ function Hs({ children: e }) {
|
|
|
536
536
|
const { action: s } = bt(), a = x()?.components?.alert?.action;
|
|
537
537
|
return /* @__PURE__ */ t.jsx("div", { className: l(s(), a?.classNames?.root), children: e });
|
|
538
538
|
}
|
|
539
|
-
const
|
|
539
|
+
const ir = Object.assign(Ms, {
|
|
540
540
|
Action: Hs,
|
|
541
541
|
Content: Ds,
|
|
542
542
|
Description: Bs,
|
|
@@ -579,7 +579,7 @@ const rr = Object.assign(Ms, {
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
|
-
function
|
|
582
|
+
function cr({
|
|
583
583
|
src: e,
|
|
584
584
|
alt: s,
|
|
585
585
|
size: o,
|
|
@@ -773,7 +773,7 @@ const Ws = k({
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
|
-
function
|
|
776
|
+
function dr({
|
|
777
777
|
bg: e,
|
|
778
778
|
grow: s,
|
|
779
779
|
minHeight: o,
|
|
@@ -894,7 +894,7 @@ function to(e) {
|
|
|
894
894
|
}
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
|
-
const
|
|
897
|
+
const ur = Object.assign(Js, {
|
|
898
898
|
Ellipsis: to,
|
|
899
899
|
Item: Zs,
|
|
900
900
|
Link: Ks,
|
|
@@ -1058,7 +1058,7 @@ function io({ children: e }) {
|
|
|
1058
1058
|
const o = x()?.components?.card?.separator, { separator: a } = ft();
|
|
1059
1059
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
1060
1060
|
}
|
|
1061
|
-
const
|
|
1061
|
+
const mr = Object.assign(so, {
|
|
1062
1062
|
Content: ro,
|
|
1063
1063
|
Description: no,
|
|
1064
1064
|
Footer: lo,
|
|
@@ -1232,7 +1232,7 @@ const Wt = Object.assign(Ie, {
|
|
|
1232
1232
|
Group: mo
|
|
1233
1233
|
}), _e = St(
|
|
1234
1234
|
null
|
|
1235
|
-
),
|
|
1235
|
+
), fr = () => {
|
|
1236
1236
|
const e = ht(_e);
|
|
1237
1237
|
if (!e)
|
|
1238
1238
|
throw new Error("useColorScheme must be used within a Provider");
|
|
@@ -1277,7 +1277,7 @@ const go = k({
|
|
|
1277
1277
|
title: "t:font-semibold t:text-lg"
|
|
1278
1278
|
}
|
|
1279
1279
|
});
|
|
1280
|
-
function
|
|
1280
|
+
function gr({
|
|
1281
1281
|
open: e,
|
|
1282
1282
|
title: s,
|
|
1283
1283
|
description: o,
|
|
@@ -1373,7 +1373,7 @@ const po = k({
|
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
});
|
|
1376
|
-
function
|
|
1376
|
+
function pr({
|
|
1377
1377
|
centered: e,
|
|
1378
1378
|
maxWidth: s,
|
|
1379
1379
|
textAlign: o,
|
|
@@ -1407,7 +1407,7 @@ function xo(e, s = 300) {
|
|
|
1407
1407
|
);
|
|
1408
1408
|
}
|
|
1409
1409
|
const Gt = 768;
|
|
1410
|
-
function
|
|
1410
|
+
function xr() {
|
|
1411
1411
|
const [e, s] = E(void 0);
|
|
1412
1412
|
return ct(() => {
|
|
1413
1413
|
const o = window.matchMedia(`(max-width: ${Gt - 1}px)`), a = () => {
|
|
@@ -1592,7 +1592,7 @@ const Tt = k({
|
|
|
1592
1592
|
value: it(i, a)
|
|
1593
1593
|
}
|
|
1594
1594
|
);
|
|
1595
|
-
}),
|
|
1595
|
+
}), hr = J(
|
|
1596
1596
|
(e, s) => {
|
|
1597
1597
|
const a = x()?.components?.currencyInput, { variant: n, ...r } = e, i = n ?? a?.defaultProps?.variant ?? "brl";
|
|
1598
1598
|
if (r.mode === "range") {
|
|
@@ -1990,7 +1990,7 @@ const Co = k({
|
|
|
1990
1990
|
calendar: "",
|
|
1991
1991
|
content: "t:w-auto t:p-2"
|
|
1992
1992
|
}
|
|
1993
|
-
}),
|
|
1993
|
+
}), br = J(
|
|
1994
1994
|
({ value: e, defaultValue: s, placeholder: o, size: a, disabled: n, loading: r, onChange: i }, d) => {
|
|
1995
1995
|
const c = x(), m = c?.components?.dateInput, f = c?.translations?.dateInput, g = n ?? m?.defaultProps?.disabled ?? !1, [b, h] = E(!1), [j, v] = E(
|
|
1996
1996
|
e ?? s ?? null
|
|
@@ -2043,7 +2043,7 @@ const Co = k({
|
|
|
2043
2043
|
calendar: "",
|
|
2044
2044
|
content: "t:w-auto t:p-2"
|
|
2045
2045
|
}
|
|
2046
|
-
}),
|
|
2046
|
+
}), vr = J(
|
|
2047
2047
|
({ value: e, defaultValue: s, placeholder: o, size: a, disabled: n, loading: r, onChange: i }, d) => {
|
|
2048
2048
|
const c = x(), m = c?.components?.dateRangeInput, f = c?.translations?.dateRangeInput, g = n ?? m?.defaultProps?.disabled ?? !1, [b, h] = E(!1), [j, v] = E(
|
|
2049
2049
|
e ?? s ?? null
|
|
@@ -2180,7 +2180,7 @@ const To = k({
|
|
|
2180
2180
|
root: "t:relative t:flex t:w-full",
|
|
2181
2181
|
typeSelector: "t:flex t:h-10 t:cursor-pointer t:items-center t:gap-1 t:rounded-l-md t:border t:border-input t:border-r-0 t:bg-transparent t:px-3 t:text-sm t:transition-colors t:hover:bg-accent t:disabled:pointer-events-none t:disabled:opacity-50"
|
|
2182
2182
|
}
|
|
2183
|
-
}),
|
|
2183
|
+
}), jr = J(
|
|
2184
2184
|
({ variant: e, value: s, defaultValue: o, onChange: a, placeholder: n, disabled: r, ...i }, d) => {
|
|
2185
2185
|
const c = x(), m = c?.components?.documentInput, f = c?.translations?.documentInput, [g, b] = E(
|
|
2186
2186
|
(s?.type !== "any" ? s?.type : void 0) ?? (o?.type !== "any" ? o?.type : void 0) ?? (e === "any" ? "cpf" : e)
|
|
@@ -2266,7 +2266,7 @@ const To = k({
|
|
|
2266
2266
|
slots: {
|
|
2267
2267
|
checkboxItem: "t:relative t:flex t:cursor-pointer t:select-none t:items-center t:rounded-sm t:py-1.5 t:pr-2 t:pl-8 t:text-sm t:outline-none t:transition-colors t:focus:bg-accent t:focus:text-accent-foreground t:data-[disabled]:pointer-events-none t:data-[disabled]:opacity-50 t:[&_svg]:size-4 t:[&_svg]:shrink-0",
|
|
2268
2268
|
checkboxItemIndicator: "t:absolute t:left-2 t:flex t:h-3.5 t:w-3.5 t:items-center t:justify-center",
|
|
2269
|
-
content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:data-[side=bottom]:slide-in-from-top-2 t:data-[side=left]:slide-in-from-right-2 t:data-[side=right]:slide-in-from-left-2 t:data-[side=top]:slide-in-from-bottom-2 t:z-50 t:min-w-[8rem] t:overflow-hidden t:rounded-md t:border t:bg-popover t:p-1 t:text-popover-foreground t:shadow-md t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
|
|
2269
|
+
content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:data-[side=bottom]:slide-in-from-top-2 t:data-[side=left]:slide-in-from-right-2 t:data-[side=right]:slide-in-from-left-2 t:data-[side=top]:slide-in-from-bottom-2 t:z-50 t:w-full t:min-w-[8rem] t:overflow-hidden t:rounded-md t:border t:bg-popover t:p-1 t:text-popover-foreground t:shadow-md t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
|
|
2270
2270
|
item: "t:relative t:flex t:cursor-pointer t:select-none t:items-center t:gap-2 t:rounded-sm t:px-2 t:py-1.5 t:text-sm t:outline-none t:transition-colors t:focus:bg-accent t:focus:text-accent-foreground t:data-[disabled]:pointer-events-none t:data-[disabled]:opacity-50 t:[&_svg]:pointer-events-none t:[&_svg]:size-4 t:[&_svg]:shrink-0",
|
|
2271
2271
|
itemIcon: "",
|
|
2272
2272
|
label: "t:px-2 t:py-1.5 t:font-semibold t:text-sm",
|
|
@@ -2310,23 +2310,34 @@ function Po({
|
|
|
2310
2310
|
asChild: e,
|
|
2311
2311
|
children: s
|
|
2312
2312
|
}) {
|
|
2313
|
-
return /* @__PURE__ */ t.jsx(
|
|
2313
|
+
return /* @__PURE__ */ t.jsx(
|
|
2314
|
+
V.Trigger,
|
|
2315
|
+
{
|
|
2316
|
+
asChild: e,
|
|
2317
|
+
className: "t:w-full t:cursor-pointer",
|
|
2318
|
+
children: s
|
|
2319
|
+
}
|
|
2320
|
+
);
|
|
2314
2321
|
}
|
|
2315
2322
|
function Io({
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2323
|
+
width: e,
|
|
2324
|
+
side: s,
|
|
2325
|
+
align: o,
|
|
2326
|
+
sideOffset: a = 4,
|
|
2327
|
+
children: n
|
|
2320
2328
|
}) {
|
|
2321
|
-
const
|
|
2329
|
+
const i = x()?.components?.dropdownMenu?.content, { content: d } = nt();
|
|
2322
2330
|
return /* @__PURE__ */ t.jsx(V.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
2323
2331
|
V.Content,
|
|
2324
2332
|
{
|
|
2325
|
-
align:
|
|
2326
|
-
className: l(
|
|
2327
|
-
side:
|
|
2328
|
-
sideOffset:
|
|
2329
|
-
|
|
2333
|
+
align: o,
|
|
2334
|
+
className: l(d(), i?.classNames?.root),
|
|
2335
|
+
side: s,
|
|
2336
|
+
sideOffset: a,
|
|
2337
|
+
style: {
|
|
2338
|
+
width: e
|
|
2339
|
+
},
|
|
2340
|
+
children: n
|
|
2330
2341
|
}
|
|
2331
2342
|
) });
|
|
2332
2343
|
}
|
|
@@ -2467,7 +2478,7 @@ function Bo({ children: e }) {
|
|
|
2467
2478
|
}
|
|
2468
2479
|
) });
|
|
2469
2480
|
}
|
|
2470
|
-
const
|
|
2481
|
+
const Nr = Object.assign(zo, {
|
|
2471
2482
|
CheckboxItem: Eo,
|
|
2472
2483
|
Content: Io,
|
|
2473
2484
|
Group: Vo,
|
|
@@ -2539,7 +2550,7 @@ const vr = Object.assign(zo, {
|
|
|
2539
2550
|
}
|
|
2540
2551
|
}
|
|
2541
2552
|
});
|
|
2542
|
-
function
|
|
2553
|
+
function yr({
|
|
2543
2554
|
direction: e,
|
|
2544
2555
|
justify: s,
|
|
2545
2556
|
align: o,
|
|
@@ -2751,7 +2762,7 @@ function Jo({
|
|
|
2751
2762
|
o
|
|
2752
2763
|
] });
|
|
2753
2764
|
}
|
|
2754
|
-
const
|
|
2765
|
+
const Cr = Object.assign(Yo, {
|
|
2755
2766
|
Field: Wo,
|
|
2756
2767
|
FieldSet: Jo
|
|
2757
2768
|
}), qo = k({
|
|
@@ -2827,7 +2838,7 @@ function Xo({ span: e, children: s }) {
|
|
|
2827
2838
|
}
|
|
2828
2839
|
);
|
|
2829
2840
|
}
|
|
2830
|
-
const
|
|
2841
|
+
const wr = Object.assign(Ko, {
|
|
2831
2842
|
Item: Xo
|
|
2832
2843
|
}), Qo = k({
|
|
2833
2844
|
slots: {
|
|
@@ -3216,7 +3227,24 @@ function fa({ item: e }) {
|
|
|
3216
3227
|
function ga({ collapsed: e }) {
|
|
3217
3228
|
return /* @__PURE__ */ t.jsx("div", { className: l("t:my-2", e ? "t:mx-2" : "t:mx-1"), children: /* @__PURE__ */ t.jsx("div", { className: "t:h-px t:bg-border" }) });
|
|
3218
3229
|
}
|
|
3219
|
-
function pa({
|
|
3230
|
+
function pa({
|
|
3231
|
+
active: e,
|
|
3232
|
+
children: s
|
|
3233
|
+
}) {
|
|
3234
|
+
return /* @__PURE__ */ t.jsx(
|
|
3235
|
+
"div",
|
|
3236
|
+
{
|
|
3237
|
+
className: l(
|
|
3238
|
+
"t:group t:flex t:w-full t:cursor-pointer t:items-center t:rounded-md t:text-sm t:transition-colors",
|
|
3239
|
+
"t:hover:bg-accent t:hover:text-accent-foreground",
|
|
3240
|
+
"t:gap-3 t:px-2 t:py-2",
|
|
3241
|
+
e && "t:bg-accent t:font-medium t:text-accent-foreground"
|
|
3242
|
+
),
|
|
3243
|
+
children: s
|
|
3244
|
+
}
|
|
3245
|
+
);
|
|
3246
|
+
}
|
|
3247
|
+
function xa({ items: e }) {
|
|
3220
3248
|
const { collapsed: s } = Vt();
|
|
3221
3249
|
return /* @__PURE__ */ t.jsx("nav", { className: "t:flex t:w-full t:flex-col t:gap-1 t:p-2", children: e.map((o) => o.type === "divider" ? null : /* @__PURE__ */ t.jsx(
|
|
3222
3250
|
fa,
|
|
@@ -3234,7 +3262,9 @@ function pa({ items: e }) {
|
|
|
3234
3262
|
)
|
|
3235
3263
|
) : o.push(a), o), []) });
|
|
3236
3264
|
}
|
|
3237
|
-
const
|
|
3265
|
+
const ha = Object.assign(xa, {
|
|
3266
|
+
Item: pa
|
|
3267
|
+
}), ba = k({
|
|
3238
3268
|
slots: {
|
|
3239
3269
|
root: "t:flex t:shrink-0 t:flex-col t:overflow-hidden t:bg-sidebar t:transition-all t:duration-200"
|
|
3240
3270
|
},
|
|
@@ -3245,7 +3275,7 @@ const xa = k({
|
|
|
3245
3275
|
}
|
|
3246
3276
|
}
|
|
3247
3277
|
}
|
|
3248
|
-
}),
|
|
3278
|
+
}), va = k({
|
|
3249
3279
|
defaultVariants: {
|
|
3250
3280
|
size: "md"
|
|
3251
3281
|
},
|
|
@@ -3270,11 +3300,11 @@ const xa = k({
|
|
|
3270
3300
|
}
|
|
3271
3301
|
}
|
|
3272
3302
|
}
|
|
3273
|
-
}),
|
|
3303
|
+
}), ja = k({
|
|
3274
3304
|
slots: {
|
|
3275
3305
|
root: "t:flex t:flex-1 t:flex-col t:overflow-y-auto"
|
|
3276
3306
|
}
|
|
3277
|
-
}),
|
|
3307
|
+
}), Na = k({
|
|
3278
3308
|
defaultVariants: {
|
|
3279
3309
|
size: "md"
|
|
3280
3310
|
},
|
|
@@ -3299,30 +3329,30 @@ const xa = k({
|
|
|
3299
3329
|
}
|
|
3300
3330
|
}
|
|
3301
3331
|
}
|
|
3302
|
-
}),
|
|
3332
|
+
}), ya = k({
|
|
3303
3333
|
slots: {
|
|
3304
3334
|
root: "t:flex t:items-center t:justify-center t:rounded-md t:p-1.5 t:text-muted-foreground t:transition-colors t:hover:bg-accent t:hover:text-accent-foreground"
|
|
3305
3335
|
}
|
|
3306
|
-
}),
|
|
3336
|
+
}), Ca = {
|
|
3307
3337
|
default: "t:w-60",
|
|
3308
3338
|
wide: "t:w-80"
|
|
3309
|
-
},
|
|
3339
|
+
}, wa = {
|
|
3310
3340
|
lg: "t:px-6",
|
|
3311
3341
|
md: "t:px-4",
|
|
3312
3342
|
sm: "t:px-2"
|
|
3313
|
-
},
|
|
3343
|
+
}, ka = {
|
|
3314
3344
|
lg: "t:py-6",
|
|
3315
3345
|
md: "t:py-4",
|
|
3316
3346
|
sm: "t:py-2"
|
|
3317
3347
|
};
|
|
3318
|
-
function
|
|
3348
|
+
function Sa({
|
|
3319
3349
|
children: e,
|
|
3320
3350
|
bordered: s,
|
|
3321
3351
|
width: o = "default",
|
|
3322
3352
|
paddingHorizontal: a,
|
|
3323
3353
|
paddingVertical: n
|
|
3324
3354
|
}) {
|
|
3325
|
-
const { collapsed: r } = Vt(), d = x()?.components?.layout?.sidebar?.default, { root: c } =
|
|
3355
|
+
const { collapsed: r } = Vt(), d = x()?.components?.layout?.sidebar?.default, { root: c } = ba({
|
|
3326
3356
|
bordered: s
|
|
3327
3357
|
});
|
|
3328
3358
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -3330,9 +3360,9 @@ function wa({
|
|
|
3330
3360
|
{
|
|
3331
3361
|
className: l(
|
|
3332
3362
|
c(),
|
|
3333
|
-
r ? "t:w-16" :
|
|
3334
|
-
a &&
|
|
3335
|
-
n &&
|
|
3363
|
+
r ? "t:w-16" : Ca[o],
|
|
3364
|
+
a && wa[a],
|
|
3365
|
+
n && ka[n],
|
|
3336
3366
|
d?.classNames?.root
|
|
3337
3367
|
),
|
|
3338
3368
|
children: e
|
|
@@ -3344,14 +3374,14 @@ function Fe({
|
|
|
3344
3374
|
bordered: s,
|
|
3345
3375
|
size: o
|
|
3346
3376
|
}) {
|
|
3347
|
-
const n = x()?.components?.layout?.sidebar?.header, { root: r } =
|
|
3377
|
+
const n = x()?.components?.layout?.sidebar?.header, { root: r } = va({
|
|
3348
3378
|
bordered: s,
|
|
3349
3379
|
size: o
|
|
3350
3380
|
});
|
|
3351
3381
|
return /* @__PURE__ */ t.jsx("div", { className: l(r(), n?.classNames?.root), children: e });
|
|
3352
3382
|
}
|
|
3353
3383
|
function Be({ children: e }) {
|
|
3354
|
-
const o = x()?.components?.layout?.sidebar?.body, { root: a } =
|
|
3384
|
+
const o = x()?.components?.layout?.sidebar?.body, { root: a } = ja();
|
|
3355
3385
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
3356
3386
|
}
|
|
3357
3387
|
function He({
|
|
@@ -3359,14 +3389,14 @@ function He({
|
|
|
3359
3389
|
bordered: s,
|
|
3360
3390
|
size: o
|
|
3361
3391
|
}) {
|
|
3362
|
-
const n = x()?.components?.layout?.sidebar?.footer, { root: r } =
|
|
3392
|
+
const n = x()?.components?.layout?.sidebar?.footer, { root: r } = Na({
|
|
3363
3393
|
bordered: s,
|
|
3364
3394
|
size: o
|
|
3365
3395
|
});
|
|
3366
3396
|
return /* @__PURE__ */ t.jsx("div", { className: l(r(), n?.classNames?.root), children: e });
|
|
3367
3397
|
}
|
|
3368
3398
|
function Ge() {
|
|
3369
|
-
const { collapsed: e, toggle: s } = Vt(), a = x()?.translations?.sidebar, { root: n } =
|
|
3399
|
+
const { collapsed: e, toggle: s } = Vt(), a = x()?.translations?.sidebar, { root: n } = ya(), r = e ? is : cs;
|
|
3370
3400
|
return /* @__PURE__ */ t.jsx(
|
|
3371
3401
|
"button",
|
|
3372
3402
|
{
|
|
@@ -3382,18 +3412,18 @@ Fe.displayName = "Sidebar.Header";
|
|
|
3382
3412
|
Be.displayName = "Sidebar.Body";
|
|
3383
3413
|
He.displayName = "Sidebar.Footer";
|
|
3384
3414
|
Ge.displayName = "Sidebar.Trigger";
|
|
3385
|
-
const
|
|
3415
|
+
const Ra = Object.assign(Sa, {
|
|
3386
3416
|
Body: Be,
|
|
3387
3417
|
Footer: He,
|
|
3388
3418
|
Header: Fe,
|
|
3389
3419
|
Trigger: Ge
|
|
3390
|
-
}),
|
|
3420
|
+
}), Ta = k({
|
|
3391
3421
|
slots: {
|
|
3392
3422
|
root: "t:flex t:h-screen t:w-full t:overflow-hidden t:bg-background t:text-foreground"
|
|
3393
3423
|
}
|
|
3394
3424
|
});
|
|
3395
|
-
function
|
|
3396
|
-
const o = x()?.components?.layout?.default, [a, n] = E(!1), r = Et(() => n((d) => !d), []), { root: i } =
|
|
3425
|
+
function za({ children: e }) {
|
|
3426
|
+
const o = x()?.components?.layout?.default, [a, n] = E(!1), r = Et(() => n((d) => !d), []), { root: i } = Ta();
|
|
3397
3427
|
return /* @__PURE__ */ t.jsx(
|
|
3398
3428
|
Le.Provider,
|
|
3399
3429
|
{
|
|
@@ -3406,14 +3436,14 @@ function Ra({ children: e }) {
|
|
|
3406
3436
|
}
|
|
3407
3437
|
);
|
|
3408
3438
|
}
|
|
3409
|
-
const
|
|
3439
|
+
const kr = Object.assign(za, {
|
|
3410
3440
|
Content: ta,
|
|
3411
3441
|
Footer: oa,
|
|
3412
3442
|
Header: ra,
|
|
3413
3443
|
Main: ia,
|
|
3414
|
-
Nav:
|
|
3415
|
-
Sidebar:
|
|
3416
|
-
}),
|
|
3444
|
+
Nav: ha,
|
|
3445
|
+
Sidebar: Ra
|
|
3446
|
+
}), Pa = k({
|
|
3417
3447
|
defaultVariants: {
|
|
3418
3448
|
visible: !1
|
|
3419
3449
|
},
|
|
@@ -3432,8 +3462,8 @@ const Cr = Object.assign(Ra, {
|
|
|
3432
3462
|
}
|
|
3433
3463
|
}
|
|
3434
3464
|
});
|
|
3435
|
-
function
|
|
3436
|
-
const { root: s, loader: o } =
|
|
3465
|
+
function Ia({ visible: e = !1 }) {
|
|
3466
|
+
const { root: s, loader: o } = Pa({
|
|
3437
3467
|
visible: e
|
|
3438
3468
|
});
|
|
3439
3469
|
return /* @__PURE__ */ t.jsx("div", { className: s(), children: /* @__PURE__ */ t.jsx(Rt, { className: o() }) });
|
|
@@ -3445,7 +3475,7 @@ const Ue = k({
|
|
|
3445
3475
|
overlay: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:fixed t:inset-0 t:z-50 t:bg-black/80 t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
|
|
3446
3476
|
root: ""
|
|
3447
3477
|
}
|
|
3448
|
-
}),
|
|
3478
|
+
}), _a = k({
|
|
3449
3479
|
slots: {
|
|
3450
3480
|
description: "",
|
|
3451
3481
|
root: "t:flex t:shrink-0 t:items-center t:justify-between t:px-6 t:py-4",
|
|
@@ -3458,19 +3488,19 @@ const Ue = k({
|
|
|
3458
3488
|
}
|
|
3459
3489
|
}
|
|
3460
3490
|
}
|
|
3461
|
-
}),
|
|
3491
|
+
}), Ea = k({
|
|
3462
3492
|
slots: {
|
|
3463
3493
|
root: "t:font-semibold t:text-lg t:leading-none t:tracking-tight"
|
|
3464
3494
|
}
|
|
3465
|
-
}),
|
|
3495
|
+
}), Oa = k({
|
|
3466
3496
|
slots: {
|
|
3467
3497
|
root: "t:text-muted-foreground t:text-sm"
|
|
3468
3498
|
}
|
|
3469
|
-
}),
|
|
3499
|
+
}), La = k({
|
|
3470
3500
|
slots: {
|
|
3471
3501
|
root: "t:flex-1 t:overflow-y-auto t:px-6 t:py-4"
|
|
3472
3502
|
}
|
|
3473
|
-
}),
|
|
3503
|
+
}), $a = k({
|
|
3474
3504
|
slots: {
|
|
3475
3505
|
root: "t:flex t:shrink-0 t:flex-col-reverse t:gap-2 t:px-6 t:py-4 t:sm:flex-row t:sm:justify-end"
|
|
3476
3506
|
},
|
|
@@ -3482,7 +3512,7 @@ const Ue = k({
|
|
|
3482
3512
|
}
|
|
3483
3513
|
}
|
|
3484
3514
|
});
|
|
3485
|
-
function
|
|
3515
|
+
function Aa({ open: e, onChange: s, children: o }) {
|
|
3486
3516
|
return /* @__PURE__ */ t.jsx(
|
|
3487
3517
|
Y.Root,
|
|
3488
3518
|
{
|
|
@@ -3492,7 +3522,7 @@ function La({ open: e, onChange: s, children: o }) {
|
|
|
3492
3522
|
}
|
|
3493
3523
|
);
|
|
3494
3524
|
}
|
|
3495
|
-
function
|
|
3525
|
+
function Ma({ children: e }) {
|
|
3496
3526
|
const o = x()?.components?.modal?.default, { overlay: a, content: n } = Ue();
|
|
3497
3527
|
return /* @__PURE__ */ t.jsxs(Y.Portal, { children: [
|
|
3498
3528
|
/* @__PURE__ */ t.jsx(
|
|
@@ -3510,12 +3540,12 @@ function $a({ children: e }) {
|
|
|
3510
3540
|
)
|
|
3511
3541
|
] });
|
|
3512
3542
|
}
|
|
3513
|
-
function
|
|
3543
|
+
function Va({
|
|
3514
3544
|
closable: e,
|
|
3515
3545
|
bordered: s,
|
|
3516
3546
|
children: o
|
|
3517
3547
|
}) {
|
|
3518
|
-
const a = x(), n = a?.components?.modal?.header, r = a?.components?.modal?.default, { root: i } =
|
|
3548
|
+
const a = x(), n = a?.components?.modal?.header, r = a?.components?.modal?.default, { root: i } = _a({
|
|
3519
3549
|
bordered: s
|
|
3520
3550
|
}), { close: d } = Ue();
|
|
3521
3551
|
return /* @__PURE__ */ t.jsxs("div", { className: l(i(), n?.classNames?.root), children: [
|
|
@@ -3529,14 +3559,14 @@ function Aa({
|
|
|
3529
3559
|
)
|
|
3530
3560
|
] });
|
|
3531
3561
|
}
|
|
3532
|
-
function
|
|
3533
|
-
const o = x()?.components?.modal?.headerTitle, { root: a } =
|
|
3562
|
+
function Da({ children: e }) {
|
|
3563
|
+
const o = x()?.components?.modal?.headerTitle, { root: a } = Ea();
|
|
3534
3564
|
return /* @__PURE__ */ t.jsx(Y.Title, { className: l(a(), o?.classNames?.root), children: e });
|
|
3535
3565
|
}
|
|
3536
|
-
function
|
|
3566
|
+
function Fa({
|
|
3537
3567
|
children: e
|
|
3538
3568
|
}) {
|
|
3539
|
-
const o = x()?.components?.modal?.headerDescription, { root: a } =
|
|
3569
|
+
const o = x()?.components?.modal?.headerDescription, { root: a } = Oa();
|
|
3540
3570
|
return /* @__PURE__ */ t.jsx(
|
|
3541
3571
|
Y.Description,
|
|
3542
3572
|
{
|
|
@@ -3545,25 +3575,25 @@ function Va({
|
|
|
3545
3575
|
}
|
|
3546
3576
|
);
|
|
3547
3577
|
}
|
|
3548
|
-
function
|
|
3549
|
-
const o = x()?.components?.modal?.body, { root: a } =
|
|
3578
|
+
function Ba({ children: e }) {
|
|
3579
|
+
const o = x()?.components?.modal?.body, { root: a } = La();
|
|
3550
3580
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
3551
3581
|
}
|
|
3552
|
-
function
|
|
3553
|
-
const a = x()?.components?.modal?.footer, { root: n } =
|
|
3582
|
+
function Ha({ bordered: e, children: s }) {
|
|
3583
|
+
const a = x()?.components?.modal?.footer, { root: n } = $a({
|
|
3554
3584
|
bordered: e
|
|
3555
3585
|
});
|
|
3556
3586
|
return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root), children: s });
|
|
3557
3587
|
}
|
|
3558
|
-
const
|
|
3559
|
-
Description:
|
|
3560
|
-
Title:
|
|
3561
|
-
}),
|
|
3562
|
-
Body:
|
|
3588
|
+
const Ga = Object.assign(Va, {
|
|
3589
|
+
Description: Fa,
|
|
3590
|
+
Title: Da
|
|
3591
|
+
}), Sr = Object.assign(Aa, {
|
|
3592
|
+
Body: Ba,
|
|
3563
3593
|
Close: Y.Close,
|
|
3564
|
-
Content:
|
|
3565
|
-
Footer:
|
|
3566
|
-
Header:
|
|
3594
|
+
Content: Ma,
|
|
3595
|
+
Footer: Ha,
|
|
3596
|
+
Header: Ga,
|
|
3567
3597
|
Trigger: Y.Trigger
|
|
3568
3598
|
}), Ye = k({
|
|
3569
3599
|
slots: {
|
|
@@ -3572,7 +3602,7 @@ const Ba = Object.assign(Aa, {
|
|
|
3572
3602
|
input: "",
|
|
3573
3603
|
root: "t:flex t:w-full t:items-stretch t:overflow-hidden t:rounded-md t:border t:border-input t:bg-input/30"
|
|
3574
3604
|
}
|
|
3575
|
-
}),
|
|
3605
|
+
}), Ua = k({
|
|
3576
3606
|
slots: {
|
|
3577
3607
|
cancel: "",
|
|
3578
3608
|
confirm: "",
|
|
@@ -3630,7 +3660,7 @@ function ve({
|
|
|
3630
3660
|
)
|
|
3631
3661
|
] });
|
|
3632
3662
|
}
|
|
3633
|
-
function
|
|
3663
|
+
function Ya({
|
|
3634
3664
|
step: e,
|
|
3635
3665
|
size: s,
|
|
3636
3666
|
disabled: o,
|
|
@@ -3690,7 +3720,7 @@ function Ga({
|
|
|
3690
3720
|
)
|
|
3691
3721
|
] });
|
|
3692
3722
|
}
|
|
3693
|
-
function
|
|
3723
|
+
function Wa({
|
|
3694
3724
|
step: e,
|
|
3695
3725
|
size: s,
|
|
3696
3726
|
disabled: o,
|
|
@@ -3708,7 +3738,7 @@ function Ua({
|
|
|
3708
3738
|
}), y = l(
|
|
3709
3739
|
N(),
|
|
3710
3740
|
"t:flex-1 t:border-0 t:rounded-none t:text-center t:focus-visible:ring-0 t:focus-visible:ring-offset-0"
|
|
3711
|
-
), { content: R, footer: O, inputLabel: P, inputSection: C, inputsWrapper: L, trigger: z } =
|
|
3741
|
+
), { content: R, footer: O, inputLabel: P, inputSection: C, inputsWrapper: L, trigger: z } = Ua();
|
|
3712
3742
|
function w(A) {
|
|
3713
3743
|
A && j(p), f(A);
|
|
3714
3744
|
}
|
|
@@ -3798,11 +3828,11 @@ function Ua({
|
|
|
3798
3828
|
}
|
|
3799
3829
|
);
|
|
3800
3830
|
}
|
|
3801
|
-
const
|
|
3831
|
+
const Rr = J(
|
|
3802
3832
|
({ step: e = 1, size: s, disabled: o, placeholder: a, ...n }, r) => {
|
|
3803
3833
|
const i = s ?? "md";
|
|
3804
3834
|
return n.mode === "single" ? /* @__PURE__ */ t.jsx(
|
|
3805
|
-
|
|
3835
|
+
Ya,
|
|
3806
3836
|
{
|
|
3807
3837
|
defaultValue: n.defaultValue,
|
|
3808
3838
|
disabled: o,
|
|
@@ -3814,7 +3844,7 @@ const kr = J(
|
|
|
3814
3844
|
value: n.value
|
|
3815
3845
|
}
|
|
3816
3846
|
) : /* @__PURE__ */ t.jsx(
|
|
3817
|
-
|
|
3847
|
+
Wa,
|
|
3818
3848
|
{
|
|
3819
3849
|
defaultValue: n.defaultValue,
|
|
3820
3850
|
disabled: o,
|
|
@@ -3853,7 +3883,7 @@ const kr = J(
|
|
|
3853
3883
|
}
|
|
3854
3884
|
}
|
|
3855
3885
|
});
|
|
3856
|
-
function
|
|
3886
|
+
function Ja({ ...e }) {
|
|
3857
3887
|
return /* @__PURE__ */ t.jsx(
|
|
3858
3888
|
"div",
|
|
3859
3889
|
{
|
|
@@ -3863,7 +3893,7 @@ function Ya({ ...e }) {
|
|
|
3863
3893
|
}
|
|
3864
3894
|
);
|
|
3865
3895
|
}
|
|
3866
|
-
function
|
|
3896
|
+
function qa({ index: e, size: s }) {
|
|
3867
3897
|
const o = ht(Rs), { char: a, hasFakeCaret: n, isActive: r } = o.slots[e], d = x()?.components?.otpInput, { cell: c } = We({
|
|
3868
3898
|
active: r,
|
|
3869
3899
|
size: s
|
|
@@ -3873,7 +3903,7 @@ function Wa({ index: e, size: s }) {
|
|
|
3873
3903
|
n && /* @__PURE__ */ t.jsx("div", { className: "t:pointer-events-none t:absolute t:inset-0 t:flex t:items-center t:justify-center", children: /* @__PURE__ */ t.jsx("div", { className: "t:h-4 t:w-px t:animate-caret-blink t:bg-foreground t:duration-1000" }) })
|
|
3874
3904
|
] });
|
|
3875
3905
|
}
|
|
3876
|
-
function
|
|
3906
|
+
function Tr({
|
|
3877
3907
|
pattern: e = [],
|
|
3878
3908
|
size: s,
|
|
3879
3909
|
value: o,
|
|
@@ -3902,7 +3932,7 @@ function Sr({
|
|
|
3902
3932
|
children: Array.from({
|
|
3903
3933
|
length: b
|
|
3904
3934
|
}).map((p, N) => /* @__PURE__ */ t.jsx(
|
|
3905
|
-
|
|
3935
|
+
qa,
|
|
3906
3936
|
{
|
|
3907
3937
|
index: j + N,
|
|
3908
3938
|
size: c
|
|
@@ -3913,12 +3943,12 @@ function Sr({
|
|
|
3913
3943
|
`group-${j}`
|
|
3914
3944
|
)
|
|
3915
3945
|
];
|
|
3916
|
-
return h < d.length - 1 && v.push(/* @__PURE__ */ t.jsx(
|
|
3946
|
+
return h < d.length - 1 && v.push(/* @__PURE__ */ t.jsx(Ja, {}, `sep-${j}`)), v;
|
|
3917
3947
|
})
|
|
3918
3948
|
}
|
|
3919
3949
|
);
|
|
3920
3950
|
}
|
|
3921
|
-
const
|
|
3951
|
+
const Za = k({
|
|
3922
3952
|
slots: {
|
|
3923
3953
|
actions: "t:flex t:items-center t:gap-1",
|
|
3924
3954
|
root: "t:flex t:items-center t:justify-between t:gap-4",
|
|
@@ -3933,7 +3963,7 @@ const Ja = k({
|
|
|
3933
3963
|
50,
|
|
3934
3964
|
100
|
|
3935
3965
|
];
|
|
3936
|
-
function
|
|
3966
|
+
function Ka(e) {
|
|
3937
3967
|
const s = x(), o = s?.components?.pagination, a = s?.translations?.pagination, {
|
|
3938
3968
|
root: n,
|
|
3939
3969
|
rowsPerPage: r,
|
|
@@ -3941,7 +3971,7 @@ function qa(e) {
|
|
|
3941
3971
|
rowsSelectNative: d,
|
|
3942
3972
|
rowsSelectIcon: c,
|
|
3943
3973
|
actions: m
|
|
3944
|
-
} =
|
|
3974
|
+
} = Za();
|
|
3945
3975
|
if (e.mode === "offset") {
|
|
3946
3976
|
const {
|
|
3947
3977
|
page: p,
|
|
@@ -4061,19 +4091,19 @@ function qa(e) {
|
|
|
4061
4091
|
] })
|
|
4062
4092
|
] });
|
|
4063
4093
|
}
|
|
4064
|
-
const
|
|
4094
|
+
const Xa = Array.from({
|
|
4065
4095
|
length: 5
|
|
4066
4096
|
}).map((e, s) => ({
|
|
4067
4097
|
id: s
|
|
4068
|
-
})),
|
|
4098
|
+
})), Qa = [
|
|
4069
4099
|
(e) => e.length >= 8,
|
|
4070
4100
|
(e) => /[A-Z]/.test(e),
|
|
4071
4101
|
(e) => /[a-z]/.test(e),
|
|
4072
4102
|
(e) => /[0-9]/.test(e),
|
|
4073
4103
|
(e) => /[^A-Za-z0-9]/.test(e)
|
|
4074
4104
|
];
|
|
4075
|
-
function
|
|
4076
|
-
const s =
|
|
4105
|
+
function tn(e) {
|
|
4106
|
+
const s = Qa.filter((o) => o(e)).length;
|
|
4077
4107
|
return s <= 1 ? {
|
|
4078
4108
|
level: "very-weak",
|
|
4079
4109
|
score: s
|
|
@@ -4091,20 +4121,20 @@ function Xa(e) {
|
|
|
4091
4121
|
score: s
|
|
4092
4122
|
};
|
|
4093
4123
|
}
|
|
4094
|
-
const
|
|
4124
|
+
const en = k({
|
|
4095
4125
|
slots: {
|
|
4096
4126
|
bar: "t:h-1.5 t:flex-1 t:rounded-full t:transition-colors",
|
|
4097
4127
|
barWrapper: "t:flex t:gap-1 t:pt-2",
|
|
4098
4128
|
label: "t:pt-1 t:text-xs",
|
|
4099
4129
|
root: "t:w-full"
|
|
4100
4130
|
}
|
|
4101
|
-
}),
|
|
4131
|
+
}), sn = {
|
|
4102
4132
|
medium: "t:bg-yellow-500",
|
|
4103
4133
|
strong: "t:bg-green-500",
|
|
4104
4134
|
"very-strong": "t:bg-green-700",
|
|
4105
4135
|
"very-weak": "t:bg-destructive",
|
|
4106
4136
|
weak: "t:bg-orange-500"
|
|
4107
|
-
},
|
|
4137
|
+
}, on = {
|
|
4108
4138
|
medium: "t:text-yellow-500",
|
|
4109
4139
|
strong: "t:text-green-500",
|
|
4110
4140
|
"very-strong": "t:text-green-700",
|
|
@@ -4116,11 +4146,11 @@ const Qa = k({
|
|
|
4116
4146
|
"very-strong": "Very strong",
|
|
4117
4147
|
"very-weak": "Very weak",
|
|
4118
4148
|
weak: "Weak"
|
|
4119
|
-
},
|
|
4149
|
+
}, zr = J(
|
|
4120
4150
|
({ showStrength: e = !0, value: s, onChange: o, ...a }, n) => {
|
|
4121
4151
|
const i = x()?.translations?.passwordInput, [d, c] = E(""), m = typeof s == "string" ? s : d ?? "", f = (p) => {
|
|
4122
4152
|
c(p ?? ""), o?.(p);
|
|
4123
|
-
}, { root: g, barWrapper: b, bar: h, label: j } =
|
|
4153
|
+
}, { root: g, barWrapper: b, bar: h, label: j } = en(), v = e && m ? tn(m) : null;
|
|
4124
4154
|
return /* @__PURE__ */ t.jsxs("div", { className: g(), children: [
|
|
4125
4155
|
/* @__PURE__ */ t.jsx(
|
|
4126
4156
|
dt,
|
|
@@ -4133,18 +4163,18 @@ const Qa = k({
|
|
|
4133
4163
|
}
|
|
4134
4164
|
),
|
|
4135
4165
|
e && v && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4136
|
-
/* @__PURE__ */ t.jsx("div", { className: b(), children:
|
|
4166
|
+
/* @__PURE__ */ t.jsx("div", { className: b(), children: Xa.map(({ id: p }) => /* @__PURE__ */ t.jsx(
|
|
4137
4167
|
"div",
|
|
4138
4168
|
{
|
|
4139
|
-
className: `${h()} ${p < v.score ?
|
|
4169
|
+
className: `${h()} ${p < v.score ? sn[v.level] : "t:bg-muted"}`
|
|
4140
4170
|
},
|
|
4141
4171
|
p
|
|
4142
4172
|
)) }),
|
|
4143
|
-
/* @__PURE__ */ t.jsx("p", { className: `${j()} ${
|
|
4173
|
+
/* @__PURE__ */ t.jsx("p", { className: `${j()} ${on[v.level]}`, children: v.level === "very-weak" ? i?.veryWeak ?? yt["very-weak"] : v.level === "weak" ? i?.weak ?? yt.weak : v.level === "medium" ? i?.medium ?? yt.medium : v.level === "strong" ? i?.strong ?? yt.strong : i?.veryStrong ?? yt["very-strong"] })
|
|
4144
4174
|
] })
|
|
4145
4175
|
] });
|
|
4146
4176
|
}
|
|
4147
|
-
),
|
|
4177
|
+
), an = [
|
|
4148
4178
|
{
|
|
4149
4179
|
code: "AF",
|
|
4150
4180
|
dialCode: "+93",
|
|
@@ -5333,7 +5363,7 @@ const Qa = k({
|
|
|
5333
5363
|
flag: "🇿🇼",
|
|
5334
5364
|
mask: "00 000 0000"
|
|
5335
5365
|
}
|
|
5336
|
-
],
|
|
5366
|
+
], nn = "BR", rn = k({
|
|
5337
5367
|
defaultVariants: {
|
|
5338
5368
|
size: "md"
|
|
5339
5369
|
},
|
|
@@ -5357,7 +5387,7 @@ const Qa = k({
|
|
|
5357
5387
|
}
|
|
5358
5388
|
}
|
|
5359
5389
|
}
|
|
5360
|
-
}),
|
|
5390
|
+
}), Pr = J(
|
|
5361
5391
|
({ value: e, defaultValue: s, onChange: o, disabled: a, ...n }, r) => {
|
|
5362
5392
|
const i = x(), d = i?.components?.phoneInput, c = i?.translations?.phoneInput, m = xt(() => {
|
|
5363
5393
|
const C = new Intl.DisplayNames(
|
|
@@ -5368,13 +5398,13 @@ const Qa = k({
|
|
|
5368
5398
|
type: "region"
|
|
5369
5399
|
}
|
|
5370
5400
|
);
|
|
5371
|
-
return
|
|
5401
|
+
return an.map((L) => ({
|
|
5372
5402
|
...L,
|
|
5373
5403
|
name: C.of(L.code) ?? L.code
|
|
5374
5404
|
})).sort((L, z) => L.name.localeCompare(z.name));
|
|
5375
5405
|
}, []), f = e ?? s, [g, b] = E(
|
|
5376
5406
|
f ? m.find((C) => C.code === f.iso) ?? null : null
|
|
5377
|
-
), [h, j] = E(""), v = g ?? m.find((C) => C.code ===
|
|
5407
|
+
), [h, j] = E(""), v = g ?? m.find((C) => C.code === nn) ?? m[0], p = m.filter(
|
|
5378
5408
|
(C) => C.name.toLowerCase().includes(h.toLowerCase()) || C.dialCode.includes(h) || C.code.toLowerCase().includes(h.toLowerCase())
|
|
5379
5409
|
), N = (C) => {
|
|
5380
5410
|
b(C), j(""), o?.(null);
|
|
@@ -5386,7 +5416,7 @@ const Qa = k({
|
|
|
5386
5416
|
number: C
|
|
5387
5417
|
} : null
|
|
5388
5418
|
);
|
|
5389
|
-
}, R = n.size ?? "md", { root: O, countrySelector: P } =
|
|
5419
|
+
}, R = n.size ?? "md", { root: O, countrySelector: P } = rn({
|
|
5390
5420
|
size: R
|
|
5391
5421
|
});
|
|
5392
5422
|
return /* @__PURE__ */ t.jsxs("div", { className: l(O(), d?.classNames?.root), children: [
|
|
@@ -5459,21 +5489,21 @@ const Qa = k({
|
|
|
5459
5489
|
) })
|
|
5460
5490
|
] });
|
|
5461
5491
|
}
|
|
5462
|
-
),
|
|
5492
|
+
), ln = k({
|
|
5463
5493
|
slots: {
|
|
5464
5494
|
content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:data-[side=bottom]:slide-in-from-top-2 t:data-[side=left]:slide-in-from-right-2 t:data-[side=right]:slide-in-from-left-2 t:data-[side=top]:slide-in-from-bottom-2 t:z-50 t:w-72 t:rounded-md t:border t:bg-popover t:p-2 t:text-popover-foreground t:shadow-md t:outline-none t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
|
|
5465
5495
|
root: "",
|
|
5466
5496
|
trigger: ""
|
|
5467
5497
|
}
|
|
5468
5498
|
});
|
|
5469
|
-
function
|
|
5499
|
+
function Ir({
|
|
5470
5500
|
content: e,
|
|
5471
5501
|
side: s = "bottom",
|
|
5472
5502
|
sideOffset: o = 4,
|
|
5473
5503
|
align: a = "center",
|
|
5474
5504
|
children: n
|
|
5475
5505
|
}) {
|
|
5476
|
-
const { content: r } =
|
|
5506
|
+
const { content: r } = ln();
|
|
5477
5507
|
return /* @__PURE__ */ t.jsxs(G.Root, { children: [
|
|
5478
5508
|
/* @__PURE__ */ t.jsx(G.Trigger, { asChild: !0, children: n }),
|
|
5479
5509
|
/* @__PURE__ */ t.jsx(G.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
@@ -5488,7 +5518,7 @@ function zr({
|
|
|
5488
5518
|
) })
|
|
5489
5519
|
] });
|
|
5490
5520
|
}
|
|
5491
|
-
const
|
|
5521
|
+
const cn = k({
|
|
5492
5522
|
defaultVariants: {
|
|
5493
5523
|
size: "md"
|
|
5494
5524
|
},
|
|
@@ -5511,12 +5541,12 @@ const rn = k({
|
|
|
5511
5541
|
}
|
|
5512
5542
|
}
|
|
5513
5543
|
});
|
|
5514
|
-
function
|
|
5544
|
+
function _r({ label: e, value: s, defaultValue: o, size: a }) {
|
|
5515
5545
|
const {
|
|
5516
5546
|
root: n,
|
|
5517
5547
|
indicator: r,
|
|
5518
5548
|
label: i
|
|
5519
|
-
} =
|
|
5549
|
+
} = cn({
|
|
5520
5550
|
size: a
|
|
5521
5551
|
}), d = s ?? o ?? 0, c = typeof e == "string" ? e : e?.content;
|
|
5522
5552
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
|
@@ -5545,13 +5575,13 @@ function Pr({ label: e, value: s, defaultValue: o, size: a }) {
|
|
|
5545
5575
|
)
|
|
5546
5576
|
] });
|
|
5547
5577
|
}
|
|
5548
|
-
const Je = St(null),
|
|
5578
|
+
const Je = St(null), Er = () => {
|
|
5549
5579
|
const e = ht(Je);
|
|
5550
5580
|
if (!e)
|
|
5551
5581
|
throw new Error("useTheme must be used within a Provider");
|
|
5552
5582
|
return e;
|
|
5553
5583
|
}, le = "turystack-theme";
|
|
5554
|
-
function
|
|
5584
|
+
function dn() {
|
|
5555
5585
|
if (typeof window > "u")
|
|
5556
5586
|
return null;
|
|
5557
5587
|
try {
|
|
@@ -5561,7 +5591,7 @@ function ln() {
|
|
|
5561
5591
|
return null;
|
|
5562
5592
|
}
|
|
5563
5593
|
}
|
|
5564
|
-
function
|
|
5594
|
+
function un(e) {
|
|
5565
5595
|
localStorage.setItem(le, JSON.stringify(e));
|
|
5566
5596
|
}
|
|
5567
5597
|
const qe = {
|
|
@@ -5574,17 +5604,17 @@ const qe = {
|
|
|
5574
5604
|
none: "0px",
|
|
5575
5605
|
sm: "0.25rem"
|
|
5576
5606
|
};
|
|
5577
|
-
function
|
|
5607
|
+
function mn(e) {
|
|
5578
5608
|
return {
|
|
5579
5609
|
font: e.font,
|
|
5580
5610
|
radius: e.radius
|
|
5581
5611
|
};
|
|
5582
5612
|
}
|
|
5583
|
-
function
|
|
5584
|
-
const o =
|
|
5613
|
+
function fn(e, s) {
|
|
5614
|
+
const o = mn(e), a = {};
|
|
5585
5615
|
return o.font && (a["--font-sans"] = qe[o.font]), o.radius && (a["--t-radius"] = Ze[o.radius]), a;
|
|
5586
5616
|
}
|
|
5587
|
-
const
|
|
5617
|
+
const gn = [
|
|
5588
5618
|
"--t-accent",
|
|
5589
5619
|
"--t-accent-foreground",
|
|
5590
5620
|
"--t-background",
|
|
@@ -5614,18 +5644,18 @@ const mn = [
|
|
|
5614
5644
|
"--t-radius",
|
|
5615
5645
|
"--font-sans"
|
|
5616
5646
|
];
|
|
5617
|
-
function
|
|
5647
|
+
function pn({
|
|
5618
5648
|
defaultTheme: e = {},
|
|
5619
5649
|
persistTheme: s = !1,
|
|
5620
5650
|
children: o
|
|
5621
5651
|
}) {
|
|
5622
5652
|
const [a, n] = E(() => ({
|
|
5623
|
-
...s ?
|
|
5653
|
+
...s ? dn() ?? {} : {},
|
|
5624
5654
|
...e
|
|
5625
5655
|
})), r = wt([]), i = Et((c) => {
|
|
5626
5656
|
const m = document.documentElement;
|
|
5627
5657
|
m.classList.contains("dark");
|
|
5628
|
-
const f =
|
|
5658
|
+
const f = fn(c);
|
|
5629
5659
|
for (const g of r.current)
|
|
5630
5660
|
g in f || m.style.removeProperty(g);
|
|
5631
5661
|
for (const [g, b] of Object.entries(f))
|
|
@@ -5638,7 +5668,7 @@ function fn({
|
|
|
5638
5668
|
...m,
|
|
5639
5669
|
...c
|
|
5640
5670
|
};
|
|
5641
|
-
return s &&
|
|
5671
|
+
return s && un(f), f;
|
|
5642
5672
|
});
|
|
5643
5673
|
},
|
|
5644
5674
|
[
|
|
@@ -5659,7 +5689,7 @@ function fn({
|
|
|
5659
5689
|
}), () => {
|
|
5660
5690
|
m.disconnect();
|
|
5661
5691
|
const f = document.documentElement;
|
|
5662
|
-
for (const g of
|
|
5692
|
+
for (const g of gn)
|
|
5663
5693
|
f.style.removeProperty(g);
|
|
5664
5694
|
};
|
|
5665
5695
|
}, [
|
|
@@ -5676,7 +5706,7 @@ function fn({
|
|
|
5676
5706
|
}
|
|
5677
5707
|
);
|
|
5678
5708
|
}
|
|
5679
|
-
function
|
|
5709
|
+
function xn({ theme: e, ...s }) {
|
|
5680
5710
|
return /* @__PURE__ */ t.jsx(
|
|
5681
5711
|
Ts,
|
|
5682
5712
|
{
|
|
@@ -5705,7 +5735,7 @@ function gn({ theme: e, ...s }) {
|
|
|
5705
5735
|
}
|
|
5706
5736
|
);
|
|
5707
5737
|
}
|
|
5708
|
-
function
|
|
5738
|
+
function Or({
|
|
5709
5739
|
children: e,
|
|
5710
5740
|
defaultColorScheme: s = "system",
|
|
5711
5741
|
persistTheme: o,
|
|
@@ -5713,12 +5743,12 @@ function _r({
|
|
|
5713
5743
|
...n
|
|
5714
5744
|
}) {
|
|
5715
5745
|
return /* @__PURE__ */ t.jsx(Te.Provider, { value: n, children: /* @__PURE__ */ t.jsx(fo, { defaultColorScheme: s, children: /* @__PURE__ */ t.jsx(
|
|
5716
|
-
|
|
5746
|
+
pn,
|
|
5717
5747
|
{
|
|
5718
5748
|
defaultTheme: a,
|
|
5719
5749
|
persistTheme: o,
|
|
5720
5750
|
children: /* @__PURE__ */ t.jsxs(et.Provider, { delayDuration: 400, children: [
|
|
5721
|
-
/* @__PURE__ */ t.jsx(
|
|
5751
|
+
/* @__PURE__ */ t.jsx(xn, {}),
|
|
5722
5752
|
e
|
|
5723
5753
|
] })
|
|
5724
5754
|
}
|
|
@@ -5739,7 +5769,7 @@ const Ke = k({
|
|
|
5739
5769
|
}
|
|
5740
5770
|
}
|
|
5741
5771
|
}
|
|
5742
|
-
}),
|
|
5772
|
+
}), hn = k({
|
|
5743
5773
|
defaultVariants: {
|
|
5744
5774
|
variant: "vertical"
|
|
5745
5775
|
},
|
|
@@ -5758,7 +5788,7 @@ const Ke = k({
|
|
|
5758
5788
|
}
|
|
5759
5789
|
}
|
|
5760
5790
|
});
|
|
5761
|
-
function
|
|
5791
|
+
function bn({
|
|
5762
5792
|
item: e,
|
|
5763
5793
|
groupDisabled: s,
|
|
5764
5794
|
bordered: o
|
|
@@ -5803,7 +5833,7 @@ function xn({
|
|
|
5803
5833
|
}
|
|
5804
5834
|
) : /* @__PURE__ */ t.jsx("div", { className: i(), children: m });
|
|
5805
5835
|
}
|
|
5806
|
-
function
|
|
5836
|
+
function vn({
|
|
5807
5837
|
label: e,
|
|
5808
5838
|
description: s,
|
|
5809
5839
|
value: o,
|
|
@@ -5861,7 +5891,7 @@ function hn({
|
|
|
5861
5891
|
}
|
|
5862
5892
|
);
|
|
5863
5893
|
}
|
|
5864
|
-
function
|
|
5894
|
+
function jn({
|
|
5865
5895
|
items: e,
|
|
5866
5896
|
variant: s,
|
|
5867
5897
|
value: o,
|
|
@@ -5870,7 +5900,7 @@ function bn({
|
|
|
5870
5900
|
bordered: r,
|
|
5871
5901
|
onChange: i
|
|
5872
5902
|
}) {
|
|
5873
|
-
const { root: d, item: c } =
|
|
5903
|
+
const { root: d, item: c } = hn({
|
|
5874
5904
|
variant: s
|
|
5875
5905
|
});
|
|
5876
5906
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -5886,7 +5916,7 @@ function bn({
|
|
|
5886
5916
|
{
|
|
5887
5917
|
className: c(),
|
|
5888
5918
|
children: /* @__PURE__ */ t.jsx(
|
|
5889
|
-
|
|
5919
|
+
bn,
|
|
5890
5920
|
{
|
|
5891
5921
|
bordered: r,
|
|
5892
5922
|
groupDisabled: n,
|
|
@@ -5899,8 +5929,8 @@ function bn({
|
|
|
5899
5929
|
}
|
|
5900
5930
|
);
|
|
5901
5931
|
}
|
|
5902
|
-
const
|
|
5903
|
-
Group:
|
|
5932
|
+
const Lr = Object.assign(vn, {
|
|
5933
|
+
Group: jn
|
|
5904
5934
|
}), Xe = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
5905
5935
|
q,
|
|
5906
5936
|
{
|
|
@@ -5968,7 +5998,7 @@ const Zt = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
|
5968
5998
|
}
|
|
5969
5999
|
));
|
|
5970
6000
|
Zt.displayName = q.Group.displayName;
|
|
5971
|
-
const
|
|
6001
|
+
const Nn = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
5972
6002
|
q.Separator,
|
|
5973
6003
|
{
|
|
5974
6004
|
className: l("t:-t-mx-1 t:h-px t:bg-border", e),
|
|
@@ -5976,7 +6006,7 @@ const vn = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
|
5976
6006
|
...s
|
|
5977
6007
|
}
|
|
5978
6008
|
));
|
|
5979
|
-
|
|
6009
|
+
Nn.displayName = q.Separator.displayName;
|
|
5980
6010
|
const ie = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
5981
6011
|
q.Item,
|
|
5982
6012
|
{
|
|
@@ -5989,7 +6019,7 @@ const ie = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
|
5989
6019
|
}
|
|
5990
6020
|
));
|
|
5991
6021
|
ie.displayName = q.Item.displayName;
|
|
5992
|
-
function
|
|
6022
|
+
function yn(e, s) {
|
|
5993
6023
|
if (e.length !== s.length)
|
|
5994
6024
|
return !1;
|
|
5995
6025
|
for (let o = 0; o < e.length; o++)
|
|
@@ -6016,7 +6046,7 @@ const Ne = 2, ce = k({
|
|
|
6016
6046
|
}
|
|
6017
6047
|
}
|
|
6018
6048
|
}
|
|
6019
|
-
}),
|
|
6049
|
+
}), Cn = k({
|
|
6020
6050
|
base: [
|
|
6021
6051
|
"t:flex t:w-full t:items-center t:justify-between t:gap-2 t:rounded-md t:border t:border-input",
|
|
6022
6052
|
"t:bg-transparent t:px-3 t:text-sm t:shadow-sm t:ring-offset-background",
|
|
@@ -6078,7 +6108,7 @@ const Ne = 2, ce = k({
|
|
|
6078
6108
|
sm: ""
|
|
6079
6109
|
}
|
|
6080
6110
|
}
|
|
6081
|
-
}),
|
|
6111
|
+
}), wn = k({
|
|
6082
6112
|
base: "t:ml-2 t:size-4 t:shrink-0",
|
|
6083
6113
|
variants: {
|
|
6084
6114
|
selected: {
|
|
@@ -6086,10 +6116,10 @@ const Ne = 2, ce = k({
|
|
|
6086
6116
|
true: "t:opacity-100"
|
|
6087
6117
|
}
|
|
6088
6118
|
}
|
|
6089
|
-
}), pt = (e, s) => typeof s == "function" ? s(e) : e[s], Dt = (e, s) => typeof s == "function" ? s(e) : String(e[s] ?? ""),
|
|
6119
|
+
}), pt = (e, s) => typeof s == "function" ? s(e) : e[s], Dt = (e, s) => typeof s == "function" ? s(e) : String(e[s] ?? ""), kn = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "t:flex t:items-center t:justify-center t:py-2", children: [
|
|
6090
6120
|
/* @__PURE__ */ t.jsx(Rt, { className: "t:size-4 t:animate-spin" }),
|
|
6091
6121
|
/* @__PURE__ */ t.jsx("span", { className: "t:ml-2 t:text-muted-foreground t:text-sm", children: e })
|
|
6092
|
-
] }),
|
|
6122
|
+
] }), Sn = (e, s) => {
|
|
6093
6123
|
if (!s)
|
|
6094
6124
|
return [
|
|
6095
6125
|
{
|
|
@@ -6108,7 +6138,7 @@ const Ne = 2, ce = k({
|
|
|
6108
6138
|
group: n,
|
|
6109
6139
|
options: o.get(n)
|
|
6110
6140
|
}));
|
|
6111
|
-
},
|
|
6141
|
+
}, Rn = ({
|
|
6112
6142
|
groups: e,
|
|
6113
6143
|
optionValue: s,
|
|
6114
6144
|
optionLabel: o,
|
|
@@ -6127,7 +6157,7 @@ const Ne = 2, ce = k({
|
|
|
6127
6157
|
},
|
|
6128
6158
|
i.group ?? d
|
|
6129
6159
|
)),
|
|
6130
|
-
n?.loadingMore && /* @__PURE__ */ t.jsx(Zt, { children: /* @__PURE__ */ t.jsx(
|
|
6160
|
+
n?.loadingMore && /* @__PURE__ */ t.jsx(Zt, { children: /* @__PURE__ */ t.jsx(kn, { children: r }) })
|
|
6131
6161
|
] }), ss = ({
|
|
6132
6162
|
mode: e,
|
|
6133
6163
|
options: s,
|
|
@@ -6159,7 +6189,7 @@ const Ne = 2, ce = k({
|
|
|
6159
6189
|
i,
|
|
6160
6190
|
p
|
|
6161
6191
|
]), F = xt(
|
|
6162
|
-
() =>
|
|
6192
|
+
() => Sn(I, n),
|
|
6163
6193
|
[
|
|
6164
6194
|
I,
|
|
6165
6195
|
n
|
|
@@ -6181,7 +6211,7 @@ const Ne = 2, ce = k({
|
|
|
6181
6211
|
"button",
|
|
6182
6212
|
{
|
|
6183
6213
|
"aria-expanded": j,
|
|
6184
|
-
className:
|
|
6214
|
+
className: Cn({
|
|
6185
6215
|
hasLeft: z,
|
|
6186
6216
|
hasRight: w,
|
|
6187
6217
|
mode: e,
|
|
@@ -6238,7 +6268,7 @@ const Ne = 2, ce = k({
|
|
|
6238
6268
|
/* @__PURE__ */ t.jsxs(ts, { onScroll: O, children: [
|
|
6239
6269
|
/* @__PURE__ */ t.jsx(es, { className: l(C?.classNames?.empty), children: r ?? L?.empty ?? "No results found" }),
|
|
6240
6270
|
/* @__PURE__ */ t.jsx(
|
|
6241
|
-
|
|
6271
|
+
Rn,
|
|
6242
6272
|
{
|
|
6243
6273
|
groups: F,
|
|
6244
6274
|
infinite: c,
|
|
@@ -6255,7 +6285,7 @@ const Ne = 2, ce = k({
|
|
|
6255
6285
|
]
|
|
6256
6286
|
}
|
|
6257
6287
|
) });
|
|
6258
|
-
},
|
|
6288
|
+
}, Tn = ({
|
|
6259
6289
|
placeholder: e,
|
|
6260
6290
|
options: s = [],
|
|
6261
6291
|
optionLabel: o,
|
|
@@ -6339,7 +6369,7 @@ const Ne = 2, ce = k({
|
|
|
6339
6369
|
/* @__PURE__ */ t.jsx(
|
|
6340
6370
|
Kt,
|
|
6341
6371
|
{
|
|
6342
|
-
className:
|
|
6372
|
+
className: wn({
|
|
6343
6373
|
selected: _
|
|
6344
6374
|
})
|
|
6345
6375
|
}
|
|
@@ -6358,7 +6388,7 @@ const Ne = 2, ce = k({
|
|
|
6358
6388
|
size: z
|
|
6359
6389
|
}
|
|
6360
6390
|
);
|
|
6361
|
-
},
|
|
6391
|
+
}, zn = ({
|
|
6362
6392
|
placeholder: e,
|
|
6363
6393
|
options: s = [],
|
|
6364
6394
|
optionLabel: o,
|
|
@@ -6407,7 +6437,7 @@ const Ne = 2, ce = k({
|
|
|
6407
6437
|
K - H - B < 50 && f.onLoadMore?.();
|
|
6408
6438
|
};
|
|
6409
6439
|
ct(() => {
|
|
6410
|
-
r !== void 0 && !
|
|
6440
|
+
r !== void 0 && !yn(r, S) && D(r);
|
|
6411
6441
|
}, [
|
|
6412
6442
|
r
|
|
6413
6443
|
]);
|
|
@@ -6483,7 +6513,7 @@ const Ne = 2, ce = k({
|
|
|
6483
6513
|
size: z
|
|
6484
6514
|
}
|
|
6485
6515
|
);
|
|
6486
|
-
},
|
|
6516
|
+
}, $r = (e) => e.mode === "multiple" ? /* @__PURE__ */ t.jsx(zn, { ...e }) : /* @__PURE__ */ t.jsx(Tn, { ...e }), Pn = k({
|
|
6487
6517
|
defaultVariants: {
|
|
6488
6518
|
orientation: "horizontal"
|
|
6489
6519
|
},
|
|
@@ -6501,8 +6531,8 @@ const Ne = 2, ce = k({
|
|
|
6501
6531
|
}
|
|
6502
6532
|
}
|
|
6503
6533
|
});
|
|
6504
|
-
function
|
|
6505
|
-
const a = x()?.components?.separator, n = e ?? a?.defaultProps?.orientation ?? "horizontal", { root: r } =
|
|
6534
|
+
function Ar({ orientation: e, decorative: s = !0 }) {
|
|
6535
|
+
const a = x()?.components?.separator, n = e ?? a?.defaultProps?.orientation ?? "horizontal", { root: r } = Pn({
|
|
6506
6536
|
orientation: n
|
|
6507
6537
|
});
|
|
6508
6538
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -6553,7 +6583,7 @@ const vt = k({
|
|
|
6553
6583
|
}
|
|
6554
6584
|
}
|
|
6555
6585
|
});
|
|
6556
|
-
function
|
|
6586
|
+
function In({
|
|
6557
6587
|
open: e,
|
|
6558
6588
|
side: s = "right",
|
|
6559
6589
|
onChange: o,
|
|
@@ -6594,7 +6624,7 @@ function zn({
|
|
|
6594
6624
|
}
|
|
6595
6625
|
);
|
|
6596
6626
|
}
|
|
6597
|
-
function
|
|
6627
|
+
function _n({
|
|
6598
6628
|
bordered: e,
|
|
6599
6629
|
closable: s,
|
|
6600
6630
|
children: o
|
|
@@ -6607,21 +6637,21 @@ function Pn({
|
|
|
6607
6637
|
s && /* @__PURE__ */ t.jsx(Y.Close, { className: i(), children: /* @__PURE__ */ t.jsx(ut, { className: d() }) })
|
|
6608
6638
|
] });
|
|
6609
6639
|
}
|
|
6610
|
-
function
|
|
6640
|
+
function En({ children: e }) {
|
|
6611
6641
|
const o = x()?.components?.sheet?.body, { body: a } = vt();
|
|
6612
6642
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
6613
6643
|
}
|
|
6614
|
-
function
|
|
6644
|
+
function On({ bordered: e, children: s }) {
|
|
6615
6645
|
const a = x()?.components?.sheet?.footer, { footer: n } = vt({
|
|
6616
6646
|
bordered: e
|
|
6617
6647
|
});
|
|
6618
6648
|
return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root), children: s });
|
|
6619
6649
|
}
|
|
6620
|
-
function
|
|
6650
|
+
function Ln({ children: e }) {
|
|
6621
6651
|
const o = x()?.components?.sheet?.title, { title: a } = vt();
|
|
6622
6652
|
return /* @__PURE__ */ t.jsx(Y.Title, { className: l(a(), o?.classNames?.root), children: e });
|
|
6623
6653
|
}
|
|
6624
|
-
function
|
|
6654
|
+
function $n({ children: e }) {
|
|
6625
6655
|
const o = x()?.components?.sheet?.description, { description: a } = vt();
|
|
6626
6656
|
return /* @__PURE__ */ t.jsx(
|
|
6627
6657
|
Y.Description,
|
|
@@ -6631,27 +6661,27 @@ function On({ children: e }) {
|
|
|
6631
6661
|
}
|
|
6632
6662
|
);
|
|
6633
6663
|
}
|
|
6634
|
-
const
|
|
6635
|
-
Body:
|
|
6664
|
+
const Mr = Object.assign(In, {
|
|
6665
|
+
Body: En,
|
|
6636
6666
|
Close: Y.Close,
|
|
6637
|
-
Description:
|
|
6638
|
-
Footer:
|
|
6639
|
-
Header:
|
|
6640
|
-
Title:
|
|
6667
|
+
Description: $n,
|
|
6668
|
+
Footer: On,
|
|
6669
|
+
Header: _n,
|
|
6670
|
+
Title: Ln,
|
|
6641
6671
|
Trigger: Y.Trigger
|
|
6642
|
-
}),
|
|
6672
|
+
}), An = k({
|
|
6643
6673
|
slots: {
|
|
6644
6674
|
root: "t:block t:h-full t:w-full t:animate-pulse t:rounded-md t:bg-muted"
|
|
6645
6675
|
}
|
|
6646
6676
|
});
|
|
6647
|
-
function
|
|
6677
|
+
function Vr({
|
|
6648
6678
|
children: e,
|
|
6649
6679
|
className: s
|
|
6650
6680
|
}) {
|
|
6651
|
-
const a = x()?.components?.skeleton, { root: n } =
|
|
6681
|
+
const a = x()?.components?.skeleton, { root: n } = An();
|
|
6652
6682
|
return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root, s), children: e });
|
|
6653
6683
|
}
|
|
6654
|
-
const
|
|
6684
|
+
const Mn = k({
|
|
6655
6685
|
compoundVariants: [
|
|
6656
6686
|
{
|
|
6657
6687
|
class: {
|
|
@@ -6732,8 +6762,8 @@ const $n = k({
|
|
|
6732
6762
|
}
|
|
6733
6763
|
}
|
|
6734
6764
|
});
|
|
6735
|
-
function
|
|
6736
|
-
const { orientation: s, size: o } = e, { root: a, track: n, range: r, thumb: i } =
|
|
6765
|
+
function Dr(e) {
|
|
6766
|
+
const { orientation: s, size: o } = e, { root: a, track: n, range: r, thumb: i } = Mn({
|
|
6737
6767
|
orientation: s,
|
|
6738
6768
|
size: o
|
|
6739
6769
|
});
|
|
@@ -6777,7 +6807,7 @@ function Mr(e) {
|
|
|
6777
6807
|
}
|
|
6778
6808
|
);
|
|
6779
6809
|
}
|
|
6780
|
-
const
|
|
6810
|
+
const Vn = k({
|
|
6781
6811
|
defaultVariants: {
|
|
6782
6812
|
size: "md"
|
|
6783
6813
|
},
|
|
@@ -6809,7 +6839,7 @@ const An = k({
|
|
|
6809
6839
|
}
|
|
6810
6840
|
}
|
|
6811
6841
|
});
|
|
6812
|
-
function
|
|
6842
|
+
function Fr({
|
|
6813
6843
|
label: e,
|
|
6814
6844
|
value: s,
|
|
6815
6845
|
size: o,
|
|
@@ -6825,7 +6855,7 @@ function Vr({
|
|
|
6825
6855
|
thumb: g,
|
|
6826
6856
|
wrapper: b,
|
|
6827
6857
|
description: h
|
|
6828
|
-
} =
|
|
6858
|
+
} = Vn({
|
|
6829
6859
|
bordered: d,
|
|
6830
6860
|
size: o
|
|
6831
6861
|
}), j = typeof e == "string" ? e : e?.content, v = typeof e == "object" && e !== null ? e.required : !1, p = typeof e == "object" && e !== null ? e.optional : !1, N = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -6906,10 +6936,10 @@ const It = k({
|
|
|
6906
6936
|
}
|
|
6907
6937
|
}
|
|
6908
6938
|
});
|
|
6909
|
-
function
|
|
6939
|
+
function Dn({ columnKey: e, sort: s }) {
|
|
6910
6940
|
return !s || s !== e && s !== `-${e}` ? /* @__PURE__ */ t.jsx(ps, { className: "t:ml-1 t:inline-block t:h-3 t:w-3" }) : s === e ? /* @__PURE__ */ t.jsx(xs, { className: "t:ml-1 t:inline-block t:h-3 t:w-3" }) : /* @__PURE__ */ t.jsx(hs, { className: "t:ml-1 t:inline-block t:h-3 t:w-3" });
|
|
6911
6941
|
}
|
|
6912
|
-
function
|
|
6942
|
+
function Br({
|
|
6913
6943
|
columns: e,
|
|
6914
6944
|
items: s = [],
|
|
6915
6945
|
itemKey: o,
|
|
@@ -6964,7 +6994,7 @@ function Dr({
|
|
|
6964
6994
|
}
|
|
6965
6995
|
return /* @__PURE__ */ t.jsxs("div", { className: "t:space-y-2", children: [
|
|
6966
6996
|
/* @__PURE__ */ t.jsxs("div", { className: l(P(), R?.classNames?.root), children: [
|
|
6967
|
-
/* @__PURE__ */ t.jsx(
|
|
6997
|
+
/* @__PURE__ */ t.jsx(Ia, { visible: m }),
|
|
6968
6998
|
/* @__PURE__ */ t.jsxs("table", { className: C(), children: [
|
|
6969
6999
|
/* @__PURE__ */ t.jsx("thead", { className: l(L(), R?.classNames?.header), children: /* @__PURE__ */ t.jsxs("tr", { children: [
|
|
6970
7000
|
D && /* @__PURE__ */ t.jsx(
|
|
@@ -7002,7 +7032,7 @@ function Dr({
|
|
|
7002
7032
|
children: [
|
|
7003
7033
|
u.label,
|
|
7004
7034
|
u.sorter && /* @__PURE__ */ t.jsx(
|
|
7005
|
-
|
|
7035
|
+
Dn,
|
|
7006
7036
|
{
|
|
7007
7037
|
columnKey: u.key,
|
|
7008
7038
|
sort: d
|
|
@@ -7072,7 +7102,7 @@ function Dr({
|
|
|
7072
7102
|
}) })
|
|
7073
7103
|
] })
|
|
7074
7104
|
] }),
|
|
7075
|
-
!c && i && /* @__PURE__ */ t.jsx(
|
|
7105
|
+
!c && i && /* @__PURE__ */ t.jsx(Ka, { ...i })
|
|
7076
7106
|
] });
|
|
7077
7107
|
}
|
|
7078
7108
|
const Ft = k({
|
|
@@ -7090,7 +7120,7 @@ const Ft = k({
|
|
|
7090
7120
|
}
|
|
7091
7121
|
}
|
|
7092
7122
|
});
|
|
7093
|
-
function
|
|
7123
|
+
function Fn({
|
|
7094
7124
|
children: e,
|
|
7095
7125
|
onChange: s,
|
|
7096
7126
|
value: o,
|
|
@@ -7110,13 +7140,13 @@ function Vn({
|
|
|
7110
7140
|
}
|
|
7111
7141
|
);
|
|
7112
7142
|
}
|
|
7113
|
-
function
|
|
7143
|
+
function Bn({ children: e, justified: s }) {
|
|
7114
7144
|
const a = x()?.components?.tabs?.list, { list: n } = Ft({
|
|
7115
7145
|
justified: s
|
|
7116
7146
|
});
|
|
7117
7147
|
return /* @__PURE__ */ t.jsx($t.List, { className: l(n(), a?.classNames?.root), children: e });
|
|
7118
7148
|
}
|
|
7119
|
-
function
|
|
7149
|
+
function Hn({ value: e, children: s }) {
|
|
7120
7150
|
const a = x()?.components?.tabs?.trigger, { trigger: n } = Ft();
|
|
7121
7151
|
return /* @__PURE__ */ t.jsx(
|
|
7122
7152
|
$t.Trigger,
|
|
@@ -7127,7 +7157,7 @@ function Fn({ value: e, children: s }) {
|
|
|
7127
7157
|
}
|
|
7128
7158
|
);
|
|
7129
7159
|
}
|
|
7130
|
-
function
|
|
7160
|
+
function Gn({ value: e, children: s }) {
|
|
7131
7161
|
const a = x()?.components?.tabs?.content, { content: n } = Ft();
|
|
7132
7162
|
return /* @__PURE__ */ t.jsx(
|
|
7133
7163
|
$t.Content,
|
|
@@ -7138,18 +7168,18 @@ function Bn({ value: e, children: s }) {
|
|
|
7138
7168
|
}
|
|
7139
7169
|
);
|
|
7140
7170
|
}
|
|
7141
|
-
const
|
|
7142
|
-
Content:
|
|
7143
|
-
List:
|
|
7144
|
-
Trigger:
|
|
7145
|
-
}),
|
|
7171
|
+
const Hr = Object.assign(Fn, {
|
|
7172
|
+
Content: Gn,
|
|
7173
|
+
List: Bn,
|
|
7174
|
+
Trigger: Hn
|
|
7175
|
+
}), Un = k({
|
|
7146
7176
|
slots: {
|
|
7147
7177
|
input: "",
|
|
7148
7178
|
root: "t:space-y-2",
|
|
7149
7179
|
tag: "t:flex t:items-center t:gap-1",
|
|
7150
7180
|
tagRemove: "t:flex t:items-center"
|
|
7151
7181
|
}
|
|
7152
|
-
}),
|
|
7182
|
+
}), Gr = J(
|
|
7153
7183
|
({
|
|
7154
7184
|
value: e,
|
|
7155
7185
|
defaultValue: s,
|
|
@@ -7191,7 +7221,7 @@ const Fr = Object.assign(Vn, {
|
|
|
7191
7221
|
}, [
|
|
7192
7222
|
e
|
|
7193
7223
|
]);
|
|
7194
|
-
const { root: P, tag: C, tagRemove: L } =
|
|
7224
|
+
const { root: P, tag: C, tagRemove: L } = Un();
|
|
7195
7225
|
return /* @__PURE__ */ t.jsxs("div", { className: l(P(), g?.classNames?.root), children: [
|
|
7196
7226
|
j.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "t:flex t:flex-wrap t:gap-2", children: j.map((z, w) => /* @__PURE__ */ t.jsx(
|
|
7197
7227
|
Ut,
|
|
@@ -7228,7 +7258,7 @@ const Fr = Object.assign(Vn, {
|
|
|
7228
7258
|
)
|
|
7229
7259
|
] });
|
|
7230
7260
|
}
|
|
7231
|
-
),
|
|
7261
|
+
), Yn = k({
|
|
7232
7262
|
slots: {
|
|
7233
7263
|
counter: "t:pointer-events-none t:absolute t:right-3 t:bottom-2 t:select-none t:text-muted-foreground t:text-xs",
|
|
7234
7264
|
textarea: "t:h-auto t:resize-none t:overflow-hidden t:py-2"
|
|
@@ -7240,7 +7270,7 @@ const Fr = Object.assign(Vn, {
|
|
|
7240
7270
|
}
|
|
7241
7271
|
}
|
|
7242
7272
|
}
|
|
7243
|
-
}),
|
|
7273
|
+
}), Ur = J(
|
|
7244
7274
|
({
|
|
7245
7275
|
className: e,
|
|
7246
7276
|
rootClassName: s,
|
|
@@ -7264,7 +7294,7 @@ const Fr = Object.assign(Vn, {
|
|
|
7264
7294
|
hasLeft: p,
|
|
7265
7295
|
hasRight: N,
|
|
7266
7296
|
size: v
|
|
7267
|
-
}), { counter: C, textarea: L } =
|
|
7297
|
+
}), { counter: C, textarea: L } = Yn({
|
|
7268
7298
|
hasCounter: !!m
|
|
7269
7299
|
}), [z, w] = E(a ?? ""), I = o !== void 0, F = I ? (o ?? "").length : z.length;
|
|
7270
7300
|
function A(S) {
|
|
@@ -7307,11 +7337,11 @@ const Fr = Object.assign(Vn, {
|
|
|
7307
7337
|
);
|
|
7308
7338
|
}
|
|
7309
7339
|
);
|
|
7310
|
-
function
|
|
7340
|
+
function Yr(e) {
|
|
7311
7341
|
const s = JSON.stringify(qe), o = JSON.stringify(Ze), a = JSON.stringify(e ?? {}), n = JSON.stringify(le);
|
|
7312
7342
|
return `(function(){try{var F=${s};var R=${o};var d=${a};var s=localStorage.getItem(${n});var t=s?JSON.parse(s):{};var m=Object.assign({},d,t);var root=document.documentElement;if(m.font)root.style.setProperty("--font-sans",F[m.font]);if(m.radius)root.style.setProperty("--t-radius",R[m.radius])}catch(e){}})();`;
|
|
7313
7343
|
}
|
|
7314
|
-
const
|
|
7344
|
+
const Wn = k({
|
|
7315
7345
|
base: "",
|
|
7316
7346
|
defaultVariants: {
|
|
7317
7347
|
variant: "default"
|
|
@@ -7352,7 +7382,7 @@ const Un = k({
|
|
|
7352
7382
|
}
|
|
7353
7383
|
}
|
|
7354
7384
|
});
|
|
7355
|
-
function
|
|
7385
|
+
function Wr({
|
|
7356
7386
|
component: e,
|
|
7357
7387
|
size: s,
|
|
7358
7388
|
variant: o,
|
|
@@ -7364,7 +7394,7 @@ function Ur({
|
|
|
7364
7394
|
return /* @__PURE__ */ t.jsx(
|
|
7365
7395
|
i,
|
|
7366
7396
|
{
|
|
7367
|
-
className:
|
|
7397
|
+
className: Wn({
|
|
7368
7398
|
size: s,
|
|
7369
7399
|
truncate: n,
|
|
7370
7400
|
variant: o,
|
|
@@ -7374,7 +7404,7 @@ function Ur({
|
|
|
7374
7404
|
}
|
|
7375
7405
|
);
|
|
7376
7406
|
}
|
|
7377
|
-
const
|
|
7407
|
+
const Jn = k({
|
|
7378
7408
|
slots: {
|
|
7379
7409
|
fileItem: "t:flex t:items-center t:justify-between t:gap-3 t:rounded-md t:border t:px-3 t:py-2 t:text-sm",
|
|
7380
7410
|
fileList: "t:mt-3 t:space-y-2",
|
|
@@ -7398,7 +7428,7 @@ const Yn = k({
|
|
|
7398
7428
|
}
|
|
7399
7429
|
}
|
|
7400
7430
|
});
|
|
7401
|
-
function
|
|
7431
|
+
function Jr({
|
|
7402
7432
|
accept: e,
|
|
7403
7433
|
maxFiles: s,
|
|
7404
7434
|
maxFileSize: o,
|
|
@@ -7406,7 +7436,7 @@ function Yr({
|
|
|
7406
7436
|
handler: n,
|
|
7407
7437
|
onUpload: r
|
|
7408
7438
|
}) {
|
|
7409
|
-
const d = x()?.translations?.uploader, [c, m] = E([]), [f, g] = E(!1), b = wt(null), { root: h, icon: j, fileList: v, fileItem: p, fileName: N, progress: y, progressBar: R } =
|
|
7439
|
+
const d = x()?.translations?.uploader, [c, m] = E([]), [f, g] = E(!1), b = wt(null), { root: h, icon: j, fileList: v, fileItem: p, fileName: N, progress: y, progressBar: R } = Jn({
|
|
7410
7440
|
disabled: !!a,
|
|
7411
7441
|
dragging: f
|
|
7412
7442
|
});
|
|
@@ -7568,76 +7598,76 @@ function Yr({
|
|
|
7568
7598
|
] });
|
|
7569
7599
|
}
|
|
7570
7600
|
export {
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7601
|
+
lr as Accordion,
|
|
7602
|
+
ir as Alert,
|
|
7603
|
+
cr as Avatar,
|
|
7574
7604
|
Ut as Badge,
|
|
7575
|
-
|
|
7576
|
-
|
|
7605
|
+
dr as Box,
|
|
7606
|
+
ur as Breadcrumb,
|
|
7577
7607
|
X as Button,
|
|
7578
|
-
|
|
7608
|
+
mr as Card,
|
|
7579
7609
|
Wt as Checkbox,
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7610
|
+
gr as Confirm,
|
|
7611
|
+
pr as Container,
|
|
7612
|
+
hr as CurrencyInput,
|
|
7613
|
+
br as DateInput,
|
|
7614
|
+
vr as DateRangeInput,
|
|
7615
|
+
jr as DocumentInput,
|
|
7616
|
+
Nr as DropdownMenu,
|
|
7617
|
+
yr as Flex,
|
|
7618
|
+
Cr as Form,
|
|
7619
|
+
wr as Grid,
|
|
7590
7620
|
Me as HeaderCenter,
|
|
7591
7621
|
Ae as HeaderLeft,
|
|
7592
7622
|
Ve as HeaderRight,
|
|
7593
7623
|
dt as Input,
|
|
7594
7624
|
ne as Label,
|
|
7595
|
-
|
|
7625
|
+
kr as Layout,
|
|
7596
7626
|
ta as LayoutContent,
|
|
7597
7627
|
oa as LayoutFooter,
|
|
7598
7628
|
ra as LayoutHeader,
|
|
7599
7629
|
ia as LayoutMain,
|
|
7600
|
-
|
|
7601
|
-
|
|
7630
|
+
ha as LayoutNav,
|
|
7631
|
+
Ra as LayoutSidebar,
|
|
7602
7632
|
ee as Loader,
|
|
7603
|
-
|
|
7633
|
+
Ia as LoadingOverlay,
|
|
7604
7634
|
qt as MaskInput,
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7635
|
+
Sr as Modal,
|
|
7636
|
+
Rr as NumberInput,
|
|
7637
|
+
Tr as OTPInput,
|
|
7638
|
+
Ka as Pagination,
|
|
7639
|
+
zr as PasswordInput,
|
|
7640
|
+
Pr as PhoneInput,
|
|
7641
|
+
Ir as Popover,
|
|
7642
|
+
_r as Progress,
|
|
7643
|
+
Or as Provider,
|
|
7644
|
+
Lr as Radio,
|
|
7645
|
+
$r as Select,
|
|
7646
|
+
Ar as Separator,
|
|
7647
|
+
Mr as Sheet,
|
|
7618
7648
|
Be as SidebarBody,
|
|
7619
7649
|
He as SidebarFooter,
|
|
7620
7650
|
Fe as SidebarHeader,
|
|
7621
7651
|
Ge as SidebarTrigger,
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7652
|
+
Vr as Skeleton,
|
|
7653
|
+
Dr as Slider,
|
|
7654
|
+
Fr as Switch,
|
|
7655
|
+
Br as Table,
|
|
7656
|
+
Hr as Tabs,
|
|
7657
|
+
Gr as TagsInput,
|
|
7658
|
+
Ur as Textarea,
|
|
7659
|
+
xn as ToastContainer,
|
|
7630
7660
|
ae as Tooltip,
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7661
|
+
Wr as Typography,
|
|
7662
|
+
Jr as Uploader,
|
|
7663
|
+
fn as applyTheme,
|
|
7664
|
+
Yr as getThemeScript,
|
|
7665
|
+
mn as resolveTheme,
|
|
7636
7666
|
Yt as styles,
|
|
7637
|
-
|
|
7638
|
-
|
|
7667
|
+
Kr as toast,
|
|
7668
|
+
fr as useColorScheme,
|
|
7639
7669
|
xo as useDebounceFn,
|
|
7640
|
-
|
|
7670
|
+
xr as useIsMobile,
|
|
7641
7671
|
Vt as useSidebar,
|
|
7642
|
-
|
|
7672
|
+
Er as useTheme
|
|
7643
7673
|
};
|