shadcn-ui-react 0.7.0 → 0.7.1
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.cjs +833 -621
- package/dist/index.d.cts +805 -12
- package/dist/index.d.ts +805 -12
- package/dist/index.js +839 -629
- package/dist/style.css +585 -18
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -322,32 +322,77 @@ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
|
322
322
|
// src/components/Button/button.tsx
|
|
323
323
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
324
324
|
import { cva as cva3 } from "class-variance-authority";
|
|
325
|
-
import * as React5 from "react";
|
|
326
325
|
import { motion } from "framer-motion";
|
|
327
326
|
import { Loader2 } from "lucide-react";
|
|
328
|
-
import
|
|
327
|
+
import * as React5 from "react";
|
|
328
|
+
import { Fragment, jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
329
329
|
var buttonVariants = cva3(
|
|
330
|
-
|
|
330
|
+
[
|
|
331
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
332
|
+
"rounded-md text-sm font-medium",
|
|
333
|
+
"transition-all duration-200",
|
|
334
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-2",
|
|
335
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
336
|
+
"cursor-pointer select-none",
|
|
337
|
+
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
338
|
+
].join(" "),
|
|
331
339
|
{
|
|
332
340
|
variants: {
|
|
333
341
|
variant: {
|
|
334
|
-
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
342
|
+
default: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
|
|
335
343
|
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
336
|
-
outline: "border border-
|
|
344
|
+
outline: "border border-primary bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
337
345
|
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
338
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
339
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
346
|
+
ghost: "bg-transparent hover:bg-accent hover:text-accent-foreground",
|
|
347
|
+
link: "h-auto p-0 text-primary underline-offset-4 hover:underline shadow-none",
|
|
348
|
+
success: "bg-emerald-600 text-white shadow-sm hover:bg-emerald-700 focus-visible:ring-emerald-500/40",
|
|
349
|
+
warning: "bg-amber-500 text-white shadow-sm hover:bg-amber-600 focus-visible:ring-amber-500/40",
|
|
350
|
+
info: "bg-sky-600 text-white shadow-sm hover:bg-sky-700 focus-visible:ring-sky-500/40",
|
|
351
|
+
dark: "bg-zinc-950 text-white shadow-sm hover:bg-zinc-800 dark:bg-zinc-50 dark:text-zinc-950 dark:hover:bg-zinc-200",
|
|
352
|
+
light: "bg-white text-zinc-900 border border-zinc-200 shadow-sm hover:bg-zinc-50",
|
|
353
|
+
soft: "bg-primary/10 text-primary hover:bg-primary/15 shadow-none",
|
|
354
|
+
softDestructive: "bg-destructive/10 text-destructive hover:bg-destructive/15 shadow-none",
|
|
355
|
+
softSuccess: "bg-emerald-500/10 text-emerald-700 hover:bg-emerald-500/15 dark:text-emerald-400 shadow-none",
|
|
356
|
+
softWarning: "bg-amber-500/10 text-amber-700 hover:bg-amber-500/15 dark:text-amber-400 shadow-none",
|
|
357
|
+
softInfo: "bg-sky-500/10 text-sky-700 hover:bg-sky-500/15 dark:text-sky-400 shadow-none",
|
|
358
|
+
outlineDestructive: "border border-destructive/40 bg-background text-destructive shadow-sm hover:bg-destructive/10",
|
|
359
|
+
outlineSuccess: "border border-emerald-500/40 bg-background text-emerald-700 shadow-sm hover:bg-emerald-500/10 dark:text-emerald-400",
|
|
360
|
+
outlineWarning: "border border-amber-500/40 bg-background text-amber-700 shadow-sm hover:bg-amber-500/10 dark:text-amber-400",
|
|
361
|
+
outlineInfo: "border border-sky-500/40 bg-background text-sky-700 shadow-sm hover:bg-sky-500/10 dark:text-sky-400",
|
|
362
|
+
gradient: "bg-gradient-to-r from-primary via-primary/90 to-primary/70 text-primary-foreground shadow-md hover:shadow-lg hover:brightness-105",
|
|
363
|
+
gradientSuccess: "bg-gradient-to-r from-emerald-600 to-teal-500 text-white shadow-md hover:shadow-lg hover:brightness-105",
|
|
364
|
+
gradientWarning: "bg-gradient-to-r from-amber-500 to-orange-500 text-white shadow-md hover:shadow-lg hover:brightness-105",
|
|
365
|
+
gradientDanger: "bg-gradient-to-r from-red-600 to-rose-500 text-white shadow-md hover:shadow-lg hover:brightness-105",
|
|
366
|
+
premium: "bg-gradient-to-r from-violet-600 via-fuchsia-600 to-pink-600 text-white shadow-lg shadow-fuchsia-500/20 hover:shadow-xl hover:shadow-fuchsia-500/30 hover:brightness-110",
|
|
367
|
+
glass: "border border-white/20 bg-white/10 text-foreground shadow-sm backdrop-blur-md hover:bg-white/20 dark:border-white/10 dark:bg-white/5 dark:hover:bg-white/10",
|
|
368
|
+
neon: "bg-zinc-950 text-white shadow-[0_0_0_1px_rgba(255,255,255,0.08),0_0_24px_rgba(59,130,246,0.45)] hover:shadow-[0_0_0_1px_rgba(255,255,255,0.12),0_0_32px_rgba(59,130,246,0.65)]",
|
|
369
|
+
dangerGhost: "bg-transparent text-destructive hover:bg-destructive/10",
|
|
370
|
+
successGhost: "bg-transparent text-emerald-700 hover:bg-emerald-500/10 dark:text-emerald-400",
|
|
371
|
+
warningGhost: "bg-transparent text-amber-700 hover:bg-amber-500/10 dark:text-amber-400",
|
|
372
|
+
infoGhost: "bg-transparent text-sky-700 hover:bg-sky-500/10 dark:text-sky-400"
|
|
340
373
|
},
|
|
341
374
|
size: {
|
|
342
375
|
default: "h-9 px-4 py-2",
|
|
376
|
+
xs: "h-7 rounded-md px-2.5 text-xs",
|
|
343
377
|
sm: "h-8 rounded-md px-3 text-xs",
|
|
344
378
|
lg: "h-10 rounded-md px-8",
|
|
345
|
-
|
|
379
|
+
xl: "h-12 rounded-lg px-10 text-base",
|
|
380
|
+
icon: "h-9 w-9",
|
|
381
|
+
iconSm: "h-8 w-8",
|
|
382
|
+
iconLg: "h-10 w-10"
|
|
383
|
+
},
|
|
384
|
+
rounded: {
|
|
385
|
+
default: "rounded-md",
|
|
386
|
+
sm: "rounded-sm",
|
|
387
|
+
lg: "rounded-lg",
|
|
388
|
+
xl: "rounded-xl",
|
|
389
|
+
full: "rounded-full"
|
|
346
390
|
}
|
|
347
391
|
},
|
|
348
392
|
defaultVariants: {
|
|
349
393
|
variant: "default",
|
|
350
|
-
size: "default"
|
|
394
|
+
size: "default",
|
|
395
|
+
rounded: "default"
|
|
351
396
|
}
|
|
352
397
|
}
|
|
353
398
|
);
|
|
@@ -357,49 +402,212 @@ var Button = React5.forwardRef(
|
|
|
357
402
|
className,
|
|
358
403
|
variant,
|
|
359
404
|
size,
|
|
405
|
+
rounded,
|
|
360
406
|
asChild = false,
|
|
361
407
|
loading = false,
|
|
362
408
|
loaderClassName,
|
|
363
409
|
children,
|
|
364
410
|
scale = 0.95,
|
|
365
|
-
duration = 0.1
|
|
411
|
+
duration = 0.1,
|
|
412
|
+
disabled,
|
|
413
|
+
type = "button",
|
|
414
|
+
whileTap,
|
|
415
|
+
transition
|
|
366
416
|
} = _b, props = __objRest(_b, [
|
|
367
417
|
"className",
|
|
368
418
|
"variant",
|
|
369
419
|
"size",
|
|
420
|
+
"rounded",
|
|
370
421
|
"asChild",
|
|
371
422
|
"loading",
|
|
372
423
|
"loaderClassName",
|
|
373
424
|
"children",
|
|
374
425
|
"scale",
|
|
375
|
-
"duration"
|
|
426
|
+
"duration",
|
|
427
|
+
"disabled",
|
|
428
|
+
"type",
|
|
429
|
+
"whileTap",
|
|
430
|
+
"transition"
|
|
376
431
|
]);
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
432
|
+
const classes = cn(
|
|
433
|
+
buttonVariants({ variant, size, rounded }),
|
|
434
|
+
loading && "relative",
|
|
435
|
+
className
|
|
436
|
+
);
|
|
437
|
+
const content = /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
438
|
+
loading ? /* @__PURE__ */ jsx6(
|
|
439
|
+
Loader2,
|
|
440
|
+
{
|
|
441
|
+
className: cn("size-4 animate-spin", loaderClassName),
|
|
442
|
+
"aria-hidden": "true"
|
|
443
|
+
}
|
|
444
|
+
) : null,
|
|
445
|
+
/* @__PURE__ */ jsx6("span", { className: cn(loading && "opacity-90"), children })
|
|
446
|
+
] });
|
|
447
|
+
if (asChild) {
|
|
448
|
+
return /* @__PURE__ */ jsx6(
|
|
449
|
+
Slot2,
|
|
450
|
+
__spreadProps(__spreadValues({
|
|
451
|
+
ref,
|
|
452
|
+
className: classes,
|
|
453
|
+
"aria-disabled": loading || disabled,
|
|
454
|
+
"data-loading": loading ? "true" : void 0
|
|
455
|
+
}, props), {
|
|
395
456
|
children
|
|
396
|
-
|
|
457
|
+
})
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
return /* @__PURE__ */ jsx6(
|
|
461
|
+
motion.button,
|
|
462
|
+
__spreadProps(__spreadValues({
|
|
463
|
+
ref,
|
|
464
|
+
type,
|
|
465
|
+
className: classes,
|
|
466
|
+
disabled: loading || disabled,
|
|
467
|
+
"data-loading": loading ? "true" : void 0,
|
|
468
|
+
whileTap: whileTap != null ? whileTap : { scale },
|
|
469
|
+
transition: transition != null ? transition : { duration }
|
|
470
|
+
}, props), {
|
|
471
|
+
children: content
|
|
397
472
|
})
|
|
398
473
|
);
|
|
399
474
|
}
|
|
400
475
|
);
|
|
401
476
|
Button.displayName = "Button";
|
|
402
477
|
|
|
478
|
+
// src/components/Button/icon-button.tsx
|
|
479
|
+
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
480
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
481
|
+
import { motion as motion2 } from "framer-motion";
|
|
482
|
+
import { Loader2 as Loader22 } from "lucide-react";
|
|
483
|
+
import * as React6 from "react";
|
|
484
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
485
|
+
var iconButtonVariants = cva4(
|
|
486
|
+
[
|
|
487
|
+
"inline-flex items-center justify-center",
|
|
488
|
+
"shrink-0 whitespace-nowrap",
|
|
489
|
+
"font-medium",
|
|
490
|
+
"transition-all duration-200",
|
|
491
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-2",
|
|
492
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
493
|
+
"cursor-pointer select-none",
|
|
494
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
495
|
+
].join(" "),
|
|
496
|
+
{
|
|
497
|
+
variants: {
|
|
498
|
+
variant: {
|
|
499
|
+
default: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
|
|
500
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
501
|
+
outline: "border border-primary bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
502
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
503
|
+
ghost: "bg-transparent text-foreground shadow-none hover:bg-accent hover:text-accent-foreground",
|
|
504
|
+
soft: "bg-primary/10 text-primary shadow-none hover:bg-primary/15",
|
|
505
|
+
softDestructive: "bg-destructive/10 text-destructive shadow-none hover:bg-destructive/15",
|
|
506
|
+
success: "bg-emerald-600 text-white shadow-sm hover:bg-emerald-700 focus-visible:ring-emerald-500/40",
|
|
507
|
+
softSuccess: "bg-emerald-500/10 text-emerald-700 shadow-none hover:bg-emerald-500/15 dark:text-emerald-400",
|
|
508
|
+
warning: "bg-amber-500 text-white shadow-sm hover:bg-amber-600 focus-visible:ring-amber-500/40",
|
|
509
|
+
softWarning: "bg-amber-500/10 text-amber-700 shadow-none hover:bg-amber-500/15 dark:text-amber-400",
|
|
510
|
+
info: "bg-sky-600 text-white shadow-sm hover:bg-sky-700 focus-visible:ring-sky-500/40",
|
|
511
|
+
softInfo: "bg-sky-500/10 text-sky-700 shadow-none hover:bg-sky-500/15 dark:text-sky-400",
|
|
512
|
+
glass: "border border-white/20 bg-white/10 text-foreground shadow-sm backdrop-blur-md hover:bg-white/20 dark:border-white/10 dark:bg-white/5 dark:hover:bg-white/10"
|
|
513
|
+
},
|
|
514
|
+
size: {
|
|
515
|
+
xs: "h-7 w-7 [&_svg]:size-3.5",
|
|
516
|
+
sm: "h-8 w-8 [&_svg]:size-4",
|
|
517
|
+
default: "h-9 w-9 [&_svg]:size-4",
|
|
518
|
+
lg: "h-10 w-10 [&_svg]:size-5",
|
|
519
|
+
xl: "h-12 w-12 [&_svg]:size-5"
|
|
520
|
+
},
|
|
521
|
+
rounded: {
|
|
522
|
+
default: "rounded-md",
|
|
523
|
+
sm: "rounded-sm",
|
|
524
|
+
lg: "rounded-lg",
|
|
525
|
+
xl: "rounded-xl",
|
|
526
|
+
full: "rounded-full"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
defaultVariants: {
|
|
530
|
+
variant: "ghost",
|
|
531
|
+
size: "default",
|
|
532
|
+
rounded: "default"
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
);
|
|
536
|
+
var IconButton = React6.forwardRef(
|
|
537
|
+
(_a, ref) => {
|
|
538
|
+
var _b = _a, {
|
|
539
|
+
className,
|
|
540
|
+
variant,
|
|
541
|
+
size,
|
|
542
|
+
rounded,
|
|
543
|
+
asChild = false,
|
|
544
|
+
loading = false,
|
|
545
|
+
loaderClassName,
|
|
546
|
+
children,
|
|
547
|
+
scale = 0.95,
|
|
548
|
+
duration = 0.1,
|
|
549
|
+
disabled,
|
|
550
|
+
type = "button",
|
|
551
|
+
whileTap,
|
|
552
|
+
transition
|
|
553
|
+
} = _b, props = __objRest(_b, [
|
|
554
|
+
"className",
|
|
555
|
+
"variant",
|
|
556
|
+
"size",
|
|
557
|
+
"rounded",
|
|
558
|
+
"asChild",
|
|
559
|
+
"loading",
|
|
560
|
+
"loaderClassName",
|
|
561
|
+
"children",
|
|
562
|
+
"scale",
|
|
563
|
+
"duration",
|
|
564
|
+
"disabled",
|
|
565
|
+
"type",
|
|
566
|
+
"whileTap",
|
|
567
|
+
"transition"
|
|
568
|
+
]);
|
|
569
|
+
const classes = cn(
|
|
570
|
+
iconButtonVariants({ variant, size, rounded }),
|
|
571
|
+
loading && "relative",
|
|
572
|
+
className
|
|
573
|
+
);
|
|
574
|
+
if (asChild) {
|
|
575
|
+
return /* @__PURE__ */ jsx7(
|
|
576
|
+
Slot3,
|
|
577
|
+
__spreadProps(__spreadValues({
|
|
578
|
+
ref,
|
|
579
|
+
className: classes,
|
|
580
|
+
"aria-disabled": loading || disabled,
|
|
581
|
+
"data-loading": loading ? "true" : void 0
|
|
582
|
+
}, props), {
|
|
583
|
+
children
|
|
584
|
+
})
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
return /* @__PURE__ */ jsx7(
|
|
588
|
+
motion2.button,
|
|
589
|
+
__spreadProps(__spreadValues({
|
|
590
|
+
ref,
|
|
591
|
+
type,
|
|
592
|
+
className: classes,
|
|
593
|
+
disabled: loading || disabled,
|
|
594
|
+
"data-loading": loading ? "true" : void 0,
|
|
595
|
+
whileTap: whileTap != null ? whileTap : { scale },
|
|
596
|
+
transition: transition != null ? transition : { duration }
|
|
597
|
+
}, props), {
|
|
598
|
+
children: loading ? /* @__PURE__ */ jsx7(
|
|
599
|
+
Loader22,
|
|
600
|
+
{
|
|
601
|
+
className: cn("animate-spin", loaderClassName),
|
|
602
|
+
"aria-hidden": "true"
|
|
603
|
+
}
|
|
604
|
+
) : children
|
|
605
|
+
})
|
|
606
|
+
);
|
|
607
|
+
}
|
|
608
|
+
);
|
|
609
|
+
IconButton.displayName = "IconButton";
|
|
610
|
+
|
|
403
611
|
// node_modules/@date-fns/tz/tzName/index.js
|
|
404
612
|
function tzName(timeZone, date, format2 = "long") {
|
|
405
613
|
return new Intl.DateTimeFormat("en-US", {
|
|
@@ -2891,56 +3099,56 @@ __export(custom_components_exports, {
|
|
|
2891
3099
|
});
|
|
2892
3100
|
|
|
2893
3101
|
// node_modules/react-day-picker/dist/esm/components/Button.js
|
|
2894
|
-
import
|
|
3102
|
+
import React7 from "react";
|
|
2895
3103
|
function Button2(props) {
|
|
2896
|
-
return
|
|
3104
|
+
return React7.createElement("button", __spreadValues({}, props));
|
|
2897
3105
|
}
|
|
2898
3106
|
|
|
2899
3107
|
// node_modules/react-day-picker/dist/esm/components/CaptionLabel.js
|
|
2900
|
-
import
|
|
3108
|
+
import React8 from "react";
|
|
2901
3109
|
function CaptionLabel(props) {
|
|
2902
|
-
return
|
|
3110
|
+
return React8.createElement("span", __spreadValues({}, props));
|
|
2903
3111
|
}
|
|
2904
3112
|
|
|
2905
3113
|
// node_modules/react-day-picker/dist/esm/components/Chevron.js
|
|
2906
|
-
import
|
|
3114
|
+
import React9 from "react";
|
|
2907
3115
|
function Chevron(props) {
|
|
2908
3116
|
const { size = 24, orientation = "left", className } = props;
|
|
2909
3117
|
return (
|
|
2910
3118
|
// biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
|
|
2911
|
-
|
|
3119
|
+
React9.createElement(
|
|
2912
3120
|
"svg",
|
|
2913
3121
|
{ className, width: size, height: size, viewBox: "0 0 24 24" },
|
|
2914
|
-
orientation === "up" &&
|
|
2915
|
-
orientation === "down" &&
|
|
2916
|
-
orientation === "left" &&
|
|
2917
|
-
orientation === "right" &&
|
|
3122
|
+
orientation === "up" && React9.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
|
|
3123
|
+
orientation === "down" && React9.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
|
|
3124
|
+
orientation === "left" && React9.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
|
|
3125
|
+
orientation === "right" && React9.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
|
|
2918
3126
|
)
|
|
2919
3127
|
);
|
|
2920
3128
|
}
|
|
2921
3129
|
|
|
2922
3130
|
// node_modules/react-day-picker/dist/esm/components/Day.js
|
|
2923
|
-
import
|
|
3131
|
+
import React10 from "react";
|
|
2924
3132
|
function Day(props) {
|
|
2925
3133
|
const _a = props, { day, modifiers } = _a, tdProps = __objRest(_a, ["day", "modifiers"]);
|
|
2926
|
-
return
|
|
3134
|
+
return React10.createElement("td", __spreadValues({}, tdProps));
|
|
2927
3135
|
}
|
|
2928
3136
|
|
|
2929
3137
|
// node_modules/react-day-picker/dist/esm/components/DayButton.js
|
|
2930
|
-
import
|
|
3138
|
+
import React11 from "react";
|
|
2931
3139
|
function DayButton(props) {
|
|
2932
3140
|
const _a = props, { day, modifiers } = _a, buttonProps = __objRest(_a, ["day", "modifiers"]);
|
|
2933
|
-
const ref =
|
|
2934
|
-
|
|
3141
|
+
const ref = React11.useRef(null);
|
|
3142
|
+
React11.useEffect(() => {
|
|
2935
3143
|
var _a2;
|
|
2936
3144
|
if (modifiers.focused)
|
|
2937
3145
|
(_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
2938
3146
|
}, [modifiers.focused]);
|
|
2939
|
-
return
|
|
3147
|
+
return React11.createElement("button", __spreadValues({ ref }, buttonProps));
|
|
2940
3148
|
}
|
|
2941
3149
|
|
|
2942
3150
|
// node_modules/react-day-picker/dist/esm/components/Dropdown.js
|
|
2943
|
-
import
|
|
3151
|
+
import React12 from "react";
|
|
2944
3152
|
|
|
2945
3153
|
// node_modules/react-day-picker/dist/esm/UI.js
|
|
2946
3154
|
var UI;
|
|
@@ -3002,59 +3210,59 @@ function Dropdown(props) {
|
|
|
3002
3210
|
const _a = props, { options, className, components, classNames } = _a, selectProps = __objRest(_a, ["options", "className", "components", "classNames"]);
|
|
3003
3211
|
const cssClassSelect = [classNames[UI.Dropdown], className].join(" ");
|
|
3004
3212
|
const selectedOption = options == null ? void 0 : options.find(({ value }) => value === selectProps.value);
|
|
3005
|
-
return
|
|
3213
|
+
return React12.createElement(
|
|
3006
3214
|
"span",
|
|
3007
3215
|
{ "data-disabled": selectProps.disabled, className: classNames[UI.DropdownRoot] },
|
|
3008
|
-
|
|
3009
|
-
|
|
3216
|
+
React12.createElement(components.Select, __spreadValues({ className: cssClassSelect }, selectProps), options == null ? void 0 : options.map(({ value, label, disabled }) => React12.createElement(components.Option, { key: value, value, disabled }, label))),
|
|
3217
|
+
React12.createElement(
|
|
3010
3218
|
"span",
|
|
3011
3219
|
{ className: classNames[UI.CaptionLabel], "aria-hidden": true },
|
|
3012
3220
|
selectedOption == null ? void 0 : selectedOption.label,
|
|
3013
|
-
|
|
3221
|
+
React12.createElement(components.Chevron, { orientation: "down", size: 18, className: classNames[UI.Chevron] })
|
|
3014
3222
|
)
|
|
3015
3223
|
);
|
|
3016
3224
|
}
|
|
3017
3225
|
|
|
3018
3226
|
// node_modules/react-day-picker/dist/esm/components/DropdownNav.js
|
|
3019
|
-
import
|
|
3227
|
+
import React13 from "react";
|
|
3020
3228
|
function DropdownNav(props) {
|
|
3021
|
-
return
|
|
3229
|
+
return React13.createElement("div", __spreadValues({}, props));
|
|
3022
3230
|
}
|
|
3023
3231
|
|
|
3024
3232
|
// node_modules/react-day-picker/dist/esm/components/Footer.js
|
|
3025
|
-
import
|
|
3233
|
+
import React14 from "react";
|
|
3026
3234
|
function Footer(props) {
|
|
3027
|
-
return
|
|
3235
|
+
return React14.createElement("div", __spreadValues({}, props));
|
|
3028
3236
|
}
|
|
3029
3237
|
|
|
3030
3238
|
// node_modules/react-day-picker/dist/esm/components/Month.js
|
|
3031
|
-
import
|
|
3239
|
+
import React15 from "react";
|
|
3032
3240
|
function Month(props) {
|
|
3033
3241
|
const _a = props, { calendarMonth, displayIndex } = _a, divProps = __objRest(_a, ["calendarMonth", "displayIndex"]);
|
|
3034
|
-
return
|
|
3242
|
+
return React15.createElement("div", __spreadValues({}, divProps), props.children);
|
|
3035
3243
|
}
|
|
3036
3244
|
|
|
3037
3245
|
// node_modules/react-day-picker/dist/esm/components/MonthCaption.js
|
|
3038
|
-
import
|
|
3246
|
+
import React16 from "react";
|
|
3039
3247
|
function MonthCaption(props) {
|
|
3040
3248
|
const _a = props, { calendarMonth, displayIndex } = _a, divProps = __objRest(_a, ["calendarMonth", "displayIndex"]);
|
|
3041
|
-
return
|
|
3249
|
+
return React16.createElement("div", __spreadValues({}, divProps));
|
|
3042
3250
|
}
|
|
3043
3251
|
|
|
3044
3252
|
// node_modules/react-day-picker/dist/esm/components/MonthGrid.js
|
|
3045
|
-
import
|
|
3253
|
+
import React17 from "react";
|
|
3046
3254
|
function MonthGrid(props) {
|
|
3047
|
-
return
|
|
3255
|
+
return React17.createElement("table", __spreadValues({}, props));
|
|
3048
3256
|
}
|
|
3049
3257
|
|
|
3050
3258
|
// node_modules/react-day-picker/dist/esm/components/Months.js
|
|
3051
|
-
import
|
|
3259
|
+
import React18 from "react";
|
|
3052
3260
|
function Months(props) {
|
|
3053
|
-
return
|
|
3261
|
+
return React18.createElement("div", __spreadValues({}, props));
|
|
3054
3262
|
}
|
|
3055
3263
|
|
|
3056
3264
|
// node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
|
|
3057
|
-
import
|
|
3265
|
+
import React19 from "react";
|
|
3058
3266
|
|
|
3059
3267
|
// node_modules/react-day-picker/dist/esm/useDayPicker.js
|
|
3060
3268
|
import { createContext, useContext } from "react";
|
|
@@ -3070,11 +3278,11 @@ function useDayPicker() {
|
|
|
3070
3278
|
// node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
|
|
3071
3279
|
function MonthsDropdown(props) {
|
|
3072
3280
|
const { components } = useDayPicker();
|
|
3073
|
-
return
|
|
3281
|
+
return React19.createElement(components.Dropdown, __spreadValues({}, props));
|
|
3074
3282
|
}
|
|
3075
3283
|
|
|
3076
3284
|
// node_modules/react-day-picker/dist/esm/components/Nav.js
|
|
3077
|
-
import
|
|
3285
|
+
import React20, { useCallback } from "react";
|
|
3078
3286
|
function Nav(props) {
|
|
3079
3287
|
const _a = props, { onPreviousClick, onNextClick, previousMonth, nextMonth } = _a, navProps = __objRest(_a, ["onPreviousClick", "onNextClick", "previousMonth", "nextMonth"]);
|
|
3080
3288
|
const { components, classNames, labels: { labelPrevious: labelPrevious2, labelNext: labelNext2 } } = useDayPicker();
|
|
@@ -3088,106 +3296,106 @@ function Nav(props) {
|
|
|
3088
3296
|
onPreviousClick == null ? void 0 : onPreviousClick(e);
|
|
3089
3297
|
}
|
|
3090
3298
|
}, [previousMonth, onPreviousClick]);
|
|
3091
|
-
return
|
|
3299
|
+
return React20.createElement(
|
|
3092
3300
|
"nav",
|
|
3093
3301
|
__spreadValues({}, navProps),
|
|
3094
|
-
|
|
3302
|
+
React20.createElement(
|
|
3095
3303
|
components.PreviousMonthButton,
|
|
3096
3304
|
{ type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick },
|
|
3097
|
-
|
|
3305
|
+
React20.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: "left" })
|
|
3098
3306
|
),
|
|
3099
|
-
|
|
3307
|
+
React20.createElement(
|
|
3100
3308
|
components.NextMonthButton,
|
|
3101
3309
|
{ type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick },
|
|
3102
|
-
|
|
3310
|
+
React20.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, orientation: "right", className: classNames[UI.Chevron] })
|
|
3103
3311
|
)
|
|
3104
3312
|
);
|
|
3105
3313
|
}
|
|
3106
3314
|
|
|
3107
3315
|
// node_modules/react-day-picker/dist/esm/components/NextMonthButton.js
|
|
3108
|
-
import
|
|
3316
|
+
import React21 from "react";
|
|
3109
3317
|
function NextMonthButton(props) {
|
|
3110
3318
|
const { components } = useDayPicker();
|
|
3111
|
-
return
|
|
3319
|
+
return React21.createElement(components.Button, __spreadValues({}, props));
|
|
3112
3320
|
}
|
|
3113
3321
|
|
|
3114
3322
|
// node_modules/react-day-picker/dist/esm/components/Option.js
|
|
3115
|
-
import
|
|
3323
|
+
import React22 from "react";
|
|
3116
3324
|
function Option(props) {
|
|
3117
|
-
return
|
|
3325
|
+
return React22.createElement("option", __spreadValues({}, props));
|
|
3118
3326
|
}
|
|
3119
3327
|
|
|
3120
3328
|
// node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js
|
|
3121
|
-
import
|
|
3329
|
+
import React23 from "react";
|
|
3122
3330
|
function PreviousMonthButton(props) {
|
|
3123
3331
|
const { components } = useDayPicker();
|
|
3124
|
-
return
|
|
3332
|
+
return React23.createElement(components.Button, __spreadValues({}, props));
|
|
3125
3333
|
}
|
|
3126
3334
|
|
|
3127
3335
|
// node_modules/react-day-picker/dist/esm/components/Root.js
|
|
3128
|
-
import
|
|
3336
|
+
import React24 from "react";
|
|
3129
3337
|
function Root4(props) {
|
|
3130
3338
|
const _a = props, { rootRef } = _a, rest = __objRest(_a, ["rootRef"]);
|
|
3131
|
-
return
|
|
3339
|
+
return React24.createElement("div", __spreadProps(__spreadValues({}, rest), { ref: rootRef }));
|
|
3132
3340
|
}
|
|
3133
3341
|
|
|
3134
3342
|
// node_modules/react-day-picker/dist/esm/components/Select.js
|
|
3135
|
-
import
|
|
3343
|
+
import React25 from "react";
|
|
3136
3344
|
function Select(props) {
|
|
3137
|
-
return
|
|
3345
|
+
return React25.createElement("select", __spreadValues({}, props));
|
|
3138
3346
|
}
|
|
3139
3347
|
|
|
3140
3348
|
// node_modules/react-day-picker/dist/esm/components/Week.js
|
|
3141
|
-
import
|
|
3349
|
+
import React26 from "react";
|
|
3142
3350
|
function Week(props) {
|
|
3143
3351
|
const _a = props, { week } = _a, trProps = __objRest(_a, ["week"]);
|
|
3144
|
-
return
|
|
3352
|
+
return React26.createElement("tr", __spreadValues({}, trProps));
|
|
3145
3353
|
}
|
|
3146
3354
|
|
|
3147
3355
|
// node_modules/react-day-picker/dist/esm/components/Weekday.js
|
|
3148
|
-
import
|
|
3356
|
+
import React27 from "react";
|
|
3149
3357
|
function Weekday(props) {
|
|
3150
|
-
return
|
|
3358
|
+
return React27.createElement("th", __spreadValues({}, props));
|
|
3151
3359
|
}
|
|
3152
3360
|
|
|
3153
3361
|
// node_modules/react-day-picker/dist/esm/components/Weekdays.js
|
|
3154
|
-
import
|
|
3362
|
+
import React28 from "react";
|
|
3155
3363
|
function Weekdays(props) {
|
|
3156
|
-
return
|
|
3364
|
+
return React28.createElement(
|
|
3157
3365
|
"thead",
|
|
3158
3366
|
{ "aria-hidden": true },
|
|
3159
|
-
|
|
3367
|
+
React28.createElement("tr", __spreadValues({}, props))
|
|
3160
3368
|
);
|
|
3161
3369
|
}
|
|
3162
3370
|
|
|
3163
3371
|
// node_modules/react-day-picker/dist/esm/components/WeekNumber.js
|
|
3164
|
-
import
|
|
3372
|
+
import React29 from "react";
|
|
3165
3373
|
function WeekNumber(props) {
|
|
3166
3374
|
const _a = props, { week } = _a, thProps = __objRest(_a, ["week"]);
|
|
3167
|
-
return
|
|
3375
|
+
return React29.createElement("th", __spreadValues({}, thProps));
|
|
3168
3376
|
}
|
|
3169
3377
|
|
|
3170
3378
|
// node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js
|
|
3171
|
-
import
|
|
3379
|
+
import React30 from "react";
|
|
3172
3380
|
function WeekNumberHeader(props) {
|
|
3173
|
-
return
|
|
3381
|
+
return React30.createElement("th", __spreadValues({}, props));
|
|
3174
3382
|
}
|
|
3175
3383
|
|
|
3176
3384
|
// node_modules/react-day-picker/dist/esm/components/Weeks.js
|
|
3177
|
-
import
|
|
3385
|
+
import React31 from "react";
|
|
3178
3386
|
function Weeks(props) {
|
|
3179
|
-
return
|
|
3387
|
+
return React31.createElement("tbody", __spreadValues({}, props));
|
|
3180
3388
|
}
|
|
3181
3389
|
|
|
3182
3390
|
// node_modules/react-day-picker/dist/esm/components/YearsDropdown.js
|
|
3183
|
-
import
|
|
3391
|
+
import React32 from "react";
|
|
3184
3392
|
function YearsDropdown(props) {
|
|
3185
3393
|
const { components } = useDayPicker();
|
|
3186
|
-
return
|
|
3394
|
+
return React32.createElement(components.Dropdown, __spreadValues({}, props));
|
|
3187
3395
|
}
|
|
3188
3396
|
|
|
3189
3397
|
// node_modules/react-day-picker/dist/esm/DayPicker.js
|
|
3190
|
-
import
|
|
3398
|
+
import React33, { useCallback as useCallback2, useMemo as useMemo2, useRef as useRef2 } from "react";
|
|
3191
3399
|
|
|
3192
3400
|
// node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
|
|
3193
3401
|
function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {
|
|
@@ -4842,18 +5050,18 @@ function DayPicker(initialProps) {
|
|
|
4842
5050
|
labels,
|
|
4843
5051
|
formatters: formatters2
|
|
4844
5052
|
};
|
|
4845
|
-
return
|
|
5053
|
+
return React33.createElement(
|
|
4846
5054
|
dayPickerContext.Provider,
|
|
4847
5055
|
{ value: contextValue },
|
|
4848
|
-
|
|
5056
|
+
React33.createElement(
|
|
4849
5057
|
components.Root,
|
|
4850
5058
|
__spreadValues({ rootRef: props.animate ? rootElRef : void 0, className, style, dir: props.dir, id: props.id, lang: (_c = props.lang) != null ? _c : locale.code, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"] }, dataAttributes),
|
|
4851
|
-
|
|
5059
|
+
React33.createElement(
|
|
4852
5060
|
components.Months,
|
|
4853
5061
|
{ className: classNames[UI.Months], style: styles == null ? void 0 : styles[UI.Months] },
|
|
4854
|
-
!props.hideNavigation && !navLayout &&
|
|
5062
|
+
!props.hideNavigation && !navLayout && React33.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles == null ? void 0 : styles[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
|
|
4855
5063
|
months.map((calendarMonth, displayIndex) => {
|
|
4856
|
-
return
|
|
5064
|
+
return React33.createElement(
|
|
4857
5065
|
components.Month,
|
|
4858
5066
|
{
|
|
4859
5067
|
"data-animated-month": props.animate ? "true" : void 0,
|
|
@@ -4864,21 +5072,21 @@ function DayPicker(initialProps) {
|
|
|
4864
5072
|
displayIndex,
|
|
4865
5073
|
calendarMonth
|
|
4866
5074
|
},
|
|
4867
|
-
navLayout === "around" && !props.hideNavigation && displayIndex === 0 &&
|
|
5075
|
+
navLayout === "around" && !props.hideNavigation && displayIndex === 0 && React33.createElement(
|
|
4868
5076
|
components.PreviousMonthButton,
|
|
4869
5077
|
{ type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
4870
|
-
|
|
5078
|
+
React33.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" })
|
|
4871
5079
|
),
|
|
4872
|
-
|
|
5080
|
+
React33.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : void 0, className: classNames[UI.MonthCaption], style: styles == null ? void 0 : styles[UI.MonthCaption], calendarMonth, displayIndex }, (captionLayout == null ? void 0 : captionLayout.startsWith("dropdown")) ? React33.createElement(
|
|
4873
5081
|
components.DropdownNav,
|
|
4874
5082
|
{ className: classNames[UI.Dropdowns], style: styles == null ? void 0 : styles[UI.Dropdowns] },
|
|
4875
5083
|
(() => {
|
|
4876
|
-
const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ?
|
|
4877
|
-
const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ?
|
|
5084
|
+
const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ? React33.createElement(components.MonthsDropdown, { key: "month", className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters2, dateLib), style: styles == null ? void 0 : styles[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) }) : React33.createElement("span", { key: "month" }, formatMonthDropdown2(calendarMonth.date, dateLib));
|
|
5085
|
+
const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React33.createElement(components.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters2, dateLib, Boolean(props.reverseYears)), style: styles == null ? void 0 : styles[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : React33.createElement("span", { key: "year" }, formatYearDropdown2(calendarMonth.date, dateLib));
|
|
4878
5086
|
const controls = dateLib.getMonthYearOrder() === "year-first" ? [yearControl, monthControl] : [monthControl, yearControl];
|
|
4879
5087
|
return controls;
|
|
4880
5088
|
})(),
|
|
4881
|
-
|
|
5089
|
+
React33.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
4882
5090
|
border: 0,
|
|
4883
5091
|
clip: "rect(0 0 0 0)",
|
|
4884
5092
|
height: "1px",
|
|
@@ -4890,27 +5098,27 @@ function DayPicker(initialProps) {
|
|
|
4890
5098
|
whiteSpace: "nowrap",
|
|
4891
5099
|
wordWrap: "normal"
|
|
4892
5100
|
} }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))
|
|
4893
|
-
) :
|
|
4894
|
-
navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 &&
|
|
5101
|
+
) : React33.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))),
|
|
5102
|
+
navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 && React33.createElement(
|
|
4895
5103
|
components.NextMonthButton,
|
|
4896
5104
|
{ type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
4897
|
-
|
|
5105
|
+
React33.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" })
|
|
4898
5106
|
),
|
|
4899
|
-
displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation &&
|
|
4900
|
-
|
|
5107
|
+
displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation && React33.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles == null ? void 0 : styles[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
|
|
5108
|
+
React33.createElement(
|
|
4901
5109
|
components.MonthGrid,
|
|
4902
5110
|
{ role: "grid", "aria-multiselectable": mode === "multiple" || mode === "range", "aria-label": labelGrid2(calendarMonth.date, dateLib.options, dateLib) || void 0, className: classNames[UI.MonthGrid], style: styles == null ? void 0 : styles[UI.MonthGrid] },
|
|
4903
|
-
!props.hideWeekdays &&
|
|
5111
|
+
!props.hideWeekdays && React33.createElement(
|
|
4904
5112
|
components.Weekdays,
|
|
4905
5113
|
{ "data-animated-weekdays": props.animate ? "true" : void 0, className: classNames[UI.Weekdays], style: styles == null ? void 0 : styles[UI.Weekdays] },
|
|
4906
|
-
showWeekNumber &&
|
|
4907
|
-
weekdays.map((weekday) =>
|
|
5114
|
+
showWeekNumber && React33.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader2(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles == null ? void 0 : styles[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader2()),
|
|
5115
|
+
weekdays.map((weekday) => React33.createElement(components.Weekday, { "aria-label": labelWeekday2(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles == null ? void 0 : styles[UI.Weekday], scope: "col" }, formatWeekdayName2(weekday, dateLib.options, dateLib)))
|
|
4908
5116
|
),
|
|
4909
|
-
|
|
4910
|
-
return
|
|
5117
|
+
React33.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames[UI.Weeks], style: styles == null ? void 0 : styles[UI.Weeks] }, calendarMonth.weeks.map((week) => {
|
|
5118
|
+
return React33.createElement(
|
|
4911
5119
|
components.Week,
|
|
4912
5120
|
{ className: classNames[UI.Week], key: week.weekNumber, style: styles == null ? void 0 : styles[UI.Week], week },
|
|
4913
|
-
showWeekNumber &&
|
|
5121
|
+
showWeekNumber && React33.createElement(components.WeekNumber, { week, style: styles == null ? void 0 : styles[UI.WeekNumber], "aria-label": labelWeekNumber2(week.weekNumber, {
|
|
4914
5122
|
locale
|
|
4915
5123
|
}), className: classNames[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber2(week.weekNumber, dateLib)),
|
|
4916
5124
|
week.days.map((day) => {
|
|
@@ -4927,7 +5135,7 @@ function DayPicker(initialProps) {
|
|
|
4927
5135
|
const style2 = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
|
|
4928
5136
|
const className2 = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);
|
|
4929
5137
|
const ariaLabel = !isInteractive && !modifiers.hidden ? labelGridcell2(date, modifiers, dateLib.options, dateLib) : void 0;
|
|
4930
|
-
return
|
|
5138
|
+
return React33.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day, modifiers, className: className2.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || void 0, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : void 0, "data-selected": modifiers.selected || void 0, "data-disabled": modifiers.disabled || void 0, "data-hidden": modifiers.hidden || void 0, "data-outside": day.outside || void 0, "data-focused": modifiers.focused || void 0, "data-today": modifiers.today || void 0 }, !modifiers.hidden && isInteractive ? React33.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles == null ? void 0 : styles[UI.DayButton], type: "button", day, modifiers, disabled: !modifiers.focused && modifiers.disabled || void 0, "aria-disabled": modifiers.focused && modifiers.disabled || void 0, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton2(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay2(date, dateLib.options, dateLib)) : !modifiers.hidden && formatDay2(day.date, dateLib.options, dateLib));
|
|
4931
5139
|
})
|
|
4932
5140
|
);
|
|
4933
5141
|
}))
|
|
@@ -4935,13 +5143,13 @@ function DayPicker(initialProps) {
|
|
|
4935
5143
|
);
|
|
4936
5144
|
})
|
|
4937
5145
|
),
|
|
4938
|
-
props.footer &&
|
|
5146
|
+
props.footer && React33.createElement(components.Footer, { className: classNames[UI.Footer], style: styles == null ? void 0 : styles[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)
|
|
4939
5147
|
)
|
|
4940
5148
|
);
|
|
4941
5149
|
}
|
|
4942
5150
|
|
|
4943
5151
|
// src/components/calendar.tsx
|
|
4944
|
-
import { jsx as
|
|
5152
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
4945
5153
|
function Calendar(_a) {
|
|
4946
5154
|
var _b = _a, {
|
|
4947
5155
|
className,
|
|
@@ -4952,7 +5160,7 @@ function Calendar(_a) {
|
|
|
4952
5160
|
"classNames",
|
|
4953
5161
|
"showOutsideDays"
|
|
4954
5162
|
]);
|
|
4955
|
-
return /* @__PURE__ */
|
|
5163
|
+
return /* @__PURE__ */ jsx8(
|
|
4956
5164
|
DayPicker,
|
|
4957
5165
|
__spreadValues({
|
|
4958
5166
|
showOutsideDays,
|
|
@@ -4996,11 +5204,11 @@ function Calendar(_a) {
|
|
|
4996
5204
|
Calendar.displayName = "Calendar";
|
|
4997
5205
|
|
|
4998
5206
|
// src/components/card.tsx
|
|
4999
|
-
import * as
|
|
5000
|
-
import { jsx as
|
|
5001
|
-
var Card =
|
|
5207
|
+
import * as React34 from "react";
|
|
5208
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
5209
|
+
var Card = React34.forwardRef((_a, ref) => {
|
|
5002
5210
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5003
|
-
return /* @__PURE__ */
|
|
5211
|
+
return /* @__PURE__ */ jsx9(
|
|
5004
5212
|
"div",
|
|
5005
5213
|
__spreadValues({
|
|
5006
5214
|
ref,
|
|
@@ -5012,9 +5220,9 @@ var Card = React33.forwardRef((_a, ref) => {
|
|
|
5012
5220
|
);
|
|
5013
5221
|
});
|
|
5014
5222
|
Card.displayName = "Card";
|
|
5015
|
-
var CardHeader =
|
|
5223
|
+
var CardHeader = React34.forwardRef((_a, ref) => {
|
|
5016
5224
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5017
|
-
return /* @__PURE__ */
|
|
5225
|
+
return /* @__PURE__ */ jsx9(
|
|
5018
5226
|
"div",
|
|
5019
5227
|
__spreadValues({
|
|
5020
5228
|
ref,
|
|
@@ -5023,9 +5231,9 @@ var CardHeader = React33.forwardRef((_a, ref) => {
|
|
|
5023
5231
|
);
|
|
5024
5232
|
});
|
|
5025
5233
|
CardHeader.displayName = "CardHeader";
|
|
5026
|
-
var CardTitle =
|
|
5234
|
+
var CardTitle = React34.forwardRef((_a, ref) => {
|
|
5027
5235
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5028
|
-
return /* @__PURE__ */
|
|
5236
|
+
return /* @__PURE__ */ jsx9(
|
|
5029
5237
|
"h3",
|
|
5030
5238
|
__spreadValues({
|
|
5031
5239
|
ref,
|
|
@@ -5034,9 +5242,9 @@ var CardTitle = React33.forwardRef((_a, ref) => {
|
|
|
5034
5242
|
);
|
|
5035
5243
|
});
|
|
5036
5244
|
CardTitle.displayName = "CardTitle";
|
|
5037
|
-
var CardDescription =
|
|
5245
|
+
var CardDescription = React34.forwardRef((_a, ref) => {
|
|
5038
5246
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5039
|
-
return /* @__PURE__ */
|
|
5247
|
+
return /* @__PURE__ */ jsx9(
|
|
5040
5248
|
"p",
|
|
5041
5249
|
__spreadValues({
|
|
5042
5250
|
ref,
|
|
@@ -5045,14 +5253,14 @@ var CardDescription = React33.forwardRef((_a, ref) => {
|
|
|
5045
5253
|
);
|
|
5046
5254
|
});
|
|
5047
5255
|
CardDescription.displayName = "CardDescription";
|
|
5048
|
-
var CardContent =
|
|
5256
|
+
var CardContent = React34.forwardRef((_a, ref) => {
|
|
5049
5257
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5050
|
-
return /* @__PURE__ */
|
|
5258
|
+
return /* @__PURE__ */ jsx9("div", __spreadValues({ ref, className: cn("p-6 pt-0", className) }, props));
|
|
5051
5259
|
});
|
|
5052
5260
|
CardContent.displayName = "CardContent";
|
|
5053
|
-
var CardFooter =
|
|
5261
|
+
var CardFooter = React34.forwardRef((_a, ref) => {
|
|
5054
5262
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5055
|
-
return /* @__PURE__ */
|
|
5263
|
+
return /* @__PURE__ */ jsx9(
|
|
5056
5264
|
"div",
|
|
5057
5265
|
__spreadValues({
|
|
5058
5266
|
ref,
|
|
@@ -5065,17 +5273,17 @@ CardFooter.displayName = "CardFooter";
|
|
|
5065
5273
|
// src/components/carousel.tsx
|
|
5066
5274
|
import { ArrowLeftIcon, ArrowRightIcon } from "@radix-ui/react-icons";
|
|
5067
5275
|
import useEmblaCarousel from "embla-carousel-react";
|
|
5068
|
-
import * as
|
|
5069
|
-
import { jsx as
|
|
5070
|
-
var CarouselContext =
|
|
5276
|
+
import * as React35 from "react";
|
|
5277
|
+
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
5278
|
+
var CarouselContext = React35.createContext(null);
|
|
5071
5279
|
function useCarousel() {
|
|
5072
|
-
const context =
|
|
5280
|
+
const context = React35.useContext(CarouselContext);
|
|
5073
5281
|
if (!context) {
|
|
5074
5282
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
5075
5283
|
}
|
|
5076
5284
|
return context;
|
|
5077
5285
|
}
|
|
5078
|
-
var Carousel =
|
|
5286
|
+
var Carousel = React35.forwardRef(
|
|
5079
5287
|
(_a, ref) => {
|
|
5080
5288
|
var _b = _a, {
|
|
5081
5289
|
orientation = "horizontal",
|
|
@@ -5098,22 +5306,22 @@ var Carousel = React34.forwardRef(
|
|
|
5098
5306
|
}),
|
|
5099
5307
|
plugins
|
|
5100
5308
|
);
|
|
5101
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
5102
|
-
const [canScrollNext, setCanScrollNext] =
|
|
5103
|
-
const onSelect =
|
|
5309
|
+
const [canScrollPrev, setCanScrollPrev] = React35.useState(false);
|
|
5310
|
+
const [canScrollNext, setCanScrollNext] = React35.useState(false);
|
|
5311
|
+
const onSelect = React35.useCallback((api2) => {
|
|
5104
5312
|
if (!api2) {
|
|
5105
5313
|
return;
|
|
5106
5314
|
}
|
|
5107
5315
|
setCanScrollPrev(api2.canScrollPrev());
|
|
5108
5316
|
setCanScrollNext(api2.canScrollNext());
|
|
5109
5317
|
}, []);
|
|
5110
|
-
const scrollPrev =
|
|
5318
|
+
const scrollPrev = React35.useCallback(() => {
|
|
5111
5319
|
api == null ? void 0 : api.scrollPrev();
|
|
5112
5320
|
}, [api]);
|
|
5113
|
-
const scrollNext =
|
|
5321
|
+
const scrollNext = React35.useCallback(() => {
|
|
5114
5322
|
api == null ? void 0 : api.scrollNext();
|
|
5115
5323
|
}, [api]);
|
|
5116
|
-
const handleKeyDown =
|
|
5324
|
+
const handleKeyDown = React35.useCallback(
|
|
5117
5325
|
(event) => {
|
|
5118
5326
|
if (event.key === "ArrowLeft") {
|
|
5119
5327
|
event.preventDefault();
|
|
@@ -5125,13 +5333,13 @@ var Carousel = React34.forwardRef(
|
|
|
5125
5333
|
},
|
|
5126
5334
|
[scrollPrev, scrollNext]
|
|
5127
5335
|
);
|
|
5128
|
-
|
|
5336
|
+
React35.useEffect(() => {
|
|
5129
5337
|
if (!api || !setApi) {
|
|
5130
5338
|
return;
|
|
5131
5339
|
}
|
|
5132
5340
|
setApi(api);
|
|
5133
5341
|
}, [api, setApi]);
|
|
5134
|
-
|
|
5342
|
+
React35.useEffect(() => {
|
|
5135
5343
|
if (!api) {
|
|
5136
5344
|
return;
|
|
5137
5345
|
}
|
|
@@ -5142,7 +5350,7 @@ var Carousel = React34.forwardRef(
|
|
|
5142
5350
|
api == null ? void 0 : api.off("select", onSelect);
|
|
5143
5351
|
};
|
|
5144
5352
|
}, [api, onSelect]);
|
|
5145
|
-
return /* @__PURE__ */
|
|
5353
|
+
return /* @__PURE__ */ jsx10(
|
|
5146
5354
|
CarouselContext.Provider,
|
|
5147
5355
|
{
|
|
5148
5356
|
value: {
|
|
@@ -5155,7 +5363,7 @@ var Carousel = React34.forwardRef(
|
|
|
5155
5363
|
canScrollPrev,
|
|
5156
5364
|
canScrollNext
|
|
5157
5365
|
},
|
|
5158
|
-
children: /* @__PURE__ */
|
|
5366
|
+
children: /* @__PURE__ */ jsx10(
|
|
5159
5367
|
"div",
|
|
5160
5368
|
__spreadProps(__spreadValues({
|
|
5161
5369
|
ref,
|
|
@@ -5172,10 +5380,10 @@ var Carousel = React34.forwardRef(
|
|
|
5172
5380
|
}
|
|
5173
5381
|
);
|
|
5174
5382
|
Carousel.displayName = "Carousel";
|
|
5175
|
-
var CarouselContent =
|
|
5383
|
+
var CarouselContent = React35.forwardRef((_a, ref) => {
|
|
5176
5384
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5177
5385
|
const { carouselRef, orientation } = useCarousel();
|
|
5178
|
-
return /* @__PURE__ */
|
|
5386
|
+
return /* @__PURE__ */ jsx10("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx10(
|
|
5179
5387
|
"div",
|
|
5180
5388
|
__spreadValues({
|
|
5181
5389
|
ref,
|
|
@@ -5188,10 +5396,10 @@ var CarouselContent = React34.forwardRef((_a, ref) => {
|
|
|
5188
5396
|
) });
|
|
5189
5397
|
});
|
|
5190
5398
|
CarouselContent.displayName = "CarouselContent";
|
|
5191
|
-
var CarouselItem =
|
|
5399
|
+
var CarouselItem = React35.forwardRef((_a, ref) => {
|
|
5192
5400
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5193
5401
|
const { orientation } = useCarousel();
|
|
5194
|
-
return /* @__PURE__ */
|
|
5402
|
+
return /* @__PURE__ */ jsx10(
|
|
5195
5403
|
"div",
|
|
5196
5404
|
__spreadValues({
|
|
5197
5405
|
ref,
|
|
@@ -5206,7 +5414,7 @@ var CarouselItem = React34.forwardRef((_a, ref) => {
|
|
|
5206
5414
|
);
|
|
5207
5415
|
});
|
|
5208
5416
|
CarouselItem.displayName = "CarouselItem";
|
|
5209
|
-
var CarouselPrevious =
|
|
5417
|
+
var CarouselPrevious = React35.forwardRef((_a, ref) => {
|
|
5210
5418
|
var _b = _a, { className, variant = "outline", size = "icon" } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
|
5211
5419
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
5212
5420
|
return /* @__PURE__ */ jsxs4(
|
|
@@ -5224,14 +5432,14 @@ var CarouselPrevious = React34.forwardRef((_a, ref) => {
|
|
|
5224
5432
|
onClick: scrollPrev
|
|
5225
5433
|
}, props), {
|
|
5226
5434
|
children: [
|
|
5227
|
-
/* @__PURE__ */
|
|
5228
|
-
/* @__PURE__ */
|
|
5435
|
+
/* @__PURE__ */ jsx10(ArrowLeftIcon, { className: "h-4 w-4" }),
|
|
5436
|
+
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Previous slide" })
|
|
5229
5437
|
]
|
|
5230
5438
|
})
|
|
5231
5439
|
);
|
|
5232
5440
|
});
|
|
5233
5441
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
5234
|
-
var CarouselNext =
|
|
5442
|
+
var CarouselNext = React35.forwardRef((_a, ref) => {
|
|
5235
5443
|
var _b = _a, { className, variant = "outline", size = "icon" } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
|
5236
5444
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
5237
5445
|
return /* @__PURE__ */ jsxs4(
|
|
@@ -5249,8 +5457,8 @@ var CarouselNext = React34.forwardRef((_a, ref) => {
|
|
|
5249
5457
|
onClick: scrollNext
|
|
5250
5458
|
}, props), {
|
|
5251
5459
|
children: [
|
|
5252
|
-
/* @__PURE__ */
|
|
5253
|
-
/* @__PURE__ */
|
|
5460
|
+
/* @__PURE__ */ jsx10(ArrowRightIcon, { className: "h-4 w-4" }),
|
|
5461
|
+
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Next slide" })
|
|
5254
5462
|
]
|
|
5255
5463
|
})
|
|
5256
5464
|
);
|
|
@@ -5260,11 +5468,11 @@ CarouselNext.displayName = "CarouselNext";
|
|
|
5260
5468
|
// src/components/checkbox.tsx
|
|
5261
5469
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
5262
5470
|
import { CheckIcon } from "@radix-ui/react-icons";
|
|
5263
|
-
import * as
|
|
5264
|
-
import { jsx as
|
|
5265
|
-
var Checkbox =
|
|
5471
|
+
import * as React36 from "react";
|
|
5472
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
5473
|
+
var Checkbox = React36.forwardRef((_a, ref) => {
|
|
5266
5474
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5267
|
-
return /* @__PURE__ */
|
|
5475
|
+
return /* @__PURE__ */ jsx11(
|
|
5268
5476
|
CheckboxPrimitive.Root,
|
|
5269
5477
|
__spreadProps(__spreadValues({
|
|
5270
5478
|
ref,
|
|
@@ -5273,11 +5481,11 @@ var Checkbox = React35.forwardRef((_a, ref) => {
|
|
|
5273
5481
|
className
|
|
5274
5482
|
)
|
|
5275
5483
|
}, props), {
|
|
5276
|
-
children: /* @__PURE__ */
|
|
5484
|
+
children: /* @__PURE__ */ jsx11(
|
|
5277
5485
|
CheckboxPrimitive.Indicator,
|
|
5278
5486
|
{
|
|
5279
5487
|
className: cn("flex items-center justify-center text-current"),
|
|
5280
|
-
children: /* @__PURE__ */
|
|
5488
|
+
children: /* @__PURE__ */ jsx11(CheckIcon, { className: "h-4 w-4" })
|
|
5281
5489
|
}
|
|
5282
5490
|
)
|
|
5283
5491
|
})
|
|
@@ -5294,20 +5502,20 @@ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
|
5294
5502
|
// src/components/command.tsx
|
|
5295
5503
|
import { MagnifyingGlassIcon } from "@radix-ui/react-icons";
|
|
5296
5504
|
import { Command as CommandPrimitive } from "cmdk";
|
|
5297
|
-
import * as
|
|
5505
|
+
import * as React38 from "react";
|
|
5298
5506
|
|
|
5299
5507
|
// src/components/dialog.tsx
|
|
5300
5508
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5301
5509
|
import { Cross2Icon } from "@radix-ui/react-icons";
|
|
5302
|
-
import * as
|
|
5303
|
-
import { jsx as
|
|
5510
|
+
import * as React37 from "react";
|
|
5511
|
+
import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
5304
5512
|
var Dialog = DialogPrimitive.Root;
|
|
5305
5513
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
5306
5514
|
var DialogPortal = DialogPrimitive.Portal;
|
|
5307
5515
|
var DialogClose = DialogPrimitive.Close;
|
|
5308
|
-
var DialogOverlay =
|
|
5516
|
+
var DialogOverlay = React37.forwardRef((_a, ref) => {
|
|
5309
5517
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5310
|
-
return /* @__PURE__ */
|
|
5518
|
+
return /* @__PURE__ */ jsx12(
|
|
5311
5519
|
DialogPrimitive.Overlay,
|
|
5312
5520
|
__spreadValues({
|
|
5313
5521
|
ref,
|
|
@@ -5319,10 +5527,10 @@ var DialogOverlay = React36.forwardRef((_a, ref) => {
|
|
|
5319
5527
|
);
|
|
5320
5528
|
});
|
|
5321
5529
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
5322
|
-
var DialogContent =
|
|
5530
|
+
var DialogContent = React37.forwardRef((_a, ref) => {
|
|
5323
5531
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
5324
5532
|
return /* @__PURE__ */ jsxs5(DialogPortal, { children: [
|
|
5325
|
-
/* @__PURE__ */
|
|
5533
|
+
/* @__PURE__ */ jsx12(DialogOverlay, {}),
|
|
5326
5534
|
/* @__PURE__ */ jsxs5(
|
|
5327
5535
|
DialogPrimitive.Content,
|
|
5328
5536
|
__spreadProps(__spreadValues({
|
|
@@ -5335,8 +5543,8 @@ var DialogContent = React36.forwardRef((_a, ref) => {
|
|
|
5335
5543
|
children: [
|
|
5336
5544
|
children,
|
|
5337
5545
|
/* @__PURE__ */ jsxs5(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
5338
|
-
/* @__PURE__ */
|
|
5339
|
-
/* @__PURE__ */
|
|
5546
|
+
/* @__PURE__ */ jsx12(Cross2Icon, { className: "h-4 w-4" }),
|
|
5547
|
+
/* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Close" })
|
|
5340
5548
|
] })
|
|
5341
5549
|
]
|
|
5342
5550
|
})
|
|
@@ -5350,7 +5558,7 @@ var DialogHeader = (_a) => {
|
|
|
5350
5558
|
} = _b, props = __objRest(_b, [
|
|
5351
5559
|
"className"
|
|
5352
5560
|
]);
|
|
5353
|
-
return /* @__PURE__ */
|
|
5561
|
+
return /* @__PURE__ */ jsx12(
|
|
5354
5562
|
"div",
|
|
5355
5563
|
__spreadValues({
|
|
5356
5564
|
className: cn(
|
|
@@ -5367,7 +5575,7 @@ var DialogFooter = (_a) => {
|
|
|
5367
5575
|
} = _b, props = __objRest(_b, [
|
|
5368
5576
|
"className"
|
|
5369
5577
|
]);
|
|
5370
|
-
return /* @__PURE__ */
|
|
5578
|
+
return /* @__PURE__ */ jsx12(
|
|
5371
5579
|
"div",
|
|
5372
5580
|
__spreadValues({
|
|
5373
5581
|
className: cn(
|
|
@@ -5378,9 +5586,9 @@ var DialogFooter = (_a) => {
|
|
|
5378
5586
|
);
|
|
5379
5587
|
};
|
|
5380
5588
|
DialogFooter.displayName = "DialogFooter";
|
|
5381
|
-
var DialogTitle =
|
|
5589
|
+
var DialogTitle = React37.forwardRef((_a, ref) => {
|
|
5382
5590
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5383
|
-
return /* @__PURE__ */
|
|
5591
|
+
return /* @__PURE__ */ jsx12(
|
|
5384
5592
|
DialogPrimitive.Title,
|
|
5385
5593
|
__spreadValues({
|
|
5386
5594
|
ref,
|
|
@@ -5392,9 +5600,9 @@ var DialogTitle = React36.forwardRef((_a, ref) => {
|
|
|
5392
5600
|
);
|
|
5393
5601
|
});
|
|
5394
5602
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
5395
|
-
var DialogDescription =
|
|
5603
|
+
var DialogDescription = React37.forwardRef((_a, ref) => {
|
|
5396
5604
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5397
|
-
return /* @__PURE__ */
|
|
5605
|
+
return /* @__PURE__ */ jsx12(
|
|
5398
5606
|
DialogPrimitive.Description,
|
|
5399
5607
|
__spreadValues({
|
|
5400
5608
|
ref,
|
|
@@ -5405,10 +5613,10 @@ var DialogDescription = React36.forwardRef((_a, ref) => {
|
|
|
5405
5613
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
5406
5614
|
|
|
5407
5615
|
// src/components/command.tsx
|
|
5408
|
-
import { jsx as
|
|
5409
|
-
var Command =
|
|
5616
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
5617
|
+
var Command = React38.forwardRef((_a, ref) => {
|
|
5410
5618
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5411
|
-
return /* @__PURE__ */
|
|
5619
|
+
return /* @__PURE__ */ jsx13(
|
|
5412
5620
|
CommandPrimitive,
|
|
5413
5621
|
__spreadValues({
|
|
5414
5622
|
ref,
|
|
@@ -5422,13 +5630,13 @@ var Command = React37.forwardRef((_a, ref) => {
|
|
|
5422
5630
|
Command.displayName = CommandPrimitive.displayName;
|
|
5423
5631
|
var CommandDialog = (_a) => {
|
|
5424
5632
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
5425
|
-
return /* @__PURE__ */
|
|
5633
|
+
return /* @__PURE__ */ jsx13(Dialog, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx13(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx13(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) }));
|
|
5426
5634
|
};
|
|
5427
|
-
var CommandInput =
|
|
5635
|
+
var CommandInput = React38.forwardRef((_a, ref) => {
|
|
5428
5636
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5429
5637
|
return /* @__PURE__ */ jsxs6("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
5430
|
-
/* @__PURE__ */
|
|
5431
|
-
/* @__PURE__ */
|
|
5638
|
+
/* @__PURE__ */ jsx13(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
5639
|
+
/* @__PURE__ */ jsx13(
|
|
5432
5640
|
CommandPrimitive.Input,
|
|
5433
5641
|
__spreadValues({
|
|
5434
5642
|
ref,
|
|
@@ -5441,9 +5649,9 @@ var CommandInput = React37.forwardRef((_a, ref) => {
|
|
|
5441
5649
|
] });
|
|
5442
5650
|
});
|
|
5443
5651
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
5444
|
-
var CommandList =
|
|
5652
|
+
var CommandList = React38.forwardRef((_a, ref) => {
|
|
5445
5653
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5446
|
-
return /* @__PURE__ */
|
|
5654
|
+
return /* @__PURE__ */ jsx13(
|
|
5447
5655
|
CommandPrimitive.List,
|
|
5448
5656
|
__spreadValues({
|
|
5449
5657
|
ref,
|
|
@@ -5452,7 +5660,7 @@ var CommandList = React37.forwardRef((_a, ref) => {
|
|
|
5452
5660
|
);
|
|
5453
5661
|
});
|
|
5454
5662
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
5455
|
-
var CommandEmpty =
|
|
5663
|
+
var CommandEmpty = React38.forwardRef((props, ref) => /* @__PURE__ */ jsx13(
|
|
5456
5664
|
CommandPrimitive.Empty,
|
|
5457
5665
|
__spreadValues({
|
|
5458
5666
|
ref,
|
|
@@ -5460,9 +5668,9 @@ var CommandEmpty = React37.forwardRef((props, ref) => /* @__PURE__ */ jsx12(
|
|
|
5460
5668
|
}, props)
|
|
5461
5669
|
));
|
|
5462
5670
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
5463
|
-
var CommandGroup =
|
|
5671
|
+
var CommandGroup = React38.forwardRef((_a, ref) => {
|
|
5464
5672
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5465
|
-
return /* @__PURE__ */
|
|
5673
|
+
return /* @__PURE__ */ jsx13(
|
|
5466
5674
|
CommandPrimitive.Group,
|
|
5467
5675
|
__spreadValues({
|
|
5468
5676
|
ref,
|
|
@@ -5474,9 +5682,9 @@ var CommandGroup = React37.forwardRef((_a, ref) => {
|
|
|
5474
5682
|
);
|
|
5475
5683
|
});
|
|
5476
5684
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
5477
|
-
var CommandSeparator =
|
|
5685
|
+
var CommandSeparator = React38.forwardRef((_a, ref) => {
|
|
5478
5686
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5479
|
-
return /* @__PURE__ */
|
|
5687
|
+
return /* @__PURE__ */ jsx13(
|
|
5480
5688
|
CommandPrimitive.Separator,
|
|
5481
5689
|
__spreadValues({
|
|
5482
5690
|
ref,
|
|
@@ -5485,9 +5693,9 @@ var CommandSeparator = React37.forwardRef((_a, ref) => {
|
|
|
5485
5693
|
);
|
|
5486
5694
|
});
|
|
5487
5695
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
5488
|
-
var CommandItem =
|
|
5696
|
+
var CommandItem = React38.forwardRef((_a, ref) => {
|
|
5489
5697
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5490
|
-
return /* @__PURE__ */
|
|
5698
|
+
return /* @__PURE__ */ jsx13(
|
|
5491
5699
|
CommandPrimitive.Item,
|
|
5492
5700
|
__spreadValues({
|
|
5493
5701
|
ref,
|
|
@@ -5505,7 +5713,7 @@ var CommandShortcut = (_a) => {
|
|
|
5505
5713
|
} = _b, props = __objRest(_b, [
|
|
5506
5714
|
"className"
|
|
5507
5715
|
]);
|
|
5508
|
-
return /* @__PURE__ */
|
|
5716
|
+
return /* @__PURE__ */ jsx13(
|
|
5509
5717
|
"span",
|
|
5510
5718
|
__spreadValues({
|
|
5511
5719
|
className: cn(
|
|
@@ -5524,15 +5732,15 @@ import {
|
|
|
5524
5732
|
ChevronRightIcon as ChevronRightIcon2,
|
|
5525
5733
|
DotFilledIcon
|
|
5526
5734
|
} from "@radix-ui/react-icons";
|
|
5527
|
-
import * as
|
|
5528
|
-
import { jsx as
|
|
5735
|
+
import * as React39 from "react";
|
|
5736
|
+
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
5529
5737
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
5530
5738
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
5531
5739
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
5532
5740
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
5533
5741
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
5534
5742
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
5535
|
-
var ContextMenuSubTrigger =
|
|
5743
|
+
var ContextMenuSubTrigger = React39.forwardRef((_a, ref) => {
|
|
5536
5744
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
5537
5745
|
return /* @__PURE__ */ jsxs7(
|
|
5538
5746
|
ContextMenuPrimitive.SubTrigger,
|
|
@@ -5546,15 +5754,15 @@ var ContextMenuSubTrigger = React38.forwardRef((_a, ref) => {
|
|
|
5546
5754
|
}, props), {
|
|
5547
5755
|
children: [
|
|
5548
5756
|
children,
|
|
5549
|
-
/* @__PURE__ */
|
|
5757
|
+
/* @__PURE__ */ jsx14(ChevronRightIcon2, { className: "ml-auto h-4 w-4" })
|
|
5550
5758
|
]
|
|
5551
5759
|
})
|
|
5552
5760
|
);
|
|
5553
5761
|
});
|
|
5554
5762
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
5555
|
-
var ContextMenuSubContent =
|
|
5763
|
+
var ContextMenuSubContent = React39.forwardRef((_a, ref) => {
|
|
5556
5764
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5557
|
-
return /* @__PURE__ */
|
|
5765
|
+
return /* @__PURE__ */ jsx14(
|
|
5558
5766
|
ContextMenuPrimitive.SubContent,
|
|
5559
5767
|
__spreadValues({
|
|
5560
5768
|
ref,
|
|
@@ -5566,9 +5774,9 @@ var ContextMenuSubContent = React38.forwardRef((_a, ref) => {
|
|
|
5566
5774
|
);
|
|
5567
5775
|
});
|
|
5568
5776
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
5569
|
-
var ContextMenuContent =
|
|
5777
|
+
var ContextMenuContent = React39.forwardRef((_a, ref) => {
|
|
5570
5778
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5571
|
-
return /* @__PURE__ */
|
|
5779
|
+
return /* @__PURE__ */ jsx14(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx14(
|
|
5572
5780
|
ContextMenuPrimitive.Content,
|
|
5573
5781
|
__spreadValues({
|
|
5574
5782
|
ref,
|
|
@@ -5580,9 +5788,9 @@ var ContextMenuContent = React38.forwardRef((_a, ref) => {
|
|
|
5580
5788
|
) });
|
|
5581
5789
|
});
|
|
5582
5790
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
5583
|
-
var ContextMenuItem =
|
|
5791
|
+
var ContextMenuItem = React39.forwardRef((_a, ref) => {
|
|
5584
5792
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
5585
|
-
return /* @__PURE__ */
|
|
5793
|
+
return /* @__PURE__ */ jsx14(
|
|
5586
5794
|
ContextMenuPrimitive.Item,
|
|
5587
5795
|
__spreadValues({
|
|
5588
5796
|
ref,
|
|
@@ -5595,7 +5803,7 @@ var ContextMenuItem = React38.forwardRef((_a, ref) => {
|
|
|
5595
5803
|
);
|
|
5596
5804
|
});
|
|
5597
5805
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
5598
|
-
var ContextMenuCheckboxItem =
|
|
5806
|
+
var ContextMenuCheckboxItem = React39.forwardRef((_a, ref) => {
|
|
5599
5807
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
5600
5808
|
return /* @__PURE__ */ jsxs7(
|
|
5601
5809
|
ContextMenuPrimitive.CheckboxItem,
|
|
@@ -5608,14 +5816,14 @@ var ContextMenuCheckboxItem = React38.forwardRef((_a, ref) => {
|
|
|
5608
5816
|
checked
|
|
5609
5817
|
}, props), {
|
|
5610
5818
|
children: [
|
|
5611
|
-
/* @__PURE__ */
|
|
5819
|
+
/* @__PURE__ */ jsx14("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx14(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx14(CheckIcon2, { className: "h-4 w-4" }) }) }),
|
|
5612
5820
|
children
|
|
5613
5821
|
]
|
|
5614
5822
|
})
|
|
5615
5823
|
);
|
|
5616
5824
|
});
|
|
5617
5825
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
5618
|
-
var ContextMenuRadioItem =
|
|
5826
|
+
var ContextMenuRadioItem = React39.forwardRef((_a, ref) => {
|
|
5619
5827
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
5620
5828
|
return /* @__PURE__ */ jsxs7(
|
|
5621
5829
|
ContextMenuPrimitive.RadioItem,
|
|
@@ -5627,16 +5835,16 @@ var ContextMenuRadioItem = React38.forwardRef((_a, ref) => {
|
|
|
5627
5835
|
)
|
|
5628
5836
|
}, props), {
|
|
5629
5837
|
children: [
|
|
5630
|
-
/* @__PURE__ */
|
|
5838
|
+
/* @__PURE__ */ jsx14("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx14(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx14(DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
|
|
5631
5839
|
children
|
|
5632
5840
|
]
|
|
5633
5841
|
})
|
|
5634
5842
|
);
|
|
5635
5843
|
});
|
|
5636
5844
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
5637
|
-
var ContextMenuLabel =
|
|
5845
|
+
var ContextMenuLabel = React39.forwardRef((_a, ref) => {
|
|
5638
5846
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
5639
|
-
return /* @__PURE__ */
|
|
5847
|
+
return /* @__PURE__ */ jsx14(
|
|
5640
5848
|
ContextMenuPrimitive.Label,
|
|
5641
5849
|
__spreadValues({
|
|
5642
5850
|
ref,
|
|
@@ -5649,9 +5857,9 @@ var ContextMenuLabel = React38.forwardRef((_a, ref) => {
|
|
|
5649
5857
|
);
|
|
5650
5858
|
});
|
|
5651
5859
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
5652
|
-
var ContextMenuSeparator =
|
|
5860
|
+
var ContextMenuSeparator = React39.forwardRef((_a, ref) => {
|
|
5653
5861
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5654
|
-
return /* @__PURE__ */
|
|
5862
|
+
return /* @__PURE__ */ jsx14(
|
|
5655
5863
|
ContextMenuPrimitive.Separator,
|
|
5656
5864
|
__spreadValues({
|
|
5657
5865
|
ref,
|
|
@@ -5666,7 +5874,7 @@ var ContextMenuShortcut = (_a) => {
|
|
|
5666
5874
|
} = _b, props = __objRest(_b, [
|
|
5667
5875
|
"className"
|
|
5668
5876
|
]);
|
|
5669
|
-
return /* @__PURE__ */
|
|
5877
|
+
return /* @__PURE__ */ jsx14(
|
|
5670
5878
|
"span",
|
|
5671
5879
|
__spreadValues({
|
|
5672
5880
|
className: cn(
|
|
@@ -5679,16 +5887,16 @@ var ContextMenuShortcut = (_a) => {
|
|
|
5679
5887
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
5680
5888
|
|
|
5681
5889
|
// src/components/drawer.tsx
|
|
5682
|
-
import * as
|
|
5890
|
+
import * as React40 from "react";
|
|
5683
5891
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
5684
|
-
import { jsx as
|
|
5892
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
5685
5893
|
var Drawer = (_a) => {
|
|
5686
5894
|
var _b = _a, {
|
|
5687
5895
|
shouldScaleBackground = true
|
|
5688
5896
|
} = _b, props = __objRest(_b, [
|
|
5689
5897
|
"shouldScaleBackground"
|
|
5690
5898
|
]);
|
|
5691
|
-
return /* @__PURE__ */
|
|
5899
|
+
return /* @__PURE__ */ jsx15(
|
|
5692
5900
|
DrawerPrimitive.Root,
|
|
5693
5901
|
__spreadValues({
|
|
5694
5902
|
shouldScaleBackground
|
|
@@ -5699,9 +5907,9 @@ Drawer.displayName = "Drawer";
|
|
|
5699
5907
|
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
5700
5908
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
5701
5909
|
var DrawerClose = DrawerPrimitive.Close;
|
|
5702
|
-
var DrawerOverlay =
|
|
5910
|
+
var DrawerOverlay = React40.forwardRef((_a, ref) => {
|
|
5703
5911
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5704
|
-
return /* @__PURE__ */
|
|
5912
|
+
return /* @__PURE__ */ jsx15(
|
|
5705
5913
|
DrawerPrimitive.Overlay,
|
|
5706
5914
|
__spreadValues({
|
|
5707
5915
|
ref,
|
|
@@ -5710,10 +5918,10 @@ var DrawerOverlay = React39.forwardRef((_a, ref) => {
|
|
|
5710
5918
|
);
|
|
5711
5919
|
});
|
|
5712
5920
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
5713
|
-
var DrawerContent =
|
|
5921
|
+
var DrawerContent = React40.forwardRef((_a, ref) => {
|
|
5714
5922
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
5715
5923
|
return /* @__PURE__ */ jsxs8(DrawerPortal, { children: [
|
|
5716
|
-
/* @__PURE__ */
|
|
5924
|
+
/* @__PURE__ */ jsx15(DrawerOverlay, {}),
|
|
5717
5925
|
/* @__PURE__ */ jsxs8(
|
|
5718
5926
|
DrawerPrimitive.Content,
|
|
5719
5927
|
__spreadProps(__spreadValues({
|
|
@@ -5724,7 +5932,7 @@ var DrawerContent = React39.forwardRef((_a, ref) => {
|
|
|
5724
5932
|
)
|
|
5725
5933
|
}, props), {
|
|
5726
5934
|
children: [
|
|
5727
|
-
/* @__PURE__ */
|
|
5935
|
+
/* @__PURE__ */ jsx15("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
5728
5936
|
children
|
|
5729
5937
|
]
|
|
5730
5938
|
})
|
|
@@ -5738,7 +5946,7 @@ var DrawerHeader = (_a) => {
|
|
|
5738
5946
|
} = _b, props = __objRest(_b, [
|
|
5739
5947
|
"className"
|
|
5740
5948
|
]);
|
|
5741
|
-
return /* @__PURE__ */
|
|
5949
|
+
return /* @__PURE__ */ jsx15(
|
|
5742
5950
|
"div",
|
|
5743
5951
|
__spreadValues({
|
|
5744
5952
|
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className)
|
|
@@ -5752,7 +5960,7 @@ var DrawerFooter = (_a) => {
|
|
|
5752
5960
|
} = _b, props = __objRest(_b, [
|
|
5753
5961
|
"className"
|
|
5754
5962
|
]);
|
|
5755
|
-
return /* @__PURE__ */
|
|
5963
|
+
return /* @__PURE__ */ jsx15(
|
|
5756
5964
|
"div",
|
|
5757
5965
|
__spreadValues({
|
|
5758
5966
|
className: cn("mt-auto flex flex-col gap-2 p-4", className)
|
|
@@ -5760,9 +5968,9 @@ var DrawerFooter = (_a) => {
|
|
|
5760
5968
|
);
|
|
5761
5969
|
};
|
|
5762
5970
|
DrawerFooter.displayName = "DrawerFooter";
|
|
5763
|
-
var DrawerTitle =
|
|
5971
|
+
var DrawerTitle = React40.forwardRef((_a, ref) => {
|
|
5764
5972
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5765
|
-
return /* @__PURE__ */
|
|
5973
|
+
return /* @__PURE__ */ jsx15(
|
|
5766
5974
|
DrawerPrimitive.Title,
|
|
5767
5975
|
__spreadValues({
|
|
5768
5976
|
ref,
|
|
@@ -5774,9 +5982,9 @@ var DrawerTitle = React39.forwardRef((_a, ref) => {
|
|
|
5774
5982
|
);
|
|
5775
5983
|
});
|
|
5776
5984
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
5777
|
-
var DrawerDescription =
|
|
5985
|
+
var DrawerDescription = React40.forwardRef((_a, ref) => {
|
|
5778
5986
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5779
|
-
return /* @__PURE__ */
|
|
5987
|
+
return /* @__PURE__ */ jsx15(
|
|
5780
5988
|
DrawerPrimitive.Description,
|
|
5781
5989
|
__spreadValues({
|
|
5782
5990
|
ref,
|
|
@@ -5793,15 +6001,15 @@ import {
|
|
|
5793
6001
|
ChevronRightIcon as ChevronRightIcon3,
|
|
5794
6002
|
DotFilledIcon as DotFilledIcon2
|
|
5795
6003
|
} from "@radix-ui/react-icons";
|
|
5796
|
-
import * as
|
|
5797
|
-
import { jsx as
|
|
6004
|
+
import * as React41 from "react";
|
|
6005
|
+
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
5798
6006
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
5799
6007
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
5800
6008
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
5801
6009
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
5802
6010
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
5803
6011
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
5804
|
-
var DropdownMenuSubTrigger =
|
|
6012
|
+
var DropdownMenuSubTrigger = React41.forwardRef((_a, ref) => {
|
|
5805
6013
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
5806
6014
|
return /* @__PURE__ */ jsxs9(
|
|
5807
6015
|
DropdownMenuPrimitive.SubTrigger,
|
|
@@ -5815,15 +6023,15 @@ var DropdownMenuSubTrigger = React40.forwardRef((_a, ref) => {
|
|
|
5815
6023
|
}, props), {
|
|
5816
6024
|
children: [
|
|
5817
6025
|
children,
|
|
5818
|
-
/* @__PURE__ */
|
|
6026
|
+
/* @__PURE__ */ jsx16(ChevronRightIcon3, { className: "ml-auto h-4 w-4" })
|
|
5819
6027
|
]
|
|
5820
6028
|
})
|
|
5821
6029
|
);
|
|
5822
6030
|
});
|
|
5823
6031
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
5824
|
-
var DropdownMenuSubContent =
|
|
6032
|
+
var DropdownMenuSubContent = React41.forwardRef((_a, ref) => {
|
|
5825
6033
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5826
|
-
return /* @__PURE__ */
|
|
6034
|
+
return /* @__PURE__ */ jsx16(
|
|
5827
6035
|
DropdownMenuPrimitive.SubContent,
|
|
5828
6036
|
__spreadValues({
|
|
5829
6037
|
ref,
|
|
@@ -5835,9 +6043,9 @@ var DropdownMenuSubContent = React40.forwardRef((_a, ref) => {
|
|
|
5835
6043
|
);
|
|
5836
6044
|
});
|
|
5837
6045
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
5838
|
-
var DropdownMenuContent =
|
|
6046
|
+
var DropdownMenuContent = React41.forwardRef((_a, ref) => {
|
|
5839
6047
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
5840
|
-
return /* @__PURE__ */
|
|
6048
|
+
return /* @__PURE__ */ jsx16(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx16(
|
|
5841
6049
|
DropdownMenuPrimitive.Content,
|
|
5842
6050
|
__spreadValues({
|
|
5843
6051
|
ref,
|
|
@@ -5851,9 +6059,9 @@ var DropdownMenuContent = React40.forwardRef((_a, ref) => {
|
|
|
5851
6059
|
) });
|
|
5852
6060
|
});
|
|
5853
6061
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
5854
|
-
var DropdownMenuItem =
|
|
6062
|
+
var DropdownMenuItem = React41.forwardRef((_a, ref) => {
|
|
5855
6063
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
5856
|
-
return /* @__PURE__ */
|
|
6064
|
+
return /* @__PURE__ */ jsx16(
|
|
5857
6065
|
DropdownMenuPrimitive.Item,
|
|
5858
6066
|
__spreadValues({
|
|
5859
6067
|
ref,
|
|
@@ -5866,7 +6074,7 @@ var DropdownMenuItem = React40.forwardRef((_a, ref) => {
|
|
|
5866
6074
|
);
|
|
5867
6075
|
});
|
|
5868
6076
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
5869
|
-
var DropdownMenuCheckboxItem =
|
|
6077
|
+
var DropdownMenuCheckboxItem = React41.forwardRef((_a, ref) => {
|
|
5870
6078
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
5871
6079
|
return /* @__PURE__ */ jsxs9(
|
|
5872
6080
|
DropdownMenuPrimitive.CheckboxItem,
|
|
@@ -5879,14 +6087,14 @@ var DropdownMenuCheckboxItem = React40.forwardRef((_a, ref) => {
|
|
|
5879
6087
|
checked
|
|
5880
6088
|
}, props), {
|
|
5881
6089
|
children: [
|
|
5882
|
-
/* @__PURE__ */
|
|
6090
|
+
/* @__PURE__ */ jsx16("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx16(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx16(CheckIcon3, { className: "h-4 w-4" }) }) }),
|
|
5883
6091
|
children
|
|
5884
6092
|
]
|
|
5885
6093
|
})
|
|
5886
6094
|
);
|
|
5887
6095
|
});
|
|
5888
6096
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
5889
|
-
var DropdownMenuRadioItem =
|
|
6097
|
+
var DropdownMenuRadioItem = React41.forwardRef((_a, ref) => {
|
|
5890
6098
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
5891
6099
|
return /* @__PURE__ */ jsxs9(
|
|
5892
6100
|
DropdownMenuPrimitive.RadioItem,
|
|
@@ -5898,16 +6106,16 @@ var DropdownMenuRadioItem = React40.forwardRef((_a, ref) => {
|
|
|
5898
6106
|
)
|
|
5899
6107
|
}, props), {
|
|
5900
6108
|
children: [
|
|
5901
|
-
/* @__PURE__ */
|
|
6109
|
+
/* @__PURE__ */ jsx16("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx16(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx16(DotFilledIcon2, { className: "h-4 w-4 fill-current" }) }) }),
|
|
5902
6110
|
children
|
|
5903
6111
|
]
|
|
5904
6112
|
})
|
|
5905
6113
|
);
|
|
5906
6114
|
});
|
|
5907
6115
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
5908
|
-
var DropdownMenuLabel =
|
|
6116
|
+
var DropdownMenuLabel = React41.forwardRef((_a, ref) => {
|
|
5909
6117
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
5910
|
-
return /* @__PURE__ */
|
|
6118
|
+
return /* @__PURE__ */ jsx16(
|
|
5911
6119
|
DropdownMenuPrimitive.Label,
|
|
5912
6120
|
__spreadValues({
|
|
5913
6121
|
ref,
|
|
@@ -5920,9 +6128,9 @@ var DropdownMenuLabel = React40.forwardRef((_a, ref) => {
|
|
|
5920
6128
|
);
|
|
5921
6129
|
});
|
|
5922
6130
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
5923
|
-
var DropdownMenuSeparator =
|
|
6131
|
+
var DropdownMenuSeparator = React41.forwardRef((_a, ref) => {
|
|
5924
6132
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5925
|
-
return /* @__PURE__ */
|
|
6133
|
+
return /* @__PURE__ */ jsx16(
|
|
5926
6134
|
DropdownMenuPrimitive.Separator,
|
|
5927
6135
|
__spreadValues({
|
|
5928
6136
|
ref,
|
|
@@ -5937,7 +6145,7 @@ var DropdownMenuShortcut = (_a) => {
|
|
|
5937
6145
|
} = _b, props = __objRest(_b, [
|
|
5938
6146
|
"className"
|
|
5939
6147
|
]);
|
|
5940
|
-
return /* @__PURE__ */
|
|
6148
|
+
return /* @__PURE__ */ jsx16(
|
|
5941
6149
|
"span",
|
|
5942
6150
|
__spreadValues({
|
|
5943
6151
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className)
|
|
@@ -5950,7 +6158,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
5950
6158
|
import {
|
|
5951
6159
|
FormProvider
|
|
5952
6160
|
} from "react-hook-form";
|
|
5953
|
-
import { jsx as
|
|
6161
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
5954
6162
|
var Form = ({
|
|
5955
6163
|
children,
|
|
5956
6164
|
methods,
|
|
@@ -5959,22 +6167,22 @@ var Form = ({
|
|
|
5959
6167
|
onError,
|
|
5960
6168
|
formProps = {}
|
|
5961
6169
|
}) => {
|
|
5962
|
-
return /* @__PURE__ */
|
|
6170
|
+
return /* @__PURE__ */ jsx17(FormProvider, __spreadProps(__spreadValues({}, methods), { children: /* @__PURE__ */ jsx17("form", __spreadProps(__spreadValues({ onSubmit: methods.handleSubmit(onSubmit, onError) }, formProps), { children })) }));
|
|
5963
6171
|
};
|
|
5964
6172
|
|
|
5965
6173
|
// src/components/Form/form-field.tsx
|
|
5966
|
-
import
|
|
6174
|
+
import React43 from "react";
|
|
5967
6175
|
import {
|
|
5968
6176
|
Controller,
|
|
5969
6177
|
useFormContext
|
|
5970
6178
|
} from "react-hook-form";
|
|
5971
|
-
import { Slot as
|
|
6179
|
+
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
5972
6180
|
import { Asterisk } from "lucide-react";
|
|
5973
6181
|
|
|
5974
6182
|
// src/components/input.tsx
|
|
5975
|
-
import * as
|
|
5976
|
-
import { jsx as
|
|
5977
|
-
var Input =
|
|
6183
|
+
import * as React42 from "react";
|
|
6184
|
+
import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
6185
|
+
var Input = React42.forwardRef(
|
|
5978
6186
|
(_a, ref) => {
|
|
5979
6187
|
var _b = _a, {
|
|
5980
6188
|
className,
|
|
@@ -6021,7 +6229,7 @@ var Input = React41.forwardRef(
|
|
|
6021
6229
|
const specialSizeForFlushed = variant === "flushed" ? size === "sm" ? "h-9 text-sm" : size === "lg" ? "h-12 text-base" : "h-11 text-sm" : "";
|
|
6022
6230
|
const specialSizeForLink = variant === "link" ? "text-sm" : "";
|
|
6023
6231
|
return /* @__PURE__ */ jsxs10("div", { className: cn("relative", disabled && "opacity-80"), children: [
|
|
6024
|
-
leading ? /* @__PURE__ */
|
|
6232
|
+
leading ? /* @__PURE__ */ jsx18(
|
|
6025
6233
|
"span",
|
|
6026
6234
|
{
|
|
6027
6235
|
className: cn(
|
|
@@ -6032,7 +6240,7 @@ var Input = React41.forwardRef(
|
|
|
6032
6240
|
children: leading
|
|
6033
6241
|
}
|
|
6034
6242
|
) : null,
|
|
6035
|
-
/* @__PURE__ */
|
|
6243
|
+
/* @__PURE__ */ jsx18(
|
|
6036
6244
|
"input",
|
|
6037
6245
|
__spreadValues({
|
|
6038
6246
|
ref,
|
|
@@ -6050,7 +6258,7 @@ var Input = React41.forwardRef(
|
|
|
6050
6258
|
"data-private": true
|
|
6051
6259
|
}, props)
|
|
6052
6260
|
),
|
|
6053
|
-
trailing ? /* @__PURE__ */
|
|
6261
|
+
trailing ? /* @__PURE__ */ jsx18(
|
|
6054
6262
|
"span",
|
|
6055
6263
|
{
|
|
6056
6264
|
className: cn(
|
|
@@ -6067,7 +6275,7 @@ var Input = React41.forwardRef(
|
|
|
6067
6275
|
Input.displayName = "Input";
|
|
6068
6276
|
|
|
6069
6277
|
// src/components/Form/form-field.tsx
|
|
6070
|
-
import { jsx as
|
|
6278
|
+
import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
6071
6279
|
var inputVariants = {
|
|
6072
6280
|
outline: "rounded-md border border-input bg-input backdrop-blur-sm shadow-sm hover:border-primary/60 focus:border-primary focus:ring-2 focus:ring-primary/20",
|
|
6073
6281
|
soft: "rounded-md border border-transparent bg-muted/60 hover:bg-muted shadow-sm focus:bg-input/80 focus:ring-2 focus:ring-primary/20",
|
|
@@ -6081,7 +6289,7 @@ var inputVariants = {
|
|
|
6081
6289
|
link: "border-0 p-0 h-auto shadow-none bg-transparent text-primary underline-offset-4 focus:underline focus:ring-0"
|
|
6082
6290
|
};
|
|
6083
6291
|
var variants = inputVariants;
|
|
6084
|
-
var FormFieldContext =
|
|
6292
|
+
var FormFieldContext = React43.createContext(
|
|
6085
6293
|
null
|
|
6086
6294
|
);
|
|
6087
6295
|
var FormField = (_a) => {
|
|
@@ -6125,7 +6333,7 @@ var FormField = (_a) => {
|
|
|
6125
6333
|
formState: { errors }
|
|
6126
6334
|
} = useFormContext();
|
|
6127
6335
|
const fieldError = (_a2 = errors[name]) == null ? void 0 : _a2.message;
|
|
6128
|
-
return /* @__PURE__ */
|
|
6336
|
+
return /* @__PURE__ */ jsx19(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx19(
|
|
6129
6337
|
Controller,
|
|
6130
6338
|
{
|
|
6131
6339
|
control,
|
|
@@ -6143,7 +6351,7 @@ var FormField = (_a) => {
|
|
|
6143
6351
|
),
|
|
6144
6352
|
children: [
|
|
6145
6353
|
label,
|
|
6146
|
-
requiredLabel && /* @__PURE__ */
|
|
6354
|
+
requiredLabel && /* @__PURE__ */ jsx19(
|
|
6147
6355
|
Asterisk,
|
|
6148
6356
|
{
|
|
6149
6357
|
className: cn(
|
|
@@ -6155,7 +6363,7 @@ var FormField = (_a) => {
|
|
|
6155
6363
|
]
|
|
6156
6364
|
}
|
|
6157
6365
|
),
|
|
6158
|
-
/* @__PURE__ */
|
|
6366
|
+
/* @__PURE__ */ jsx19(FormControl, { children: /* @__PURE__ */ jsx19(
|
|
6159
6367
|
Input,
|
|
6160
6368
|
__spreadProps(__spreadValues(__spreadValues({}, field), inputProps), {
|
|
6161
6369
|
onChange: (e) => {
|
|
@@ -6167,26 +6375,26 @@ var FormField = (_a) => {
|
|
|
6167
6375
|
classNameDefault
|
|
6168
6376
|
})
|
|
6169
6377
|
) }),
|
|
6170
|
-
fieldError && /* @__PURE__ */
|
|
6378
|
+
fieldError && /* @__PURE__ */ jsx19(FormMessage, { className: messageClassName, children: fieldError })
|
|
6171
6379
|
] })
|
|
6172
6380
|
}
|
|
6173
6381
|
) });
|
|
6174
6382
|
};
|
|
6175
|
-
var FormItemContext =
|
|
6383
|
+
var FormItemContext = React43.createContext(
|
|
6176
6384
|
{}
|
|
6177
6385
|
);
|
|
6178
|
-
var FormItem =
|
|
6386
|
+
var FormItem = React43.forwardRef((_a, ref) => {
|
|
6179
6387
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6180
|
-
const id =
|
|
6181
|
-
return /* @__PURE__ */
|
|
6388
|
+
const id = React43.useId();
|
|
6389
|
+
return /* @__PURE__ */ jsx19(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx19("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
|
|
6182
6390
|
});
|
|
6183
6391
|
FormItem.displayName = "FormItem";
|
|
6184
6392
|
var useFormField = () => {
|
|
6185
|
-
const fieldContext =
|
|
6186
|
-
const itemContext =
|
|
6393
|
+
const fieldContext = React43.useContext(FormFieldContext);
|
|
6394
|
+
const itemContext = React43.useContext(FormItemContext);
|
|
6187
6395
|
const { getFieldState, formState } = useFormContext();
|
|
6188
6396
|
if (!(itemContext == null ? void 0 : itemContext.id)) {
|
|
6189
|
-
const id2 =
|
|
6397
|
+
const id2 = React43.useId();
|
|
6190
6398
|
return {
|
|
6191
6399
|
id: id2,
|
|
6192
6400
|
formItemId: `${id2}-form-item`,
|
|
@@ -6215,10 +6423,10 @@ var useFormField = () => {
|
|
|
6215
6423
|
formMessageId: `${id}-form-item-message`
|
|
6216
6424
|
}, fieldState);
|
|
6217
6425
|
};
|
|
6218
|
-
var FormLabel =
|
|
6426
|
+
var FormLabel = React43.forwardRef((_a, ref) => {
|
|
6219
6427
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6220
6428
|
const { error, formItemId } = useFormField();
|
|
6221
|
-
return /* @__PURE__ */
|
|
6429
|
+
return /* @__PURE__ */ jsx19(
|
|
6222
6430
|
Label3,
|
|
6223
6431
|
__spreadValues({
|
|
6224
6432
|
ref,
|
|
@@ -6228,11 +6436,11 @@ var FormLabel = React42.forwardRef((_a, ref) => {
|
|
|
6228
6436
|
);
|
|
6229
6437
|
});
|
|
6230
6438
|
FormLabel.displayName = "FormLabel";
|
|
6231
|
-
var FormControl =
|
|
6439
|
+
var FormControl = React43.forwardRef((_a, ref) => {
|
|
6232
6440
|
var props = __objRest(_a, []);
|
|
6233
6441
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
6234
|
-
return /* @__PURE__ */
|
|
6235
|
-
|
|
6442
|
+
return /* @__PURE__ */ jsx19(
|
|
6443
|
+
Slot4,
|
|
6236
6444
|
__spreadValues({
|
|
6237
6445
|
ref,
|
|
6238
6446
|
id: formItemId,
|
|
@@ -6242,10 +6450,10 @@ var FormControl = React42.forwardRef((_a, ref) => {
|
|
|
6242
6450
|
);
|
|
6243
6451
|
});
|
|
6244
6452
|
FormControl.displayName = "FormControl";
|
|
6245
|
-
var FormDescription =
|
|
6453
|
+
var FormDescription = React43.forwardRef((_a, ref) => {
|
|
6246
6454
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6247
6455
|
const { formDescriptionId } = useFormField();
|
|
6248
|
-
return /* @__PURE__ */
|
|
6456
|
+
return /* @__PURE__ */ jsx19(
|
|
6249
6457
|
"p",
|
|
6250
6458
|
__spreadValues({
|
|
6251
6459
|
ref,
|
|
@@ -6255,12 +6463,12 @@ var FormDescription = React42.forwardRef((_a, ref) => {
|
|
|
6255
6463
|
);
|
|
6256
6464
|
});
|
|
6257
6465
|
FormDescription.displayName = "FormDescription";
|
|
6258
|
-
var FormMessage =
|
|
6466
|
+
var FormMessage = React43.forwardRef((_a, ref) => {
|
|
6259
6467
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
6260
6468
|
const { error, formMessageId } = useFormField();
|
|
6261
6469
|
const body = error ? error == null ? void 0 : error.message : children;
|
|
6262
6470
|
if (!body) return null;
|
|
6263
|
-
return /* @__PURE__ */
|
|
6471
|
+
return /* @__PURE__ */ jsx19(
|
|
6264
6472
|
"p",
|
|
6265
6473
|
__spreadProps(__spreadValues({
|
|
6266
6474
|
ref,
|
|
@@ -6316,21 +6524,21 @@ var FormSelect = ({
|
|
|
6316
6524
|
lg: "h-10 text-base"
|
|
6317
6525
|
};
|
|
6318
6526
|
const fieldError = (_a = errors[name]) == null ? void 0 : _a.message;
|
|
6319
|
-
const [query, setQuery] =
|
|
6320
|
-
const getOptionText =
|
|
6527
|
+
const [query, setQuery] = React43.useState("");
|
|
6528
|
+
const getOptionText = React43.useCallback((opt) => {
|
|
6321
6529
|
var _a2;
|
|
6322
6530
|
if (typeof opt.label === "string") return opt.label.toLowerCase();
|
|
6323
6531
|
const extra = typeof ((_a2 = opt == null ? void 0 : opt.data) == null ? void 0 : _a2.search) === "string" ? opt.data.search.toLowerCase() : "";
|
|
6324
6532
|
return `${opt.value}${extra}`.toLowerCase();
|
|
6325
6533
|
}, []);
|
|
6326
|
-
const searchRef =
|
|
6327
|
-
const filteredItems =
|
|
6534
|
+
const searchRef = React43.useRef(null);
|
|
6535
|
+
const filteredItems = React43.useMemo(() => {
|
|
6328
6536
|
if (!items) return items;
|
|
6329
6537
|
if (!searchable || !query.trim()) return items;
|
|
6330
6538
|
const q = query.trim().toLowerCase();
|
|
6331
6539
|
return items.filter((opt) => getOptionText(opt).includes(q));
|
|
6332
6540
|
}, [items, searchable, query, getOptionText]);
|
|
6333
|
-
return /* @__PURE__ */
|
|
6541
|
+
return /* @__PURE__ */ jsx19(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx19(
|
|
6334
6542
|
Controller,
|
|
6335
6543
|
{
|
|
6336
6544
|
control,
|
|
@@ -6347,7 +6555,7 @@ var FormSelect = ({
|
|
|
6347
6555
|
className: cn("flex items-center gap-0", labelClassName),
|
|
6348
6556
|
children: [
|
|
6349
6557
|
label,
|
|
6350
|
-
requiredLabel && /* @__PURE__ */
|
|
6558
|
+
requiredLabel && /* @__PURE__ */ jsx19(
|
|
6351
6559
|
Asterisk,
|
|
6352
6560
|
{
|
|
6353
6561
|
className: cn(
|
|
@@ -6369,7 +6577,7 @@ var FormSelect = ({
|
|
|
6369
6577
|
},
|
|
6370
6578
|
disabled,
|
|
6371
6579
|
children: [
|
|
6372
|
-
/* @__PURE__ */
|
|
6580
|
+
/* @__PURE__ */ jsx19(FormControl, { children: /* @__PURE__ */ jsx19(
|
|
6373
6581
|
SelectTrigger,
|
|
6374
6582
|
{
|
|
6375
6583
|
className: cn(
|
|
@@ -6379,7 +6587,7 @@ var FormSelect = ({
|
|
|
6379
6587
|
errorCls,
|
|
6380
6588
|
className
|
|
6381
6589
|
),
|
|
6382
|
-
children: /* @__PURE__ */
|
|
6590
|
+
children: /* @__PURE__ */ jsx19(SelectValue, { placeholder })
|
|
6383
6591
|
}
|
|
6384
6592
|
) }),
|
|
6385
6593
|
/* @__PURE__ */ jsxs11(
|
|
@@ -6394,7 +6602,7 @@ var FormSelect = ({
|
|
|
6394
6602
|
});
|
|
6395
6603
|
},
|
|
6396
6604
|
children: [
|
|
6397
|
-
searchable && ((_b = items == null ? void 0 : items.length) != null ? _b : 0) > 0 && /* @__PURE__ */
|
|
6605
|
+
searchable && ((_b = items == null ? void 0 : items.length) != null ? _b : 0) > 0 && /* @__PURE__ */ jsx19("div", { className: "border-border bg-popover sticky top-0 border-b p-2", children: /* @__PURE__ */ jsx19(
|
|
6398
6606
|
"input",
|
|
6399
6607
|
{
|
|
6400
6608
|
ref: searchRef,
|
|
@@ -6412,7 +6620,7 @@ var FormSelect = ({
|
|
|
6412
6620
|
onClick: (e) => e.stopPropagation()
|
|
6413
6621
|
}
|
|
6414
6622
|
) }),
|
|
6415
|
-
children && !searchable ? children : (_c = filteredItems != null ? filteredItems : items) == null ? void 0 : _c.map((opt) => /* @__PURE__ */
|
|
6623
|
+
children && !searchable ? children : (_c = filteredItems != null ? filteredItems : items) == null ? void 0 : _c.map((opt) => /* @__PURE__ */ jsx19(
|
|
6416
6624
|
SelectItem,
|
|
6417
6625
|
{
|
|
6418
6626
|
value: opt.value,
|
|
@@ -6428,7 +6636,7 @@ var FormSelect = ({
|
|
|
6428
6636
|
]
|
|
6429
6637
|
}
|
|
6430
6638
|
),
|
|
6431
|
-
fieldError && /* @__PURE__ */
|
|
6639
|
+
fieldError && /* @__PURE__ */ jsx19(FormMessage, { className: messageClassName, children: fieldError })
|
|
6432
6640
|
] });
|
|
6433
6641
|
}
|
|
6434
6642
|
}
|
|
@@ -6438,13 +6646,13 @@ FormSelect.displayName = "FormSelect";
|
|
|
6438
6646
|
|
|
6439
6647
|
// src/components/hover-card.tsx
|
|
6440
6648
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
6441
|
-
import * as
|
|
6442
|
-
import { jsx as
|
|
6649
|
+
import * as React44 from "react";
|
|
6650
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
6443
6651
|
var HoverCard = HoverCardPrimitive.Root;
|
|
6444
6652
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
6445
|
-
var HoverCardContent =
|
|
6653
|
+
var HoverCardContent = React44.forwardRef((_a, ref) => {
|
|
6446
6654
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
6447
|
-
return /* @__PURE__ */
|
|
6655
|
+
return /* @__PURE__ */ jsx20(
|
|
6448
6656
|
HoverCardPrimitive.Content,
|
|
6449
6657
|
__spreadValues({
|
|
6450
6658
|
ref,
|
|
@@ -6475,7 +6683,7 @@ import {
|
|
|
6475
6683
|
Image as Image2,
|
|
6476
6684
|
Laptop,
|
|
6477
6685
|
LayoutDashboardIcon,
|
|
6478
|
-
Loader2 as
|
|
6686
|
+
Loader2 as Loader23,
|
|
6479
6687
|
LogIn,
|
|
6480
6688
|
Moon,
|
|
6481
6689
|
MoreVertical,
|
|
@@ -6495,7 +6703,7 @@ var IconsApp = {
|
|
|
6495
6703
|
login: LogIn,
|
|
6496
6704
|
close: X,
|
|
6497
6705
|
profile: User2Icon,
|
|
6498
|
-
spinner:
|
|
6706
|
+
spinner: Loader23,
|
|
6499
6707
|
kanban: CircuitBoardIcon,
|
|
6500
6708
|
chevronLeft: ChevronLeft,
|
|
6501
6709
|
chevronRight: ChevronRight,
|
|
@@ -6523,11 +6731,11 @@ var Icons = IconsApp;
|
|
|
6523
6731
|
// src/components/input-otp.tsx
|
|
6524
6732
|
import { DashIcon } from "@radix-ui/react-icons";
|
|
6525
6733
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
6526
|
-
import * as
|
|
6527
|
-
import { jsx as
|
|
6528
|
-
var InputOTP =
|
|
6734
|
+
import * as React45 from "react";
|
|
6735
|
+
import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
6736
|
+
var InputOTP = React45.forwardRef((_a, ref) => {
|
|
6529
6737
|
var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
|
|
6530
|
-
return /* @__PURE__ */
|
|
6738
|
+
return /* @__PURE__ */ jsx21(
|
|
6531
6739
|
OTPInput,
|
|
6532
6740
|
__spreadValues({
|
|
6533
6741
|
ref,
|
|
@@ -6540,14 +6748,14 @@ var InputOTP = React44.forwardRef((_a, ref) => {
|
|
|
6540
6748
|
);
|
|
6541
6749
|
});
|
|
6542
6750
|
InputOTP.displayName = "InputOTP";
|
|
6543
|
-
var InputOTPGroup =
|
|
6751
|
+
var InputOTPGroup = React45.forwardRef((_a, ref) => {
|
|
6544
6752
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6545
|
-
return /* @__PURE__ */
|
|
6753
|
+
return /* @__PURE__ */ jsx21("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
|
|
6546
6754
|
});
|
|
6547
6755
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
6548
|
-
var InputOTPSlot =
|
|
6756
|
+
var InputOTPSlot = React45.forwardRef((_a, ref) => {
|
|
6549
6757
|
var _b = _a, { index, className } = _b, props = __objRest(_b, ["index", "className"]);
|
|
6550
|
-
const inputOTPContext =
|
|
6758
|
+
const inputOTPContext = React45.useContext(OTPInputContext);
|
|
6551
6759
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
6552
6760
|
return /* @__PURE__ */ jsxs12(
|
|
6553
6761
|
"div",
|
|
@@ -6562,29 +6770,29 @@ var InputOTPSlot = React44.forwardRef((_a, ref) => {
|
|
|
6562
6770
|
}, props), {
|
|
6563
6771
|
children: [
|
|
6564
6772
|
char,
|
|
6565
|
-
hasFakeCaret && /* @__PURE__ */
|
|
6773
|
+
hasFakeCaret && /* @__PURE__ */ jsx21("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx21("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
|
|
6566
6774
|
]
|
|
6567
6775
|
})
|
|
6568
6776
|
);
|
|
6569
6777
|
});
|
|
6570
6778
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
6571
|
-
var InputOTPSeparator =
|
|
6779
|
+
var InputOTPSeparator = React45.forwardRef((_a, ref) => {
|
|
6572
6780
|
var props = __objRest(_a, []);
|
|
6573
|
-
return /* @__PURE__ */
|
|
6781
|
+
return /* @__PURE__ */ jsx21("div", __spreadProps(__spreadValues({ ref, role: "separator" }, props), { children: /* @__PURE__ */ jsx21(DashIcon, {}) }));
|
|
6574
6782
|
});
|
|
6575
6783
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
6576
6784
|
|
|
6577
6785
|
// src/components/Label/label.tsx
|
|
6578
6786
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
6579
|
-
import { cva as
|
|
6580
|
-
import * as
|
|
6581
|
-
import { jsx as
|
|
6582
|
-
var labelVariants =
|
|
6787
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
6788
|
+
import * as React46 from "react";
|
|
6789
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
6790
|
+
var labelVariants = cva5(
|
|
6583
6791
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-label"
|
|
6584
6792
|
);
|
|
6585
|
-
var Label3 =
|
|
6793
|
+
var Label3 = React46.forwardRef((_a, ref) => {
|
|
6586
6794
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6587
|
-
return /* @__PURE__ */
|
|
6795
|
+
return /* @__PURE__ */ jsx22(
|
|
6588
6796
|
LabelPrimitive.Root,
|
|
6589
6797
|
__spreadValues({
|
|
6590
6798
|
ref,
|
|
@@ -6601,16 +6809,16 @@ import {
|
|
|
6601
6809
|
DotFilledIcon as DotFilledIcon3
|
|
6602
6810
|
} from "@radix-ui/react-icons";
|
|
6603
6811
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
6604
|
-
import * as
|
|
6605
|
-
import { jsx as
|
|
6812
|
+
import * as React47 from "react";
|
|
6813
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
6606
6814
|
var MenubarMenu = MenubarPrimitive.Menu;
|
|
6607
6815
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
6608
6816
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
6609
6817
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
6610
6818
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
6611
|
-
var Menubar =
|
|
6819
|
+
var Menubar = React47.forwardRef((_a, ref) => {
|
|
6612
6820
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6613
|
-
return /* @__PURE__ */
|
|
6821
|
+
return /* @__PURE__ */ jsx23(
|
|
6614
6822
|
MenubarPrimitive.Root,
|
|
6615
6823
|
__spreadValues({
|
|
6616
6824
|
ref,
|
|
@@ -6622,9 +6830,9 @@ var Menubar = React46.forwardRef((_a, ref) => {
|
|
|
6622
6830
|
);
|
|
6623
6831
|
});
|
|
6624
6832
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
6625
|
-
var MenubarTrigger =
|
|
6833
|
+
var MenubarTrigger = React47.forwardRef((_a, ref) => {
|
|
6626
6834
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6627
|
-
return /* @__PURE__ */
|
|
6835
|
+
return /* @__PURE__ */ jsx23(
|
|
6628
6836
|
MenubarPrimitive.Trigger,
|
|
6629
6837
|
__spreadValues({
|
|
6630
6838
|
ref,
|
|
@@ -6636,7 +6844,7 @@ var MenubarTrigger = React46.forwardRef((_a, ref) => {
|
|
|
6636
6844
|
);
|
|
6637
6845
|
});
|
|
6638
6846
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
6639
|
-
var MenubarSubTrigger =
|
|
6847
|
+
var MenubarSubTrigger = React47.forwardRef((_a, ref) => {
|
|
6640
6848
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
6641
6849
|
return /* @__PURE__ */ jsxs13(
|
|
6642
6850
|
MenubarPrimitive.SubTrigger,
|
|
@@ -6650,15 +6858,15 @@ var MenubarSubTrigger = React46.forwardRef((_a, ref) => {
|
|
|
6650
6858
|
}, props), {
|
|
6651
6859
|
children: [
|
|
6652
6860
|
children,
|
|
6653
|
-
/* @__PURE__ */
|
|
6861
|
+
/* @__PURE__ */ jsx23(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
|
|
6654
6862
|
]
|
|
6655
6863
|
})
|
|
6656
6864
|
);
|
|
6657
6865
|
});
|
|
6658
6866
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
6659
|
-
var MenubarSubContent =
|
|
6867
|
+
var MenubarSubContent = React47.forwardRef((_a, ref) => {
|
|
6660
6868
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6661
|
-
return /* @__PURE__ */
|
|
6869
|
+
return /* @__PURE__ */ jsx23(
|
|
6662
6870
|
MenubarPrimitive.SubContent,
|
|
6663
6871
|
__spreadValues({
|
|
6664
6872
|
ref,
|
|
@@ -6670,10 +6878,10 @@ var MenubarSubContent = React46.forwardRef((_a, ref) => {
|
|
|
6670
6878
|
);
|
|
6671
6879
|
});
|
|
6672
6880
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
6673
|
-
var MenubarContent =
|
|
6881
|
+
var MenubarContent = React47.forwardRef(
|
|
6674
6882
|
(_a, ref) => {
|
|
6675
6883
|
var _b = _a, { className, align = "start", alignOffset = -4, sideOffset = 8 } = _b, props = __objRest(_b, ["className", "align", "alignOffset", "sideOffset"]);
|
|
6676
|
-
return /* @__PURE__ */
|
|
6884
|
+
return /* @__PURE__ */ jsx23(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
|
|
6677
6885
|
MenubarPrimitive.Content,
|
|
6678
6886
|
__spreadValues({
|
|
6679
6887
|
ref,
|
|
@@ -6689,9 +6897,9 @@ var MenubarContent = React46.forwardRef(
|
|
|
6689
6897
|
}
|
|
6690
6898
|
);
|
|
6691
6899
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
6692
|
-
var MenubarItem =
|
|
6900
|
+
var MenubarItem = React47.forwardRef((_a, ref) => {
|
|
6693
6901
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
6694
|
-
return /* @__PURE__ */
|
|
6902
|
+
return /* @__PURE__ */ jsx23(
|
|
6695
6903
|
MenubarPrimitive.Item,
|
|
6696
6904
|
__spreadValues({
|
|
6697
6905
|
ref,
|
|
@@ -6704,7 +6912,7 @@ var MenubarItem = React46.forwardRef((_a, ref) => {
|
|
|
6704
6912
|
);
|
|
6705
6913
|
});
|
|
6706
6914
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
6707
|
-
var MenubarCheckboxItem =
|
|
6915
|
+
var MenubarCheckboxItem = React47.forwardRef((_a, ref) => {
|
|
6708
6916
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
6709
6917
|
return /* @__PURE__ */ jsxs13(
|
|
6710
6918
|
MenubarPrimitive.CheckboxItem,
|
|
@@ -6717,14 +6925,14 @@ var MenubarCheckboxItem = React46.forwardRef((_a, ref) => {
|
|
|
6717
6925
|
checked
|
|
6718
6926
|
}, props), {
|
|
6719
6927
|
children: [
|
|
6720
|
-
/* @__PURE__ */
|
|
6928
|
+
/* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(CheckIcon4, { className: "h-4 w-4" }) }) }),
|
|
6721
6929
|
children
|
|
6722
6930
|
]
|
|
6723
6931
|
})
|
|
6724
6932
|
);
|
|
6725
6933
|
});
|
|
6726
6934
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
6727
|
-
var MenubarRadioItem =
|
|
6935
|
+
var MenubarRadioItem = React47.forwardRef((_a, ref) => {
|
|
6728
6936
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
6729
6937
|
return /* @__PURE__ */ jsxs13(
|
|
6730
6938
|
MenubarPrimitive.RadioItem,
|
|
@@ -6736,16 +6944,16 @@ var MenubarRadioItem = React46.forwardRef((_a, ref) => {
|
|
|
6736
6944
|
)
|
|
6737
6945
|
}, props), {
|
|
6738
6946
|
children: [
|
|
6739
|
-
/* @__PURE__ */
|
|
6947
|
+
/* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(DotFilledIcon3, { className: "h-4 w-4 fill-current" }) }) }),
|
|
6740
6948
|
children
|
|
6741
6949
|
]
|
|
6742
6950
|
})
|
|
6743
6951
|
);
|
|
6744
6952
|
});
|
|
6745
6953
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
6746
|
-
var MenubarLabel =
|
|
6954
|
+
var MenubarLabel = React47.forwardRef((_a, ref) => {
|
|
6747
6955
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
6748
|
-
return /* @__PURE__ */
|
|
6956
|
+
return /* @__PURE__ */ jsx23(
|
|
6749
6957
|
MenubarPrimitive.Label,
|
|
6750
6958
|
__spreadValues({
|
|
6751
6959
|
ref,
|
|
@@ -6758,9 +6966,9 @@ var MenubarLabel = React46.forwardRef((_a, ref) => {
|
|
|
6758
6966
|
);
|
|
6759
6967
|
});
|
|
6760
6968
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
6761
|
-
var MenubarSeparator =
|
|
6969
|
+
var MenubarSeparator = React47.forwardRef((_a, ref) => {
|
|
6762
6970
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6763
|
-
return /* @__PURE__ */
|
|
6971
|
+
return /* @__PURE__ */ jsx23(
|
|
6764
6972
|
MenubarPrimitive.Separator,
|
|
6765
6973
|
__spreadValues({
|
|
6766
6974
|
ref,
|
|
@@ -6775,7 +6983,7 @@ var MenubarShortcut = (_a) => {
|
|
|
6775
6983
|
} = _b, props = __objRest(_b, [
|
|
6776
6984
|
"className"
|
|
6777
6985
|
]);
|
|
6778
|
-
return /* @__PURE__ */
|
|
6986
|
+
return /* @__PURE__ */ jsx23(
|
|
6779
6987
|
"span",
|
|
6780
6988
|
__spreadValues({
|
|
6781
6989
|
className: cn(
|
|
@@ -6788,7 +6996,7 @@ var MenubarShortcut = (_a) => {
|
|
|
6788
6996
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
6789
6997
|
|
|
6790
6998
|
// src/components/modal.tsx
|
|
6791
|
-
import { jsx as
|
|
6999
|
+
import { jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
6792
7000
|
var Modal = ({
|
|
6793
7001
|
title,
|
|
6794
7002
|
description,
|
|
@@ -6802,22 +7010,22 @@ var Modal = ({
|
|
|
6802
7010
|
onClose();
|
|
6803
7011
|
}
|
|
6804
7012
|
};
|
|
6805
|
-
return /* @__PURE__ */
|
|
7013
|
+
return /* @__PURE__ */ jsx24(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ jsxs14(DialogContent, { className, children: [
|
|
6806
7014
|
/* @__PURE__ */ jsxs14(DialogHeader, { children: [
|
|
6807
|
-
/* @__PURE__ */
|
|
6808
|
-
/* @__PURE__ */
|
|
7015
|
+
/* @__PURE__ */ jsx24(DialogTitle, { children: title }),
|
|
7016
|
+
/* @__PURE__ */ jsx24(DialogDescription, { children: description })
|
|
6809
7017
|
] }),
|
|
6810
|
-
/* @__PURE__ */
|
|
7018
|
+
/* @__PURE__ */ jsx24("div", { children })
|
|
6811
7019
|
] }) });
|
|
6812
7020
|
};
|
|
6813
7021
|
|
|
6814
7022
|
// src/components/navigation-menu.tsx
|
|
6815
7023
|
import { ChevronDownIcon as ChevronDownIcon2 } from "@radix-ui/react-icons";
|
|
6816
7024
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
6817
|
-
import { cva as
|
|
6818
|
-
import * as
|
|
6819
|
-
import { jsx as
|
|
6820
|
-
var NavigationMenu =
|
|
7025
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
7026
|
+
import * as React48 from "react";
|
|
7027
|
+
import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
7028
|
+
var NavigationMenu = React48.forwardRef((_a, ref) => {
|
|
6821
7029
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
6822
7030
|
return /* @__PURE__ */ jsxs15(
|
|
6823
7031
|
NavigationMenuPrimitive.Root,
|
|
@@ -6830,15 +7038,15 @@ var NavigationMenu = React47.forwardRef((_a, ref) => {
|
|
|
6830
7038
|
}, props), {
|
|
6831
7039
|
children: [
|
|
6832
7040
|
children,
|
|
6833
|
-
/* @__PURE__ */
|
|
7041
|
+
/* @__PURE__ */ jsx25(NavigationMenuViewport, {})
|
|
6834
7042
|
]
|
|
6835
7043
|
})
|
|
6836
7044
|
);
|
|
6837
7045
|
});
|
|
6838
7046
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
6839
|
-
var NavigationMenuList =
|
|
7047
|
+
var NavigationMenuList = React48.forwardRef((_a, ref) => {
|
|
6840
7048
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6841
|
-
return /* @__PURE__ */
|
|
7049
|
+
return /* @__PURE__ */ jsx25(
|
|
6842
7050
|
NavigationMenuPrimitive.List,
|
|
6843
7051
|
__spreadValues({
|
|
6844
7052
|
ref,
|
|
@@ -6851,10 +7059,10 @@ var NavigationMenuList = React47.forwardRef((_a, ref) => {
|
|
|
6851
7059
|
});
|
|
6852
7060
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
6853
7061
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
6854
|
-
var navigationMenuTriggerStyle =
|
|
7062
|
+
var navigationMenuTriggerStyle = cva6(
|
|
6855
7063
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
6856
7064
|
);
|
|
6857
|
-
var NavigationMenuTrigger =
|
|
7065
|
+
var NavigationMenuTrigger = React48.forwardRef((_a, ref) => {
|
|
6858
7066
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
6859
7067
|
return /* @__PURE__ */ jsxs15(
|
|
6860
7068
|
NavigationMenuPrimitive.Trigger,
|
|
@@ -6865,7 +7073,7 @@ var NavigationMenuTrigger = React47.forwardRef((_a, ref) => {
|
|
|
6865
7073
|
children: [
|
|
6866
7074
|
children,
|
|
6867
7075
|
" ",
|
|
6868
|
-
/* @__PURE__ */
|
|
7076
|
+
/* @__PURE__ */ jsx25(
|
|
6869
7077
|
ChevronDownIcon2,
|
|
6870
7078
|
{
|
|
6871
7079
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -6877,9 +7085,9 @@ var NavigationMenuTrigger = React47.forwardRef((_a, ref) => {
|
|
|
6877
7085
|
);
|
|
6878
7086
|
});
|
|
6879
7087
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
6880
|
-
var NavigationMenuContent =
|
|
7088
|
+
var NavigationMenuContent = React48.forwardRef((_a, ref) => {
|
|
6881
7089
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6882
|
-
return /* @__PURE__ */
|
|
7090
|
+
return /* @__PURE__ */ jsx25(
|
|
6883
7091
|
NavigationMenuPrimitive.Content,
|
|
6884
7092
|
__spreadValues({
|
|
6885
7093
|
ref,
|
|
@@ -6892,9 +7100,9 @@ var NavigationMenuContent = React47.forwardRef((_a, ref) => {
|
|
|
6892
7100
|
});
|
|
6893
7101
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
6894
7102
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
6895
|
-
var NavigationMenuViewport =
|
|
7103
|
+
var NavigationMenuViewport = React48.forwardRef((_a, ref) => {
|
|
6896
7104
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6897
|
-
return /* @__PURE__ */
|
|
7105
|
+
return /* @__PURE__ */ jsx25("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx25(
|
|
6898
7106
|
NavigationMenuPrimitive.Viewport,
|
|
6899
7107
|
__spreadValues({
|
|
6900
7108
|
className: cn(
|
|
@@ -6906,9 +7114,9 @@ var NavigationMenuViewport = React47.forwardRef((_a, ref) => {
|
|
|
6906
7114
|
) });
|
|
6907
7115
|
});
|
|
6908
7116
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
6909
|
-
var NavigationMenuIndicator =
|
|
7117
|
+
var NavigationMenuIndicator = React48.forwardRef((_a, ref) => {
|
|
6910
7118
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6911
|
-
return /* @__PURE__ */
|
|
7119
|
+
return /* @__PURE__ */ jsx25(
|
|
6912
7120
|
NavigationMenuPrimitive.Indicator,
|
|
6913
7121
|
__spreadProps(__spreadValues({
|
|
6914
7122
|
ref,
|
|
@@ -6917,7 +7125,7 @@ var NavigationMenuIndicator = React47.forwardRef((_a, ref) => {
|
|
|
6917
7125
|
className
|
|
6918
7126
|
)
|
|
6919
7127
|
}, props), {
|
|
6920
|
-
children: /* @__PURE__ */
|
|
7128
|
+
children: /* @__PURE__ */ jsx25("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
6921
7129
|
})
|
|
6922
7130
|
);
|
|
6923
7131
|
});
|
|
@@ -6929,12 +7137,12 @@ import {
|
|
|
6929
7137
|
ChevronRightIcon as ChevronRightIcon5,
|
|
6930
7138
|
DotsHorizontalIcon as DotsHorizontalIcon2
|
|
6931
7139
|
} from "@radix-ui/react-icons";
|
|
6932
|
-
import * as
|
|
7140
|
+
import * as React49 from "react";
|
|
6933
7141
|
import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
|
|
6934
|
-
import { jsx as
|
|
7142
|
+
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
6935
7143
|
var Pagination = (_a) => {
|
|
6936
7144
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6937
|
-
return /* @__PURE__ */
|
|
7145
|
+
return /* @__PURE__ */ jsx26(
|
|
6938
7146
|
"nav",
|
|
6939
7147
|
__spreadValues({
|
|
6940
7148
|
role: "navigation",
|
|
@@ -6944,9 +7152,9 @@ var Pagination = (_a) => {
|
|
|
6944
7152
|
);
|
|
6945
7153
|
};
|
|
6946
7154
|
Pagination.displayName = "Pagination";
|
|
6947
|
-
var PaginationContent =
|
|
7155
|
+
var PaginationContent = React49.forwardRef((_a, ref) => {
|
|
6948
7156
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6949
|
-
return /* @__PURE__ */
|
|
7157
|
+
return /* @__PURE__ */ jsx26(
|
|
6950
7158
|
"ul",
|
|
6951
7159
|
__spreadValues({
|
|
6952
7160
|
ref,
|
|
@@ -6955,9 +7163,9 @@ var PaginationContent = React48.forwardRef((_a, ref) => {
|
|
|
6955
7163
|
);
|
|
6956
7164
|
});
|
|
6957
7165
|
PaginationContent.displayName = "PaginationContent";
|
|
6958
|
-
var PaginationItem =
|
|
7166
|
+
var PaginationItem = React49.forwardRef((_a, ref) => {
|
|
6959
7167
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6960
|
-
return /* @__PURE__ */
|
|
7168
|
+
return /* @__PURE__ */ jsx26("li", __spreadValues({ ref, className: cn("", className) }, props));
|
|
6961
7169
|
});
|
|
6962
7170
|
PaginationItem.displayName = "PaginationItem";
|
|
6963
7171
|
var PaginationLink = (_a) => {
|
|
@@ -6970,7 +7178,7 @@ var PaginationLink = (_a) => {
|
|
|
6970
7178
|
"isActive",
|
|
6971
7179
|
"size"
|
|
6972
7180
|
]);
|
|
6973
|
-
return /* @__PURE__ */
|
|
7181
|
+
return /* @__PURE__ */ jsx26(
|
|
6974
7182
|
"a",
|
|
6975
7183
|
__spreadValues({
|
|
6976
7184
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -6999,8 +7207,8 @@ var PaginationPreviousLast = (_a) => {
|
|
|
6999
7207
|
className: cn("gap-1 pl-2.5", className)
|
|
7000
7208
|
}, props), {
|
|
7001
7209
|
children: [
|
|
7002
|
-
/* @__PURE__ */
|
|
7003
|
-
/* @__PURE__ */
|
|
7210
|
+
/* @__PURE__ */ jsx26(ChevronLeft2, { className: "h-4 w-4" }),
|
|
7211
|
+
/* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Previous Last" })
|
|
7004
7212
|
]
|
|
7005
7213
|
})
|
|
7006
7214
|
);
|
|
@@ -7020,8 +7228,8 @@ var PaginationPrevious = (_a) => {
|
|
|
7020
7228
|
className: cn("gap-1 pl-2.5", className)
|
|
7021
7229
|
}, props), {
|
|
7022
7230
|
children: [
|
|
7023
|
-
/* @__PURE__ */
|
|
7024
|
-
/* @__PURE__ */
|
|
7231
|
+
/* @__PURE__ */ jsx26(ChevronLeftIcon, { className: "h-4 w-4" }),
|
|
7232
|
+
/* @__PURE__ */ jsx26("span", { children: "Previous" })
|
|
7025
7233
|
]
|
|
7026
7234
|
})
|
|
7027
7235
|
);
|
|
@@ -7041,8 +7249,8 @@ var PaginationNext = (_a) => {
|
|
|
7041
7249
|
className: cn("gap-1 pr-2.5", className)
|
|
7042
7250
|
}, props), {
|
|
7043
7251
|
children: [
|
|
7044
|
-
/* @__PURE__ */
|
|
7045
|
-
/* @__PURE__ */
|
|
7252
|
+
/* @__PURE__ */ jsx26("span", { children: "Next" }),
|
|
7253
|
+
/* @__PURE__ */ jsx26(ChevronRightIcon5, { className: "h-4 w-4" })
|
|
7046
7254
|
]
|
|
7047
7255
|
})
|
|
7048
7256
|
);
|
|
@@ -7062,8 +7270,8 @@ var PaginationNextLast = (_a) => {
|
|
|
7062
7270
|
className: cn("gap-1 pr-2.5", className)
|
|
7063
7271
|
}, props), {
|
|
7064
7272
|
children: [
|
|
7065
|
-
/* @__PURE__ */
|
|
7066
|
-
/* @__PURE__ */
|
|
7273
|
+
/* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Next Last" }),
|
|
7274
|
+
/* @__PURE__ */ jsx26(ChevronRight2, { className: "h-4 w-4" })
|
|
7067
7275
|
]
|
|
7068
7276
|
})
|
|
7069
7277
|
);
|
|
@@ -7082,8 +7290,8 @@ var PaginationEllipsis = (_a) => {
|
|
|
7082
7290
|
className: cn("flex h-9 w-9 items-center justify-center", className)
|
|
7083
7291
|
}, props), {
|
|
7084
7292
|
children: [
|
|
7085
|
-
/* @__PURE__ */
|
|
7086
|
-
/* @__PURE__ */
|
|
7293
|
+
/* @__PURE__ */ jsx26(DotsHorizontalIcon2, { className: "h-4 w-4" }),
|
|
7294
|
+
/* @__PURE__ */ jsx26("span", { className: "sr-only", children: "More pages" })
|
|
7087
7295
|
]
|
|
7088
7296
|
})
|
|
7089
7297
|
);
|
|
@@ -7092,14 +7300,14 @@ PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
|
7092
7300
|
|
|
7093
7301
|
// src/components/popover.tsx
|
|
7094
7302
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
7095
|
-
import * as
|
|
7096
|
-
import { jsx as
|
|
7303
|
+
import * as React50 from "react";
|
|
7304
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
7097
7305
|
var Popover = PopoverPrimitive.Root;
|
|
7098
7306
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
7099
7307
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
7100
|
-
var PopoverContent =
|
|
7308
|
+
var PopoverContent = React50.forwardRef((_a, ref) => {
|
|
7101
7309
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
7102
|
-
return /* @__PURE__ */
|
|
7310
|
+
return /* @__PURE__ */ jsx27(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx27(
|
|
7103
7311
|
PopoverPrimitive.Content,
|
|
7104
7312
|
__spreadValues({
|
|
7105
7313
|
ref,
|
|
@@ -7116,11 +7324,11 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
|
7116
7324
|
|
|
7117
7325
|
// src/components/progress.tsx
|
|
7118
7326
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
7119
|
-
import * as
|
|
7120
|
-
import { jsx as
|
|
7121
|
-
var Progress =
|
|
7327
|
+
import * as React51 from "react";
|
|
7328
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
7329
|
+
var Progress = React51.forwardRef((_a, ref) => {
|
|
7122
7330
|
var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
|
|
7123
|
-
return /* @__PURE__ */
|
|
7331
|
+
return /* @__PURE__ */ jsx28(
|
|
7124
7332
|
ProgressPrimitive.Root,
|
|
7125
7333
|
__spreadProps(__spreadValues({
|
|
7126
7334
|
ref,
|
|
@@ -7129,7 +7337,7 @@ var Progress = React50.forwardRef((_a, ref) => {
|
|
|
7129
7337
|
className
|
|
7130
7338
|
)
|
|
7131
7339
|
}, props), {
|
|
7132
|
-
children: /* @__PURE__ */
|
|
7340
|
+
children: /* @__PURE__ */ jsx28(
|
|
7133
7341
|
ProgressPrimitive.Indicator,
|
|
7134
7342
|
{
|
|
7135
7343
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -7144,11 +7352,11 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
|
7144
7352
|
// src/components/radio-group.tsx
|
|
7145
7353
|
import { CheckIcon as CheckIcon5 } from "@radix-ui/react-icons";
|
|
7146
7354
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
7147
|
-
import * as
|
|
7148
|
-
import { jsx as
|
|
7149
|
-
var RadioGroup4 =
|
|
7355
|
+
import * as React52 from "react";
|
|
7356
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
7357
|
+
var RadioGroup4 = React52.forwardRef((_a, ref) => {
|
|
7150
7358
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7151
|
-
return /* @__PURE__ */
|
|
7359
|
+
return /* @__PURE__ */ jsx29(
|
|
7152
7360
|
RadioGroupPrimitive.Root,
|
|
7153
7361
|
__spreadProps(__spreadValues({
|
|
7154
7362
|
className: cn("grid gap-2", className)
|
|
@@ -7158,9 +7366,9 @@ var RadioGroup4 = React51.forwardRef((_a, ref) => {
|
|
|
7158
7366
|
);
|
|
7159
7367
|
});
|
|
7160
7368
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
7161
|
-
var RadioGroupItem =
|
|
7369
|
+
var RadioGroupItem = React52.forwardRef((_a, ref) => {
|
|
7162
7370
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7163
|
-
return /* @__PURE__ */
|
|
7371
|
+
return /* @__PURE__ */ jsx29(
|
|
7164
7372
|
RadioGroupPrimitive.Item,
|
|
7165
7373
|
__spreadProps(__spreadValues({
|
|
7166
7374
|
ref,
|
|
@@ -7169,7 +7377,7 @@ var RadioGroupItem = React51.forwardRef((_a, ref) => {
|
|
|
7169
7377
|
className
|
|
7170
7378
|
)
|
|
7171
7379
|
}, props), {
|
|
7172
|
-
children: /* @__PURE__ */
|
|
7380
|
+
children: /* @__PURE__ */ jsx29(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx29(CheckIcon5, { className: "h-3.5 w-3.5 fill-primary" }) })
|
|
7173
7381
|
})
|
|
7174
7382
|
);
|
|
7175
7383
|
});
|
|
@@ -7178,14 +7386,14 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
|
7178
7386
|
// src/components/resizable.tsx
|
|
7179
7387
|
import { DragHandleDots2Icon } from "@radix-ui/react-icons";
|
|
7180
7388
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
7181
|
-
import { jsx as
|
|
7389
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
7182
7390
|
var ResizablePanelGroup = (_a) => {
|
|
7183
7391
|
var _b = _a, {
|
|
7184
7392
|
className
|
|
7185
7393
|
} = _b, props = __objRest(_b, [
|
|
7186
7394
|
"className"
|
|
7187
7395
|
]);
|
|
7188
|
-
return /* @__PURE__ */
|
|
7396
|
+
return /* @__PURE__ */ jsx30(
|
|
7189
7397
|
ResizablePrimitive.Group,
|
|
7190
7398
|
__spreadValues({
|
|
7191
7399
|
className: cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className)
|
|
@@ -7201,7 +7409,7 @@ var ResizableHandle = (_a) => {
|
|
|
7201
7409
|
"withHandle",
|
|
7202
7410
|
"className"
|
|
7203
7411
|
]);
|
|
7204
|
-
return /* @__PURE__ */
|
|
7412
|
+
return /* @__PURE__ */ jsx30(
|
|
7205
7413
|
ResizablePrimitive.Separator,
|
|
7206
7414
|
__spreadProps(__spreadValues({
|
|
7207
7415
|
className: cn(
|
|
@@ -7209,16 +7417,16 @@ var ResizableHandle = (_a) => {
|
|
|
7209
7417
|
className
|
|
7210
7418
|
)
|
|
7211
7419
|
}, props), {
|
|
7212
|
-
children: withHandle && /* @__PURE__ */
|
|
7420
|
+
children: withHandle && /* @__PURE__ */ jsx30("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx30(DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
|
|
7213
7421
|
})
|
|
7214
7422
|
);
|
|
7215
7423
|
};
|
|
7216
7424
|
|
|
7217
7425
|
// src/components/scroll-area.tsx
|
|
7218
7426
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
7219
|
-
import * as
|
|
7220
|
-
import { jsx as
|
|
7221
|
-
var ScrollArea =
|
|
7427
|
+
import * as React53 from "react";
|
|
7428
|
+
import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
7429
|
+
var ScrollArea = React53.forwardRef((_a, ref) => {
|
|
7222
7430
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
7223
7431
|
return /* @__PURE__ */ jsxs17(
|
|
7224
7432
|
ScrollAreaPrimitive.Root,
|
|
@@ -7227,17 +7435,17 @@ var ScrollArea = React52.forwardRef((_a, ref) => {
|
|
|
7227
7435
|
className: cn("relative overflow-hidden", className)
|
|
7228
7436
|
}, props), {
|
|
7229
7437
|
children: [
|
|
7230
|
-
/* @__PURE__ */
|
|
7231
|
-
/* @__PURE__ */
|
|
7232
|
-
/* @__PURE__ */
|
|
7438
|
+
/* @__PURE__ */ jsx31(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
7439
|
+
/* @__PURE__ */ jsx31(ScrollBar, {}),
|
|
7440
|
+
/* @__PURE__ */ jsx31(ScrollAreaPrimitive.Corner, {})
|
|
7233
7441
|
]
|
|
7234
7442
|
})
|
|
7235
7443
|
);
|
|
7236
7444
|
});
|
|
7237
7445
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
7238
|
-
var ScrollBar =
|
|
7446
|
+
var ScrollBar = React53.forwardRef((_a, ref) => {
|
|
7239
7447
|
var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
|
|
7240
|
-
return /* @__PURE__ */
|
|
7448
|
+
return /* @__PURE__ */ jsx31(
|
|
7241
7449
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
7242
7450
|
__spreadProps(__spreadValues({
|
|
7243
7451
|
ref,
|
|
@@ -7249,16 +7457,16 @@ var ScrollBar = React52.forwardRef((_a, ref) => {
|
|
|
7249
7457
|
className
|
|
7250
7458
|
)
|
|
7251
7459
|
}, props), {
|
|
7252
|
-
children: /* @__PURE__ */
|
|
7460
|
+
children: /* @__PURE__ */ jsx31(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
7253
7461
|
})
|
|
7254
7462
|
);
|
|
7255
7463
|
});
|
|
7256
7464
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
7257
7465
|
|
|
7258
7466
|
// src/components/search-input.tsx
|
|
7259
|
-
import
|
|
7467
|
+
import React54 from "react";
|
|
7260
7468
|
import { useDebouncedCallback } from "use-debounce";
|
|
7261
|
-
import { jsx as
|
|
7469
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
7262
7470
|
function SearchInput({
|
|
7263
7471
|
value = "",
|
|
7264
7472
|
placeholder,
|
|
@@ -7267,11 +7475,11 @@ function SearchInput({
|
|
|
7267
7475
|
debounceTime = 750,
|
|
7268
7476
|
onSearch
|
|
7269
7477
|
}) {
|
|
7270
|
-
const [searchTerm, setSearchTerm] =
|
|
7478
|
+
const [searchTerm, setSearchTerm] = React54.useState(value != null ? value : "");
|
|
7271
7479
|
const debouncedSearch = useDebouncedCallback((nextValue) => {
|
|
7272
7480
|
onSearch(nextValue);
|
|
7273
7481
|
}, debounceTime);
|
|
7274
|
-
|
|
7482
|
+
React54.useEffect(() => {
|
|
7275
7483
|
setSearchTerm(value != null ? value : "");
|
|
7276
7484
|
}, [value]);
|
|
7277
7485
|
const handleChange = (event) => {
|
|
@@ -7279,7 +7487,7 @@ function SearchInput({
|
|
|
7279
7487
|
setSearchTerm(nextValue);
|
|
7280
7488
|
debouncedSearch(nextValue);
|
|
7281
7489
|
};
|
|
7282
|
-
return /* @__PURE__ */
|
|
7490
|
+
return /* @__PURE__ */ jsx32(
|
|
7283
7491
|
Input,
|
|
7284
7492
|
{
|
|
7285
7493
|
placeholder: placeholder || "Search...",
|
|
@@ -7299,12 +7507,12 @@ import {
|
|
|
7299
7507
|
ChevronUpIcon
|
|
7300
7508
|
} from "@radix-ui/react-icons";
|
|
7301
7509
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
7302
|
-
import * as
|
|
7303
|
-
import { jsx as
|
|
7510
|
+
import * as React55 from "react";
|
|
7511
|
+
import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
7304
7512
|
var Select2 = SelectPrimitive.Root;
|
|
7305
7513
|
var SelectGroup = SelectPrimitive.Group;
|
|
7306
7514
|
var SelectValue = SelectPrimitive.Value;
|
|
7307
|
-
var SelectTrigger =
|
|
7515
|
+
var SelectTrigger = React55.forwardRef((_a, ref) => {
|
|
7308
7516
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
7309
7517
|
return /* @__PURE__ */ jsxs18(
|
|
7310
7518
|
SelectPrimitive.Trigger,
|
|
@@ -7317,15 +7525,15 @@ var SelectTrigger = React54.forwardRef((_a, ref) => {
|
|
|
7317
7525
|
}, props), {
|
|
7318
7526
|
children: [
|
|
7319
7527
|
children,
|
|
7320
|
-
/* @__PURE__ */
|
|
7528
|
+
/* @__PURE__ */ jsx33(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx33(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
|
|
7321
7529
|
]
|
|
7322
7530
|
})
|
|
7323
7531
|
);
|
|
7324
7532
|
});
|
|
7325
7533
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
7326
|
-
var SelectScrollUpButton =
|
|
7534
|
+
var SelectScrollUpButton = React55.forwardRef((_a, ref) => {
|
|
7327
7535
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7328
|
-
return /* @__PURE__ */
|
|
7536
|
+
return /* @__PURE__ */ jsx33(
|
|
7329
7537
|
SelectPrimitive.ScrollUpButton,
|
|
7330
7538
|
__spreadProps(__spreadValues({
|
|
7331
7539
|
ref,
|
|
@@ -7334,14 +7542,14 @@ var SelectScrollUpButton = React54.forwardRef((_a, ref) => {
|
|
|
7334
7542
|
className
|
|
7335
7543
|
)
|
|
7336
7544
|
}, props), {
|
|
7337
|
-
children: /* @__PURE__ */
|
|
7545
|
+
children: /* @__PURE__ */ jsx33(ChevronUpIcon, {})
|
|
7338
7546
|
})
|
|
7339
7547
|
);
|
|
7340
7548
|
});
|
|
7341
7549
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
7342
|
-
var SelectScrollDownButton =
|
|
7550
|
+
var SelectScrollDownButton = React55.forwardRef((_a, ref) => {
|
|
7343
7551
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7344
|
-
return /* @__PURE__ */
|
|
7552
|
+
return /* @__PURE__ */ jsx33(
|
|
7345
7553
|
SelectPrimitive.ScrollDownButton,
|
|
7346
7554
|
__spreadProps(__spreadValues({
|
|
7347
7555
|
ref,
|
|
@@ -7350,14 +7558,14 @@ var SelectScrollDownButton = React54.forwardRef((_a, ref) => {
|
|
|
7350
7558
|
className
|
|
7351
7559
|
)
|
|
7352
7560
|
}, props), {
|
|
7353
|
-
children: /* @__PURE__ */
|
|
7561
|
+
children: /* @__PURE__ */ jsx33(ChevronDownIcon3, {})
|
|
7354
7562
|
})
|
|
7355
7563
|
);
|
|
7356
7564
|
});
|
|
7357
7565
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
7358
|
-
var SelectContent =
|
|
7566
|
+
var SelectContent = React55.forwardRef((_a, ref) => {
|
|
7359
7567
|
var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
|
|
7360
|
-
return /* @__PURE__ */
|
|
7568
|
+
return /* @__PURE__ */ jsx33(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs18(
|
|
7361
7569
|
SelectPrimitive.Content,
|
|
7362
7570
|
__spreadProps(__spreadValues({
|
|
7363
7571
|
ref,
|
|
@@ -7369,8 +7577,8 @@ var SelectContent = React54.forwardRef((_a, ref) => {
|
|
|
7369
7577
|
position
|
|
7370
7578
|
}, props), {
|
|
7371
7579
|
children: [
|
|
7372
|
-
/* @__PURE__ */
|
|
7373
|
-
/* @__PURE__ */
|
|
7580
|
+
/* @__PURE__ */ jsx33(SelectScrollUpButton, {}),
|
|
7581
|
+
/* @__PURE__ */ jsx33(
|
|
7374
7582
|
SelectPrimitive.Viewport,
|
|
7375
7583
|
{
|
|
7376
7584
|
className: cn(
|
|
@@ -7380,15 +7588,15 @@ var SelectContent = React54.forwardRef((_a, ref) => {
|
|
|
7380
7588
|
children
|
|
7381
7589
|
}
|
|
7382
7590
|
),
|
|
7383
|
-
/* @__PURE__ */
|
|
7591
|
+
/* @__PURE__ */ jsx33(SelectScrollDownButton, {})
|
|
7384
7592
|
]
|
|
7385
7593
|
})
|
|
7386
7594
|
) });
|
|
7387
7595
|
});
|
|
7388
7596
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
7389
|
-
var SelectLabel =
|
|
7597
|
+
var SelectLabel = React55.forwardRef((_a, ref) => {
|
|
7390
7598
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7391
|
-
return /* @__PURE__ */
|
|
7599
|
+
return /* @__PURE__ */ jsx33(
|
|
7392
7600
|
SelectPrimitive.Label,
|
|
7393
7601
|
__spreadValues({
|
|
7394
7602
|
ref,
|
|
@@ -7397,7 +7605,7 @@ var SelectLabel = React54.forwardRef((_a, ref) => {
|
|
|
7397
7605
|
);
|
|
7398
7606
|
});
|
|
7399
7607
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
7400
|
-
var SelectItem =
|
|
7608
|
+
var SelectItem = React55.forwardRef((_a, ref) => {
|
|
7401
7609
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
7402
7610
|
return /* @__PURE__ */ jsxs18(
|
|
7403
7611
|
SelectPrimitive.Item,
|
|
@@ -7409,16 +7617,16 @@ var SelectItem = React54.forwardRef((_a, ref) => {
|
|
|
7409
7617
|
)
|
|
7410
7618
|
}, props), {
|
|
7411
7619
|
children: [
|
|
7412
|
-
/* @__PURE__ */
|
|
7413
|
-
/* @__PURE__ */
|
|
7620
|
+
/* @__PURE__ */ jsx33("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx33(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx33(CheckIcon6, { className: "h-4 w-4" }) }) }),
|
|
7621
|
+
/* @__PURE__ */ jsx33(SelectPrimitive.ItemText, { children })
|
|
7414
7622
|
]
|
|
7415
7623
|
})
|
|
7416
7624
|
);
|
|
7417
7625
|
});
|
|
7418
7626
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
7419
|
-
var SelectSeparator =
|
|
7627
|
+
var SelectSeparator = React55.forwardRef((_a, ref) => {
|
|
7420
7628
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7421
|
-
return /* @__PURE__ */
|
|
7629
|
+
return /* @__PURE__ */ jsx33(
|
|
7422
7630
|
SelectPrimitive.Separator,
|
|
7423
7631
|
__spreadValues({
|
|
7424
7632
|
ref,
|
|
@@ -7430,12 +7638,12 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
7430
7638
|
|
|
7431
7639
|
// src/components/separator.tsx
|
|
7432
7640
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
7433
|
-
import * as
|
|
7434
|
-
import { jsx as
|
|
7435
|
-
var Separator6 =
|
|
7641
|
+
import * as React56 from "react";
|
|
7642
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
7643
|
+
var Separator6 = React56.forwardRef(
|
|
7436
7644
|
(_a, ref) => {
|
|
7437
7645
|
var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
|
|
7438
|
-
return /* @__PURE__ */
|
|
7646
|
+
return /* @__PURE__ */ jsx34(
|
|
7439
7647
|
SeparatorPrimitive.Root,
|
|
7440
7648
|
__spreadValues({
|
|
7441
7649
|
ref,
|
|
@@ -7455,16 +7663,16 @@ Separator6.displayName = SeparatorPrimitive.Root.displayName;
|
|
|
7455
7663
|
// src/components/sheet.tsx
|
|
7456
7664
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
7457
7665
|
import { Cross2Icon as Cross2Icon2 } from "@radix-ui/react-icons";
|
|
7458
|
-
import { cva as
|
|
7459
|
-
import * as
|
|
7460
|
-
import { jsx as
|
|
7666
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
7667
|
+
import * as React57 from "react";
|
|
7668
|
+
import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
7461
7669
|
var Sheet = SheetPrimitive.Root;
|
|
7462
7670
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
7463
7671
|
var SheetClose = SheetPrimitive.Close;
|
|
7464
7672
|
var SheetPortal = SheetPrimitive.Portal;
|
|
7465
|
-
var SheetOverlay =
|
|
7673
|
+
var SheetOverlay = React57.forwardRef((_a, ref) => {
|
|
7466
7674
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7467
|
-
return /* @__PURE__ */
|
|
7675
|
+
return /* @__PURE__ */ jsx35(
|
|
7468
7676
|
SheetPrimitive.Overlay,
|
|
7469
7677
|
__spreadProps(__spreadValues({
|
|
7470
7678
|
className: cn(
|
|
@@ -7477,7 +7685,7 @@ var SheetOverlay = React56.forwardRef((_a, ref) => {
|
|
|
7477
7685
|
);
|
|
7478
7686
|
});
|
|
7479
7687
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
7480
|
-
var sheetVariants =
|
|
7688
|
+
var sheetVariants = cva7(
|
|
7481
7689
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
7482
7690
|
{
|
|
7483
7691
|
variants: {
|
|
@@ -7493,10 +7701,10 @@ var sheetVariants = cva6(
|
|
|
7493
7701
|
}
|
|
7494
7702
|
}
|
|
7495
7703
|
);
|
|
7496
|
-
var SheetContent =
|
|
7704
|
+
var SheetContent = React57.forwardRef((_a, ref) => {
|
|
7497
7705
|
var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
|
|
7498
7706
|
return /* @__PURE__ */ jsxs19(SheetPortal, { children: [
|
|
7499
|
-
/* @__PURE__ */
|
|
7707
|
+
/* @__PURE__ */ jsx35(SheetOverlay, {}),
|
|
7500
7708
|
/* @__PURE__ */ jsxs19(
|
|
7501
7709
|
SheetPrimitive.Content,
|
|
7502
7710
|
__spreadProps(__spreadValues({
|
|
@@ -7506,8 +7714,8 @@ var SheetContent = React56.forwardRef((_a, ref) => {
|
|
|
7506
7714
|
children: [
|
|
7507
7715
|
children,
|
|
7508
7716
|
/* @__PURE__ */ jsxs19(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
7509
|
-
/* @__PURE__ */
|
|
7510
|
-
/* @__PURE__ */
|
|
7717
|
+
/* @__PURE__ */ jsx35(Cross2Icon2, { className: "h-4 w-4" }),
|
|
7718
|
+
/* @__PURE__ */ jsx35("span", { className: "sr-only", children: "Close" })
|
|
7511
7719
|
] })
|
|
7512
7720
|
]
|
|
7513
7721
|
})
|
|
@@ -7521,7 +7729,7 @@ var SheetHeader = (_a) => {
|
|
|
7521
7729
|
} = _b, props = __objRest(_b, [
|
|
7522
7730
|
"className"
|
|
7523
7731
|
]);
|
|
7524
|
-
return /* @__PURE__ */
|
|
7732
|
+
return /* @__PURE__ */ jsx35(
|
|
7525
7733
|
"div",
|
|
7526
7734
|
__spreadValues({
|
|
7527
7735
|
className: cn(
|
|
@@ -7538,7 +7746,7 @@ var SheetFooter = (_a) => {
|
|
|
7538
7746
|
} = _b, props = __objRest(_b, [
|
|
7539
7747
|
"className"
|
|
7540
7748
|
]);
|
|
7541
|
-
return /* @__PURE__ */
|
|
7749
|
+
return /* @__PURE__ */ jsx35(
|
|
7542
7750
|
"div",
|
|
7543
7751
|
__spreadValues({
|
|
7544
7752
|
className: cn(
|
|
@@ -7549,9 +7757,9 @@ var SheetFooter = (_a) => {
|
|
|
7549
7757
|
);
|
|
7550
7758
|
};
|
|
7551
7759
|
SheetFooter.displayName = "SheetFooter";
|
|
7552
|
-
var SheetTitle =
|
|
7760
|
+
var SheetTitle = React57.forwardRef((_a, ref) => {
|
|
7553
7761
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7554
|
-
return /* @__PURE__ */
|
|
7762
|
+
return /* @__PURE__ */ jsx35(
|
|
7555
7763
|
SheetPrimitive.Title,
|
|
7556
7764
|
__spreadValues({
|
|
7557
7765
|
ref,
|
|
@@ -7560,9 +7768,9 @@ var SheetTitle = React56.forwardRef((_a, ref) => {
|
|
|
7560
7768
|
);
|
|
7561
7769
|
});
|
|
7562
7770
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
7563
|
-
var SheetDescription =
|
|
7771
|
+
var SheetDescription = React57.forwardRef((_a, ref) => {
|
|
7564
7772
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7565
|
-
return /* @__PURE__ */
|
|
7773
|
+
return /* @__PURE__ */ jsx35(
|
|
7566
7774
|
SheetPrimitive.Description,
|
|
7567
7775
|
__spreadValues({
|
|
7568
7776
|
ref,
|
|
@@ -7573,14 +7781,14 @@ var SheetDescription = React56.forwardRef((_a, ref) => {
|
|
|
7573
7781
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
7574
7782
|
|
|
7575
7783
|
// src/components/skeleton.tsx
|
|
7576
|
-
import { jsx as
|
|
7784
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
7577
7785
|
function Skeleton(_a) {
|
|
7578
7786
|
var _b = _a, {
|
|
7579
7787
|
className
|
|
7580
7788
|
} = _b, props = __objRest(_b, [
|
|
7581
7789
|
"className"
|
|
7582
7790
|
]);
|
|
7583
|
-
return /* @__PURE__ */
|
|
7791
|
+
return /* @__PURE__ */ jsx36(
|
|
7584
7792
|
"div",
|
|
7585
7793
|
__spreadValues({
|
|
7586
7794
|
className: cn("animate-pulse rounded-md bg-primary/10", className)
|
|
@@ -7590,9 +7798,9 @@ function Skeleton(_a) {
|
|
|
7590
7798
|
|
|
7591
7799
|
// src/components/slider.tsx
|
|
7592
7800
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
7593
|
-
import * as
|
|
7594
|
-
import { jsx as
|
|
7595
|
-
var Slider =
|
|
7801
|
+
import * as React58 from "react";
|
|
7802
|
+
import { jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
7803
|
+
var Slider = React58.forwardRef((_a, ref) => {
|
|
7596
7804
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7597
7805
|
return /* @__PURE__ */ jsxs20(
|
|
7598
7806
|
SliderPrimitive.Root,
|
|
@@ -7604,8 +7812,8 @@ var Slider = React57.forwardRef((_a, ref) => {
|
|
|
7604
7812
|
)
|
|
7605
7813
|
}, props), {
|
|
7606
7814
|
children: [
|
|
7607
|
-
/* @__PURE__ */
|
|
7608
|
-
/* @__PURE__ */
|
|
7815
|
+
/* @__PURE__ */ jsx37(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx37(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
7816
|
+
/* @__PURE__ */ jsx37(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
|
|
7609
7817
|
]
|
|
7610
7818
|
})
|
|
7611
7819
|
);
|
|
@@ -7615,11 +7823,11 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
7615
7823
|
// src/components/sonner.tsx
|
|
7616
7824
|
import { useTheme } from "next-themes";
|
|
7617
7825
|
import { Toaster as Sonner } from "sonner";
|
|
7618
|
-
import { jsx as
|
|
7826
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
7619
7827
|
var Toaster = (_a) => {
|
|
7620
7828
|
var props = __objRest(_a, []);
|
|
7621
7829
|
const { theme = "system" } = useTheme();
|
|
7622
|
-
return /* @__PURE__ */
|
|
7830
|
+
return /* @__PURE__ */ jsx38(
|
|
7623
7831
|
Sonner,
|
|
7624
7832
|
__spreadValues({
|
|
7625
7833
|
theme,
|
|
@@ -7638,11 +7846,11 @@ var Toaster = (_a) => {
|
|
|
7638
7846
|
|
|
7639
7847
|
// src/components/switch.tsx
|
|
7640
7848
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
7641
|
-
import * as
|
|
7642
|
-
import { jsx as
|
|
7643
|
-
var Switch =
|
|
7849
|
+
import * as React59 from "react";
|
|
7850
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
7851
|
+
var Switch = React59.forwardRef((_a, ref) => {
|
|
7644
7852
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7645
|
-
return /* @__PURE__ */
|
|
7853
|
+
return /* @__PURE__ */ jsx39(
|
|
7646
7854
|
SwitchPrimitives.Root,
|
|
7647
7855
|
__spreadProps(__spreadValues({
|
|
7648
7856
|
className: cn(
|
|
@@ -7651,7 +7859,7 @@ var Switch = React58.forwardRef((_a, ref) => {
|
|
|
7651
7859
|
)
|
|
7652
7860
|
}, props), {
|
|
7653
7861
|
ref,
|
|
7654
|
-
children: /* @__PURE__ */
|
|
7862
|
+
children: /* @__PURE__ */ jsx39(
|
|
7655
7863
|
SwitchPrimitives.Thumb,
|
|
7656
7864
|
{
|
|
7657
7865
|
className: cn(
|
|
@@ -7665,12 +7873,12 @@ var Switch = React58.forwardRef((_a, ref) => {
|
|
|
7665
7873
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
7666
7874
|
|
|
7667
7875
|
// src/components/table.tsx
|
|
7668
|
-
import * as
|
|
7669
|
-
import { jsx as
|
|
7670
|
-
var Table =
|
|
7876
|
+
import * as React60 from "react";
|
|
7877
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
7878
|
+
var Table = React60.forwardRef(
|
|
7671
7879
|
(_a, ref) => {
|
|
7672
7880
|
var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
|
|
7673
|
-
return /* @__PURE__ */
|
|
7881
|
+
return /* @__PURE__ */ jsx40("div", { className: cn("relative w-full overflow-visible", containerClassName), children: /* @__PURE__ */ jsx40(
|
|
7674
7882
|
"table",
|
|
7675
7883
|
__spreadValues({
|
|
7676
7884
|
ref,
|
|
@@ -7680,14 +7888,14 @@ var Table = React59.forwardRef(
|
|
|
7680
7888
|
}
|
|
7681
7889
|
);
|
|
7682
7890
|
Table.displayName = "Table";
|
|
7683
|
-
var TableHeader =
|
|
7891
|
+
var TableHeader = React60.forwardRef((_a, ref) => {
|
|
7684
7892
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7685
|
-
return /* @__PURE__ */
|
|
7893
|
+
return /* @__PURE__ */ jsx40("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
|
|
7686
7894
|
});
|
|
7687
7895
|
TableHeader.displayName = "TableHeader";
|
|
7688
|
-
var TableBody =
|
|
7896
|
+
var TableBody = React60.forwardRef((_a, ref) => {
|
|
7689
7897
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7690
|
-
return /* @__PURE__ */
|
|
7898
|
+
return /* @__PURE__ */ jsx40(
|
|
7691
7899
|
"tbody",
|
|
7692
7900
|
__spreadValues({
|
|
7693
7901
|
ref,
|
|
@@ -7696,9 +7904,9 @@ var TableBody = React59.forwardRef((_a, ref) => {
|
|
|
7696
7904
|
);
|
|
7697
7905
|
});
|
|
7698
7906
|
TableBody.displayName = "TableBody";
|
|
7699
|
-
var TableFooter =
|
|
7907
|
+
var TableFooter = React60.forwardRef((_a, ref) => {
|
|
7700
7908
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7701
|
-
return /* @__PURE__ */
|
|
7909
|
+
return /* @__PURE__ */ jsx40(
|
|
7702
7910
|
"tfoot",
|
|
7703
7911
|
__spreadValues({
|
|
7704
7912
|
ref,
|
|
@@ -7710,9 +7918,9 @@ var TableFooter = React59.forwardRef((_a, ref) => {
|
|
|
7710
7918
|
);
|
|
7711
7919
|
});
|
|
7712
7920
|
TableFooter.displayName = "TableFooter";
|
|
7713
|
-
var TableRow =
|
|
7921
|
+
var TableRow = React60.forwardRef((_a, ref) => {
|
|
7714
7922
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7715
|
-
return /* @__PURE__ */
|
|
7923
|
+
return /* @__PURE__ */ jsx40(
|
|
7716
7924
|
"tr",
|
|
7717
7925
|
__spreadValues({
|
|
7718
7926
|
ref,
|
|
@@ -7724,9 +7932,9 @@ var TableRow = React59.forwardRef((_a, ref) => {
|
|
|
7724
7932
|
);
|
|
7725
7933
|
});
|
|
7726
7934
|
TableRow.displayName = "TableRow";
|
|
7727
|
-
var TableHead =
|
|
7935
|
+
var TableHead = React60.forwardRef((_a, ref) => {
|
|
7728
7936
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7729
|
-
return /* @__PURE__ */
|
|
7937
|
+
return /* @__PURE__ */ jsx40(
|
|
7730
7938
|
"th",
|
|
7731
7939
|
__spreadValues({
|
|
7732
7940
|
ref,
|
|
@@ -7738,9 +7946,9 @@ var TableHead = React59.forwardRef((_a, ref) => {
|
|
|
7738
7946
|
);
|
|
7739
7947
|
});
|
|
7740
7948
|
TableHead.displayName = "TableHead";
|
|
7741
|
-
var TableCell =
|
|
7949
|
+
var TableCell = React60.forwardRef((_a, ref) => {
|
|
7742
7950
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7743
|
-
return /* @__PURE__ */
|
|
7951
|
+
return /* @__PURE__ */ jsx40(
|
|
7744
7952
|
"td",
|
|
7745
7953
|
__spreadValues({
|
|
7746
7954
|
ref,
|
|
@@ -7752,9 +7960,9 @@ var TableCell = React59.forwardRef((_a, ref) => {
|
|
|
7752
7960
|
);
|
|
7753
7961
|
});
|
|
7754
7962
|
TableCell.displayName = "TableCell";
|
|
7755
|
-
var TableCaption =
|
|
7963
|
+
var TableCaption = React60.forwardRef((_a, ref) => {
|
|
7756
7964
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7757
|
-
return /* @__PURE__ */
|
|
7965
|
+
return /* @__PURE__ */ jsx40(
|
|
7758
7966
|
"caption",
|
|
7759
7967
|
__spreadValues({
|
|
7760
7968
|
ref,
|
|
@@ -7766,12 +7974,12 @@ TableCaption.displayName = "TableCaption";
|
|
|
7766
7974
|
|
|
7767
7975
|
// src/components/tabs.tsx
|
|
7768
7976
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
7769
|
-
import * as
|
|
7770
|
-
import { jsx as
|
|
7977
|
+
import * as React61 from "react";
|
|
7978
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
7771
7979
|
var Tabs = TabsPrimitive.Root;
|
|
7772
|
-
var TabsList =
|
|
7980
|
+
var TabsList = React61.forwardRef((_a, ref) => {
|
|
7773
7981
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7774
|
-
return /* @__PURE__ */
|
|
7982
|
+
return /* @__PURE__ */ jsx41(
|
|
7775
7983
|
TabsPrimitive.List,
|
|
7776
7984
|
__spreadValues({
|
|
7777
7985
|
ref,
|
|
@@ -7783,9 +7991,9 @@ var TabsList = React60.forwardRef((_a, ref) => {
|
|
|
7783
7991
|
);
|
|
7784
7992
|
});
|
|
7785
7993
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
7786
|
-
var TabsTrigger =
|
|
7994
|
+
var TabsTrigger = React61.forwardRef((_a, ref) => {
|
|
7787
7995
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7788
|
-
return /* @__PURE__ */
|
|
7996
|
+
return /* @__PURE__ */ jsx41(
|
|
7789
7997
|
TabsPrimitive.Trigger,
|
|
7790
7998
|
__spreadValues({
|
|
7791
7999
|
ref,
|
|
@@ -7797,9 +8005,9 @@ var TabsTrigger = React60.forwardRef((_a, ref) => {
|
|
|
7797
8005
|
);
|
|
7798
8006
|
});
|
|
7799
8007
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
7800
|
-
var TabsContent =
|
|
8008
|
+
var TabsContent = React61.forwardRef((_a, ref) => {
|
|
7801
8009
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7802
|
-
return /* @__PURE__ */
|
|
8010
|
+
return /* @__PURE__ */ jsx41(
|
|
7803
8011
|
TabsPrimitive.Content,
|
|
7804
8012
|
__spreadValues({
|
|
7805
8013
|
ref,
|
|
@@ -7813,12 +8021,12 @@ var TabsContent = React60.forwardRef((_a, ref) => {
|
|
|
7813
8021
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
7814
8022
|
|
|
7815
8023
|
// src/components/textarea.tsx
|
|
7816
|
-
import * as
|
|
7817
|
-
import { jsx as
|
|
7818
|
-
var Textarea =
|
|
8024
|
+
import * as React62 from "react";
|
|
8025
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
8026
|
+
var Textarea = React62.forwardRef(
|
|
7819
8027
|
(_a, ref) => {
|
|
7820
8028
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7821
|
-
return /* @__PURE__ */
|
|
8029
|
+
return /* @__PURE__ */ jsx42(
|
|
7822
8030
|
"textarea",
|
|
7823
8031
|
__spreadValues({
|
|
7824
8032
|
className: cn(
|
|
@@ -7835,13 +8043,13 @@ Textarea.displayName = "Textarea";
|
|
|
7835
8043
|
// src/components/toast.tsx
|
|
7836
8044
|
import { Cross2Icon as Cross2Icon3 } from "@radix-ui/react-icons";
|
|
7837
8045
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
7838
|
-
import { cva as
|
|
7839
|
-
import * as
|
|
7840
|
-
import { jsx as
|
|
8046
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
8047
|
+
import * as React63 from "react";
|
|
8048
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
7841
8049
|
var ToastProvider = ToastPrimitives.Provider;
|
|
7842
|
-
var ToastViewport =
|
|
8050
|
+
var ToastViewport = React63.forwardRef((_a, ref) => {
|
|
7843
8051
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7844
|
-
return /* @__PURE__ */
|
|
8052
|
+
return /* @__PURE__ */ jsx43(
|
|
7845
8053
|
ToastPrimitives.Viewport,
|
|
7846
8054
|
__spreadValues({
|
|
7847
8055
|
ref,
|
|
@@ -7853,7 +8061,7 @@ var ToastViewport = React62.forwardRef((_a, ref) => {
|
|
|
7853
8061
|
);
|
|
7854
8062
|
});
|
|
7855
8063
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
7856
|
-
var toastVariants =
|
|
8064
|
+
var toastVariants = cva8(
|
|
7857
8065
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
7858
8066
|
{
|
|
7859
8067
|
variants: {
|
|
@@ -7867,9 +8075,9 @@ var toastVariants = cva7(
|
|
|
7867
8075
|
}
|
|
7868
8076
|
}
|
|
7869
8077
|
);
|
|
7870
|
-
var Toast =
|
|
8078
|
+
var Toast = React63.forwardRef((_a, ref) => {
|
|
7871
8079
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
7872
|
-
return /* @__PURE__ */
|
|
8080
|
+
return /* @__PURE__ */ jsx43(
|
|
7873
8081
|
ToastPrimitives.Root,
|
|
7874
8082
|
__spreadValues({
|
|
7875
8083
|
ref,
|
|
@@ -7878,9 +8086,9 @@ var Toast = React62.forwardRef((_a, ref) => {
|
|
|
7878
8086
|
);
|
|
7879
8087
|
});
|
|
7880
8088
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
7881
|
-
var ToastAction =
|
|
8089
|
+
var ToastAction = React63.forwardRef((_a, ref) => {
|
|
7882
8090
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7883
|
-
return /* @__PURE__ */
|
|
8091
|
+
return /* @__PURE__ */ jsx43(
|
|
7884
8092
|
ToastPrimitives.Action,
|
|
7885
8093
|
__spreadValues({
|
|
7886
8094
|
ref,
|
|
@@ -7892,9 +8100,9 @@ var ToastAction = React62.forwardRef((_a, ref) => {
|
|
|
7892
8100
|
);
|
|
7893
8101
|
});
|
|
7894
8102
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
7895
|
-
var ToastClose =
|
|
8103
|
+
var ToastClose = React63.forwardRef((_a, ref) => {
|
|
7896
8104
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7897
|
-
return /* @__PURE__ */
|
|
8105
|
+
return /* @__PURE__ */ jsx43(
|
|
7898
8106
|
ToastPrimitives.Close,
|
|
7899
8107
|
__spreadProps(__spreadValues({
|
|
7900
8108
|
ref,
|
|
@@ -7904,14 +8112,14 @@ var ToastClose = React62.forwardRef((_a, ref) => {
|
|
|
7904
8112
|
),
|
|
7905
8113
|
"toast-close": ""
|
|
7906
8114
|
}, props), {
|
|
7907
|
-
children: /* @__PURE__ */
|
|
8115
|
+
children: /* @__PURE__ */ jsx43(Cross2Icon3, { className: "h-4 w-4" })
|
|
7908
8116
|
})
|
|
7909
8117
|
);
|
|
7910
8118
|
});
|
|
7911
8119
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
7912
|
-
var ToastTitle =
|
|
8120
|
+
var ToastTitle = React63.forwardRef((_a, ref) => {
|
|
7913
8121
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7914
|
-
return /* @__PURE__ */
|
|
8122
|
+
return /* @__PURE__ */ jsx43(
|
|
7915
8123
|
ToastPrimitives.Title,
|
|
7916
8124
|
__spreadValues({
|
|
7917
8125
|
ref,
|
|
@@ -7920,9 +8128,9 @@ var ToastTitle = React62.forwardRef((_a, ref) => {
|
|
|
7920
8128
|
);
|
|
7921
8129
|
});
|
|
7922
8130
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
7923
|
-
var ToastDescription =
|
|
8131
|
+
var ToastDescription = React63.forwardRef((_a, ref) => {
|
|
7924
8132
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
7925
|
-
return /* @__PURE__ */
|
|
8133
|
+
return /* @__PURE__ */ jsx43(
|
|
7926
8134
|
ToastPrimitives.Description,
|
|
7927
8135
|
__spreadValues({
|
|
7928
8136
|
ref,
|
|
@@ -7934,10 +8142,10 @@ ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
|
7934
8142
|
|
|
7935
8143
|
// src/components/toggle.tsx
|
|
7936
8144
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
7937
|
-
import { cva as
|
|
7938
|
-
import * as
|
|
7939
|
-
import { jsx as
|
|
7940
|
-
var toggleVariants =
|
|
8145
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
8146
|
+
import * as React64 from "react";
|
|
8147
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
8148
|
+
var toggleVariants = cva9(
|
|
7941
8149
|
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
7942
8150
|
{
|
|
7943
8151
|
variants: {
|
|
@@ -7957,9 +8165,9 @@ var toggleVariants = cva8(
|
|
|
7957
8165
|
}
|
|
7958
8166
|
}
|
|
7959
8167
|
);
|
|
7960
|
-
var Toggle =
|
|
8168
|
+
var Toggle = React64.forwardRef((_a, ref) => {
|
|
7961
8169
|
var _b = _a, { className, variant, size } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
|
7962
|
-
return /* @__PURE__ */
|
|
8170
|
+
return /* @__PURE__ */ jsx44(
|
|
7963
8171
|
TogglePrimitive.Root,
|
|
7964
8172
|
__spreadValues({
|
|
7965
8173
|
ref,
|
|
@@ -7971,29 +8179,29 @@ Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
|
7971
8179
|
|
|
7972
8180
|
// src/components/toggle-group.tsx
|
|
7973
8181
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
7974
|
-
import * as
|
|
7975
|
-
import { jsx as
|
|
7976
|
-
var ToggleGroupContext =
|
|
8182
|
+
import * as React65 from "react";
|
|
8183
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
8184
|
+
var ToggleGroupContext = React65.createContext({
|
|
7977
8185
|
size: "default",
|
|
7978
8186
|
variant: "default"
|
|
7979
8187
|
});
|
|
7980
|
-
var ToggleGroup =
|
|
8188
|
+
var ToggleGroup = React65.forwardRef((_a, ref) => {
|
|
7981
8189
|
var _b = _a, { className, variant, size, children } = _b, props = __objRest(_b, ["className", "variant", "size", "children"]);
|
|
7982
|
-
return /* @__PURE__ */
|
|
8190
|
+
return /* @__PURE__ */ jsx45(
|
|
7983
8191
|
ToggleGroupPrimitive.Root,
|
|
7984
8192
|
__spreadProps(__spreadValues({
|
|
7985
8193
|
ref,
|
|
7986
8194
|
className: cn("flex items-center justify-center gap-1", className)
|
|
7987
8195
|
}, props), {
|
|
7988
|
-
children: /* @__PURE__ */
|
|
8196
|
+
children: /* @__PURE__ */ jsx45(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
7989
8197
|
})
|
|
7990
8198
|
);
|
|
7991
8199
|
});
|
|
7992
8200
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
7993
|
-
var ToggleGroupItem =
|
|
8201
|
+
var ToggleGroupItem = React65.forwardRef((_a, ref) => {
|
|
7994
8202
|
var _b = _a, { className, children, variant, size } = _b, props = __objRest(_b, ["className", "children", "variant", "size"]);
|
|
7995
|
-
const context =
|
|
7996
|
-
return /* @__PURE__ */
|
|
8203
|
+
const context = React65.useContext(ToggleGroupContext);
|
|
8204
|
+
return /* @__PURE__ */ jsx45(
|
|
7997
8205
|
ToggleGroupPrimitive.Item,
|
|
7998
8206
|
__spreadProps(__spreadValues({
|
|
7999
8207
|
ref,
|
|
@@ -8013,14 +8221,14 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
8013
8221
|
|
|
8014
8222
|
// src/components/tooltip.tsx
|
|
8015
8223
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
8016
|
-
import * as
|
|
8017
|
-
import { jsx as
|
|
8224
|
+
import * as React66 from "react";
|
|
8225
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
8018
8226
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
8019
8227
|
var Tooltip = TooltipPrimitive.Root;
|
|
8020
8228
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
8021
|
-
var TooltipContent =
|
|
8229
|
+
var TooltipContent = React66.forwardRef((_a, ref) => {
|
|
8022
8230
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
8023
|
-
return /* @__PURE__ */
|
|
8231
|
+
return /* @__PURE__ */ jsx46(
|
|
8024
8232
|
TooltipPrimitive.Content,
|
|
8025
8233
|
__spreadValues({
|
|
8026
8234
|
ref,
|
|
@@ -8035,7 +8243,7 @@ var TooltipContent = React65.forwardRef((_a, ref) => {
|
|
|
8035
8243
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
8036
8244
|
|
|
8037
8245
|
// src/components/use-toast.ts
|
|
8038
|
-
import * as
|
|
8246
|
+
import * as React67 from "react";
|
|
8039
8247
|
var TOAST_LIMIT = 1;
|
|
8040
8248
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
8041
8249
|
var count = 0;
|
|
@@ -8130,8 +8338,8 @@ function toast(_a) {
|
|
|
8130
8338
|
};
|
|
8131
8339
|
}
|
|
8132
8340
|
function useToast() {
|
|
8133
|
-
const [state, setState] =
|
|
8134
|
-
|
|
8341
|
+
const [state, setState] = React67.useState(memoryState);
|
|
8342
|
+
React67.useEffect(() => {
|
|
8135
8343
|
listeners.push(setState);
|
|
8136
8344
|
return () => {
|
|
8137
8345
|
const index = listeners.indexOf(setState);
|
|
@@ -8147,7 +8355,7 @@ function useToast() {
|
|
|
8147
8355
|
}
|
|
8148
8356
|
|
|
8149
8357
|
// src/shared/alert-modal.tsx
|
|
8150
|
-
import { jsx as
|
|
8358
|
+
import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
8151
8359
|
var AlertModal = ({
|
|
8152
8360
|
isOpen,
|
|
8153
8361
|
onClose,
|
|
@@ -8160,7 +8368,7 @@ var AlertModal = ({
|
|
|
8160
8368
|
className,
|
|
8161
8369
|
children
|
|
8162
8370
|
}) => {
|
|
8163
|
-
return /* @__PURE__ */
|
|
8371
|
+
return /* @__PURE__ */ jsx47(
|
|
8164
8372
|
Modal,
|
|
8165
8373
|
{
|
|
8166
8374
|
title,
|
|
@@ -8169,8 +8377,8 @@ var AlertModal = ({
|
|
|
8169
8377
|
onClose,
|
|
8170
8378
|
className,
|
|
8171
8379
|
children: children ? children : /* @__PURE__ */ jsxs21("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
|
|
8172
|
-
/* @__PURE__ */
|
|
8173
|
-
/* @__PURE__ */
|
|
8380
|
+
/* @__PURE__ */ jsx47(Button, { disabled: loading, variant: "outline", onClick: onClose, children: cancelText }),
|
|
8381
|
+
/* @__PURE__ */ jsx47(
|
|
8174
8382
|
Button,
|
|
8175
8383
|
{
|
|
8176
8384
|
disabled: loading,
|
|
@@ -8187,19 +8395,19 @@ var AlertModal = ({
|
|
|
8187
8395
|
|
|
8188
8396
|
// src/shared/breadcrumbs.tsx
|
|
8189
8397
|
import { Slash } from "lucide-react";
|
|
8190
|
-
import { Fragment } from "react";
|
|
8191
|
-
import { jsx as
|
|
8398
|
+
import { Fragment as Fragment2 } from "react";
|
|
8399
|
+
import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
8192
8400
|
function Breadcrumbs({ items, className, classNameList }) {
|
|
8193
|
-
return /* @__PURE__ */
|
|
8194
|
-
index !== items.length - 1 && /* @__PURE__ */
|
|
8195
|
-
index < items.length - 1 && /* @__PURE__ */
|
|
8196
|
-
index === items.length - 1 && /* @__PURE__ */
|
|
8401
|
+
return /* @__PURE__ */ jsx48(Breadcrumb, { className, children: /* @__PURE__ */ jsx48(BreadcrumbList, { className: classNameList, children: items.map((item, index) => /* @__PURE__ */ jsxs22(Fragment2, { children: [
|
|
8402
|
+
index !== items.length - 1 && /* @__PURE__ */ jsx48(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ jsx48(BreadcrumbLink, { href: item.link, children: item.title }) }),
|
|
8403
|
+
index < items.length - 1 && /* @__PURE__ */ jsx48(BreadcrumbSeparator, { children: /* @__PURE__ */ jsx48(Slash, {}) }),
|
|
8404
|
+
index === items.length - 1 && /* @__PURE__ */ jsx48(BreadcrumbPage, { children: item.title })
|
|
8197
8405
|
] }, item.title)) }) });
|
|
8198
8406
|
}
|
|
8199
8407
|
|
|
8200
8408
|
// src/shared/data-table.tsx
|
|
8201
8409
|
import { useMemo as useMemo3 } from "react";
|
|
8202
|
-
import { AnimatePresence, motion as
|
|
8410
|
+
import { AnimatePresence, motion as motion3 } from "framer-motion";
|
|
8203
8411
|
import {
|
|
8204
8412
|
DoubleArrowLeftIcon,
|
|
8205
8413
|
DoubleArrowRightIcon
|
|
@@ -8211,7 +8419,7 @@ import {
|
|
|
8211
8419
|
useReactTable
|
|
8212
8420
|
} from "@tanstack/react-table";
|
|
8213
8421
|
import { ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
|
|
8214
|
-
import { jsx as
|
|
8422
|
+
import { jsx as jsx49, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
8215
8423
|
var ACCENT_COLOR = {
|
|
8216
8424
|
primary: "var(--primary)",
|
|
8217
8425
|
emerald: "#10b981",
|
|
@@ -8496,9 +8704,9 @@ function DataTable({
|
|
|
8496
8704
|
className: cn(ui.root, heightClassName),
|
|
8497
8705
|
style: accentOn ? { "--dt-accent": dtAccent } : void 0,
|
|
8498
8706
|
children: [
|
|
8499
|
-
/* @__PURE__ */
|
|
8500
|
-
/* @__PURE__ */
|
|
8501
|
-
/* @__PURE__ */
|
|
8707
|
+
/* @__PURE__ */ jsx49("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ jsxs23(ScrollArea, { className: "h-full", children: [
|
|
8708
|
+
/* @__PURE__ */ jsx49("div", { className: "relative w-max min-w-full", children: /* @__PURE__ */ jsxs23(Table, { className: cn(ui.table), children: [
|
|
8709
|
+
/* @__PURE__ */ jsx49(TableHeader, { className: cn(ui.thead), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx49(TableRow, { className: cn(ui.trHead), children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx49(
|
|
8502
8710
|
TableHead,
|
|
8503
8711
|
{
|
|
8504
8712
|
className: cn(
|
|
@@ -8512,15 +8720,15 @@ function DataTable({
|
|
|
8512
8720
|
},
|
|
8513
8721
|
header.id
|
|
8514
8722
|
)) }, headerGroup.id)) }),
|
|
8515
|
-
animate ? /* @__PURE__ */
|
|
8516
|
-
|
|
8723
|
+
animate ? /* @__PURE__ */ jsx49(AnimatePresence, { mode: "wait", initial: false, children: /* @__PURE__ */ jsx49(
|
|
8724
|
+
motion3.tbody,
|
|
8517
8725
|
{
|
|
8518
8726
|
className: cn(ui.tbody),
|
|
8519
8727
|
initial: { opacity: 0, y: 6 },
|
|
8520
8728
|
animate: { opacity: 1, y: 0 },
|
|
8521
8729
|
exit: { opacity: 0, y: -6 },
|
|
8522
8730
|
transition: { duration: 0.18 },
|
|
8523
|
-
children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */
|
|
8731
|
+
children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx49(
|
|
8524
8732
|
TableRow,
|
|
8525
8733
|
{
|
|
8526
8734
|
"data-accent": dataAccent,
|
|
@@ -8530,13 +8738,13 @@ function DataTable({
|
|
|
8530
8738
|
ui.tr,
|
|
8531
8739
|
clickable ? ui.trClickable : void 0
|
|
8532
8740
|
),
|
|
8533
|
-
children: row.getVisibleCells().map((cell) => /* @__PURE__ */
|
|
8741
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx49(TableCell, { className: cn(ui.td), children: flexRender(
|
|
8534
8742
|
cell.column.columnDef.cell,
|
|
8535
8743
|
cell.getContext()
|
|
8536
8744
|
) }, cell.id))
|
|
8537
8745
|
},
|
|
8538
8746
|
row.id
|
|
8539
|
-
)) : emptyData || /* @__PURE__ */
|
|
8747
|
+
)) : emptyData || /* @__PURE__ */ jsx49(TableRow, { "data-accent": dataAccent, children: /* @__PURE__ */ jsx49(
|
|
8540
8748
|
TableCell,
|
|
8541
8749
|
{
|
|
8542
8750
|
colSpan: columns.length,
|
|
@@ -8549,7 +8757,7 @@ function DataTable({
|
|
|
8549
8757
|
) })
|
|
8550
8758
|
},
|
|
8551
8759
|
pageKey
|
|
8552
|
-
) }) : /* @__PURE__ */
|
|
8760
|
+
) }) : /* @__PURE__ */ jsx49(TableBody, { className: cn(ui.tbody), children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx49(
|
|
8553
8761
|
TableRow,
|
|
8554
8762
|
{
|
|
8555
8763
|
"data-accent": dataAccent,
|
|
@@ -8559,13 +8767,13 @@ function DataTable({
|
|
|
8559
8767
|
ui.tr,
|
|
8560
8768
|
clickable ? ui.trClickable : void 0
|
|
8561
8769
|
),
|
|
8562
|
-
children: row.getVisibleCells().map((cell) => /* @__PURE__ */
|
|
8770
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx49(TableCell, { className: cn(ui.td), children: flexRender(
|
|
8563
8771
|
cell.column.columnDef.cell,
|
|
8564
8772
|
cell.getContext()
|
|
8565
8773
|
) }, cell.id))
|
|
8566
8774
|
},
|
|
8567
8775
|
row.id
|
|
8568
|
-
)) : emptyData || /* @__PURE__ */
|
|
8776
|
+
)) : emptyData || /* @__PURE__ */ jsx49(TableRow, { "data-accent": dataAccent, children: /* @__PURE__ */ jsx49(
|
|
8569
8777
|
TableCell,
|
|
8570
8778
|
{
|
|
8571
8779
|
colSpan: columns.length,
|
|
@@ -8577,9 +8785,9 @@ function DataTable({
|
|
|
8577
8785
|
}
|
|
8578
8786
|
) }) })
|
|
8579
8787
|
] }) }),
|
|
8580
|
-
/* @__PURE__ */
|
|
8788
|
+
/* @__PURE__ */ jsx49(ScrollBar, { orientation: "horizontal" })
|
|
8581
8789
|
] }) }),
|
|
8582
|
-
/* @__PURE__ */
|
|
8790
|
+
/* @__PURE__ */ jsx49("div", { className: cn(ui.footer), children: /* @__PURE__ */ jsx49("div", { className: cn(ui.footerInner), children: /* @__PURE__ */ jsxs23("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-[1fr_auto] sm:items-center", children: [
|
|
8583
8791
|
/* @__PURE__ */ jsxs23("div", { className: cn(ui.metaWrap), children: [
|
|
8584
8792
|
isRowsSelected && /* @__PURE__ */ jsxs23("div", { children: [
|
|
8585
8793
|
table.getFilteredSelectedRowModel().rows.length,
|
|
@@ -8598,22 +8806,22 @@ function DataTable({
|
|
|
8598
8806
|
] }),
|
|
8599
8807
|
/* @__PURE__ */ jsxs23("div", { className: cn(ui.controlsWrap), children: [
|
|
8600
8808
|
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
|
|
8601
|
-
/* @__PURE__ */
|
|
8809
|
+
/* @__PURE__ */ jsx49("p", { className: cn(ui.pageSizeLabel), children: rowPerPageLabel }),
|
|
8602
8810
|
/* @__PURE__ */ jsxs23(
|
|
8603
8811
|
Select2,
|
|
8604
8812
|
{
|
|
8605
8813
|
value: `${pageSize}`,
|
|
8606
8814
|
onValueChange: (v) => changePageSize(Number(v)),
|
|
8607
8815
|
children: [
|
|
8608
|
-
/* @__PURE__ */
|
|
8816
|
+
/* @__PURE__ */ jsx49(
|
|
8609
8817
|
SelectTrigger,
|
|
8610
8818
|
{
|
|
8611
8819
|
"data-accent": dataAccent,
|
|
8612
8820
|
className: cn(ui.pageSizeTrigger),
|
|
8613
|
-
children: /* @__PURE__ */
|
|
8821
|
+
children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: `${pageSize}` })
|
|
8614
8822
|
}
|
|
8615
8823
|
),
|
|
8616
|
-
/* @__PURE__ */
|
|
8824
|
+
/* @__PURE__ */ jsx49(SelectContent, { side: "top", children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx49(SelectItem, { value: `${size}`, children: size }, size)) })
|
|
8617
8825
|
]
|
|
8618
8826
|
}
|
|
8619
8827
|
)
|
|
@@ -8628,7 +8836,7 @@ function DataTable({
|
|
|
8628
8836
|
" ",
|
|
8629
8837
|
safePageCount
|
|
8630
8838
|
] }),
|
|
8631
|
-
/* @__PURE__ */
|
|
8839
|
+
/* @__PURE__ */ jsx49(
|
|
8632
8840
|
Button,
|
|
8633
8841
|
{
|
|
8634
8842
|
"data-accent": dataAccent,
|
|
@@ -8637,10 +8845,10 @@ function DataTable({
|
|
|
8637
8845
|
className: cn("hidden lg:flex", ui.navButton),
|
|
8638
8846
|
onClick: () => goToPage(0),
|
|
8639
8847
|
disabled: pageIndex === 0,
|
|
8640
|
-
children: /* @__PURE__ */
|
|
8848
|
+
children: /* @__PURE__ */ jsx49(DoubleArrowLeftIcon, { className: "h-4 w-4" })
|
|
8641
8849
|
}
|
|
8642
8850
|
),
|
|
8643
|
-
/* @__PURE__ */
|
|
8851
|
+
/* @__PURE__ */ jsx49(
|
|
8644
8852
|
Button,
|
|
8645
8853
|
{
|
|
8646
8854
|
"data-accent": dataAccent,
|
|
@@ -8649,10 +8857,10 @@ function DataTable({
|
|
|
8649
8857
|
className: cn(ui.navButton),
|
|
8650
8858
|
onClick: () => goToPage(pageIndex - 1),
|
|
8651
8859
|
disabled: pageIndex === 0,
|
|
8652
|
-
children: /* @__PURE__ */
|
|
8860
|
+
children: /* @__PURE__ */ jsx49(ChevronLeft3, { className: "h-4 w-4" })
|
|
8653
8861
|
}
|
|
8654
8862
|
),
|
|
8655
|
-
/* @__PURE__ */
|
|
8863
|
+
/* @__PURE__ */ jsx49(
|
|
8656
8864
|
Button,
|
|
8657
8865
|
{
|
|
8658
8866
|
"data-accent": dataAccent,
|
|
@@ -8661,10 +8869,10 @@ function DataTable({
|
|
|
8661
8869
|
className: cn(ui.navButton),
|
|
8662
8870
|
onClick: () => goToPage(pageIndex + 1),
|
|
8663
8871
|
disabled: pageIndex + 1 >= safePageCount,
|
|
8664
|
-
children: /* @__PURE__ */
|
|
8872
|
+
children: /* @__PURE__ */ jsx49(ChevronRight3, { className: "h-4 w-4" })
|
|
8665
8873
|
}
|
|
8666
8874
|
),
|
|
8667
|
-
/* @__PURE__ */
|
|
8875
|
+
/* @__PURE__ */ jsx49(
|
|
8668
8876
|
Button,
|
|
8669
8877
|
{
|
|
8670
8878
|
"data-accent": dataAccent,
|
|
@@ -8673,7 +8881,7 @@ function DataTable({
|
|
|
8673
8881
|
className: cn("hidden lg:flex", ui.navButton),
|
|
8674
8882
|
onClick: () => goToPage(safePageCount - 1),
|
|
8675
8883
|
disabled: pageIndex + 1 >= safePageCount,
|
|
8676
|
-
children: /* @__PURE__ */
|
|
8884
|
+
children: /* @__PURE__ */ jsx49(DoubleArrowRightIcon, { className: "h-4 w-4" })
|
|
8677
8885
|
}
|
|
8678
8886
|
)
|
|
8679
8887
|
] }),
|
|
@@ -8694,7 +8902,7 @@ function DataTable({
|
|
|
8694
8902
|
}
|
|
8695
8903
|
|
|
8696
8904
|
// src/shared/data-table-skeleton.tsx
|
|
8697
|
-
import { jsx as
|
|
8905
|
+
import { jsx as jsx50, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
8698
8906
|
function DataTableSkeleton({
|
|
8699
8907
|
columnCount,
|
|
8700
8908
|
rowCount = 10,
|
|
@@ -8705,28 +8913,28 @@ function DataTableSkeleton({
|
|
|
8705
8913
|
return /* @__PURE__ */ jsxs24("div", { className: "w-full space-y-3 overflow-auto", children: [
|
|
8706
8914
|
/* @__PURE__ */ jsxs24("div", { className: "flex w-full items-center justify-between space-x-2 overflow-auto p-1", children: [
|
|
8707
8915
|
/* @__PURE__ */ jsxs24("div", { className: "flex flex-1 items-center space-x-2 space-y-4", children: [
|
|
8708
|
-
searchableColumnCount > 0 ? Array.from({ length: searchableColumnCount }).map((_, i) => /* @__PURE__ */
|
|
8709
|
-
filterableColumnCount > 0 ? Array.from({ length: filterableColumnCount }).map((_, i) => /* @__PURE__ */
|
|
8916
|
+
searchableColumnCount > 0 ? Array.from({ length: searchableColumnCount }).map((_, i) => /* @__PURE__ */ jsx50(Skeleton, { className: "h-10 w-37.5 lg:w-62.5" }, i)) : null,
|
|
8917
|
+
filterableColumnCount > 0 ? Array.from({ length: filterableColumnCount }).map((_, i) => /* @__PURE__ */ jsx50(Skeleton, { className: "h-10 w-17.5 border-dashed" }, i)) : null
|
|
8710
8918
|
] }),
|
|
8711
|
-
showViewOptions ? /* @__PURE__ */
|
|
8919
|
+
showViewOptions ? /* @__PURE__ */ jsx50(Skeleton, { className: "ml-auto hidden h-7 w-17.5 lg:flex" }) : null
|
|
8712
8920
|
] }),
|
|
8713
|
-
/* @__PURE__ */
|
|
8714
|
-
/* @__PURE__ */
|
|
8715
|
-
/* @__PURE__ */
|
|
8921
|
+
/* @__PURE__ */ jsx50("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs24(Table, { children: [
|
|
8922
|
+
/* @__PURE__ */ jsx50(TableHeader, { children: Array.from({ length: 1 }).map((_, i) => /* @__PURE__ */ jsx50(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx50(TableHead, { children: /* @__PURE__ */ jsx50(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) }),
|
|
8923
|
+
/* @__PURE__ */ jsx50(TableBody, { children: Array.from({ length: rowCount }).map((_, i) => /* @__PURE__ */ jsx50(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx50(TableCell, { children: /* @__PURE__ */ jsx50(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) })
|
|
8716
8924
|
] }) }),
|
|
8717
8925
|
/* @__PURE__ */ jsxs24("div", { className: "flex w-full flex-col items-center justify-between gap-4 overflow-auto px-2 py-1 sm:flex-row sm:gap-8", children: [
|
|
8718
|
-
/* @__PURE__ */
|
|
8926
|
+
/* @__PURE__ */ jsx50("div", { className: "flex-1", children: /* @__PURE__ */ jsx50(Skeleton, { className: "h-8 w-40" }) }),
|
|
8719
8927
|
/* @__PURE__ */ jsxs24("div", { className: "flex flex-col items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8", children: [
|
|
8720
8928
|
/* @__PURE__ */ jsxs24("div", { className: "flex items-center space-x-2", children: [
|
|
8721
|
-
/* @__PURE__ */
|
|
8722
|
-
/* @__PURE__ */
|
|
8929
|
+
/* @__PURE__ */ jsx50(Skeleton, { className: "h-8 w-24" }),
|
|
8930
|
+
/* @__PURE__ */ jsx50(Skeleton, { className: "h-8 w-17.5" })
|
|
8723
8931
|
] }),
|
|
8724
|
-
/* @__PURE__ */
|
|
8932
|
+
/* @__PURE__ */ jsx50("div", { className: "flex w-25 items-center justify-center text-sm font-medium", children: /* @__PURE__ */ jsx50(Skeleton, { className: "h-8 w-20" }) }),
|
|
8725
8933
|
/* @__PURE__ */ jsxs24("div", { className: "flex items-center space-x-2", children: [
|
|
8726
|
-
/* @__PURE__ */
|
|
8727
|
-
/* @__PURE__ */
|
|
8728
|
-
/* @__PURE__ */
|
|
8729
|
-
/* @__PURE__ */
|
|
8934
|
+
/* @__PURE__ */ jsx50(Skeleton, { className: "hidden size-8 lg:block" }),
|
|
8935
|
+
/* @__PURE__ */ jsx50(Skeleton, { className: "size-8" }),
|
|
8936
|
+
/* @__PURE__ */ jsx50(Skeleton, { className: "size-8" }),
|
|
8937
|
+
/* @__PURE__ */ jsx50(Skeleton, { className: "hidden size-8 lg:block" })
|
|
8730
8938
|
] })
|
|
8731
8939
|
] })
|
|
8732
8940
|
] })
|
|
@@ -8738,7 +8946,7 @@ import { AvatarIcon } from "@radix-ui/react-icons";
|
|
|
8738
8946
|
import { CameraIcon } from "lucide-react";
|
|
8739
8947
|
import { useEffect as useEffect4, useState as useState5 } from "react";
|
|
8740
8948
|
import { useDropzone } from "react-dropzone";
|
|
8741
|
-
import { jsx as
|
|
8949
|
+
import { jsx as jsx51, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
8742
8950
|
function FileUpload({
|
|
8743
8951
|
onChange,
|
|
8744
8952
|
value,
|
|
@@ -8755,7 +8963,7 @@ function FileUpload({
|
|
|
8755
8963
|
const onUpdateFile = (newFiles) => {
|
|
8756
8964
|
onChange(newFiles);
|
|
8757
8965
|
};
|
|
8758
|
-
return /* @__PURE__ */
|
|
8966
|
+
return /* @__PURE__ */ jsx51("div", { className: cn("flex items-center justify-center", className), children: /* @__PURE__ */ jsx51(
|
|
8759
8967
|
"div",
|
|
8760
8968
|
{
|
|
8761
8969
|
className: cn(
|
|
@@ -8763,10 +8971,10 @@ function FileUpload({
|
|
|
8763
8971
|
classNameContent
|
|
8764
8972
|
),
|
|
8765
8973
|
children: /* @__PURE__ */ jsxs25("div", __spreadProps(__spreadValues({}, getRootProps({ className: "dropzone cursor-pointer" })), { children: [
|
|
8766
|
-
/* @__PURE__ */
|
|
8767
|
-
value && !!value.length ? /* @__PURE__ */
|
|
8974
|
+
/* @__PURE__ */ jsx51("input", __spreadValues({}, getInputProps())),
|
|
8975
|
+
value && !!value.length ? /* @__PURE__ */ jsx51(ImagePreview, { file: value[0] }) : /* @__PURE__ */ jsx51(AvatarIcon, { className: "h-36 w-36 text-gray-100" }),
|
|
8768
8976
|
/* @__PURE__ */ jsxs25("p", { className: "absolute -bottom-5 left-1/2 flex w-full -translate-x-1/2 -translate-y-1/2 transform flex-col items-center justify-center bg-gray-300 bg-opacity-50 py-1 text-xs font-normal text-muted-foreground ", children: [
|
|
8769
|
-
/* @__PURE__ */
|
|
8977
|
+
/* @__PURE__ */ jsx51(CameraIcon, { className: "h-4 w-4 text-muted-foreground" }),
|
|
8770
8978
|
label
|
|
8771
8979
|
] })
|
|
8772
8980
|
] }))
|
|
@@ -8782,7 +8990,7 @@ function ImagePreview({ file }) {
|
|
|
8782
8990
|
URL.revokeObjectURL(url);
|
|
8783
8991
|
};
|
|
8784
8992
|
}, [file]);
|
|
8785
|
-
return objectUrl ? /* @__PURE__ */
|
|
8993
|
+
return objectUrl ? /* @__PURE__ */ jsx51(
|
|
8786
8994
|
"img",
|
|
8787
8995
|
{
|
|
8788
8996
|
src: objectUrl,
|
|
@@ -8793,19 +9001,19 @@ function ImagePreview({ file }) {
|
|
|
8793
9001
|
}
|
|
8794
9002
|
|
|
8795
9003
|
// src/shared/heading.tsx
|
|
8796
|
-
import { jsx as
|
|
9004
|
+
import { jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
8797
9005
|
function Heading({ title, description, className }) {
|
|
8798
9006
|
return /* @__PURE__ */ jsxs26("div", { className, children: [
|
|
8799
|
-
/* @__PURE__ */
|
|
8800
|
-
/* @__PURE__ */
|
|
9007
|
+
/* @__PURE__ */ jsx52("div", { className: "text-lg font-bold tracking-tight text-primary sm:text-3xl", children: title }),
|
|
9008
|
+
/* @__PURE__ */ jsx52("p", { className: "text-sm text-muted-foreground", children: description })
|
|
8801
9009
|
] });
|
|
8802
9010
|
}
|
|
8803
9011
|
|
|
8804
9012
|
// src/shared/page-head.tsx
|
|
8805
9013
|
import { Helmet } from "react-helmet-next";
|
|
8806
|
-
import { jsx as
|
|
9014
|
+
import { jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
8807
9015
|
function PageHead({ title = "shadcn-ui-react" }) {
|
|
8808
|
-
return /* @__PURE__ */
|
|
9016
|
+
return /* @__PURE__ */ jsx53(Helmet, { children: /* @__PURE__ */ jsxs27("title", { children: [
|
|
8809
9017
|
" ",
|
|
8810
9018
|
title,
|
|
8811
9019
|
" "
|
|
@@ -8813,7 +9021,7 @@ function PageHead({ title = "shadcn-ui-react" }) {
|
|
|
8813
9021
|
}
|
|
8814
9022
|
|
|
8815
9023
|
// src/shared/pagination-section.tsx
|
|
8816
|
-
import { jsx as
|
|
9024
|
+
import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
8817
9025
|
function PaginationSection({
|
|
8818
9026
|
totalPosts,
|
|
8819
9027
|
postsPerPage,
|
|
@@ -8851,17 +9059,17 @@ function PaginationSection({
|
|
|
8851
9059
|
}
|
|
8852
9060
|
};
|
|
8853
9061
|
const renderPages = () => {
|
|
8854
|
-
const renderedPages = activePages.map((page, idx) => /* @__PURE__ */
|
|
9062
|
+
const renderedPages = activePages.map((page, idx) => /* @__PURE__ */ jsx54(
|
|
8855
9063
|
PaginationItem,
|
|
8856
9064
|
{
|
|
8857
9065
|
className: currentPage === page ? "rounded-md bg-primary" : "",
|
|
8858
|
-
children: /* @__PURE__ */
|
|
9066
|
+
children: /* @__PURE__ */ jsx54(PaginationLink, { onClick: () => setCurrentPage(page), size: void 0, children: page })
|
|
8859
9067
|
},
|
|
8860
9068
|
idx
|
|
8861
9069
|
));
|
|
8862
9070
|
if (activePages[0] > 1) {
|
|
8863
9071
|
renderedPages.unshift(
|
|
8864
|
-
/* @__PURE__ */
|
|
9072
|
+
/* @__PURE__ */ jsx54(
|
|
8865
9073
|
PaginationEllipsis,
|
|
8866
9074
|
{
|
|
8867
9075
|
onClick: () => setCurrentPage(activePages[0] - 1)
|
|
@@ -8872,7 +9080,7 @@ function PaginationSection({
|
|
|
8872
9080
|
}
|
|
8873
9081
|
if (activePages[activePages.length - 1] < pageNumbers.length) {
|
|
8874
9082
|
renderedPages.push(
|
|
8875
|
-
/* @__PURE__ */
|
|
9083
|
+
/* @__PURE__ */ jsx54(
|
|
8876
9084
|
PaginationEllipsis,
|
|
8877
9085
|
{
|
|
8878
9086
|
onClick: () => setCurrentPage(activePages[activePages.length - 1] + 1)
|
|
@@ -8883,28 +9091,28 @@ function PaginationSection({
|
|
|
8883
9091
|
}
|
|
8884
9092
|
return renderedPages;
|
|
8885
9093
|
};
|
|
8886
|
-
return /* @__PURE__ */
|
|
9094
|
+
return /* @__PURE__ */ jsx54("div", { className: "p-4", children: /* @__PURE__ */ jsx54(Pagination, { children: /* @__PURE__ */ jsxs28(PaginationContent, { children: [
|
|
8887
9095
|
/* @__PURE__ */ jsxs28(PaginationItem, { children: [
|
|
8888
|
-
/* @__PURE__ */
|
|
9096
|
+
/* @__PURE__ */ jsx54(
|
|
8889
9097
|
PaginationPreviousLast,
|
|
8890
9098
|
{
|
|
8891
9099
|
onClick: handlePrevPageLast,
|
|
8892
9100
|
size: void 0
|
|
8893
9101
|
}
|
|
8894
9102
|
),
|
|
8895
|
-
/* @__PURE__ */
|
|
9103
|
+
/* @__PURE__ */ jsx54(PaginationPrevious, { onClick: handlePrevPage, size: void 0 })
|
|
8896
9104
|
] }),
|
|
8897
9105
|
renderPages(),
|
|
8898
9106
|
/* @__PURE__ */ jsxs28(PaginationItem, { children: [
|
|
8899
|
-
/* @__PURE__ */
|
|
8900
|
-
/* @__PURE__ */
|
|
9107
|
+
/* @__PURE__ */ jsx54(PaginationNext, { onClick: handleNextPage, size: void 0 }),
|
|
9108
|
+
/* @__PURE__ */ jsx54(PaginationNextLast, { onClick: handleNextPageLast, size: void 0 })
|
|
8901
9109
|
] })
|
|
8902
9110
|
] }) }) });
|
|
8903
9111
|
}
|
|
8904
9112
|
|
|
8905
9113
|
// src/shared/dropzone.tsx
|
|
8906
9114
|
import { useDropzone as useDropzone2 } from "react-dropzone";
|
|
8907
|
-
import { jsx as
|
|
9115
|
+
import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
8908
9116
|
function Dropzone({
|
|
8909
9117
|
label,
|
|
8910
9118
|
onChange,
|
|
@@ -8926,7 +9134,7 @@ function Dropzone({
|
|
|
8926
9134
|
accept
|
|
8927
9135
|
}, options));
|
|
8928
9136
|
return /* @__PURE__ */ jsxs29("div", { className: cn("space-y-2", className), children: [
|
|
8929
|
-
label && /* @__PURE__ */
|
|
9137
|
+
label && /* @__PURE__ */ jsx55("p", { className: cn("font-medium", labelClassName), children: label }),
|
|
8930
9138
|
/* @__PURE__ */ jsxs29(
|
|
8931
9139
|
"div",
|
|
8932
9140
|
__spreadProps(__spreadValues({}, getRootProps()), {
|
|
@@ -8936,12 +9144,12 @@ function Dropzone({
|
|
|
8936
9144
|
dropzoneClassName
|
|
8937
9145
|
),
|
|
8938
9146
|
children: [
|
|
8939
|
-
/* @__PURE__ */
|
|
8940
|
-
/* @__PURE__ */
|
|
9147
|
+
/* @__PURE__ */ jsx55("input", __spreadValues({}, getInputProps())),
|
|
9148
|
+
/* @__PURE__ */ jsx55("p", { className: cn("text-gray-600", descriptionClassName), children: isDragActive ? descriptionActive : description })
|
|
8941
9149
|
]
|
|
8942
9150
|
})
|
|
8943
9151
|
),
|
|
8944
|
-
value && value.length > 0 && /* @__PURE__ */
|
|
9152
|
+
value && value.length > 0 && /* @__PURE__ */ jsx55("ul", { className: cn("text-sm text-gray-700 space-y-1", valueClassName), children: value.map((file, idx) => /* @__PURE__ */ jsxs29("li", { children: [
|
|
8945
9153
|
"\u2022 ",
|
|
8946
9154
|
file.name
|
|
8947
9155
|
] }, idx)) })
|
|
@@ -8964,7 +9172,7 @@ var inputVariants2 = {
|
|
|
8964
9172
|
var variants2 = inputVariants2;
|
|
8965
9173
|
|
|
8966
9174
|
// src/components/ui/select.tsx
|
|
8967
|
-
import { jsx as
|
|
9175
|
+
import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
8968
9176
|
function UiSelect({
|
|
8969
9177
|
ref,
|
|
8970
9178
|
label,
|
|
@@ -8997,7 +9205,7 @@ function UiSelect({
|
|
|
8997
9205
|
lg: "h-10 text-base"
|
|
8998
9206
|
};
|
|
8999
9207
|
return /* @__PURE__ */ jsxs30("div", { className: cn("w-full", selectClassName), children: [
|
|
9000
|
-
label ? /* @__PURE__ */
|
|
9208
|
+
label ? /* @__PURE__ */ jsx56(
|
|
9001
9209
|
Label3,
|
|
9002
9210
|
{
|
|
9003
9211
|
ref,
|
|
@@ -9007,7 +9215,7 @@ function UiSelect({
|
|
|
9007
9215
|
}
|
|
9008
9216
|
) : null,
|
|
9009
9217
|
/* @__PURE__ */ jsxs30(Select2, { value, onValueChange: onChange, children: [
|
|
9010
|
-
/* @__PURE__ */
|
|
9218
|
+
/* @__PURE__ */ jsx56(
|
|
9011
9219
|
SelectTrigger,
|
|
9012
9220
|
{
|
|
9013
9221
|
className: cn(
|
|
@@ -9018,10 +9226,10 @@ function UiSelect({
|
|
|
9018
9226
|
className,
|
|
9019
9227
|
label ? "mt-1" : ""
|
|
9020
9228
|
),
|
|
9021
|
-
children: /* @__PURE__ */
|
|
9229
|
+
children: /* @__PURE__ */ jsx56(SelectValue, { placeholder, className: "placeholder:text-muted-foreground" })
|
|
9022
9230
|
}
|
|
9023
9231
|
),
|
|
9024
|
-
/* @__PURE__ */
|
|
9232
|
+
/* @__PURE__ */ jsx56(SelectContent, { className: cn(contentBase, contentClassName), children: children ? children : items ? items == null ? void 0 : items.map((item) => /* @__PURE__ */ jsx56(
|
|
9025
9233
|
SelectItem,
|
|
9026
9234
|
{
|
|
9027
9235
|
value: item.value,
|
|
@@ -9031,7 +9239,7 @@ function UiSelect({
|
|
|
9031
9239
|
item.value
|
|
9032
9240
|
)) : null })
|
|
9033
9241
|
] }),
|
|
9034
|
-
errorMessage ? /* @__PURE__ */
|
|
9242
|
+
errorMessage ? /* @__PURE__ */ jsx56("p", { className: "text-sm text-destructive mt-1 ", children: errorMessage }) : null
|
|
9035
9243
|
] });
|
|
9036
9244
|
}
|
|
9037
9245
|
|
|
@@ -9055,7 +9263,7 @@ var variants3 = inputVariants3;
|
|
|
9055
9263
|
|
|
9056
9264
|
// src/components/ui/input.tsx
|
|
9057
9265
|
import { Asterisk as Asterisk2 } from "lucide-react";
|
|
9058
|
-
import { jsx as
|
|
9266
|
+
import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
9059
9267
|
function UiInput(_a) {
|
|
9060
9268
|
var _b = _a, {
|
|
9061
9269
|
ref,
|
|
@@ -9098,8 +9306,8 @@ function UiInput(_a) {
|
|
|
9098
9306
|
),
|
|
9099
9307
|
htmlFor: formItemId,
|
|
9100
9308
|
children: [
|
|
9101
|
-
/* @__PURE__ */
|
|
9102
|
-
requiredLabel ? /* @__PURE__ */
|
|
9309
|
+
/* @__PURE__ */ jsx57("span", { children: label }),
|
|
9310
|
+
requiredLabel ? /* @__PURE__ */ jsx57(
|
|
9103
9311
|
Asterisk2,
|
|
9104
9312
|
{
|
|
9105
9313
|
"aria-hidden": "true",
|
|
@@ -9112,7 +9320,7 @@ function UiInput(_a) {
|
|
|
9112
9320
|
]
|
|
9113
9321
|
}
|
|
9114
9322
|
) : null,
|
|
9115
|
-
/* @__PURE__ */
|
|
9323
|
+
/* @__PURE__ */ jsx57(
|
|
9116
9324
|
Input,
|
|
9117
9325
|
__spreadProps(__spreadValues({}, inputProps), {
|
|
9118
9326
|
id: formItemId,
|
|
@@ -9126,7 +9334,7 @@ function UiInput(_a) {
|
|
|
9126
9334
|
classNameDefault
|
|
9127
9335
|
})
|
|
9128
9336
|
),
|
|
9129
|
-
errorMessage ? /* @__PURE__ */
|
|
9337
|
+
errorMessage ? /* @__PURE__ */ jsx57("p", { className: "mt-1 text-sm text-destructive", children: errorMessage }) : null
|
|
9130
9338
|
] });
|
|
9131
9339
|
}
|
|
9132
9340
|
export {
|
|
@@ -9244,6 +9452,7 @@ export {
|
|
|
9244
9452
|
HoverCard,
|
|
9245
9453
|
HoverCardContent,
|
|
9246
9454
|
HoverCardTrigger,
|
|
9455
|
+
IconButton,
|
|
9247
9456
|
Icons,
|
|
9248
9457
|
ImagePreview,
|
|
9249
9458
|
Input,
|
|
@@ -9358,6 +9567,7 @@ export {
|
|
|
9358
9567
|
badgeVariants,
|
|
9359
9568
|
buttonVariants,
|
|
9360
9569
|
cn,
|
|
9570
|
+
iconButtonVariants,
|
|
9361
9571
|
inputVariants,
|
|
9362
9572
|
navigationMenuTriggerStyle,
|
|
9363
9573
|
reducer,
|