@codapet/design-system 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +22 -43
- package/dist/index.mjs +444 -875
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +50 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import "react";
|
|
|
5
5
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
6
6
|
import { ChevronDownIcon } from "lucide-react";
|
|
7
7
|
|
|
8
|
-
// lib/utils.ts
|
|
8
|
+
// src/lib/utils.ts
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { twMerge } from "tailwind-merge";
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -136,7 +136,7 @@ function AlertDescription({
|
|
|
136
136
|
import "react";
|
|
137
137
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
138
138
|
|
|
139
|
-
// components/ui/button.tsx
|
|
139
|
+
// src/components/ui/button.tsx
|
|
140
140
|
import "react";
|
|
141
141
|
import { Slot } from "@radix-ui/react-slot";
|
|
142
142
|
import { cva as cva2 } from "class-variance-authority";
|
|
@@ -509,63 +509,15 @@ function BreadcrumbEllipsis({
|
|
|
509
509
|
);
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
-
// src/components/ui/button.tsx
|
|
513
|
-
import "react";
|
|
514
|
-
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
515
|
-
import { cva as cva4 } from "class-variance-authority";
|
|
516
|
-
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
517
|
-
var buttonVariants2 = cva4(
|
|
518
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
519
|
-
{
|
|
520
|
-
variants: {
|
|
521
|
-
variant: {
|
|
522
|
-
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
523
|
-
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
524
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
525
|
-
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
526
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
527
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
528
|
-
},
|
|
529
|
-
size: {
|
|
530
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
531
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
532
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
533
|
-
icon: "size-9"
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
defaultVariants: {
|
|
537
|
-
variant: "default",
|
|
538
|
-
size: "default"
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
);
|
|
542
|
-
function Button2({
|
|
543
|
-
className,
|
|
544
|
-
variant,
|
|
545
|
-
size,
|
|
546
|
-
asChild = false,
|
|
547
|
-
...props
|
|
548
|
-
}) {
|
|
549
|
-
const Comp = asChild ? Slot4 : "button";
|
|
550
|
-
return /* @__PURE__ */ jsx9(
|
|
551
|
-
Comp,
|
|
552
|
-
{
|
|
553
|
-
"data-slot": "button",
|
|
554
|
-
className: cn(buttonVariants2({ variant, size, className })),
|
|
555
|
-
...props
|
|
556
|
-
}
|
|
557
|
-
);
|
|
558
|
-
}
|
|
559
|
-
|
|
560
512
|
// src/components/ui/calendar.tsx
|
|
561
|
-
import * as
|
|
513
|
+
import * as React8 from "react";
|
|
562
514
|
import {
|
|
563
515
|
ChevronDownIcon as ChevronDownIcon2,
|
|
564
516
|
ChevronLeftIcon,
|
|
565
517
|
ChevronRightIcon
|
|
566
518
|
} from "lucide-react";
|
|
567
519
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
568
|
-
import { jsx as
|
|
520
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
569
521
|
function Calendar({
|
|
570
522
|
className,
|
|
571
523
|
classNames,
|
|
@@ -577,7 +529,7 @@ function Calendar({
|
|
|
577
529
|
...props
|
|
578
530
|
}) {
|
|
579
531
|
const defaultClassNames = getDefaultClassNames();
|
|
580
|
-
return /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ jsx9(
|
|
581
533
|
DayPicker,
|
|
582
534
|
{
|
|
583
535
|
showOutsideDays,
|
|
@@ -676,7 +628,7 @@ function Calendar({
|
|
|
676
628
|
},
|
|
677
629
|
components: {
|
|
678
630
|
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
679
|
-
return /* @__PURE__ */
|
|
631
|
+
return /* @__PURE__ */ jsx9(
|
|
680
632
|
"div",
|
|
681
633
|
{
|
|
682
634
|
"data-slot": "calendar",
|
|
@@ -688,10 +640,10 @@ function Calendar({
|
|
|
688
640
|
},
|
|
689
641
|
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
690
642
|
if (orientation === "left") {
|
|
691
|
-
return /* @__PURE__ */
|
|
643
|
+
return /* @__PURE__ */ jsx9(ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
|
|
692
644
|
}
|
|
693
645
|
if (orientation === "right") {
|
|
694
|
-
return /* @__PURE__ */
|
|
646
|
+
return /* @__PURE__ */ jsx9(
|
|
695
647
|
ChevronRightIcon,
|
|
696
648
|
{
|
|
697
649
|
className: cn("size-4", className2),
|
|
@@ -699,11 +651,11 @@ function Calendar({
|
|
|
699
651
|
}
|
|
700
652
|
);
|
|
701
653
|
}
|
|
702
|
-
return /* @__PURE__ */
|
|
654
|
+
return /* @__PURE__ */ jsx9(ChevronDownIcon2, { className: cn("size-4", className2), ...props2 });
|
|
703
655
|
},
|
|
704
656
|
DayButton: CalendarDayButton,
|
|
705
657
|
WeekNumber: ({ children, ...props2 }) => {
|
|
706
|
-
return /* @__PURE__ */
|
|
658
|
+
return /* @__PURE__ */ jsx9("td", { ...props2, children: /* @__PURE__ */ jsx9("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
|
|
707
659
|
},
|
|
708
660
|
...components
|
|
709
661
|
},
|
|
@@ -718,11 +670,11 @@ function CalendarDayButton({
|
|
|
718
670
|
...props
|
|
719
671
|
}) {
|
|
720
672
|
const defaultClassNames = getDefaultClassNames();
|
|
721
|
-
const ref =
|
|
722
|
-
|
|
673
|
+
const ref = React8.useRef(null);
|
|
674
|
+
React8.useEffect(() => {
|
|
723
675
|
if (modifiers.focused) ref.current?.focus();
|
|
724
676
|
}, [modifiers.focused]);
|
|
725
|
-
return /* @__PURE__ */
|
|
677
|
+
return /* @__PURE__ */ jsx9(
|
|
726
678
|
Button,
|
|
727
679
|
{
|
|
728
680
|
ref,
|
|
@@ -745,9 +697,9 @@ function CalendarDayButton({
|
|
|
745
697
|
|
|
746
698
|
// src/components/ui/card.tsx
|
|
747
699
|
import "react";
|
|
748
|
-
import { jsx as
|
|
700
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
749
701
|
function Card({ className, ...props }) {
|
|
750
|
-
return /* @__PURE__ */
|
|
702
|
+
return /* @__PURE__ */ jsx10(
|
|
751
703
|
"div",
|
|
752
704
|
{
|
|
753
705
|
"data-slot": "card",
|
|
@@ -760,7 +712,7 @@ function Card({ className, ...props }) {
|
|
|
760
712
|
);
|
|
761
713
|
}
|
|
762
714
|
function CardHeader({ className, ...props }) {
|
|
763
|
-
return /* @__PURE__ */
|
|
715
|
+
return /* @__PURE__ */ jsx10(
|
|
764
716
|
"div",
|
|
765
717
|
{
|
|
766
718
|
"data-slot": "card-header",
|
|
@@ -773,7 +725,7 @@ function CardHeader({ className, ...props }) {
|
|
|
773
725
|
);
|
|
774
726
|
}
|
|
775
727
|
function CardTitle({ className, ...props }) {
|
|
776
|
-
return /* @__PURE__ */
|
|
728
|
+
return /* @__PURE__ */ jsx10(
|
|
777
729
|
"div",
|
|
778
730
|
{
|
|
779
731
|
"data-slot": "card-title",
|
|
@@ -783,7 +735,7 @@ function CardTitle({ className, ...props }) {
|
|
|
783
735
|
);
|
|
784
736
|
}
|
|
785
737
|
function CardDescription({ className, ...props }) {
|
|
786
|
-
return /* @__PURE__ */
|
|
738
|
+
return /* @__PURE__ */ jsx10(
|
|
787
739
|
"div",
|
|
788
740
|
{
|
|
789
741
|
"data-slot": "card-description",
|
|
@@ -793,7 +745,7 @@ function CardDescription({ className, ...props }) {
|
|
|
793
745
|
);
|
|
794
746
|
}
|
|
795
747
|
function CardAction({ className, ...props }) {
|
|
796
|
-
return /* @__PURE__ */
|
|
748
|
+
return /* @__PURE__ */ jsx10(
|
|
797
749
|
"div",
|
|
798
750
|
{
|
|
799
751
|
"data-slot": "card-action",
|
|
@@ -806,7 +758,7 @@ function CardAction({ className, ...props }) {
|
|
|
806
758
|
);
|
|
807
759
|
}
|
|
808
760
|
function CardContent({ className, ...props }) {
|
|
809
|
-
return /* @__PURE__ */
|
|
761
|
+
return /* @__PURE__ */ jsx10(
|
|
810
762
|
"div",
|
|
811
763
|
{
|
|
812
764
|
"data-slot": "card-content",
|
|
@@ -816,7 +768,7 @@ function CardContent({ className, ...props }) {
|
|
|
816
768
|
);
|
|
817
769
|
}
|
|
818
770
|
function CardFooter({ className, ...props }) {
|
|
819
|
-
return /* @__PURE__ */
|
|
771
|
+
return /* @__PURE__ */ jsx10(
|
|
820
772
|
"div",
|
|
821
773
|
{
|
|
822
774
|
"data-slot": "card-footer",
|
|
@@ -827,13 +779,13 @@ function CardFooter({ className, ...props }) {
|
|
|
827
779
|
}
|
|
828
780
|
|
|
829
781
|
// src/components/ui/carousel.tsx
|
|
830
|
-
import * as
|
|
782
|
+
import * as React10 from "react";
|
|
831
783
|
import useEmblaCarousel from "embla-carousel-react";
|
|
832
784
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
833
|
-
import { jsx as
|
|
834
|
-
var CarouselContext =
|
|
785
|
+
import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
786
|
+
var CarouselContext = React10.createContext(null);
|
|
835
787
|
function useCarousel() {
|
|
836
|
-
const context =
|
|
788
|
+
const context = React10.useContext(CarouselContext);
|
|
837
789
|
if (!context) {
|
|
838
790
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
839
791
|
}
|
|
@@ -855,20 +807,20 @@ function Carousel({
|
|
|
855
807
|
},
|
|
856
808
|
plugins
|
|
857
809
|
);
|
|
858
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
859
|
-
const [canScrollNext, setCanScrollNext] =
|
|
860
|
-
const onSelect =
|
|
810
|
+
const [canScrollPrev, setCanScrollPrev] = React10.useState(false);
|
|
811
|
+
const [canScrollNext, setCanScrollNext] = React10.useState(false);
|
|
812
|
+
const onSelect = React10.useCallback((api2) => {
|
|
861
813
|
if (!api2) return;
|
|
862
814
|
setCanScrollPrev(api2.canScrollPrev());
|
|
863
815
|
setCanScrollNext(api2.canScrollNext());
|
|
864
816
|
}, []);
|
|
865
|
-
const scrollPrev =
|
|
817
|
+
const scrollPrev = React10.useCallback(() => {
|
|
866
818
|
api?.scrollPrev();
|
|
867
819
|
}, [api]);
|
|
868
|
-
const scrollNext =
|
|
820
|
+
const scrollNext = React10.useCallback(() => {
|
|
869
821
|
api?.scrollNext();
|
|
870
822
|
}, [api]);
|
|
871
|
-
const handleKeyDown =
|
|
823
|
+
const handleKeyDown = React10.useCallback(
|
|
872
824
|
(event) => {
|
|
873
825
|
if (event.key === "ArrowLeft") {
|
|
874
826
|
event.preventDefault();
|
|
@@ -880,11 +832,11 @@ function Carousel({
|
|
|
880
832
|
},
|
|
881
833
|
[scrollPrev, scrollNext]
|
|
882
834
|
);
|
|
883
|
-
|
|
835
|
+
React10.useEffect(() => {
|
|
884
836
|
if (!api || !setApi) return;
|
|
885
837
|
setApi(api);
|
|
886
838
|
}, [api, setApi]);
|
|
887
|
-
|
|
839
|
+
React10.useEffect(() => {
|
|
888
840
|
if (!api) return;
|
|
889
841
|
onSelect(api);
|
|
890
842
|
api.on("reInit", onSelect);
|
|
@@ -893,7 +845,7 @@ function Carousel({
|
|
|
893
845
|
api?.off("select", onSelect);
|
|
894
846
|
};
|
|
895
847
|
}, [api, onSelect]);
|
|
896
|
-
return /* @__PURE__ */
|
|
848
|
+
return /* @__PURE__ */ jsx11(
|
|
897
849
|
CarouselContext.Provider,
|
|
898
850
|
{
|
|
899
851
|
value: {
|
|
@@ -906,7 +858,7 @@ function Carousel({
|
|
|
906
858
|
canScrollPrev,
|
|
907
859
|
canScrollNext
|
|
908
860
|
},
|
|
909
|
-
children: /* @__PURE__ */
|
|
861
|
+
children: /* @__PURE__ */ jsx11(
|
|
910
862
|
"div",
|
|
911
863
|
{
|
|
912
864
|
onKeyDownCapture: handleKeyDown,
|
|
@@ -923,13 +875,13 @@ function Carousel({
|
|
|
923
875
|
}
|
|
924
876
|
function CarouselContent({ className, ...props }) {
|
|
925
877
|
const { carouselRef, orientation } = useCarousel();
|
|
926
|
-
return /* @__PURE__ */
|
|
878
|
+
return /* @__PURE__ */ jsx11(
|
|
927
879
|
"div",
|
|
928
880
|
{
|
|
929
881
|
ref: carouselRef,
|
|
930
882
|
className: "overflow-hidden",
|
|
931
883
|
"data-slot": "carousel-content",
|
|
932
|
-
children: /* @__PURE__ */
|
|
884
|
+
children: /* @__PURE__ */ jsx11(
|
|
933
885
|
"div",
|
|
934
886
|
{
|
|
935
887
|
className: cn(
|
|
@@ -945,7 +897,7 @@ function CarouselContent({ className, ...props }) {
|
|
|
945
897
|
}
|
|
946
898
|
function CarouselItem({ className, ...props }) {
|
|
947
899
|
const { orientation } = useCarousel();
|
|
948
|
-
return /* @__PURE__ */
|
|
900
|
+
return /* @__PURE__ */ jsx11(
|
|
949
901
|
"div",
|
|
950
902
|
{
|
|
951
903
|
role: "group",
|
|
@@ -982,8 +934,8 @@ function CarouselPrevious({
|
|
|
982
934
|
onClick: scrollPrev,
|
|
983
935
|
...props,
|
|
984
936
|
children: [
|
|
985
|
-
/* @__PURE__ */
|
|
986
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ jsx11(ArrowLeft, {}),
|
|
938
|
+
/* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Previous slide" })
|
|
987
939
|
]
|
|
988
940
|
}
|
|
989
941
|
);
|
|
@@ -1010,21 +962,21 @@ function CarouselNext({
|
|
|
1010
962
|
onClick: scrollNext,
|
|
1011
963
|
...props,
|
|
1012
964
|
children: [
|
|
1013
|
-
/* @__PURE__ */
|
|
1014
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ jsx11(ArrowRight, {}),
|
|
966
|
+
/* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Next slide" })
|
|
1015
967
|
]
|
|
1016
968
|
}
|
|
1017
969
|
);
|
|
1018
970
|
}
|
|
1019
971
|
|
|
1020
972
|
// src/components/ui/chart.tsx
|
|
1021
|
-
import * as
|
|
973
|
+
import * as React11 from "react";
|
|
1022
974
|
import * as RechartsPrimitive from "recharts";
|
|
1023
|
-
import { Fragment, jsx as
|
|
975
|
+
import { Fragment, jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1024
976
|
var THEMES = { light: "", dark: ".dark" };
|
|
1025
|
-
var ChartContext =
|
|
977
|
+
var ChartContext = React11.createContext(null);
|
|
1026
978
|
function useChart() {
|
|
1027
|
-
const context =
|
|
979
|
+
const context = React11.useContext(ChartContext);
|
|
1028
980
|
if (!context) {
|
|
1029
981
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1030
982
|
}
|
|
@@ -1037,9 +989,9 @@ function ChartContainer({
|
|
|
1037
989
|
config,
|
|
1038
990
|
...props
|
|
1039
991
|
}) {
|
|
1040
|
-
const uniqueId =
|
|
992
|
+
const uniqueId = React11.useId();
|
|
1041
993
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1042
|
-
return /* @__PURE__ */
|
|
994
|
+
return /* @__PURE__ */ jsx12(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs5(
|
|
1043
995
|
"div",
|
|
1044
996
|
{
|
|
1045
997
|
"data-slot": "chart",
|
|
@@ -1050,8 +1002,8 @@ function ChartContainer({
|
|
|
1050
1002
|
),
|
|
1051
1003
|
...props,
|
|
1052
1004
|
children: [
|
|
1053
|
-
/* @__PURE__ */
|
|
1054
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ jsx12(ChartStyle, { id: chartId, config }),
|
|
1006
|
+
/* @__PURE__ */ jsx12(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1055
1007
|
]
|
|
1056
1008
|
}
|
|
1057
1009
|
) });
|
|
@@ -1063,7 +1015,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1063
1015
|
if (!colorConfig.length) {
|
|
1064
1016
|
return null;
|
|
1065
1017
|
}
|
|
1066
|
-
return /* @__PURE__ */
|
|
1018
|
+
return /* @__PURE__ */ jsx12(
|
|
1067
1019
|
"style",
|
|
1068
1020
|
{
|
|
1069
1021
|
dangerouslySetInnerHTML: {
|
|
@@ -1098,7 +1050,7 @@ function ChartTooltipContent({
|
|
|
1098
1050
|
labelKey
|
|
1099
1051
|
}) {
|
|
1100
1052
|
const { config } = useChart();
|
|
1101
|
-
const tooltipLabel =
|
|
1053
|
+
const tooltipLabel = React11.useMemo(() => {
|
|
1102
1054
|
if (hideLabel || !payload?.length) {
|
|
1103
1055
|
return null;
|
|
1104
1056
|
}
|
|
@@ -1107,12 +1059,12 @@ function ChartTooltipContent({
|
|
|
1107
1059
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1108
1060
|
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
1109
1061
|
if (labelFormatter) {
|
|
1110
|
-
return /* @__PURE__ */
|
|
1062
|
+
return /* @__PURE__ */ jsx12("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1111
1063
|
}
|
|
1112
1064
|
if (!value) {
|
|
1113
1065
|
return null;
|
|
1114
1066
|
}
|
|
1115
|
-
return /* @__PURE__ */
|
|
1067
|
+
return /* @__PURE__ */ jsx12("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1116
1068
|
}, [
|
|
1117
1069
|
label,
|
|
1118
1070
|
labelFormatter,
|
|
@@ -1135,11 +1087,11 @@ function ChartTooltipContent({
|
|
|
1135
1087
|
),
|
|
1136
1088
|
children: [
|
|
1137
1089
|
!nestLabel ? tooltipLabel : null,
|
|
1138
|
-
/* @__PURE__ */
|
|
1090
|
+
/* @__PURE__ */ jsx12("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
|
|
1139
1091
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1140
1092
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1141
1093
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1142
|
-
return /* @__PURE__ */
|
|
1094
|
+
return /* @__PURE__ */ jsx12(
|
|
1143
1095
|
"div",
|
|
1144
1096
|
{
|
|
1145
1097
|
className: cn(
|
|
@@ -1147,7 +1099,7 @@ function ChartTooltipContent({
|
|
|
1147
1099
|
indicator === "dot" && "items-center"
|
|
1148
1100
|
),
|
|
1149
1101
|
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
1150
|
-
itemConfig?.icon ? /* @__PURE__ */
|
|
1102
|
+
itemConfig?.icon ? /* @__PURE__ */ jsx12(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx12(
|
|
1151
1103
|
"div",
|
|
1152
1104
|
{
|
|
1153
1105
|
className: cn(
|
|
@@ -1175,9 +1127,9 @@ function ChartTooltipContent({
|
|
|
1175
1127
|
children: [
|
|
1176
1128
|
/* @__PURE__ */ jsxs5("div", { className: "grid gap-1.5", children: [
|
|
1177
1129
|
nestLabel ? tooltipLabel : null,
|
|
1178
|
-
/* @__PURE__ */
|
|
1130
|
+
/* @__PURE__ */ jsx12("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
|
|
1179
1131
|
] }),
|
|
1180
|
-
item.value && /* @__PURE__ */
|
|
1132
|
+
item.value && /* @__PURE__ */ jsx12("span", { className: "text-foreground font-mono font-medium tabular-nums", children: item.value.toLocaleString() })
|
|
1181
1133
|
]
|
|
1182
1134
|
}
|
|
1183
1135
|
)
|
|
@@ -1202,7 +1154,7 @@ function ChartLegendContent({
|
|
|
1202
1154
|
if (!payload?.length) {
|
|
1203
1155
|
return null;
|
|
1204
1156
|
}
|
|
1205
|
-
return /* @__PURE__ */
|
|
1157
|
+
return /* @__PURE__ */ jsx12(
|
|
1206
1158
|
"div",
|
|
1207
1159
|
{
|
|
1208
1160
|
className: cn(
|
|
@@ -1220,7 +1172,7 @@ function ChartLegendContent({
|
|
|
1220
1172
|
"[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
|
|
1221
1173
|
),
|
|
1222
1174
|
children: [
|
|
1223
|
-
itemConfig?.icon && !hideIcon ? /* @__PURE__ */
|
|
1175
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx12(itemConfig.icon, {}) : /* @__PURE__ */ jsx12(
|
|
1224
1176
|
"div",
|
|
1225
1177
|
{
|
|
1226
1178
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1256,12 +1208,12 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1256
1208
|
import "react";
|
|
1257
1209
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1258
1210
|
import { CheckIcon } from "lucide-react";
|
|
1259
|
-
import { jsx as
|
|
1211
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1260
1212
|
function Checkbox({
|
|
1261
1213
|
className,
|
|
1262
1214
|
...props
|
|
1263
1215
|
}) {
|
|
1264
|
-
return /* @__PURE__ */
|
|
1216
|
+
return /* @__PURE__ */ jsx13(
|
|
1265
1217
|
CheckboxPrimitive.Root,
|
|
1266
1218
|
{
|
|
1267
1219
|
"data-slot": "checkbox",
|
|
@@ -1270,12 +1222,12 @@ function Checkbox({
|
|
|
1270
1222
|
className
|
|
1271
1223
|
),
|
|
1272
1224
|
...props,
|
|
1273
|
-
children: /* @__PURE__ */
|
|
1225
|
+
children: /* @__PURE__ */ jsx13(
|
|
1274
1226
|
CheckboxPrimitive.Indicator,
|
|
1275
1227
|
{
|
|
1276
1228
|
"data-slot": "checkbox-indicator",
|
|
1277
1229
|
className: "flex items-center justify-center text-current transition-none",
|
|
1278
|
-
children: /* @__PURE__ */
|
|
1230
|
+
children: /* @__PURE__ */ jsx13(CheckIcon, { className: "size-3.5" })
|
|
1279
1231
|
}
|
|
1280
1232
|
)
|
|
1281
1233
|
}
|
|
@@ -1284,16 +1236,16 @@ function Checkbox({
|
|
|
1284
1236
|
|
|
1285
1237
|
// src/components/ui/collapsible.tsx
|
|
1286
1238
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
1287
|
-
import { jsx as
|
|
1239
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1288
1240
|
function Collapsible({
|
|
1289
1241
|
...props
|
|
1290
1242
|
}) {
|
|
1291
|
-
return /* @__PURE__ */
|
|
1243
|
+
return /* @__PURE__ */ jsx14(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
|
|
1292
1244
|
}
|
|
1293
1245
|
function CollapsibleTrigger2({
|
|
1294
1246
|
...props
|
|
1295
1247
|
}) {
|
|
1296
|
-
return /* @__PURE__ */
|
|
1248
|
+
return /* @__PURE__ */ jsx14(
|
|
1297
1249
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
1298
1250
|
{
|
|
1299
1251
|
"data-slot": "collapsible-trigger",
|
|
@@ -1304,7 +1256,7 @@ function CollapsibleTrigger2({
|
|
|
1304
1256
|
function CollapsibleContent2({
|
|
1305
1257
|
...props
|
|
1306
1258
|
}) {
|
|
1307
|
-
return /* @__PURE__ */
|
|
1259
|
+
return /* @__PURE__ */ jsx14(
|
|
1308
1260
|
CollapsiblePrimitive.CollapsibleContent,
|
|
1309
1261
|
{
|
|
1310
1262
|
"data-slot": "collapsible-content",
|
|
@@ -1318,26 +1270,36 @@ import "react";
|
|
|
1318
1270
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1319
1271
|
import { SearchIcon } from "lucide-react";
|
|
1320
1272
|
|
|
1321
|
-
// components/ui/dialog.tsx
|
|
1273
|
+
// src/components/ui/dialog.tsx
|
|
1322
1274
|
import "react";
|
|
1323
1275
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1324
1276
|
import { XIcon } from "lucide-react";
|
|
1325
|
-
import { jsx as
|
|
1277
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1326
1278
|
function Dialog({
|
|
1327
1279
|
...props
|
|
1328
1280
|
}) {
|
|
1329
|
-
return /* @__PURE__ */
|
|
1281
|
+
return /* @__PURE__ */ jsx15(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
1282
|
+
}
|
|
1283
|
+
function DialogTrigger({
|
|
1284
|
+
...props
|
|
1285
|
+
}) {
|
|
1286
|
+
return /* @__PURE__ */ jsx15(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
1330
1287
|
}
|
|
1331
1288
|
function DialogPortal({
|
|
1332
1289
|
...props
|
|
1333
1290
|
}) {
|
|
1334
|
-
return /* @__PURE__ */
|
|
1291
|
+
return /* @__PURE__ */ jsx15(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
1292
|
+
}
|
|
1293
|
+
function DialogClose({
|
|
1294
|
+
...props
|
|
1295
|
+
}) {
|
|
1296
|
+
return /* @__PURE__ */ jsx15(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
1335
1297
|
}
|
|
1336
1298
|
function DialogOverlay({
|
|
1337
1299
|
className,
|
|
1338
1300
|
...props
|
|
1339
1301
|
}) {
|
|
1340
|
-
return /* @__PURE__ */
|
|
1302
|
+
return /* @__PURE__ */ jsx15(
|
|
1341
1303
|
DialogPrimitive.Overlay,
|
|
1342
1304
|
{
|
|
1343
1305
|
"data-slot": "dialog-overlay",
|
|
@@ -1356,7 +1318,7 @@ function DialogContent({
|
|
|
1356
1318
|
...props
|
|
1357
1319
|
}) {
|
|
1358
1320
|
return /* @__PURE__ */ jsxs6(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
1359
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ jsx15(DialogOverlay, {}),
|
|
1360
1322
|
/* @__PURE__ */ jsxs6(
|
|
1361
1323
|
DialogPrimitive.Content,
|
|
1362
1324
|
{
|
|
@@ -1374,8 +1336,8 @@ function DialogContent({
|
|
|
1374
1336
|
"data-slot": "dialog-close",
|
|
1375
1337
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1376
1338
|
children: [
|
|
1377
|
-
/* @__PURE__ */
|
|
1378
|
-
/* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ jsx15(XIcon, {}),
|
|
1340
|
+
/* @__PURE__ */ jsx15("span", { className: "sr-only", children: "Close" })
|
|
1379
1341
|
]
|
|
1380
1342
|
}
|
|
1381
1343
|
)
|
|
@@ -1385,7 +1347,7 @@ function DialogContent({
|
|
|
1385
1347
|
] });
|
|
1386
1348
|
}
|
|
1387
1349
|
function DialogHeader({ className, ...props }) {
|
|
1388
|
-
return /* @__PURE__ */
|
|
1350
|
+
return /* @__PURE__ */ jsx15(
|
|
1389
1351
|
"div",
|
|
1390
1352
|
{
|
|
1391
1353
|
"data-slot": "dialog-header",
|
|
@@ -1394,11 +1356,24 @@ function DialogHeader({ className, ...props }) {
|
|
|
1394
1356
|
}
|
|
1395
1357
|
);
|
|
1396
1358
|
}
|
|
1359
|
+
function DialogFooter({ className, ...props }) {
|
|
1360
|
+
return /* @__PURE__ */ jsx15(
|
|
1361
|
+
"div",
|
|
1362
|
+
{
|
|
1363
|
+
"data-slot": "dialog-footer",
|
|
1364
|
+
className: cn(
|
|
1365
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
1366
|
+
className
|
|
1367
|
+
),
|
|
1368
|
+
...props
|
|
1369
|
+
}
|
|
1370
|
+
);
|
|
1371
|
+
}
|
|
1397
1372
|
function DialogTitle({
|
|
1398
1373
|
className,
|
|
1399
1374
|
...props
|
|
1400
1375
|
}) {
|
|
1401
|
-
return /* @__PURE__ */
|
|
1376
|
+
return /* @__PURE__ */ jsx15(
|
|
1402
1377
|
DialogPrimitive.Title,
|
|
1403
1378
|
{
|
|
1404
1379
|
"data-slot": "dialog-title",
|
|
@@ -1411,7 +1386,7 @@ function DialogDescription({
|
|
|
1411
1386
|
className,
|
|
1412
1387
|
...props
|
|
1413
1388
|
}) {
|
|
1414
|
-
return /* @__PURE__ */
|
|
1389
|
+
return /* @__PURE__ */ jsx15(
|
|
1415
1390
|
DialogPrimitive.Description,
|
|
1416
1391
|
{
|
|
1417
1392
|
"data-slot": "dialog-description",
|
|
@@ -1422,12 +1397,12 @@ function DialogDescription({
|
|
|
1422
1397
|
}
|
|
1423
1398
|
|
|
1424
1399
|
// src/components/ui/command.tsx
|
|
1425
|
-
import { jsx as
|
|
1400
|
+
import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1426
1401
|
function Command({
|
|
1427
1402
|
className,
|
|
1428
1403
|
...props
|
|
1429
1404
|
}) {
|
|
1430
|
-
return /* @__PURE__ */
|
|
1405
|
+
return /* @__PURE__ */ jsx16(
|
|
1431
1406
|
CommandPrimitive,
|
|
1432
1407
|
{
|
|
1433
1408
|
"data-slot": "command",
|
|
@@ -1449,15 +1424,15 @@ function CommandDialog({
|
|
|
1449
1424
|
}) {
|
|
1450
1425
|
return /* @__PURE__ */ jsxs7(Dialog, { ...props, children: [
|
|
1451
1426
|
/* @__PURE__ */ jsxs7(DialogHeader, { className: "sr-only", children: [
|
|
1452
|
-
/* @__PURE__ */
|
|
1453
|
-
/* @__PURE__ */
|
|
1427
|
+
/* @__PURE__ */ jsx16(DialogTitle, { children: title }),
|
|
1428
|
+
/* @__PURE__ */ jsx16(DialogDescription, { children: description })
|
|
1454
1429
|
] }),
|
|
1455
|
-
/* @__PURE__ */
|
|
1430
|
+
/* @__PURE__ */ jsx16(
|
|
1456
1431
|
DialogContent,
|
|
1457
1432
|
{
|
|
1458
1433
|
className: cn("overflow-hidden p-0", className),
|
|
1459
1434
|
showCloseButton,
|
|
1460
|
-
children: /* @__PURE__ */
|
|
1435
|
+
children: /* @__PURE__ */ jsx16(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[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 })
|
|
1461
1436
|
}
|
|
1462
1437
|
)
|
|
1463
1438
|
] });
|
|
@@ -1472,8 +1447,8 @@ function CommandInput({
|
|
|
1472
1447
|
"data-slot": "command-input-wrapper",
|
|
1473
1448
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
1474
1449
|
children: [
|
|
1475
|
-
/* @__PURE__ */
|
|
1476
|
-
/* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ jsx16(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
1451
|
+
/* @__PURE__ */ jsx16(
|
|
1477
1452
|
CommandPrimitive.Input,
|
|
1478
1453
|
{
|
|
1479
1454
|
"data-slot": "command-input",
|
|
@@ -1492,7 +1467,7 @@ function CommandList({
|
|
|
1492
1467
|
className,
|
|
1493
1468
|
...props
|
|
1494
1469
|
}) {
|
|
1495
|
-
return /* @__PURE__ */
|
|
1470
|
+
return /* @__PURE__ */ jsx16(
|
|
1496
1471
|
CommandPrimitive.List,
|
|
1497
1472
|
{
|
|
1498
1473
|
"data-slot": "command-list",
|
|
@@ -1507,7 +1482,7 @@ function CommandList({
|
|
|
1507
1482
|
function CommandEmpty({
|
|
1508
1483
|
...props
|
|
1509
1484
|
}) {
|
|
1510
|
-
return /* @__PURE__ */
|
|
1485
|
+
return /* @__PURE__ */ jsx16(
|
|
1511
1486
|
CommandPrimitive.Empty,
|
|
1512
1487
|
{
|
|
1513
1488
|
"data-slot": "command-empty",
|
|
@@ -1520,7 +1495,7 @@ function CommandGroup({
|
|
|
1520
1495
|
className,
|
|
1521
1496
|
...props
|
|
1522
1497
|
}) {
|
|
1523
|
-
return /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ jsx16(
|
|
1524
1499
|
CommandPrimitive.Group,
|
|
1525
1500
|
{
|
|
1526
1501
|
"data-slot": "command-group",
|
|
@@ -1536,7 +1511,7 @@ function CommandSeparator({
|
|
|
1536
1511
|
className,
|
|
1537
1512
|
...props
|
|
1538
1513
|
}) {
|
|
1539
|
-
return /* @__PURE__ */
|
|
1514
|
+
return /* @__PURE__ */ jsx16(
|
|
1540
1515
|
CommandPrimitive.Separator,
|
|
1541
1516
|
{
|
|
1542
1517
|
"data-slot": "command-separator",
|
|
@@ -1549,7 +1524,7 @@ function CommandItem({
|
|
|
1549
1524
|
className,
|
|
1550
1525
|
...props
|
|
1551
1526
|
}) {
|
|
1552
|
-
return /* @__PURE__ */
|
|
1527
|
+
return /* @__PURE__ */ jsx16(
|
|
1553
1528
|
CommandPrimitive.Item,
|
|
1554
1529
|
{
|
|
1555
1530
|
"data-slot": "command-item",
|
|
@@ -1565,7 +1540,7 @@ function CommandShortcut({
|
|
|
1565
1540
|
className,
|
|
1566
1541
|
...props
|
|
1567
1542
|
}) {
|
|
1568
|
-
return /* @__PURE__ */
|
|
1543
|
+
return /* @__PURE__ */ jsx16(
|
|
1569
1544
|
"span",
|
|
1570
1545
|
{
|
|
1571
1546
|
"data-slot": "command-shortcut",
|
|
@@ -1582,36 +1557,36 @@ function CommandShortcut({
|
|
|
1582
1557
|
import "react";
|
|
1583
1558
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
1584
1559
|
import { CheckIcon as CheckIcon2, ChevronRightIcon as ChevronRightIcon2, CircleIcon } from "lucide-react";
|
|
1585
|
-
import { jsx as
|
|
1560
|
+
import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1586
1561
|
function ContextMenu({
|
|
1587
1562
|
...props
|
|
1588
1563
|
}) {
|
|
1589
|
-
return /* @__PURE__ */
|
|
1564
|
+
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
|
1590
1565
|
}
|
|
1591
1566
|
function ContextMenuTrigger({
|
|
1592
1567
|
...props
|
|
1593
1568
|
}) {
|
|
1594
|
-
return /* @__PURE__ */
|
|
1569
|
+
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
1595
1570
|
}
|
|
1596
1571
|
function ContextMenuGroup({
|
|
1597
1572
|
...props
|
|
1598
1573
|
}) {
|
|
1599
|
-
return /* @__PURE__ */
|
|
1574
|
+
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
|
|
1600
1575
|
}
|
|
1601
1576
|
function ContextMenuPortal({
|
|
1602
1577
|
...props
|
|
1603
1578
|
}) {
|
|
1604
|
-
return /* @__PURE__ */
|
|
1579
|
+
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
|
|
1605
1580
|
}
|
|
1606
1581
|
function ContextMenuSub({
|
|
1607
1582
|
...props
|
|
1608
1583
|
}) {
|
|
1609
|
-
return /* @__PURE__ */
|
|
1584
|
+
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
1610
1585
|
}
|
|
1611
1586
|
function ContextMenuRadioGroup({
|
|
1612
1587
|
...props
|
|
1613
1588
|
}) {
|
|
1614
|
-
return /* @__PURE__ */
|
|
1589
|
+
return /* @__PURE__ */ jsx17(
|
|
1615
1590
|
ContextMenuPrimitive.RadioGroup,
|
|
1616
1591
|
{
|
|
1617
1592
|
"data-slot": "context-menu-radio-group",
|
|
@@ -1637,7 +1612,7 @@ function ContextMenuSubTrigger({
|
|
|
1637
1612
|
...props,
|
|
1638
1613
|
children: [
|
|
1639
1614
|
children,
|
|
1640
|
-
/* @__PURE__ */
|
|
1615
|
+
/* @__PURE__ */ jsx17(ChevronRightIcon2, { className: "ml-auto" })
|
|
1641
1616
|
]
|
|
1642
1617
|
}
|
|
1643
1618
|
);
|
|
@@ -1646,7 +1621,7 @@ function ContextMenuSubContent({
|
|
|
1646
1621
|
className,
|
|
1647
1622
|
...props
|
|
1648
1623
|
}) {
|
|
1649
|
-
return /* @__PURE__ */
|
|
1624
|
+
return /* @__PURE__ */ jsx17(
|
|
1650
1625
|
ContextMenuPrimitive.SubContent,
|
|
1651
1626
|
{
|
|
1652
1627
|
"data-slot": "context-menu-sub-content",
|
|
@@ -1662,7 +1637,7 @@ function ContextMenuContent({
|
|
|
1662
1637
|
className,
|
|
1663
1638
|
...props
|
|
1664
1639
|
}) {
|
|
1665
|
-
return /* @__PURE__ */
|
|
1640
|
+
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx17(
|
|
1666
1641
|
ContextMenuPrimitive.Content,
|
|
1667
1642
|
{
|
|
1668
1643
|
"data-slot": "context-menu-content",
|
|
@@ -1680,7 +1655,7 @@ function ContextMenuItem({
|
|
|
1680
1655
|
variant = "default",
|
|
1681
1656
|
...props
|
|
1682
1657
|
}) {
|
|
1683
|
-
return /* @__PURE__ */
|
|
1658
|
+
return /* @__PURE__ */ jsx17(
|
|
1684
1659
|
ContextMenuPrimitive.Item,
|
|
1685
1660
|
{
|
|
1686
1661
|
"data-slot": "context-menu-item",
|
|
@@ -1711,7 +1686,7 @@ function ContextMenuCheckboxItem({
|
|
|
1711
1686
|
checked,
|
|
1712
1687
|
...props,
|
|
1713
1688
|
children: [
|
|
1714
|
-
/* @__PURE__ */
|
|
1689
|
+
/* @__PURE__ */ jsx17("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx17(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx17(CheckIcon2, { className: "size-4" }) }) }),
|
|
1715
1690
|
children
|
|
1716
1691
|
]
|
|
1717
1692
|
}
|
|
@@ -1732,7 +1707,7 @@ function ContextMenuRadioItem({
|
|
|
1732
1707
|
),
|
|
1733
1708
|
...props,
|
|
1734
1709
|
children: [
|
|
1735
|
-
/* @__PURE__ */
|
|
1710
|
+
/* @__PURE__ */ jsx17("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx17(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx17(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
1736
1711
|
children
|
|
1737
1712
|
]
|
|
1738
1713
|
}
|
|
@@ -1743,7 +1718,7 @@ function ContextMenuLabel({
|
|
|
1743
1718
|
inset,
|
|
1744
1719
|
...props
|
|
1745
1720
|
}) {
|
|
1746
|
-
return /* @__PURE__ */
|
|
1721
|
+
return /* @__PURE__ */ jsx17(
|
|
1747
1722
|
ContextMenuPrimitive.Label,
|
|
1748
1723
|
{
|
|
1749
1724
|
"data-slot": "context-menu-label",
|
|
@@ -1760,7 +1735,7 @@ function ContextMenuSeparator({
|
|
|
1760
1735
|
className,
|
|
1761
1736
|
...props
|
|
1762
1737
|
}) {
|
|
1763
|
-
return /* @__PURE__ */
|
|
1738
|
+
return /* @__PURE__ */ jsx17(
|
|
1764
1739
|
ContextMenuPrimitive.Separator,
|
|
1765
1740
|
{
|
|
1766
1741
|
"data-slot": "context-menu-separator",
|
|
@@ -1773,7 +1748,7 @@ function ContextMenuShortcut({
|
|
|
1773
1748
|
className,
|
|
1774
1749
|
...props
|
|
1775
1750
|
}) {
|
|
1776
|
-
return /* @__PURE__ */
|
|
1751
|
+
return /* @__PURE__ */ jsx17(
|
|
1777
1752
|
"span",
|
|
1778
1753
|
{
|
|
1779
1754
|
"data-slot": "context-menu-shortcut",
|
|
@@ -1786,161 +1761,35 @@ function ContextMenuShortcut({
|
|
|
1786
1761
|
);
|
|
1787
1762
|
}
|
|
1788
1763
|
|
|
1789
|
-
// src/components/ui/dialog.tsx
|
|
1790
|
-
import "react";
|
|
1791
|
-
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
1792
|
-
import { XIcon as XIcon2 } from "lucide-react";
|
|
1793
|
-
import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1794
|
-
function Dialog2({
|
|
1795
|
-
...props
|
|
1796
|
-
}) {
|
|
1797
|
-
return /* @__PURE__ */ jsx19(DialogPrimitive2.Root, { "data-slot": "dialog", ...props });
|
|
1798
|
-
}
|
|
1799
|
-
function DialogTrigger({
|
|
1800
|
-
...props
|
|
1801
|
-
}) {
|
|
1802
|
-
return /* @__PURE__ */ jsx19(DialogPrimitive2.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
1803
|
-
}
|
|
1804
|
-
function DialogPortal2({
|
|
1805
|
-
...props
|
|
1806
|
-
}) {
|
|
1807
|
-
return /* @__PURE__ */ jsx19(DialogPrimitive2.Portal, { "data-slot": "dialog-portal", ...props });
|
|
1808
|
-
}
|
|
1809
|
-
function DialogClose({
|
|
1810
|
-
...props
|
|
1811
|
-
}) {
|
|
1812
|
-
return /* @__PURE__ */ jsx19(DialogPrimitive2.Close, { "data-slot": "dialog-close", ...props });
|
|
1813
|
-
}
|
|
1814
|
-
function DialogOverlay2({
|
|
1815
|
-
className,
|
|
1816
|
-
...props
|
|
1817
|
-
}) {
|
|
1818
|
-
return /* @__PURE__ */ jsx19(
|
|
1819
|
-
DialogPrimitive2.Overlay,
|
|
1820
|
-
{
|
|
1821
|
-
"data-slot": "dialog-overlay",
|
|
1822
|
-
className: cn(
|
|
1823
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
1824
|
-
className
|
|
1825
|
-
),
|
|
1826
|
-
...props
|
|
1827
|
-
}
|
|
1828
|
-
);
|
|
1829
|
-
}
|
|
1830
|
-
function DialogContent2({
|
|
1831
|
-
className,
|
|
1832
|
-
children,
|
|
1833
|
-
showCloseButton = true,
|
|
1834
|
-
...props
|
|
1835
|
-
}) {
|
|
1836
|
-
return /* @__PURE__ */ jsxs9(DialogPortal2, { "data-slot": "dialog-portal", children: [
|
|
1837
|
-
/* @__PURE__ */ jsx19(DialogOverlay2, {}),
|
|
1838
|
-
/* @__PURE__ */ jsxs9(
|
|
1839
|
-
DialogPrimitive2.Content,
|
|
1840
|
-
{
|
|
1841
|
-
"data-slot": "dialog-content",
|
|
1842
|
-
className: cn(
|
|
1843
|
-
"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
1844
|
-
className
|
|
1845
|
-
),
|
|
1846
|
-
...props,
|
|
1847
|
-
children: [
|
|
1848
|
-
children,
|
|
1849
|
-
showCloseButton && /* @__PURE__ */ jsxs9(
|
|
1850
|
-
DialogPrimitive2.Close,
|
|
1851
|
-
{
|
|
1852
|
-
"data-slot": "dialog-close",
|
|
1853
|
-
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1854
|
-
children: [
|
|
1855
|
-
/* @__PURE__ */ jsx19(XIcon2, {}),
|
|
1856
|
-
/* @__PURE__ */ jsx19("span", { className: "sr-only", children: "Close" })
|
|
1857
|
-
]
|
|
1858
|
-
}
|
|
1859
|
-
)
|
|
1860
|
-
]
|
|
1861
|
-
}
|
|
1862
|
-
)
|
|
1863
|
-
] });
|
|
1864
|
-
}
|
|
1865
|
-
function DialogHeader2({ className, ...props }) {
|
|
1866
|
-
return /* @__PURE__ */ jsx19(
|
|
1867
|
-
"div",
|
|
1868
|
-
{
|
|
1869
|
-
"data-slot": "dialog-header",
|
|
1870
|
-
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
1871
|
-
...props
|
|
1872
|
-
}
|
|
1873
|
-
);
|
|
1874
|
-
}
|
|
1875
|
-
function DialogFooter({ className, ...props }) {
|
|
1876
|
-
return /* @__PURE__ */ jsx19(
|
|
1877
|
-
"div",
|
|
1878
|
-
{
|
|
1879
|
-
"data-slot": "dialog-footer",
|
|
1880
|
-
className: cn(
|
|
1881
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
1882
|
-
className
|
|
1883
|
-
),
|
|
1884
|
-
...props
|
|
1885
|
-
}
|
|
1886
|
-
);
|
|
1887
|
-
}
|
|
1888
|
-
function DialogTitle2({
|
|
1889
|
-
className,
|
|
1890
|
-
...props
|
|
1891
|
-
}) {
|
|
1892
|
-
return /* @__PURE__ */ jsx19(
|
|
1893
|
-
DialogPrimitive2.Title,
|
|
1894
|
-
{
|
|
1895
|
-
"data-slot": "dialog-title",
|
|
1896
|
-
className: cn("text-lg leading-none font-semibold", className),
|
|
1897
|
-
...props
|
|
1898
|
-
}
|
|
1899
|
-
);
|
|
1900
|
-
}
|
|
1901
|
-
function DialogDescription2({
|
|
1902
|
-
className,
|
|
1903
|
-
...props
|
|
1904
|
-
}) {
|
|
1905
|
-
return /* @__PURE__ */ jsx19(
|
|
1906
|
-
DialogPrimitive2.Description,
|
|
1907
|
-
{
|
|
1908
|
-
"data-slot": "dialog-description",
|
|
1909
|
-
className: cn("text-muted-foreground text-sm", className),
|
|
1910
|
-
...props
|
|
1911
|
-
}
|
|
1912
|
-
);
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
1764
|
// src/components/ui/drawer.tsx
|
|
1916
1765
|
import "react";
|
|
1917
1766
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
1918
|
-
import { jsx as
|
|
1767
|
+
import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1919
1768
|
function Drawer({
|
|
1920
1769
|
...props
|
|
1921
1770
|
}) {
|
|
1922
|
-
return /* @__PURE__ */
|
|
1771
|
+
return /* @__PURE__ */ jsx18(DrawerPrimitive.Root, { "data-slot": "drawer", ...props });
|
|
1923
1772
|
}
|
|
1924
1773
|
function DrawerTrigger({
|
|
1925
1774
|
...props
|
|
1926
1775
|
}) {
|
|
1927
|
-
return /* @__PURE__ */
|
|
1776
|
+
return /* @__PURE__ */ jsx18(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
|
|
1928
1777
|
}
|
|
1929
1778
|
function DrawerPortal({
|
|
1930
1779
|
...props
|
|
1931
1780
|
}) {
|
|
1932
|
-
return /* @__PURE__ */
|
|
1781
|
+
return /* @__PURE__ */ jsx18(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", ...props });
|
|
1933
1782
|
}
|
|
1934
1783
|
function DrawerClose({
|
|
1935
1784
|
...props
|
|
1936
1785
|
}) {
|
|
1937
|
-
return /* @__PURE__ */
|
|
1786
|
+
return /* @__PURE__ */ jsx18(DrawerPrimitive.Close, { "data-slot": "drawer-close", ...props });
|
|
1938
1787
|
}
|
|
1939
1788
|
function DrawerOverlay({
|
|
1940
1789
|
className,
|
|
1941
1790
|
...props
|
|
1942
1791
|
}) {
|
|
1943
|
-
return /* @__PURE__ */
|
|
1792
|
+
return /* @__PURE__ */ jsx18(
|
|
1944
1793
|
DrawerPrimitive.Overlay,
|
|
1945
1794
|
{
|
|
1946
1795
|
"data-slot": "drawer-overlay",
|
|
@@ -1957,9 +1806,9 @@ function DrawerContent({
|
|
|
1957
1806
|
children,
|
|
1958
1807
|
...props
|
|
1959
1808
|
}) {
|
|
1960
|
-
return /* @__PURE__ */
|
|
1961
|
-
/* @__PURE__ */
|
|
1962
|
-
/* @__PURE__ */
|
|
1809
|
+
return /* @__PURE__ */ jsxs9(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
1810
|
+
/* @__PURE__ */ jsx18(DrawerOverlay, {}),
|
|
1811
|
+
/* @__PURE__ */ jsxs9(
|
|
1963
1812
|
DrawerPrimitive.Content,
|
|
1964
1813
|
{
|
|
1965
1814
|
"data-slot": "drawer-content",
|
|
@@ -1973,7 +1822,7 @@ function DrawerContent({
|
|
|
1973
1822
|
),
|
|
1974
1823
|
...props,
|
|
1975
1824
|
children: [
|
|
1976
|
-
/* @__PURE__ */
|
|
1825
|
+
/* @__PURE__ */ jsx18("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
1977
1826
|
children
|
|
1978
1827
|
]
|
|
1979
1828
|
}
|
|
@@ -1981,7 +1830,7 @@ function DrawerContent({
|
|
|
1981
1830
|
] });
|
|
1982
1831
|
}
|
|
1983
1832
|
function DrawerHeader({ className, ...props }) {
|
|
1984
|
-
return /* @__PURE__ */
|
|
1833
|
+
return /* @__PURE__ */ jsx18(
|
|
1985
1834
|
"div",
|
|
1986
1835
|
{
|
|
1987
1836
|
"data-slot": "drawer-header",
|
|
@@ -1994,7 +1843,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
1994
1843
|
);
|
|
1995
1844
|
}
|
|
1996
1845
|
function DrawerFooter({ className, ...props }) {
|
|
1997
|
-
return /* @__PURE__ */
|
|
1846
|
+
return /* @__PURE__ */ jsx18(
|
|
1998
1847
|
"div",
|
|
1999
1848
|
{
|
|
2000
1849
|
"data-slot": "drawer-footer",
|
|
@@ -2007,7 +1856,7 @@ function DrawerTitle({
|
|
|
2007
1856
|
className,
|
|
2008
1857
|
...props
|
|
2009
1858
|
}) {
|
|
2010
|
-
return /* @__PURE__ */
|
|
1859
|
+
return /* @__PURE__ */ jsx18(
|
|
2011
1860
|
DrawerPrimitive.Title,
|
|
2012
1861
|
{
|
|
2013
1862
|
"data-slot": "drawer-title",
|
|
@@ -2020,7 +1869,7 @@ function DrawerDescription({
|
|
|
2020
1869
|
className,
|
|
2021
1870
|
...props
|
|
2022
1871
|
}) {
|
|
2023
|
-
return /* @__PURE__ */
|
|
1872
|
+
return /* @__PURE__ */ jsx18(
|
|
2024
1873
|
DrawerPrimitive.Description,
|
|
2025
1874
|
{
|
|
2026
1875
|
"data-slot": "drawer-description",
|
|
@@ -2034,21 +1883,21 @@ function DrawerDescription({
|
|
|
2034
1883
|
import "react";
|
|
2035
1884
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2036
1885
|
import { CheckIcon as CheckIcon3, ChevronRightIcon as ChevronRightIcon3, CircleIcon as CircleIcon2 } from "lucide-react";
|
|
2037
|
-
import { jsx as
|
|
1886
|
+
import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2038
1887
|
function DropdownMenu({
|
|
2039
1888
|
...props
|
|
2040
1889
|
}) {
|
|
2041
|
-
return /* @__PURE__ */
|
|
1890
|
+
return /* @__PURE__ */ jsx19(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
2042
1891
|
}
|
|
2043
1892
|
function DropdownMenuPortal({
|
|
2044
1893
|
...props
|
|
2045
1894
|
}) {
|
|
2046
|
-
return /* @__PURE__ */
|
|
1895
|
+
return /* @__PURE__ */ jsx19(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
2047
1896
|
}
|
|
2048
1897
|
function DropdownMenuTrigger({
|
|
2049
1898
|
...props
|
|
2050
1899
|
}) {
|
|
2051
|
-
return /* @__PURE__ */
|
|
1900
|
+
return /* @__PURE__ */ jsx19(
|
|
2052
1901
|
DropdownMenuPrimitive.Trigger,
|
|
2053
1902
|
{
|
|
2054
1903
|
"data-slot": "dropdown-menu-trigger",
|
|
@@ -2061,7 +1910,7 @@ function DropdownMenuContent({
|
|
|
2061
1910
|
sideOffset = 4,
|
|
2062
1911
|
...props
|
|
2063
1912
|
}) {
|
|
2064
|
-
return /* @__PURE__ */
|
|
1913
|
+
return /* @__PURE__ */ jsx19(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx19(
|
|
2065
1914
|
DropdownMenuPrimitive.Content,
|
|
2066
1915
|
{
|
|
2067
1916
|
"data-slot": "dropdown-menu-content",
|
|
@@ -2077,7 +1926,7 @@ function DropdownMenuContent({
|
|
|
2077
1926
|
function DropdownMenuGroup({
|
|
2078
1927
|
...props
|
|
2079
1928
|
}) {
|
|
2080
|
-
return /* @__PURE__ */
|
|
1929
|
+
return /* @__PURE__ */ jsx19(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
2081
1930
|
}
|
|
2082
1931
|
function DropdownMenuItem({
|
|
2083
1932
|
className,
|
|
@@ -2085,7 +1934,7 @@ function DropdownMenuItem({
|
|
|
2085
1934
|
variant = "default",
|
|
2086
1935
|
...props
|
|
2087
1936
|
}) {
|
|
2088
|
-
return /* @__PURE__ */
|
|
1937
|
+
return /* @__PURE__ */ jsx19(
|
|
2089
1938
|
DropdownMenuPrimitive.Item,
|
|
2090
1939
|
{
|
|
2091
1940
|
"data-slot": "dropdown-menu-item",
|
|
@@ -2105,7 +1954,7 @@ function DropdownMenuCheckboxItem({
|
|
|
2105
1954
|
checked,
|
|
2106
1955
|
...props
|
|
2107
1956
|
}) {
|
|
2108
|
-
return /* @__PURE__ */
|
|
1957
|
+
return /* @__PURE__ */ jsxs10(
|
|
2109
1958
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2110
1959
|
{
|
|
2111
1960
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -2116,7 +1965,7 @@ function DropdownMenuCheckboxItem({
|
|
|
2116
1965
|
checked,
|
|
2117
1966
|
...props,
|
|
2118
1967
|
children: [
|
|
2119
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ jsx19("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx19(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx19(CheckIcon3, { className: "size-4" }) }) }),
|
|
2120
1969
|
children
|
|
2121
1970
|
]
|
|
2122
1971
|
}
|
|
@@ -2125,7 +1974,7 @@ function DropdownMenuCheckboxItem({
|
|
|
2125
1974
|
function DropdownMenuRadioGroup({
|
|
2126
1975
|
...props
|
|
2127
1976
|
}) {
|
|
2128
|
-
return /* @__PURE__ */
|
|
1977
|
+
return /* @__PURE__ */ jsx19(
|
|
2129
1978
|
DropdownMenuPrimitive.RadioGroup,
|
|
2130
1979
|
{
|
|
2131
1980
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -2138,7 +1987,7 @@ function DropdownMenuRadioItem({
|
|
|
2138
1987
|
children,
|
|
2139
1988
|
...props
|
|
2140
1989
|
}) {
|
|
2141
|
-
return /* @__PURE__ */
|
|
1990
|
+
return /* @__PURE__ */ jsxs10(
|
|
2142
1991
|
DropdownMenuPrimitive.RadioItem,
|
|
2143
1992
|
{
|
|
2144
1993
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -2148,7 +1997,7 @@ function DropdownMenuRadioItem({
|
|
|
2148
1997
|
),
|
|
2149
1998
|
...props,
|
|
2150
1999
|
children: [
|
|
2151
|
-
/* @__PURE__ */
|
|
2000
|
+
/* @__PURE__ */ jsx19("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx19(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx19(CircleIcon2, { className: "size-2 fill-current" }) }) }),
|
|
2152
2001
|
children
|
|
2153
2002
|
]
|
|
2154
2003
|
}
|
|
@@ -2159,7 +2008,7 @@ function DropdownMenuLabel({
|
|
|
2159
2008
|
inset,
|
|
2160
2009
|
...props
|
|
2161
2010
|
}) {
|
|
2162
|
-
return /* @__PURE__ */
|
|
2011
|
+
return /* @__PURE__ */ jsx19(
|
|
2163
2012
|
DropdownMenuPrimitive.Label,
|
|
2164
2013
|
{
|
|
2165
2014
|
"data-slot": "dropdown-menu-label",
|
|
@@ -2176,7 +2025,7 @@ function DropdownMenuSeparator({
|
|
|
2176
2025
|
className,
|
|
2177
2026
|
...props
|
|
2178
2027
|
}) {
|
|
2179
|
-
return /* @__PURE__ */
|
|
2028
|
+
return /* @__PURE__ */ jsx19(
|
|
2180
2029
|
DropdownMenuPrimitive.Separator,
|
|
2181
2030
|
{
|
|
2182
2031
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -2189,7 +2038,7 @@ function DropdownMenuShortcut({
|
|
|
2189
2038
|
className,
|
|
2190
2039
|
...props
|
|
2191
2040
|
}) {
|
|
2192
|
-
return /* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ jsx19(
|
|
2193
2042
|
"span",
|
|
2194
2043
|
{
|
|
2195
2044
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -2204,7 +2053,7 @@ function DropdownMenuShortcut({
|
|
|
2204
2053
|
function DropdownMenuSub({
|
|
2205
2054
|
...props
|
|
2206
2055
|
}) {
|
|
2207
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsx19(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
2208
2057
|
}
|
|
2209
2058
|
function DropdownMenuSubTrigger({
|
|
2210
2059
|
className,
|
|
@@ -2212,7 +2061,7 @@ function DropdownMenuSubTrigger({
|
|
|
2212
2061
|
children,
|
|
2213
2062
|
...props
|
|
2214
2063
|
}) {
|
|
2215
|
-
return /* @__PURE__ */
|
|
2064
|
+
return /* @__PURE__ */ jsxs10(
|
|
2216
2065
|
DropdownMenuPrimitive.SubTrigger,
|
|
2217
2066
|
{
|
|
2218
2067
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -2224,7 +2073,7 @@ function DropdownMenuSubTrigger({
|
|
|
2224
2073
|
...props,
|
|
2225
2074
|
children: [
|
|
2226
2075
|
children,
|
|
2227
|
-
/* @__PURE__ */
|
|
2076
|
+
/* @__PURE__ */ jsx19(ChevronRightIcon3, { className: "ml-auto size-4" })
|
|
2228
2077
|
]
|
|
2229
2078
|
}
|
|
2230
2079
|
);
|
|
@@ -2233,7 +2082,7 @@ function DropdownMenuSubContent({
|
|
|
2233
2082
|
className,
|
|
2234
2083
|
...props
|
|
2235
2084
|
}) {
|
|
2236
|
-
return /* @__PURE__ */
|
|
2085
|
+
return /* @__PURE__ */ jsx19(
|
|
2237
2086
|
DropdownMenuPrimitive.SubContent,
|
|
2238
2087
|
{
|
|
2239
2088
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -2247,9 +2096,9 @@ function DropdownMenuSubContent({
|
|
|
2247
2096
|
}
|
|
2248
2097
|
|
|
2249
2098
|
// src/components/ui/form.tsx
|
|
2250
|
-
import * as
|
|
2099
|
+
import * as React19 from "react";
|
|
2251
2100
|
import "@radix-ui/react-label";
|
|
2252
|
-
import { Slot as
|
|
2101
|
+
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
2253
2102
|
import {
|
|
2254
2103
|
Controller,
|
|
2255
2104
|
FormProvider,
|
|
@@ -2257,15 +2106,15 @@ import {
|
|
|
2257
2106
|
useFormState
|
|
2258
2107
|
} from "react-hook-form";
|
|
2259
2108
|
|
|
2260
|
-
// components/ui/label.tsx
|
|
2109
|
+
// src/components/ui/label.tsx
|
|
2261
2110
|
import "react";
|
|
2262
2111
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2263
|
-
import { jsx as
|
|
2112
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2264
2113
|
function Label3({
|
|
2265
2114
|
className,
|
|
2266
2115
|
...props
|
|
2267
2116
|
}) {
|
|
2268
|
-
return /* @__PURE__ */
|
|
2117
|
+
return /* @__PURE__ */ jsx20(
|
|
2269
2118
|
LabelPrimitive.Root,
|
|
2270
2119
|
{
|
|
2271
2120
|
"data-slot": "label",
|
|
@@ -2279,19 +2128,19 @@ function Label3({
|
|
|
2279
2128
|
}
|
|
2280
2129
|
|
|
2281
2130
|
// src/components/ui/form.tsx
|
|
2282
|
-
import { jsx as
|
|
2131
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2283
2132
|
var Form = FormProvider;
|
|
2284
|
-
var FormFieldContext =
|
|
2133
|
+
var FormFieldContext = React19.createContext(
|
|
2285
2134
|
{}
|
|
2286
2135
|
);
|
|
2287
2136
|
var FormField = ({
|
|
2288
2137
|
...props
|
|
2289
2138
|
}) => {
|
|
2290
|
-
return /* @__PURE__ */
|
|
2139
|
+
return /* @__PURE__ */ jsx21(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx21(Controller, { ...props }) });
|
|
2291
2140
|
};
|
|
2292
2141
|
var useFormField = () => {
|
|
2293
|
-
const fieldContext =
|
|
2294
|
-
const itemContext =
|
|
2142
|
+
const fieldContext = React19.useContext(FormFieldContext);
|
|
2143
|
+
const itemContext = React19.useContext(FormItemContext);
|
|
2295
2144
|
const { getFieldState } = useFormContext();
|
|
2296
2145
|
const formState = useFormState({ name: fieldContext.name });
|
|
2297
2146
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -2308,12 +2157,12 @@ var useFormField = () => {
|
|
|
2308
2157
|
...fieldState
|
|
2309
2158
|
};
|
|
2310
2159
|
};
|
|
2311
|
-
var FormItemContext =
|
|
2160
|
+
var FormItemContext = React19.createContext(
|
|
2312
2161
|
{}
|
|
2313
2162
|
);
|
|
2314
2163
|
function FormItem({ className, ...props }) {
|
|
2315
|
-
const id =
|
|
2316
|
-
return /* @__PURE__ */
|
|
2164
|
+
const id = React19.useId();
|
|
2165
|
+
return /* @__PURE__ */ jsx21(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx21(
|
|
2317
2166
|
"div",
|
|
2318
2167
|
{
|
|
2319
2168
|
"data-slot": "form-item",
|
|
@@ -2327,7 +2176,7 @@ function FormLabel({
|
|
|
2327
2176
|
...props
|
|
2328
2177
|
}) {
|
|
2329
2178
|
const { error, formItemId } = useFormField();
|
|
2330
|
-
return /* @__PURE__ */
|
|
2179
|
+
return /* @__PURE__ */ jsx21(
|
|
2331
2180
|
Label3,
|
|
2332
2181
|
{
|
|
2333
2182
|
"data-slot": "form-label",
|
|
@@ -2340,8 +2189,8 @@ function FormLabel({
|
|
|
2340
2189
|
}
|
|
2341
2190
|
function FormControl({ ...props }) {
|
|
2342
2191
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2343
|
-
return /* @__PURE__ */
|
|
2344
|
-
|
|
2192
|
+
return /* @__PURE__ */ jsx21(
|
|
2193
|
+
Slot4,
|
|
2345
2194
|
{
|
|
2346
2195
|
"data-slot": "form-control",
|
|
2347
2196
|
id: formItemId,
|
|
@@ -2353,7 +2202,7 @@ function FormControl({ ...props }) {
|
|
|
2353
2202
|
}
|
|
2354
2203
|
function FormDescription({ className, ...props }) {
|
|
2355
2204
|
const { formDescriptionId } = useFormField();
|
|
2356
|
-
return /* @__PURE__ */
|
|
2205
|
+
return /* @__PURE__ */ jsx21(
|
|
2357
2206
|
"p",
|
|
2358
2207
|
{
|
|
2359
2208
|
"data-slot": "form-description",
|
|
@@ -2369,7 +2218,7 @@ function FormMessage({ className, ...props }) {
|
|
|
2369
2218
|
if (!body) {
|
|
2370
2219
|
return null;
|
|
2371
2220
|
}
|
|
2372
|
-
return /* @__PURE__ */
|
|
2221
|
+
return /* @__PURE__ */ jsx21(
|
|
2373
2222
|
"p",
|
|
2374
2223
|
{
|
|
2375
2224
|
"data-slot": "form-message",
|
|
@@ -2384,16 +2233,16 @@ function FormMessage({ className, ...props }) {
|
|
|
2384
2233
|
// src/components/ui/hover-card.tsx
|
|
2385
2234
|
import "react";
|
|
2386
2235
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
2387
|
-
import { jsx as
|
|
2236
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2388
2237
|
function HoverCard({
|
|
2389
2238
|
...props
|
|
2390
2239
|
}) {
|
|
2391
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ jsx22(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
|
|
2392
2241
|
}
|
|
2393
2242
|
function HoverCardTrigger({
|
|
2394
2243
|
...props
|
|
2395
2244
|
}) {
|
|
2396
|
-
return /* @__PURE__ */
|
|
2245
|
+
return /* @__PURE__ */ jsx22(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
|
|
2397
2246
|
}
|
|
2398
2247
|
function HoverCardContent({
|
|
2399
2248
|
className,
|
|
@@ -2401,7 +2250,7 @@ function HoverCardContent({
|
|
|
2401
2250
|
sideOffset = 4,
|
|
2402
2251
|
...props
|
|
2403
2252
|
}) {
|
|
2404
|
-
return /* @__PURE__ */
|
|
2253
|
+
return /* @__PURE__ */ jsx22(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx22(
|
|
2405
2254
|
HoverCardPrimitive.Content,
|
|
2406
2255
|
{
|
|
2407
2256
|
"data-slot": "hover-card-content",
|
|
@@ -2418,9 +2267,9 @@ function HoverCardContent({
|
|
|
2418
2267
|
|
|
2419
2268
|
// src/components/ui/input.tsx
|
|
2420
2269
|
import "react";
|
|
2421
|
-
import { jsx as
|
|
2270
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2422
2271
|
function Input({ className, type, ...props }) {
|
|
2423
|
-
return /* @__PURE__ */
|
|
2272
|
+
return /* @__PURE__ */ jsx23(
|
|
2424
2273
|
"input",
|
|
2425
2274
|
{
|
|
2426
2275
|
type,
|
|
@@ -2437,16 +2286,16 @@ function Input({ className, type, ...props }) {
|
|
|
2437
2286
|
}
|
|
2438
2287
|
|
|
2439
2288
|
// src/components/ui/input-otp.tsx
|
|
2440
|
-
import * as
|
|
2289
|
+
import * as React22 from "react";
|
|
2441
2290
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
2442
2291
|
import { MinusIcon } from "lucide-react";
|
|
2443
|
-
import { jsx as
|
|
2292
|
+
import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2444
2293
|
function InputOTP({
|
|
2445
2294
|
className,
|
|
2446
2295
|
containerClassName,
|
|
2447
2296
|
...props
|
|
2448
2297
|
}) {
|
|
2449
|
-
return /* @__PURE__ */
|
|
2298
|
+
return /* @__PURE__ */ jsx24(
|
|
2450
2299
|
OTPInput,
|
|
2451
2300
|
{
|
|
2452
2301
|
"data-slot": "input-otp",
|
|
@@ -2460,7 +2309,7 @@ function InputOTP({
|
|
|
2460
2309
|
);
|
|
2461
2310
|
}
|
|
2462
2311
|
function InputOTPGroup({ className, ...props }) {
|
|
2463
|
-
return /* @__PURE__ */
|
|
2312
|
+
return /* @__PURE__ */ jsx24(
|
|
2464
2313
|
"div",
|
|
2465
2314
|
{
|
|
2466
2315
|
"data-slot": "input-otp-group",
|
|
@@ -2474,9 +2323,9 @@ function InputOTPSlot({
|
|
|
2474
2323
|
className,
|
|
2475
2324
|
...props
|
|
2476
2325
|
}) {
|
|
2477
|
-
const inputOTPContext =
|
|
2326
|
+
const inputOTPContext = React22.useContext(OTPInputContext);
|
|
2478
2327
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
2479
|
-
return /* @__PURE__ */
|
|
2328
|
+
return /* @__PURE__ */ jsxs11(
|
|
2480
2329
|
"div",
|
|
2481
2330
|
{
|
|
2482
2331
|
"data-slot": "input-otp-slot",
|
|
@@ -2488,46 +2337,25 @@ function InputOTPSlot({
|
|
|
2488
2337
|
...props,
|
|
2489
2338
|
children: [
|
|
2490
2339
|
char,
|
|
2491
|
-
hasFakeCaret && /* @__PURE__ */
|
|
2340
|
+
hasFakeCaret && /* @__PURE__ */ jsx24("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx24("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
|
|
2492
2341
|
]
|
|
2493
2342
|
}
|
|
2494
2343
|
);
|
|
2495
2344
|
}
|
|
2496
2345
|
function InputOTPSeparator({ ...props }) {
|
|
2497
|
-
return /* @__PURE__ */
|
|
2498
|
-
}
|
|
2499
|
-
|
|
2500
|
-
// src/components/ui/label.tsx
|
|
2501
|
-
import "react";
|
|
2502
|
-
import * as LabelPrimitive3 from "@radix-ui/react-label";
|
|
2503
|
-
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2504
|
-
function Label4({
|
|
2505
|
-
className,
|
|
2506
|
-
...props
|
|
2507
|
-
}) {
|
|
2508
|
-
return /* @__PURE__ */ jsx27(
|
|
2509
|
-
LabelPrimitive3.Root,
|
|
2510
|
-
{
|
|
2511
|
-
"data-slot": "label",
|
|
2512
|
-
className: cn(
|
|
2513
|
-
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
2514
|
-
className
|
|
2515
|
-
),
|
|
2516
|
-
...props
|
|
2517
|
-
}
|
|
2518
|
-
);
|
|
2346
|
+
return /* @__PURE__ */ jsx24("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx24(MinusIcon, {}) });
|
|
2519
2347
|
}
|
|
2520
2348
|
|
|
2521
2349
|
// src/components/ui/menubar.tsx
|
|
2522
2350
|
import "react";
|
|
2523
2351
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
2524
2352
|
import { CheckIcon as CheckIcon4, ChevronRightIcon as ChevronRightIcon4, CircleIcon as CircleIcon3 } from "lucide-react";
|
|
2525
|
-
import { jsx as
|
|
2353
|
+
import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2526
2354
|
function Menubar({
|
|
2527
2355
|
className,
|
|
2528
2356
|
...props
|
|
2529
2357
|
}) {
|
|
2530
|
-
return /* @__PURE__ */
|
|
2358
|
+
return /* @__PURE__ */ jsx25(
|
|
2531
2359
|
MenubarPrimitive.Root,
|
|
2532
2360
|
{
|
|
2533
2361
|
"data-slot": "menubar",
|
|
@@ -2542,28 +2370,28 @@ function Menubar({
|
|
|
2542
2370
|
function MenubarMenu({
|
|
2543
2371
|
...props
|
|
2544
2372
|
}) {
|
|
2545
|
-
return /* @__PURE__ */
|
|
2373
|
+
return /* @__PURE__ */ jsx25(MenubarPrimitive.Menu, { "data-slot": "menubar-menu", ...props });
|
|
2546
2374
|
}
|
|
2547
2375
|
function MenubarGroup({
|
|
2548
2376
|
...props
|
|
2549
2377
|
}) {
|
|
2550
|
-
return /* @__PURE__ */
|
|
2378
|
+
return /* @__PURE__ */ jsx25(MenubarPrimitive.Group, { "data-slot": "menubar-group", ...props });
|
|
2551
2379
|
}
|
|
2552
2380
|
function MenubarPortal({
|
|
2553
2381
|
...props
|
|
2554
2382
|
}) {
|
|
2555
|
-
return /* @__PURE__ */
|
|
2383
|
+
return /* @__PURE__ */ jsx25(MenubarPrimitive.Portal, { "data-slot": "menubar-portal", ...props });
|
|
2556
2384
|
}
|
|
2557
2385
|
function MenubarRadioGroup({
|
|
2558
2386
|
...props
|
|
2559
2387
|
}) {
|
|
2560
|
-
return /* @__PURE__ */
|
|
2388
|
+
return /* @__PURE__ */ jsx25(MenubarPrimitive.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
|
|
2561
2389
|
}
|
|
2562
2390
|
function MenubarTrigger({
|
|
2563
2391
|
className,
|
|
2564
2392
|
...props
|
|
2565
2393
|
}) {
|
|
2566
|
-
return /* @__PURE__ */
|
|
2394
|
+
return /* @__PURE__ */ jsx25(
|
|
2567
2395
|
MenubarPrimitive.Trigger,
|
|
2568
2396
|
{
|
|
2569
2397
|
"data-slot": "menubar-trigger",
|
|
@@ -2582,7 +2410,7 @@ function MenubarContent({
|
|
|
2582
2410
|
sideOffset = 8,
|
|
2583
2411
|
...props
|
|
2584
2412
|
}) {
|
|
2585
|
-
return /* @__PURE__ */
|
|
2413
|
+
return /* @__PURE__ */ jsx25(MenubarPortal, { children: /* @__PURE__ */ jsx25(
|
|
2586
2414
|
MenubarPrimitive.Content,
|
|
2587
2415
|
{
|
|
2588
2416
|
"data-slot": "menubar-content",
|
|
@@ -2603,7 +2431,7 @@ function MenubarItem({
|
|
|
2603
2431
|
variant = "default",
|
|
2604
2432
|
...props
|
|
2605
2433
|
}) {
|
|
2606
|
-
return /* @__PURE__ */
|
|
2434
|
+
return /* @__PURE__ */ jsx25(
|
|
2607
2435
|
MenubarPrimitive.Item,
|
|
2608
2436
|
{
|
|
2609
2437
|
"data-slot": "menubar-item",
|
|
@@ -2623,7 +2451,7 @@ function MenubarCheckboxItem({
|
|
|
2623
2451
|
checked,
|
|
2624
2452
|
...props
|
|
2625
2453
|
}) {
|
|
2626
|
-
return /* @__PURE__ */
|
|
2454
|
+
return /* @__PURE__ */ jsxs12(
|
|
2627
2455
|
MenubarPrimitive.CheckboxItem,
|
|
2628
2456
|
{
|
|
2629
2457
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -2634,7 +2462,7 @@ function MenubarCheckboxItem({
|
|
|
2634
2462
|
checked,
|
|
2635
2463
|
...props,
|
|
2636
2464
|
children: [
|
|
2637
|
-
/* @__PURE__ */
|
|
2465
|
+
/* @__PURE__ */ jsx25("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(CheckIcon4, { className: "size-4" }) }) }),
|
|
2638
2466
|
children
|
|
2639
2467
|
]
|
|
2640
2468
|
}
|
|
@@ -2645,7 +2473,7 @@ function MenubarRadioItem({
|
|
|
2645
2473
|
children,
|
|
2646
2474
|
...props
|
|
2647
2475
|
}) {
|
|
2648
|
-
return /* @__PURE__ */
|
|
2476
|
+
return /* @__PURE__ */ jsxs12(
|
|
2649
2477
|
MenubarPrimitive.RadioItem,
|
|
2650
2478
|
{
|
|
2651
2479
|
"data-slot": "menubar-radio-item",
|
|
@@ -2655,7 +2483,7 @@ function MenubarRadioItem({
|
|
|
2655
2483
|
),
|
|
2656
2484
|
...props,
|
|
2657
2485
|
children: [
|
|
2658
|
-
/* @__PURE__ */
|
|
2486
|
+
/* @__PURE__ */ jsx25("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(CircleIcon3, { className: "size-2 fill-current" }) }) }),
|
|
2659
2487
|
children
|
|
2660
2488
|
]
|
|
2661
2489
|
}
|
|
@@ -2666,7 +2494,7 @@ function MenubarLabel({
|
|
|
2666
2494
|
inset,
|
|
2667
2495
|
...props
|
|
2668
2496
|
}) {
|
|
2669
|
-
return /* @__PURE__ */
|
|
2497
|
+
return /* @__PURE__ */ jsx25(
|
|
2670
2498
|
MenubarPrimitive.Label,
|
|
2671
2499
|
{
|
|
2672
2500
|
"data-slot": "menubar-label",
|
|
@@ -2683,7 +2511,7 @@ function MenubarSeparator({
|
|
|
2683
2511
|
className,
|
|
2684
2512
|
...props
|
|
2685
2513
|
}) {
|
|
2686
|
-
return /* @__PURE__ */
|
|
2514
|
+
return /* @__PURE__ */ jsx25(
|
|
2687
2515
|
MenubarPrimitive.Separator,
|
|
2688
2516
|
{
|
|
2689
2517
|
"data-slot": "menubar-separator",
|
|
@@ -2696,7 +2524,7 @@ function MenubarShortcut({
|
|
|
2696
2524
|
className,
|
|
2697
2525
|
...props
|
|
2698
2526
|
}) {
|
|
2699
|
-
return /* @__PURE__ */
|
|
2527
|
+
return /* @__PURE__ */ jsx25(
|
|
2700
2528
|
"span",
|
|
2701
2529
|
{
|
|
2702
2530
|
"data-slot": "menubar-shortcut",
|
|
@@ -2711,7 +2539,7 @@ function MenubarShortcut({
|
|
|
2711
2539
|
function MenubarSub({
|
|
2712
2540
|
...props
|
|
2713
2541
|
}) {
|
|
2714
|
-
return /* @__PURE__ */
|
|
2542
|
+
return /* @__PURE__ */ jsx25(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
2715
2543
|
}
|
|
2716
2544
|
function MenubarSubTrigger({
|
|
2717
2545
|
className,
|
|
@@ -2719,7 +2547,7 @@ function MenubarSubTrigger({
|
|
|
2719
2547
|
children,
|
|
2720
2548
|
...props
|
|
2721
2549
|
}) {
|
|
2722
|
-
return /* @__PURE__ */
|
|
2550
|
+
return /* @__PURE__ */ jsxs12(
|
|
2723
2551
|
MenubarPrimitive.SubTrigger,
|
|
2724
2552
|
{
|
|
2725
2553
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -2731,7 +2559,7 @@ function MenubarSubTrigger({
|
|
|
2731
2559
|
...props,
|
|
2732
2560
|
children: [
|
|
2733
2561
|
children,
|
|
2734
|
-
/* @__PURE__ */
|
|
2562
|
+
/* @__PURE__ */ jsx25(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
|
|
2735
2563
|
]
|
|
2736
2564
|
}
|
|
2737
2565
|
);
|
|
@@ -2740,7 +2568,7 @@ function MenubarSubContent({
|
|
|
2740
2568
|
className,
|
|
2741
2569
|
...props
|
|
2742
2570
|
}) {
|
|
2743
|
-
return /* @__PURE__ */
|
|
2571
|
+
return /* @__PURE__ */ jsx25(
|
|
2744
2572
|
MenubarPrimitive.SubContent,
|
|
2745
2573
|
{
|
|
2746
2574
|
"data-slot": "menubar-sub-content",
|
|
@@ -2756,16 +2584,16 @@ function MenubarSubContent({
|
|
|
2756
2584
|
// src/components/ui/navigation-menu.tsx
|
|
2757
2585
|
import "react";
|
|
2758
2586
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
2759
|
-
import { cva as
|
|
2587
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
2760
2588
|
import { ChevronDownIcon as ChevronDownIcon3 } from "lucide-react";
|
|
2761
|
-
import { jsx as
|
|
2589
|
+
import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2762
2590
|
function NavigationMenu({
|
|
2763
2591
|
className,
|
|
2764
2592
|
children,
|
|
2765
2593
|
viewport = true,
|
|
2766
2594
|
...props
|
|
2767
2595
|
}) {
|
|
2768
|
-
return /* @__PURE__ */
|
|
2596
|
+
return /* @__PURE__ */ jsxs13(
|
|
2769
2597
|
NavigationMenuPrimitive.Root,
|
|
2770
2598
|
{
|
|
2771
2599
|
"data-slot": "navigation-menu",
|
|
@@ -2777,7 +2605,7 @@ function NavigationMenu({
|
|
|
2777
2605
|
...props,
|
|
2778
2606
|
children: [
|
|
2779
2607
|
children,
|
|
2780
|
-
viewport && /* @__PURE__ */
|
|
2608
|
+
viewport && /* @__PURE__ */ jsx26(NavigationMenuViewport, {})
|
|
2781
2609
|
]
|
|
2782
2610
|
}
|
|
2783
2611
|
);
|
|
@@ -2786,7 +2614,7 @@ function NavigationMenuList({
|
|
|
2786
2614
|
className,
|
|
2787
2615
|
...props
|
|
2788
2616
|
}) {
|
|
2789
|
-
return /* @__PURE__ */
|
|
2617
|
+
return /* @__PURE__ */ jsx26(
|
|
2790
2618
|
NavigationMenuPrimitive.List,
|
|
2791
2619
|
{
|
|
2792
2620
|
"data-slot": "navigation-menu-list",
|
|
@@ -2802,7 +2630,7 @@ function NavigationMenuItem({
|
|
|
2802
2630
|
className,
|
|
2803
2631
|
...props
|
|
2804
2632
|
}) {
|
|
2805
|
-
return /* @__PURE__ */
|
|
2633
|
+
return /* @__PURE__ */ jsx26(
|
|
2806
2634
|
NavigationMenuPrimitive.Item,
|
|
2807
2635
|
{
|
|
2808
2636
|
"data-slot": "navigation-menu-item",
|
|
@@ -2811,7 +2639,7 @@ function NavigationMenuItem({
|
|
|
2811
2639
|
}
|
|
2812
2640
|
);
|
|
2813
2641
|
}
|
|
2814
|
-
var navigationMenuTriggerStyle =
|
|
2642
|
+
var navigationMenuTriggerStyle = cva4(
|
|
2815
2643
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
2816
2644
|
);
|
|
2817
2645
|
function NavigationMenuTrigger({
|
|
@@ -2819,7 +2647,7 @@ function NavigationMenuTrigger({
|
|
|
2819
2647
|
children,
|
|
2820
2648
|
...props
|
|
2821
2649
|
}) {
|
|
2822
|
-
return /* @__PURE__ */
|
|
2650
|
+
return /* @__PURE__ */ jsxs13(
|
|
2823
2651
|
NavigationMenuPrimitive.Trigger,
|
|
2824
2652
|
{
|
|
2825
2653
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -2828,7 +2656,7 @@ function NavigationMenuTrigger({
|
|
|
2828
2656
|
children: [
|
|
2829
2657
|
children,
|
|
2830
2658
|
" ",
|
|
2831
|
-
/* @__PURE__ */
|
|
2659
|
+
/* @__PURE__ */ jsx26(
|
|
2832
2660
|
ChevronDownIcon3,
|
|
2833
2661
|
{
|
|
2834
2662
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -2843,7 +2671,7 @@ function NavigationMenuContent({
|
|
|
2843
2671
|
className,
|
|
2844
2672
|
...props
|
|
2845
2673
|
}) {
|
|
2846
|
-
return /* @__PURE__ */
|
|
2674
|
+
return /* @__PURE__ */ jsx26(
|
|
2847
2675
|
NavigationMenuPrimitive.Content,
|
|
2848
2676
|
{
|
|
2849
2677
|
"data-slot": "navigation-menu-content",
|
|
@@ -2860,13 +2688,13 @@ function NavigationMenuViewport({
|
|
|
2860
2688
|
className,
|
|
2861
2689
|
...props
|
|
2862
2690
|
}) {
|
|
2863
|
-
return /* @__PURE__ */
|
|
2691
|
+
return /* @__PURE__ */ jsx26(
|
|
2864
2692
|
"div",
|
|
2865
2693
|
{
|
|
2866
2694
|
className: cn(
|
|
2867
2695
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
2868
2696
|
),
|
|
2869
|
-
children: /* @__PURE__ */
|
|
2697
|
+
children: /* @__PURE__ */ jsx26(
|
|
2870
2698
|
NavigationMenuPrimitive.Viewport,
|
|
2871
2699
|
{
|
|
2872
2700
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -2884,7 +2712,7 @@ function NavigationMenuLink({
|
|
|
2884
2712
|
className,
|
|
2885
2713
|
...props
|
|
2886
2714
|
}) {
|
|
2887
|
-
return /* @__PURE__ */
|
|
2715
|
+
return /* @__PURE__ */ jsx26(
|
|
2888
2716
|
NavigationMenuPrimitive.Link,
|
|
2889
2717
|
{
|
|
2890
2718
|
"data-slot": "navigation-menu-link",
|
|
@@ -2900,7 +2728,7 @@ function NavigationMenuIndicator({
|
|
|
2900
2728
|
className,
|
|
2901
2729
|
...props
|
|
2902
2730
|
}) {
|
|
2903
|
-
return /* @__PURE__ */
|
|
2731
|
+
return /* @__PURE__ */ jsx26(
|
|
2904
2732
|
NavigationMenuPrimitive.Indicator,
|
|
2905
2733
|
{
|
|
2906
2734
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -2909,7 +2737,7 @@ function NavigationMenuIndicator({
|
|
|
2909
2737
|
className
|
|
2910
2738
|
),
|
|
2911
2739
|
...props,
|
|
2912
|
-
children: /* @__PURE__ */
|
|
2740
|
+
children: /* @__PURE__ */ jsx26("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
2913
2741
|
}
|
|
2914
2742
|
);
|
|
2915
2743
|
}
|
|
@@ -2921,9 +2749,9 @@ import {
|
|
|
2921
2749
|
ChevronRightIcon as ChevronRightIcon5,
|
|
2922
2750
|
MoreHorizontalIcon
|
|
2923
2751
|
} from "lucide-react";
|
|
2924
|
-
import { jsx as
|
|
2752
|
+
import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2925
2753
|
function Pagination({ className, ...props }) {
|
|
2926
|
-
return /* @__PURE__ */
|
|
2754
|
+
return /* @__PURE__ */ jsx27(
|
|
2927
2755
|
"nav",
|
|
2928
2756
|
{
|
|
2929
2757
|
role: "navigation",
|
|
@@ -2938,7 +2766,7 @@ function PaginationContent({
|
|
|
2938
2766
|
className,
|
|
2939
2767
|
...props
|
|
2940
2768
|
}) {
|
|
2941
|
-
return /* @__PURE__ */
|
|
2769
|
+
return /* @__PURE__ */ jsx27(
|
|
2942
2770
|
"ul",
|
|
2943
2771
|
{
|
|
2944
2772
|
"data-slot": "pagination-content",
|
|
@@ -2948,7 +2776,7 @@ function PaginationContent({
|
|
|
2948
2776
|
);
|
|
2949
2777
|
}
|
|
2950
2778
|
function PaginationItem({ ...props }) {
|
|
2951
|
-
return /* @__PURE__ */
|
|
2779
|
+
return /* @__PURE__ */ jsx27("li", { "data-slot": "pagination-item", ...props });
|
|
2952
2780
|
}
|
|
2953
2781
|
function PaginationLink({
|
|
2954
2782
|
className,
|
|
@@ -2956,7 +2784,7 @@ function PaginationLink({
|
|
|
2956
2784
|
size = "icon",
|
|
2957
2785
|
...props
|
|
2958
2786
|
}) {
|
|
2959
|
-
return /* @__PURE__ */
|
|
2787
|
+
return /* @__PURE__ */ jsx27(
|
|
2960
2788
|
"a",
|
|
2961
2789
|
{
|
|
2962
2790
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -2977,7 +2805,7 @@ function PaginationPrevious({
|
|
|
2977
2805
|
className,
|
|
2978
2806
|
...props
|
|
2979
2807
|
}) {
|
|
2980
|
-
return /* @__PURE__ */
|
|
2808
|
+
return /* @__PURE__ */ jsxs14(
|
|
2981
2809
|
PaginationLink,
|
|
2982
2810
|
{
|
|
2983
2811
|
"aria-label": "Go to previous page",
|
|
@@ -2985,8 +2813,8 @@ function PaginationPrevious({
|
|
|
2985
2813
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
2986
2814
|
...props,
|
|
2987
2815
|
children: [
|
|
2988
|
-
/* @__PURE__ */
|
|
2989
|
-
/* @__PURE__ */
|
|
2816
|
+
/* @__PURE__ */ jsx27(ChevronLeftIcon2, {}),
|
|
2817
|
+
/* @__PURE__ */ jsx27("span", { className: "hidden sm:block", children: "Previous" })
|
|
2990
2818
|
]
|
|
2991
2819
|
}
|
|
2992
2820
|
);
|
|
@@ -2995,7 +2823,7 @@ function PaginationNext({
|
|
|
2995
2823
|
className,
|
|
2996
2824
|
...props
|
|
2997
2825
|
}) {
|
|
2998
|
-
return /* @__PURE__ */
|
|
2826
|
+
return /* @__PURE__ */ jsxs14(
|
|
2999
2827
|
PaginationLink,
|
|
3000
2828
|
{
|
|
3001
2829
|
"aria-label": "Go to next page",
|
|
@@ -3003,8 +2831,8 @@ function PaginationNext({
|
|
|
3003
2831
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
3004
2832
|
...props,
|
|
3005
2833
|
children: [
|
|
3006
|
-
/* @__PURE__ */
|
|
3007
|
-
/* @__PURE__ */
|
|
2834
|
+
/* @__PURE__ */ jsx27("span", { className: "hidden sm:block", children: "Next" }),
|
|
2835
|
+
/* @__PURE__ */ jsx27(ChevronRightIcon5, {})
|
|
3008
2836
|
]
|
|
3009
2837
|
}
|
|
3010
2838
|
);
|
|
@@ -3013,7 +2841,7 @@ function PaginationEllipsis({
|
|
|
3013
2841
|
className,
|
|
3014
2842
|
...props
|
|
3015
2843
|
}) {
|
|
3016
|
-
return /* @__PURE__ */
|
|
2844
|
+
return /* @__PURE__ */ jsxs14(
|
|
3017
2845
|
"span",
|
|
3018
2846
|
{
|
|
3019
2847
|
"aria-hidden": true,
|
|
@@ -3021,8 +2849,8 @@ function PaginationEllipsis({
|
|
|
3021
2849
|
className: cn("flex size-9 items-center justify-center", className),
|
|
3022
2850
|
...props,
|
|
3023
2851
|
children: [
|
|
3024
|
-
/* @__PURE__ */
|
|
3025
|
-
/* @__PURE__ */
|
|
2852
|
+
/* @__PURE__ */ jsx27(MoreHorizontalIcon, { className: "size-4" }),
|
|
2853
|
+
/* @__PURE__ */ jsx27("span", { className: "sr-only", children: "More pages" })
|
|
3026
2854
|
]
|
|
3027
2855
|
}
|
|
3028
2856
|
);
|
|
@@ -3031,16 +2859,16 @@ function PaginationEllipsis({
|
|
|
3031
2859
|
// src/components/ui/popover.tsx
|
|
3032
2860
|
import "react";
|
|
3033
2861
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3034
|
-
import { jsx as
|
|
2862
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3035
2863
|
function Popover({
|
|
3036
2864
|
...props
|
|
3037
2865
|
}) {
|
|
3038
|
-
return /* @__PURE__ */
|
|
2866
|
+
return /* @__PURE__ */ jsx28(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
3039
2867
|
}
|
|
3040
2868
|
function PopoverTrigger({
|
|
3041
2869
|
...props
|
|
3042
2870
|
}) {
|
|
3043
|
-
return /* @__PURE__ */
|
|
2871
|
+
return /* @__PURE__ */ jsx28(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
3044
2872
|
}
|
|
3045
2873
|
function PopoverContent({
|
|
3046
2874
|
className,
|
|
@@ -3048,7 +2876,7 @@ function PopoverContent({
|
|
|
3048
2876
|
sideOffset = 4,
|
|
3049
2877
|
...props
|
|
3050
2878
|
}) {
|
|
3051
|
-
return /* @__PURE__ */
|
|
2879
|
+
return /* @__PURE__ */ jsx28(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx28(
|
|
3052
2880
|
PopoverPrimitive.Content,
|
|
3053
2881
|
{
|
|
3054
2882
|
"data-slot": "popover-content",
|
|
@@ -3065,19 +2893,19 @@ function PopoverContent({
|
|
|
3065
2893
|
function PopoverAnchor({
|
|
3066
2894
|
...props
|
|
3067
2895
|
}) {
|
|
3068
|
-
return /* @__PURE__ */
|
|
2896
|
+
return /* @__PURE__ */ jsx28(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
|
|
3069
2897
|
}
|
|
3070
2898
|
|
|
3071
2899
|
// src/components/ui/progress.tsx
|
|
3072
2900
|
import "react";
|
|
3073
2901
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3074
|
-
import { jsx as
|
|
2902
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3075
2903
|
function Progress({
|
|
3076
2904
|
className,
|
|
3077
2905
|
value,
|
|
3078
2906
|
...props
|
|
3079
2907
|
}) {
|
|
3080
|
-
return /* @__PURE__ */
|
|
2908
|
+
return /* @__PURE__ */ jsx29(
|
|
3081
2909
|
ProgressPrimitive.Root,
|
|
3082
2910
|
{
|
|
3083
2911
|
"data-slot": "progress",
|
|
@@ -3086,7 +2914,7 @@ function Progress({
|
|
|
3086
2914
|
className
|
|
3087
2915
|
),
|
|
3088
2916
|
...props,
|
|
3089
|
-
children: /* @__PURE__ */
|
|
2917
|
+
children: /* @__PURE__ */ jsx29(
|
|
3090
2918
|
ProgressPrimitive.Indicator,
|
|
3091
2919
|
{
|
|
3092
2920
|
"data-slot": "progress-indicator",
|
|
@@ -3102,12 +2930,12 @@ function Progress({
|
|
|
3102
2930
|
import "react";
|
|
3103
2931
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3104
2932
|
import { CircleIcon as CircleIcon4 } from "lucide-react";
|
|
3105
|
-
import { jsx as
|
|
2933
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
3106
2934
|
function RadioGroup4({
|
|
3107
2935
|
className,
|
|
3108
2936
|
...props
|
|
3109
2937
|
}) {
|
|
3110
|
-
return /* @__PURE__ */
|
|
2938
|
+
return /* @__PURE__ */ jsx30(
|
|
3111
2939
|
RadioGroupPrimitive.Root,
|
|
3112
2940
|
{
|
|
3113
2941
|
"data-slot": "radio-group",
|
|
@@ -3120,7 +2948,7 @@ function RadioGroupItem({
|
|
|
3120
2948
|
className,
|
|
3121
2949
|
...props
|
|
3122
2950
|
}) {
|
|
3123
|
-
return /* @__PURE__ */
|
|
2951
|
+
return /* @__PURE__ */ jsx30(
|
|
3124
2952
|
RadioGroupPrimitive.Item,
|
|
3125
2953
|
{
|
|
3126
2954
|
"data-slot": "radio-group-item",
|
|
@@ -3129,12 +2957,12 @@ function RadioGroupItem({
|
|
|
3129
2957
|
className
|
|
3130
2958
|
),
|
|
3131
2959
|
...props,
|
|
3132
|
-
children: /* @__PURE__ */
|
|
2960
|
+
children: /* @__PURE__ */ jsx30(
|
|
3133
2961
|
RadioGroupPrimitive.Indicator,
|
|
3134
2962
|
{
|
|
3135
2963
|
"data-slot": "radio-group-indicator",
|
|
3136
2964
|
className: "relative flex items-center justify-center",
|
|
3137
|
-
children: /* @__PURE__ */
|
|
2965
|
+
children: /* @__PURE__ */ jsx30(CircleIcon4, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
3138
2966
|
}
|
|
3139
2967
|
)
|
|
3140
2968
|
}
|
|
@@ -3145,12 +2973,12 @@ function RadioGroupItem({
|
|
|
3145
2973
|
import "react";
|
|
3146
2974
|
import { GripVerticalIcon } from "lucide-react";
|
|
3147
2975
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
3148
|
-
import { jsx as
|
|
2976
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3149
2977
|
function ResizablePanelGroup({
|
|
3150
2978
|
className,
|
|
3151
2979
|
...props
|
|
3152
2980
|
}) {
|
|
3153
|
-
return /* @__PURE__ */
|
|
2981
|
+
return /* @__PURE__ */ jsx31(
|
|
3154
2982
|
ResizablePrimitive.PanelGroup,
|
|
3155
2983
|
{
|
|
3156
2984
|
"data-slot": "resizable-panel-group",
|
|
@@ -3165,14 +2993,14 @@ function ResizablePanelGroup({
|
|
|
3165
2993
|
function ResizablePanel({
|
|
3166
2994
|
...props
|
|
3167
2995
|
}) {
|
|
3168
|
-
return /* @__PURE__ */
|
|
2996
|
+
return /* @__PURE__ */ jsx31(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
|
|
3169
2997
|
}
|
|
3170
2998
|
function ResizableHandle({
|
|
3171
2999
|
withHandle,
|
|
3172
3000
|
className,
|
|
3173
3001
|
...props
|
|
3174
3002
|
}) {
|
|
3175
|
-
return /* @__PURE__ */
|
|
3003
|
+
return /* @__PURE__ */ jsx31(
|
|
3176
3004
|
ResizablePrimitive.PanelResizeHandle,
|
|
3177
3005
|
{
|
|
3178
3006
|
"data-slot": "resizable-handle",
|
|
@@ -3181,7 +3009,7 @@ function ResizableHandle({
|
|
|
3181
3009
|
className
|
|
3182
3010
|
),
|
|
3183
3011
|
...props,
|
|
3184
|
-
children: withHandle && /* @__PURE__ */
|
|
3012
|
+
children: withHandle && /* @__PURE__ */ jsx31("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ jsx31(GripVerticalIcon, { className: "size-2.5" }) })
|
|
3185
3013
|
}
|
|
3186
3014
|
);
|
|
3187
3015
|
}
|
|
@@ -3189,20 +3017,20 @@ function ResizableHandle({
|
|
|
3189
3017
|
// src/components/ui/scroll-area.tsx
|
|
3190
3018
|
import "react";
|
|
3191
3019
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3192
|
-
import { jsx as
|
|
3020
|
+
import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3193
3021
|
function ScrollArea({
|
|
3194
3022
|
className,
|
|
3195
3023
|
children,
|
|
3196
3024
|
...props
|
|
3197
3025
|
}) {
|
|
3198
|
-
return /* @__PURE__ */
|
|
3026
|
+
return /* @__PURE__ */ jsxs15(
|
|
3199
3027
|
ScrollAreaPrimitive.Root,
|
|
3200
3028
|
{
|
|
3201
3029
|
"data-slot": "scroll-area",
|
|
3202
3030
|
className: cn("relative", className),
|
|
3203
3031
|
...props,
|
|
3204
3032
|
children: [
|
|
3205
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ jsx32(
|
|
3206
3034
|
ScrollAreaPrimitive.Viewport,
|
|
3207
3035
|
{
|
|
3208
3036
|
"data-slot": "scroll-area-viewport",
|
|
@@ -3210,8 +3038,8 @@ function ScrollArea({
|
|
|
3210
3038
|
children
|
|
3211
3039
|
}
|
|
3212
3040
|
),
|
|
3213
|
-
/* @__PURE__ */
|
|
3214
|
-
/* @__PURE__ */
|
|
3041
|
+
/* @__PURE__ */ jsx32(ScrollBar, {}),
|
|
3042
|
+
/* @__PURE__ */ jsx32(ScrollAreaPrimitive.Corner, {})
|
|
3215
3043
|
]
|
|
3216
3044
|
}
|
|
3217
3045
|
);
|
|
@@ -3221,7 +3049,7 @@ function ScrollBar({
|
|
|
3221
3049
|
orientation = "vertical",
|
|
3222
3050
|
...props
|
|
3223
3051
|
}) {
|
|
3224
|
-
return /* @__PURE__ */
|
|
3052
|
+
return /* @__PURE__ */ jsx32(
|
|
3225
3053
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
3226
3054
|
{
|
|
3227
3055
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -3233,7 +3061,7 @@ function ScrollBar({
|
|
|
3233
3061
|
className
|
|
3234
3062
|
),
|
|
3235
3063
|
...props,
|
|
3236
|
-
children: /* @__PURE__ */
|
|
3064
|
+
children: /* @__PURE__ */ jsx32(
|
|
3237
3065
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
3238
3066
|
{
|
|
3239
3067
|
"data-slot": "scroll-area-thumb",
|
|
@@ -3248,21 +3076,21 @@ function ScrollBar({
|
|
|
3248
3076
|
import "react";
|
|
3249
3077
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3250
3078
|
import { CheckIcon as CheckIcon5, ChevronDownIcon as ChevronDownIcon4, ChevronUpIcon } from "lucide-react";
|
|
3251
|
-
import { jsx as
|
|
3079
|
+
import { jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3252
3080
|
function Select({
|
|
3253
3081
|
...props
|
|
3254
3082
|
}) {
|
|
3255
|
-
return /* @__PURE__ */
|
|
3083
|
+
return /* @__PURE__ */ jsx33(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
3256
3084
|
}
|
|
3257
3085
|
function SelectGroup({
|
|
3258
3086
|
...props
|
|
3259
3087
|
}) {
|
|
3260
|
-
return /* @__PURE__ */
|
|
3088
|
+
return /* @__PURE__ */ jsx33(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
|
|
3261
3089
|
}
|
|
3262
3090
|
function SelectValue({
|
|
3263
3091
|
...props
|
|
3264
3092
|
}) {
|
|
3265
|
-
return /* @__PURE__ */
|
|
3093
|
+
return /* @__PURE__ */ jsx33(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
3266
3094
|
}
|
|
3267
3095
|
function SelectTrigger({
|
|
3268
3096
|
className,
|
|
@@ -3270,7 +3098,7 @@ function SelectTrigger({
|
|
|
3270
3098
|
children,
|
|
3271
3099
|
...props
|
|
3272
3100
|
}) {
|
|
3273
|
-
return /* @__PURE__ */
|
|
3101
|
+
return /* @__PURE__ */ jsxs16(
|
|
3274
3102
|
SelectPrimitive.Trigger,
|
|
3275
3103
|
{
|
|
3276
3104
|
"data-slot": "select-trigger",
|
|
@@ -3282,7 +3110,7 @@ function SelectTrigger({
|
|
|
3282
3110
|
...props,
|
|
3283
3111
|
children: [
|
|
3284
3112
|
children,
|
|
3285
|
-
/* @__PURE__ */
|
|
3113
|
+
/* @__PURE__ */ jsx33(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx33(ChevronDownIcon4, { className: "size-4 opacity-50" }) })
|
|
3286
3114
|
]
|
|
3287
3115
|
}
|
|
3288
3116
|
);
|
|
@@ -3293,7 +3121,7 @@ function SelectContent({
|
|
|
3293
3121
|
position = "popper",
|
|
3294
3122
|
...props
|
|
3295
3123
|
}) {
|
|
3296
|
-
return /* @__PURE__ */
|
|
3124
|
+
return /* @__PURE__ */ jsx33(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs16(
|
|
3297
3125
|
SelectPrimitive.Content,
|
|
3298
3126
|
{
|
|
3299
3127
|
"data-slot": "select-content",
|
|
@@ -3305,8 +3133,8 @@ function SelectContent({
|
|
|
3305
3133
|
position,
|
|
3306
3134
|
...props,
|
|
3307
3135
|
children: [
|
|
3308
|
-
/* @__PURE__ */
|
|
3309
|
-
/* @__PURE__ */
|
|
3136
|
+
/* @__PURE__ */ jsx33(SelectScrollUpButton, {}),
|
|
3137
|
+
/* @__PURE__ */ jsx33(
|
|
3310
3138
|
SelectPrimitive.Viewport,
|
|
3311
3139
|
{
|
|
3312
3140
|
className: cn(
|
|
@@ -3316,7 +3144,7 @@ function SelectContent({
|
|
|
3316
3144
|
children
|
|
3317
3145
|
}
|
|
3318
3146
|
),
|
|
3319
|
-
/* @__PURE__ */
|
|
3147
|
+
/* @__PURE__ */ jsx33(SelectScrollDownButton, {})
|
|
3320
3148
|
]
|
|
3321
3149
|
}
|
|
3322
3150
|
) });
|
|
@@ -3325,7 +3153,7 @@ function SelectLabel({
|
|
|
3325
3153
|
className,
|
|
3326
3154
|
...props
|
|
3327
3155
|
}) {
|
|
3328
|
-
return /* @__PURE__ */
|
|
3156
|
+
return /* @__PURE__ */ jsx33(
|
|
3329
3157
|
SelectPrimitive.Label,
|
|
3330
3158
|
{
|
|
3331
3159
|
"data-slot": "select-label",
|
|
@@ -3339,7 +3167,7 @@ function SelectItem({
|
|
|
3339
3167
|
children,
|
|
3340
3168
|
...props
|
|
3341
3169
|
}) {
|
|
3342
|
-
return /* @__PURE__ */
|
|
3170
|
+
return /* @__PURE__ */ jsxs16(
|
|
3343
3171
|
SelectPrimitive.Item,
|
|
3344
3172
|
{
|
|
3345
3173
|
"data-slot": "select-item",
|
|
@@ -3349,8 +3177,8 @@ function SelectItem({
|
|
|
3349
3177
|
),
|
|
3350
3178
|
...props,
|
|
3351
3179
|
children: [
|
|
3352
|
-
/* @__PURE__ */
|
|
3353
|
-
/* @__PURE__ */
|
|
3180
|
+
/* @__PURE__ */ jsx33("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx33(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx33(CheckIcon5, { className: "size-4" }) }) }),
|
|
3181
|
+
/* @__PURE__ */ jsx33(SelectPrimitive.ItemText, { children })
|
|
3354
3182
|
]
|
|
3355
3183
|
}
|
|
3356
3184
|
);
|
|
@@ -3359,7 +3187,7 @@ function SelectSeparator({
|
|
|
3359
3187
|
className,
|
|
3360
3188
|
...props
|
|
3361
3189
|
}) {
|
|
3362
|
-
return /* @__PURE__ */
|
|
3190
|
+
return /* @__PURE__ */ jsx33(
|
|
3363
3191
|
SelectPrimitive.Separator,
|
|
3364
3192
|
{
|
|
3365
3193
|
"data-slot": "select-separator",
|
|
@@ -3372,7 +3200,7 @@ function SelectScrollUpButton({
|
|
|
3372
3200
|
className,
|
|
3373
3201
|
...props
|
|
3374
3202
|
}) {
|
|
3375
|
-
return /* @__PURE__ */
|
|
3203
|
+
return /* @__PURE__ */ jsx33(
|
|
3376
3204
|
SelectPrimitive.ScrollUpButton,
|
|
3377
3205
|
{
|
|
3378
3206
|
"data-slot": "select-scroll-up-button",
|
|
@@ -3381,7 +3209,7 @@ function SelectScrollUpButton({
|
|
|
3381
3209
|
className
|
|
3382
3210
|
),
|
|
3383
3211
|
...props,
|
|
3384
|
-
children: /* @__PURE__ */
|
|
3212
|
+
children: /* @__PURE__ */ jsx33(ChevronUpIcon, { className: "size-4" })
|
|
3385
3213
|
}
|
|
3386
3214
|
);
|
|
3387
3215
|
}
|
|
@@ -3389,7 +3217,7 @@ function SelectScrollDownButton({
|
|
|
3389
3217
|
className,
|
|
3390
3218
|
...props
|
|
3391
3219
|
}) {
|
|
3392
|
-
return /* @__PURE__ */
|
|
3220
|
+
return /* @__PURE__ */ jsx33(
|
|
3393
3221
|
SelectPrimitive.ScrollDownButton,
|
|
3394
3222
|
{
|
|
3395
3223
|
"data-slot": "select-scroll-down-button",
|
|
@@ -3398,7 +3226,7 @@ function SelectScrollDownButton({
|
|
|
3398
3226
|
className
|
|
3399
3227
|
),
|
|
3400
3228
|
...props,
|
|
3401
|
-
children: /* @__PURE__ */
|
|
3229
|
+
children: /* @__PURE__ */ jsx33(ChevronDownIcon4, { className: "size-4" })
|
|
3402
3230
|
}
|
|
3403
3231
|
);
|
|
3404
3232
|
}
|
|
@@ -3406,14 +3234,14 @@ function SelectScrollDownButton({
|
|
|
3406
3234
|
// src/components/ui/separator.tsx
|
|
3407
3235
|
import "react";
|
|
3408
3236
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3409
|
-
import { jsx as
|
|
3237
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3410
3238
|
function Separator5({
|
|
3411
3239
|
className,
|
|
3412
3240
|
orientation = "horizontal",
|
|
3413
3241
|
decorative = true,
|
|
3414
3242
|
...props
|
|
3415
3243
|
}) {
|
|
3416
|
-
return /* @__PURE__ */
|
|
3244
|
+
return /* @__PURE__ */ jsx34(
|
|
3417
3245
|
SeparatorPrimitive.Root,
|
|
3418
3246
|
{
|
|
3419
3247
|
"data-slot": "separator",
|
|
@@ -3431,31 +3259,31 @@ function Separator5({
|
|
|
3431
3259
|
// src/components/ui/sheet.tsx
|
|
3432
3260
|
import "react";
|
|
3433
3261
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3434
|
-
import { XIcon as
|
|
3435
|
-
import { jsx as
|
|
3262
|
+
import { XIcon as XIcon2 } from "lucide-react";
|
|
3263
|
+
import { jsx as jsx35, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3436
3264
|
function Sheet({ ...props }) {
|
|
3437
|
-
return /* @__PURE__ */
|
|
3265
|
+
return /* @__PURE__ */ jsx35(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
3438
3266
|
}
|
|
3439
3267
|
function SheetTrigger({
|
|
3440
3268
|
...props
|
|
3441
3269
|
}) {
|
|
3442
|
-
return /* @__PURE__ */
|
|
3270
|
+
return /* @__PURE__ */ jsx35(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
3443
3271
|
}
|
|
3444
3272
|
function SheetClose({
|
|
3445
3273
|
...props
|
|
3446
3274
|
}) {
|
|
3447
|
-
return /* @__PURE__ */
|
|
3275
|
+
return /* @__PURE__ */ jsx35(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
3448
3276
|
}
|
|
3449
3277
|
function SheetPortal({
|
|
3450
3278
|
...props
|
|
3451
3279
|
}) {
|
|
3452
|
-
return /* @__PURE__ */
|
|
3280
|
+
return /* @__PURE__ */ jsx35(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
3453
3281
|
}
|
|
3454
3282
|
function SheetOverlay({
|
|
3455
3283
|
className,
|
|
3456
3284
|
...props
|
|
3457
3285
|
}) {
|
|
3458
|
-
return /* @__PURE__ */
|
|
3286
|
+
return /* @__PURE__ */ jsx35(
|
|
3459
3287
|
SheetPrimitive.Overlay,
|
|
3460
3288
|
{
|
|
3461
3289
|
"data-slot": "sheet-overlay",
|
|
@@ -3473,9 +3301,9 @@ function SheetContent({
|
|
|
3473
3301
|
side = "right",
|
|
3474
3302
|
...props
|
|
3475
3303
|
}) {
|
|
3476
|
-
return /* @__PURE__ */
|
|
3477
|
-
/* @__PURE__ */
|
|
3478
|
-
/* @__PURE__ */
|
|
3304
|
+
return /* @__PURE__ */ jsxs17(SheetPortal, { children: [
|
|
3305
|
+
/* @__PURE__ */ jsx35(SheetOverlay, {}),
|
|
3306
|
+
/* @__PURE__ */ jsxs17(
|
|
3479
3307
|
SheetPrimitive.Content,
|
|
3480
3308
|
{
|
|
3481
3309
|
"data-slot": "sheet-content",
|
|
@@ -3490,9 +3318,9 @@ function SheetContent({
|
|
|
3490
3318
|
...props,
|
|
3491
3319
|
children: [
|
|
3492
3320
|
children,
|
|
3493
|
-
/* @__PURE__ */
|
|
3494
|
-
/* @__PURE__ */
|
|
3495
|
-
/* @__PURE__ */
|
|
3321
|
+
/* @__PURE__ */ jsxs17(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
3322
|
+
/* @__PURE__ */ jsx35(XIcon2, { className: "size-4" }),
|
|
3323
|
+
/* @__PURE__ */ jsx35("span", { className: "sr-only", children: "Close" })
|
|
3496
3324
|
] })
|
|
3497
3325
|
]
|
|
3498
3326
|
}
|
|
@@ -3500,7 +3328,7 @@ function SheetContent({
|
|
|
3500
3328
|
] });
|
|
3501
3329
|
}
|
|
3502
3330
|
function SheetHeader({ className, ...props }) {
|
|
3503
|
-
return /* @__PURE__ */
|
|
3331
|
+
return /* @__PURE__ */ jsx35(
|
|
3504
3332
|
"div",
|
|
3505
3333
|
{
|
|
3506
3334
|
"data-slot": "sheet-header",
|
|
@@ -3510,7 +3338,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
3510
3338
|
);
|
|
3511
3339
|
}
|
|
3512
3340
|
function SheetFooter({ className, ...props }) {
|
|
3513
|
-
return /* @__PURE__ */
|
|
3341
|
+
return /* @__PURE__ */ jsx35(
|
|
3514
3342
|
"div",
|
|
3515
3343
|
{
|
|
3516
3344
|
"data-slot": "sheet-footer",
|
|
@@ -3523,7 +3351,7 @@ function SheetTitle({
|
|
|
3523
3351
|
className,
|
|
3524
3352
|
...props
|
|
3525
3353
|
}) {
|
|
3526
|
-
return /* @__PURE__ */
|
|
3354
|
+
return /* @__PURE__ */ jsx35(
|
|
3527
3355
|
SheetPrimitive.Title,
|
|
3528
3356
|
{
|
|
3529
3357
|
"data-slot": "sheet-title",
|
|
@@ -3536,7 +3364,7 @@ function SheetDescription({
|
|
|
3536
3364
|
className,
|
|
3537
3365
|
...props
|
|
3538
3366
|
}) {
|
|
3539
|
-
return /* @__PURE__ */
|
|
3367
|
+
return /* @__PURE__ */ jsx35(
|
|
3540
3368
|
SheetPrimitive.Description,
|
|
3541
3369
|
{
|
|
3542
3370
|
"data-slot": "sheet-description",
|
|
@@ -3547,17 +3375,17 @@ function SheetDescription({
|
|
|
3547
3375
|
}
|
|
3548
3376
|
|
|
3549
3377
|
// src/components/ui/sidebar.tsx
|
|
3550
|
-
import * as
|
|
3551
|
-
import { Slot as
|
|
3552
|
-
import { cva as
|
|
3378
|
+
import * as React36 from "react";
|
|
3379
|
+
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
3380
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
3553
3381
|
import { PanelLeftIcon } from "lucide-react";
|
|
3554
3382
|
|
|
3555
|
-
// hooks/use-mobile.ts
|
|
3556
|
-
import * as
|
|
3383
|
+
// src/hooks/use-mobile.ts
|
|
3384
|
+
import * as React34 from "react";
|
|
3557
3385
|
var MOBILE_BREAKPOINT = 768;
|
|
3558
3386
|
function useIsMobile() {
|
|
3559
|
-
const [isMobile, setIsMobile] =
|
|
3560
|
-
|
|
3387
|
+
const [isMobile, setIsMobile] = React34.useState(void 0);
|
|
3388
|
+
React34.useEffect(() => {
|
|
3561
3389
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
3562
3390
|
const onChange = () => {
|
|
3563
3391
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -3569,153 +3397,10 @@ function useIsMobile() {
|
|
|
3569
3397
|
return !!isMobile;
|
|
3570
3398
|
}
|
|
3571
3399
|
|
|
3572
|
-
// components/ui/
|
|
3573
|
-
import "react";
|
|
3574
|
-
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3575
|
-
function Input2({ className, type, ...props }) {
|
|
3576
|
-
return /* @__PURE__ */ jsx39(
|
|
3577
|
-
"input",
|
|
3578
|
-
{
|
|
3579
|
-
type,
|
|
3580
|
-
"data-slot": "input",
|
|
3581
|
-
className: cn(
|
|
3582
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
3583
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
3584
|
-
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
3585
|
-
className
|
|
3586
|
-
),
|
|
3587
|
-
...props
|
|
3588
|
-
}
|
|
3589
|
-
);
|
|
3590
|
-
}
|
|
3591
|
-
|
|
3592
|
-
// components/ui/separator.tsx
|
|
3593
|
-
import "react";
|
|
3594
|
-
import * as SeparatorPrimitive2 from "@radix-ui/react-separator";
|
|
3595
|
-
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3596
|
-
function Separator6({
|
|
3597
|
-
className,
|
|
3598
|
-
orientation = "horizontal",
|
|
3599
|
-
decorative = true,
|
|
3600
|
-
...props
|
|
3601
|
-
}) {
|
|
3602
|
-
return /* @__PURE__ */ jsx40(
|
|
3603
|
-
SeparatorPrimitive2.Root,
|
|
3604
|
-
{
|
|
3605
|
-
"data-slot": "separator",
|
|
3606
|
-
decorative,
|
|
3607
|
-
orientation,
|
|
3608
|
-
className: cn(
|
|
3609
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
3610
|
-
className
|
|
3611
|
-
),
|
|
3612
|
-
...props
|
|
3613
|
-
}
|
|
3614
|
-
);
|
|
3615
|
-
}
|
|
3616
|
-
|
|
3617
|
-
// components/ui/sheet.tsx
|
|
3618
|
-
import "react";
|
|
3619
|
-
import * as SheetPrimitive2 from "@radix-ui/react-dialog";
|
|
3620
|
-
import { XIcon as XIcon4 } from "lucide-react";
|
|
3621
|
-
import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3622
|
-
function Sheet2({ ...props }) {
|
|
3623
|
-
return /* @__PURE__ */ jsx41(SheetPrimitive2.Root, { "data-slot": "sheet", ...props });
|
|
3624
|
-
}
|
|
3625
|
-
function SheetPortal2({
|
|
3626
|
-
...props
|
|
3627
|
-
}) {
|
|
3628
|
-
return /* @__PURE__ */ jsx41(SheetPrimitive2.Portal, { "data-slot": "sheet-portal", ...props });
|
|
3629
|
-
}
|
|
3630
|
-
function SheetOverlay2({
|
|
3631
|
-
className,
|
|
3632
|
-
...props
|
|
3633
|
-
}) {
|
|
3634
|
-
return /* @__PURE__ */ jsx41(
|
|
3635
|
-
SheetPrimitive2.Overlay,
|
|
3636
|
-
{
|
|
3637
|
-
"data-slot": "sheet-overlay",
|
|
3638
|
-
className: cn(
|
|
3639
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
3640
|
-
className
|
|
3641
|
-
),
|
|
3642
|
-
...props
|
|
3643
|
-
}
|
|
3644
|
-
);
|
|
3645
|
-
}
|
|
3646
|
-
function SheetContent2({
|
|
3647
|
-
className,
|
|
3648
|
-
children,
|
|
3649
|
-
side = "right",
|
|
3650
|
-
...props
|
|
3651
|
-
}) {
|
|
3652
|
-
return /* @__PURE__ */ jsxs19(SheetPortal2, { children: [
|
|
3653
|
-
/* @__PURE__ */ jsx41(SheetOverlay2, {}),
|
|
3654
|
-
/* @__PURE__ */ jsxs19(
|
|
3655
|
-
SheetPrimitive2.Content,
|
|
3656
|
-
{
|
|
3657
|
-
"data-slot": "sheet-content",
|
|
3658
|
-
className: cn(
|
|
3659
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
3660
|
-
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
3661
|
-
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
3662
|
-
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
3663
|
-
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
3664
|
-
className
|
|
3665
|
-
),
|
|
3666
|
-
...props,
|
|
3667
|
-
children: [
|
|
3668
|
-
children,
|
|
3669
|
-
/* @__PURE__ */ jsxs19(SheetPrimitive2.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
3670
|
-
/* @__PURE__ */ jsx41(XIcon4, { className: "size-4" }),
|
|
3671
|
-
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "Close" })
|
|
3672
|
-
] })
|
|
3673
|
-
]
|
|
3674
|
-
}
|
|
3675
|
-
)
|
|
3676
|
-
] });
|
|
3677
|
-
}
|
|
3678
|
-
function SheetHeader2({ className, ...props }) {
|
|
3679
|
-
return /* @__PURE__ */ jsx41(
|
|
3680
|
-
"div",
|
|
3681
|
-
{
|
|
3682
|
-
"data-slot": "sheet-header",
|
|
3683
|
-
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
3684
|
-
...props
|
|
3685
|
-
}
|
|
3686
|
-
);
|
|
3687
|
-
}
|
|
3688
|
-
function SheetTitle2({
|
|
3689
|
-
className,
|
|
3690
|
-
...props
|
|
3691
|
-
}) {
|
|
3692
|
-
return /* @__PURE__ */ jsx41(
|
|
3693
|
-
SheetPrimitive2.Title,
|
|
3694
|
-
{
|
|
3695
|
-
"data-slot": "sheet-title",
|
|
3696
|
-
className: cn("text-foreground font-semibold", className),
|
|
3697
|
-
...props
|
|
3698
|
-
}
|
|
3699
|
-
);
|
|
3700
|
-
}
|
|
3701
|
-
function SheetDescription2({
|
|
3702
|
-
className,
|
|
3703
|
-
...props
|
|
3704
|
-
}) {
|
|
3705
|
-
return /* @__PURE__ */ jsx41(
|
|
3706
|
-
SheetPrimitive2.Description,
|
|
3707
|
-
{
|
|
3708
|
-
"data-slot": "sheet-description",
|
|
3709
|
-
className: cn("text-muted-foreground text-sm", className),
|
|
3710
|
-
...props
|
|
3711
|
-
}
|
|
3712
|
-
);
|
|
3713
|
-
}
|
|
3714
|
-
|
|
3715
|
-
// components/ui/skeleton.tsx
|
|
3716
|
-
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3400
|
+
// src/components/ui/skeleton.tsx
|
|
3401
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3717
3402
|
function Skeleton({ className, ...props }) {
|
|
3718
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ jsx36(
|
|
3719
3404
|
"div",
|
|
3720
3405
|
{
|
|
3721
3406
|
"data-slot": "skeleton",
|
|
@@ -3725,15 +3410,15 @@ function Skeleton({ className, ...props }) {
|
|
|
3725
3410
|
);
|
|
3726
3411
|
}
|
|
3727
3412
|
|
|
3728
|
-
// components/ui/tooltip.tsx
|
|
3413
|
+
// src/components/ui/tooltip.tsx
|
|
3729
3414
|
import "react";
|
|
3730
3415
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3731
|
-
import { jsx as
|
|
3416
|
+
import { jsx as jsx37, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3732
3417
|
function TooltipProvider({
|
|
3733
3418
|
delayDuration = 0,
|
|
3734
3419
|
...props
|
|
3735
3420
|
}) {
|
|
3736
|
-
return /* @__PURE__ */
|
|
3421
|
+
return /* @__PURE__ */ jsx37(
|
|
3737
3422
|
TooltipPrimitive.Provider,
|
|
3738
3423
|
{
|
|
3739
3424
|
"data-slot": "tooltip-provider",
|
|
@@ -3745,12 +3430,12 @@ function TooltipProvider({
|
|
|
3745
3430
|
function Tooltip2({
|
|
3746
3431
|
...props
|
|
3747
3432
|
}) {
|
|
3748
|
-
return /* @__PURE__ */
|
|
3433
|
+
return /* @__PURE__ */ jsx37(TooltipProvider, { children: /* @__PURE__ */ jsx37(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
|
|
3749
3434
|
}
|
|
3750
3435
|
function TooltipTrigger({
|
|
3751
3436
|
...props
|
|
3752
3437
|
}) {
|
|
3753
|
-
return /* @__PURE__ */
|
|
3438
|
+
return /* @__PURE__ */ jsx37(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
3754
3439
|
}
|
|
3755
3440
|
function TooltipContent({
|
|
3756
3441
|
className,
|
|
@@ -3758,7 +3443,7 @@ function TooltipContent({
|
|
|
3758
3443
|
children,
|
|
3759
3444
|
...props
|
|
3760
3445
|
}) {
|
|
3761
|
-
return /* @__PURE__ */
|
|
3446
|
+
return /* @__PURE__ */ jsx37(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs18(
|
|
3762
3447
|
TooltipPrimitive.Content,
|
|
3763
3448
|
{
|
|
3764
3449
|
"data-slot": "tooltip-content",
|
|
@@ -3770,23 +3455,23 @@ function TooltipContent({
|
|
|
3770
3455
|
...props,
|
|
3771
3456
|
children: [
|
|
3772
3457
|
children,
|
|
3773
|
-
/* @__PURE__ */
|
|
3458
|
+
/* @__PURE__ */ jsx37(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
3774
3459
|
]
|
|
3775
3460
|
}
|
|
3776
3461
|
) });
|
|
3777
3462
|
}
|
|
3778
3463
|
|
|
3779
3464
|
// src/components/ui/sidebar.tsx
|
|
3780
|
-
import { jsx as
|
|
3465
|
+
import { jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3781
3466
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3782
3467
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
3783
3468
|
var SIDEBAR_WIDTH = "16rem";
|
|
3784
3469
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
3785
3470
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
3786
3471
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
3787
|
-
var SidebarContext =
|
|
3472
|
+
var SidebarContext = React36.createContext(null);
|
|
3788
3473
|
function useSidebar() {
|
|
3789
|
-
const context =
|
|
3474
|
+
const context = React36.useContext(SidebarContext);
|
|
3790
3475
|
if (!context) {
|
|
3791
3476
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
3792
3477
|
}
|
|
@@ -3802,10 +3487,10 @@ function SidebarProvider({
|
|
|
3802
3487
|
...props
|
|
3803
3488
|
}) {
|
|
3804
3489
|
const isMobile = useIsMobile();
|
|
3805
|
-
const [openMobile, setOpenMobile] =
|
|
3806
|
-
const [_open, _setOpen] =
|
|
3490
|
+
const [openMobile, setOpenMobile] = React36.useState(false);
|
|
3491
|
+
const [_open, _setOpen] = React36.useState(defaultOpen);
|
|
3807
3492
|
const open = openProp ?? _open;
|
|
3808
|
-
const setOpen =
|
|
3493
|
+
const setOpen = React36.useCallback(
|
|
3809
3494
|
(value) => {
|
|
3810
3495
|
const openState = typeof value === "function" ? value(open) : value;
|
|
3811
3496
|
if (setOpenProp) {
|
|
@@ -3817,10 +3502,10 @@ function SidebarProvider({
|
|
|
3817
3502
|
},
|
|
3818
3503
|
[setOpenProp, open]
|
|
3819
3504
|
);
|
|
3820
|
-
const toggleSidebar =
|
|
3505
|
+
const toggleSidebar = React36.useCallback(() => {
|
|
3821
3506
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
3822
3507
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
3823
|
-
|
|
3508
|
+
React36.useEffect(() => {
|
|
3824
3509
|
const handleKeyDown = (event) => {
|
|
3825
3510
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
3826
3511
|
event.preventDefault();
|
|
@@ -3831,7 +3516,7 @@ function SidebarProvider({
|
|
|
3831
3516
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
3832
3517
|
}, [toggleSidebar]);
|
|
3833
3518
|
const state = open ? "expanded" : "collapsed";
|
|
3834
|
-
const contextValue =
|
|
3519
|
+
const contextValue = React36.useMemo(
|
|
3835
3520
|
() => ({
|
|
3836
3521
|
state,
|
|
3837
3522
|
open,
|
|
@@ -3843,7 +3528,7 @@ function SidebarProvider({
|
|
|
3843
3528
|
}),
|
|
3844
3529
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
3845
3530
|
);
|
|
3846
|
-
return /* @__PURE__ */
|
|
3531
|
+
return /* @__PURE__ */ jsx38(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx38(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx38(
|
|
3847
3532
|
"div",
|
|
3848
3533
|
{
|
|
3849
3534
|
"data-slot": "sidebar-wrapper",
|
|
@@ -3871,7 +3556,7 @@ function Sidebar({
|
|
|
3871
3556
|
}) {
|
|
3872
3557
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
3873
3558
|
if (collapsible === "none") {
|
|
3874
|
-
return /* @__PURE__ */
|
|
3559
|
+
return /* @__PURE__ */ jsx38(
|
|
3875
3560
|
"div",
|
|
3876
3561
|
{
|
|
3877
3562
|
"data-slot": "sidebar",
|
|
@@ -3885,8 +3570,8 @@ function Sidebar({
|
|
|
3885
3570
|
);
|
|
3886
3571
|
}
|
|
3887
3572
|
if (isMobile) {
|
|
3888
|
-
return /* @__PURE__ */
|
|
3889
|
-
|
|
3573
|
+
return /* @__PURE__ */ jsx38(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs19(
|
|
3574
|
+
SheetContent,
|
|
3890
3575
|
{
|
|
3891
3576
|
"data-sidebar": "sidebar",
|
|
3892
3577
|
"data-slot": "sidebar",
|
|
@@ -3897,16 +3582,16 @@ function Sidebar({
|
|
|
3897
3582
|
},
|
|
3898
3583
|
side,
|
|
3899
3584
|
children: [
|
|
3900
|
-
/* @__PURE__ */
|
|
3901
|
-
/* @__PURE__ */
|
|
3902
|
-
/* @__PURE__ */
|
|
3585
|
+
/* @__PURE__ */ jsxs19(SheetHeader, { className: "sr-only", children: [
|
|
3586
|
+
/* @__PURE__ */ jsx38(SheetTitle, { children: "Sidebar" }),
|
|
3587
|
+
/* @__PURE__ */ jsx38(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
3903
3588
|
] }),
|
|
3904
|
-
/* @__PURE__ */
|
|
3589
|
+
/* @__PURE__ */ jsx38("div", { className: "flex h-full w-full flex-col", children })
|
|
3905
3590
|
]
|
|
3906
3591
|
}
|
|
3907
3592
|
) });
|
|
3908
3593
|
}
|
|
3909
|
-
return /* @__PURE__ */
|
|
3594
|
+
return /* @__PURE__ */ jsxs19(
|
|
3910
3595
|
"div",
|
|
3911
3596
|
{
|
|
3912
3597
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
@@ -3916,7 +3601,7 @@ function Sidebar({
|
|
|
3916
3601
|
"data-side": side,
|
|
3917
3602
|
"data-slot": "sidebar",
|
|
3918
3603
|
children: [
|
|
3919
|
-
/* @__PURE__ */
|
|
3604
|
+
/* @__PURE__ */ jsx38(
|
|
3920
3605
|
"div",
|
|
3921
3606
|
{
|
|
3922
3607
|
"data-slot": "sidebar-gap",
|
|
@@ -3928,7 +3613,7 @@ function Sidebar({
|
|
|
3928
3613
|
)
|
|
3929
3614
|
}
|
|
3930
3615
|
),
|
|
3931
|
-
/* @__PURE__ */
|
|
3616
|
+
/* @__PURE__ */ jsx38(
|
|
3932
3617
|
"div",
|
|
3933
3618
|
{
|
|
3934
3619
|
"data-slot": "sidebar-container",
|
|
@@ -3940,7 +3625,7 @@ function Sidebar({
|
|
|
3940
3625
|
className
|
|
3941
3626
|
),
|
|
3942
3627
|
...props,
|
|
3943
|
-
children: /* @__PURE__ */
|
|
3628
|
+
children: /* @__PURE__ */ jsx38(
|
|
3944
3629
|
"div",
|
|
3945
3630
|
{
|
|
3946
3631
|
"data-sidebar": "sidebar",
|
|
@@ -3961,7 +3646,7 @@ function SidebarTrigger({
|
|
|
3961
3646
|
...props
|
|
3962
3647
|
}) {
|
|
3963
3648
|
const { toggleSidebar } = useSidebar();
|
|
3964
|
-
return /* @__PURE__ */
|
|
3649
|
+
return /* @__PURE__ */ jsxs19(
|
|
3965
3650
|
Button,
|
|
3966
3651
|
{
|
|
3967
3652
|
"data-sidebar": "trigger",
|
|
@@ -3975,15 +3660,15 @@ function SidebarTrigger({
|
|
|
3975
3660
|
},
|
|
3976
3661
|
...props,
|
|
3977
3662
|
children: [
|
|
3978
|
-
/* @__PURE__ */
|
|
3979
|
-
/* @__PURE__ */
|
|
3663
|
+
/* @__PURE__ */ jsx38(PanelLeftIcon, {}),
|
|
3664
|
+
/* @__PURE__ */ jsx38("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
3980
3665
|
]
|
|
3981
3666
|
}
|
|
3982
3667
|
);
|
|
3983
3668
|
}
|
|
3984
3669
|
function SidebarRail({ className, ...props }) {
|
|
3985
3670
|
const { toggleSidebar } = useSidebar();
|
|
3986
|
-
return /* @__PURE__ */
|
|
3671
|
+
return /* @__PURE__ */ jsx38(
|
|
3987
3672
|
"button",
|
|
3988
3673
|
{
|
|
3989
3674
|
"data-sidebar": "rail",
|
|
@@ -4006,7 +3691,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
4006
3691
|
);
|
|
4007
3692
|
}
|
|
4008
3693
|
function SidebarInset({ className, ...props }) {
|
|
4009
|
-
return /* @__PURE__ */
|
|
3694
|
+
return /* @__PURE__ */ jsx38(
|
|
4010
3695
|
"main",
|
|
4011
3696
|
{
|
|
4012
3697
|
"data-slot": "sidebar-inset",
|
|
@@ -4023,8 +3708,8 @@ function SidebarInput({
|
|
|
4023
3708
|
className,
|
|
4024
3709
|
...props
|
|
4025
3710
|
}) {
|
|
4026
|
-
return /* @__PURE__ */
|
|
4027
|
-
|
|
3711
|
+
return /* @__PURE__ */ jsx38(
|
|
3712
|
+
Input,
|
|
4028
3713
|
{
|
|
4029
3714
|
"data-slot": "sidebar-input",
|
|
4030
3715
|
"data-sidebar": "input",
|
|
@@ -4034,7 +3719,7 @@ function SidebarInput({
|
|
|
4034
3719
|
);
|
|
4035
3720
|
}
|
|
4036
3721
|
function SidebarHeader({ className, ...props }) {
|
|
4037
|
-
return /* @__PURE__ */
|
|
3722
|
+
return /* @__PURE__ */ jsx38(
|
|
4038
3723
|
"div",
|
|
4039
3724
|
{
|
|
4040
3725
|
"data-slot": "sidebar-header",
|
|
@@ -4045,7 +3730,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
4045
3730
|
);
|
|
4046
3731
|
}
|
|
4047
3732
|
function SidebarFooter({ className, ...props }) {
|
|
4048
|
-
return /* @__PURE__ */
|
|
3733
|
+
return /* @__PURE__ */ jsx38(
|
|
4049
3734
|
"div",
|
|
4050
3735
|
{
|
|
4051
3736
|
"data-slot": "sidebar-footer",
|
|
@@ -4059,8 +3744,8 @@ function SidebarSeparator({
|
|
|
4059
3744
|
className,
|
|
4060
3745
|
...props
|
|
4061
3746
|
}) {
|
|
4062
|
-
return /* @__PURE__ */
|
|
4063
|
-
|
|
3747
|
+
return /* @__PURE__ */ jsx38(
|
|
3748
|
+
Separator5,
|
|
4064
3749
|
{
|
|
4065
3750
|
"data-slot": "sidebar-separator",
|
|
4066
3751
|
"data-sidebar": "separator",
|
|
@@ -4070,7 +3755,7 @@ function SidebarSeparator({
|
|
|
4070
3755
|
);
|
|
4071
3756
|
}
|
|
4072
3757
|
function SidebarContent({ className, ...props }) {
|
|
4073
|
-
return /* @__PURE__ */
|
|
3758
|
+
return /* @__PURE__ */ jsx38(
|
|
4074
3759
|
"div",
|
|
4075
3760
|
{
|
|
4076
3761
|
"data-slot": "sidebar-content",
|
|
@@ -4084,7 +3769,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
4084
3769
|
);
|
|
4085
3770
|
}
|
|
4086
3771
|
function SidebarGroup({ className, ...props }) {
|
|
4087
|
-
return /* @__PURE__ */
|
|
3772
|
+
return /* @__PURE__ */ jsx38(
|
|
4088
3773
|
"div",
|
|
4089
3774
|
{
|
|
4090
3775
|
"data-slot": "sidebar-group",
|
|
@@ -4099,8 +3784,8 @@ function SidebarGroupLabel({
|
|
|
4099
3784
|
asChild = false,
|
|
4100
3785
|
...props
|
|
4101
3786
|
}) {
|
|
4102
|
-
const Comp = asChild ?
|
|
4103
|
-
return /* @__PURE__ */
|
|
3787
|
+
const Comp = asChild ? Slot5 : "div";
|
|
3788
|
+
return /* @__PURE__ */ jsx38(
|
|
4104
3789
|
Comp,
|
|
4105
3790
|
{
|
|
4106
3791
|
"data-slot": "sidebar-group-label",
|
|
@@ -4119,8 +3804,8 @@ function SidebarGroupAction({
|
|
|
4119
3804
|
asChild = false,
|
|
4120
3805
|
...props
|
|
4121
3806
|
}) {
|
|
4122
|
-
const Comp = asChild ?
|
|
4123
|
-
return /* @__PURE__ */
|
|
3807
|
+
const Comp = asChild ? Slot5 : "button";
|
|
3808
|
+
return /* @__PURE__ */ jsx38(
|
|
4124
3809
|
Comp,
|
|
4125
3810
|
{
|
|
4126
3811
|
"data-slot": "sidebar-group-action",
|
|
@@ -4140,7 +3825,7 @@ function SidebarGroupContent({
|
|
|
4140
3825
|
className,
|
|
4141
3826
|
...props
|
|
4142
3827
|
}) {
|
|
4143
|
-
return /* @__PURE__ */
|
|
3828
|
+
return /* @__PURE__ */ jsx38(
|
|
4144
3829
|
"div",
|
|
4145
3830
|
{
|
|
4146
3831
|
"data-slot": "sidebar-group-content",
|
|
@@ -4151,7 +3836,7 @@ function SidebarGroupContent({
|
|
|
4151
3836
|
);
|
|
4152
3837
|
}
|
|
4153
3838
|
function SidebarMenu({ className, ...props }) {
|
|
4154
|
-
return /* @__PURE__ */
|
|
3839
|
+
return /* @__PURE__ */ jsx38(
|
|
4155
3840
|
"ul",
|
|
4156
3841
|
{
|
|
4157
3842
|
"data-slot": "sidebar-menu",
|
|
@@ -4162,7 +3847,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
4162
3847
|
);
|
|
4163
3848
|
}
|
|
4164
3849
|
function SidebarMenuItem({ className, ...props }) {
|
|
4165
|
-
return /* @__PURE__ */
|
|
3850
|
+
return /* @__PURE__ */ jsx38(
|
|
4166
3851
|
"li",
|
|
4167
3852
|
{
|
|
4168
3853
|
"data-slot": "sidebar-menu-item",
|
|
@@ -4172,7 +3857,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
4172
3857
|
}
|
|
4173
3858
|
);
|
|
4174
3859
|
}
|
|
4175
|
-
var sidebarMenuButtonVariants =
|
|
3860
|
+
var sidebarMenuButtonVariants = cva5(
|
|
4176
3861
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
4177
3862
|
{
|
|
4178
3863
|
variants: {
|
|
@@ -4201,9 +3886,9 @@ function SidebarMenuButton({
|
|
|
4201
3886
|
className,
|
|
4202
3887
|
...props
|
|
4203
3888
|
}) {
|
|
4204
|
-
const Comp = asChild ?
|
|
3889
|
+
const Comp = asChild ? Slot5 : "button";
|
|
4205
3890
|
const { isMobile, state } = useSidebar();
|
|
4206
|
-
const button = /* @__PURE__ */
|
|
3891
|
+
const button = /* @__PURE__ */ jsx38(
|
|
4207
3892
|
Comp,
|
|
4208
3893
|
{
|
|
4209
3894
|
"data-slot": "sidebar-menu-button",
|
|
@@ -4222,9 +3907,9 @@ function SidebarMenuButton({
|
|
|
4222
3907
|
children: tooltip
|
|
4223
3908
|
};
|
|
4224
3909
|
}
|
|
4225
|
-
return /* @__PURE__ */
|
|
4226
|
-
/* @__PURE__ */
|
|
4227
|
-
/* @__PURE__ */
|
|
3910
|
+
return /* @__PURE__ */ jsxs19(Tooltip2, { children: [
|
|
3911
|
+
/* @__PURE__ */ jsx38(TooltipTrigger, { asChild: true, children: button }),
|
|
3912
|
+
/* @__PURE__ */ jsx38(
|
|
4228
3913
|
TooltipContent,
|
|
4229
3914
|
{
|
|
4230
3915
|
side: "right",
|
|
@@ -4241,8 +3926,8 @@ function SidebarMenuAction({
|
|
|
4241
3926
|
showOnHover = false,
|
|
4242
3927
|
...props
|
|
4243
3928
|
}) {
|
|
4244
|
-
const Comp = asChild ?
|
|
4245
|
-
return /* @__PURE__ */
|
|
3929
|
+
const Comp = asChild ? Slot5 : "button";
|
|
3930
|
+
return /* @__PURE__ */ jsx38(
|
|
4246
3931
|
Comp,
|
|
4247
3932
|
{
|
|
4248
3933
|
"data-slot": "sidebar-menu-action",
|
|
@@ -4266,7 +3951,7 @@ function SidebarMenuBadge({
|
|
|
4266
3951
|
className,
|
|
4267
3952
|
...props
|
|
4268
3953
|
}) {
|
|
4269
|
-
return /* @__PURE__ */
|
|
3954
|
+
return /* @__PURE__ */ jsx38(
|
|
4270
3955
|
"div",
|
|
4271
3956
|
{
|
|
4272
3957
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -4289,10 +3974,10 @@ function SidebarMenuSkeleton({
|
|
|
4289
3974
|
showIcon = false,
|
|
4290
3975
|
...props
|
|
4291
3976
|
}) {
|
|
4292
|
-
const width =
|
|
3977
|
+
const width = React36.useMemo(() => {
|
|
4293
3978
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
4294
3979
|
}, []);
|
|
4295
|
-
return /* @__PURE__ */
|
|
3980
|
+
return /* @__PURE__ */ jsxs19(
|
|
4296
3981
|
"div",
|
|
4297
3982
|
{
|
|
4298
3983
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -4300,14 +3985,14 @@ function SidebarMenuSkeleton({
|
|
|
4300
3985
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
4301
3986
|
...props,
|
|
4302
3987
|
children: [
|
|
4303
|
-
showIcon && /* @__PURE__ */
|
|
3988
|
+
showIcon && /* @__PURE__ */ jsx38(
|
|
4304
3989
|
Skeleton,
|
|
4305
3990
|
{
|
|
4306
3991
|
className: "size-4 rounded-md",
|
|
4307
3992
|
"data-sidebar": "menu-skeleton-icon"
|
|
4308
3993
|
}
|
|
4309
3994
|
),
|
|
4310
|
-
/* @__PURE__ */
|
|
3995
|
+
/* @__PURE__ */ jsx38(
|
|
4311
3996
|
Skeleton,
|
|
4312
3997
|
{
|
|
4313
3998
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -4322,7 +4007,7 @@ function SidebarMenuSkeleton({
|
|
|
4322
4007
|
);
|
|
4323
4008
|
}
|
|
4324
4009
|
function SidebarMenuSub({ className, ...props }) {
|
|
4325
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ jsx38(
|
|
4326
4011
|
"ul",
|
|
4327
4012
|
{
|
|
4328
4013
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -4340,7 +4025,7 @@ function SidebarMenuSubItem({
|
|
|
4340
4025
|
className,
|
|
4341
4026
|
...props
|
|
4342
4027
|
}) {
|
|
4343
|
-
return /* @__PURE__ */
|
|
4028
|
+
return /* @__PURE__ */ jsx38(
|
|
4344
4029
|
"li",
|
|
4345
4030
|
{
|
|
4346
4031
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -4357,8 +4042,8 @@ function SidebarMenuSubButton({
|
|
|
4357
4042
|
className,
|
|
4358
4043
|
...props
|
|
4359
4044
|
}) {
|
|
4360
|
-
const Comp = asChild ?
|
|
4361
|
-
return /* @__PURE__ */
|
|
4045
|
+
const Comp = asChild ? Slot5 : "a";
|
|
4046
|
+
return /* @__PURE__ */ jsx38(
|
|
4362
4047
|
Comp,
|
|
4363
4048
|
{
|
|
4364
4049
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -4378,23 +4063,10 @@ function SidebarMenuSubButton({
|
|
|
4378
4063
|
);
|
|
4379
4064
|
}
|
|
4380
4065
|
|
|
4381
|
-
// src/components/ui/skeleton.tsx
|
|
4382
|
-
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4383
|
-
function Skeleton2({ className, ...props }) {
|
|
4384
|
-
return /* @__PURE__ */ jsx45(
|
|
4385
|
-
"div",
|
|
4386
|
-
{
|
|
4387
|
-
"data-slot": "skeleton",
|
|
4388
|
-
className: cn("bg-accent animate-pulse rounded-md", className),
|
|
4389
|
-
...props
|
|
4390
|
-
}
|
|
4391
|
-
);
|
|
4392
|
-
}
|
|
4393
|
-
|
|
4394
4066
|
// src/components/ui/slider.tsx
|
|
4395
|
-
import * as
|
|
4067
|
+
import * as React37 from "react";
|
|
4396
4068
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4397
|
-
import { jsx as
|
|
4069
|
+
import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4398
4070
|
function Slider({
|
|
4399
4071
|
className,
|
|
4400
4072
|
defaultValue,
|
|
@@ -4403,11 +4075,11 @@ function Slider({
|
|
|
4403
4075
|
max = 100,
|
|
4404
4076
|
...props
|
|
4405
4077
|
}) {
|
|
4406
|
-
const _values =
|
|
4078
|
+
const _values = React37.useMemo(
|
|
4407
4079
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
4408
4080
|
[value, defaultValue, min, max]
|
|
4409
4081
|
);
|
|
4410
|
-
return /* @__PURE__ */
|
|
4082
|
+
return /* @__PURE__ */ jsxs20(
|
|
4411
4083
|
SliderPrimitive.Root,
|
|
4412
4084
|
{
|
|
4413
4085
|
"data-slot": "slider",
|
|
@@ -4421,14 +4093,14 @@ function Slider({
|
|
|
4421
4093
|
),
|
|
4422
4094
|
...props,
|
|
4423
4095
|
children: [
|
|
4424
|
-
/* @__PURE__ */
|
|
4096
|
+
/* @__PURE__ */ jsx39(
|
|
4425
4097
|
SliderPrimitive.Track,
|
|
4426
4098
|
{
|
|
4427
4099
|
"data-slot": "slider-track",
|
|
4428
4100
|
className: cn(
|
|
4429
4101
|
"bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
4430
4102
|
),
|
|
4431
|
-
children: /* @__PURE__ */
|
|
4103
|
+
children: /* @__PURE__ */ jsx39(
|
|
4432
4104
|
SliderPrimitive.Range,
|
|
4433
4105
|
{
|
|
4434
4106
|
"data-slot": "slider-range",
|
|
@@ -4439,7 +4111,7 @@ function Slider({
|
|
|
4439
4111
|
)
|
|
4440
4112
|
}
|
|
4441
4113
|
),
|
|
4442
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */
|
|
4114
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx39(
|
|
4443
4115
|
SliderPrimitive.Thumb,
|
|
4444
4116
|
{
|
|
4445
4117
|
"data-slot": "slider-thumb",
|
|
@@ -4455,10 +4127,10 @@ function Slider({
|
|
|
4455
4127
|
// src/components/ui/sonner.tsx
|
|
4456
4128
|
import { useTheme } from "next-themes";
|
|
4457
4129
|
import { Toaster as Sonner } from "sonner";
|
|
4458
|
-
import { jsx as
|
|
4130
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
4459
4131
|
var Toaster = ({ ...props }) => {
|
|
4460
4132
|
const { theme = "system" } = useTheme();
|
|
4461
|
-
return /* @__PURE__ */
|
|
4133
|
+
return /* @__PURE__ */ jsx40(
|
|
4462
4134
|
Sonner,
|
|
4463
4135
|
{
|
|
4464
4136
|
theme,
|
|
@@ -4476,12 +4148,12 @@ var Toaster = ({ ...props }) => {
|
|
|
4476
4148
|
// src/components/ui/switch.tsx
|
|
4477
4149
|
import "react";
|
|
4478
4150
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
4479
|
-
import { jsx as
|
|
4151
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
4480
4152
|
function Switch({
|
|
4481
4153
|
className,
|
|
4482
4154
|
...props
|
|
4483
4155
|
}) {
|
|
4484
|
-
return /* @__PURE__ */
|
|
4156
|
+
return /* @__PURE__ */ jsx41(
|
|
4485
4157
|
SwitchPrimitive.Root,
|
|
4486
4158
|
{
|
|
4487
4159
|
"data-slot": "switch",
|
|
@@ -4490,7 +4162,7 @@ function Switch({
|
|
|
4490
4162
|
className
|
|
4491
4163
|
),
|
|
4492
4164
|
...props,
|
|
4493
|
-
children: /* @__PURE__ */
|
|
4165
|
+
children: /* @__PURE__ */ jsx41(
|
|
4494
4166
|
SwitchPrimitive.Thumb,
|
|
4495
4167
|
{
|
|
4496
4168
|
"data-slot": "switch-thumb",
|
|
@@ -4505,14 +4177,14 @@ function Switch({
|
|
|
4505
4177
|
|
|
4506
4178
|
// src/components/ui/table.tsx
|
|
4507
4179
|
import "react";
|
|
4508
|
-
import { jsx as
|
|
4180
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4509
4181
|
function Table({ className, ...props }) {
|
|
4510
|
-
return /* @__PURE__ */
|
|
4182
|
+
return /* @__PURE__ */ jsx42(
|
|
4511
4183
|
"div",
|
|
4512
4184
|
{
|
|
4513
4185
|
"data-slot": "table-container",
|
|
4514
4186
|
className: "relative w-full overflow-x-auto",
|
|
4515
|
-
children: /* @__PURE__ */
|
|
4187
|
+
children: /* @__PURE__ */ jsx42(
|
|
4516
4188
|
"table",
|
|
4517
4189
|
{
|
|
4518
4190
|
"data-slot": "table",
|
|
@@ -4524,7 +4196,7 @@ function Table({ className, ...props }) {
|
|
|
4524
4196
|
);
|
|
4525
4197
|
}
|
|
4526
4198
|
function TableHeader({ className, ...props }) {
|
|
4527
|
-
return /* @__PURE__ */
|
|
4199
|
+
return /* @__PURE__ */ jsx42(
|
|
4528
4200
|
"thead",
|
|
4529
4201
|
{
|
|
4530
4202
|
"data-slot": "table-header",
|
|
@@ -4534,7 +4206,7 @@ function TableHeader({ className, ...props }) {
|
|
|
4534
4206
|
);
|
|
4535
4207
|
}
|
|
4536
4208
|
function TableBody({ className, ...props }) {
|
|
4537
|
-
return /* @__PURE__ */
|
|
4209
|
+
return /* @__PURE__ */ jsx42(
|
|
4538
4210
|
"tbody",
|
|
4539
4211
|
{
|
|
4540
4212
|
"data-slot": "table-body",
|
|
@@ -4544,7 +4216,7 @@ function TableBody({ className, ...props }) {
|
|
|
4544
4216
|
);
|
|
4545
4217
|
}
|
|
4546
4218
|
function TableFooter({ className, ...props }) {
|
|
4547
|
-
return /* @__PURE__ */
|
|
4219
|
+
return /* @__PURE__ */ jsx42(
|
|
4548
4220
|
"tfoot",
|
|
4549
4221
|
{
|
|
4550
4222
|
"data-slot": "table-footer",
|
|
@@ -4557,7 +4229,7 @@ function TableFooter({ className, ...props }) {
|
|
|
4557
4229
|
);
|
|
4558
4230
|
}
|
|
4559
4231
|
function TableRow({ className, ...props }) {
|
|
4560
|
-
return /* @__PURE__ */
|
|
4232
|
+
return /* @__PURE__ */ jsx42(
|
|
4561
4233
|
"tr",
|
|
4562
4234
|
{
|
|
4563
4235
|
"data-slot": "table-row",
|
|
@@ -4570,7 +4242,7 @@ function TableRow({ className, ...props }) {
|
|
|
4570
4242
|
);
|
|
4571
4243
|
}
|
|
4572
4244
|
function TableHead({ className, ...props }) {
|
|
4573
|
-
return /* @__PURE__ */
|
|
4245
|
+
return /* @__PURE__ */ jsx42(
|
|
4574
4246
|
"th",
|
|
4575
4247
|
{
|
|
4576
4248
|
"data-slot": "table-head",
|
|
@@ -4583,7 +4255,7 @@ function TableHead({ className, ...props }) {
|
|
|
4583
4255
|
);
|
|
4584
4256
|
}
|
|
4585
4257
|
function TableCell({ className, ...props }) {
|
|
4586
|
-
return /* @__PURE__ */
|
|
4258
|
+
return /* @__PURE__ */ jsx42(
|
|
4587
4259
|
"td",
|
|
4588
4260
|
{
|
|
4589
4261
|
"data-slot": "table-cell",
|
|
@@ -4599,7 +4271,7 @@ function TableCaption({
|
|
|
4599
4271
|
className,
|
|
4600
4272
|
...props
|
|
4601
4273
|
}) {
|
|
4602
|
-
return /* @__PURE__ */
|
|
4274
|
+
return /* @__PURE__ */ jsx42(
|
|
4603
4275
|
"caption",
|
|
4604
4276
|
{
|
|
4605
4277
|
"data-slot": "table-caption",
|
|
@@ -4612,12 +4284,12 @@ function TableCaption({
|
|
|
4612
4284
|
// src/components/ui/tabs.tsx
|
|
4613
4285
|
import "react";
|
|
4614
4286
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4615
|
-
import { jsx as
|
|
4287
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4616
4288
|
function Tabs({
|
|
4617
4289
|
className,
|
|
4618
4290
|
...props
|
|
4619
4291
|
}) {
|
|
4620
|
-
return /* @__PURE__ */
|
|
4292
|
+
return /* @__PURE__ */ jsx43(
|
|
4621
4293
|
TabsPrimitive.Root,
|
|
4622
4294
|
{
|
|
4623
4295
|
"data-slot": "tabs",
|
|
@@ -4630,7 +4302,7 @@ function TabsList({
|
|
|
4630
4302
|
className,
|
|
4631
4303
|
...props
|
|
4632
4304
|
}) {
|
|
4633
|
-
return /* @__PURE__ */
|
|
4305
|
+
return /* @__PURE__ */ jsx43(
|
|
4634
4306
|
TabsPrimitive.List,
|
|
4635
4307
|
{
|
|
4636
4308
|
"data-slot": "tabs-list",
|
|
@@ -4646,12 +4318,12 @@ function TabsTrigger({
|
|
|
4646
4318
|
className,
|
|
4647
4319
|
...props
|
|
4648
4320
|
}) {
|
|
4649
|
-
return /* @__PURE__ */
|
|
4321
|
+
return /* @__PURE__ */ jsx43(
|
|
4650
4322
|
TabsPrimitive.Trigger,
|
|
4651
4323
|
{
|
|
4652
4324
|
"data-slot": "tabs-trigger",
|
|
4653
4325
|
className: cn(
|
|
4654
|
-
"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
4326
|
+
"cursor-pointer data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
4655
4327
|
className
|
|
4656
4328
|
),
|
|
4657
4329
|
...props
|
|
@@ -4662,7 +4334,7 @@ function TabsContent({
|
|
|
4662
4334
|
className,
|
|
4663
4335
|
...props
|
|
4664
4336
|
}) {
|
|
4665
|
-
return /* @__PURE__ */
|
|
4337
|
+
return /* @__PURE__ */ jsx43(
|
|
4666
4338
|
TabsPrimitive.Content,
|
|
4667
4339
|
{
|
|
4668
4340
|
"data-slot": "tabs-content",
|
|
@@ -4674,9 +4346,9 @@ function TabsContent({
|
|
|
4674
4346
|
|
|
4675
4347
|
// src/components/ui/textarea.tsx
|
|
4676
4348
|
import "react";
|
|
4677
|
-
import { jsx as
|
|
4349
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4678
4350
|
function Textarea({ className, ...props }) {
|
|
4679
|
-
return /* @__PURE__ */
|
|
4351
|
+
return /* @__PURE__ */ jsx44(
|
|
4680
4352
|
"textarea",
|
|
4681
4353
|
{
|
|
4682
4354
|
"data-slot": "textarea",
|
|
@@ -4692,9 +4364,9 @@ function Textarea({ className, ...props }) {
|
|
|
4692
4364
|
// src/components/ui/toggle.tsx
|
|
4693
4365
|
import "react";
|
|
4694
4366
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4695
|
-
import { cva as
|
|
4696
|
-
import { jsx as
|
|
4697
|
-
var toggleVariants =
|
|
4367
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
4368
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4369
|
+
var toggleVariants = cva6(
|
|
4698
4370
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
4699
4371
|
{
|
|
4700
4372
|
variants: {
|
|
@@ -4720,7 +4392,7 @@ function Toggle({
|
|
|
4720
4392
|
size,
|
|
4721
4393
|
...props
|
|
4722
4394
|
}) {
|
|
4723
|
-
return /* @__PURE__ */
|
|
4395
|
+
return /* @__PURE__ */ jsx45(
|
|
4724
4396
|
TogglePrimitive.Root,
|
|
4725
4397
|
{
|
|
4726
4398
|
"data-slot": "toggle",
|
|
@@ -4731,39 +4403,11 @@ function Toggle({
|
|
|
4731
4403
|
}
|
|
4732
4404
|
|
|
4733
4405
|
// src/components/ui/toggle-group.tsx
|
|
4734
|
-
import * as
|
|
4406
|
+
import * as React43 from "react";
|
|
4735
4407
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4736
4408
|
import "class-variance-authority";
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
import "react";
|
|
4740
|
-
import * as TogglePrimitive2 from "@radix-ui/react-toggle";
|
|
4741
|
-
import { cva as cva8 } from "class-variance-authority";
|
|
4742
|
-
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
4743
|
-
var toggleVariants2 = cva8(
|
|
4744
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
4745
|
-
{
|
|
4746
|
-
variants: {
|
|
4747
|
-
variant: {
|
|
4748
|
-
default: "bg-transparent",
|
|
4749
|
-
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
4750
|
-
},
|
|
4751
|
-
size: {
|
|
4752
|
-
default: "h-9 px-2 min-w-9",
|
|
4753
|
-
sm: "h-8 px-1.5 min-w-8",
|
|
4754
|
-
lg: "h-10 px-2.5 min-w-10"
|
|
4755
|
-
}
|
|
4756
|
-
},
|
|
4757
|
-
defaultVariants: {
|
|
4758
|
-
variant: "default",
|
|
4759
|
-
size: "default"
|
|
4760
|
-
}
|
|
4761
|
-
}
|
|
4762
|
-
);
|
|
4763
|
-
|
|
4764
|
-
// src/components/ui/toggle-group.tsx
|
|
4765
|
-
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
4766
|
-
var ToggleGroupContext = React50.createContext({
|
|
4409
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4410
|
+
var ToggleGroupContext = React43.createContext({
|
|
4767
4411
|
size: "default",
|
|
4768
4412
|
variant: "default"
|
|
4769
4413
|
});
|
|
@@ -4774,7 +4418,7 @@ function ToggleGroup({
|
|
|
4774
4418
|
children,
|
|
4775
4419
|
...props
|
|
4776
4420
|
}) {
|
|
4777
|
-
return /* @__PURE__ */
|
|
4421
|
+
return /* @__PURE__ */ jsx46(
|
|
4778
4422
|
ToggleGroupPrimitive.Root,
|
|
4779
4423
|
{
|
|
4780
4424
|
"data-slot": "toggle-group",
|
|
@@ -4785,7 +4429,7 @@ function ToggleGroup({
|
|
|
4785
4429
|
className
|
|
4786
4430
|
),
|
|
4787
4431
|
...props,
|
|
4788
|
-
children: /* @__PURE__ */
|
|
4432
|
+
children: /* @__PURE__ */ jsx46(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
4789
4433
|
}
|
|
4790
4434
|
);
|
|
4791
4435
|
}
|
|
@@ -4796,15 +4440,15 @@ function ToggleGroupItem({
|
|
|
4796
4440
|
size,
|
|
4797
4441
|
...props
|
|
4798
4442
|
}) {
|
|
4799
|
-
const context =
|
|
4800
|
-
return /* @__PURE__ */
|
|
4443
|
+
const context = React43.useContext(ToggleGroupContext);
|
|
4444
|
+
return /* @__PURE__ */ jsx46(
|
|
4801
4445
|
ToggleGroupPrimitive.Item,
|
|
4802
4446
|
{
|
|
4803
4447
|
"data-slot": "toggle-group-item",
|
|
4804
4448
|
"data-variant": context.variant || variant,
|
|
4805
4449
|
"data-size": context.size || size,
|
|
4806
4450
|
className: cn(
|
|
4807
|
-
|
|
4451
|
+
toggleVariants({
|
|
4808
4452
|
variant: context.variant || variant,
|
|
4809
4453
|
size: context.size || size
|
|
4810
4454
|
}),
|
|
@@ -4816,81 +4460,6 @@ function ToggleGroupItem({
|
|
|
4816
4460
|
}
|
|
4817
4461
|
);
|
|
4818
4462
|
}
|
|
4819
|
-
|
|
4820
|
-
// src/components/ui/tooltip.tsx
|
|
4821
|
-
import "react";
|
|
4822
|
-
import * as TooltipPrimitive2 from "@radix-ui/react-tooltip";
|
|
4823
|
-
import { jsx as jsx55, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4824
|
-
function TooltipProvider2({
|
|
4825
|
-
delayDuration = 0,
|
|
4826
|
-
...props
|
|
4827
|
-
}) {
|
|
4828
|
-
return /* @__PURE__ */ jsx55(
|
|
4829
|
-
TooltipPrimitive2.Provider,
|
|
4830
|
-
{
|
|
4831
|
-
"data-slot": "tooltip-provider",
|
|
4832
|
-
delayDuration,
|
|
4833
|
-
...props
|
|
4834
|
-
}
|
|
4835
|
-
);
|
|
4836
|
-
}
|
|
4837
|
-
function Tooltip3({
|
|
4838
|
-
...props
|
|
4839
|
-
}) {
|
|
4840
|
-
return /* @__PURE__ */ jsx55(TooltipProvider2, { children: /* @__PURE__ */ jsx55(TooltipPrimitive2.Root, { "data-slot": "tooltip", ...props }) });
|
|
4841
|
-
}
|
|
4842
|
-
function TooltipTrigger2({
|
|
4843
|
-
...props
|
|
4844
|
-
}) {
|
|
4845
|
-
return /* @__PURE__ */ jsx55(TooltipPrimitive2.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
4846
|
-
}
|
|
4847
|
-
function TooltipContent2({
|
|
4848
|
-
className,
|
|
4849
|
-
sideOffset = 0,
|
|
4850
|
-
children,
|
|
4851
|
-
...props
|
|
4852
|
-
}) {
|
|
4853
|
-
return /* @__PURE__ */ jsx55(TooltipPrimitive2.Portal, { children: /* @__PURE__ */ jsxs23(
|
|
4854
|
-
TooltipPrimitive2.Content,
|
|
4855
|
-
{
|
|
4856
|
-
"data-slot": "tooltip-content",
|
|
4857
|
-
sideOffset,
|
|
4858
|
-
className: cn(
|
|
4859
|
-
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
4860
|
-
className
|
|
4861
|
-
),
|
|
4862
|
-
...props,
|
|
4863
|
-
children: [
|
|
4864
|
-
children,
|
|
4865
|
-
/* @__PURE__ */ jsx55(TooltipPrimitive2.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
4866
|
-
]
|
|
4867
|
-
}
|
|
4868
|
-
) });
|
|
4869
|
-
}
|
|
4870
|
-
|
|
4871
|
-
// src/lib/utils.ts
|
|
4872
|
-
import { clsx as clsx2 } from "clsx";
|
|
4873
|
-
import { twMerge as twMerge2 } from "tailwind-merge";
|
|
4874
|
-
function cn2(...inputs) {
|
|
4875
|
-
return twMerge2(clsx2(inputs));
|
|
4876
|
-
}
|
|
4877
|
-
|
|
4878
|
-
// src/hooks/use-mobile.ts
|
|
4879
|
-
import * as React52 from "react";
|
|
4880
|
-
var MOBILE_BREAKPOINT2 = 768;
|
|
4881
|
-
function useIsMobile2() {
|
|
4882
|
-
const [isMobile, setIsMobile] = React52.useState(void 0);
|
|
4883
|
-
React52.useEffect(() => {
|
|
4884
|
-
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT2 - 1}px)`);
|
|
4885
|
-
const onChange = () => {
|
|
4886
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT2);
|
|
4887
|
-
};
|
|
4888
|
-
mql.addEventListener("change", onChange);
|
|
4889
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT2);
|
|
4890
|
-
return () => mql.removeEventListener("change", onChange);
|
|
4891
|
-
}, []);
|
|
4892
|
-
return !!isMobile;
|
|
4893
|
-
}
|
|
4894
4463
|
export {
|
|
4895
4464
|
Accordion,
|
|
4896
4465
|
AccordionContent,
|
|
@@ -4922,7 +4491,7 @@ export {
|
|
|
4922
4491
|
BreadcrumbList,
|
|
4923
4492
|
BreadcrumbPage,
|
|
4924
4493
|
BreadcrumbSeparator,
|
|
4925
|
-
|
|
4494
|
+
Button,
|
|
4926
4495
|
Calendar,
|
|
4927
4496
|
CalendarDayButton,
|
|
4928
4497
|
Card,
|
|
@@ -4971,15 +4540,15 @@ export {
|
|
|
4971
4540
|
ContextMenuSubContent,
|
|
4972
4541
|
ContextMenuSubTrigger,
|
|
4973
4542
|
ContextMenuTrigger,
|
|
4974
|
-
|
|
4543
|
+
Dialog,
|
|
4975
4544
|
DialogClose,
|
|
4976
|
-
|
|
4977
|
-
|
|
4545
|
+
DialogContent,
|
|
4546
|
+
DialogDescription,
|
|
4978
4547
|
DialogFooter,
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4548
|
+
DialogHeader,
|
|
4549
|
+
DialogOverlay,
|
|
4550
|
+
DialogPortal,
|
|
4551
|
+
DialogTitle,
|
|
4983
4552
|
DialogTrigger,
|
|
4984
4553
|
Drawer,
|
|
4985
4554
|
DrawerClose,
|
|
@@ -5021,7 +4590,7 @@ export {
|
|
|
5021
4590
|
InputOTPGroup,
|
|
5022
4591
|
InputOTPSeparator,
|
|
5023
4592
|
InputOTPSlot,
|
|
5024
|
-
|
|
4593
|
+
Label3 as Label,
|
|
5025
4594
|
Menubar,
|
|
5026
4595
|
MenubarCheckboxItem,
|
|
5027
4596
|
MenubarContent,
|
|
@@ -5107,7 +4676,7 @@ export {
|
|
|
5107
4676
|
SidebarRail,
|
|
5108
4677
|
SidebarSeparator,
|
|
5109
4678
|
SidebarTrigger,
|
|
5110
|
-
|
|
4679
|
+
Skeleton,
|
|
5111
4680
|
Slider,
|
|
5112
4681
|
Switch,
|
|
5113
4682
|
Table,
|
|
@@ -5127,17 +4696,17 @@ export {
|
|
|
5127
4696
|
Toggle,
|
|
5128
4697
|
ToggleGroup,
|
|
5129
4698
|
ToggleGroupItem,
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
4699
|
+
Tooltip2 as Tooltip,
|
|
4700
|
+
TooltipContent,
|
|
4701
|
+
TooltipProvider,
|
|
4702
|
+
TooltipTrigger,
|
|
5134
4703
|
badgeVariants,
|
|
5135
|
-
|
|
5136
|
-
|
|
4704
|
+
buttonVariants,
|
|
4705
|
+
cn,
|
|
5137
4706
|
navigationMenuTriggerStyle,
|
|
5138
4707
|
toggleVariants,
|
|
5139
4708
|
useFormField,
|
|
5140
|
-
|
|
4709
|
+
useIsMobile,
|
|
5141
4710
|
useSidebar
|
|
5142
4711
|
};
|
|
5143
4712
|
//# sourceMappingURL=index.mjs.map
|