@mlw-packages/react-components 1.3.14 → 1.3.16
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.css +507 -18
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +344 -283
- package/dist/index.mjs +402 -341
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -432,59 +432,142 @@ AvatarFallbackBase.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
432
432
|
var import_date_fns = require("date-fns");
|
|
433
433
|
|
|
434
434
|
// src/components/date-time-picker/calendar.tsx
|
|
435
|
-
var
|
|
435
|
+
var React5 = __toESM(require("react"));
|
|
436
436
|
var import_react_day_picker = require("react-day-picker");
|
|
437
|
+
var import_phosphor_react = require("phosphor-react");
|
|
438
|
+
var import_framer_motion = require("framer-motion");
|
|
439
|
+
|
|
440
|
+
// src/components/ui/PopoverBase.tsx
|
|
441
|
+
var React4 = __toESM(require("react"));
|
|
442
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
437
443
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
444
|
+
var PopoverBase = PopoverPrimitive.Root;
|
|
445
|
+
var PopoverTriggerBase = PopoverPrimitive.Trigger;
|
|
446
|
+
var PopoverAnchorBase = PopoverPrimitive.Anchor;
|
|
447
|
+
var PopoverContentBase = React4.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
448
|
+
PopoverPrimitive.Content,
|
|
449
|
+
{
|
|
450
|
+
ref,
|
|
451
|
+
align,
|
|
452
|
+
sideOffset,
|
|
453
|
+
className: cn(
|
|
454
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
455
|
+
className
|
|
456
|
+
),
|
|
457
|
+
...props
|
|
458
|
+
}
|
|
459
|
+
) }));
|
|
460
|
+
PopoverContentBase.displayName = PopoverPrimitive.Content.displayName;
|
|
461
|
+
|
|
462
|
+
// src/components/date-time-picker/calendar.tsx
|
|
463
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
464
|
+
var variants = {
|
|
465
|
+
enter: (direction) => ({
|
|
466
|
+
opacity: 0,
|
|
467
|
+
x: direction > 0 ? 30 : -30
|
|
468
|
+
}),
|
|
469
|
+
center: {
|
|
470
|
+
opacity: 1,
|
|
471
|
+
x: 0
|
|
472
|
+
},
|
|
473
|
+
exit: (direction) => ({
|
|
474
|
+
opacity: 0,
|
|
475
|
+
x: direction > 0 ? -30 : 30
|
|
476
|
+
})
|
|
477
|
+
};
|
|
438
478
|
function CalendarBase({
|
|
439
479
|
className,
|
|
440
480
|
classNames,
|
|
441
481
|
showOutsideDays = true,
|
|
442
482
|
...props
|
|
443
483
|
}) {
|
|
444
|
-
|
|
445
|
-
|
|
484
|
+
const [month, setMonth] = React5.useState(
|
|
485
|
+
props.month || props.defaultMonth || /* @__PURE__ */ new Date()
|
|
486
|
+
);
|
|
487
|
+
const [direction, setDirection] = React5.useState(1);
|
|
488
|
+
const handleMonthChange = (newMonth) => {
|
|
489
|
+
const isNext = newMonth > month ? 1 : -1;
|
|
490
|
+
setDirection(isNext);
|
|
491
|
+
setMonth(newMonth);
|
|
492
|
+
props.onMonthChange?.(newMonth);
|
|
493
|
+
};
|
|
494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
495
|
+
"div",
|
|
446
496
|
{
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
497
|
+
className: cn(
|
|
498
|
+
"rounded-xl border bg-background p-3 shadow-sm overflow-hidden",
|
|
499
|
+
className
|
|
500
|
+
),
|
|
501
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
502
|
+
import_framer_motion.motion.div,
|
|
503
|
+
{
|
|
504
|
+
variants,
|
|
505
|
+
initial: "enter",
|
|
506
|
+
animate: "center",
|
|
507
|
+
exit: "exit",
|
|
508
|
+
custom: direction,
|
|
509
|
+
transition: { duration: 0.3, ease: "easeInOut" },
|
|
510
|
+
style: { position: "relative" },
|
|
511
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
512
|
+
import_react_day_picker.DayPicker,
|
|
513
|
+
{
|
|
514
|
+
showOutsideDays,
|
|
515
|
+
month,
|
|
516
|
+
onMonthChange: handleMonthChange,
|
|
517
|
+
className: "w-full",
|
|
518
|
+
classNames: {
|
|
519
|
+
months: "flex items-center flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
520
|
+
month: "space-y-4",
|
|
521
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
522
|
+
caption_label: "text-sm font-medium",
|
|
523
|
+
nav: "space-x-1 flex items-center",
|
|
524
|
+
nav_button: cn(
|
|
525
|
+
buttonVariantsBase({ variant: "outline" }),
|
|
526
|
+
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
527
|
+
),
|
|
528
|
+
nav_button_previous: "absolute left-1",
|
|
529
|
+
nav_button_next: "absolute right-1",
|
|
530
|
+
table: "w-full border-collapse space-y-1",
|
|
531
|
+
head_row: "flex",
|
|
532
|
+
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
533
|
+
row: "flex w-full mt-2",
|
|
534
|
+
cell: cn(
|
|
535
|
+
"h-9 w-9 text-center text-sm p-0 relative",
|
|
536
|
+
"[&:has([aria-selected].day-range-end)]:rounded-r-md",
|
|
537
|
+
"[&:has([aria-selected].day-range-start)]:rounded-l-md",
|
|
538
|
+
"[&:has([aria-selected].day-outside)]:bg-muted/50",
|
|
539
|
+
"[&:has([aria-selected])]:bg-muted",
|
|
540
|
+
"first:[&:has([aria-selected])]:rounded-l-md",
|
|
541
|
+
"last:[&:has([aria-selected])]:rounded-r-md",
|
|
542
|
+
"focus-within:relative focus-within:z-20"
|
|
543
|
+
),
|
|
544
|
+
day: cn(
|
|
545
|
+
buttonVariantsBase({ variant: "ghost" }),
|
|
546
|
+
"h-9 w-9 p-0 font-normal rounded-md",
|
|
547
|
+
"aria-selected:opacity-100 hover:bg-muted"
|
|
548
|
+
),
|
|
549
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary/90 focus:bg-primary/90",
|
|
550
|
+
day_today: "bg-muted text-foreground dark:bg-muted dark:text-foreground",
|
|
551
|
+
day_outside: "day-outside text-gray-500 opacity-50 aria-selected:bg-muted/50 aria-selected:text-black",
|
|
552
|
+
day_disabled: "text-gray-500",
|
|
553
|
+
day_range_middle: "aria-selected:bg-muted aria-selected:text-foreground",
|
|
554
|
+
day_hidden: "invisible",
|
|
555
|
+
...classNames
|
|
556
|
+
},
|
|
557
|
+
components: {
|
|
558
|
+
IconLeft: () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react.CaretLeft, { className: "h-4 w-4" }),
|
|
559
|
+
IconRight: () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react.CaretRight, { className: "h-4 w-4" })
|
|
560
|
+
},
|
|
561
|
+
...props
|
|
562
|
+
}
|
|
563
|
+
)
|
|
564
|
+
},
|
|
565
|
+
month.toISOString()
|
|
566
|
+
)
|
|
484
567
|
}
|
|
485
568
|
);
|
|
486
569
|
}
|
|
487
|
-
CalendarBase.displayName = "
|
|
570
|
+
CalendarBase.displayName = "CalendarBase";
|
|
488
571
|
|
|
489
572
|
// src/components/date-time-picker/DateTimePicker.tsx
|
|
490
573
|
var import_phosphor_react4 = require("phosphor-react");
|
|
@@ -492,15 +575,15 @@ var import_locale = require("date-fns/locale");
|
|
|
492
575
|
var import_react2 = require("react");
|
|
493
576
|
|
|
494
577
|
// src/components/ui/DialogBase.tsx
|
|
495
|
-
var
|
|
578
|
+
var React6 = __toESM(require("react"));
|
|
496
579
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
497
580
|
var import_phosphor_react2 = require("phosphor-react");
|
|
498
|
-
var
|
|
581
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
499
582
|
var DialogBase = DialogPrimitive.Root;
|
|
500
583
|
var DialogTriggerBase = DialogPrimitive.Trigger;
|
|
501
584
|
var DialogPortalBase = DialogPrimitive.Portal;
|
|
502
585
|
var DialogCloseBase = DialogPrimitive.Close;
|
|
503
|
-
var DialogOverlayBase =
|
|
586
|
+
var DialogOverlayBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
504
587
|
DialogPrimitive.Overlay,
|
|
505
588
|
{
|
|
506
589
|
ref,
|
|
@@ -512,9 +595,9 @@ var DialogOverlayBase = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
512
595
|
}
|
|
513
596
|
));
|
|
514
597
|
DialogOverlayBase.displayName = DialogPrimitive.Overlay.displayName;
|
|
515
|
-
var DialogContentBase =
|
|
516
|
-
/* @__PURE__ */ (0,
|
|
517
|
-
/* @__PURE__ */ (0,
|
|
598
|
+
var DialogContentBase = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(DialogPortalBase, { children: [
|
|
599
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogOverlayBase, {}),
|
|
600
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
518
601
|
DialogPrimitive.Content,
|
|
519
602
|
{
|
|
520
603
|
ref,
|
|
@@ -525,9 +608,9 @@ var DialogContentBase = React4.forwardRef(({ className, children, ...props }, re
|
|
|
525
608
|
...props,
|
|
526
609
|
children: [
|
|
527
610
|
children,
|
|
528
|
-
/* @__PURE__ */ (0,
|
|
529
|
-
/* @__PURE__ */ (0,
|
|
530
|
-
/* @__PURE__ */ (0,
|
|
611
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(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: [
|
|
612
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.X, { className: "h-4 w-4" }),
|
|
613
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "sr-only", children: "Close" })
|
|
531
614
|
] })
|
|
532
615
|
]
|
|
533
616
|
}
|
|
@@ -537,7 +620,7 @@ DialogContentBase.displayName = DialogPrimitive.Content.displayName;
|
|
|
537
620
|
var DialogHeaderBase = ({
|
|
538
621
|
className,
|
|
539
622
|
...props
|
|
540
|
-
}) => /* @__PURE__ */ (0,
|
|
623
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
541
624
|
"div",
|
|
542
625
|
{
|
|
543
626
|
className: cn(
|
|
@@ -551,7 +634,7 @@ DialogHeaderBase.displayName = "DialogHeader";
|
|
|
551
634
|
var DialogFooterBase = ({
|
|
552
635
|
className,
|
|
553
636
|
...props
|
|
554
|
-
}) => /* @__PURE__ */ (0,
|
|
637
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
555
638
|
"div",
|
|
556
639
|
{
|
|
557
640
|
className: cn(
|
|
@@ -562,7 +645,7 @@ var DialogFooterBase = ({
|
|
|
562
645
|
}
|
|
563
646
|
);
|
|
564
647
|
DialogFooterBase.displayName = "DialogFooter";
|
|
565
|
-
var DialogTitleBase =
|
|
648
|
+
var DialogTitleBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
566
649
|
DialogPrimitive.Title,
|
|
567
650
|
{
|
|
568
651
|
ref,
|
|
@@ -574,7 +657,7 @@ var DialogTitleBase = React4.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
574
657
|
}
|
|
575
658
|
));
|
|
576
659
|
DialogTitleBase.displayName = DialogPrimitive.Title.displayName;
|
|
577
|
-
var DialogDescriptionBase =
|
|
660
|
+
var DialogDescriptionBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
578
661
|
DialogPrimitive.Description,
|
|
579
662
|
{
|
|
580
663
|
ref,
|
|
@@ -585,14 +668,14 @@ var DialogDescriptionBase = React4.forwardRef(({ className, ...props }, ref) =>
|
|
|
585
668
|
DialogDescriptionBase.displayName = DialogPrimitive.Description.displayName;
|
|
586
669
|
|
|
587
670
|
// src/components/ui/LabelBase.tsx
|
|
588
|
-
var
|
|
671
|
+
var React7 = __toESM(require("react"));
|
|
589
672
|
var import_react_label = require("@radix-ui/react-label");
|
|
590
673
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
591
|
-
var
|
|
592
|
-
var LabelBase =
|
|
674
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
675
|
+
var LabelBase = React7.forwardRef(
|
|
593
676
|
({ className, asChild = false, ...props }, ref) => {
|
|
594
677
|
const Comp = asChild ? import_react_slot2.Slot : "label";
|
|
595
|
-
return /* @__PURE__ */ (0,
|
|
678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_label.Label, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
596
679
|
Comp,
|
|
597
680
|
{
|
|
598
681
|
ref,
|
|
@@ -610,12 +693,12 @@ var LabelBase_default = LabelBase;
|
|
|
610
693
|
|
|
611
694
|
// src/components/date-time-picker/TimePicker.tsx
|
|
612
695
|
var import_phosphor_react3 = require("phosphor-react");
|
|
613
|
-
var
|
|
696
|
+
var React10 = __toESM(require("react"));
|
|
614
697
|
|
|
615
698
|
// src/components/ui/InputBase.tsx
|
|
616
|
-
var
|
|
617
|
-
var
|
|
618
|
-
var InputBase =
|
|
699
|
+
var React8 = __toESM(require("react"));
|
|
700
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
701
|
+
var InputBase = React8.forwardRef(
|
|
619
702
|
({
|
|
620
703
|
className,
|
|
621
704
|
type = "text",
|
|
@@ -625,9 +708,9 @@ var InputBase = React6.forwardRef(
|
|
|
625
708
|
rightIcon,
|
|
626
709
|
...props
|
|
627
710
|
}, ref) => {
|
|
628
|
-
return /* @__PURE__ */ (0,
|
|
629
|
-
label && /* @__PURE__ */ (0,
|
|
630
|
-
/* @__PURE__ */ (0,
|
|
711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col w-full min-w-[150px]", children: [
|
|
712
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(LabelBase_default, { className: labelClassname, children: label }),
|
|
713
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
631
714
|
"div",
|
|
632
715
|
{
|
|
633
716
|
className: cn(
|
|
@@ -635,8 +718,8 @@ var InputBase = React6.forwardRef(
|
|
|
635
718
|
type !== "file" && "border"
|
|
636
719
|
),
|
|
637
720
|
children: [
|
|
638
|
-
leftIcon && /* @__PURE__ */ (0,
|
|
639
|
-
/* @__PURE__ */ (0,
|
|
721
|
+
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex items-center justify-center px-2", children: leftIcon }),
|
|
722
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
640
723
|
"input",
|
|
641
724
|
{
|
|
642
725
|
type,
|
|
@@ -648,7 +731,7 @@ var InputBase = React6.forwardRef(
|
|
|
648
731
|
...props
|
|
649
732
|
}
|
|
650
733
|
),
|
|
651
|
-
rightIcon && /* @__PURE__ */ (0,
|
|
734
|
+
rightIcon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex items-center justify-center px-2", children: rightIcon })
|
|
652
735
|
]
|
|
653
736
|
}
|
|
654
737
|
)
|
|
@@ -800,7 +883,7 @@ function display12HourValue(hours) {
|
|
|
800
883
|
}
|
|
801
884
|
|
|
802
885
|
// src/components/date-time-picker/TimePickerInput.tsx
|
|
803
|
-
var
|
|
886
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
804
887
|
var TimePickerInput = import_react.default.forwardRef(
|
|
805
888
|
({
|
|
806
889
|
className,
|
|
@@ -859,7 +942,7 @@ var TimePickerInput = import_react.default.forwardRef(
|
|
|
859
942
|
setDate(setDateByType(tempDate, newValue, picker, period));
|
|
860
943
|
}
|
|
861
944
|
};
|
|
862
|
-
return /* @__PURE__ */ (0,
|
|
945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
863
946
|
InputBase,
|
|
864
947
|
{
|
|
865
948
|
ref,
|
|
@@ -888,15 +971,15 @@ var TimePickerInput = import_react.default.forwardRef(
|
|
|
888
971
|
TimePickerInput.displayName = "TimePickerInput";
|
|
889
972
|
|
|
890
973
|
// src/components/date-time-picker/TimePicker.tsx
|
|
891
|
-
var
|
|
974
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
892
975
|
function TimePicker({ date, setDate, hideSeconds }) {
|
|
893
|
-
const minuteRef =
|
|
894
|
-
const hourRef =
|
|
895
|
-
const secondRef =
|
|
896
|
-
return /* @__PURE__ */ (0,
|
|
897
|
-
/* @__PURE__ */ (0,
|
|
898
|
-
/* @__PURE__ */ (0,
|
|
899
|
-
/* @__PURE__ */ (0,
|
|
976
|
+
const minuteRef = React10.useRef(null);
|
|
977
|
+
const hourRef = React10.useRef(null);
|
|
978
|
+
const secondRef = React10.useRef(null);
|
|
979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex items-end gap-2", children: [
|
|
980
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "grid gap-1 text-center", children: [
|
|
981
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LabelBase_default, { htmlFor: "hours", className: "text-xs", children: "Horas" }),
|
|
982
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
900
983
|
TimePickerInput,
|
|
901
984
|
{
|
|
902
985
|
picker: "hours",
|
|
@@ -907,9 +990,9 @@ function TimePicker({ date, setDate, hideSeconds }) {
|
|
|
907
990
|
}
|
|
908
991
|
)
|
|
909
992
|
] }),
|
|
910
|
-
/* @__PURE__ */ (0,
|
|
911
|
-
/* @__PURE__ */ (0,
|
|
912
|
-
/* @__PURE__ */ (0,
|
|
993
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "grid gap-1 text-center", children: [
|
|
994
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LabelBase_default, { htmlFor: "minutes", className: "text-xs", children: "Minutos" }),
|
|
995
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
913
996
|
TimePickerInput,
|
|
914
997
|
{
|
|
915
998
|
picker: "minutes",
|
|
@@ -921,9 +1004,9 @@ function TimePicker({ date, setDate, hideSeconds }) {
|
|
|
921
1004
|
}
|
|
922
1005
|
)
|
|
923
1006
|
] }),
|
|
924
|
-
!hideSeconds && /* @__PURE__ */ (0,
|
|
925
|
-
/* @__PURE__ */ (0,
|
|
926
|
-
/* @__PURE__ */ (0,
|
|
1007
|
+
!hideSeconds && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "grid gap-1 text-center", children: [
|
|
1008
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LabelBase_default, { htmlFor: "seconds", className: "text-xs", children: "Segundos" }),
|
|
1009
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
927
1010
|
TimePickerInput,
|
|
928
1011
|
{
|
|
929
1012
|
picker: "seconds",
|
|
@@ -934,12 +1017,12 @@ function TimePicker({ date, setDate, hideSeconds }) {
|
|
|
934
1017
|
}
|
|
935
1018
|
)
|
|
936
1019
|
] }),
|
|
937
|
-
/* @__PURE__ */ (0,
|
|
1020
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "flex h-10 items-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_phosphor_react3.Clock, { className: "ml-2 h-4 w-4" }) })
|
|
938
1021
|
] });
|
|
939
1022
|
}
|
|
940
1023
|
|
|
941
1024
|
// src/components/date-time-picker/DateTimePicker.tsx
|
|
942
|
-
var
|
|
1025
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
943
1026
|
function DateTimePicker({
|
|
944
1027
|
label,
|
|
945
1028
|
date,
|
|
@@ -968,10 +1051,10 @@ function DateTimePicker({
|
|
|
968
1051
|
setInternalDate(date);
|
|
969
1052
|
}
|
|
970
1053
|
}, [date, open]);
|
|
971
|
-
return /* @__PURE__ */ (0,
|
|
972
|
-
label && /* @__PURE__ */ (0,
|
|
973
|
-
/* @__PURE__ */ (0,
|
|
974
|
-
/* @__PURE__ */ (0,
|
|
1054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
1055
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(LabelBase_default, { className: "mb-[-1rem] pl-2", children: label }),
|
|
1056
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(DialogBase, { open, onOpenChange: setOpen, children: [
|
|
1057
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogTriggerBase, { disabled, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
975
1058
|
ButtonBase,
|
|
976
1059
|
{
|
|
977
1060
|
variant: "default",
|
|
@@ -981,14 +1064,14 @@ function DateTimePicker({
|
|
|
981
1064
|
!date && "text-muted-foreground"
|
|
982
1065
|
),
|
|
983
1066
|
children: [
|
|
984
|
-
date ? (0, import_date_fns.format)(date, "PPP - HH:mm", { locale: import_locale.ptBR }) : /* @__PURE__ */ (0,
|
|
985
|
-
/* @__PURE__ */ (0,
|
|
1067
|
+
date ? (0, import_date_fns.format)(date, "PPP - HH:mm", { locale: import_locale.ptBR }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-zinc-400", children: "Pick a date" }),
|
|
1068
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_phosphor_react4.Calendar, { className: "ml-auto text-gray-500", size: 24 })
|
|
986
1069
|
]
|
|
987
1070
|
}
|
|
988
1071
|
) }),
|
|
989
|
-
/* @__PURE__ */ (0,
|
|
990
|
-
/* @__PURE__ */ (0,
|
|
991
|
-
/* @__PURE__ */ (0,
|
|
1072
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(DialogContentBase, { children: [
|
|
1073
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogHeaderBase, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogTitleBase, { className: "text-xl font-semibold", children: dialogTitle ?? "Selecione a data" }) }),
|
|
1074
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
992
1075
|
CalendarBase,
|
|
993
1076
|
{
|
|
994
1077
|
mode: "single",
|
|
@@ -1000,7 +1083,7 @@ function DateTimePicker({
|
|
|
1000
1083
|
toDate
|
|
1001
1084
|
}
|
|
1002
1085
|
),
|
|
1003
|
-
/* @__PURE__ */ (0,
|
|
1086
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "border-border flex justify-center border-t p-3", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1004
1087
|
TimePicker,
|
|
1005
1088
|
{
|
|
1006
1089
|
setDate: setInternalDate,
|
|
@@ -1008,7 +1091,7 @@ function DateTimePicker({
|
|
|
1008
1091
|
hideSeconds
|
|
1009
1092
|
}
|
|
1010
1093
|
) }),
|
|
1011
|
-
/* @__PURE__ */ (0,
|
|
1094
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1012
1095
|
ButtonBase,
|
|
1013
1096
|
{
|
|
1014
1097
|
onClick: () => {
|
|
@@ -1024,11 +1107,11 @@ function DateTimePicker({
|
|
|
1024
1107
|
}
|
|
1025
1108
|
|
|
1026
1109
|
// src/hooks/use-mobile.tsx
|
|
1027
|
-
var
|
|
1110
|
+
var React11 = __toESM(require("react"));
|
|
1028
1111
|
var MOBILE_BREAKPOINT = 768;
|
|
1029
1112
|
function useIsMobile() {
|
|
1030
|
-
const [isMobile, setIsMobile] =
|
|
1031
|
-
|
|
1113
|
+
const [isMobile, setIsMobile] = React11.useState(void 0);
|
|
1114
|
+
React11.useEffect(() => {
|
|
1032
1115
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
1033
1116
|
const onChange = () => {
|
|
1034
1117
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -1044,18 +1127,18 @@ function useIsMobile() {
|
|
|
1044
1127
|
var import_phosphor_react6 = require("phosphor-react");
|
|
1045
1128
|
|
|
1046
1129
|
// src/components/ui/DropDownMenuBase.tsx
|
|
1047
|
-
var
|
|
1130
|
+
var React12 = __toESM(require("react"));
|
|
1048
1131
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
1049
1132
|
var import_phosphor_react5 = require("phosphor-react");
|
|
1050
|
-
var
|
|
1051
|
-
var
|
|
1133
|
+
var import_framer_motion2 = require("framer-motion");
|
|
1134
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1052
1135
|
var DropDownMenuBase = DropdownMenuPrimitive.Root;
|
|
1053
1136
|
var DropDownMenuTriggerBase = DropdownMenuPrimitive.Trigger;
|
|
1054
1137
|
var DropDownMenuGroupBase = DropdownMenuPrimitive.Group;
|
|
1055
1138
|
var DropDownMenuPortalBase = DropdownMenuPrimitive.Portal;
|
|
1056
1139
|
var DropDownMenuSubBase = DropdownMenuPrimitive.Sub;
|
|
1057
1140
|
var DropDownMenuRadioGroupBase = DropdownMenuPrimitive.RadioGroup;
|
|
1058
|
-
var DropDownMenuSubTriggerBase =
|
|
1141
|
+
var DropDownMenuSubTriggerBase = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1059
1142
|
DropdownMenuPrimitive.SubTrigger,
|
|
1060
1143
|
{
|
|
1061
1144
|
ref,
|
|
@@ -1067,12 +1150,12 @@ var DropDownMenuSubTriggerBase = React10.forwardRef(({ className, inset, childre
|
|
|
1067
1150
|
...props,
|
|
1068
1151
|
children: [
|
|
1069
1152
|
children,
|
|
1070
|
-
/* @__PURE__ */ (0,
|
|
1153
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CaretRight, { className: "ml-auto" })
|
|
1071
1154
|
]
|
|
1072
1155
|
}
|
|
1073
1156
|
));
|
|
1074
1157
|
DropDownMenuSubTriggerBase.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1075
|
-
var DropDownMenuSubContentBase =
|
|
1158
|
+
var DropDownMenuSubContentBase = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1076
1159
|
DropdownMenuPrimitive.SubContent,
|
|
1077
1160
|
{
|
|
1078
1161
|
ref,
|
|
@@ -1083,7 +1166,7 @@ var DropDownMenuSubContentBase = React10.forwardRef(({ className, ...props }, re
|
|
|
1083
1166
|
...props
|
|
1084
1167
|
}
|
|
1085
1168
|
));
|
|
1086
|
-
var DropDownMenuContentBase =
|
|
1169
|
+
var DropDownMenuContentBase = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1087
1170
|
DropdownMenuPrimitive.Content,
|
|
1088
1171
|
{
|
|
1089
1172
|
sideOffset,
|
|
@@ -1091,8 +1174,8 @@ var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, .
|
|
|
1091
1174
|
ref,
|
|
1092
1175
|
className: cn("z-[9999] p-0", className),
|
|
1093
1176
|
...props,
|
|
1094
|
-
children: /* @__PURE__ */ (0,
|
|
1095
|
-
|
|
1177
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_framer_motion2.AnimatePresence, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1178
|
+
import_framer_motion2.motion.div,
|
|
1096
1179
|
{
|
|
1097
1180
|
initial: { opacity: 0, scale: 0.95, y: 5 },
|
|
1098
1181
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
@@ -1108,7 +1191,7 @@ var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, .
|
|
|
1108
1191
|
}
|
|
1109
1192
|
) }));
|
|
1110
1193
|
DropDownMenuContentBase.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1111
|
-
var DropDownMenuItemBase =
|
|
1194
|
+
var DropDownMenuItemBase = React12.forwardRef(({ className, inset, leftIcon, rightIcon, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1112
1195
|
DropdownMenuPrimitive.Item,
|
|
1113
1196
|
{
|
|
1114
1197
|
ref,
|
|
@@ -1119,16 +1202,16 @@ var DropDownMenuItemBase = React10.forwardRef(({ className, inset, leftIcon, rig
|
|
|
1119
1202
|
),
|
|
1120
1203
|
...props,
|
|
1121
1204
|
children: [
|
|
1122
|
-
/* @__PURE__ */ (0,
|
|
1123
|
-
leftIcon && /* @__PURE__ */ (0,
|
|
1205
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
1206
|
+
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "[&>svg]:size-4", children: leftIcon }),
|
|
1124
1207
|
children
|
|
1125
1208
|
] }),
|
|
1126
|
-
rightIcon && /* @__PURE__ */ (0,
|
|
1209
|
+
rightIcon && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "[&>svg]:size-4", children: rightIcon })
|
|
1127
1210
|
]
|
|
1128
1211
|
}
|
|
1129
1212
|
));
|
|
1130
1213
|
DropDownMenuItemBase.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1131
|
-
var DropDownMenuCheckboxItemBase =
|
|
1214
|
+
var DropDownMenuCheckboxItemBase = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1132
1215
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1133
1216
|
{
|
|
1134
1217
|
ref,
|
|
@@ -1139,13 +1222,13 @@ var DropDownMenuCheckboxItemBase = React10.forwardRef(({ className, children, ch
|
|
|
1139
1222
|
checked,
|
|
1140
1223
|
...props,
|
|
1141
1224
|
children: [
|
|
1142
|
-
/* @__PURE__ */ (0,
|
|
1225
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.Check, { className: "h-4 w-4" }) }) }),
|
|
1143
1226
|
children
|
|
1144
1227
|
]
|
|
1145
1228
|
}
|
|
1146
1229
|
));
|
|
1147
1230
|
DropDownMenuCheckboxItemBase.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1148
|
-
var DropDownMenuRadioItemBase =
|
|
1231
|
+
var DropDownMenuRadioItemBase = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1149
1232
|
DropdownMenuPrimitive.RadioItem,
|
|
1150
1233
|
{
|
|
1151
1234
|
ref,
|
|
@@ -1155,13 +1238,13 @@ var DropDownMenuRadioItemBase = React10.forwardRef(({ className, children, ...pr
|
|
|
1155
1238
|
),
|
|
1156
1239
|
...props,
|
|
1157
1240
|
children: [
|
|
1158
|
-
/* @__PURE__ */ (0,
|
|
1241
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1159
1242
|
children
|
|
1160
1243
|
]
|
|
1161
1244
|
}
|
|
1162
1245
|
));
|
|
1163
1246
|
DropDownMenuRadioItemBase.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1164
|
-
var DropDownMenuLabelBase =
|
|
1247
|
+
var DropDownMenuLabelBase = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1165
1248
|
DropdownMenuPrimitive.Label,
|
|
1166
1249
|
{
|
|
1167
1250
|
ref,
|
|
@@ -1174,7 +1257,7 @@ var DropDownMenuLabelBase = React10.forwardRef(({ className, inset, ...props },
|
|
|
1174
1257
|
}
|
|
1175
1258
|
));
|
|
1176
1259
|
DropDownMenuLabelBase.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1177
|
-
var DropDownMenuSeparatorBase =
|
|
1260
|
+
var DropDownMenuSeparatorBase = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1178
1261
|
DropdownMenuPrimitive.Separator,
|
|
1179
1262
|
{
|
|
1180
1263
|
ref,
|
|
@@ -1187,7 +1270,7 @@ var DropDownMenuShortcutBase = ({
|
|
|
1187
1270
|
className,
|
|
1188
1271
|
...props
|
|
1189
1272
|
}) => {
|
|
1190
|
-
return /* @__PURE__ */ (0,
|
|
1273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1191
1274
|
"span",
|
|
1192
1275
|
{
|
|
1193
1276
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -1199,7 +1282,7 @@ DropDownMenuShortcutBase.displayName = "DropDownMenuShortcutBase";
|
|
|
1199
1282
|
|
|
1200
1283
|
// src/components/theme-provider.tsx
|
|
1201
1284
|
var import_react3 = require("react");
|
|
1202
|
-
var
|
|
1285
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1203
1286
|
var initialState = {
|
|
1204
1287
|
theme: "system",
|
|
1205
1288
|
setTheme: () => null
|
|
@@ -1239,7 +1322,7 @@ function ThemeProviderBase({
|
|
|
1239
1322
|
setTheme(theme2);
|
|
1240
1323
|
}
|
|
1241
1324
|
};
|
|
1242
|
-
return /* @__PURE__ */ (0,
|
|
1325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ThemeProviderContext.Provider, { ...props, value, children });
|
|
1243
1326
|
}
|
|
1244
1327
|
var useTheme = () => {
|
|
1245
1328
|
const context = (0, import_react3.useContext)(ThemeProviderContext);
|
|
@@ -1249,7 +1332,7 @@ var useTheme = () => {
|
|
|
1249
1332
|
};
|
|
1250
1333
|
|
|
1251
1334
|
// src/components/mode-toggle.tsx
|
|
1252
|
-
var
|
|
1335
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1253
1336
|
var themeLabels = {
|
|
1254
1337
|
light: "Light",
|
|
1255
1338
|
dark: "Dark",
|
|
@@ -1265,30 +1348,30 @@ function ModeToggleBase({
|
|
|
1265
1348
|
themes = ["light", "dark", "system"]
|
|
1266
1349
|
}) {
|
|
1267
1350
|
const { setTheme, theme: currentTheme } = useTheme();
|
|
1268
|
-
return /* @__PURE__ */ (0,
|
|
1269
|
-
/* @__PURE__ */ (0,
|
|
1351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(DropDownMenuBase, { children: [
|
|
1352
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropDownMenuTriggerBase, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1270
1353
|
ButtonBase,
|
|
1271
1354
|
{
|
|
1272
1355
|
variant: "ghost",
|
|
1273
1356
|
size: "icon",
|
|
1274
1357
|
className: "relative overflow-hidden border-transparent",
|
|
1275
1358
|
children: [
|
|
1276
|
-
/* @__PURE__ */ (0,
|
|
1277
|
-
/* @__PURE__ */ (0,
|
|
1278
|
-
/* @__PURE__ */ (0,
|
|
1359
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
1360
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_phosphor_react6.Sun, { className: "h-[1.2rem] w-[1.2rem] transition-transform duration-300 rotate-0 scale-100" }),
|
|
1361
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_phosphor_react6.Moon, { className: "absolute top-0 left-0 h-[1.2rem] w-[1.2rem] transition-transform duration-300 rotate-90 scale-0" })
|
|
1279
1362
|
] }),
|
|
1280
|
-
/* @__PURE__ */ (0,
|
|
1363
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "sr-only", children: "Toggle theme" })
|
|
1281
1364
|
]
|
|
1282
1365
|
}
|
|
1283
1366
|
) }),
|
|
1284
|
-
/* @__PURE__ */ (0,
|
|
1367
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropDownMenuContentBase, { align: "end", className: "dark:border-transparent", children: themes.map((theme) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1285
1368
|
DropDownMenuItemBase,
|
|
1286
1369
|
{
|
|
1287
1370
|
onClick: () => setTheme(theme),
|
|
1288
1371
|
className: "flex items-center justify-between",
|
|
1289
1372
|
children: [
|
|
1290
1373
|
themeLabels[theme],
|
|
1291
|
-
currentTheme === theme && /* @__PURE__ */ (0,
|
|
1374
|
+
currentTheme === theme && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_phosphor_react6.Check, { className: "h-4 w-4 opacity-100" })
|
|
1292
1375
|
]
|
|
1293
1376
|
},
|
|
1294
1377
|
theme
|
|
@@ -1300,12 +1383,12 @@ function ModeToggleBase({
|
|
|
1300
1383
|
var import_react5 = require("react");
|
|
1301
1384
|
|
|
1302
1385
|
// src/components/ui/CommandBase.tsx
|
|
1303
|
-
var
|
|
1386
|
+
var React13 = __toESM(require("react"));
|
|
1304
1387
|
var import_cmdk = require("cmdk");
|
|
1305
1388
|
var import_phosphor_react7 = require("phosphor-react");
|
|
1306
|
-
var
|
|
1307
|
-
var
|
|
1308
|
-
var CommandBase =
|
|
1389
|
+
var import_framer_motion3 = require("framer-motion");
|
|
1390
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1391
|
+
var CommandBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1309
1392
|
import_cmdk.Command,
|
|
1310
1393
|
{
|
|
1311
1394
|
ref,
|
|
@@ -1323,8 +1406,8 @@ var dialogVariants = {
|
|
|
1323
1406
|
exit: { opacity: 0, scale: 0.95, y: -20 }
|
|
1324
1407
|
};
|
|
1325
1408
|
var CommandDialogBase = ({ children, open, ...props }) => {
|
|
1326
|
-
return /* @__PURE__ */ (0,
|
|
1327
|
-
|
|
1409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogBase, { open, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_framer_motion3.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogContentBase, { asChild: true, forceMount: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1410
|
+
import_framer_motion3.motion.div,
|
|
1328
1411
|
{
|
|
1329
1412
|
initial: "hidden",
|
|
1330
1413
|
animate: "visible",
|
|
@@ -1332,14 +1415,14 @@ var CommandDialogBase = ({ children, open, ...props }) => {
|
|
|
1332
1415
|
variants: dialogVariants,
|
|
1333
1416
|
transition: { duration: 0.2, ease: "easeOut" },
|
|
1334
1417
|
className: "overflow-hidden p-0",
|
|
1335
|
-
children: /* @__PURE__ */ (0,
|
|
1418
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CommandBase, { 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 })
|
|
1336
1419
|
},
|
|
1337
1420
|
"command-dialog"
|
|
1338
1421
|
) }) }) });
|
|
1339
1422
|
};
|
|
1340
|
-
var CommandInputBase =
|
|
1341
|
-
/* @__PURE__ */ (0,
|
|
1342
|
-
/* @__PURE__ */ (0,
|
|
1423
|
+
var CommandInputBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1424
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_phosphor_react7.MagnifyingGlass, { className: "mr-2 h-4 w-4 shrink-0 text-primary" }),
|
|
1425
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1343
1426
|
import_cmdk.Command.Input,
|
|
1344
1427
|
{
|
|
1345
1428
|
ref,
|
|
@@ -1352,7 +1435,7 @@ var CommandInputBase = React11.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1352
1435
|
)
|
|
1353
1436
|
] }));
|
|
1354
1437
|
CommandInputBase.displayName = import_cmdk.Command.Input.displayName;
|
|
1355
|
-
var CommandListBase =
|
|
1438
|
+
var CommandListBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1356
1439
|
import_cmdk.Command.List,
|
|
1357
1440
|
{
|
|
1358
1441
|
ref,
|
|
@@ -1361,9 +1444,9 @@ var CommandListBase = React11.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1361
1444
|
}
|
|
1362
1445
|
));
|
|
1363
1446
|
CommandListBase.displayName = import_cmdk.Command.List.displayName;
|
|
1364
|
-
var CommandEmptyBase =
|
|
1447
|
+
var CommandEmptyBase = React13.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1365
1448
|
CommandEmptyBase.displayName = import_cmdk.Command.Empty.displayName;
|
|
1366
|
-
var CommandGroupBase =
|
|
1449
|
+
var CommandGroupBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1367
1450
|
import_cmdk.Command.Group,
|
|
1368
1451
|
{
|
|
1369
1452
|
ref,
|
|
@@ -1375,9 +1458,9 @@ var CommandGroupBase = React11.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1375
1458
|
}
|
|
1376
1459
|
));
|
|
1377
1460
|
CommandGroupBase.displayName = import_cmdk.Command.Group.displayName;
|
|
1378
|
-
var CommandSeparatorBase =
|
|
1461
|
+
var CommandSeparatorBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_cmdk.Command.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
|
|
1379
1462
|
CommandSeparatorBase.displayName = import_cmdk.Command.Separator.displayName;
|
|
1380
|
-
var CommandItemBase =
|
|
1463
|
+
var CommandItemBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1381
1464
|
import_cmdk.Command.Item,
|
|
1382
1465
|
{
|
|
1383
1466
|
ref,
|
|
@@ -1390,32 +1473,10 @@ var CommandItemBase = React11.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1390
1473
|
));
|
|
1391
1474
|
CommandItemBase.displayName = import_cmdk.Command.Item.displayName;
|
|
1392
1475
|
var CommandShortcutBase = ({ className, ...props }) => {
|
|
1393
|
-
return /* @__PURE__ */ (0,
|
|
1476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
1394
1477
|
};
|
|
1395
1478
|
CommandShortcutBase.displayName = "CommandShortcut";
|
|
1396
1479
|
|
|
1397
|
-
// src/components/ui/PopoverBase.tsx
|
|
1398
|
-
var React12 = __toESM(require("react"));
|
|
1399
|
-
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
1400
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1401
|
-
var PopoverBase = PopoverPrimitive.Root;
|
|
1402
|
-
var PopoverTriggerBase = PopoverPrimitive.Trigger;
|
|
1403
|
-
var PopoverAnchorBase = PopoverPrimitive.Anchor;
|
|
1404
|
-
var PopoverContentBase = React12.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1405
|
-
PopoverPrimitive.Content,
|
|
1406
|
-
{
|
|
1407
|
-
ref,
|
|
1408
|
-
align,
|
|
1409
|
-
sideOffset,
|
|
1410
|
-
className: cn(
|
|
1411
|
-
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1412
|
-
className
|
|
1413
|
-
),
|
|
1414
|
-
...props
|
|
1415
|
-
}
|
|
1416
|
-
) }));
|
|
1417
|
-
PopoverContentBase.displayName = PopoverPrimitive.Content.displayName;
|
|
1418
|
-
|
|
1419
1480
|
// src/components/selects/ComboboxBase.tsx
|
|
1420
1481
|
var import_phosphor_react8 = require("phosphor-react");
|
|
1421
1482
|
var import_react4 = require("react");
|
|
@@ -1608,15 +1669,15 @@ function MultiCombobox({
|
|
|
1608
1669
|
}
|
|
1609
1670
|
|
|
1610
1671
|
// src/components/ui/SelectBase.tsx
|
|
1611
|
-
var
|
|
1672
|
+
var React14 = __toESM(require("react"));
|
|
1612
1673
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
1613
1674
|
var import_phosphor_react10 = require("phosphor-react");
|
|
1614
|
-
var
|
|
1675
|
+
var import_framer_motion4 = require("framer-motion");
|
|
1615
1676
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1616
1677
|
var SelectBase = SelectPrimitive.Root;
|
|
1617
1678
|
var SelectGroupBase = SelectPrimitive.Group;
|
|
1618
1679
|
var SelectValueBase = SelectPrimitive.Value;
|
|
1619
|
-
var SelectTriggerBase =
|
|
1680
|
+
var SelectTriggerBase = React14.forwardRef(({ className, children, open, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1620
1681
|
SelectPrimitive.Trigger,
|
|
1621
1682
|
{
|
|
1622
1683
|
ref,
|
|
@@ -1628,7 +1689,7 @@ var SelectTriggerBase = React13.forwardRef(({ className, children, open, ...prop
|
|
|
1628
1689
|
children: [
|
|
1629
1690
|
children,
|
|
1630
1691
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1631
|
-
|
|
1692
|
+
import_framer_motion4.motion.span,
|
|
1632
1693
|
{
|
|
1633
1694
|
animate: { rotate: open ? 180 : 0 },
|
|
1634
1695
|
transition: { duration: 0.3 },
|
|
@@ -1640,7 +1701,7 @@ var SelectTriggerBase = React13.forwardRef(({ className, children, open, ...prop
|
|
|
1640
1701
|
}
|
|
1641
1702
|
));
|
|
1642
1703
|
SelectTriggerBase.displayName = SelectPrimitive.Trigger.displayName;
|
|
1643
|
-
var SelectScrollUpButtonBase =
|
|
1704
|
+
var SelectScrollUpButtonBase = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1644
1705
|
SelectPrimitive.ScrollUpButton,
|
|
1645
1706
|
{
|
|
1646
1707
|
ref,
|
|
@@ -1653,7 +1714,7 @@ var SelectScrollUpButtonBase = React13.forwardRef(({ className, ...props }, ref)
|
|
|
1653
1714
|
}
|
|
1654
1715
|
));
|
|
1655
1716
|
SelectScrollUpButtonBase.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1656
|
-
var SelectScrollDownButtonBase =
|
|
1717
|
+
var SelectScrollDownButtonBase = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1657
1718
|
SelectPrimitive.ScrollDownButton,
|
|
1658
1719
|
{
|
|
1659
1720
|
ref,
|
|
@@ -1666,7 +1727,7 @@ var SelectScrollDownButtonBase = React13.forwardRef(({ className, ...props }, re
|
|
|
1666
1727
|
}
|
|
1667
1728
|
));
|
|
1668
1729
|
SelectScrollDownButtonBase.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1669
|
-
var SelectContentBase =
|
|
1730
|
+
var SelectContentBase = React14.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_framer_motion4.AnimatePresence, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1670
1731
|
SelectPrimitive.Content,
|
|
1671
1732
|
{
|
|
1672
1733
|
ref,
|
|
@@ -1678,7 +1739,7 @@ var SelectContentBase = React13.forwardRef(({ className, children, position = "p
|
|
|
1678
1739
|
...props,
|
|
1679
1740
|
asChild: true,
|
|
1680
1741
|
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1681
|
-
|
|
1742
|
+
import_framer_motion4.motion.div,
|
|
1682
1743
|
{
|
|
1683
1744
|
initial: { opacity: 0, scale: 0.95 },
|
|
1684
1745
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -1703,7 +1764,7 @@ var SelectContentBase = React13.forwardRef(({ className, children, position = "p
|
|
|
1703
1764
|
}
|
|
1704
1765
|
) }) }));
|
|
1705
1766
|
SelectContentBase.displayName = SelectPrimitive.Content.displayName;
|
|
1706
|
-
var SelectLabelBase =
|
|
1767
|
+
var SelectLabelBase = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1707
1768
|
SelectPrimitive.Label,
|
|
1708
1769
|
{
|
|
1709
1770
|
ref,
|
|
@@ -1712,7 +1773,7 @@ var SelectLabelBase = React13.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1712
1773
|
}
|
|
1713
1774
|
));
|
|
1714
1775
|
SelectLabelBase.displayName = SelectPrimitive.Label.displayName;
|
|
1715
|
-
var SelectItemBase =
|
|
1776
|
+
var SelectItemBase = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1716
1777
|
SelectPrimitive.Item,
|
|
1717
1778
|
{
|
|
1718
1779
|
ref,
|
|
@@ -1728,7 +1789,7 @@ var SelectItemBase = React13.forwardRef(({ className, children, ...props }, ref)
|
|
|
1728
1789
|
}
|
|
1729
1790
|
));
|
|
1730
1791
|
SelectItemBase.displayName = SelectPrimitive.Item.displayName;
|
|
1731
|
-
var SelectSeparatorBase =
|
|
1792
|
+
var SelectSeparatorBase = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1732
1793
|
SelectPrimitive.Separator,
|
|
1733
1794
|
{
|
|
1734
1795
|
ref,
|
|
@@ -1739,10 +1800,10 @@ var SelectSeparatorBase = React13.forwardRef(({ className, ...props }, ref) => /
|
|
|
1739
1800
|
SelectSeparatorBase.displayName = SelectPrimitive.Separator.displayName;
|
|
1740
1801
|
|
|
1741
1802
|
// src/components/ui/ScrollareaBase.tsx
|
|
1742
|
-
var
|
|
1803
|
+
var React15 = __toESM(require("react"));
|
|
1743
1804
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
1744
1805
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1745
|
-
var ScrollAreaBase =
|
|
1806
|
+
var ScrollAreaBase = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1746
1807
|
ScrollAreaPrimitive.Root,
|
|
1747
1808
|
{
|
|
1748
1809
|
ref,
|
|
@@ -1756,7 +1817,7 @@ var ScrollAreaBase = React14.forwardRef(({ className, children, ...props }, ref)
|
|
|
1756
1817
|
}
|
|
1757
1818
|
));
|
|
1758
1819
|
ScrollAreaBase.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
1759
|
-
var ScrollBarBase =
|
|
1820
|
+
var ScrollBarBase = React15.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1760
1821
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1761
1822
|
{
|
|
1762
1823
|
ref,
|
|
@@ -1817,7 +1878,7 @@ function CalendarBase2({
|
|
|
1817
1878
|
import_react_day_picker2.DayPicker,
|
|
1818
1879
|
{
|
|
1819
1880
|
showOutsideDays,
|
|
1820
|
-
className: cn("bg-
|
|
1881
|
+
className: cn("bg-background p-3", className),
|
|
1821
1882
|
classNames: {
|
|
1822
1883
|
months: "flex items-center flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
1823
1884
|
month: "space-y-4",
|
|
@@ -1825,7 +1886,7 @@ function CalendarBase2({
|
|
|
1825
1886
|
caption_label: "text-sm font-medium",
|
|
1826
1887
|
nav: "space-x-1 flex items-center",
|
|
1827
1888
|
nav_button: cn(
|
|
1828
|
-
|
|
1889
|
+
buttonVariantsBase({ variant: "outline" }),
|
|
1829
1890
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
1830
1891
|
),
|
|
1831
1892
|
nav_button_previous: "absolute left-1",
|
|
@@ -1836,15 +1897,15 @@ function CalendarBase2({
|
|
|
1836
1897
|
row: "flex w-full mt-2",
|
|
1837
1898
|
cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-slate-100/50 [&:has([aria-selected])]:bg-slate-100 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20 dark:[&:has([aria-selected].day-outside)]:bg-slate-800/50 dark:[&:has([aria-selected])]:bg-slate-800",
|
|
1838
1899
|
day: cn(
|
|
1839
|
-
|
|
1900
|
+
buttonVariantsBase({ variant: "ghost" }),
|
|
1840
1901
|
"h-9 w-9 p-0 font-normal aria-selected:opacity-100"
|
|
1841
1902
|
),
|
|
1842
1903
|
day_range_end: "day-range-end",
|
|
1843
|
-
day_selected: "bg-purple text-slate-50 hover:bg-
|
|
1844
|
-
day_today: "bg-slate-100 text-slate-900 dark:bg-
|
|
1904
|
+
day_selected: "bg-purple text-slate-50 hover:bg-primary hover:text-slate-50 focus:bg-purple-500 focus:text-slate-50 dark:bg-slate-50 dark:text-slate-900 dark:hover:bg-slate-50 dark:hover:text-slate-900 dark:focus:bg-slate-50 dark:focus:text-slate-900",
|
|
1905
|
+
day_today: "bg-slate-100 text-slate-900 dark:bg-primary dark:text-slate-50",
|
|
1845
1906
|
day_outside: "day-outside text-slate-500 opacity-50 aria-selected:bg-slate-100/50 aria-selected:text-slate-500 aria-selected:opacity-30 dark:text-slate-400 dark:aria-selected:bg-slate-800/50 dark:aria-selected:text-slate-400",
|
|
1846
1907
|
day_disabled: "text-slate-500 opacity-50 dark:text-slate-400",
|
|
1847
|
-
day_range_middle: "aria-selected:bg-slate-100 aria-selected:text-slate-900 dark:aria-selected:bg-
|
|
1908
|
+
day_range_middle: "aria-selected:bg-slate-100 aria-selected:text-slate-900 dark:aria-selected:bg-primary dark:aria-selected:text-primary",
|
|
1848
1909
|
day_hidden: "invisible",
|
|
1849
1910
|
...classNames
|
|
1850
1911
|
},
|
|
@@ -1856,12 +1917,12 @@ function CalendarBase2({
|
|
|
1856
1917
|
}
|
|
1857
1918
|
);
|
|
1858
1919
|
}
|
|
1859
|
-
CalendarBase2.displayName = "
|
|
1920
|
+
CalendarBase2.displayName = "Calendar";
|
|
1860
1921
|
|
|
1861
1922
|
// src/components/ui/CardBase.tsx
|
|
1862
|
-
var
|
|
1923
|
+
var React16 = __toESM(require("react"));
|
|
1863
1924
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1864
|
-
var CardBase =
|
|
1925
|
+
var CardBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1865
1926
|
"div",
|
|
1866
1927
|
{
|
|
1867
1928
|
ref,
|
|
@@ -1873,7 +1934,7 @@ var CardBase = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1873
1934
|
}
|
|
1874
1935
|
));
|
|
1875
1936
|
CardBase.displayName = "Card";
|
|
1876
|
-
var CardHeaderBase =
|
|
1937
|
+
var CardHeaderBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1877
1938
|
"div",
|
|
1878
1939
|
{
|
|
1879
1940
|
ref,
|
|
@@ -1882,7 +1943,7 @@ var CardHeaderBase = React15.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1882
1943
|
}
|
|
1883
1944
|
));
|
|
1884
1945
|
CardHeaderBase.displayName = "CardHeader";
|
|
1885
|
-
var CardTitleBase =
|
|
1946
|
+
var CardTitleBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1886
1947
|
"div",
|
|
1887
1948
|
{
|
|
1888
1949
|
ref,
|
|
@@ -1891,7 +1952,7 @@ var CardTitleBase = React15.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1891
1952
|
}
|
|
1892
1953
|
));
|
|
1893
1954
|
CardTitleBase.displayName = "CardTitle";
|
|
1894
|
-
var CardDescriptionBase =
|
|
1955
|
+
var CardDescriptionBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1895
1956
|
"div",
|
|
1896
1957
|
{
|
|
1897
1958
|
ref,
|
|
@@ -1900,9 +1961,9 @@ var CardDescriptionBase = React15.forwardRef(({ className, ...props }, ref) => /
|
|
|
1900
1961
|
}
|
|
1901
1962
|
));
|
|
1902
1963
|
CardDescriptionBase.displayName = "CardDescription";
|
|
1903
|
-
var CardContentBase =
|
|
1964
|
+
var CardContentBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1904
1965
|
CardContentBase.displayName = "CardContent";
|
|
1905
|
-
var CardFooterBase =
|
|
1966
|
+
var CardFooterBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1906
1967
|
"div",
|
|
1907
1968
|
{
|
|
1908
1969
|
ref,
|
|
@@ -1913,12 +1974,12 @@ var CardFooterBase = React15.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1913
1974
|
CardFooterBase.displayName = "CardFooter";
|
|
1914
1975
|
|
|
1915
1976
|
// src/components/ui/CheckBoxBase.tsx
|
|
1916
|
-
var
|
|
1977
|
+
var React17 = __toESM(require("react"));
|
|
1917
1978
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
1918
1979
|
var import_phosphor_react12 = require("phosphor-react");
|
|
1919
|
-
var
|
|
1980
|
+
var import_framer_motion5 = require("framer-motion");
|
|
1920
1981
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1921
|
-
var CheckboxBase =
|
|
1982
|
+
var CheckboxBase = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1922
1983
|
CheckboxPrimitive.Root,
|
|
1923
1984
|
{
|
|
1924
1985
|
ref,
|
|
@@ -1928,7 +1989,7 @@ var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1928
1989
|
),
|
|
1929
1990
|
...props,
|
|
1930
1991
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CheckboxPrimitive.Indicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1931
|
-
|
|
1992
|
+
import_framer_motion5.motion.div,
|
|
1932
1993
|
{
|
|
1933
1994
|
initial: { scale: 0, opacity: 0, rotate: -90 },
|
|
1934
1995
|
animate: { scale: 1, opacity: 1, rotate: 0 },
|
|
@@ -1943,12 +2004,12 @@ var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1943
2004
|
CheckboxBase.displayName = CheckboxPrimitive.Root.displayName;
|
|
1944
2005
|
|
|
1945
2006
|
// src/components/ui/FormBase.tsx
|
|
1946
|
-
var
|
|
2007
|
+
var React18 = __toESM(require("react"));
|
|
1947
2008
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
1948
2009
|
var import_react_hook_form = require("react-hook-form");
|
|
1949
2010
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1950
2011
|
var FormBase = import_react_hook_form.FormProvider;
|
|
1951
|
-
var FormFieldBaseContext =
|
|
2012
|
+
var FormFieldBaseContext = React18.createContext(
|
|
1952
2013
|
{}
|
|
1953
2014
|
);
|
|
1954
2015
|
var FormFieldBase = ({
|
|
@@ -1957,8 +2018,8 @@ var FormFieldBase = ({
|
|
|
1957
2018
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FormFieldBaseContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_hook_form.Controller, { ...props }) });
|
|
1958
2019
|
};
|
|
1959
2020
|
var useFormFieldBase = () => {
|
|
1960
|
-
const fieldContext =
|
|
1961
|
-
const itemContext =
|
|
2021
|
+
const fieldContext = React18.useContext(FormFieldBaseContext);
|
|
2022
|
+
const itemContext = React18.useContext(FormItemBaseContext);
|
|
1962
2023
|
const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
|
|
1963
2024
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1964
2025
|
if (!fieldContext) {
|
|
@@ -1974,15 +2035,15 @@ var useFormFieldBase = () => {
|
|
|
1974
2035
|
...fieldState
|
|
1975
2036
|
};
|
|
1976
2037
|
};
|
|
1977
|
-
var FormItemBaseContext =
|
|
2038
|
+
var FormItemBaseContext = React18.createContext(
|
|
1978
2039
|
{}
|
|
1979
2040
|
);
|
|
1980
|
-
var FormItemBase =
|
|
1981
|
-
const id =
|
|
2041
|
+
var FormItemBase = React18.forwardRef(({ className, ...props }, ref) => {
|
|
2042
|
+
const id = React18.useId();
|
|
1982
2043
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FormItemBaseContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
1983
2044
|
});
|
|
1984
2045
|
FormItemBase.displayName = "FormItemBase";
|
|
1985
|
-
var FormLabelBase =
|
|
2046
|
+
var FormLabelBase = React18.forwardRef(
|
|
1986
2047
|
({ className, ...props }, ref) => {
|
|
1987
2048
|
const { error, FormItemId } = useFormFieldBase();
|
|
1988
2049
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
@@ -1997,7 +2058,7 @@ var FormLabelBase = React17.forwardRef(
|
|
|
1997
2058
|
}
|
|
1998
2059
|
);
|
|
1999
2060
|
FormLabelBase.displayName = "FormLabelBase";
|
|
2000
|
-
var FormControlBase =
|
|
2061
|
+
var FormControlBase = React18.forwardRef(({ ...props }, ref) => {
|
|
2001
2062
|
const { error, FormItemId, FormDescriptionId, FormMessageId } = useFormFieldBase();
|
|
2002
2063
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2003
2064
|
import_react_slot3.Slot,
|
|
@@ -2011,7 +2072,7 @@ var FormControlBase = React17.forwardRef(({ ...props }, ref) => {
|
|
|
2011
2072
|
);
|
|
2012
2073
|
});
|
|
2013
2074
|
FormControlBase.displayName = "FormControlBase";
|
|
2014
|
-
var FormDescriptionBase =
|
|
2075
|
+
var FormDescriptionBase = React18.forwardRef(({ className, ...props }, ref) => {
|
|
2015
2076
|
const { FormDescriptionId } = useFormFieldBase();
|
|
2016
2077
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2017
2078
|
"p",
|
|
@@ -2024,7 +2085,7 @@ var FormDescriptionBase = React17.forwardRef(({ className, ...props }, ref) => {
|
|
|
2024
2085
|
);
|
|
2025
2086
|
});
|
|
2026
2087
|
FormDescriptionBase.displayName = "FormDescriptionBase";
|
|
2027
|
-
var FormMessageBase =
|
|
2088
|
+
var FormMessageBase = React18.forwardRef(({ className, children, ...props }, ref) => {
|
|
2028
2089
|
const { error, FormMessageId } = useFormFieldBase();
|
|
2029
2090
|
const body = error ? String(error?.message) : children;
|
|
2030
2091
|
if (!body) {
|
|
@@ -2044,10 +2105,10 @@ var FormMessageBase = React17.forwardRef(({ className, children, ...props }, ref
|
|
|
2044
2105
|
FormMessageBase.displayName = "FormMessageBase";
|
|
2045
2106
|
|
|
2046
2107
|
// src/components/ui/ProgressBase.tsx
|
|
2047
|
-
var
|
|
2108
|
+
var React19 = __toESM(require("react"));
|
|
2048
2109
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
2049
2110
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2050
|
-
var ProgressBase =
|
|
2111
|
+
var ProgressBase = React19.forwardRef(({ className, value, label, leftIcon, rightIcon, ...props }, ref) => {
|
|
2051
2112
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-1 w-full min-w-[150px]", children: [
|
|
2052
2113
|
label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(LabelBase_default, { className: "py-2", children: label }),
|
|
2053
2114
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
@@ -2118,7 +2179,7 @@ var ProgressPanelsBase = ({
|
|
|
2118
2179
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex w-full gap-1 rounded-lg overflow-hidden", children: steps.map((step, idx) => {
|
|
2119
2180
|
const isActive = idx === currentStep;
|
|
2120
2181
|
const isLast = idx === steps.length - 1;
|
|
2121
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(React19.Fragment, { children: [
|
|
2122
2183
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2123
2184
|
"div",
|
|
2124
2185
|
{
|
|
@@ -2187,11 +2248,11 @@ var ProgressCirclesBase = ({
|
|
|
2187
2248
|
};
|
|
2188
2249
|
|
|
2189
2250
|
// src/components/ui/SeparatorBase.tsx
|
|
2190
|
-
var
|
|
2251
|
+
var React20 = __toESM(require("react"));
|
|
2191
2252
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
|
|
2192
|
-
var
|
|
2253
|
+
var import_framer_motion6 = require("framer-motion");
|
|
2193
2254
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2194
|
-
var SeparatorBase =
|
|
2255
|
+
var SeparatorBase = React20.forwardRef(
|
|
2195
2256
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
|
|
2196
2257
|
const isHorizontal = orientation === "horizontal";
|
|
2197
2258
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
@@ -2203,7 +2264,7 @@ var SeparatorBase = React19.forwardRef(
|
|
|
2203
2264
|
asChild: true,
|
|
2204
2265
|
...props,
|
|
2205
2266
|
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2206
|
-
|
|
2267
|
+
import_framer_motion6.motion.div,
|
|
2207
2268
|
{
|
|
2208
2269
|
className: cn(
|
|
2209
2270
|
"shrink-0 bg-border",
|
|
@@ -2222,7 +2283,7 @@ var SeparatorBase = React19.forwardRef(
|
|
|
2222
2283
|
SeparatorBase.displayName = SeparatorPrimitive.Root.displayName;
|
|
2223
2284
|
|
|
2224
2285
|
// src/components/ui/SheetBase.tsx
|
|
2225
|
-
var
|
|
2286
|
+
var React21 = __toESM(require("react"));
|
|
2226
2287
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
2227
2288
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
2228
2289
|
var import_phosphor_react13 = require("phosphor-react");
|
|
@@ -2231,7 +2292,7 @@ var SheetBase = SheetPrimitive.Root;
|
|
|
2231
2292
|
var SheetTriggerBase = SheetPrimitive.Trigger;
|
|
2232
2293
|
var SheetCloseBase = SheetPrimitive.Close;
|
|
2233
2294
|
var SheetPortalBase = SheetPrimitive.Portal;
|
|
2234
|
-
var SheetOverlayBase =
|
|
2295
|
+
var SheetOverlayBase = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2235
2296
|
SheetPrimitive.Overlay,
|
|
2236
2297
|
{
|
|
2237
2298
|
className: cn(
|
|
@@ -2259,7 +2320,7 @@ var sheetVariants = (0, import_class_variance_authority2.cva)(
|
|
|
2259
2320
|
}
|
|
2260
2321
|
}
|
|
2261
2322
|
);
|
|
2262
|
-
var SheetContentBase =
|
|
2323
|
+
var SheetContentBase = React21.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(SheetPortalBase, { children: [
|
|
2263
2324
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SheetOverlayBase, {}),
|
|
2264
2325
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2265
2326
|
SheetPrimitive.Content,
|
|
@@ -2306,7 +2367,7 @@ var SheetFooterBase = ({
|
|
|
2306
2367
|
}
|
|
2307
2368
|
);
|
|
2308
2369
|
SheetFooterBase.displayName = "SheetFooterBase";
|
|
2309
|
-
var SheetTitleBase =
|
|
2370
|
+
var SheetTitleBase = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2310
2371
|
SheetPrimitive.Title,
|
|
2311
2372
|
{
|
|
2312
2373
|
ref,
|
|
@@ -2315,7 +2376,7 @@ var SheetTitleBase = React20.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2315
2376
|
}
|
|
2316
2377
|
));
|
|
2317
2378
|
SheetTitleBase.displayName = SheetPrimitive.Title.displayName;
|
|
2318
|
-
var SheetDescriptionBase =
|
|
2379
|
+
var SheetDescriptionBase = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2319
2380
|
SheetPrimitive.Description,
|
|
2320
2381
|
{
|
|
2321
2382
|
ref,
|
|
@@ -2326,7 +2387,7 @@ var SheetDescriptionBase = React20.forwardRef(({ className, ...props }, ref) =>
|
|
|
2326
2387
|
SheetDescriptionBase.displayName = SheetPrimitive.Description.displayName;
|
|
2327
2388
|
|
|
2328
2389
|
// src/components/ui/SidebarBase.tsx
|
|
2329
|
-
var
|
|
2390
|
+
var React23 = __toESM(require("react"));
|
|
2330
2391
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
2331
2392
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
2332
2393
|
|
|
@@ -2349,13 +2410,13 @@ function SkeletonBase({
|
|
|
2349
2410
|
var import_phosphor_react14 = require("phosphor-react");
|
|
2350
2411
|
|
|
2351
2412
|
// src/components/ui/TooltipBase.tsx
|
|
2352
|
-
var
|
|
2413
|
+
var React22 = __toESM(require("react"));
|
|
2353
2414
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
2354
2415
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2355
2416
|
var TooltipProviderBase = TooltipPrimitive.Provider;
|
|
2356
2417
|
var TooltipBase = TooltipPrimitive.Root;
|
|
2357
2418
|
var TooltipTriggerBase = TooltipPrimitive.Trigger;
|
|
2358
|
-
var TooltipContentBase =
|
|
2419
|
+
var TooltipContentBase = React22.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2359
2420
|
TooltipPrimitive.Content,
|
|
2360
2421
|
{
|
|
2361
2422
|
ref,
|
|
@@ -2377,9 +2438,9 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
2377
2438
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2378
2439
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2379
2440
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2380
|
-
var SidebarContext =
|
|
2441
|
+
var SidebarContext = React23.createContext(null);
|
|
2381
2442
|
function UseSideBarBase() {
|
|
2382
|
-
const context =
|
|
2443
|
+
const context = React23.useContext(SidebarContext);
|
|
2383
2444
|
if (!context) {
|
|
2384
2445
|
throw new Error(
|
|
2385
2446
|
"UseSideBarBase must be used within a SidebarProviderBase."
|
|
@@ -2387,7 +2448,7 @@ function UseSideBarBase() {
|
|
|
2387
2448
|
}
|
|
2388
2449
|
return context;
|
|
2389
2450
|
}
|
|
2390
|
-
var SidebarProviderBase =
|
|
2451
|
+
var SidebarProviderBase = React23.forwardRef(
|
|
2391
2452
|
({
|
|
2392
2453
|
defaultOpen = true,
|
|
2393
2454
|
open: openProp,
|
|
@@ -2398,10 +2459,10 @@ var SidebarProviderBase = React22.forwardRef(
|
|
|
2398
2459
|
...props
|
|
2399
2460
|
}, ref) => {
|
|
2400
2461
|
const isMobile = useIsMobile();
|
|
2401
|
-
const [openMobile, setOpenMobile] =
|
|
2402
|
-
const [_open, _setOpen] =
|
|
2462
|
+
const [openMobile, setOpenMobile] = React23.useState(false);
|
|
2463
|
+
const [_open, _setOpen] = React23.useState(defaultOpen);
|
|
2403
2464
|
const open = openProp ?? _open;
|
|
2404
|
-
const setOpen =
|
|
2465
|
+
const setOpen = React23.useCallback(
|
|
2405
2466
|
(value) => {
|
|
2406
2467
|
const openState = typeof value === "function" ? value(open) : value;
|
|
2407
2468
|
if (setOpenProp) {
|
|
@@ -2413,10 +2474,10 @@ var SidebarProviderBase = React22.forwardRef(
|
|
|
2413
2474
|
},
|
|
2414
2475
|
[setOpenProp, open]
|
|
2415
2476
|
);
|
|
2416
|
-
const toggleSidebar =
|
|
2477
|
+
const toggleSidebar = React23.useCallback(() => {
|
|
2417
2478
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2418
2479
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2419
|
-
|
|
2480
|
+
React23.useEffect(() => {
|
|
2420
2481
|
const handleKeyDown = (event) => {
|
|
2421
2482
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2422
2483
|
event.preventDefault();
|
|
@@ -2427,7 +2488,7 @@ var SidebarProviderBase = React22.forwardRef(
|
|
|
2427
2488
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2428
2489
|
}, [toggleSidebar]);
|
|
2429
2490
|
const state = open ? "expanded" : "collapsed";
|
|
2430
|
-
const contextValue =
|
|
2491
|
+
const contextValue = React23.useMemo(
|
|
2431
2492
|
() => ({
|
|
2432
2493
|
state,
|
|
2433
2494
|
open,
|
|
@@ -2459,7 +2520,7 @@ var SidebarProviderBase = React22.forwardRef(
|
|
|
2459
2520
|
}
|
|
2460
2521
|
);
|
|
2461
2522
|
SidebarProviderBase.displayName = "SidebarProviderBase";
|
|
2462
|
-
var SidebarBase =
|
|
2523
|
+
var SidebarBase = React23.forwardRef(
|
|
2463
2524
|
({
|
|
2464
2525
|
side = "left",
|
|
2465
2526
|
variant = "sidebar",
|
|
@@ -2546,7 +2607,7 @@ var SidebarBase = React22.forwardRef(
|
|
|
2546
2607
|
}
|
|
2547
2608
|
);
|
|
2548
2609
|
SidebarBase.displayName = "SidebarBase";
|
|
2549
|
-
var SidebarTriggerBase =
|
|
2610
|
+
var SidebarTriggerBase = React23.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
2550
2611
|
const { toggleSidebar } = UseSideBarBase();
|
|
2551
2612
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2552
2613
|
ButtonBase,
|
|
@@ -2569,7 +2630,7 @@ var SidebarTriggerBase = React22.forwardRef(({ className, onClick, ...props }, r
|
|
|
2569
2630
|
) });
|
|
2570
2631
|
});
|
|
2571
2632
|
SidebarTriggerBase.displayName = "SidebarTriggerBase";
|
|
2572
|
-
var SidebarRailBase =
|
|
2633
|
+
var SidebarRailBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2573
2634
|
const { toggleSidebar } = UseSideBarBase();
|
|
2574
2635
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2575
2636
|
"button",
|
|
@@ -2594,7 +2655,7 @@ var SidebarRailBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2594
2655
|
);
|
|
2595
2656
|
});
|
|
2596
2657
|
SidebarRailBase.displayName = "SidebarRailBase";
|
|
2597
|
-
var SidebarInsetBase =
|
|
2658
|
+
var SidebarInsetBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2598
2659
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2599
2660
|
"main",
|
|
2600
2661
|
{
|
|
@@ -2609,7 +2670,7 @@ var SidebarInsetBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2609
2670
|
);
|
|
2610
2671
|
});
|
|
2611
2672
|
SidebarInsetBase.displayName = "SidebarInsetBase";
|
|
2612
|
-
var SidebarInputBase =
|
|
2673
|
+
var SidebarInputBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2613
2674
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2614
2675
|
InputBase,
|
|
2615
2676
|
{
|
|
@@ -2624,7 +2685,7 @@ var SidebarInputBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2624
2685
|
);
|
|
2625
2686
|
});
|
|
2626
2687
|
SidebarInputBase.displayName = "SidebarInputBase";
|
|
2627
|
-
var SidebarHeaderBase =
|
|
2688
|
+
var SidebarHeaderBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2628
2689
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2629
2690
|
"div",
|
|
2630
2691
|
{
|
|
@@ -2636,7 +2697,7 @@ var SidebarHeaderBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2636
2697
|
);
|
|
2637
2698
|
});
|
|
2638
2699
|
SidebarHeaderBase.displayName = "SidebarHeaderBase";
|
|
2639
|
-
var SidebarFooterBase =
|
|
2700
|
+
var SidebarFooterBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2640
2701
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2641
2702
|
"div",
|
|
2642
2703
|
{
|
|
@@ -2648,7 +2709,7 @@ var SidebarFooterBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2648
2709
|
);
|
|
2649
2710
|
});
|
|
2650
2711
|
SidebarFooterBase.displayName = "SidebarFooterBase";
|
|
2651
|
-
var SidebarSeparatorBase =
|
|
2712
|
+
var SidebarSeparatorBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2652
2713
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2653
2714
|
SeparatorBase,
|
|
2654
2715
|
{
|
|
@@ -2660,7 +2721,7 @@ var SidebarSeparatorBase = React22.forwardRef(({ className, ...props }, ref) =>
|
|
|
2660
2721
|
);
|
|
2661
2722
|
});
|
|
2662
2723
|
SidebarSeparatorBase.displayName = "SidebarSeparatorBase";
|
|
2663
|
-
var SidebarContentBase =
|
|
2724
|
+
var SidebarContentBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2664
2725
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2665
2726
|
"div",
|
|
2666
2727
|
{
|
|
@@ -2675,7 +2736,7 @@ var SidebarContentBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2675
2736
|
);
|
|
2676
2737
|
});
|
|
2677
2738
|
SidebarContentBase.displayName = "SidebarContentBase";
|
|
2678
|
-
var SidebarGroupBase =
|
|
2739
|
+
var SidebarGroupBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
2679
2740
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2680
2741
|
"div",
|
|
2681
2742
|
{
|
|
@@ -2687,7 +2748,7 @@ var SidebarGroupBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
|
2687
2748
|
);
|
|
2688
2749
|
});
|
|
2689
2750
|
SidebarGroupBase.displayName = "SidebarGroupBase";
|
|
2690
|
-
var SidebarGroupLabelBase =
|
|
2751
|
+
var SidebarGroupLabelBase = React23.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
2691
2752
|
const Comp = asChild ? import_react_slot4.Slot : "div";
|
|
2692
2753
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2693
2754
|
Comp,
|
|
@@ -2704,7 +2765,7 @@ var SidebarGroupLabelBase = React22.forwardRef(({ className, asChild = false, ..
|
|
|
2704
2765
|
);
|
|
2705
2766
|
});
|
|
2706
2767
|
SidebarGroupLabelBase.displayName = "SidebarGroupLabelBase";
|
|
2707
|
-
var SidebarGroupActionBase =
|
|
2768
|
+
var SidebarGroupActionBase = React23.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
2708
2769
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
2709
2770
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2710
2771
|
Comp,
|
|
@@ -2723,7 +2784,7 @@ var SidebarGroupActionBase = React22.forwardRef(({ className, asChild = false, .
|
|
|
2723
2784
|
);
|
|
2724
2785
|
});
|
|
2725
2786
|
SidebarGroupActionBase.displayName = "SidebarGroupActionBase";
|
|
2726
|
-
var SidebarGroupContentBase =
|
|
2787
|
+
var SidebarGroupContentBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2727
2788
|
"div",
|
|
2728
2789
|
{
|
|
2729
2790
|
ref,
|
|
@@ -2733,7 +2794,7 @@ var SidebarGroupContentBase = React22.forwardRef(({ className, ...props }, ref)
|
|
|
2733
2794
|
}
|
|
2734
2795
|
));
|
|
2735
2796
|
SidebarGroupContentBase.displayName = "SidebarGroupContentBase";
|
|
2736
|
-
var SidebarMenuBase =
|
|
2797
|
+
var SidebarMenuBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2737
2798
|
"ul",
|
|
2738
2799
|
{
|
|
2739
2800
|
ref,
|
|
@@ -2743,7 +2804,7 @@ var SidebarMenuBase = React22.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2743
2804
|
}
|
|
2744
2805
|
));
|
|
2745
2806
|
SidebarMenuBase.displayName = "SidebarMenuBase";
|
|
2746
|
-
var SidebarMenuItemBase =
|
|
2807
|
+
var SidebarMenuItemBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2747
2808
|
"li",
|
|
2748
2809
|
{
|
|
2749
2810
|
ref,
|
|
@@ -2773,7 +2834,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority3.cva)(
|
|
|
2773
2834
|
}
|
|
2774
2835
|
}
|
|
2775
2836
|
);
|
|
2776
|
-
var SidebarMenuButtonBase =
|
|
2837
|
+
var SidebarMenuButtonBase = React23.forwardRef(
|
|
2777
2838
|
({
|
|
2778
2839
|
asChild = false,
|
|
2779
2840
|
isActive = false,
|
|
@@ -2819,7 +2880,7 @@ var SidebarMenuButtonBase = React22.forwardRef(
|
|
|
2819
2880
|
}
|
|
2820
2881
|
);
|
|
2821
2882
|
SidebarMenuButtonBase.displayName = "SidebarMenuButtonBase";
|
|
2822
|
-
var SidebarMenuActionBase =
|
|
2883
|
+
var SidebarMenuActionBase = React23.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
2823
2884
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
2824
2885
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2825
2886
|
Comp,
|
|
@@ -2842,7 +2903,7 @@ var SidebarMenuActionBase = React22.forwardRef(({ className, asChild = false, sh
|
|
|
2842
2903
|
);
|
|
2843
2904
|
});
|
|
2844
2905
|
SidebarMenuActionBase.displayName = "SidebarMenuActionBase";
|
|
2845
|
-
var SidebarMenuBadgeBase =
|
|
2906
|
+
var SidebarMenuBadgeBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2846
2907
|
"div",
|
|
2847
2908
|
{
|
|
2848
2909
|
ref,
|
|
@@ -2860,8 +2921,8 @@ var SidebarMenuBadgeBase = React22.forwardRef(({ className, ...props }, ref) =>
|
|
|
2860
2921
|
}
|
|
2861
2922
|
));
|
|
2862
2923
|
SidebarMenuBadgeBase.displayName = "SidebarMenuBadgeBase";
|
|
2863
|
-
var SidebarMenuSkeletonBase =
|
|
2864
|
-
const width =
|
|
2924
|
+
var SidebarMenuSkeletonBase = React23.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
2925
|
+
const width = React23.useMemo(() => {
|
|
2865
2926
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2866
2927
|
}, []);
|
|
2867
2928
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
@@ -2894,7 +2955,7 @@ var SidebarMenuSkeletonBase = React22.forwardRef(({ className, showIcon = false,
|
|
|
2894
2955
|
);
|
|
2895
2956
|
});
|
|
2896
2957
|
SidebarMenuSkeletonBase.displayName = "SidebarMenuSkeletonBase";
|
|
2897
|
-
var SidebarMenuSubBase =
|
|
2958
|
+
var SidebarMenuSubBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2898
2959
|
"ul",
|
|
2899
2960
|
{
|
|
2900
2961
|
ref,
|
|
@@ -2908,9 +2969,9 @@ var SidebarMenuSubBase = React22.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2908
2969
|
}
|
|
2909
2970
|
));
|
|
2910
2971
|
SidebarMenuSubBase.displayName = "SidebarMenuSubBase";
|
|
2911
|
-
var SidebarMenuSubItemBase =
|
|
2972
|
+
var SidebarMenuSubItemBase = React23.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("li", { ref, ...props }));
|
|
2912
2973
|
SidebarMenuSubItemBase.displayName = "SidebarMenuSubItemBase";
|
|
2913
|
-
var SidebarMenuSubButtonBase =
|
|
2974
|
+
var SidebarMenuSubButtonBase = React23.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
2914
2975
|
const Comp = asChild ? import_react_slot4.Slot : "a";
|
|
2915
2976
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2916
2977
|
Comp,
|
|
@@ -2934,10 +2995,10 @@ var SidebarMenuSubButtonBase = React22.forwardRef(({ asChild = false, size = "md
|
|
|
2934
2995
|
SidebarMenuSubButtonBase.displayName = "SidebarMenuSubButtonBase";
|
|
2935
2996
|
|
|
2936
2997
|
// src/components/ui/SliderBase.tsx
|
|
2937
|
-
var
|
|
2998
|
+
var React24 = __toESM(require("react"));
|
|
2938
2999
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
|
2939
3000
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2940
|
-
var SlideBase =
|
|
3001
|
+
var SlideBase = React24.forwardRef(
|
|
2941
3002
|
({
|
|
2942
3003
|
className,
|
|
2943
3004
|
orientation = "horizontal",
|
|
@@ -3037,14 +3098,14 @@ var Toaster = ({ ...props }) => {
|
|
|
3037
3098
|
bg-white
|
|
3038
3099
|
text-neutral-800
|
|
3039
3100
|
shadow-lg rounded-md
|
|
3040
|
-
border-l-
|
|
3101
|
+
border-l-4
|
|
3041
3102
|
border-neutral-200
|
|
3042
3103
|
flex items-center gap-3
|
|
3043
3104
|
|
|
3044
|
-
data-[type=success]:border-l-green-500 data-[type=success]:bg-green-50 data-[type=success]:text-green-800
|
|
3045
|
-
data-[type=error]:border-l-red-500 data-[type=error]:bg-red-50 data-[type=error]:text-red-800
|
|
3046
|
-
data-[type=warning]:border-l-yellow-500 data-[type=warning]:bg-yellow-50 data-[type=warning]:text-yellow-800
|
|
3047
|
-
data-[type=info]:border-l-blue-500 data-[type=info]:bg-blue-50 data-[type=info]:text-blue-800
|
|
3105
|
+
data-[type=success]:border-l-green-500 data-[type=success]:bg-green-50 data-[type=success]:text-green-800 data-[type=success]:border-green-500
|
|
3106
|
+
data-[type=error]:border-l-red-500 data-[type=error]:bg-red-50 data-[type=error]:text-red-800 data-[type=error]:border-red-500
|
|
3107
|
+
data-[type=warning]:border-l-yellow-500 data-[type=warning]:bg-yellow-50 data-[type=warning]:text-yellow-800 data-[type=warning]:border-yellow-500
|
|
3108
|
+
data-[type=info]:border-l-blue-500 data-[type=info]:bg-blue-50 data-[type=info]:text-blue-800 data-[type=info]:border-blue-500
|
|
3048
3109
|
`,
|
|
3049
3110
|
description: `
|
|
3050
3111
|
text-sm
|
|
@@ -3095,10 +3156,10 @@ var toast = {
|
|
|
3095
3156
|
};
|
|
3096
3157
|
|
|
3097
3158
|
// src/components/ui/SwitchBase.tsx
|
|
3098
|
-
var
|
|
3159
|
+
var React25 = __toESM(require("react"));
|
|
3099
3160
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
|
3100
3161
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3101
|
-
var SwitchBase =
|
|
3162
|
+
var SwitchBase = React25.forwardRef(({ className, ...props }, ref) => {
|
|
3102
3163
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3103
3164
|
SwitchPrimitives.Root,
|
|
3104
3165
|
{
|
|
@@ -3126,9 +3187,9 @@ var SwitchBase = React24.forwardRef(({ className, ...props }, ref) => {
|
|
|
3126
3187
|
SwitchBase.displayName = SwitchPrimitives.Root.displayName;
|
|
3127
3188
|
|
|
3128
3189
|
// src/components/ui/TableBase.tsx
|
|
3129
|
-
var
|
|
3190
|
+
var React26 = __toESM(require("react"));
|
|
3130
3191
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3131
|
-
var TableBase =
|
|
3192
|
+
var TableBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3132
3193
|
"table",
|
|
3133
3194
|
{
|
|
3134
3195
|
ref,
|
|
@@ -3137,9 +3198,9 @@ var TableBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3137
3198
|
}
|
|
3138
3199
|
) }));
|
|
3139
3200
|
TableBase.displayName = "TableBase";
|
|
3140
|
-
var TableHeaderBase =
|
|
3201
|
+
var TableHeaderBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
3141
3202
|
TableHeaderBase.displayName = "TableHeaderBase";
|
|
3142
|
-
var TableBodyBase =
|
|
3203
|
+
var TableBodyBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3143
3204
|
"tbody",
|
|
3144
3205
|
{
|
|
3145
3206
|
ref,
|
|
@@ -3148,7 +3209,7 @@ var TableBodyBase = React25.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3148
3209
|
}
|
|
3149
3210
|
));
|
|
3150
3211
|
TableBodyBase.displayName = "TableBodyBase";
|
|
3151
|
-
var TableFooterBase =
|
|
3212
|
+
var TableFooterBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3152
3213
|
"tfoot",
|
|
3153
3214
|
{
|
|
3154
3215
|
ref,
|
|
@@ -3160,7 +3221,7 @@ var TableFooterBase = React25.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3160
3221
|
}
|
|
3161
3222
|
));
|
|
3162
3223
|
TableFooterBase.displayName = "TableFooterBase";
|
|
3163
|
-
var TableRowBase =
|
|
3224
|
+
var TableRowBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3164
3225
|
"tr",
|
|
3165
3226
|
{
|
|
3166
3227
|
ref,
|
|
@@ -3172,7 +3233,7 @@ var TableRowBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3172
3233
|
}
|
|
3173
3234
|
));
|
|
3174
3235
|
TableRowBase.displayName = "TableRowBase";
|
|
3175
|
-
var TableHeadBase =
|
|
3236
|
+
var TableHeadBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3176
3237
|
"th",
|
|
3177
3238
|
{
|
|
3178
3239
|
ref,
|
|
@@ -3184,7 +3245,7 @@ var TableHeadBase = React25.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3184
3245
|
}
|
|
3185
3246
|
));
|
|
3186
3247
|
TableHeadBase.displayName = "TableHeadBase";
|
|
3187
|
-
var TableCellBase =
|
|
3248
|
+
var TableCellBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3188
3249
|
"td",
|
|
3189
3250
|
{
|
|
3190
3251
|
ref,
|
|
@@ -3196,7 +3257,7 @@ var TableCellBase = React25.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3196
3257
|
}
|
|
3197
3258
|
));
|
|
3198
3259
|
TableCellBase.displayName = "TableCellBase";
|
|
3199
|
-
var TableCaptionBase =
|
|
3260
|
+
var TableCaptionBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3200
3261
|
"caption",
|
|
3201
3262
|
{
|
|
3202
3263
|
ref,
|
|
@@ -3207,11 +3268,11 @@ var TableCaptionBase = React25.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3207
3268
|
TableCaptionBase.displayName = "TableCaptionBase";
|
|
3208
3269
|
|
|
3209
3270
|
// src/components/ui/TabsBase.tsx
|
|
3210
|
-
var
|
|
3271
|
+
var React27 = __toESM(require("react"));
|
|
3211
3272
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
3212
3273
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3213
3274
|
var TabsBase = TabsPrimitive.Root;
|
|
3214
|
-
var TabsListBase =
|
|
3275
|
+
var TabsListBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3215
3276
|
TabsPrimitive.List,
|
|
3216
3277
|
{
|
|
3217
3278
|
ref,
|
|
@@ -3223,7 +3284,7 @@ var TabsListBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3223
3284
|
}
|
|
3224
3285
|
));
|
|
3225
3286
|
TabsListBase.displayName = TabsPrimitive.List.displayName;
|
|
3226
|
-
var TabsTriggerBase =
|
|
3287
|
+
var TabsTriggerBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3227
3288
|
TabsPrimitive.Trigger,
|
|
3228
3289
|
{
|
|
3229
3290
|
ref,
|
|
@@ -3241,7 +3302,7 @@ var TabsTriggerBase = React26.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3241
3302
|
...props
|
|
3242
3303
|
}
|
|
3243
3304
|
));
|
|
3244
|
-
var TabsContentBase =
|
|
3305
|
+
var TabsContentBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3245
3306
|
TabsPrimitive.Content,
|
|
3246
3307
|
{
|
|
3247
3308
|
ref,
|
|
@@ -3256,9 +3317,9 @@ var TabsContentBase = React26.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3256
3317
|
TabsContentBase.displayName = TabsPrimitive.Content.displayName;
|
|
3257
3318
|
|
|
3258
3319
|
// src/components/ui/TextAreaBase.tsx
|
|
3259
|
-
var
|
|
3320
|
+
var React28 = __toESM(require("react"));
|
|
3260
3321
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3261
|
-
var TextAreaBase =
|
|
3322
|
+
var TextAreaBase = React28.forwardRef(({ className, ...props }, ref) => {
|
|
3262
3323
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3263
3324
|
"textarea",
|
|
3264
3325
|
{
|