florixui 1.15.2 → 1.15.4
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.js
CHANGED
|
@@ -2,10 +2,10 @@ import { clsx as e } from "clsx";
|
|
|
2
2
|
import { twMerge as t } from "tailwind-merge";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { createContext as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s, useId as c, useImperativeHandle as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
5
|
-
import { AlertCircleIcon as p, AlertTriangle as m, ArrowLeftIcon as h, Calendar as g, Check as _, CheckIcon as v, ChevronDown as y, ChevronDownIcon as b, ChevronLeftIcon as x, ChevronRightIcon as S, ChevronUpIcon as C, ChevronsLeftIcon as w, ChevronsRightIcon as T, CircleCheckIcon as E, CircleDotIcon as D, CircleXIcon as O, Clock as k, Eye as A, EyeOff as
|
|
6
|
-
import { cva as
|
|
7
|
-
import { AlertDialog as
|
|
8
|
-
import { Fragment as
|
|
5
|
+
import { AlertCircleIcon as p, AlertTriangle as m, ArrowLeftIcon as h, Calendar as g, Check as _, CheckIcon as v, ChevronDown as y, ChevronDownIcon as b, ChevronLeftIcon as x, ChevronRightIcon as S, ChevronUpIcon as C, ChevronsLeftIcon as w, ChevronsRightIcon as T, CircleCheckIcon as E, CircleDotIcon as D, CircleXIcon as O, Clock as k, Eye as A, EyeOff as ee, FileArchiveIcon as j, FileIcon as M, FileSpreadsheetIcon as N, FileTextIcon as P, HeadphonesIcon as F, HomeIcon as te, ImageIcon as I, ImageUpIcon as L, InboxIcon as R, InfoIcon as z, Layers as B, Loader2 as ne, Loader2Icon as V, LoaderCircleIcon as re, Locate as H, Maximize as U, Minus as ie, MoreVertical as W, OctagonXIcon as ae, PaintBucketIcon as oe, Plus as se, PlusCircleIcon as ce, PlusIcon as le, RefreshCwIcon as ue, SearchIcon as de, Trash2Icon as fe, TrendingDownIcon as pe, TrendingUpIcon as me, TriangleAlertIcon as he, UploadIcon as ge, VideoIcon as _e, X as ve, XIcon as G } from "lucide-react";
|
|
6
|
+
import { cva as K } from "class-variance-authority";
|
|
7
|
+
import { AlertDialog as ye, Checkbox as be, Dialog as q, DropdownMenu as J, HoverCard as xe, Label as Se, Popover as Ce, Progress as we, RadioGroup as Te, Select as Y, Separator as Ee, Slider as De, Slot as Oe, Switch as ke, Tabs as Ae, Toggle as je, ToggleGroup as Me, Tooltip as Ne } from "radix-ui";
|
|
8
|
+
import { Fragment as Pe, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
9
9
|
import { Command as Fe } from "cmdk";
|
|
10
10
|
import * as Ie from "recharts";
|
|
11
11
|
import { Area as Le, AreaChart as Re, ResponsiveContainer as ze } from "recharts";
|
|
@@ -200,7 +200,7 @@ function Je({ className: e, ...t }) {
|
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
202
|
//#region src/components/ui/button.tsx
|
|
203
|
-
var Ye =
|
|
203
|
+
var Ye = K("group/button inline-flex shrink-0 items-center justify-center rounded-sm border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
204
204
|
variants: {
|
|
205
205
|
variant: {
|
|
206
206
|
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
@@ -227,7 +227,7 @@ var Ye = G("group/button inline-flex shrink-0 items-center justify-center rounde
|
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
function $({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, loading: i = !1, startItem: a, endItem: o, disabled: s, children: c, ...l }) {
|
|
230
|
-
let u = r ?
|
|
230
|
+
let u = r ? Oe.Root : "button", d = r ? c : /* @__PURE__ */ Z(Pe, { children: [
|
|
231
231
|
i ? /* @__PURE__ */ X(Je, {}) : a,
|
|
232
232
|
c,
|
|
233
233
|
o
|
|
@@ -252,25 +252,25 @@ function $({ className: e, variant: t = "default", size: n = "default", asChild:
|
|
|
252
252
|
//#endregion
|
|
253
253
|
//#region src/components/ui/dropdown-menu.tsx
|
|
254
254
|
function Xe({ ...e }) {
|
|
255
|
-
return /* @__PURE__ */ X(
|
|
255
|
+
return /* @__PURE__ */ X(J.Root, {
|
|
256
256
|
"data-slot": "dropdown-menu",
|
|
257
257
|
...e
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
260
|
function Ze({ ...e }) {
|
|
261
|
-
return /* @__PURE__ */ X(
|
|
261
|
+
return /* @__PURE__ */ X(J.Portal, {
|
|
262
262
|
"data-slot": "dropdown-menu-portal",
|
|
263
263
|
...e
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
function Qe({ ...e }) {
|
|
267
|
-
return /* @__PURE__ */ X(
|
|
267
|
+
return /* @__PURE__ */ X(J.Trigger, {
|
|
268
268
|
"data-slot": "dropdown-menu-trigger",
|
|
269
269
|
...e
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
function $e({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
|
|
273
|
-
return /* @__PURE__ */ X(
|
|
273
|
+
return /* @__PURE__ */ X(J.Portal, { children: /* @__PURE__ */ X(J.Content, {
|
|
274
274
|
"data-slot": "dropdown-menu-content",
|
|
275
275
|
sideOffset: n,
|
|
276
276
|
align: t,
|
|
@@ -279,13 +279,13 @@ function $e({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
|
|
|
279
279
|
}) });
|
|
280
280
|
}
|
|
281
281
|
function et({ ...e }) {
|
|
282
|
-
return /* @__PURE__ */ X(
|
|
282
|
+
return /* @__PURE__ */ X(J.Group, {
|
|
283
283
|
"data-slot": "dropdown-menu-group",
|
|
284
284
|
...e
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
function tt({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
288
|
-
return /* @__PURE__ */ X(
|
|
288
|
+
return /* @__PURE__ */ X(J.Item, {
|
|
289
289
|
"data-slot": "dropdown-menu-item",
|
|
290
290
|
"data-inset": t,
|
|
291
291
|
"data-variant": n,
|
|
@@ -294,7 +294,7 @@ function tt({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
296
|
function nt({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
297
|
-
return /* @__PURE__ */ Z(
|
|
297
|
+
return /* @__PURE__ */ Z(J.CheckboxItem, {
|
|
298
298
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
299
299
|
"data-inset": r,
|
|
300
300
|
className: Q("relative flex cursor-default items-center gap-1.5 rounded-sm py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -303,18 +303,18 @@ function nt({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
303
303
|
children: [/* @__PURE__ */ X("span", {
|
|
304
304
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
305
305
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
306
|
-
children: /* @__PURE__ */ X(
|
|
306
|
+
children: /* @__PURE__ */ X(J.ItemIndicator, { children: /* @__PURE__ */ X(v, {}) })
|
|
307
307
|
}), t]
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
function rt({ ...e }) {
|
|
311
|
-
return /* @__PURE__ */ X(
|
|
311
|
+
return /* @__PURE__ */ X(J.RadioGroup, {
|
|
312
312
|
"data-slot": "dropdown-menu-radio-group",
|
|
313
313
|
...e
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
function it({ className: e, children: t, inset: n, ...r }) {
|
|
317
|
-
return /* @__PURE__ */ Z(
|
|
317
|
+
return /* @__PURE__ */ Z(J.RadioItem, {
|
|
318
318
|
"data-slot": "dropdown-menu-radio-item",
|
|
319
319
|
"data-inset": n,
|
|
320
320
|
className: Q("relative flex cursor-default items-center gap-1.5 rounded-sm py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -322,12 +322,12 @@ function it({ className: e, children: t, inset: n, ...r }) {
|
|
|
322
322
|
children: [/* @__PURE__ */ X("span", {
|
|
323
323
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
324
324
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
325
|
-
children: /* @__PURE__ */ X(
|
|
325
|
+
children: /* @__PURE__ */ X(J.ItemIndicator, { children: /* @__PURE__ */ X(v, {}) })
|
|
326
326
|
}), t]
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
function at({ className: e, inset: t, ...n }) {
|
|
330
|
-
return /* @__PURE__ */ X(
|
|
330
|
+
return /* @__PURE__ */ X(J.Label, {
|
|
331
331
|
"data-slot": "dropdown-menu-label",
|
|
332
332
|
"data-inset": t,
|
|
333
333
|
className: Q("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7", e),
|
|
@@ -335,7 +335,7 @@ function at({ className: e, inset: t, ...n }) {
|
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
337
|
function ot({ className: e, ...t }) {
|
|
338
|
-
return /* @__PURE__ */ X(
|
|
338
|
+
return /* @__PURE__ */ X(J.Separator, {
|
|
339
339
|
"data-slot": "dropdown-menu-separator",
|
|
340
340
|
className: Q("-mx-1 my-1 h-px bg-border", e),
|
|
341
341
|
...t
|
|
@@ -349,13 +349,13 @@ function st({ className: e, ...t }) {
|
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
function ct({ ...e }) {
|
|
352
|
-
return /* @__PURE__ */ X(
|
|
352
|
+
return /* @__PURE__ */ X(J.Sub, {
|
|
353
353
|
"data-slot": "dropdown-menu-sub",
|
|
354
354
|
...e
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
357
|
function lt({ className: e, inset: t, children: n, ...r }) {
|
|
358
|
-
return /* @__PURE__ */ Z(
|
|
358
|
+
return /* @__PURE__ */ Z(J.SubTrigger, {
|
|
359
359
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
360
360
|
"data-inset": t,
|
|
361
361
|
className: Q("flex cursor-default items-center gap-1.5 rounded-sm px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -364,7 +364,7 @@ function lt({ className: e, inset: t, children: n, ...r }) {
|
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
366
|
function ut({ className: e, ...t }) {
|
|
367
|
-
return /* @__PURE__ */ X(
|
|
367
|
+
return /* @__PURE__ */ X(J.SubContent, {
|
|
368
368
|
"data-slot": "dropdown-menu-sub-content",
|
|
369
369
|
className: Q("z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-sm bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
370
370
|
...t
|
|
@@ -416,7 +416,7 @@ function pt({ items: e, trigger: t, triggerIcon: n = W, triggerLabel: r = "Open
|
|
|
416
416
|
}
|
|
417
417
|
//#endregion
|
|
418
418
|
//#region src/components/ui/badge.tsx
|
|
419
|
-
var mt =
|
|
419
|
+
var mt = K("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
420
420
|
variants: { variant: {
|
|
421
421
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
422
422
|
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
@@ -438,7 +438,7 @@ var mt = G("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-cent
|
|
|
438
438
|
defaultVariants: { variant: "default" }
|
|
439
439
|
});
|
|
440
440
|
function ht({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
441
|
-
return /* @__PURE__ */ X(n ?
|
|
441
|
+
return /* @__PURE__ */ X(n ? Oe.Root : "span", {
|
|
442
442
|
"data-slot": "badge",
|
|
443
443
|
"data-variant": t,
|
|
444
444
|
className: Q(mt({ variant: t }), e),
|
|
@@ -448,7 +448,7 @@ function ht({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
|
448
448
|
//#endregion
|
|
449
449
|
//#region src/components/ui/label.tsx
|
|
450
450
|
function gt({ className: e, ...t }) {
|
|
451
|
-
return /* @__PURE__ */ X(
|
|
451
|
+
return /* @__PURE__ */ X(Se.Root, {
|
|
452
452
|
"data-slot": "label",
|
|
453
453
|
className: Q("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
454
454
|
...t
|
|
@@ -457,7 +457,7 @@ function gt({ className: e, ...t }) {
|
|
|
457
457
|
//#endregion
|
|
458
458
|
//#region src/components/ui/separator.tsx
|
|
459
459
|
function _t({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
460
|
-
return /* @__PURE__ */ X(
|
|
460
|
+
return /* @__PURE__ */ X(Ee.Root, {
|
|
461
461
|
"data-slot": "separator",
|
|
462
462
|
decorative: n,
|
|
463
463
|
orientation: t,
|
|
@@ -489,7 +489,7 @@ function bt({ className: e, ...t }) {
|
|
|
489
489
|
...t
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
|
-
var xt =
|
|
492
|
+
var xt = K("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
|
|
493
493
|
variants: { orientation: {
|
|
494
494
|
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
495
495
|
horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
@@ -568,49 +568,49 @@ function Ot({ className: e, children: t, errors: n, ...r }) {
|
|
|
568
568
|
//#endregion
|
|
569
569
|
//#region src/components/ui/dialog.tsx
|
|
570
570
|
function kt({ ...e }) {
|
|
571
|
-
return /* @__PURE__ */ X(
|
|
571
|
+
return /* @__PURE__ */ X(q.Root, {
|
|
572
572
|
"data-slot": "dialog",
|
|
573
573
|
...e
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
function At({ ...e }) {
|
|
577
|
-
return /* @__PURE__ */ X(
|
|
577
|
+
return /* @__PURE__ */ X(q.Trigger, {
|
|
578
578
|
"data-slot": "dialog-trigger",
|
|
579
579
|
...e
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
function jt({ ...e }) {
|
|
583
|
-
return /* @__PURE__ */ X(
|
|
583
|
+
return /* @__PURE__ */ X(q.Portal, {
|
|
584
584
|
"data-slot": "dialog-portal",
|
|
585
585
|
...e
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
588
|
function Mt({ ...e }) {
|
|
589
|
-
return /* @__PURE__ */ X(
|
|
589
|
+
return /* @__PURE__ */ X(q.Close, {
|
|
590
590
|
"data-slot": "dialog-close",
|
|
591
591
|
...e
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
594
|
function Nt({ className: e, ...t }) {
|
|
595
|
-
return /* @__PURE__ */ X(
|
|
595
|
+
return /* @__PURE__ */ X(q.Overlay, {
|
|
596
596
|
"data-slot": "dialog-overlay",
|
|
597
597
|
className: Q("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
598
598
|
...t
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
function Pt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
602
|
-
return /* @__PURE__ */ Z(jt, { children: [/* @__PURE__ */ X(Nt, {}), /* @__PURE__ */ Z(
|
|
602
|
+
return /* @__PURE__ */ Z(jt, { children: [/* @__PURE__ */ X(Nt, {}), /* @__PURE__ */ Z(q.Content, {
|
|
603
603
|
"data-slot": "dialog-content",
|
|
604
604
|
className: Q("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-sm bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
605
605
|
...r,
|
|
606
|
-
children: [t, n && /* @__PURE__ */ X(
|
|
606
|
+
children: [t, n && /* @__PURE__ */ X(q.Close, {
|
|
607
607
|
"data-slot": "dialog-close",
|
|
608
608
|
asChild: !0,
|
|
609
609
|
children: /* @__PURE__ */ Z($, {
|
|
610
610
|
variant: "ghost",
|
|
611
611
|
className: "absolute top-2 right-2",
|
|
612
612
|
size: "icon-sm",
|
|
613
|
-
children: [/* @__PURE__ */ X(
|
|
613
|
+
children: [/* @__PURE__ */ X(G, {}), /* @__PURE__ */ X("span", {
|
|
614
614
|
className: "sr-only",
|
|
615
615
|
children: "Close"
|
|
616
616
|
})]
|
|
@@ -630,7 +630,7 @@ function It({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
|
630
630
|
"data-slot": "dialog-footer",
|
|
631
631
|
className: Q("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-sm border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
|
|
632
632
|
...r,
|
|
633
|
-
children: [n, t && /* @__PURE__ */ X(
|
|
633
|
+
children: [n, t && /* @__PURE__ */ X(q.Close, {
|
|
634
634
|
asChild: !0,
|
|
635
635
|
children: /* @__PURE__ */ X($, {
|
|
636
636
|
variant: "outline",
|
|
@@ -640,14 +640,14 @@ function It({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
function Lt({ className: e, ...t }) {
|
|
643
|
-
return /* @__PURE__ */ X(
|
|
643
|
+
return /* @__PURE__ */ X(q.Title, {
|
|
644
644
|
"data-slot": "dialog-title",
|
|
645
645
|
className: Q("text-base leading-none font-medium", e),
|
|
646
646
|
...t
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
649
|
function Rt({ className: e, ...t }) {
|
|
650
|
-
return /* @__PURE__ */ X(
|
|
650
|
+
return /* @__PURE__ */ X(q.Description, {
|
|
651
651
|
"data-slot": "dialog-description",
|
|
652
652
|
className: Q("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
653
653
|
...t
|
|
@@ -682,7 +682,7 @@ function Vt({ className: e, ...t }) {
|
|
|
682
682
|
...t
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
|
-
var Ht =
|
|
685
|
+
var Ht = K("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
686
686
|
variants: { align: {
|
|
687
687
|
"inline-start": "order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]",
|
|
688
688
|
"inline-end": "order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]",
|
|
@@ -703,7 +703,7 @@ function Ut({ className: e, align: t = "inline-start", ...n }) {
|
|
|
703
703
|
...n
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
|
-
var Wt =
|
|
706
|
+
var Wt = K("flex items-center gap-2 text-sm shadow-none", {
|
|
707
707
|
variants: { size: {
|
|
708
708
|
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
709
709
|
sm: "",
|
|
@@ -823,19 +823,19 @@ function rn({ className: e, ...t }) {
|
|
|
823
823
|
//#endregion
|
|
824
824
|
//#region src/components/ui/popover.tsx
|
|
825
825
|
function an({ ...e }) {
|
|
826
|
-
return /* @__PURE__ */ X(
|
|
826
|
+
return /* @__PURE__ */ X(Ce.Root, {
|
|
827
827
|
"data-slot": "popover",
|
|
828
828
|
...e
|
|
829
829
|
});
|
|
830
830
|
}
|
|
831
831
|
function on({ ...e }) {
|
|
832
|
-
return /* @__PURE__ */ X(
|
|
832
|
+
return /* @__PURE__ */ X(Ce.Trigger, {
|
|
833
833
|
"data-slot": "popover-trigger",
|
|
834
834
|
...e
|
|
835
835
|
});
|
|
836
836
|
}
|
|
837
837
|
function sn({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
838
|
-
return /* @__PURE__ */ X(
|
|
838
|
+
return /* @__PURE__ */ X(Ce.Portal, { children: /* @__PURE__ */ X(Ce.Content, {
|
|
839
839
|
"data-slot": "popover-content",
|
|
840
840
|
align: t,
|
|
841
841
|
sideOffset: n,
|
|
@@ -844,7 +844,7 @@ function sn({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
844
844
|
}) });
|
|
845
845
|
}
|
|
846
846
|
function cn({ ...e }) {
|
|
847
|
-
return /* @__PURE__ */ X(
|
|
847
|
+
return /* @__PURE__ */ X(Ce.Anchor, {
|
|
848
848
|
"data-slot": "popover-anchor",
|
|
849
849
|
...e
|
|
850
850
|
});
|
|
@@ -1150,11 +1150,11 @@ function pn({ error: e, errorMessage: t, helperText: n, errorId: r, helperId: i
|
|
|
1150
1150
|
}
|
|
1151
1151
|
var mn = n.forwardRef(function(e, t) {
|
|
1152
1152
|
if (e.as === "tags") return /* @__PURE__ */ X(gn, { ...e });
|
|
1153
|
-
let { className: r, wrapperClassName: i, label: a, description: o, errorMessage: s, helperText: c, required: l = !1, size: u = "default", variant: d = "default", leftIcon: f, rightIcon: p, disabled: m, startItem: h, endItem: g, loading: _ = !1, as: v = "input", id: y, error: b, ...x } = e, S = b ?? !!s, C = n.useId(), w = y || C, [T, E] = n.useState(!1), D = `${w}-error`, O = `${w}-helper`, k = `${w}-description`,
|
|
1153
|
+
let { className: r, wrapperClassName: i, label: a, description: o, errorMessage: s, helperText: c, required: l = !1, size: u = "default", variant: d = "default", leftIcon: f, rightIcon: p, disabled: m, startItem: h, endItem: g, loading: _ = !1, as: v = "input", id: y, error: b, ...x } = e, S = b ?? !!s, C = n.useId(), w = y || C, [T, E] = n.useState(!1), D = `${w}-error`, O = `${w}-helper`, k = `${w}-description`, j = [
|
|
1154
1154
|
S && s ? D : null,
|
|
1155
1155
|
!S && c ? O : null,
|
|
1156
1156
|
o ? k : null
|
|
1157
|
-
].filter(Boolean).join(" ") || void 0,
|
|
1157
|
+
].filter(Boolean).join(" ") || void 0, M = d === "alt" ? "bg-input-background-alt" : "bg-input-background", N = l ? /* @__PURE__ */ X("span", {
|
|
1158
1158
|
"aria-hidden": !0,
|
|
1159
1159
|
className: "ml-0.5 text-destructive",
|
|
1160
1160
|
children: "*"
|
|
@@ -1167,15 +1167,15 @@ var mn = n.forwardRef(function(e, t) {
|
|
|
1167
1167
|
a && /* @__PURE__ */ Z(wt, {
|
|
1168
1168
|
htmlFor: w,
|
|
1169
1169
|
className: Q(m && "text-muted-foreground"),
|
|
1170
|
-
children: [a,
|
|
1170
|
+
children: [a, N]
|
|
1171
1171
|
}),
|
|
1172
1172
|
/* @__PURE__ */ X("textarea", {
|
|
1173
1173
|
id: w,
|
|
1174
1174
|
ref: t,
|
|
1175
1175
|
disabled: m,
|
|
1176
1176
|
"aria-invalid": S,
|
|
1177
|
-
"aria-describedby":
|
|
1178
|
-
className: Q("flex min-h-20 w-full rounded-sm border border-border px-3 py-2 text-sm outline-none transition-[color,box-shadow] placeholder:text-foreground/50",
|
|
1177
|
+
"aria-describedby": j,
|
|
1178
|
+
className: Q("flex min-h-20 w-full rounded-sm border border-border px-3 py-2 text-sm outline-none transition-[color,box-shadow] placeholder:text-foreground/50", M, "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", "disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground", "aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", r),
|
|
1179
1179
|
...e
|
|
1180
1180
|
}),
|
|
1181
1181
|
/* @__PURE__ */ X(pn, {
|
|
@@ -1192,25 +1192,25 @@ var mn = n.forwardRef(function(e, t) {
|
|
|
1192
1192
|
]
|
|
1193
1193
|
});
|
|
1194
1194
|
}
|
|
1195
|
-
let { type:
|
|
1195
|
+
let { type: P, onFocus: F, ...te } = x, I = P ?? "text", L = I === "password", R = L && T ? "text" : I, z = L ? /* @__PURE__ */ X("button", {
|
|
1196
1196
|
type: "button",
|
|
1197
1197
|
onClick: () => E((e) => !e),
|
|
1198
1198
|
"aria-label": T ? "Hide password" : "Show password",
|
|
1199
1199
|
className: "cursor-pointer text-muted-foreground transition-colors hover:text-foreground",
|
|
1200
1200
|
tabIndex: -1,
|
|
1201
|
-
children: X(T ?
|
|
1201
|
+
children: X(T ? ee : A, { className: "size-4" })
|
|
1202
1202
|
}) : null, B = _ ? /* @__PURE__ */ X(ne, { className: "size-4 animate-spin text-muted-foreground" }) : f, V = L ? z : p, re = (e) => {
|
|
1203
|
-
R === "number" && e.target.select(),
|
|
1203
|
+
R === "number" && e.target.select(), F?.(e);
|
|
1204
1204
|
}, H = !!(h || g), U = /* @__PURE__ */ X("input", {
|
|
1205
1205
|
id: w,
|
|
1206
1206
|
type: R,
|
|
1207
1207
|
ref: t,
|
|
1208
1208
|
disabled: m,
|
|
1209
1209
|
"aria-invalid": S,
|
|
1210
|
-
"aria-describedby":
|
|
1210
|
+
"aria-describedby": j,
|
|
1211
1211
|
onFocus: re,
|
|
1212
|
-
className: Q("w-full min-w-0 bg-transparent text-sm text-foreground outline-none placeholder:text-foreground/50 disabled:cursor-not-allowed disabled:text-muted-foreground", H ? "h-full border-0 py-1 focus-visible:ring-0" : Q("rounded-sm border border-border pl-3 pr-3 py-1 transition-[color,box-shadow]",
|
|
1213
|
-
...
|
|
1212
|
+
className: Q("w-full min-w-0 bg-transparent text-sm text-foreground outline-none placeholder:text-foreground/50 disabled:cursor-not-allowed disabled:text-muted-foreground", H ? "h-full border-0 py-1 focus-visible:ring-0" : Q("rounded-sm border border-border pl-3 pr-3 py-1 transition-[color,box-shadow]", M, u === "default" ? "h-8.5" : "h-7", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", B && "pl-9", V && "pr-9"), H && (h ? "pl-0" : "pl-3"), H && (g ? "pr-0" : "pr-3"), H && B && !h && "pl-9", H && V && !g && "pr-9", H && B && h && "pl-6", H && V && g && "pr-6", r),
|
|
1213
|
+
...te
|
|
1214
1214
|
});
|
|
1215
1215
|
return /* @__PURE__ */ Z("div", {
|
|
1216
1216
|
className: Q("space-y-1.5", i),
|
|
@@ -1218,11 +1218,11 @@ var mn = n.forwardRef(function(e, t) {
|
|
|
1218
1218
|
a && /* @__PURE__ */ Z(wt, {
|
|
1219
1219
|
htmlFor: w,
|
|
1220
1220
|
className: Q(m && "text-muted-foreground"),
|
|
1221
|
-
children: [a,
|
|
1221
|
+
children: [a, N]
|
|
1222
1222
|
}),
|
|
1223
1223
|
H ? /* @__PURE__ */ Z("div", {
|
|
1224
1224
|
"aria-invalid": S,
|
|
1225
|
-
className: Q("flex items-center overflow-hidden rounded-sm border border-border transition-[color,box-shadow]",
|
|
1225
|
+
className: Q("flex items-center overflow-hidden rounded-sm border border-border transition-[color,box-shadow]", M, u === "default" ? "h-9" : "h-8", "focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50", "aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-3 aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40", m && "cursor-not-allowed"),
|
|
1226
1226
|
children: [
|
|
1227
1227
|
h && /* @__PURE__ */ X("div", {
|
|
1228
1228
|
className: "flex h-full shrink-0 items-center justify-center pl-3 pr-2 text-sm text-muted-foreground [&_svg]:size-4",
|
|
@@ -1289,17 +1289,17 @@ function hn({ children: e, onRemove: t, disabled: n }) {
|
|
|
1289
1289
|
onClick: t,
|
|
1290
1290
|
tabIndex: -1,
|
|
1291
1291
|
className: "flex size-3.5 items-center justify-center rounded-sm text-primary-foreground/80 transition-colors hover:bg-primary-foreground/20 hover:text-primary-foreground",
|
|
1292
|
-
children: /* @__PURE__ */ X(
|
|
1292
|
+
children: /* @__PURE__ */ X(G, { className: "size-3" })
|
|
1293
1293
|
})]
|
|
1294
1294
|
});
|
|
1295
1295
|
}
|
|
1296
1296
|
function gn({ value: e, onChange: t, label: r, description: i, errorMessage: a, helperText: o, required: s = !1, size: c = "default", variant: l = "default", disabled: u, placeholder: d = "Add and press Enter…", badgePosition: f = "inside", separators: p = [",", "Enter"], dedupe: m = !0, maxTags: h, error: g, className: _, wrapperClassName: v, id: y }) {
|
|
1297
|
-
let [b, x] = n.useState(""), S = n.useRef(null), C = n.useId(), w = y || C, T = `${w}-error`, E = `${w}-helper`, D = `${w}-description`, O = g ?? !!a, k = l === "alt" ? "bg-input-background-alt" : "bg-input-background", A = f === "inside",
|
|
1297
|
+
let [b, x] = n.useState(""), S = n.useRef(null), C = n.useId(), w = y || C, T = `${w}-error`, E = `${w}-helper`, D = `${w}-description`, O = g ?? !!a, k = l === "alt" ? "bg-input-background-alt" : "bg-input-background", A = f === "inside", ee = (n) => {
|
|
1298
1298
|
let r = n.trim();
|
|
1299
1299
|
r && (m && e.some((e) => e.toLowerCase() === r.toLowerCase()) || h != null && e.length >= h || t([...e, r]));
|
|
1300
|
-
},
|
|
1301
|
-
b.trim() && (
|
|
1302
|
-
},
|
|
1300
|
+
}, j = () => {
|
|
1301
|
+
b.trim() && (ee(b), x(""));
|
|
1302
|
+
}, M = (n) => t(e.filter((e, t) => t !== n));
|
|
1303
1303
|
return /* @__PURE__ */ Z("div", {
|
|
1304
1304
|
className: Q("space-y-1.5", v),
|
|
1305
1305
|
children: [
|
|
@@ -1317,7 +1317,7 @@ function gn({ value: e, onChange: t, label: r, description: i, errorMessage: a,
|
|
|
1317
1317
|
"aria-invalid": O,
|
|
1318
1318
|
className: Q("flex w-full cursor-text rounded-sm border border-border transition-[color,box-shadow]", k, "focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", u && "cursor-not-allowed", A ? "min-h-9 flex-wrap items-center gap-1.5 px-2 py-1.5" : Q("items-center px-3", c === "default" ? "h-9" : "h-8"), _),
|
|
1319
1319
|
children: [A && e.map((e, t) => /* @__PURE__ */ X(hn, {
|
|
1320
|
-
onRemove: () =>
|
|
1320
|
+
onRemove: () => M(t),
|
|
1321
1321
|
disabled: u,
|
|
1322
1322
|
children: e
|
|
1323
1323
|
}, `${e}-${t}`)), /* @__PURE__ */ X("input", {
|
|
@@ -1328,13 +1328,13 @@ function gn({ value: e, onChange: t, label: r, description: i, errorMessage: a,
|
|
|
1328
1328
|
let t = e.target.value;
|
|
1329
1329
|
if (p.includes(",") && t.includes(",")) {
|
|
1330
1330
|
let e = t.split(","), n = e.pop() ?? "";
|
|
1331
|
-
e.forEach((e) =>
|
|
1331
|
+
e.forEach((e) => ee(e)), x(n);
|
|
1332
1332
|
} else x(t);
|
|
1333
1333
|
},
|
|
1334
1334
|
onKeyDown: (t) => {
|
|
1335
|
-
p.includes(t.key) ? (t.preventDefault(),
|
|
1335
|
+
p.includes(t.key) ? (t.preventDefault(), j()) : t.key === "Backspace" && b === "" && e.length > 0 && M(e.length - 1);
|
|
1336
1336
|
},
|
|
1337
|
-
onBlur:
|
|
1337
|
+
onBlur: j,
|
|
1338
1338
|
disabled: u,
|
|
1339
1339
|
placeholder: e.length === 0 || !A ? d : "",
|
|
1340
1340
|
"aria-invalid": O,
|
|
@@ -1345,7 +1345,7 @@ function gn({ value: e, onChange: t, label: r, description: i, errorMessage: a,
|
|
|
1345
1345
|
!A && e.length > 0 && /* @__PURE__ */ X("div", {
|
|
1346
1346
|
className: "flex flex-wrap gap-1.5",
|
|
1347
1347
|
children: e.map((e, t) => /* @__PURE__ */ X(hn, {
|
|
1348
|
-
onRemove: () =>
|
|
1348
|
+
onRemove: () => M(t),
|
|
1349
1349
|
disabled: u,
|
|
1350
1350
|
children: e
|
|
1351
1351
|
}, `${e}-${t}`))
|
|
@@ -1483,14 +1483,14 @@ function bn({ severity: e = "info", variant: t = "filled", icon: n, title: r, de
|
|
|
1483
1483
|
type: "button",
|
|
1484
1484
|
"aria-label": "Dismiss",
|
|
1485
1485
|
onClick: c,
|
|
1486
|
-
className: "-mr-1 -mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-
|
|
1487
|
-
children: /* @__PURE__ */ X(
|
|
1486
|
+
className: "-mr-1 -mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-sm text-current/60 transition-colors hover:bg-current/10 hover:text-current",
|
|
1487
|
+
children: /* @__PURE__ */ X(G, { className: "size-3.5" })
|
|
1488
1488
|
});
|
|
1489
1489
|
return t === "filled" ? /* @__PURE__ */ Z("div", {
|
|
1490
1490
|
role: "alert",
|
|
1491
1491
|
"data-slot": "alert-card",
|
|
1492
1492
|
"data-severity": e,
|
|
1493
|
-
className: Q("flex items-start gap-2.5 rounded-
|
|
1493
|
+
className: Q("flex items-start gap-2.5 rounded-sm border p-3", d.filled, l),
|
|
1494
1494
|
...u,
|
|
1495
1495
|
children: [
|
|
1496
1496
|
/* @__PURE__ */ X("span", {
|
|
@@ -1513,11 +1513,11 @@ function bn({ severity: e = "info", variant: t = "filled", icon: n, title: r, de
|
|
|
1513
1513
|
role: "alert",
|
|
1514
1514
|
"data-slot": "alert-card",
|
|
1515
1515
|
"data-severity": e,
|
|
1516
|
-
className: Q("flex items-start gap-3 rounded-
|
|
1516
|
+
className: Q("flex items-start gap-3 rounded-sm border bg-card p-3.5", l),
|
|
1517
1517
|
...u,
|
|
1518
1518
|
children: [
|
|
1519
1519
|
/* @__PURE__ */ X("span", {
|
|
1520
|
-
className: Q("mt-0.5 flex size-9 shrink-0 items-center justify-center rounded-
|
|
1520
|
+
className: Q("mt-0.5 flex size-9 shrink-0 items-center justify-center rounded-sm [&_svg]:size-4.5", d.iconBox),
|
|
1521
1521
|
children: n ?? /* @__PURE__ */ X(f, {})
|
|
1522
1522
|
}),
|
|
1523
1523
|
/* @__PURE__ */ Z("div", {
|
|
@@ -1560,23 +1560,23 @@ function xn({ severity: e = "info", className: t, ...n }) {
|
|
|
1560
1560
|
var Sn = [
|
|
1561
1561
|
{
|
|
1562
1562
|
match: (e, t) => e.includes("zip") || e.includes("archive") || t.endsWith(".zip") || t.endsWith(".rar"),
|
|
1563
|
-
Icon:
|
|
1563
|
+
Icon: j
|
|
1564
1564
|
},
|
|
1565
1565
|
{
|
|
1566
1566
|
match: (e) => e.includes("audio/"),
|
|
1567
|
-
Icon:
|
|
1567
|
+
Icon: F
|
|
1568
1568
|
},
|
|
1569
1569
|
{
|
|
1570
1570
|
match: (e, t) => e.includes("excel") || t.endsWith(".xls") || t.endsWith(".xlsx"),
|
|
1571
|
-
Icon:
|
|
1571
|
+
Icon: N
|
|
1572
1572
|
},
|
|
1573
1573
|
{
|
|
1574
1574
|
match: (e) => e.startsWith("image/"),
|
|
1575
|
-
Icon:
|
|
1575
|
+
Icon: I
|
|
1576
1576
|
},
|
|
1577
1577
|
{
|
|
1578
1578
|
match: (e, t) => e.includes("pdf") || t.endsWith(".pdf") || e.includes("word") || t.endsWith(".doc") || t.endsWith(".docx"),
|
|
1579
|
-
Icon:
|
|
1579
|
+
Icon: P
|
|
1580
1580
|
},
|
|
1581
1581
|
{
|
|
1582
1582
|
match: (e) => e.includes("video/"),
|
|
@@ -1585,7 +1585,7 @@ var Sn = [
|
|
|
1585
1585
|
];
|
|
1586
1586
|
function Cn(e) {
|
|
1587
1587
|
for (let { match: t, Icon: n } of Sn) if (t(e.type, e.name)) return /* @__PURE__ */ X(n, { className: "size-5 opacity-60" });
|
|
1588
|
-
return /* @__PURE__ */ X(
|
|
1588
|
+
return /* @__PURE__ */ X(M, { className: "size-5 opacity-60" });
|
|
1589
1589
|
}
|
|
1590
1590
|
function wn({ entry: e }) {
|
|
1591
1591
|
let { file: t } = e;
|
|
@@ -1663,7 +1663,7 @@ function Tn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1663
1663
|
className: "z-50 flex size-8 cursor-pointer items-center justify-center rounded-full bg-black/60 text-white outline-none transition-[color,box-shadow] hover:bg-black/80 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
1664
1664
|
onClick: () => t && v(t.id),
|
|
1665
1665
|
type: "button",
|
|
1666
|
-
children: /* @__PURE__ */ X(
|
|
1666
|
+
children: /* @__PURE__ */ X(G, {
|
|
1667
1667
|
"aria-hidden": "true",
|
|
1668
1668
|
className: "size-4"
|
|
1669
1669
|
})
|
|
@@ -1730,7 +1730,7 @@ function Tn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1730
1730
|
className: "-top-2 -right-2 absolute size-6 rounded-full border-2 border-background shadow-none focus-visible:border-background",
|
|
1731
1731
|
onClick: () => v(e.id),
|
|
1732
1732
|
size: "icon",
|
|
1733
|
-
children: /* @__PURE__ */ X(
|
|
1733
|
+
children: /* @__PURE__ */ X(G, { className: "size-3.5" })
|
|
1734
1734
|
}),
|
|
1735
1735
|
/* @__PURE__ */ Z("div", {
|
|
1736
1736
|
className: "flex min-w-0 flex-col gap-0.5 border-t p-3",
|
|
@@ -1751,7 +1751,7 @@ function Tn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1751
1751
|
/* @__PURE__ */ X("div", {
|
|
1752
1752
|
"aria-hidden": "true",
|
|
1753
1753
|
className: "mb-2 flex size-11 shrink-0 items-center justify-center rounded-full border bg-background",
|
|
1754
|
-
children: /* @__PURE__ */ X(
|
|
1754
|
+
children: /* @__PURE__ */ X(I, { className: "size-4 opacity-60" })
|
|
1755
1755
|
}),
|
|
1756
1756
|
/* @__PURE__ */ X("p", {
|
|
1757
1757
|
className: "mb-1.5 font-medium text-sm",
|
|
@@ -1786,15 +1786,15 @@ function Tn({ variant: e = "image", accept: t = "image/*", maxSize: n = 5 * 1024
|
|
|
1786
1786
|
function En(e) {
|
|
1787
1787
|
return typeof e == "object" && !!e && "value" in e && "label" in e;
|
|
1788
1788
|
}
|
|
1789
|
-
function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, placeholder: a = "Select option", disabled: o = !1, error: s = !1, errorMessage: c, multiple: l = !1, className: u, size: d = "default", variant: f = "default", searchable: p = !1, clearable: m = !1, getOptionLabel: h, getOptionValue: g, renderOptionLabel: _, label: y, description: x, required: S = !1, onCreateNew: C, createNewLabel: w = "New item", loading: T = !1, compactMultiple: E = !1, formatCompactDisplay: D, startItem: O, endItem: k, maxSelections: A, defaultOpen:
|
|
1790
|
-
let [R, z] = n.useState(
|
|
1791
|
-
|
|
1792
|
-
}, [
|
|
1789
|
+
function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, placeholder: a = "Select option", disabled: o = !1, error: s = !1, errorMessage: c, multiple: l = !1, className: u, size: d = "default", variant: f = "default", searchable: p = !1, clearable: m = !1, getOptionLabel: h, getOptionValue: g, renderOptionLabel: _, label: y, description: x, required: S = !1, onCreateNew: C, createNewLabel: w = "New item", loading: T = !1, compactMultiple: E = !1, formatCompactDisplay: D, startItem: O, endItem: k, maxSelections: A, defaultOpen: ee = !1, onOpenChange: j, onLoadMore: M, hasNextPage: N = !1, isFetchingNextPage: P = !1, allowEmpty: F = !1, showSelectAll: te = !1, readOnly: I = !1, popoverClassName: L }) {
|
|
1790
|
+
let [R, z] = n.useState(ee), B = n.useRef(!1), V = n.useRef(null), re = n.useId(), H = n.useCallback((e) => {
|
|
1791
|
+
I && e || (z(e), j?.(e), e && (B.current = !1));
|
|
1792
|
+
}, [j, I]), [U, ie] = n.useState(l ? Array.isArray(r) ? r : r ? [r] : [] : []);
|
|
1793
1793
|
n.useEffect(() => {
|
|
1794
1794
|
l && ie(Array.isArray(r) ? r : r ? [r] : []);
|
|
1795
1795
|
}, [l, r]), n.useEffect(() => {
|
|
1796
|
-
|
|
1797
|
-
}, [
|
|
1796
|
+
P || (B.current = !1);
|
|
1797
|
+
}, [P]);
|
|
1798
1798
|
let W = n.useCallback((e) => typeof e == "string" ? e : g ? g(e) : En(e) ? e.value : String(e), [g]), ae = n.useCallback((n) => {
|
|
1799
1799
|
if (typeof n == "string") {
|
|
1800
1800
|
for (let e of t) {
|
|
@@ -1839,14 +1839,14 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1839
1839
|
}
|
|
1840
1840
|
if (l) {
|
|
1841
1841
|
let e = U.some((e) => W(e) === n);
|
|
1842
|
-
if (!e && A && U.length >= A || e && U.length === 1 && !
|
|
1842
|
+
if (!e && A && U.length >= A || e && U.length === 1 && !F) return;
|
|
1843
1843
|
let t = e ? U.filter((e) => W(e) !== n) : [...U, r];
|
|
1844
1844
|
ie(t), i?.(t);
|
|
1845
1845
|
} else i?.(r), z(!1);
|
|
1846
1846
|
}, fe = l && ue.length > 0 && ue.length === U.length, pe = () => {
|
|
1847
1847
|
if (l) {
|
|
1848
1848
|
if (fe) {
|
|
1849
|
-
|
|
1849
|
+
F && (ie([]), i?.([]));
|
|
1850
1850
|
return;
|
|
1851
1851
|
}
|
|
1852
1852
|
A && ue.length > A || (ie(ue), i?.(ue));
|
|
@@ -1854,20 +1854,20 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1854
1854
|
}, me = (e) => {
|
|
1855
1855
|
e.stopPropagation(), l ? (ie([]), i?.([])) : i?.("");
|
|
1856
1856
|
}, he = (e, t) => {
|
|
1857
|
-
if (e.stopPropagation(), U.length === 1 && !
|
|
1857
|
+
if (e.stopPropagation(), U.length === 1 && !F) return;
|
|
1858
1858
|
let n = U.filter((e) => W(e) !== W(t));
|
|
1859
1859
|
ie(n), i?.(n);
|
|
1860
1860
|
}, ge = n.useCallback((e) => {
|
|
1861
1861
|
let t = e.currentTarget;
|
|
1862
|
-
t.scrollHeight - t.scrollTop - t.clientHeight < 100 &&
|
|
1862
|
+
t.scrollHeight - t.scrollTop - t.clientHeight < 100 && M && N && !P && !B.current && (B.current = !0, M());
|
|
1863
1863
|
}, [
|
|
1864
|
+
M,
|
|
1864
1865
|
N,
|
|
1865
|
-
P
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
className: Q("flex min-w-0 flex-1 items-center gap-1.5", xe ? "py-1" : "overflow-hidden"),
|
|
1866
|
+
P
|
|
1867
|
+
]), _e = l ? U.length > 0 : !!oe, ve = () => l ? null : ue.find((e) => e.value === oe)?.label || a, K = () => {
|
|
1868
|
+
!o && !I && (V.current?.focus(), z(!0));
|
|
1869
|
+
}, ye = !!(O || k), be = l && !E, q = be ? d === "default" ? "min-h-8.5" : "min-h-7" : d === "default" ? "h-8.5" : "h-7", J = f === "alt" ? "bg-input-background-alt" : "bg-input-background", xe = /* @__PURE__ */ X("div", {
|
|
1870
|
+
className: Q("flex min-w-0 flex-1 items-center gap-1.5", be ? "py-1" : "overflow-hidden"),
|
|
1871
1871
|
children: l && U.length > 0 ? E ? /* @__PURE__ */ X("span", {
|
|
1872
1872
|
className: "min-w-0 truncate",
|
|
1873
1873
|
children: D ? D(U) : `${U.length} selected`
|
|
@@ -1880,14 +1880,14 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1880
1880
|
"aria-label": `Remove ${ae(e)}`,
|
|
1881
1881
|
onClick: (t) => he(t, e),
|
|
1882
1882
|
className: "rounded-sm transition-colors hover:bg-primary/80",
|
|
1883
|
-
children: /* @__PURE__ */ X(
|
|
1883
|
+
children: /* @__PURE__ */ X(G, { className: "size-3" })
|
|
1884
1884
|
})]
|
|
1885
1885
|
}, `${W(e)}-${t}`))
|
|
1886
1886
|
}) : /* @__PURE__ */ X("span", {
|
|
1887
1887
|
className: Q("block min-w-0 truncate", !_e && "text-muted-foreground/60"),
|
|
1888
1888
|
children: ve() || a
|
|
1889
1889
|
})
|
|
1890
|
-
}),
|
|
1890
|
+
}), Se = /* @__PURE__ */ Z("div", {
|
|
1891
1891
|
className: "flex shrink-0 items-center gap-1",
|
|
1892
1892
|
children: [m && _e && !o && /* @__PURE__ */ X("span", {
|
|
1893
1893
|
role: "button",
|
|
@@ -1898,13 +1898,13 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1898
1898
|
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(), me(e));
|
|
1899
1899
|
},
|
|
1900
1900
|
className: "cursor-pointer rounded-sm p-0.5 transition-colors hover:bg-accent",
|
|
1901
|
-
children: /* @__PURE__ */ X(
|
|
1901
|
+
children: /* @__PURE__ */ X(G, { className: "size-3.5" })
|
|
1902
1902
|
}), /* @__PURE__ */ X(b, {
|
|
1903
1903
|
size: 16,
|
|
1904
1904
|
className: "shrink-0 opacity-60",
|
|
1905
1905
|
"aria-hidden": !0
|
|
1906
1906
|
})]
|
|
1907
|
-
}),
|
|
1907
|
+
}), Ce = (e) => {
|
|
1908
1908
|
let t = l ? U.some((t) => W(t) === e.value) : oe === e.value, n = ce(e.value);
|
|
1909
1909
|
return /* @__PURE__ */ Z(nn, {
|
|
1910
1910
|
value: e.value,
|
|
@@ -1950,7 +1950,7 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1950
1950
|
})
|
|
1951
1951
|
]
|
|
1952
1952
|
}, e.value);
|
|
1953
|
-
},
|
|
1953
|
+
}, we = /* @__PURE__ */ X(sn, {
|
|
1954
1954
|
className: Q("w-(--radix-popper-anchor-width) min-w-(--radix-popper-anchor-width) p-0", L),
|
|
1955
1955
|
align: "start",
|
|
1956
1956
|
onOpenAutoFocus: (e) => {
|
|
@@ -1965,8 +1965,8 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1965
1965
|
children: T ? /* @__PURE__ */ X("div", {
|
|
1966
1966
|
className: "flex items-center justify-center py-6",
|
|
1967
1967
|
children: /* @__PURE__ */ X(ne, { className: "size-5 animate-spin text-muted-foreground" })
|
|
1968
|
-
}) : /* @__PURE__ */ Z(
|
|
1969
|
-
l &&
|
|
1968
|
+
}) : /* @__PURE__ */ Z(Pe, { children: [
|
|
1969
|
+
l && te && ue.length > 0 && /* @__PURE__ */ Z(Pe, { children: [/* @__PURE__ */ X(en, { children: /* @__PURE__ */ Z(nn, {
|
|
1970
1970
|
value: "__select_all__",
|
|
1971
1971
|
onSelect: pe,
|
|
1972
1972
|
className: "font-medium",
|
|
@@ -1981,9 +1981,9 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1981
1981
|
/* @__PURE__ */ X($t, { children: "No results found." }),
|
|
1982
1982
|
t.length > 0 ? t.map((e, t) => /* @__PURE__ */ Z(n.Fragment, { children: [t > 0 && /* @__PURE__ */ X(tn, {}), /* @__PURE__ */ X(en, {
|
|
1983
1983
|
heading: e.label,
|
|
1984
|
-
children: e.options.map(
|
|
1985
|
-
})] }, e.label)) : /* @__PURE__ */ X(en, { children: se.map(
|
|
1986
|
-
C && /* @__PURE__ */ Z(
|
|
1984
|
+
children: e.options.map(Ce)
|
|
1985
|
+
})] }, e.label)) : /* @__PURE__ */ X(en, { children: se.map(Ce) }),
|
|
1986
|
+
C && /* @__PURE__ */ Z(Pe, { children: [/* @__PURE__ */ X(tn, {}), /* @__PURE__ */ X(en, { children: /* @__PURE__ */ Z($, {
|
|
1987
1987
|
variant: "ghost",
|
|
1988
1988
|
className: "w-full justify-start font-normal",
|
|
1989
1989
|
onClick: () => {
|
|
@@ -1995,13 +1995,13 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
1995
1995
|
"aria-hidden": !0
|
|
1996
1996
|
}), w]
|
|
1997
1997
|
}) })] }),
|
|
1998
|
-
|
|
1998
|
+
P && /* @__PURE__ */ X("div", {
|
|
1999
1999
|
className: "flex items-center justify-center py-3",
|
|
2000
2000
|
children: /* @__PURE__ */ X(ne, { className: "size-4 animate-spin text-muted-foreground" })
|
|
2001
2001
|
})
|
|
2002
2002
|
] })
|
|
2003
2003
|
})] })
|
|
2004
|
-
}),
|
|
2004
|
+
}), Te = S ? /* @__PURE__ */ X("span", {
|
|
2005
2005
|
"aria-hidden": !0,
|
|
2006
2006
|
className: "ml-0.5 text-destructive",
|
|
2007
2007
|
children: "*"
|
|
@@ -2011,11 +2011,11 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
2011
2011
|
children: [
|
|
2012
2012
|
y && /* @__PURE__ */ Z(wt, {
|
|
2013
2013
|
htmlFor: re,
|
|
2014
|
-
onClick:
|
|
2014
|
+
onClick: K,
|
|
2015
2015
|
className: Q("cursor-pointer", o && "text-muted-foreground"),
|
|
2016
|
-
children: [y,
|
|
2016
|
+
children: [y, Te]
|
|
2017
2017
|
}),
|
|
2018
|
-
|
|
2018
|
+
ye ? /* @__PURE__ */ Z(an, {
|
|
2019
2019
|
open: R,
|
|
2020
2020
|
onOpenChange: H,
|
|
2021
2021
|
modal: !1,
|
|
@@ -2023,7 +2023,7 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
2023
2023
|
asChild: !0,
|
|
2024
2024
|
children: /* @__PURE__ */ Z("div", {
|
|
2025
2025
|
"aria-invalid": s,
|
|
2026
|
-
className: Q("flex rounded-sm border border-border transition-[color,box-shadow]",
|
|
2026
|
+
className: Q("flex rounded-sm border border-border transition-[color,box-shadow]", be ? "items-stretch" : "items-center overflow-hidden", J, q, R && "border-ring ring-3 ring-ring/50", "aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-3 aria-[invalid=true]:ring-destructive/20", o && "pointer-events-none cursor-not-allowed opacity-50"),
|
|
2027
2027
|
children: [
|
|
2028
2028
|
O && /* @__PURE__ */ X("div", {
|
|
2029
2029
|
className: "flex h-full shrink-0 items-center justify-center pl-3 pr-2 text-sm text-muted-foreground [&_svg]:size-4",
|
|
@@ -2038,10 +2038,10 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
2038
2038
|
role: "combobox",
|
|
2039
2039
|
"aria-expanded": R,
|
|
2040
2040
|
onClick: (e) => {
|
|
2041
|
-
|
|
2041
|
+
I && (e.preventDefault(), e.stopPropagation());
|
|
2042
2042
|
},
|
|
2043
|
-
className: Q("h-full flex-1 justify-between rounded-none border-0 px-3 py-1 font-normal text-foreground shadow-none hover:bg-transparent focus-visible:ring-0",
|
|
2044
|
-
children: [
|
|
2043
|
+
className: Q("h-full flex-1 justify-between rounded-none border-0 px-3 py-1 font-normal text-foreground shadow-none hover:bg-transparent focus-visible:ring-0", be ? "items-start" : "items-center", u),
|
|
2044
|
+
children: [xe, Se]
|
|
2045
2045
|
}),
|
|
2046
2046
|
k && /* @__PURE__ */ X("div", {
|
|
2047
2047
|
className: "flex h-full shrink-0 items-center justify-center pl-2 pr-3 text-sm text-foreground [&_svg]:size-4",
|
|
@@ -2049,7 +2049,7 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
2049
2049
|
})
|
|
2050
2050
|
]
|
|
2051
2051
|
})
|
|
2052
|
-
}),
|
|
2052
|
+
}), we]
|
|
2053
2053
|
}) : /* @__PURE__ */ Z(an, {
|
|
2054
2054
|
open: R,
|
|
2055
2055
|
onOpenChange: H,
|
|
@@ -2066,12 +2066,12 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
2066
2066
|
"aria-expanded": R,
|
|
2067
2067
|
"aria-invalid": s,
|
|
2068
2068
|
onClick: (e) => {
|
|
2069
|
-
|
|
2069
|
+
I && (e.preventDefault(), e.stopPropagation());
|
|
2070
2070
|
},
|
|
2071
|
-
className: Q("h-auto w-full justify-between rounded-sm border border-border px-3 py-1 font-normal text-foreground transition-[color,box-shadow] hover:bg-transparent",
|
|
2072
|
-
children: [
|
|
2071
|
+
className: Q("h-auto w-full justify-between rounded-sm border border-border px-3 py-1 font-normal text-foreground transition-[color,box-shadow] hover:bg-transparent", q, be ? "items-start" : "items-center", J, "aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", R && "border-ring ring-3 ring-ring/50", u),
|
|
2072
|
+
children: [xe, Se]
|
|
2073
2073
|
})
|
|
2074
|
-
}),
|
|
2074
|
+
}), we]
|
|
2075
2075
|
}),
|
|
2076
2076
|
s && c && /* @__PURE__ */ X("p", {
|
|
2077
2077
|
className: "text-xs leading-5 text-destructive",
|
|
@@ -2084,11 +2084,11 @@ function Dn({ options: e = [], groups: t = [], value: r, onValueChange: i, place
|
|
|
2084
2084
|
//#endregion
|
|
2085
2085
|
//#region src/components/ui/checkbox.tsx
|
|
2086
2086
|
function On({ className: e, ...t }) {
|
|
2087
|
-
return /* @__PURE__ */ X(
|
|
2087
|
+
return /* @__PURE__ */ X(be.Root, {
|
|
2088
2088
|
"data-slot": "checkbox",
|
|
2089
2089
|
className: Q("peer relative flex size-4 shrink-0 items-center justify-center rounded-sm border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", e),
|
|
2090
2090
|
...t,
|
|
2091
|
-
children: /* @__PURE__ */ X(
|
|
2091
|
+
children: /* @__PURE__ */ X(be.Indicator, {
|
|
2092
2092
|
"data-slot": "checkbox-indicator",
|
|
2093
2093
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
2094
2094
|
children: /* @__PURE__ */ X(v, {})
|
|
@@ -2181,21 +2181,21 @@ function Rn({ columns: e, data: t, getRowId: r = (e, t) => String(t), isRowDisab
|
|
|
2181
2181
|
i
|
|
2182
2182
|
]), E = n.useMemo(() => b.filter((e) => !C[e]), [b, C]), [D, O] = n.useState([]), k = o ?? D, A = (e) => {
|
|
2183
2183
|
o === void 0 && O(e), s?.(e);
|
|
2184
|
-
},
|
|
2184
|
+
}, ee = E.length > 0 && E.every((e) => k.includes(e)), j = k.length > 0 && !ee, M = () => A(ee ? k.filter((e) => C[e]) : [...new Set([...k, ...E])]), N = (e) => {
|
|
2185
2185
|
C[e] || A(k.includes(e) ? k.filter((t) => t !== e) : [...k, e]);
|
|
2186
|
-
},
|
|
2186
|
+
}, P = e.length + +!!a + +!!c, [F, te] = n.useState(f), [I, L] = n.useState(0), R = d ? Math.max(1, Math.ceil(t.length / F)) : 1, z = Math.min(I, R - 1), B = n.useMemo(() => {
|
|
2187
2187
|
let e = t.map((e, t) => ({
|
|
2188
2188
|
row: e,
|
|
2189
2189
|
index: t
|
|
2190
2190
|
}));
|
|
2191
2191
|
if (!d) return e;
|
|
2192
|
-
let n = z *
|
|
2193
|
-
return e.slice(n, n +
|
|
2192
|
+
let n = z * F;
|
|
2193
|
+
return e.slice(n, n + F);
|
|
2194
2194
|
}, [
|
|
2195
2195
|
t,
|
|
2196
2196
|
d,
|
|
2197
2197
|
z,
|
|
2198
|
-
|
|
2198
|
+
F
|
|
2199
2199
|
]), ne = "px-4 py-3 first:pl-5 last:pr-5", V = "px-4 first:pl-5 last:pr-5", re = !_ && g !== void 0 ? typeof g == "number" ? `${g}px` : g : void 0;
|
|
2200
2200
|
return /* @__PURE__ */ Z("div", {
|
|
2201
2201
|
className: Q("overflow-hidden rounded-lg border", d && "rounded-b-none border-b-0", (_ || g !== void 0) && "flex min-h-0 flex-col [&_[data-slot=table-container]]:overflow-y-auto", _ && "min-h-0 flex-1 [&_[data-slot=table-container]]:min-h-0 [&_[data-slot=table-container]]:flex-1", !_ && g !== void 0 && "[&_[data-slot=table-container]]:max-h-(--dt-max-h)", y),
|
|
@@ -2209,8 +2209,8 @@ function Rn({ columns: e, data: t, getRowId: r = (e, t) => String(t), isRowDisab
|
|
|
2209
2209
|
className: Q("w-10", V),
|
|
2210
2210
|
children: /* @__PURE__ */ X(On, {
|
|
2211
2211
|
"aria-label": "Select all rows",
|
|
2212
|
-
checked:
|
|
2213
|
-
onCheckedChange:
|
|
2212
|
+
checked: ee ? !0 : j ? "indeterminate" : !1,
|
|
2213
|
+
onCheckedChange: M
|
|
2214
2214
|
})
|
|
2215
2215
|
}),
|
|
2216
2216
|
e.map((e) => /* @__PURE__ */ X(Pn, {
|
|
@@ -2224,7 +2224,7 @@ function Rn({ columns: e, data: t, getRowId: r = (e, t) => String(t), isRowDisab
|
|
|
2224
2224
|
}), /* @__PURE__ */ X(jn, { children: l ? /* @__PURE__ */ X(Nn, {
|
|
2225
2225
|
className: "hover:bg-transparent",
|
|
2226
2226
|
children: /* @__PURE__ */ X(Fn, {
|
|
2227
|
-
colSpan:
|
|
2227
|
+
colSpan: P,
|
|
2228
2228
|
className: "h-28 text-center",
|
|
2229
2229
|
children: /* @__PURE__ */ Z("span", {
|
|
2230
2230
|
className: "inline-flex items-center gap-2 text-muted-foreground",
|
|
@@ -2234,7 +2234,7 @@ function Rn({ columns: e, data: t, getRowId: r = (e, t) => String(t), isRowDisab
|
|
|
2234
2234
|
}) : t.length === 0 ? /* @__PURE__ */ X(Nn, {
|
|
2235
2235
|
className: "hover:bg-transparent",
|
|
2236
2236
|
children: /* @__PURE__ */ X(Fn, {
|
|
2237
|
-
colSpan:
|
|
2237
|
+
colSpan: P,
|
|
2238
2238
|
className: "h-28 text-center text-muted-foreground",
|
|
2239
2239
|
children: u
|
|
2240
2240
|
})
|
|
@@ -2254,7 +2254,7 @@ function Rn({ columns: e, data: t, getRowId: r = (e, t) => String(t), isRowDisab
|
|
|
2254
2254
|
"aria-label": "Select row",
|
|
2255
2255
|
checked: i,
|
|
2256
2256
|
disabled: o,
|
|
2257
|
-
onCheckedChange: () =>
|
|
2257
|
+
onCheckedChange: () => N(r)
|
|
2258
2258
|
})
|
|
2259
2259
|
}),
|
|
2260
2260
|
e.map((e) => /* @__PURE__ */ X(Fn, {
|
|
@@ -2294,10 +2294,10 @@ function Rn({ columns: e, data: t, getRowId: r = (e, t) => String(t), isRowDisab
|
|
|
2294
2294
|
}), /* @__PURE__ */ X(Dn, {
|
|
2295
2295
|
size: "sm",
|
|
2296
2296
|
className: "w-20",
|
|
2297
|
-
value: String(
|
|
2297
|
+
value: String(F),
|
|
2298
2298
|
onValueChange: (e) => {
|
|
2299
2299
|
let t = typeof e == "object" && e && "value" in e ? e.value : e;
|
|
2300
|
-
|
|
2300
|
+
te(Number(t)), L(0);
|
|
2301
2301
|
},
|
|
2302
2302
|
options: p.map((e) => ({
|
|
2303
2303
|
value: String(e),
|
|
@@ -2379,7 +2379,7 @@ function zn({ children: e, title: t, open: n, onClose: r, description: i, notDis
|
|
|
2379
2379
|
onClick: (e) => {
|
|
2380
2380
|
e.preventDefault(), e.stopPropagation(), r();
|
|
2381
2381
|
},
|
|
2382
|
-
children: /* @__PURE__ */ X(
|
|
2382
|
+
children: /* @__PURE__ */ X(G, {})
|
|
2383
2383
|
})]
|
|
2384
2384
|
})
|
|
2385
2385
|
}),
|
|
@@ -2399,18 +2399,18 @@ function zn({ children: e, title: t, open: n, onClose: r, description: i, notDis
|
|
|
2399
2399
|
//#endregion
|
|
2400
2400
|
//#region src/components/ui/radio-group.tsx
|
|
2401
2401
|
function Bn({ className: e, ...t }) {
|
|
2402
|
-
return /* @__PURE__ */ X(
|
|
2402
|
+
return /* @__PURE__ */ X(Te.Root, {
|
|
2403
2403
|
"data-slot": "radio-group",
|
|
2404
2404
|
className: Q("grid w-full gap-2", e),
|
|
2405
2405
|
...t
|
|
2406
2406
|
});
|
|
2407
2407
|
}
|
|
2408
2408
|
function Vn({ className: e, ...t }) {
|
|
2409
|
-
return /* @__PURE__ */ X(
|
|
2409
|
+
return /* @__PURE__ */ X(Te.Item, {
|
|
2410
2410
|
"data-slot": "radio-group-item",
|
|
2411
2411
|
className: Q("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", e),
|
|
2412
2412
|
...t,
|
|
2413
|
-
children: /* @__PURE__ */ X(
|
|
2413
|
+
children: /* @__PURE__ */ X(Te.Indicator, {
|
|
2414
2414
|
"data-slot": "radio-group-indicator",
|
|
2415
2415
|
className: "flex size-4 items-center justify-center",
|
|
2416
2416
|
children: /* @__PURE__ */ X("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
|
|
@@ -2555,32 +2555,32 @@ function Gn({ value: e, onChange: t, swatches: r = Un, trigger: i = "swatch", pl
|
|
|
2555
2555
|
//#endregion
|
|
2556
2556
|
//#region src/components/ui/alert-dialog.tsx
|
|
2557
2557
|
function Kn({ ...e }) {
|
|
2558
|
-
return /* @__PURE__ */ X(
|
|
2558
|
+
return /* @__PURE__ */ X(ye.Root, {
|
|
2559
2559
|
"data-slot": "alert-dialog",
|
|
2560
2560
|
...e
|
|
2561
2561
|
});
|
|
2562
2562
|
}
|
|
2563
2563
|
function qn({ ...e }) {
|
|
2564
|
-
return /* @__PURE__ */ X(
|
|
2564
|
+
return /* @__PURE__ */ X(ye.Trigger, {
|
|
2565
2565
|
"data-slot": "alert-dialog-trigger",
|
|
2566
2566
|
...e
|
|
2567
2567
|
});
|
|
2568
2568
|
}
|
|
2569
2569
|
function Jn({ ...e }) {
|
|
2570
|
-
return /* @__PURE__ */ X(
|
|
2570
|
+
return /* @__PURE__ */ X(ye.Portal, {
|
|
2571
2571
|
"data-slot": "alert-dialog-portal",
|
|
2572
2572
|
...e
|
|
2573
2573
|
});
|
|
2574
2574
|
}
|
|
2575
2575
|
function Yn({ className: e, ...t }) {
|
|
2576
|
-
return /* @__PURE__ */ X(
|
|
2576
|
+
return /* @__PURE__ */ X(ye.Overlay, {
|
|
2577
2577
|
"data-slot": "alert-dialog-overlay",
|
|
2578
2578
|
className: Q("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
2579
2579
|
...t
|
|
2580
2580
|
});
|
|
2581
2581
|
}
|
|
2582
2582
|
function Xn({ className: e, size: t = "default", ...n }) {
|
|
2583
|
-
return /* @__PURE__ */ Z(Jn, { children: [/* @__PURE__ */ X(Yn, {}), /* @__PURE__ */ X(
|
|
2583
|
+
return /* @__PURE__ */ Z(Jn, { children: [/* @__PURE__ */ X(Yn, {}), /* @__PURE__ */ X(ye.Content, {
|
|
2584
2584
|
"data-slot": "alert-dialog-content",
|
|
2585
2585
|
"data-size": t,
|
|
2586
2586
|
className: Q("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-sm bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
@@ -2609,14 +2609,14 @@ function $n({ className: e, ...t }) {
|
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
2611
|
function er({ className: e, ...t }) {
|
|
2612
|
-
return /* @__PURE__ */ X(
|
|
2612
|
+
return /* @__PURE__ */ X(ye.Title, {
|
|
2613
2613
|
"data-slot": "alert-dialog-title",
|
|
2614
2614
|
className: Q("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
2615
2615
|
...t
|
|
2616
2616
|
});
|
|
2617
2617
|
}
|
|
2618
2618
|
function tr({ className: e, ...t }) {
|
|
2619
|
-
return /* @__PURE__ */ X(
|
|
2619
|
+
return /* @__PURE__ */ X(ye.Description, {
|
|
2620
2620
|
"data-slot": "alert-dialog-description",
|
|
2621
2621
|
className: Q("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
2622
2622
|
...t
|
|
@@ -2627,7 +2627,7 @@ function nr({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
2627
2627
|
variant: t,
|
|
2628
2628
|
size: n,
|
|
2629
2629
|
asChild: !0,
|
|
2630
|
-
children: /* @__PURE__ */ X(
|
|
2630
|
+
children: /* @__PURE__ */ X(ye.Action, {
|
|
2631
2631
|
"data-slot": "alert-dialog-action",
|
|
2632
2632
|
className: Q(e),
|
|
2633
2633
|
...r
|
|
@@ -2639,7 +2639,7 @@ function rr({ className: e, variant: t = "outline", size: n = "default", ...r })
|
|
|
2639
2639
|
variant: t,
|
|
2640
2640
|
size: n,
|
|
2641
2641
|
asChild: !0,
|
|
2642
|
-
children: /* @__PURE__ */ X(
|
|
2642
|
+
children: /* @__PURE__ */ X(ye.Cancel, {
|
|
2643
2643
|
"data-slot": "alert-dialog-cancel",
|
|
2644
2644
|
className: Q(e),
|
|
2645
2645
|
...r
|
|
@@ -2722,12 +2722,12 @@ function ir({ show: e, title: t = "Are you absolutely sure?", message: r = "This
|
|
|
2722
2722
|
//#endregion
|
|
2723
2723
|
//#region src/components/custom/custom-tabs.tsx
|
|
2724
2724
|
function ar({ type: e = "underline", items: t, className: n, listClassName: r, ...i }) {
|
|
2725
|
-
return /* @__PURE__ */ X(
|
|
2725
|
+
return /* @__PURE__ */ X(Ae.Root, {
|
|
2726
2726
|
"data-slot": "custom-tabs",
|
|
2727
2727
|
"data-type": e,
|
|
2728
2728
|
className: Q("flex flex-col gap-2", n),
|
|
2729
2729
|
...i,
|
|
2730
|
-
children: /* @__PURE__ */ X(
|
|
2730
|
+
children: /* @__PURE__ */ X(Ae.List, {
|
|
2731
2731
|
"data-slot": "custom-tabs-list",
|
|
2732
2732
|
className: Q("inline-flex items-center text-muted-foreground", e === "underline" && "w-full gap-6 border-b border-border", e === "pill" && "w-fit gap-1 rounded-lg bg-muted p-1", r),
|
|
2733
2733
|
children: t.map((t) => /* @__PURE__ */ X(or, {
|
|
@@ -2738,7 +2738,7 @@ function ar({ type: e = "underline", items: t, className: n, listClassName: r, .
|
|
|
2738
2738
|
});
|
|
2739
2739
|
}
|
|
2740
2740
|
function or({ type: e, item: t }) {
|
|
2741
|
-
return /* @__PURE__ */ Z(
|
|
2741
|
+
return /* @__PURE__ */ Z(Ae.Trigger, {
|
|
2742
2742
|
"data-slot": "custom-tabs-trigger",
|
|
2743
2743
|
value: t.value,
|
|
2744
2744
|
disabled: t.disabled,
|
|
@@ -2808,13 +2808,13 @@ function cr({ label: e, value: t, className: n, ...r }) {
|
|
|
2808
2808
|
}
|
|
2809
2809
|
//#endregion
|
|
2810
2810
|
//#region src/components/custom/divider.tsx
|
|
2811
|
-
var lr =
|
|
2811
|
+
var lr = K("flex items-center", {
|
|
2812
2812
|
variants: { orientation: {
|
|
2813
2813
|
horizontal: "w-full",
|
|
2814
2814
|
vertical: "h-full flex-col"
|
|
2815
2815
|
} },
|
|
2816
2816
|
defaultVariants: { orientation: "horizontal" }
|
|
2817
|
-
}), ur =
|
|
2817
|
+
}), ur = K("", {
|
|
2818
2818
|
variants: {
|
|
2819
2819
|
color: {
|
|
2820
2820
|
default: "bg-border",
|
|
@@ -2868,7 +2868,7 @@ var lr = G("flex items-center", {
|
|
|
2868
2868
|
thickness: "thin",
|
|
2869
2869
|
orientation: "horizontal"
|
|
2870
2870
|
}
|
|
2871
|
-
}), dr =
|
|
2871
|
+
}), dr = K("font-medium whitespace-nowrap", {
|
|
2872
2872
|
variants: {
|
|
2873
2873
|
color: {
|
|
2874
2874
|
default: "text-foreground",
|
|
@@ -2885,7 +2885,7 @@ var lr = G("flex items-center", {
|
|
|
2885
2885
|
color: "default",
|
|
2886
2886
|
size: "sm"
|
|
2887
2887
|
}
|
|
2888
|
-
}), fr =
|
|
2888
|
+
}), fr = K("flex items-center justify-center rounded-full text-xs font-medium", {
|
|
2889
2889
|
variants: {
|
|
2890
2890
|
color: {
|
|
2891
2891
|
default: "border border-border bg-background text-foreground",
|
|
@@ -3006,7 +3006,7 @@ function hr({ className: e, ...t }) {
|
|
|
3006
3006
|
...t
|
|
3007
3007
|
});
|
|
3008
3008
|
}
|
|
3009
|
-
var gr =
|
|
3009
|
+
var gr = K("flex shrink-0 items-center justify-center mb-2 [&_svg:not([class*='size-'])]:size-6", {
|
|
3010
3010
|
variants: { variant: {
|
|
3011
3011
|
default: "bg-transparent",
|
|
3012
3012
|
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
|
|
@@ -3080,7 +3080,7 @@ function Sr(e) {
|
|
|
3080
3080
|
children: [
|
|
3081
3081
|
/* @__PURE__ */ X(ce, {}),
|
|
3082
3082
|
t,
|
|
3083
|
-
c.size > 0 && /* @__PURE__ */ Z(
|
|
3083
|
+
c.size > 0 && /* @__PURE__ */ Z(Pe, { children: [/* @__PURE__ */ X(_t, {
|
|
3084
3084
|
orientation: "vertical",
|
|
3085
3085
|
className: "mx-0.5 h-4"
|
|
3086
3086
|
}), /* @__PURE__ */ X(ht, {
|
|
@@ -3116,7 +3116,7 @@ function Sr(e) {
|
|
|
3116
3116
|
]
|
|
3117
3117
|
}, e.value);
|
|
3118
3118
|
}) }),
|
|
3119
|
-
c.size > 0 && /* @__PURE__ */ Z(
|
|
3119
|
+
c.size > 0 && /* @__PURE__ */ Z(Pe, { children: [/* @__PURE__ */ X(tn, {}), /* @__PURE__ */ X(en, { children: /* @__PURE__ */ X(nn, {
|
|
3120
3120
|
onSelect: () => {
|
|
3121
3121
|
s ? e.onChange([]) : e.onChange(null);
|
|
3122
3122
|
},
|
|
@@ -3343,7 +3343,7 @@ function kr({ code: e = "404", title: t = "Page Not Found", description: n = "So
|
|
|
3343
3343
|
asChild: !0,
|
|
3344
3344
|
children: /* @__PURE__ */ Z("a", {
|
|
3345
3345
|
href: a,
|
|
3346
|
-
children: [/* @__PURE__ */ X(
|
|
3346
|
+
children: [/* @__PURE__ */ X(te, {}), o]
|
|
3347
3347
|
})
|
|
3348
3348
|
}),
|
|
3349
3349
|
s
|
|
@@ -3377,7 +3377,7 @@ function Ar({ icon: e, value: t, label: n, className: r, ...i }) {
|
|
|
3377
3377
|
}
|
|
3378
3378
|
//#endregion
|
|
3379
3379
|
//#region src/components/ui/card.tsx
|
|
3380
|
-
var jr =
|
|
3380
|
+
var jr = K("group/card flex flex-col gap-4 overflow-hidden rounded-sm py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-sm *:[img:last-child]:rounded-b-sm", {
|
|
3381
3381
|
variants: { variant: {
|
|
3382
3382
|
default: "bg-card text-card-foreground ring-foreground/10",
|
|
3383
3383
|
alt: "bg-muted/40 text-card-foreground ring-foreground/10",
|
|
@@ -3460,7 +3460,7 @@ var zr = {
|
|
|
3460
3460
|
}
|
|
3461
3461
|
};
|
|
3462
3462
|
function Br({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, colorVariant: a = "primary", accentColorVariant: o, valueColorVariant: s, showPercentSign: c = !0, unit: l, stackedLayout: u = !1, variant: d = "default", onClick: f, onValueClick: p, className: m }) {
|
|
3463
|
-
let h = zr[a], g = zr[o ?? a], _ = s ? zr[s].text : "text-foreground", v = u ? "size-10" : "size-5", y = e ?? (t?.toLowerCase() === "auto" ? /* @__PURE__ */ X(ue, { className: Q(v, h.text) }) : /* @__PURE__ */ X(D, { className: Q(v, h.text) })), b = /* @__PURE__ */ Z(
|
|
3463
|
+
let h = zr[a], g = zr[o ?? a], _ = s ? zr[s].text : "text-foreground", v = u ? "size-10" : "size-5", y = e ?? (t?.toLowerCase() === "auto" ? /* @__PURE__ */ X(ue, { className: Q(v, h.text) }) : /* @__PURE__ */ X(D, { className: Q(v, h.text) })), b = /* @__PURE__ */ Z(Pe, { children: [u ? /* @__PURE__ */ Z("div", {
|
|
3464
3464
|
className: "flex items-center gap-3",
|
|
3465
3465
|
children: [y, /* @__PURE__ */ Z("div", {
|
|
3466
3466
|
className: "flex flex-col",
|
|
@@ -3518,50 +3518,50 @@ function Br({ icon: e, mode: t, description: n, value: r, showAccent: i = !1, co
|
|
|
3518
3518
|
//#endregion
|
|
3519
3519
|
//#region src/components/ui/sheet.tsx
|
|
3520
3520
|
function Vr({ ...e }) {
|
|
3521
|
-
return /* @__PURE__ */ X(
|
|
3521
|
+
return /* @__PURE__ */ X(q.Root, {
|
|
3522
3522
|
"data-slot": "sheet",
|
|
3523
3523
|
...e
|
|
3524
3524
|
});
|
|
3525
3525
|
}
|
|
3526
3526
|
function Hr({ ...e }) {
|
|
3527
|
-
return /* @__PURE__ */ X(
|
|
3527
|
+
return /* @__PURE__ */ X(q.Trigger, {
|
|
3528
3528
|
"data-slot": "sheet-trigger",
|
|
3529
3529
|
...e
|
|
3530
3530
|
});
|
|
3531
3531
|
}
|
|
3532
3532
|
function Ur({ ...e }) {
|
|
3533
|
-
return /* @__PURE__ */ X(
|
|
3533
|
+
return /* @__PURE__ */ X(q.Close, {
|
|
3534
3534
|
"data-slot": "sheet-close",
|
|
3535
3535
|
...e
|
|
3536
3536
|
});
|
|
3537
3537
|
}
|
|
3538
3538
|
function Wr({ ...e }) {
|
|
3539
|
-
return /* @__PURE__ */ X(
|
|
3539
|
+
return /* @__PURE__ */ X(q.Portal, {
|
|
3540
3540
|
"data-slot": "sheet-portal",
|
|
3541
3541
|
...e
|
|
3542
3542
|
});
|
|
3543
3543
|
}
|
|
3544
3544
|
function Gr({ className: e, ...t }) {
|
|
3545
|
-
return /* @__PURE__ */ X(
|
|
3545
|
+
return /* @__PURE__ */ X(q.Overlay, {
|
|
3546
3546
|
"data-slot": "sheet-overlay",
|
|
3547
3547
|
className: Q("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
3548
3548
|
...t
|
|
3549
3549
|
});
|
|
3550
3550
|
}
|
|
3551
3551
|
function Kr({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
|
|
3552
|
-
return /* @__PURE__ */ Z(Wr, { children: [/* @__PURE__ */ X(Gr, {}), /* @__PURE__ */ Z(
|
|
3552
|
+
return /* @__PURE__ */ Z(Wr, { children: [/* @__PURE__ */ X(Gr, {}), /* @__PURE__ */ Z(q.Content, {
|
|
3553
3553
|
"data-slot": "sheet-content",
|
|
3554
3554
|
"data-side": n,
|
|
3555
3555
|
className: Q("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10", e),
|
|
3556
3556
|
...i,
|
|
3557
|
-
children: [t, r && /* @__PURE__ */ X(
|
|
3557
|
+
children: [t, r && /* @__PURE__ */ X(q.Close, {
|
|
3558
3558
|
"data-slot": "sheet-close",
|
|
3559
3559
|
asChild: !0,
|
|
3560
3560
|
children: /* @__PURE__ */ Z($, {
|
|
3561
3561
|
variant: "ghost",
|
|
3562
3562
|
className: "absolute top-3 right-3",
|
|
3563
3563
|
size: "icon-sm",
|
|
3564
|
-
children: [/* @__PURE__ */ X(
|
|
3564
|
+
children: [/* @__PURE__ */ X(G, {}), /* @__PURE__ */ X("span", {
|
|
3565
3565
|
className: "sr-only",
|
|
3566
3566
|
children: "Close"
|
|
3567
3567
|
})]
|
|
@@ -3584,14 +3584,14 @@ function Jr({ className: e, ...t }) {
|
|
|
3584
3584
|
});
|
|
3585
3585
|
}
|
|
3586
3586
|
function Yr({ className: e, ...t }) {
|
|
3587
|
-
return /* @__PURE__ */ X(
|
|
3587
|
+
return /* @__PURE__ */ X(q.Title, {
|
|
3588
3588
|
"data-slot": "sheet-title",
|
|
3589
3589
|
className: Q("text-base font-medium text-foreground", e),
|
|
3590
3590
|
...t
|
|
3591
3591
|
});
|
|
3592
3592
|
}
|
|
3593
3593
|
function Xr({ className: e, ...t }) {
|
|
3594
|
-
return /* @__PURE__ */ X(
|
|
3594
|
+
return /* @__PURE__ */ X(q.Description, {
|
|
3595
3595
|
"data-slot": "sheet-description",
|
|
3596
3596
|
className: Q("text-sm text-muted-foreground", e),
|
|
3597
3597
|
...t
|
|
@@ -3620,7 +3620,7 @@ function Zr({ children: e, title: t, open: n, onClose: r, description: i, side:
|
|
|
3620
3620
|
onClick: (e) => {
|
|
3621
3621
|
e.preventDefault(), e.stopPropagation(), (d ? s : r)();
|
|
3622
3622
|
},
|
|
3623
|
-
children: X(d ? x :
|
|
3623
|
+
children: X(d ? x : G, {})
|
|
3624
3624
|
}), /* @__PURE__ */ Z("div", {
|
|
3625
3625
|
className: "flex min-w-0 flex-col",
|
|
3626
3626
|
children: [/* @__PURE__ */ X(Yr, {
|
|
@@ -3971,38 +3971,38 @@ function li({ media: e, title: t, description: n, status: r, statusVariant: i =
|
|
|
3971
3971
|
//#endregion
|
|
3972
3972
|
//#region src/components/ui/select.tsx
|
|
3973
3973
|
function ui({ ...e }) {
|
|
3974
|
-
return /* @__PURE__ */ X(
|
|
3974
|
+
return /* @__PURE__ */ X(Y.Root, {
|
|
3975
3975
|
"data-slot": "select",
|
|
3976
3976
|
...e
|
|
3977
3977
|
});
|
|
3978
3978
|
}
|
|
3979
3979
|
function di({ className: e, ...t }) {
|
|
3980
|
-
return /* @__PURE__ */ X(
|
|
3980
|
+
return /* @__PURE__ */ X(Y.Group, {
|
|
3981
3981
|
"data-slot": "select-group",
|
|
3982
3982
|
className: Q("scroll-my-1 p-1", e),
|
|
3983
3983
|
...t
|
|
3984
3984
|
});
|
|
3985
3985
|
}
|
|
3986
3986
|
function fi({ ...e }) {
|
|
3987
|
-
return /* @__PURE__ */ X(
|
|
3987
|
+
return /* @__PURE__ */ X(Y.Value, {
|
|
3988
3988
|
"data-slot": "select-value",
|
|
3989
3989
|
...e
|
|
3990
3990
|
});
|
|
3991
3991
|
}
|
|
3992
3992
|
function pi({ className: e, size: t = "default", children: n, ...r }) {
|
|
3993
|
-
return /* @__PURE__ */ Z(
|
|
3993
|
+
return /* @__PURE__ */ Z(Y.Trigger, {
|
|
3994
3994
|
"data-slot": "select-trigger",
|
|
3995
3995
|
"data-size": t,
|
|
3996
3996
|
className: Q("flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-sm *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
3997
3997
|
...r,
|
|
3998
|
-
children: [n, /* @__PURE__ */ X(
|
|
3998
|
+
children: [n, /* @__PURE__ */ X(Y.Icon, {
|
|
3999
3999
|
asChild: !0,
|
|
4000
4000
|
children: /* @__PURE__ */ X(b, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
4001
4001
|
})]
|
|
4002
4002
|
});
|
|
4003
4003
|
}
|
|
4004
4004
|
function mi({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
|
|
4005
|
-
return /* @__PURE__ */ X(
|
|
4005
|
+
return /* @__PURE__ */ X(Y.Portal, { children: /* @__PURE__ */ Z(Y.Content, {
|
|
4006
4006
|
"data-slot": "select-content",
|
|
4007
4007
|
"data-align-trigger": n === "item-aligned",
|
|
4008
4008
|
className: Q("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
|
|
@@ -4011,7 +4011,7 @@ function mi({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
4011
4011
|
...i,
|
|
4012
4012
|
children: [
|
|
4013
4013
|
/* @__PURE__ */ X(vi, {}),
|
|
4014
|
-
/* @__PURE__ */ X(
|
|
4014
|
+
/* @__PURE__ */ X(Y.Viewport, {
|
|
4015
4015
|
"data-position": n,
|
|
4016
4016
|
className: Q("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", n === "popper" && ""),
|
|
4017
4017
|
children: t
|
|
@@ -4021,32 +4021,32 @@ function mi({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
4021
4021
|
}) });
|
|
4022
4022
|
}
|
|
4023
4023
|
function hi({ className: e, ...t }) {
|
|
4024
|
-
return /* @__PURE__ */ X(
|
|
4024
|
+
return /* @__PURE__ */ X(Y.Label, {
|
|
4025
4025
|
"data-slot": "select-label",
|
|
4026
4026
|
className: Q("px-1.5 py-1 text-xs text-muted-foreground", e),
|
|
4027
4027
|
...t
|
|
4028
4028
|
});
|
|
4029
4029
|
}
|
|
4030
4030
|
function gi({ className: e, children: t, ...n }) {
|
|
4031
|
-
return /* @__PURE__ */ Z(
|
|
4031
|
+
return /* @__PURE__ */ Z(Y.Item, {
|
|
4032
4032
|
"data-slot": "select-item",
|
|
4033
4033
|
className: Q("relative flex w-full cursor-default items-center gap-1.5 rounded-sm py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
4034
4034
|
...n,
|
|
4035
4035
|
children: [/* @__PURE__ */ X("span", {
|
|
4036
4036
|
className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center",
|
|
4037
|
-
children: /* @__PURE__ */ X(
|
|
4038
|
-
}), /* @__PURE__ */ X(
|
|
4037
|
+
children: /* @__PURE__ */ X(Y.ItemIndicator, { children: /* @__PURE__ */ X(v, { className: "pointer-events-none" }) })
|
|
4038
|
+
}), /* @__PURE__ */ X(Y.ItemText, { children: t })]
|
|
4039
4039
|
});
|
|
4040
4040
|
}
|
|
4041
4041
|
function _i({ className: e, ...t }) {
|
|
4042
|
-
return /* @__PURE__ */ X(
|
|
4042
|
+
return /* @__PURE__ */ X(Y.Separator, {
|
|
4043
4043
|
"data-slot": "select-separator",
|
|
4044
4044
|
className: Q("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
4045
4045
|
...t
|
|
4046
4046
|
});
|
|
4047
4047
|
}
|
|
4048
4048
|
function vi({ className: e, ...t }) {
|
|
4049
|
-
return /* @__PURE__ */ X(
|
|
4049
|
+
return /* @__PURE__ */ X(Y.ScrollUpButton, {
|
|
4050
4050
|
"data-slot": "select-scroll-up-button",
|
|
4051
4051
|
className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
4052
4052
|
...t,
|
|
@@ -4054,7 +4054,7 @@ function vi({ className: e, ...t }) {
|
|
|
4054
4054
|
});
|
|
4055
4055
|
}
|
|
4056
4056
|
function yi({ className: e, ...t }) {
|
|
4057
|
-
return /* @__PURE__ */ X(
|
|
4057
|
+
return /* @__PURE__ */ X(Y.ScrollDownButton, {
|
|
4058
4058
|
"data-slot": "select-scroll-down-button",
|
|
4059
4059
|
className: Q("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
4060
4060
|
...t,
|
|
@@ -4299,18 +4299,18 @@ function ki({ value: e, max: t, onChange: r }) {
|
|
|
4299
4299
|
className: Q("h-8 w-12 rounded-sm border border-border bg-input-background text-center text-sm font-medium", "focus:border-ring focus:ring-3 focus:ring-ring/50 focus:outline-none", "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none")
|
|
4300
4300
|
});
|
|
4301
4301
|
}
|
|
4302
|
-
function Ai({ value: e, onChange: t, label: r, placeholder: i = "Select date & time", showTime: a = !0, timezone: o, minDate: s, maxDate: c, captionLayout: l = "dropdown", yearRange: u, disabled: d,
|
|
4303
|
-
let [
|
|
4302
|
+
function Ai({ value: e, onChange: t, label: r, placeholder: i = "Select date & time", showTime: a = !0, timezone: o, minDate: s, maxDate: c, captionLayout: l = "dropdown", yearRange: u, disabled: d, variant: f = "default", className: p }) {
|
|
4303
|
+
let [m, h] = n.useState(!1), _ = o || "UTC", v = f === "alt" ? "bg-input-background-alt" : "bg-input-background", y = Ci(e, _), [b, x] = n.useState(y?.h ?? "00"), [S, C] = n.useState(y?.m ?? "00"), [w, T] = n.useState(y?.s ?? "00");
|
|
4304
4304
|
n.useEffect(() => {
|
|
4305
|
-
let t = Ci(e,
|
|
4306
|
-
|
|
4307
|
-
}, [e,
|
|
4308
|
-
let
|
|
4309
|
-
e && (
|
|
4310
|
-
},
|
|
4311
|
-
let n = e === "h" ? t :
|
|
4312
|
-
e === "h" &&
|
|
4313
|
-
},
|
|
4305
|
+
let t = Ci(e, _);
|
|
4306
|
+
x(t?.h ?? "00"), C(t?.m ?? "00"), T(t?.s ?? "00");
|
|
4307
|
+
}, [e, _]);
|
|
4308
|
+
let E = y ? new Date(y.year, y.month, y.day) : void 0, D = (e, n, r, i, a, o) => t(wi(e, n, r, i, a, o, _)), O = (e) => {
|
|
4309
|
+
e && (D(e.getFullYear(), e.getMonth(), e.getDate(), a ? b : "00", a ? S : "00", a ? w : "00"), a || h(!1));
|
|
4310
|
+
}, A = (e, t) => {
|
|
4311
|
+
let n = e === "h" ? t : b, r = e === "m" ? t : S, i = e === "s" ? t : w;
|
|
4312
|
+
e === "h" && x(t), e === "m" && C(t), e === "s" && T(t), y && D(y.year, y.month, y.day, n, r, i);
|
|
4313
|
+
}, ee = (e) => {
|
|
4314
4314
|
if (s) {
|
|
4315
4315
|
let t = new Date(s);
|
|
4316
4316
|
if (t.setHours(0, 0, 0, 0), e < t) return !0;
|
|
@@ -4320,7 +4320,7 @@ function Ai({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4320
4320
|
if (t.setHours(23, 59, 59, 999), e > t) return !0;
|
|
4321
4321
|
}
|
|
4322
4322
|
return !1;
|
|
4323
|
-
},
|
|
4323
|
+
}, j = (/* @__PURE__ */ new Date()).getFullYear(), [M, N] = u ?? [j - 100, j + 5], P = s ? Math.max(M, new Date(s).getFullYear()) : M, F = c ? Math.min(N, new Date(c).getFullYear()) : N, te = new Date(P, 0, 1), I = new Date(F, 11, 31), L = y ? new Date(e).toLocaleString("en-US", {
|
|
4324
4324
|
year: "numeric",
|
|
4325
4325
|
month: "short",
|
|
4326
4326
|
day: "2-digit",
|
|
@@ -4330,26 +4330,26 @@ function Ai({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4330
4330
|
second: "2-digit",
|
|
4331
4331
|
hour12: !1
|
|
4332
4332
|
} : {},
|
|
4333
|
-
timeZone:
|
|
4333
|
+
timeZone: _
|
|
4334
4334
|
}) : i;
|
|
4335
4335
|
return /* @__PURE__ */ Z("div", {
|
|
4336
|
-
className: Q("space-y-1.5",
|
|
4336
|
+
className: Q("space-y-1.5", p),
|
|
4337
4337
|
children: [r != null && /* @__PURE__ */ X(wt, {
|
|
4338
4338
|
className: Q(d && "text-muted-foreground"),
|
|
4339
4339
|
children: r
|
|
4340
4340
|
}), /* @__PURE__ */ Z(an, {
|
|
4341
|
-
open:
|
|
4342
|
-
onOpenChange:
|
|
4341
|
+
open: m,
|
|
4342
|
+
onOpenChange: h,
|
|
4343
4343
|
modal: !1,
|
|
4344
4344
|
children: [/* @__PURE__ */ X(on, {
|
|
4345
4345
|
asChild: !0,
|
|
4346
4346
|
children: /* @__PURE__ */ Z("button", {
|
|
4347
4347
|
type: "button",
|
|
4348
4348
|
disabled: d,
|
|
4349
|
-
className: Q("flex h-8.5 w-full items-center justify-between gap-2 rounded-sm border border-border
|
|
4349
|
+
className: Q("flex h-8.5 w-full items-center justify-between gap-2 rounded-sm border border-border px-3 py-1 text-sm text-foreground transition-[color,box-shadow] outline-none", v, "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", m && "border-ring ring-3 ring-ring/50", !y && "text-muted-foreground", "disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground"),
|
|
4350
4350
|
children: [/* @__PURE__ */ X("span", {
|
|
4351
4351
|
className: "truncate",
|
|
4352
|
-
children:
|
|
4352
|
+
children: L
|
|
4353
4353
|
}), /* @__PURE__ */ X(g, { className: "size-3.5 shrink-0 opacity-60" })]
|
|
4354
4354
|
})
|
|
4355
4355
|
}), /* @__PURE__ */ Z(sn, {
|
|
@@ -4358,12 +4358,12 @@ function Ai({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4358
4358
|
sideOffset: 4,
|
|
4359
4359
|
children: [/* @__PURE__ */ X(bi, {
|
|
4360
4360
|
mode: "single",
|
|
4361
|
-
selected:
|
|
4362
|
-
onSelect:
|
|
4363
|
-
disabled:
|
|
4364
|
-
defaultMonth:
|
|
4361
|
+
selected: E,
|
|
4362
|
+
onSelect: O,
|
|
4363
|
+
disabled: ee,
|
|
4364
|
+
defaultMonth: E,
|
|
4365
4365
|
captionLayout: l,
|
|
4366
|
-
startMonth:
|
|
4366
|
+
startMonth: te,
|
|
4367
4367
|
endMonth: I,
|
|
4368
4368
|
autoFocus: !0
|
|
4369
4369
|
}), a && /* @__PURE__ */ Z("div", {
|
|
@@ -4371,27 +4371,27 @@ function Ai({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4371
4371
|
children: [
|
|
4372
4372
|
/* @__PURE__ */ X(k, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
4373
4373
|
/* @__PURE__ */ X(ki, {
|
|
4374
|
-
value:
|
|
4374
|
+
value: b,
|
|
4375
4375
|
max: 23,
|
|
4376
|
-
onChange: (e) =>
|
|
4376
|
+
onChange: (e) => A("h", e)
|
|
4377
4377
|
}),
|
|
4378
4378
|
/* @__PURE__ */ X("span", {
|
|
4379
4379
|
className: "text-sm font-medium text-muted-foreground",
|
|
4380
4380
|
children: ":"
|
|
4381
4381
|
}),
|
|
4382
4382
|
/* @__PURE__ */ X(ki, {
|
|
4383
|
-
value:
|
|
4383
|
+
value: S,
|
|
4384
4384
|
max: 59,
|
|
4385
|
-
onChange: (e) =>
|
|
4385
|
+
onChange: (e) => A("m", e)
|
|
4386
4386
|
}),
|
|
4387
4387
|
/* @__PURE__ */ X("span", {
|
|
4388
4388
|
className: "text-sm font-medium text-muted-foreground",
|
|
4389
4389
|
children: ":"
|
|
4390
4390
|
}),
|
|
4391
4391
|
/* @__PURE__ */ X(ki, {
|
|
4392
|
-
value:
|
|
4392
|
+
value: w,
|
|
4393
4393
|
max: 59,
|
|
4394
|
-
onChange: (e) =>
|
|
4394
|
+
onChange: (e) => A("s", e)
|
|
4395
4395
|
})
|
|
4396
4396
|
]
|
|
4397
4397
|
})]
|
|
@@ -4401,38 +4401,38 @@ function Ai({ value: e, onChange: t, label: r, placeholder: i = "Select date & t
|
|
|
4401
4401
|
}
|
|
4402
4402
|
//#endregion
|
|
4403
4403
|
//#region src/components/custom/date-time-range-picker.tsx
|
|
4404
|
-
var ji = n.forwardRef(function({ value: e, onChange: t, className: r, timezone: i, presets: a, maxRangeDays: o },
|
|
4405
|
-
let
|
|
4404
|
+
var ji = n.forwardRef(function({ value: e, onChange: t, className: r, timezone: i, presets: a, maxRangeDays: o, variant: s = "default" }, c) {
|
|
4405
|
+
let l = a ?? Ti, u = s === "alt" ? "bg-input-background-alt" : "bg-input-background", [d, f] = n.useState(!1), [p, m] = n.useState(e.from), [h, _] = n.useState(e.to);
|
|
4406
4406
|
n.useEffect(() => {
|
|
4407
|
-
|
|
4407
|
+
m(e.from), _(e.to);
|
|
4408
4408
|
}, [e]);
|
|
4409
|
-
let
|
|
4410
|
-
if (
|
|
4409
|
+
let v = (e) => {
|
|
4410
|
+
if (m(e), o && e) {
|
|
4411
4411
|
let t = new Date(new Date(e).getTime() + o * 864e5);
|
|
4412
|
-
new Date(
|
|
4412
|
+
new Date(h) > t && _(t.toISOString());
|
|
4413
4413
|
}
|
|
4414
|
-
},
|
|
4414
|
+
}, b = (e) => {
|
|
4415
4415
|
t({
|
|
4416
4416
|
preset: e,
|
|
4417
4417
|
...Ei(e)
|
|
4418
|
-
}),
|
|
4418
|
+
}), f(!1);
|
|
4419
4419
|
};
|
|
4420
4420
|
return /* @__PURE__ */ Z(an, {
|
|
4421
|
-
open:
|
|
4422
|
-
onOpenChange:
|
|
4421
|
+
open: d,
|
|
4422
|
+
onOpenChange: f,
|
|
4423
4423
|
children: [/* @__PURE__ */ X(on, {
|
|
4424
4424
|
asChild: !0,
|
|
4425
4425
|
children: /* @__PURE__ */ Z("button", {
|
|
4426
|
-
ref:
|
|
4426
|
+
ref: c,
|
|
4427
4427
|
type: "button",
|
|
4428
|
-
className: Q("flex h-8.5 items-center justify-between gap-1.5 rounded-sm border border-border
|
|
4428
|
+
className: Q("flex h-8.5 items-center justify-between gap-1.5 rounded-sm border border-border px-3 py-1 text-sm text-foreground transition-[color,box-shadow] outline-none", u, "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", d && "border-ring ring-3 ring-ring/50", r),
|
|
4429
4429
|
children: [
|
|
4430
4430
|
/* @__PURE__ */ X(g, { className: "size-3.5 shrink-0 opacity-60" }),
|
|
4431
4431
|
/* @__PURE__ */ X("span", {
|
|
4432
4432
|
className: "truncate",
|
|
4433
4433
|
children: Oi(e, i)
|
|
4434
4434
|
}),
|
|
4435
|
-
/* @__PURE__ */ X(y, { className: Q("size-3.5 shrink-0 opacity-60 transition-transform",
|
|
4435
|
+
/* @__PURE__ */ X(y, { className: Q("size-3.5 shrink-0 opacity-60 transition-transform", d && "rotate-180") })
|
|
4436
4436
|
]
|
|
4437
4437
|
})
|
|
4438
4438
|
}), /* @__PURE__ */ X(sn, {
|
|
@@ -4448,10 +4448,10 @@ var ji = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4448
4448
|
children: "Presets"
|
|
4449
4449
|
}), /* @__PURE__ */ X("div", {
|
|
4450
4450
|
className: "grid gap-1",
|
|
4451
|
-
style: { gridTemplateColumns: `repeat(${
|
|
4452
|
-
children:
|
|
4451
|
+
style: { gridTemplateColumns: `repeat(${l.length}, minmax(0, 1fr))` },
|
|
4452
|
+
children: l.map((t) => /* @__PURE__ */ X("button", {
|
|
4453
4453
|
type: "button",
|
|
4454
|
-
onClick: () =>
|
|
4454
|
+
onClick: () => b(t.value),
|
|
4455
4455
|
className: Q("rounded-md px-2 py-1.5 text-center text-xs font-medium transition-colors", e.preset === t.value ? "bg-primary text-primary-foreground" : "bg-accent/50 text-foreground hover:bg-accent"),
|
|
4456
4456
|
children: t.label
|
|
4457
4457
|
}, t.value))
|
|
@@ -4464,24 +4464,24 @@ var ji = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4464
4464
|
children: "Custom range"
|
|
4465
4465
|
}),
|
|
4466
4466
|
/* @__PURE__ */ X(Ai, {
|
|
4467
|
-
value:
|
|
4468
|
-
onChange:
|
|
4467
|
+
value: p,
|
|
4468
|
+
onChange: v,
|
|
4469
4469
|
label: "From",
|
|
4470
4470
|
placeholder: "Start date & time",
|
|
4471
4471
|
timezone: i,
|
|
4472
4472
|
maxDate: (/* @__PURE__ */ new Date()).toISOString()
|
|
4473
4473
|
}),
|
|
4474
4474
|
/* @__PURE__ */ X(Ai, {
|
|
4475
|
-
value:
|
|
4476
|
-
onChange:
|
|
4475
|
+
value: h,
|
|
4476
|
+
onChange: _,
|
|
4477
4477
|
label: "To",
|
|
4478
4478
|
placeholder: "End date & time",
|
|
4479
4479
|
timezone: i,
|
|
4480
|
-
minDate:
|
|
4480
|
+
minDate: p || void 0,
|
|
4481
4481
|
maxDate: (() => {
|
|
4482
4482
|
let e = (/* @__PURE__ */ new Date()).toISOString();
|
|
4483
|
-
if (o &&
|
|
4484
|
-
let t = new Date(new Date(
|
|
4483
|
+
if (o && p) {
|
|
4484
|
+
let t = new Date(new Date(p).getTime() + o * 864e5).toISOString();
|
|
4485
4485
|
return t < e ? t : e;
|
|
4486
4486
|
}
|
|
4487
4487
|
return e;
|
|
@@ -4491,13 +4491,13 @@ var ji = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4491
4491
|
type: "button",
|
|
4492
4492
|
size: "sm",
|
|
4493
4493
|
className: "w-full",
|
|
4494
|
-
disabled: !
|
|
4494
|
+
disabled: !p || !h,
|
|
4495
4495
|
onClick: () => {
|
|
4496
|
-
!
|
|
4496
|
+
!p || !h || (t({
|
|
4497
4497
|
preset: null,
|
|
4498
|
-
from:
|
|
4499
|
-
to:
|
|
4500
|
-
}),
|
|
4498
|
+
from: p <= h ? p : h,
|
|
4499
|
+
to: p <= h ? h : p
|
|
4500
|
+
}), f(!1));
|
|
4501
4501
|
},
|
|
4502
4502
|
children: "Apply"
|
|
4503
4503
|
})
|
|
@@ -4506,7 +4506,7 @@ var ji = n.forwardRef(function({ value: e, onChange: t, className: r, timezone:
|
|
|
4506
4506
|
})
|
|
4507
4507
|
})]
|
|
4508
4508
|
});
|
|
4509
|
-
}), Mi =
|
|
4509
|
+
}), Mi = K("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
4510
4510
|
variants: { variant: {
|
|
4511
4511
|
default: "bg-card text-card-foreground",
|
|
4512
4512
|
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
|
|
@@ -4544,7 +4544,7 @@ function Ii({ className: e, ...t }) {
|
|
|
4544
4544
|
}
|
|
4545
4545
|
//#endregion
|
|
4546
4546
|
//#region src/components/ui/button-group.tsx
|
|
4547
|
-
var Li =
|
|
4547
|
+
var Li = K("group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
4548
4548
|
variants: { orientation: {
|
|
4549
4549
|
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!",
|
|
4550
4550
|
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!"
|
|
@@ -4561,7 +4561,7 @@ function Ri({ className: e, orientation: t, ...n }) {
|
|
|
4561
4561
|
});
|
|
4562
4562
|
}
|
|
4563
4563
|
function zi({ className: e, asChild: t = !1, ...n }) {
|
|
4564
|
-
return /* @__PURE__ */ X(t ?
|
|
4564
|
+
return /* @__PURE__ */ X(t ? Oe.Root : "div", {
|
|
4565
4565
|
className: Q("flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
4566
4566
|
...n
|
|
4567
4567
|
});
|
|
@@ -4648,7 +4648,7 @@ function Ji({ active: e, payload: t, className: r, indicator: i = "dot", hideLab
|
|
|
4648
4648
|
let n = Zi(m, e, `${f ?? e.name ?? e.dataKey ?? "value"}`), r = d ?? e.payload?.fill ?? e.color;
|
|
4649
4649
|
return /* @__PURE__ */ X("div", {
|
|
4650
4650
|
className: Q("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", i === "dot" && "items-center"),
|
|
4651
|
-
children: u && e?.value !== void 0 && e.name ? u(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ Z(
|
|
4651
|
+
children: u && e?.value !== void 0 && e.name ? u(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ Z(Pe, { children: [n?.icon ? /* @__PURE__ */ X(n.icon, {}) : !o && /* @__PURE__ */ X("div", {
|
|
4652
4652
|
className: Q("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
4653
4653
|
"h-2.5 w-2.5": i === "dot",
|
|
4654
4654
|
"w-1": i === "line",
|
|
@@ -4702,21 +4702,21 @@ function Zi(e, t, n) {
|
|
|
4702
4702
|
//#endregion
|
|
4703
4703
|
//#region src/components/ui/hover-card.tsx
|
|
4704
4704
|
function Qi({ ...e }) {
|
|
4705
|
-
return /* @__PURE__ */ X(
|
|
4705
|
+
return /* @__PURE__ */ X(xe.Root, {
|
|
4706
4706
|
"data-slot": "hover-card",
|
|
4707
4707
|
...e
|
|
4708
4708
|
});
|
|
4709
4709
|
}
|
|
4710
4710
|
function $i({ ...e }) {
|
|
4711
|
-
return /* @__PURE__ */ X(
|
|
4711
|
+
return /* @__PURE__ */ X(xe.Trigger, {
|
|
4712
4712
|
"data-slot": "hover-card-trigger",
|
|
4713
4713
|
...e
|
|
4714
4714
|
});
|
|
4715
4715
|
}
|
|
4716
4716
|
function ea({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
4717
|
-
return /* @__PURE__ */ X(
|
|
4717
|
+
return /* @__PURE__ */ X(xe.Portal, {
|
|
4718
4718
|
"data-slot": "hover-card-portal",
|
|
4719
|
-
children: /* @__PURE__ */ X(
|
|
4719
|
+
children: /* @__PURE__ */ X(xe.Content, {
|
|
4720
4720
|
"data-slot": "hover-card-content",
|
|
4721
4721
|
align: t,
|
|
4722
4722
|
sideOffset: n,
|
|
@@ -4743,7 +4743,7 @@ function na({ className: e, ...t }) {
|
|
|
4743
4743
|
...t
|
|
4744
4744
|
});
|
|
4745
4745
|
}
|
|
4746
|
-
var ra =
|
|
4746
|
+
var ra = K("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted", {
|
|
4747
4747
|
variants: {
|
|
4748
4748
|
variant: {
|
|
4749
4749
|
default: "border-transparent",
|
|
@@ -4762,7 +4762,7 @@ var ra = G("group/item flex w-full flex-wrap items-center rounded-lg border text
|
|
|
4762
4762
|
}
|
|
4763
4763
|
});
|
|
4764
4764
|
function ia({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
|
|
4765
|
-
return /* @__PURE__ */ X(r ?
|
|
4765
|
+
return /* @__PURE__ */ X(r ? Oe.Root : "div", {
|
|
4766
4766
|
"data-slot": "item",
|
|
4767
4767
|
"data-variant": t,
|
|
4768
4768
|
"data-size": n,
|
|
@@ -4774,7 +4774,7 @@ function ia({ className: e, variant: t = "default", size: n = "default", asChild
|
|
|
4774
4774
|
...i
|
|
4775
4775
|
});
|
|
4776
4776
|
}
|
|
4777
|
-
var aa =
|
|
4777
|
+
var aa = K("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none", {
|
|
4778
4778
|
variants: { variant: {
|
|
4779
4779
|
default: "bg-transparent",
|
|
4780
4780
|
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -4882,19 +4882,19 @@ function va(e) {
|
|
|
4882
4882
|
};
|
|
4883
4883
|
}
|
|
4884
4884
|
var ya = i(function({ children: e, className: t, theme: n, styles: r, projection: i, viewport: o, onViewportChange: c, loading: p = !1, controls: m = !0, tiles: h = ma, ...g }, _) {
|
|
4885
|
-
let v = h === !1 ? [] : h, y = d(null), [b, x] = f(null), [S, C] = f(!1), [w, T] = f(!1), [E, D] = f(0), O = d(null), k = d(null), A = d(!1),
|
|
4886
|
-
|
|
4887
|
-
let
|
|
4885
|
+
let v = h === !1 ? [] : h, y = d(null), [b, x] = f(null), [S, C] = f(!1), [w, T] = f(!1), [E, D] = f(0), O = d(null), k = d(null), A = d(!1), ee = o !== void 0 && c !== void 0, j = d(c);
|
|
4886
|
+
j.current = c;
|
|
4887
|
+
let M = u(() => ({
|
|
4888
4888
|
dark: r?.dark ?? pa.dark,
|
|
4889
4889
|
light: r?.light ?? pa.light
|
|
4890
4890
|
}), [r]);
|
|
4891
4891
|
l(_, () => b, [b]);
|
|
4892
|
-
let
|
|
4892
|
+
let N = a(() => {
|
|
4893
4893
|
k.current &&= (clearTimeout(k.current), null);
|
|
4894
4894
|
}, []);
|
|
4895
4895
|
s(() => {
|
|
4896
4896
|
if (!y.current) return;
|
|
4897
|
-
let e = v[0]?.url ??
|
|
4897
|
+
let e = v[0]?.url ?? M.light;
|
|
4898
4898
|
O.current = e;
|
|
4899
4899
|
let t = new He.Map({
|
|
4900
4900
|
container: y.current,
|
|
@@ -4904,17 +4904,17 @@ var ya = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4904
4904
|
...g,
|
|
4905
4905
|
...o
|
|
4906
4906
|
}), n = () => {
|
|
4907
|
-
|
|
4907
|
+
N(), k.current = setTimeout(() => {
|
|
4908
4908
|
T(!0), i && t.setProjection(i);
|
|
4909
4909
|
}, 100);
|
|
4910
4910
|
}, r = () => C(!0), a = () => {
|
|
4911
|
-
A.current ||
|
|
4911
|
+
A.current || j.current?.(va(t));
|
|
4912
4912
|
};
|
|
4913
4913
|
return t.on("load", r), t.on("styledata", n), t.on("move", a), x(t), () => {
|
|
4914
|
-
|
|
4914
|
+
N(), t.off("load", r), t.off("styledata", n), t.off("move", a), t.remove(), C(!1), T(!1), x(null);
|
|
4915
4915
|
};
|
|
4916
4916
|
}, []), s(() => {
|
|
4917
|
-
if (!b || !
|
|
4917
|
+
if (!b || !ee || !o || b.isMoving()) return;
|
|
4918
4918
|
let e = va(b), t = {
|
|
4919
4919
|
center: o.center ?? e.center,
|
|
4920
4920
|
zoom: o.zoom ?? e.zoom,
|
|
@@ -4924,20 +4924,20 @@ var ya = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4924
4924
|
t.center[0] === e.center[0] && t.center[1] === e.center[1] && t.zoom === e.zoom && t.bearing === e.bearing && t.pitch === e.pitch || (A.current = !0, b.jumpTo(t), A.current = !1);
|
|
4925
4925
|
}, [
|
|
4926
4926
|
b,
|
|
4927
|
-
|
|
4927
|
+
ee,
|
|
4928
4928
|
o
|
|
4929
4929
|
]), s(() => {
|
|
4930
4930
|
if (!b) return;
|
|
4931
|
-
let e = v[E]?.url ?? (n === "dark" ?
|
|
4932
|
-
O.current !== e && (
|
|
4931
|
+
let e = v[E]?.url ?? (n === "dark" ? M.dark : M.light);
|
|
4932
|
+
O.current !== e && (N(), O.current = e, T(!1), b.setStyle(e, { diff: !0 }));
|
|
4933
4933
|
}, [
|
|
4934
4934
|
b,
|
|
4935
4935
|
E,
|
|
4936
4936
|
n,
|
|
4937
|
-
|
|
4938
|
-
|
|
4937
|
+
M,
|
|
4938
|
+
N
|
|
4939
4939
|
]);
|
|
4940
|
-
let
|
|
4940
|
+
let P = u(() => ({
|
|
4941
4941
|
map: b,
|
|
4942
4942
|
isLoaded: S && w
|
|
4943
4943
|
}), [
|
|
@@ -4946,11 +4946,11 @@ var ya = i(function({ children: e, className: t, theme: n, styles: r, projection
|
|
|
4946
4946
|
w
|
|
4947
4947
|
]);
|
|
4948
4948
|
return /* @__PURE__ */ X(ha.Provider, {
|
|
4949
|
-
value:
|
|
4949
|
+
value: P,
|
|
4950
4950
|
children: /* @__PURE__ */ Z("div", {
|
|
4951
4951
|
ref: y,
|
|
4952
4952
|
className: Q("relative h-full w-full", t),
|
|
4953
|
-
children: [(!S || p) && /* @__PURE__ */ X(_a, {}), b && /* @__PURE__ */ Z(
|
|
4953
|
+
children: [(!S || p) && /* @__PURE__ */ X(_a, {}), b && /* @__PURE__ */ Z(Pe, { children: [m && /* @__PURE__ */ X(Na, {
|
|
4954
4954
|
position: "top-right",
|
|
4955
4955
|
tiles: v,
|
|
4956
4956
|
tileIndex: E,
|
|
@@ -5680,11 +5680,11 @@ function Ka({ data: e, clusterMaxZoom: t = 14, clusterRadius: n = 50, clusterCol
|
|
|
5680
5680
|
//#endregion
|
|
5681
5681
|
//#region src/components/ui/progress.tsx
|
|
5682
5682
|
function qa({ className: e, value: t, ...n }) {
|
|
5683
|
-
return /* @__PURE__ */ X(
|
|
5683
|
+
return /* @__PURE__ */ X(we.Root, {
|
|
5684
5684
|
"data-slot": "progress",
|
|
5685
5685
|
className: Q("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted", e),
|
|
5686
5686
|
...n,
|
|
5687
|
-
children: /* @__PURE__ */ X(
|
|
5687
|
+
children: /* @__PURE__ */ X(we.Indicator, {
|
|
5688
5688
|
"data-slot": "progress-indicator",
|
|
5689
5689
|
className: "size-full flex-1 bg-primary transition-all",
|
|
5690
5690
|
style: { transform: `translateX(-${100 - (t || 0)}%)` }
|
|
@@ -5700,7 +5700,7 @@ function Ja({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100,
|
|
|
5700
5700
|
i,
|
|
5701
5701
|
a
|
|
5702
5702
|
]);
|
|
5703
|
-
return /* @__PURE__ */ Z(
|
|
5703
|
+
return /* @__PURE__ */ Z(De.Root, {
|
|
5704
5704
|
"data-slot": "slider",
|
|
5705
5705
|
defaultValue: t,
|
|
5706
5706
|
value: r,
|
|
@@ -5708,14 +5708,14 @@ function Ja({ className: e, defaultValue: t, value: r, min: i = 0, max: a = 100,
|
|
|
5708
5708
|
max: a,
|
|
5709
5709
|
className: Q("relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col", e),
|
|
5710
5710
|
...o,
|
|
5711
|
-
children: [/* @__PURE__ */ X(
|
|
5711
|
+
children: [/* @__PURE__ */ X(De.Track, {
|
|
5712
5712
|
"data-slot": "slider-track",
|
|
5713
5713
|
className: "relative grow overflow-hidden rounded-full bg-muted data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1",
|
|
5714
|
-
children: /* @__PURE__ */ X(
|
|
5714
|
+
children: /* @__PURE__ */ X(De.Range, {
|
|
5715
5715
|
"data-slot": "slider-range",
|
|
5716
5716
|
className: "absolute bg-primary select-none data-horizontal:h-full data-vertical:w-full"
|
|
5717
5717
|
})
|
|
5718
|
-
}), Array.from({ length: s.length }, (e, t) => /* @__PURE__ */ X(
|
|
5718
|
+
}), Array.from({ length: s.length }, (e, t) => /* @__PURE__ */ X(De.Thumb, {
|
|
5719
5719
|
"data-slot": "slider-thumb",
|
|
5720
5720
|
className: "relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"
|
|
5721
5721
|
}, t))]
|
|
@@ -5792,7 +5792,7 @@ function to({ step: e, completed: t = !1, disabled: n = !1, loading: r = !1, cla
|
|
|
5792
5792
|
}
|
|
5793
5793
|
function no({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
5794
5794
|
let { setActiveStep: i } = Qa(), { step: a, isDisabled: o } = $a();
|
|
5795
|
-
return e ? /* @__PURE__ */ X(e ?
|
|
5795
|
+
return e ? /* @__PURE__ */ X(e ? Oe.Root : "span", {
|
|
5796
5796
|
className: t,
|
|
5797
5797
|
"data-slot": "stepper-trigger",
|
|
5798
5798
|
children: n
|
|
@@ -5813,7 +5813,7 @@ function ro({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
5813
5813
|
"data-slot": "stepper-indicator",
|
|
5814
5814
|
"data-state": i,
|
|
5815
5815
|
...r,
|
|
5816
|
-
children: e ? n : /* @__PURE__ */ Z(
|
|
5816
|
+
children: e ? n : /* @__PURE__ */ Z(Pe, { children: [
|
|
5817
5817
|
/* @__PURE__ */ X("span", {
|
|
5818
5818
|
className: "transition-all group-data-[state=completed]/step:scale-0 group-data-loading/step:scale-0 group-data-[state=completed]/step:opacity-0 group-data-loading/step:opacity-0 group-data-loading/step:transition-none",
|
|
5819
5819
|
children: a
|
|
@@ -5858,12 +5858,12 @@ function oo({ className: e, ...t }) {
|
|
|
5858
5858
|
//#endregion
|
|
5859
5859
|
//#region src/components/ui/switch.tsx
|
|
5860
5860
|
function so({ className: e, size: t = "default", ...n }) {
|
|
5861
|
-
return /* @__PURE__ */ X(
|
|
5861
|
+
return /* @__PURE__ */ X(ke.Root, {
|
|
5862
5862
|
"data-slot": "switch",
|
|
5863
5863
|
"data-size": t,
|
|
5864
5864
|
className: Q("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50", e),
|
|
5865
5865
|
...n,
|
|
5866
|
-
children: /* @__PURE__ */ X(
|
|
5866
|
+
children: /* @__PURE__ */ X(ke.Thumb, {
|
|
5867
5867
|
"data-slot": "switch-thumb",
|
|
5868
5868
|
className: "pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"
|
|
5869
5869
|
})
|
|
@@ -5872,14 +5872,14 @@ function so({ className: e, size: t = "default", ...n }) {
|
|
|
5872
5872
|
//#endregion
|
|
5873
5873
|
//#region src/components/ui/tabs.tsx
|
|
5874
5874
|
function co({ className: e, orientation: t = "horizontal", ...n }) {
|
|
5875
|
-
return /* @__PURE__ */ X(
|
|
5875
|
+
return /* @__PURE__ */ X(Ae.Root, {
|
|
5876
5876
|
"data-slot": "tabs",
|
|
5877
5877
|
"data-orientation": t,
|
|
5878
5878
|
className: Q("group/tabs flex gap-2 data-horizontal:flex-col", e),
|
|
5879
5879
|
...n
|
|
5880
5880
|
});
|
|
5881
5881
|
}
|
|
5882
|
-
var lo =
|
|
5882
|
+
var lo = K("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
5883
5883
|
variants: { variant: {
|
|
5884
5884
|
default: "bg-muted",
|
|
5885
5885
|
line: "gap-1 bg-transparent"
|
|
@@ -5887,7 +5887,7 @@ var lo = G("group/tabs-list inline-flex w-fit items-center justify-center rounde
|
|
|
5887
5887
|
defaultVariants: { variant: "default" }
|
|
5888
5888
|
});
|
|
5889
5889
|
function uo({ className: e, variant: t = "default", ...n }) {
|
|
5890
|
-
return /* @__PURE__ */ X(
|
|
5890
|
+
return /* @__PURE__ */ X(Ae.List, {
|
|
5891
5891
|
"data-slot": "tabs-list",
|
|
5892
5892
|
"data-variant": t,
|
|
5893
5893
|
className: Q(lo({ variant: t }), e),
|
|
@@ -5895,14 +5895,14 @@ function uo({ className: e, variant: t = "default", ...n }) {
|
|
|
5895
5895
|
});
|
|
5896
5896
|
}
|
|
5897
5897
|
function fo({ className: e, ...t }) {
|
|
5898
|
-
return /* @__PURE__ */ X(
|
|
5898
|
+
return /* @__PURE__ */ X(Ae.Trigger, {
|
|
5899
5899
|
"data-slot": "tabs-trigger",
|
|
5900
5900
|
className: Q("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", e),
|
|
5901
5901
|
...t
|
|
5902
5902
|
});
|
|
5903
5903
|
}
|
|
5904
5904
|
function po({ className: e, ...t }) {
|
|
5905
|
-
return /* @__PURE__ */ X(
|
|
5905
|
+
return /* @__PURE__ */ X(Ae.Content, {
|
|
5906
5906
|
"data-slot": "tabs-content",
|
|
5907
5907
|
className: Q("flex-1 text-sm outline-none", e),
|
|
5908
5908
|
...t
|
|
@@ -5940,7 +5940,7 @@ function _o({ className: e, ...t }) {
|
|
|
5940
5940
|
});
|
|
5941
5941
|
}
|
|
5942
5942
|
function vo({ asChild: e = !1, className: t, ...n }) {
|
|
5943
|
-
return /* @__PURE__ */ X(e ?
|
|
5943
|
+
return /* @__PURE__ */ X(e ? Oe.Root : "time", {
|
|
5944
5944
|
className: Q("mb-1 block font-medium text-muted-foreground text-xs group-data-[orientation=vertical]/timeline:max-sm:h-4", t),
|
|
5945
5945
|
"data-slot": "timeline-date",
|
|
5946
5946
|
...n
|
|
@@ -5988,7 +5988,7 @@ function Co({ className: e, ...t }) {
|
|
|
5988
5988
|
}
|
|
5989
5989
|
//#endregion
|
|
5990
5990
|
//#region src/components/ui/toggle.tsx
|
|
5991
|
-
var wo =
|
|
5991
|
+
var wo = K("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
5992
5992
|
variants: {
|
|
5993
5993
|
variant: {
|
|
5994
5994
|
default: "bg-transparent",
|
|
@@ -6006,7 +6006,7 @@ var wo = G("group/toggle inline-flex items-center justify-center gap-1 rounded-l
|
|
|
6006
6006
|
}
|
|
6007
6007
|
});
|
|
6008
6008
|
function To({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
6009
|
-
return /* @__PURE__ */ X(
|
|
6009
|
+
return /* @__PURE__ */ X(je.Root, {
|
|
6010
6010
|
"data-slot": "toggle",
|
|
6011
6011
|
className: Q(wo({
|
|
6012
6012
|
variant: t,
|
|
@@ -6025,7 +6025,7 @@ var Eo = n.createContext({
|
|
|
6025
6025
|
orientation: "horizontal"
|
|
6026
6026
|
});
|
|
6027
6027
|
function Do({ className: e, variant: t, size: n, spacing: r = 2, orientation: i = "horizontal", children: a, ...o }) {
|
|
6028
|
-
return /* @__PURE__ */ X(
|
|
6028
|
+
return /* @__PURE__ */ X(Me.Root, {
|
|
6029
6029
|
"data-slot": "toggle-group",
|
|
6030
6030
|
"data-variant": t,
|
|
6031
6031
|
"data-size": n,
|
|
@@ -6047,7 +6047,7 @@ function Do({ className: e, variant: t, size: n, spacing: r = 2, orientation: i
|
|
|
6047
6047
|
}
|
|
6048
6048
|
function Oo({ className: e, children: t, variant: r = "default", size: i = "default", ...a }) {
|
|
6049
6049
|
let o = n.useContext(Eo);
|
|
6050
|
-
return /* @__PURE__ */ X(
|
|
6050
|
+
return /* @__PURE__ */ X(Me.Item, {
|
|
6051
6051
|
"data-slot": "toggle-group-item",
|
|
6052
6052
|
"data-variant": o.variant || r,
|
|
6053
6053
|
"data-size": o.size || i,
|
|
@@ -6063,31 +6063,31 @@ function Oo({ className: e, children: t, variant: r = "default", size: i = "defa
|
|
|
6063
6063
|
//#endregion
|
|
6064
6064
|
//#region src/components/ui/tooltip.tsx
|
|
6065
6065
|
function ko({ delayDuration: e = 0, ...t }) {
|
|
6066
|
-
return /* @__PURE__ */ X(
|
|
6066
|
+
return /* @__PURE__ */ X(Ne.Provider, {
|
|
6067
6067
|
"data-slot": "tooltip-provider",
|
|
6068
6068
|
delayDuration: e,
|
|
6069
6069
|
...t
|
|
6070
6070
|
});
|
|
6071
6071
|
}
|
|
6072
6072
|
function Ao({ ...e }) {
|
|
6073
|
-
return /* @__PURE__ */ X(
|
|
6073
|
+
return /* @__PURE__ */ X(Ne.Root, {
|
|
6074
6074
|
"data-slot": "tooltip",
|
|
6075
6075
|
...e
|
|
6076
6076
|
});
|
|
6077
6077
|
}
|
|
6078
6078
|
function jo({ ...e }) {
|
|
6079
|
-
return /* @__PURE__ */ X(
|
|
6079
|
+
return /* @__PURE__ */ X(Ne.Trigger, {
|
|
6080
6080
|
"data-slot": "tooltip-trigger",
|
|
6081
6081
|
...e
|
|
6082
6082
|
});
|
|
6083
6083
|
}
|
|
6084
6084
|
function Mo({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
6085
|
-
return /* @__PURE__ */ X(
|
|
6085
|
+
return /* @__PURE__ */ X(Ne.Portal, { children: /* @__PURE__ */ Z(Ne.Content, {
|
|
6086
6086
|
"data-slot": "tooltip-content",
|
|
6087
6087
|
sideOffset: t,
|
|
6088
6088
|
className: Q("z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 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 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
6089
6089
|
...r,
|
|
6090
|
-
children: [n, /* @__PURE__ */ X(
|
|
6090
|
+
children: [n, /* @__PURE__ */ X(Ne.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })]
|
|
6091
6091
|
}) });
|
|
6092
6092
|
}
|
|
6093
6093
|
//#endregion
|