@hex-core/components 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +178 -1
- package/dist/index.js +942 -232
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -728,11 +728,177 @@ ScrollBar.displayName = "ScrollBar";
|
|
|
728
728
|
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
729
729
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
730
730
|
|
|
731
|
+
// src/primitives/container/container.tsx
|
|
732
|
+
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
733
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
734
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
735
|
+
var containerVariants = cva5("mx-auto w-full", {
|
|
736
|
+
variants: {
|
|
737
|
+
size: {
|
|
738
|
+
sm: "max-w-[var(--container-sm,33rem)]",
|
|
739
|
+
md: "max-w-[var(--container-md,40rem)]",
|
|
740
|
+
lg: "max-w-[var(--container-lg,50rem)]",
|
|
741
|
+
xl: "max-w-[var(--container-xl,66rem)]",
|
|
742
|
+
full: "max-w-full"
|
|
743
|
+
},
|
|
744
|
+
padding: {
|
|
745
|
+
none: "",
|
|
746
|
+
sm: "px-[var(--space-3,0.75rem)]",
|
|
747
|
+
md: "px-[var(--space-4,1rem)]",
|
|
748
|
+
lg: "px-[var(--space-8,2rem)]"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
defaultVariants: {
|
|
752
|
+
size: "lg",
|
|
753
|
+
padding: "md"
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
function Container({ className, size, padding, asChild = false, ...props }) {
|
|
757
|
+
const Comp = asChild ? Slot2 : "div";
|
|
758
|
+
return /* @__PURE__ */ jsx18(Comp, { className: cn(containerVariants({ size, padding }), className), ...props });
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
// src/primitives/stack/stack.tsx
|
|
762
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
763
|
+
|
|
764
|
+
// src/primitives/_shared/layout-variants.ts
|
|
765
|
+
var gapVariants = {
|
|
766
|
+
xs: "gap-[var(--gap-xs,0.25rem)]",
|
|
767
|
+
sm: "gap-[var(--gap-sm,0.5rem)]",
|
|
768
|
+
md: "gap-[var(--gap-md,1rem)]",
|
|
769
|
+
lg: "gap-[var(--gap-lg,1.5rem)]",
|
|
770
|
+
xl: "gap-[var(--gap-xl,2rem)]"
|
|
771
|
+
};
|
|
772
|
+
var justifyVariants = {
|
|
773
|
+
start: "justify-start",
|
|
774
|
+
center: "justify-center",
|
|
775
|
+
end: "justify-end",
|
|
776
|
+
between: "justify-between"
|
|
777
|
+
};
|
|
778
|
+
var flexAlignVariants = {
|
|
779
|
+
start: "items-start",
|
|
780
|
+
center: "items-center",
|
|
781
|
+
end: "items-end",
|
|
782
|
+
stretch: "items-stretch"
|
|
783
|
+
};
|
|
784
|
+
var clusterAlignVariants = {
|
|
785
|
+
start: "items-start",
|
|
786
|
+
center: "items-center",
|
|
787
|
+
end: "items-end",
|
|
788
|
+
stretch: "items-stretch",
|
|
789
|
+
baseline: "items-baseline"
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
// src/primitives/stack/stack.tsx
|
|
793
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
794
|
+
var stackVariants = cva6("flex flex-col", {
|
|
795
|
+
variants: {
|
|
796
|
+
gap: gapVariants,
|
|
797
|
+
align: flexAlignVariants,
|
|
798
|
+
justify: justifyVariants
|
|
799
|
+
},
|
|
800
|
+
defaultVariants: {
|
|
801
|
+
gap: "md",
|
|
802
|
+
align: "stretch",
|
|
803
|
+
justify: "start"
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
function Stack({ className, gap, align, justify, ...props }) {
|
|
807
|
+
return /* @__PURE__ */ jsx19("div", { className: cn(stackVariants({ gap, align, justify }), className), ...props });
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
// src/primitives/cluster/cluster.tsx
|
|
811
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
812
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
813
|
+
var clusterVariants = cva7("flex flex-wrap", {
|
|
814
|
+
variants: {
|
|
815
|
+
gap: gapVariants,
|
|
816
|
+
align: clusterAlignVariants,
|
|
817
|
+
justify: justifyVariants
|
|
818
|
+
},
|
|
819
|
+
defaultVariants: {
|
|
820
|
+
gap: "md",
|
|
821
|
+
align: "center",
|
|
822
|
+
justify: "start"
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
function Cluster({ className, gap, align, justify, ...props }) {
|
|
826
|
+
return /* @__PURE__ */ jsx20("div", { className: cn(clusterVariants({ gap, align, justify }), className), ...props });
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
// src/primitives/grid/grid.tsx
|
|
830
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
831
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
832
|
+
var gridVariants = cva8("grid", {
|
|
833
|
+
variants: {
|
|
834
|
+
cols: {
|
|
835
|
+
1: "grid-cols-1",
|
|
836
|
+
2: "grid-cols-2",
|
|
837
|
+
3: "grid-cols-3",
|
|
838
|
+
4: "grid-cols-4",
|
|
839
|
+
6: "grid-cols-6",
|
|
840
|
+
"auto-fit": ""
|
|
841
|
+
},
|
|
842
|
+
gap: gapVariants,
|
|
843
|
+
align: flexAlignVariants
|
|
844
|
+
},
|
|
845
|
+
defaultVariants: {
|
|
846
|
+
cols: 3,
|
|
847
|
+
gap: "md",
|
|
848
|
+
align: "stretch"
|
|
849
|
+
}
|
|
850
|
+
});
|
|
851
|
+
function Grid({ className, cols, gap, align, minColWidth = "16rem", style, ...props }) {
|
|
852
|
+
const inlineStyle = cols === "auto-fit" ? { gridTemplateColumns: `repeat(auto-fit, minmax(${minColWidth}, 1fr))`, ...style } : style;
|
|
853
|
+
return /* @__PURE__ */ jsx21(
|
|
854
|
+
"div",
|
|
855
|
+
{
|
|
856
|
+
className: cn(gridVariants({ cols, gap, align }), className),
|
|
857
|
+
style: inlineStyle,
|
|
858
|
+
...props
|
|
859
|
+
}
|
|
860
|
+
);
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
// src/primitives/spacer/spacer.tsx
|
|
864
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
865
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
866
|
+
var spacerVariants = cva9("shrink-0", {
|
|
867
|
+
variants: {
|
|
868
|
+
size: {
|
|
869
|
+
xs: "[--spacer-size:var(--space-1,0.25rem)]",
|
|
870
|
+
sm: "[--spacer-size:var(--space-2,0.5rem)]",
|
|
871
|
+
md: "[--spacer-size:var(--space-4,1rem)]",
|
|
872
|
+
lg: "[--spacer-size:var(--space-8,2rem)]",
|
|
873
|
+
xl: "[--spacer-size:var(--space-16,4rem)]"
|
|
874
|
+
},
|
|
875
|
+
axis: {
|
|
876
|
+
vertical: "h-[var(--spacer-size)] w-0",
|
|
877
|
+
horizontal: "w-[var(--spacer-size)] h-0",
|
|
878
|
+
both: "h-[var(--spacer-size)] w-[var(--spacer-size)]"
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
defaultVariants: {
|
|
882
|
+
size: "md",
|
|
883
|
+
axis: "vertical"
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
function Spacer({ className, size, axis, ...props }) {
|
|
887
|
+
return /* @__PURE__ */ jsx22(
|
|
888
|
+
"div",
|
|
889
|
+
{
|
|
890
|
+
"aria-hidden": "true",
|
|
891
|
+
className: cn(spacerVariants({ size, axis }), className),
|
|
892
|
+
...props
|
|
893
|
+
}
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
|
|
731
897
|
// src/components/card/card.tsx
|
|
732
898
|
import * as React16 from "react";
|
|
733
|
-
import { jsx as
|
|
899
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
734
900
|
var Card = React16.forwardRef(
|
|
735
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
901
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
736
902
|
"div",
|
|
737
903
|
{
|
|
738
904
|
ref,
|
|
@@ -748,7 +914,7 @@ var Card = React16.forwardRef(
|
|
|
748
914
|
);
|
|
749
915
|
Card.displayName = "Card";
|
|
750
916
|
var CardHeader = React16.forwardRef(
|
|
751
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
917
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
752
918
|
"div",
|
|
753
919
|
{
|
|
754
920
|
ref,
|
|
@@ -759,7 +925,7 @@ var CardHeader = React16.forwardRef(
|
|
|
759
925
|
);
|
|
760
926
|
CardHeader.displayName = "CardHeader";
|
|
761
927
|
var CardTitle = React16.forwardRef(
|
|
762
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
928
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
763
929
|
"h3",
|
|
764
930
|
{
|
|
765
931
|
ref,
|
|
@@ -769,14 +935,14 @@ var CardTitle = React16.forwardRef(
|
|
|
769
935
|
)
|
|
770
936
|
);
|
|
771
937
|
CardTitle.displayName = "CardTitle";
|
|
772
|
-
var CardDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
938
|
+
var CardDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
773
939
|
CardDescription.displayName = "CardDescription";
|
|
774
940
|
var CardContent = React16.forwardRef(
|
|
775
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
941
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx23("div", { ref, className: cn("p-[var(--space-6,1.5rem)] pt-0", className), ...props })
|
|
776
942
|
);
|
|
777
943
|
CardContent.displayName = "CardContent";
|
|
778
944
|
var CardFooter = React16.forwardRef(
|
|
779
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
945
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
780
946
|
"div",
|
|
781
947
|
{
|
|
782
948
|
ref,
|
|
@@ -790,9 +956,9 @@ CardFooter.displayName = "CardFooter";
|
|
|
790
956
|
// src/components/tabs/tabs.tsx
|
|
791
957
|
import * as React17 from "react";
|
|
792
958
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
793
|
-
import { jsx as
|
|
959
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
794
960
|
var Tabs = TabsPrimitive.Root;
|
|
795
|
-
var TabsList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
961
|
+
var TabsList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
796
962
|
TabsPrimitive.List,
|
|
797
963
|
{
|
|
798
964
|
ref,
|
|
@@ -804,7 +970,7 @@ var TabsList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
804
970
|
}
|
|
805
971
|
));
|
|
806
972
|
TabsList.displayName = "TabsList";
|
|
807
|
-
var TabsTrigger = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
973
|
+
var TabsTrigger = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
808
974
|
TabsPrimitive.Trigger,
|
|
809
975
|
{
|
|
810
976
|
ref,
|
|
@@ -821,7 +987,7 @@ var TabsTrigger = React17.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
821
987
|
}
|
|
822
988
|
));
|
|
823
989
|
TabsTrigger.displayName = "TabsTrigger";
|
|
824
|
-
var TabsContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
990
|
+
var TabsContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
825
991
|
TabsPrimitive.Content,
|
|
826
992
|
{
|
|
827
993
|
ref,
|
|
@@ -838,11 +1004,11 @@ TabsContent.displayName = "TabsContent";
|
|
|
838
1004
|
// src/components/accordion/accordion.tsx
|
|
839
1005
|
import * as React18 from "react";
|
|
840
1006
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
841
|
-
import { jsx as
|
|
1007
|
+
import { jsx as jsx25, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
842
1008
|
var Accordion = AccordionPrimitive.Root;
|
|
843
|
-
var AccordionItem = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1009
|
+
var AccordionItem = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(AccordionPrimitive.Item, { ref, className: cn("border-b", className), ...props }));
|
|
844
1010
|
AccordionItem.displayName = "AccordionItem";
|
|
845
|
-
var AccordionTrigger = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
1011
|
+
var AccordionTrigger = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx25(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs6(
|
|
846
1012
|
AccordionPrimitive.Trigger,
|
|
847
1013
|
{
|
|
848
1014
|
ref,
|
|
@@ -856,7 +1022,7 @@ var AccordionTrigger = React18.forwardRef(({ className, children, ...props }, re
|
|
|
856
1022
|
...props,
|
|
857
1023
|
children: [
|
|
858
1024
|
children,
|
|
859
|
-
/* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ jsx25(
|
|
860
1026
|
"svg",
|
|
861
1027
|
{
|
|
862
1028
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -870,20 +1036,20 @@ var AccordionTrigger = React18.forwardRef(({ className, children, ...props }, re
|
|
|
870
1036
|
strokeLinejoin: "round",
|
|
871
1037
|
className: "h-4 w-4 shrink-0 transition-transform duration-[var(--duration-normal,200ms)]",
|
|
872
1038
|
"aria-hidden": "true",
|
|
873
|
-
children: /* @__PURE__ */
|
|
1039
|
+
children: /* @__PURE__ */ jsx25("polyline", { points: "6 9 12 15 18 9" })
|
|
874
1040
|
}
|
|
875
1041
|
)
|
|
876
1042
|
]
|
|
877
1043
|
}
|
|
878
1044
|
) }));
|
|
879
1045
|
AccordionTrigger.displayName = "AccordionTrigger";
|
|
880
|
-
var AccordionContent = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
1046
|
+
var AccordionContent = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
881
1047
|
AccordionPrimitive.Content,
|
|
882
1048
|
{
|
|
883
1049
|
ref,
|
|
884
1050
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
885
1051
|
...props,
|
|
886
|
-
children: /* @__PURE__ */
|
|
1052
|
+
children: /* @__PURE__ */ jsx25("div", { className: cn("pb-[var(--space-4,1rem)] pt-0", className), children })
|
|
887
1053
|
}
|
|
888
1054
|
));
|
|
889
1055
|
AccordionContent.displayName = "AccordionContent";
|
|
@@ -891,12 +1057,12 @@ AccordionContent.displayName = "AccordionContent";
|
|
|
891
1057
|
// src/components/dialog/dialog.tsx
|
|
892
1058
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
893
1059
|
import * as React19 from "react";
|
|
894
|
-
import { jsx as
|
|
1060
|
+
import { jsx as jsx26, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
895
1061
|
var Dialog = DialogPrimitive.Root;
|
|
896
1062
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
897
1063
|
var DialogPortal = DialogPrimitive.Portal;
|
|
898
1064
|
var DialogClose = DialogPrimitive.Close;
|
|
899
|
-
var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1065
|
+
var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
900
1066
|
DialogPrimitive.Overlay,
|
|
901
1067
|
{
|
|
902
1068
|
ref,
|
|
@@ -911,7 +1077,7 @@ var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
911
1077
|
));
|
|
912
1078
|
DialogOverlay.displayName = "DialogOverlay";
|
|
913
1079
|
var DialogContent = React19.forwardRef(({ className, children, scrollable = true, ...props }, ref) => /* @__PURE__ */ jsxs7(DialogPortal, { children: [
|
|
914
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ jsx26(DialogOverlay, {}),
|
|
915
1081
|
/* @__PURE__ */ jsxs7(
|
|
916
1082
|
DialogPrimitive.Content,
|
|
917
1083
|
{
|
|
@@ -926,7 +1092,7 @@ var DialogContent = React19.forwardRef(({ className, children, scrollable = true
|
|
|
926
1092
|
),
|
|
927
1093
|
...props,
|
|
928
1094
|
children: [
|
|
929
|
-
scrollable ? /* @__PURE__ */
|
|
1095
|
+
scrollable ? /* @__PURE__ */ jsx26("div", { className: "grid gap-[var(--gap-md,1rem)] overflow-y-auto p-[var(--space-6,1.5rem)]", children }) : children,
|
|
930
1096
|
/* @__PURE__ */ jsxs7(
|
|
931
1097
|
DialogPrimitive.Close,
|
|
932
1098
|
{
|
|
@@ -950,12 +1116,12 @@ var DialogContent = React19.forwardRef(({ className, children, scrollable = true
|
|
|
950
1116
|
className: "h-4 w-4",
|
|
951
1117
|
"aria-hidden": "true",
|
|
952
1118
|
children: [
|
|
953
|
-
/* @__PURE__ */
|
|
954
|
-
/* @__PURE__ */
|
|
1119
|
+
/* @__PURE__ */ jsx26("path", { d: "M18 6 6 18" }),
|
|
1120
|
+
/* @__PURE__ */ jsx26("path", { d: "m6 6 12 12" })
|
|
955
1121
|
]
|
|
956
1122
|
}
|
|
957
1123
|
),
|
|
958
|
-
/* @__PURE__ */
|
|
1124
|
+
/* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Close" })
|
|
959
1125
|
]
|
|
960
1126
|
}
|
|
961
1127
|
)
|
|
@@ -965,7 +1131,7 @@ var DialogContent = React19.forwardRef(({ className, children, scrollable = true
|
|
|
965
1131
|
] }));
|
|
966
1132
|
DialogContent.displayName = "DialogContent";
|
|
967
1133
|
function DialogHeader({ className, ...props }) {
|
|
968
|
-
return /* @__PURE__ */
|
|
1134
|
+
return /* @__PURE__ */ jsx26(
|
|
969
1135
|
"div",
|
|
970
1136
|
{
|
|
971
1137
|
className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className),
|
|
@@ -974,7 +1140,7 @@ function DialogHeader({ className, ...props }) {
|
|
|
974
1140
|
);
|
|
975
1141
|
}
|
|
976
1142
|
function DialogFooter({ className, ...props }) {
|
|
977
|
-
return /* @__PURE__ */
|
|
1143
|
+
return /* @__PURE__ */ jsx26(
|
|
978
1144
|
"div",
|
|
979
1145
|
{
|
|
980
1146
|
className: cn(
|
|
@@ -985,7 +1151,7 @@ function DialogFooter({ className, ...props }) {
|
|
|
985
1151
|
}
|
|
986
1152
|
);
|
|
987
1153
|
}
|
|
988
|
-
var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1154
|
+
var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
989
1155
|
DialogPrimitive.Title,
|
|
990
1156
|
{
|
|
991
1157
|
ref,
|
|
@@ -994,7 +1160,7 @@ var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
994
1160
|
}
|
|
995
1161
|
));
|
|
996
1162
|
DialogTitle.displayName = "DialogTitle";
|
|
997
|
-
var DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1163
|
+
var DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
998
1164
|
DialogPrimitive.Description,
|
|
999
1165
|
{
|
|
1000
1166
|
ref,
|
|
@@ -1007,11 +1173,11 @@ DialogDescription.displayName = "DialogDescription";
|
|
|
1007
1173
|
// src/components/alert-dialog/alert-dialog.tsx
|
|
1008
1174
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
1009
1175
|
import * as React20 from "react";
|
|
1010
|
-
import { jsx as
|
|
1176
|
+
import { jsx as jsx27, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1011
1177
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1012
1178
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1013
1179
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1014
|
-
var AlertDialogOverlay = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1180
|
+
var AlertDialogOverlay = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1015
1181
|
AlertDialogPrimitive.Overlay,
|
|
1016
1182
|
{
|
|
1017
1183
|
ref,
|
|
@@ -1026,8 +1192,8 @@ var AlertDialogOverlay = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1026
1192
|
));
|
|
1027
1193
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1028
1194
|
var AlertDialogContent = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8(AlertDialogPortal, { children: [
|
|
1029
|
-
/* @__PURE__ */
|
|
1030
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ jsx27(AlertDialogOverlay, {}),
|
|
1196
|
+
/* @__PURE__ */ jsx27(
|
|
1031
1197
|
AlertDialogPrimitive.Content,
|
|
1032
1198
|
{
|
|
1033
1199
|
ref,
|
|
@@ -1045,7 +1211,7 @@ var AlertDialogContent = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1045
1211
|
] }));
|
|
1046
1212
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
1047
1213
|
function AlertDialogHeader({ className, ...props }) {
|
|
1048
|
-
return /* @__PURE__ */
|
|
1214
|
+
return /* @__PURE__ */ jsx27(
|
|
1049
1215
|
"div",
|
|
1050
1216
|
{
|
|
1051
1217
|
className: cn("flex flex-col space-y-2 text-center sm:text-left", className),
|
|
@@ -1054,7 +1220,7 @@ function AlertDialogHeader({ className, ...props }) {
|
|
|
1054
1220
|
);
|
|
1055
1221
|
}
|
|
1056
1222
|
function AlertDialogFooter({ className, ...props }) {
|
|
1057
|
-
return /* @__PURE__ */
|
|
1223
|
+
return /* @__PURE__ */ jsx27(
|
|
1058
1224
|
"div",
|
|
1059
1225
|
{
|
|
1060
1226
|
className: cn(
|
|
@@ -1065,7 +1231,7 @@ function AlertDialogFooter({ className, ...props }) {
|
|
|
1065
1231
|
}
|
|
1066
1232
|
);
|
|
1067
1233
|
}
|
|
1068
|
-
var AlertDialogTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1234
|
+
var AlertDialogTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1069
1235
|
AlertDialogPrimitive.Title,
|
|
1070
1236
|
{
|
|
1071
1237
|
ref,
|
|
@@ -1074,7 +1240,7 @@ var AlertDialogTitle = React20.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1074
1240
|
}
|
|
1075
1241
|
));
|
|
1076
1242
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
1077
|
-
var AlertDialogDescription = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1243
|
+
var AlertDialogDescription = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1078
1244
|
AlertDialogPrimitive.Description,
|
|
1079
1245
|
{
|
|
1080
1246
|
ref,
|
|
@@ -1083,7 +1249,7 @@ var AlertDialogDescription = React20.forwardRef(({ className, ...props }, ref) =
|
|
|
1083
1249
|
}
|
|
1084
1250
|
));
|
|
1085
1251
|
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
1086
|
-
var AlertDialogAction = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1252
|
+
var AlertDialogAction = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1087
1253
|
AlertDialogPrimitive.Action,
|
|
1088
1254
|
{
|
|
1089
1255
|
ref,
|
|
@@ -1101,7 +1267,7 @@ var AlertDialogAction = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1101
1267
|
}
|
|
1102
1268
|
));
|
|
1103
1269
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
1104
|
-
var AlertDialogCancel = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1270
|
+
var AlertDialogCancel = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1105
1271
|
AlertDialogPrimitive.Cancel,
|
|
1106
1272
|
{
|
|
1107
1273
|
ref,
|
|
@@ -1123,14 +1289,14 @@ AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
|
1123
1289
|
// src/components/dropdown-menu/dropdown-menu.tsx
|
|
1124
1290
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
1125
1291
|
import * as React21 from "react";
|
|
1126
|
-
import { jsx as
|
|
1292
|
+
import { jsx as jsx28, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1127
1293
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1128
1294
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1129
1295
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
1130
1296
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1131
1297
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1132
1298
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1133
|
-
var DropdownMenuContent = React21.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
1299
|
+
var DropdownMenuContent = React21.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx28(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx28(
|
|
1134
1300
|
DropdownMenuPrimitive.Content,
|
|
1135
1301
|
{
|
|
1136
1302
|
ref,
|
|
@@ -1147,7 +1313,7 @@ var DropdownMenuContent = React21.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1147
1313
|
}
|
|
1148
1314
|
) }));
|
|
1149
1315
|
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
1150
|
-
var DropdownMenuItem = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
1316
|
+
var DropdownMenuItem = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1151
1317
|
DropdownMenuPrimitive.Item,
|
|
1152
1318
|
{
|
|
1153
1319
|
ref,
|
|
@@ -1177,7 +1343,7 @@ var DropdownMenuCheckboxItem = React21.forwardRef(({ className, children, checke
|
|
|
1177
1343
|
checked,
|
|
1178
1344
|
...props,
|
|
1179
1345
|
children: [
|
|
1180
|
-
/* @__PURE__ */
|
|
1346
|
+
/* @__PURE__ */ jsx28("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx28(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx28(
|
|
1181
1347
|
"svg",
|
|
1182
1348
|
{
|
|
1183
1349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1189,7 +1355,7 @@ var DropdownMenuCheckboxItem = React21.forwardRef(({ className, children, checke
|
|
|
1189
1355
|
strokeLinejoin: "round",
|
|
1190
1356
|
className: "h-4 w-4",
|
|
1191
1357
|
"aria-hidden": "true",
|
|
1192
|
-
children: /* @__PURE__ */
|
|
1358
|
+
children: /* @__PURE__ */ jsx28("polyline", { points: "20 6 9 17 4 12" })
|
|
1193
1359
|
}
|
|
1194
1360
|
) }) }),
|
|
1195
1361
|
children
|
|
@@ -1210,13 +1376,13 @@ var DropdownMenuRadioItem = React21.forwardRef(({ className, children, ...props
|
|
|
1210
1376
|
),
|
|
1211
1377
|
...props,
|
|
1212
1378
|
children: [
|
|
1213
|
-
/* @__PURE__ */
|
|
1379
|
+
/* @__PURE__ */ jsx28("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx28(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx28("svg", { viewBox: "0 0 24 24", className: "h-2 w-2 fill-current", "aria-hidden": "true", children: /* @__PURE__ */ jsx28("circle", { cx: "12", cy: "12", r: "10" }) }) }) }),
|
|
1214
1380
|
children
|
|
1215
1381
|
]
|
|
1216
1382
|
}
|
|
1217
1383
|
));
|
|
1218
1384
|
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
1219
|
-
var DropdownMenuLabel = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
1385
|
+
var DropdownMenuLabel = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1220
1386
|
DropdownMenuPrimitive.Label,
|
|
1221
1387
|
{
|
|
1222
1388
|
ref,
|
|
@@ -1225,7 +1391,7 @@ var DropdownMenuLabel = React21.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1225
1391
|
}
|
|
1226
1392
|
));
|
|
1227
1393
|
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
1228
|
-
var DropdownMenuSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1394
|
+
var DropdownMenuSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1229
1395
|
DropdownMenuPrimitive.Separator,
|
|
1230
1396
|
{
|
|
1231
1397
|
ref,
|
|
@@ -1235,7 +1401,7 @@ var DropdownMenuSeparator = React21.forwardRef(({ className, ...props }, ref) =>
|
|
|
1235
1401
|
));
|
|
1236
1402
|
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
1237
1403
|
function DropdownMenuShortcut({ className, ...props }) {
|
|
1238
|
-
return /* @__PURE__ */
|
|
1404
|
+
return /* @__PURE__ */ jsx28(
|
|
1239
1405
|
"span",
|
|
1240
1406
|
{
|
|
1241
1407
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -1247,11 +1413,11 @@ function DropdownMenuShortcut({ className, ...props }) {
|
|
|
1247
1413
|
// src/components/popover/popover.tsx
|
|
1248
1414
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1249
1415
|
import * as React22 from "react";
|
|
1250
|
-
import { jsx as
|
|
1416
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1251
1417
|
var Popover = PopoverPrimitive.Root;
|
|
1252
1418
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1253
1419
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
1254
|
-
var PopoverContent = React22.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
1420
|
+
var PopoverContent = React22.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx29(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx29(
|
|
1255
1421
|
PopoverPrimitive.Content,
|
|
1256
1422
|
{
|
|
1257
1423
|
ref,
|
|
@@ -1273,11 +1439,11 @@ PopoverContent.displayName = "PopoverContent";
|
|
|
1273
1439
|
// src/components/tooltip/tooltip.tsx
|
|
1274
1440
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
1275
1441
|
import * as React23 from "react";
|
|
1276
|
-
import { jsx as
|
|
1442
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1277
1443
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1278
1444
|
var Tooltip = TooltipPrimitive.Root;
|
|
1279
1445
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1280
|
-
var TooltipContent = React23.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
1446
|
+
var TooltipContent = React23.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx30(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx30(
|
|
1281
1447
|
TooltipPrimitive.Content,
|
|
1282
1448
|
{
|
|
1283
1449
|
ref,
|
|
@@ -1295,7 +1461,7 @@ var TooltipContent = React23.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
1295
1461
|
TooltipContent.displayName = "TooltipContent";
|
|
1296
1462
|
|
|
1297
1463
|
// src/components/form/form.tsx
|
|
1298
|
-
import { Slot as
|
|
1464
|
+
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
1299
1465
|
import * as React24 from "react";
|
|
1300
1466
|
import {
|
|
1301
1467
|
Controller,
|
|
@@ -1303,13 +1469,13 @@ import {
|
|
|
1303
1469
|
useFormContext,
|
|
1304
1470
|
useFormState
|
|
1305
1471
|
} from "react-hook-form";
|
|
1306
|
-
import { jsx as
|
|
1472
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1307
1473
|
var Form = FormProvider;
|
|
1308
1474
|
var FormFieldContext = React24.createContext({});
|
|
1309
1475
|
var FormField = ({
|
|
1310
1476
|
...props
|
|
1311
1477
|
}) => {
|
|
1312
|
-
return /* @__PURE__ */
|
|
1478
|
+
return /* @__PURE__ */ jsx31(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx31(Controller, { ...props }) });
|
|
1313
1479
|
};
|
|
1314
1480
|
var FormItemContext = React24.createContext({});
|
|
1315
1481
|
function useFormField() {
|
|
@@ -1334,13 +1500,13 @@ function useFormField() {
|
|
|
1334
1500
|
var FormItem = React24.forwardRef(
|
|
1335
1501
|
({ className, ...props }, ref) => {
|
|
1336
1502
|
const id = React24.useId();
|
|
1337
|
-
return /* @__PURE__ */
|
|
1503
|
+
return /* @__PURE__ */ jsx31(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx31("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
1338
1504
|
}
|
|
1339
1505
|
);
|
|
1340
1506
|
FormItem.displayName = "FormItem";
|
|
1341
1507
|
var FormLabel = React24.forwardRef(({ className, ...props }, ref) => {
|
|
1342
1508
|
const { error, formItemId } = useFormField();
|
|
1343
|
-
return /* @__PURE__ */
|
|
1509
|
+
return /* @__PURE__ */ jsx31(
|
|
1344
1510
|
Label,
|
|
1345
1511
|
{
|
|
1346
1512
|
ref,
|
|
@@ -1353,8 +1519,8 @@ var FormLabel = React24.forwardRef(({ className, ...props }, ref) => {
|
|
|
1353
1519
|
FormLabel.displayName = "FormLabel";
|
|
1354
1520
|
var FormControl = React24.forwardRef(({ ...props }, ref) => {
|
|
1355
1521
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
1356
|
-
return /* @__PURE__ */
|
|
1357
|
-
|
|
1522
|
+
return /* @__PURE__ */ jsx31(
|
|
1523
|
+
Slot3,
|
|
1358
1524
|
{
|
|
1359
1525
|
ref,
|
|
1360
1526
|
id: formItemId,
|
|
@@ -1367,7 +1533,7 @@ var FormControl = React24.forwardRef(({ ...props }, ref) => {
|
|
|
1367
1533
|
FormControl.displayName = "FormControl";
|
|
1368
1534
|
var FormDescription = React24.forwardRef(({ className, ...props }, ref) => {
|
|
1369
1535
|
const { formDescriptionId } = useFormField();
|
|
1370
|
-
return /* @__PURE__ */
|
|
1536
|
+
return /* @__PURE__ */ jsx31(
|
|
1371
1537
|
"p",
|
|
1372
1538
|
{
|
|
1373
1539
|
ref,
|
|
@@ -1382,7 +1548,7 @@ var FormMessage = React24.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1382
1548
|
const { error, formMessageId } = useFormField();
|
|
1383
1549
|
const body = error?.message ? String(error.message) : children;
|
|
1384
1550
|
if (!body) return null;
|
|
1385
|
-
return /* @__PURE__ */
|
|
1551
|
+
return /* @__PURE__ */ jsx31(
|
|
1386
1552
|
"p",
|
|
1387
1553
|
{
|
|
1388
1554
|
ref,
|
|
@@ -1396,10 +1562,10 @@ var FormMessage = React24.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1396
1562
|
FormMessage.displayName = "FormMessage";
|
|
1397
1563
|
|
|
1398
1564
|
// src/components/alert/alert.tsx
|
|
1399
|
-
import { cva as
|
|
1565
|
+
import { cva as cva10 } from "class-variance-authority";
|
|
1400
1566
|
import * as React25 from "react";
|
|
1401
|
-
import { jsx as
|
|
1402
|
-
var alertVariants =
|
|
1567
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1568
|
+
var alertVariants = cva10(
|
|
1403
1569
|
[
|
|
1404
1570
|
"relative w-full rounded-lg border px-[var(--space-4,1rem)] py-[var(--space-3,0.75rem)] text-sm",
|
|
1405
1571
|
"transition-all duration-[var(--duration-normal,200ms)] ease-out",
|
|
@@ -1416,7 +1582,7 @@ var alertVariants = cva5(
|
|
|
1416
1582
|
defaultVariants: { variant: "default" }
|
|
1417
1583
|
}
|
|
1418
1584
|
);
|
|
1419
|
-
var Alert = React25.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */
|
|
1585
|
+
var Alert = React25.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
1420
1586
|
"div",
|
|
1421
1587
|
{
|
|
1422
1588
|
ref,
|
|
@@ -1426,7 +1592,7 @@ var Alert = React25.forwardRef(({ className, variant, ...props }, ref) => /* @__
|
|
|
1426
1592
|
}
|
|
1427
1593
|
));
|
|
1428
1594
|
Alert.displayName = "Alert";
|
|
1429
|
-
var AlertTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1595
|
+
var AlertTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
1430
1596
|
"h5",
|
|
1431
1597
|
{
|
|
1432
1598
|
ref,
|
|
@@ -1436,15 +1602,15 @@ var AlertTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1436
1602
|
));
|
|
1437
1603
|
AlertTitle.displayName = "AlertTitle";
|
|
1438
1604
|
var AlertDescription = React25.forwardRef(
|
|
1439
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1605
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx32("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
1440
1606
|
);
|
|
1441
1607
|
AlertDescription.displayName = "AlertDescription";
|
|
1442
1608
|
|
|
1443
1609
|
// src/components/sonner/sonner.tsx
|
|
1444
1610
|
import { Toaster as SonnerToaster, toast } from "sonner";
|
|
1445
|
-
import { jsx as
|
|
1611
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1446
1612
|
function Toaster({ ...props }) {
|
|
1447
|
-
return /* @__PURE__ */
|
|
1613
|
+
return /* @__PURE__ */ jsx33(
|
|
1448
1614
|
SonnerToaster,
|
|
1449
1615
|
{
|
|
1450
1616
|
theme: "system",
|
|
@@ -1471,10 +1637,10 @@ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
|
1471
1637
|
// src/components/hover-card/hover-card.tsx
|
|
1472
1638
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
1473
1639
|
import * as React26 from "react";
|
|
1474
|
-
import { jsx as
|
|
1640
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1475
1641
|
var HoverCard = HoverCardPrimitive.Root;
|
|
1476
1642
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
1477
|
-
var HoverCardContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
1643
|
+
var HoverCardContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx34(HoverCardPrimitive.Portal, { children: /* @__PURE__ */ jsx34(
|
|
1478
1644
|
HoverCardPrimitive.Content,
|
|
1479
1645
|
{
|
|
1480
1646
|
ref,
|
|
@@ -1496,13 +1662,13 @@ HoverCardContent.displayName = "HoverCardContent";
|
|
|
1496
1662
|
// src/components/context-menu/context-menu.tsx
|
|
1497
1663
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
1498
1664
|
import * as React27 from "react";
|
|
1499
|
-
import { jsx as
|
|
1665
|
+
import { jsx as jsx35, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1500
1666
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
1501
1667
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
1502
1668
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
1503
1669
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
1504
1670
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
1505
|
-
var ContextMenuContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1671
|
+
var ContextMenuContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx35(
|
|
1506
1672
|
ContextMenuPrimitive.Content,
|
|
1507
1673
|
{
|
|
1508
1674
|
ref,
|
|
@@ -1517,7 +1683,7 @@ var ContextMenuContent = React27.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1517
1683
|
}
|
|
1518
1684
|
) }));
|
|
1519
1685
|
ContextMenuContent.displayName = "ContextMenuContent";
|
|
1520
|
-
var ContextMenuItem = React27.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
1686
|
+
var ContextMenuItem = React27.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1521
1687
|
ContextMenuPrimitive.Item,
|
|
1522
1688
|
{
|
|
1523
1689
|
ref,
|
|
@@ -1547,7 +1713,7 @@ var ContextMenuCheckboxItem = React27.forwardRef(({ className, children, checked
|
|
|
1547
1713
|
checked,
|
|
1548
1714
|
...props,
|
|
1549
1715
|
children: [
|
|
1550
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ jsx35("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx35(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx35(
|
|
1551
1717
|
"svg",
|
|
1552
1718
|
{
|
|
1553
1719
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1559,7 +1725,7 @@ var ContextMenuCheckboxItem = React27.forwardRef(({ className, children, checked
|
|
|
1559
1725
|
strokeLinejoin: "round",
|
|
1560
1726
|
className: "h-4 w-4",
|
|
1561
1727
|
"aria-hidden": "true",
|
|
1562
|
-
children: /* @__PURE__ */
|
|
1728
|
+
children: /* @__PURE__ */ jsx35("polyline", { points: "20 6 9 17 4 12" })
|
|
1563
1729
|
}
|
|
1564
1730
|
) }) }),
|
|
1565
1731
|
children
|
|
@@ -1580,13 +1746,13 @@ var ContextMenuRadioItem = React27.forwardRef(({ className, children, ...props }
|
|
|
1580
1746
|
),
|
|
1581
1747
|
...props,
|
|
1582
1748
|
children: [
|
|
1583
|
-
/* @__PURE__ */
|
|
1749
|
+
/* @__PURE__ */ jsx35("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx35(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx35("svg", { viewBox: "0 0 24 24", className: "h-2 w-2 fill-current", "aria-hidden": "true", children: /* @__PURE__ */ jsx35("circle", { cx: "12", cy: "12", r: "10" }) }) }) }),
|
|
1584
1750
|
children
|
|
1585
1751
|
]
|
|
1586
1752
|
}
|
|
1587
1753
|
));
|
|
1588
1754
|
ContextMenuRadioItem.displayName = "ContextMenuRadioItem";
|
|
1589
|
-
var ContextMenuLabel = React27.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
1755
|
+
var ContextMenuLabel = React27.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1590
1756
|
ContextMenuPrimitive.Label,
|
|
1591
1757
|
{
|
|
1592
1758
|
ref,
|
|
@@ -1595,7 +1761,7 @@ var ContextMenuLabel = React27.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1595
1761
|
}
|
|
1596
1762
|
));
|
|
1597
1763
|
ContextMenuLabel.displayName = "ContextMenuLabel";
|
|
1598
|
-
var ContextMenuSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1764
|
+
var ContextMenuSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1599
1765
|
ContextMenuPrimitive.Separator,
|
|
1600
1766
|
{
|
|
1601
1767
|
ref,
|
|
@@ -1605,7 +1771,7 @@ var ContextMenuSeparator = React27.forwardRef(({ className, ...props }, ref) =>
|
|
|
1605
1771
|
));
|
|
1606
1772
|
ContextMenuSeparator.displayName = "ContextMenuSeparator";
|
|
1607
1773
|
function ContextMenuShortcut({ className, ...props }) {
|
|
1608
|
-
return /* @__PURE__ */
|
|
1774
|
+
return /* @__PURE__ */ jsx35(
|
|
1609
1775
|
"span",
|
|
1610
1776
|
{
|
|
1611
1777
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -1617,8 +1783,8 @@ function ContextMenuShortcut({ className, ...props }) {
|
|
|
1617
1783
|
// src/components/menubar/menubar.tsx
|
|
1618
1784
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
1619
1785
|
import * as React28 from "react";
|
|
1620
|
-
import { jsx as
|
|
1621
|
-
var Menubar = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1786
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1787
|
+
var Menubar = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1622
1788
|
MenubarPrimitive.Root,
|
|
1623
1789
|
{
|
|
1624
1790
|
ref,
|
|
@@ -1634,7 +1800,7 @@ var MenubarMenu = MenubarPrimitive.Menu;
|
|
|
1634
1800
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
1635
1801
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
1636
1802
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
1637
|
-
var MenubarTrigger = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1803
|
+
var MenubarTrigger = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1638
1804
|
MenubarPrimitive.Trigger,
|
|
1639
1805
|
{
|
|
1640
1806
|
ref,
|
|
@@ -1649,7 +1815,7 @@ var MenubarTrigger = React28.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1649
1815
|
}
|
|
1650
1816
|
));
|
|
1651
1817
|
MenubarTrigger.displayName = "MenubarTrigger";
|
|
1652
|
-
var MenubarContent = React28.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
|
1818
|
+
var MenubarContent = React28.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx36(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx36(
|
|
1653
1819
|
MenubarPrimitive.Content,
|
|
1654
1820
|
{
|
|
1655
1821
|
ref,
|
|
@@ -1667,7 +1833,7 @@ var MenubarContent = React28.forwardRef(({ className, align = "start", alignOffs
|
|
|
1667
1833
|
}
|
|
1668
1834
|
) }));
|
|
1669
1835
|
MenubarContent.displayName = "MenubarContent";
|
|
1670
|
-
var MenubarItem = React28.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
1836
|
+
var MenubarItem = React28.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1671
1837
|
MenubarPrimitive.Item,
|
|
1672
1838
|
{
|
|
1673
1839
|
ref,
|
|
@@ -1683,7 +1849,7 @@ var MenubarItem = React28.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
1683
1849
|
}
|
|
1684
1850
|
));
|
|
1685
1851
|
MenubarItem.displayName = "MenubarItem";
|
|
1686
|
-
var MenubarLabel = React28.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
1852
|
+
var MenubarLabel = React28.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1687
1853
|
MenubarPrimitive.Label,
|
|
1688
1854
|
{
|
|
1689
1855
|
ref,
|
|
@@ -1692,7 +1858,7 @@ var MenubarLabel = React28.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
1692
1858
|
}
|
|
1693
1859
|
));
|
|
1694
1860
|
MenubarLabel.displayName = "MenubarLabel";
|
|
1695
|
-
var MenubarSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1861
|
+
var MenubarSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1696
1862
|
MenubarPrimitive.Separator,
|
|
1697
1863
|
{
|
|
1698
1864
|
ref,
|
|
@@ -1702,7 +1868,7 @@ var MenubarSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1702
1868
|
));
|
|
1703
1869
|
MenubarSeparator.displayName = "MenubarSeparator";
|
|
1704
1870
|
function MenubarShortcut({ className, ...props }) {
|
|
1705
|
-
return /* @__PURE__ */
|
|
1871
|
+
return /* @__PURE__ */ jsx36(
|
|
1706
1872
|
"span",
|
|
1707
1873
|
{
|
|
1708
1874
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -1713,9 +1879,9 @@ function MenubarShortcut({ className, ...props }) {
|
|
|
1713
1879
|
|
|
1714
1880
|
// src/components/navigation-menu/navigation-menu.tsx
|
|
1715
1881
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
1716
|
-
import { cva as
|
|
1882
|
+
import { cva as cva11 } from "class-variance-authority";
|
|
1717
1883
|
import * as React29 from "react";
|
|
1718
|
-
import { jsx as
|
|
1884
|
+
import { jsx as jsx37, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1719
1885
|
var NavigationMenu = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
1720
1886
|
NavigationMenuPrimitive.Root,
|
|
1721
1887
|
{
|
|
@@ -1724,12 +1890,12 @@ var NavigationMenu = React29.forwardRef(({ className, children, ...props }, ref)
|
|
|
1724
1890
|
...props,
|
|
1725
1891
|
children: [
|
|
1726
1892
|
children,
|
|
1727
|
-
/* @__PURE__ */
|
|
1893
|
+
/* @__PURE__ */ jsx37(NavigationMenuViewport, {})
|
|
1728
1894
|
]
|
|
1729
1895
|
}
|
|
1730
1896
|
));
|
|
1731
1897
|
NavigationMenu.displayName = "NavigationMenu";
|
|
1732
|
-
var NavigationMenuList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1898
|
+
var NavigationMenuList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
1733
1899
|
NavigationMenuPrimitive.List,
|
|
1734
1900
|
{
|
|
1735
1901
|
ref,
|
|
@@ -1739,7 +1905,7 @@ var NavigationMenuList = React29.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1739
1905
|
));
|
|
1740
1906
|
NavigationMenuList.displayName = "NavigationMenuList";
|
|
1741
1907
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
1742
|
-
var navigationMenuTriggerStyle =
|
|
1908
|
+
var navigationMenuTriggerStyle = cva11(
|
|
1743
1909
|
"group inline-flex h-[var(--control-height-md,2.5rem)] w-max items-center justify-center rounded-md bg-background px-[var(--space-4,1rem)] py-[var(--space-2,0.5rem)] text-sm font-medium transition-all duration-[var(--duration-normal,200ms)] ease-out hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
1744
1910
|
);
|
|
1745
1911
|
var NavigationMenuTrigger = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
@@ -1750,7 +1916,7 @@ var NavigationMenuTrigger = React29.forwardRef(({ className, children, ...props
|
|
|
1750
1916
|
...props,
|
|
1751
1917
|
children: [
|
|
1752
1918
|
children,
|
|
1753
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ jsx37(
|
|
1754
1920
|
"svg",
|
|
1755
1921
|
{
|
|
1756
1922
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1762,14 +1928,14 @@ var NavigationMenuTrigger = React29.forwardRef(({ className, children, ...props
|
|
|
1762
1928
|
strokeLinejoin: "round",
|
|
1763
1929
|
className: "relative top-[1px] ml-[var(--space-1,0.25rem)] h-3 w-3 transition duration-[var(--duration-normal,200ms)] group-data-[state=open]:rotate-180",
|
|
1764
1930
|
"aria-hidden": "true",
|
|
1765
|
-
children: /* @__PURE__ */
|
|
1931
|
+
children: /* @__PURE__ */ jsx37("polyline", { points: "6 9 12 15 18 9" })
|
|
1766
1932
|
}
|
|
1767
1933
|
)
|
|
1768
1934
|
]
|
|
1769
1935
|
}
|
|
1770
1936
|
));
|
|
1771
1937
|
NavigationMenuTrigger.displayName = "NavigationMenuTrigger";
|
|
1772
|
-
var NavigationMenuContent = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1938
|
+
var NavigationMenuContent = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
1773
1939
|
NavigationMenuPrimitive.Content,
|
|
1774
1940
|
{
|
|
1775
1941
|
ref,
|
|
@@ -1782,7 +1948,7 @@ var NavigationMenuContent = React29.forwardRef(({ className, ...props }, ref) =>
|
|
|
1782
1948
|
));
|
|
1783
1949
|
NavigationMenuContent.displayName = "NavigationMenuContent";
|
|
1784
1950
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1785
|
-
var NavigationMenuViewport = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1951
|
+
var NavigationMenuViewport = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37("div", { className: "absolute left-0 top-full flex justify-center", children: /* @__PURE__ */ jsx37(
|
|
1786
1952
|
NavigationMenuPrimitive.Viewport,
|
|
1787
1953
|
{
|
|
1788
1954
|
className: cn(
|
|
@@ -1796,7 +1962,7 @@ var NavigationMenuViewport = React29.forwardRef(({ className, ...props }, ref) =
|
|
|
1796
1962
|
}
|
|
1797
1963
|
) }));
|
|
1798
1964
|
NavigationMenuViewport.displayName = "NavigationMenuViewport";
|
|
1799
|
-
var NavigationMenuIndicator = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1965
|
+
var NavigationMenuIndicator = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
1800
1966
|
NavigationMenuPrimitive.Indicator,
|
|
1801
1967
|
{
|
|
1802
1968
|
ref,
|
|
@@ -1805,21 +1971,21 @@ var NavigationMenuIndicator = React29.forwardRef(({ className, ...props }, ref)
|
|
|
1805
1971
|
className
|
|
1806
1972
|
),
|
|
1807
1973
|
...props,
|
|
1808
|
-
children: /* @__PURE__ */
|
|
1974
|
+
children: /* @__PURE__ */ jsx37("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1809
1975
|
}
|
|
1810
1976
|
));
|
|
1811
1977
|
NavigationMenuIndicator.displayName = "NavigationMenuIndicator";
|
|
1812
1978
|
|
|
1813
1979
|
// src/components/breadcrumb/breadcrumb.tsx
|
|
1814
|
-
import { Slot as
|
|
1980
|
+
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
1815
1981
|
import * as React30 from "react";
|
|
1816
|
-
import { jsx as
|
|
1982
|
+
import { jsx as jsx38, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1817
1983
|
var Breadcrumb = React30.forwardRef(
|
|
1818
|
-
(props, ref) => /* @__PURE__ */
|
|
1984
|
+
(props, ref) => /* @__PURE__ */ jsx38("nav", { ref, "aria-label": "breadcrumb", ...props })
|
|
1819
1985
|
);
|
|
1820
1986
|
Breadcrumb.displayName = "Breadcrumb";
|
|
1821
1987
|
var BreadcrumbList = React30.forwardRef(
|
|
1822
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1988
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
1823
1989
|
"ol",
|
|
1824
1990
|
{
|
|
1825
1991
|
ref,
|
|
@@ -1833,7 +1999,7 @@ var BreadcrumbList = React30.forwardRef(
|
|
|
1833
1999
|
);
|
|
1834
2000
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
1835
2001
|
var BreadcrumbItem = React30.forwardRef(
|
|
1836
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2002
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
1837
2003
|
"li",
|
|
1838
2004
|
{
|
|
1839
2005
|
ref,
|
|
@@ -1844,8 +2010,8 @@ var BreadcrumbItem = React30.forwardRef(
|
|
|
1844
2010
|
);
|
|
1845
2011
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
1846
2012
|
var BreadcrumbLink = React30.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
1847
|
-
const Comp = asChild ?
|
|
1848
|
-
return /* @__PURE__ */
|
|
2013
|
+
const Comp = asChild ? Slot4 : "a";
|
|
2014
|
+
return /* @__PURE__ */ jsx38(
|
|
1849
2015
|
Comp,
|
|
1850
2016
|
{
|
|
1851
2017
|
ref,
|
|
@@ -1856,7 +2022,7 @@ var BreadcrumbLink = React30.forwardRef(({ asChild, className, ...props }, ref)
|
|
|
1856
2022
|
});
|
|
1857
2023
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
1858
2024
|
var BreadcrumbPage = React30.forwardRef(
|
|
1859
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2025
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
1860
2026
|
"span",
|
|
1861
2027
|
{
|
|
1862
2028
|
ref,
|
|
@@ -1874,7 +2040,7 @@ function BreadcrumbSeparator({
|
|
|
1874
2040
|
className,
|
|
1875
2041
|
...props
|
|
1876
2042
|
}) {
|
|
1877
|
-
return /* @__PURE__ */
|
|
2043
|
+
return /* @__PURE__ */ jsx38("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:h-3.5 [&>svg]:w-3.5", className), ...props, children: children ?? /* @__PURE__ */ jsx38(
|
|
1878
2044
|
"svg",
|
|
1879
2045
|
{
|
|
1880
2046
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1885,7 +2051,7 @@ function BreadcrumbSeparator({
|
|
|
1885
2051
|
strokeLinecap: "round",
|
|
1886
2052
|
strokeLinejoin: "round",
|
|
1887
2053
|
"aria-hidden": "true",
|
|
1888
|
-
children: /* @__PURE__ */
|
|
2054
|
+
children: /* @__PURE__ */ jsx38("polyline", { points: "9 18 15 12 9 6" })
|
|
1889
2055
|
}
|
|
1890
2056
|
) });
|
|
1891
2057
|
}
|
|
@@ -1909,13 +2075,13 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
1909
2075
|
className: "h-4 w-4",
|
|
1910
2076
|
"aria-hidden": "true",
|
|
1911
2077
|
children: [
|
|
1912
|
-
/* @__PURE__ */
|
|
1913
|
-
/* @__PURE__ */
|
|
1914
|
-
/* @__PURE__ */
|
|
2078
|
+
/* @__PURE__ */ jsx38("circle", { cx: "12", cy: "12", r: "1" }),
|
|
2079
|
+
/* @__PURE__ */ jsx38("circle", { cx: "19", cy: "12", r: "1" }),
|
|
2080
|
+
/* @__PURE__ */ jsx38("circle", { cx: "5", cy: "12", r: "1" })
|
|
1915
2081
|
]
|
|
1916
2082
|
}
|
|
1917
2083
|
),
|
|
1918
|
-
/* @__PURE__ */
|
|
2084
|
+
/* @__PURE__ */ jsx38("span", { className: "sr-only", children: "More pages" })
|
|
1919
2085
|
]
|
|
1920
2086
|
}
|
|
1921
2087
|
);
|
|
@@ -1923,9 +2089,9 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
1923
2089
|
|
|
1924
2090
|
// src/components/table/table.tsx
|
|
1925
2091
|
import * as React31 from "react";
|
|
1926
|
-
import { jsx as
|
|
2092
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
1927
2093
|
var Table = React31.forwardRef(
|
|
1928
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2094
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx39(
|
|
1929
2095
|
"table",
|
|
1930
2096
|
{
|
|
1931
2097
|
ref,
|
|
@@ -1935,11 +2101,11 @@ var Table = React31.forwardRef(
|
|
|
1935
2101
|
) })
|
|
1936
2102
|
);
|
|
1937
2103
|
Table.displayName = "Table";
|
|
1938
|
-
var TableHeader = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2104
|
+
var TableHeader = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
1939
2105
|
TableHeader.displayName = "TableHeader";
|
|
1940
|
-
var TableBody = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2106
|
+
var TableBody = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
1941
2107
|
TableBody.displayName = "TableBody";
|
|
1942
|
-
var TableFooter = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2108
|
+
var TableFooter = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
1943
2109
|
"tfoot",
|
|
1944
2110
|
{
|
|
1945
2111
|
ref,
|
|
@@ -1951,7 +2117,7 @@ var TableFooter = React31.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1951
2117
|
}
|
|
1952
2118
|
));
|
|
1953
2119
|
TableFooter.displayName = "TableFooter";
|
|
1954
|
-
var TableRow = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2120
|
+
var TableRow = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
1955
2121
|
"tr",
|
|
1956
2122
|
{
|
|
1957
2123
|
ref,
|
|
@@ -1963,7 +2129,7 @@ var TableRow = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1963
2129
|
}
|
|
1964
2130
|
));
|
|
1965
2131
|
TableRow.displayName = "TableRow";
|
|
1966
|
-
var TableHead = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2132
|
+
var TableHead = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
1967
2133
|
"th",
|
|
1968
2134
|
{
|
|
1969
2135
|
ref,
|
|
@@ -1975,7 +2141,7 @@ var TableHead = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1975
2141
|
}
|
|
1976
2142
|
));
|
|
1977
2143
|
TableHead.displayName = "TableHead";
|
|
1978
|
-
var TableCell = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2144
|
+
var TableCell = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
1979
2145
|
"td",
|
|
1980
2146
|
{
|
|
1981
2147
|
ref,
|
|
@@ -1984,7 +2150,7 @@ var TableCell = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1984
2150
|
}
|
|
1985
2151
|
));
|
|
1986
2152
|
TableCell.displayName = "TableCell";
|
|
1987
|
-
var TableCaption = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2153
|
+
var TableCaption = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
1988
2154
|
"caption",
|
|
1989
2155
|
{
|
|
1990
2156
|
ref,
|
|
@@ -2003,7 +2169,7 @@ import {
|
|
|
2003
2169
|
getCoreRowModel,
|
|
2004
2170
|
useReactTable
|
|
2005
2171
|
} from "@tanstack/react-table";
|
|
2006
|
-
import { jsx as
|
|
2172
|
+
import { jsx as jsx40, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2007
2173
|
function DataTable({
|
|
2008
2174
|
columns,
|
|
2009
2175
|
data,
|
|
@@ -2015,18 +2181,18 @@ function DataTable({
|
|
|
2015
2181
|
columns,
|
|
2016
2182
|
getCoreRowModel: getCoreRowModel()
|
|
2017
2183
|
});
|
|
2018
|
-
return /* @__PURE__ */
|
|
2019
|
-
caption ? /* @__PURE__ */
|
|
2020
|
-
/* @__PURE__ */
|
|
2021
|
-
/* @__PURE__ */
|
|
2184
|
+
return /* @__PURE__ */ jsx40("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs13(Table, { "aria-label": ariaLabel, children: [
|
|
2185
|
+
caption ? /* @__PURE__ */ jsx40(TableCaption, { children: caption }) : null,
|
|
2186
|
+
/* @__PURE__ */ jsx40(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx40(TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx40(TableHead, { children: header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()) }, header.id)) }, headerGroup.id)) }),
|
|
2187
|
+
/* @__PURE__ */ jsx40(TableBody, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx40(TableRow, { "data-state": row.getIsSelected() && "selected", children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx40(TableCell, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id)) }, row.id)) : /* @__PURE__ */ jsx40(TableRow, { children: /* @__PURE__ */ jsx40(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) })
|
|
2022
2188
|
] }) });
|
|
2023
2189
|
}
|
|
2024
2190
|
|
|
2025
2191
|
// src/components/pagination/pagination.tsx
|
|
2026
2192
|
import * as React32 from "react";
|
|
2027
|
-
import { jsx as
|
|
2193
|
+
import { jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2028
2194
|
function Pagination({ className, ...props }) {
|
|
2029
|
-
return /* @__PURE__ */
|
|
2195
|
+
return /* @__PURE__ */ jsx41(
|
|
2030
2196
|
"nav",
|
|
2031
2197
|
{
|
|
2032
2198
|
role: "navigation",
|
|
@@ -2037,7 +2203,7 @@ function Pagination({ className, ...props }) {
|
|
|
2037
2203
|
);
|
|
2038
2204
|
}
|
|
2039
2205
|
var PaginationContent = React32.forwardRef(
|
|
2040
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2206
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
|
|
2041
2207
|
"ul",
|
|
2042
2208
|
{
|
|
2043
2209
|
ref,
|
|
@@ -2048,7 +2214,7 @@ var PaginationContent = React32.forwardRef(
|
|
|
2048
2214
|
);
|
|
2049
2215
|
PaginationContent.displayName = "PaginationContent";
|
|
2050
2216
|
var PaginationItem = React32.forwardRef(
|
|
2051
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2217
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx41("li", { ref, className, ...props })
|
|
2052
2218
|
);
|
|
2053
2219
|
PaginationItem.displayName = "PaginationItem";
|
|
2054
2220
|
function PaginationLink({
|
|
@@ -2057,7 +2223,7 @@ function PaginationLink({
|
|
|
2057
2223
|
size = "icon",
|
|
2058
2224
|
...props
|
|
2059
2225
|
}) {
|
|
2060
|
-
return /* @__PURE__ */
|
|
2226
|
+
return /* @__PURE__ */ jsx41(
|
|
2061
2227
|
"a",
|
|
2062
2228
|
{
|
|
2063
2229
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -2078,7 +2244,7 @@ function PaginationPrevious({ className, ...props }) {
|
|
|
2078
2244
|
className: cn("gap-1 pl-2.5", className),
|
|
2079
2245
|
...props,
|
|
2080
2246
|
children: [
|
|
2081
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ jsx41(
|
|
2082
2248
|
"svg",
|
|
2083
2249
|
{
|
|
2084
2250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2090,10 +2256,10 @@ function PaginationPrevious({ className, ...props }) {
|
|
|
2090
2256
|
strokeLinejoin: "round",
|
|
2091
2257
|
className: "h-4 w-4",
|
|
2092
2258
|
"aria-hidden": "true",
|
|
2093
|
-
children: /* @__PURE__ */
|
|
2259
|
+
children: /* @__PURE__ */ jsx41("polyline", { points: "15 18 9 12 15 6" })
|
|
2094
2260
|
}
|
|
2095
2261
|
),
|
|
2096
|
-
/* @__PURE__ */
|
|
2262
|
+
/* @__PURE__ */ jsx41("span", { children: "Previous" })
|
|
2097
2263
|
]
|
|
2098
2264
|
}
|
|
2099
2265
|
);
|
|
@@ -2107,8 +2273,8 @@ function PaginationNext({ className, ...props }) {
|
|
|
2107
2273
|
className: cn("gap-1 pr-2.5", className),
|
|
2108
2274
|
...props,
|
|
2109
2275
|
children: [
|
|
2110
|
-
/* @__PURE__ */
|
|
2111
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ jsx41("span", { children: "Next" }),
|
|
2277
|
+
/* @__PURE__ */ jsx41(
|
|
2112
2278
|
"svg",
|
|
2113
2279
|
{
|
|
2114
2280
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2120,7 +2286,7 @@ function PaginationNext({ className, ...props }) {
|
|
|
2120
2286
|
strokeLinejoin: "round",
|
|
2121
2287
|
className: "h-4 w-4",
|
|
2122
2288
|
"aria-hidden": "true",
|
|
2123
|
-
children: /* @__PURE__ */
|
|
2289
|
+
children: /* @__PURE__ */ jsx41("polyline", { points: "9 18 15 12 9 6" })
|
|
2124
2290
|
}
|
|
2125
2291
|
)
|
|
2126
2292
|
]
|
|
@@ -2147,13 +2313,13 @@ function PaginationEllipsis({ className, ...props }) {
|
|
|
2147
2313
|
className: "h-4 w-4",
|
|
2148
2314
|
"aria-hidden": "true",
|
|
2149
2315
|
children: [
|
|
2150
|
-
/* @__PURE__ */
|
|
2151
|
-
/* @__PURE__ */
|
|
2152
|
-
/* @__PURE__ */
|
|
2316
|
+
/* @__PURE__ */ jsx41("circle", { cx: "12", cy: "12", r: "1" }),
|
|
2317
|
+
/* @__PURE__ */ jsx41("circle", { cx: "19", cy: "12", r: "1" }),
|
|
2318
|
+
/* @__PURE__ */ jsx41("circle", { cx: "5", cy: "12", r: "1" })
|
|
2153
2319
|
]
|
|
2154
2320
|
}
|
|
2155
2321
|
),
|
|
2156
|
-
/* @__PURE__ */
|
|
2322
|
+
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "More pages" })
|
|
2157
2323
|
]
|
|
2158
2324
|
}
|
|
2159
2325
|
);
|
|
@@ -2161,14 +2327,14 @@ function PaginationEllipsis({ className, ...props }) {
|
|
|
2161
2327
|
|
|
2162
2328
|
// src/components/calendar/calendar.tsx
|
|
2163
2329
|
import { DayPicker } from "react-day-picker";
|
|
2164
|
-
import { jsx as
|
|
2330
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2165
2331
|
function Calendar({
|
|
2166
2332
|
className,
|
|
2167
2333
|
classNames,
|
|
2168
2334
|
showOutsideDays = true,
|
|
2169
2335
|
...props
|
|
2170
2336
|
}) {
|
|
2171
|
-
return /* @__PURE__ */
|
|
2337
|
+
return /* @__PURE__ */ jsx42(
|
|
2172
2338
|
DayPicker,
|
|
2173
2339
|
{
|
|
2174
2340
|
showOutsideDays,
|
|
@@ -2204,7 +2370,7 @@ function Calendar({
|
|
|
2204
2370
|
components: {
|
|
2205
2371
|
Chevron: ({ orientation, className: chevronClassName }) => {
|
|
2206
2372
|
const rotation = orientation === "left" ? "rotate-90" : orientation === "right" ? "-rotate-90" : orientation === "up" ? "rotate-180" : "";
|
|
2207
|
-
return /* @__PURE__ */
|
|
2373
|
+
return /* @__PURE__ */ jsx42(
|
|
2208
2374
|
"svg",
|
|
2209
2375
|
{
|
|
2210
2376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2216,7 +2382,7 @@ function Calendar({
|
|
|
2216
2382
|
strokeLinejoin: "round",
|
|
2217
2383
|
className: cn("h-4 w-4", rotation, chevronClassName),
|
|
2218
2384
|
"aria-hidden": "true",
|
|
2219
|
-
children: /* @__PURE__ */
|
|
2385
|
+
children: /* @__PURE__ */ jsx42("polyline", { points: "6 9 12 15 18 9" })
|
|
2220
2386
|
}
|
|
2221
2387
|
);
|
|
2222
2388
|
}
|
|
@@ -2230,7 +2396,7 @@ Calendar.displayName = "Calendar";
|
|
|
2230
2396
|
// src/components/date-picker/date-picker.tsx
|
|
2231
2397
|
import { format } from "date-fns";
|
|
2232
2398
|
import * as React33 from "react";
|
|
2233
|
-
import { jsx as
|
|
2399
|
+
import { jsx as jsx43, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2234
2400
|
function DatePicker({
|
|
2235
2401
|
value,
|
|
2236
2402
|
onChange,
|
|
@@ -2242,7 +2408,7 @@ function DatePicker({
|
|
|
2242
2408
|
}) {
|
|
2243
2409
|
const [open, setOpen] = React33.useState(false);
|
|
2244
2410
|
return /* @__PURE__ */ jsxs15(Popover, { open, onOpenChange: setOpen, children: [
|
|
2245
|
-
/* @__PURE__ */
|
|
2411
|
+
/* @__PURE__ */ jsx43(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs15(
|
|
2246
2412
|
"button",
|
|
2247
2413
|
{
|
|
2248
2414
|
type: "button",
|
|
@@ -2270,18 +2436,18 @@ function DatePicker({
|
|
|
2270
2436
|
className: "h-4 w-4",
|
|
2271
2437
|
"aria-hidden": "true",
|
|
2272
2438
|
children: [
|
|
2273
|
-
/* @__PURE__ */
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2439
|
+
/* @__PURE__ */ jsx43("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }),
|
|
2440
|
+
/* @__PURE__ */ jsx43("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
|
|
2441
|
+
/* @__PURE__ */ jsx43("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
|
|
2442
|
+
/* @__PURE__ */ jsx43("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
|
|
2277
2443
|
]
|
|
2278
2444
|
}
|
|
2279
2445
|
),
|
|
2280
|
-
/* @__PURE__ */
|
|
2446
|
+
/* @__PURE__ */ jsx43("span", { children: value ? format(value, dateFormat) : placeholder })
|
|
2281
2447
|
]
|
|
2282
2448
|
}
|
|
2283
2449
|
) }),
|
|
2284
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ jsx43(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsx43(
|
|
2285
2451
|
Calendar,
|
|
2286
2452
|
{
|
|
2287
2453
|
mode: "single",
|
|
@@ -2300,9 +2466,9 @@ DatePicker.displayName = "DatePicker";
|
|
|
2300
2466
|
// src/components/input-otp/input-otp.tsx
|
|
2301
2467
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
2302
2468
|
import * as React34 from "react";
|
|
2303
|
-
import { jsx as
|
|
2469
|
+
import { jsx as jsx44, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2304
2470
|
var InputOTP = React34.forwardRef(
|
|
2305
|
-
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */
|
|
2471
|
+
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
2306
2472
|
OTPInput,
|
|
2307
2473
|
{
|
|
2308
2474
|
ref,
|
|
@@ -2316,7 +2482,7 @@ var InputOTP = React34.forwardRef(
|
|
|
2316
2482
|
)
|
|
2317
2483
|
);
|
|
2318
2484
|
InputOTP.displayName = "InputOTP";
|
|
2319
|
-
var InputOTPGroup = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2485
|
+
var InputOTPGroup = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx44("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2320
2486
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2321
2487
|
var InputOTPSlot = React34.forwardRef(
|
|
2322
2488
|
({ index, className, ...props }, ref) => {
|
|
@@ -2338,14 +2504,14 @@ var InputOTPSlot = React34.forwardRef(
|
|
|
2338
2504
|
...props,
|
|
2339
2505
|
children: [
|
|
2340
2506
|
char,
|
|
2341
|
-
hasFakeCaret && /* @__PURE__ */
|
|
2507
|
+
hasFakeCaret && /* @__PURE__ */ jsx44("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx44("div", { className: "h-4 w-px animate-pulse bg-foreground duration-1000" }) })
|
|
2342
2508
|
]
|
|
2343
2509
|
}
|
|
2344
2510
|
);
|
|
2345
2511
|
}
|
|
2346
2512
|
);
|
|
2347
2513
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2348
|
-
var InputOTPSeparator = React34.forwardRef(({ ...props }, ref) => /* @__PURE__ */
|
|
2514
|
+
var InputOTPSeparator = React34.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx44("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx44(
|
|
2349
2515
|
"svg",
|
|
2350
2516
|
{
|
|
2351
2517
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2353,7 +2519,7 @@ var InputOTPSeparator = React34.forwardRef(({ ...props }, ref) => /* @__PURE__ *
|
|
|
2353
2519
|
fill: "currentColor",
|
|
2354
2520
|
className: "h-2 w-2 text-muted-foreground",
|
|
2355
2521
|
"aria-hidden": "true",
|
|
2356
|
-
children: /* @__PURE__ */
|
|
2522
|
+
children: /* @__PURE__ */ jsx44("circle", { cx: "12", cy: "12", r: "6" })
|
|
2357
2523
|
}
|
|
2358
2524
|
) }));
|
|
2359
2525
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
@@ -2361,8 +2527,8 @@ InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
|
2361
2527
|
// src/components/command/command.tsx
|
|
2362
2528
|
import { Command as CommandPrimitive } from "cmdk";
|
|
2363
2529
|
import * as React35 from "react";
|
|
2364
|
-
import { jsx as
|
|
2365
|
-
var Command = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2530
|
+
import { jsx as jsx45, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2531
|
+
var Command = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
2366
2532
|
CommandPrimitive,
|
|
2367
2533
|
{
|
|
2368
2534
|
ref,
|
|
@@ -2382,10 +2548,10 @@ function CommandDialog({
|
|
|
2382
2548
|
}) {
|
|
2383
2549
|
return /* @__PURE__ */ jsxs17(Dialog, { ...props, children: [
|
|
2384
2550
|
/* @__PURE__ */ jsxs17(DialogHeader, { className: "sr-only", children: [
|
|
2385
|
-
/* @__PURE__ */
|
|
2386
|
-
/* @__PURE__ */
|
|
2551
|
+
/* @__PURE__ */ jsx45(DialogTitle, { children: title }),
|
|
2552
|
+
/* @__PURE__ */ jsx45(DialogDescription, { children: description })
|
|
2387
2553
|
] }),
|
|
2388
|
-
/* @__PURE__ */
|
|
2554
|
+
/* @__PURE__ */ jsx45(DialogContent, { className: "overflow-hidden p-0", scrollable: false, children: /* @__PURE__ */ jsx45(Command, { className: "[&_[cmdk-group-heading]]:px-[var(--space-2,0.5rem)] [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-[var(--space-2,0.5rem)] [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-[var(--space-2,0.5rem)] [&_[cmdk-item]]:py-[var(--space-3,0.75rem)] [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) })
|
|
2389
2555
|
] });
|
|
2390
2556
|
}
|
|
2391
2557
|
var CommandInput = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs17("div", { className: "flex items-center border-b px-[var(--space-3,0.75rem)]", "cmdk-input-wrapper": "", children: [
|
|
@@ -2402,12 +2568,12 @@ var CommandInput = React35.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2402
2568
|
className: "mr-[var(--space-2,0.5rem)] h-4 w-4 shrink-0 opacity-50",
|
|
2403
2569
|
"aria-hidden": "true",
|
|
2404
2570
|
children: [
|
|
2405
|
-
/* @__PURE__ */
|
|
2406
|
-
/* @__PURE__ */
|
|
2571
|
+
/* @__PURE__ */ jsx45("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2572
|
+
/* @__PURE__ */ jsx45("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
2407
2573
|
]
|
|
2408
2574
|
}
|
|
2409
2575
|
),
|
|
2410
|
-
/* @__PURE__ */
|
|
2576
|
+
/* @__PURE__ */ jsx45(
|
|
2411
2577
|
CommandPrimitive.Input,
|
|
2412
2578
|
{
|
|
2413
2579
|
ref,
|
|
@@ -2420,7 +2586,7 @@ var CommandInput = React35.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2420
2586
|
)
|
|
2421
2587
|
] }));
|
|
2422
2588
|
CommandInput.displayName = "CommandInput";
|
|
2423
|
-
var CommandList = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2589
|
+
var CommandList = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
2424
2590
|
CommandPrimitive.List,
|
|
2425
2591
|
{
|
|
2426
2592
|
ref,
|
|
@@ -2429,9 +2595,9 @@ var CommandList = React35.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2429
2595
|
}
|
|
2430
2596
|
));
|
|
2431
2597
|
CommandList.displayName = "CommandList";
|
|
2432
|
-
var CommandEmpty = React35.forwardRef((props, ref) => /* @__PURE__ */
|
|
2598
|
+
var CommandEmpty = React35.forwardRef((props, ref) => /* @__PURE__ */ jsx45(CommandPrimitive.Empty, { ref, className: "py-[var(--space-6,1.5rem)] text-center text-sm", ...props }));
|
|
2433
2599
|
CommandEmpty.displayName = "CommandEmpty";
|
|
2434
|
-
var CommandGroup = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2600
|
+
var CommandGroup = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
2435
2601
|
CommandPrimitive.Group,
|
|
2436
2602
|
{
|
|
2437
2603
|
ref,
|
|
@@ -2443,7 +2609,7 @@ var CommandGroup = React35.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2443
2609
|
}
|
|
2444
2610
|
));
|
|
2445
2611
|
CommandGroup.displayName = "CommandGroup";
|
|
2446
|
-
var CommandSeparator = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2612
|
+
var CommandSeparator = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
2447
2613
|
"div",
|
|
2448
2614
|
{
|
|
2449
2615
|
ref,
|
|
@@ -2454,7 +2620,7 @@ var CommandSeparator = React35.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2454
2620
|
}
|
|
2455
2621
|
));
|
|
2456
2622
|
CommandSeparator.displayName = "CommandSeparator";
|
|
2457
|
-
var CommandItem = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2623
|
+
var CommandItem = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
2458
2624
|
CommandPrimitive.Item,
|
|
2459
2625
|
{
|
|
2460
2626
|
ref,
|
|
@@ -2470,7 +2636,7 @@ var CommandItem = React35.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2470
2636
|
));
|
|
2471
2637
|
CommandItem.displayName = "CommandItem";
|
|
2472
2638
|
function CommandShortcut({ className, ...props }) {
|
|
2473
|
-
return /* @__PURE__ */
|
|
2639
|
+
return /* @__PURE__ */ jsx45(
|
|
2474
2640
|
"span",
|
|
2475
2641
|
{
|
|
2476
2642
|
className: cn(
|
|
@@ -2485,7 +2651,7 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
2485
2651
|
|
|
2486
2652
|
// src/components/combobox/combobox.tsx
|
|
2487
2653
|
import * as React36 from "react";
|
|
2488
|
-
import { jsx as
|
|
2654
|
+
import { jsx as jsx46, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2489
2655
|
function Combobox({
|
|
2490
2656
|
options,
|
|
2491
2657
|
value,
|
|
@@ -2502,7 +2668,7 @@ function Combobox({
|
|
|
2502
2668
|
const listboxId = React36.useId();
|
|
2503
2669
|
const selected = options.find((o) => o.value === value);
|
|
2504
2670
|
return /* @__PURE__ */ jsxs18(Popover, { open, onOpenChange: setOpen, children: [
|
|
2505
|
-
/* @__PURE__ */
|
|
2671
|
+
/* @__PURE__ */ jsx46(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs18(
|
|
2506
2672
|
"button",
|
|
2507
2673
|
{
|
|
2508
2674
|
type: "button",
|
|
@@ -2522,8 +2688,8 @@ function Combobox({
|
|
|
2522
2688
|
className
|
|
2523
2689
|
),
|
|
2524
2690
|
children: [
|
|
2525
|
-
/* @__PURE__ */
|
|
2526
|
-
/* @__PURE__ */
|
|
2691
|
+
/* @__PURE__ */ jsx46("span", { className: "truncate", children: selected ? selected.label : placeholder }),
|
|
2692
|
+
/* @__PURE__ */ jsx46(
|
|
2527
2693
|
"svg",
|
|
2528
2694
|
{
|
|
2529
2695
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2535,17 +2701,17 @@ function Combobox({
|
|
|
2535
2701
|
strokeLinejoin: "round",
|
|
2536
2702
|
className: "h-4 w-4 shrink-0 opacity-50",
|
|
2537
2703
|
"aria-hidden": "true",
|
|
2538
|
-
children: /* @__PURE__ */
|
|
2704
|
+
children: /* @__PURE__ */ jsx46("polyline", { points: "6 9 12 15 18 9" })
|
|
2539
2705
|
}
|
|
2540
2706
|
)
|
|
2541
2707
|
]
|
|
2542
2708
|
}
|
|
2543
2709
|
) }),
|
|
2544
|
-
/* @__PURE__ */
|
|
2545
|
-
/* @__PURE__ */
|
|
2710
|
+
/* @__PURE__ */ jsx46(PopoverContent, { className: "w-[240px] p-0", align: "start", children: /* @__PURE__ */ jsxs18(Command, { children: [
|
|
2711
|
+
/* @__PURE__ */ jsx46(CommandInput, { placeholder: searchPlaceholder }),
|
|
2546
2712
|
/* @__PURE__ */ jsxs18(CommandList, { id: listboxId, children: [
|
|
2547
|
-
/* @__PURE__ */
|
|
2548
|
-
/* @__PURE__ */
|
|
2713
|
+
/* @__PURE__ */ jsx46(CommandEmpty, { children: emptyText }),
|
|
2714
|
+
/* @__PURE__ */ jsx46(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxs18(
|
|
2549
2715
|
CommandItem,
|
|
2550
2716
|
{
|
|
2551
2717
|
value: option.label,
|
|
@@ -2555,7 +2721,7 @@ function Combobox({
|
|
|
2555
2721
|
setOpen(false);
|
|
2556
2722
|
},
|
|
2557
2723
|
children: [
|
|
2558
|
-
/* @__PURE__ */
|
|
2724
|
+
/* @__PURE__ */ jsx46(
|
|
2559
2725
|
"svg",
|
|
2560
2726
|
{
|
|
2561
2727
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2570,7 +2736,7 @@ function Combobox({
|
|
|
2570
2736
|
value === option.value ? "opacity-100" : "opacity-0"
|
|
2571
2737
|
),
|
|
2572
2738
|
"aria-hidden": "true",
|
|
2573
|
-
children: /* @__PURE__ */
|
|
2739
|
+
children: /* @__PURE__ */ jsx46("polyline", { points: "20 6 9 17 4 12" })
|
|
2574
2740
|
}
|
|
2575
2741
|
),
|
|
2576
2742
|
option.label
|
|
@@ -2586,14 +2752,14 @@ Combobox.displayName = "Combobox";
|
|
|
2586
2752
|
|
|
2587
2753
|
// src/components/sheet/sheet.tsx
|
|
2588
2754
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2589
|
-
import { cva as
|
|
2755
|
+
import { cva as cva12 } from "class-variance-authority";
|
|
2590
2756
|
import * as React37 from "react";
|
|
2591
|
-
import { jsx as
|
|
2757
|
+
import { jsx as jsx47, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2592
2758
|
var Sheet = SheetPrimitive.Root;
|
|
2593
2759
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2594
2760
|
var SheetClose = SheetPrimitive.Close;
|
|
2595
2761
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2596
|
-
var SheetOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2762
|
+
var SheetOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
2597
2763
|
SheetPrimitive.Overlay,
|
|
2598
2764
|
{
|
|
2599
2765
|
ref,
|
|
@@ -2607,7 +2773,7 @@ var SheetOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2607
2773
|
}
|
|
2608
2774
|
));
|
|
2609
2775
|
SheetOverlay.displayName = "SheetOverlay";
|
|
2610
|
-
var sheetVariants =
|
|
2776
|
+
var sheetVariants = cva12(
|
|
2611
2777
|
cn(
|
|
2612
2778
|
"fixed z-50 gap-[var(--gap-md,1rem)] bg-background p-[var(--space-6,1.5rem)] shadow-lg",
|
|
2613
2779
|
"transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -2628,7 +2794,7 @@ var sheetVariants = cva7(
|
|
|
2628
2794
|
}
|
|
2629
2795
|
);
|
|
2630
2796
|
var SheetContent = React37.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs19(SheetPortal, { children: [
|
|
2631
|
-
/* @__PURE__ */
|
|
2797
|
+
/* @__PURE__ */ jsx47(SheetOverlay, {}),
|
|
2632
2798
|
/* @__PURE__ */ jsxs19(
|
|
2633
2799
|
SheetPrimitive.Content,
|
|
2634
2800
|
{
|
|
@@ -2660,12 +2826,12 @@ var SheetContent = React37.forwardRef(({ side = "right", className, children, ..
|
|
|
2660
2826
|
className: "h-4 w-4",
|
|
2661
2827
|
"aria-hidden": "true",
|
|
2662
2828
|
children: [
|
|
2663
|
-
/* @__PURE__ */
|
|
2664
|
-
/* @__PURE__ */
|
|
2829
|
+
/* @__PURE__ */ jsx47("path", { d: "M18 6 6 18" }),
|
|
2830
|
+
/* @__PURE__ */ jsx47("path", { d: "m6 6 12 12" })
|
|
2665
2831
|
]
|
|
2666
2832
|
}
|
|
2667
2833
|
),
|
|
2668
|
-
/* @__PURE__ */
|
|
2834
|
+
/* @__PURE__ */ jsx47("span", { className: "sr-only", children: "Close" })
|
|
2669
2835
|
]
|
|
2670
2836
|
}
|
|
2671
2837
|
)
|
|
@@ -2675,7 +2841,7 @@ var SheetContent = React37.forwardRef(({ side = "right", className, children, ..
|
|
|
2675
2841
|
] }));
|
|
2676
2842
|
SheetContent.displayName = "SheetContent";
|
|
2677
2843
|
function SheetHeader({ className, ...props }) {
|
|
2678
|
-
return /* @__PURE__ */
|
|
2844
|
+
return /* @__PURE__ */ jsx47(
|
|
2679
2845
|
"div",
|
|
2680
2846
|
{
|
|
2681
2847
|
className: cn("flex flex-col space-y-2 text-center sm:text-left", className),
|
|
@@ -2684,7 +2850,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
2684
2850
|
);
|
|
2685
2851
|
}
|
|
2686
2852
|
function SheetFooter({ className, ...props }) {
|
|
2687
|
-
return /* @__PURE__ */
|
|
2853
|
+
return /* @__PURE__ */ jsx47(
|
|
2688
2854
|
"div",
|
|
2689
2855
|
{
|
|
2690
2856
|
className: cn(
|
|
@@ -2695,7 +2861,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
2695
2861
|
}
|
|
2696
2862
|
);
|
|
2697
2863
|
}
|
|
2698
|
-
var SheetTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2864
|
+
var SheetTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
2699
2865
|
SheetPrimitive.Title,
|
|
2700
2866
|
{
|
|
2701
2867
|
ref,
|
|
@@ -2704,7 +2870,7 @@ var SheetTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2704
2870
|
}
|
|
2705
2871
|
));
|
|
2706
2872
|
SheetTitle.displayName = "SheetTitle";
|
|
2707
|
-
var SheetDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2873
|
+
var SheetDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
2708
2874
|
SheetPrimitive.Description,
|
|
2709
2875
|
{
|
|
2710
2876
|
ref,
|
|
@@ -2717,15 +2883,15 @@ SheetDescription.displayName = "SheetDescription";
|
|
|
2717
2883
|
// src/components/drawer/drawer.tsx
|
|
2718
2884
|
import * as React38 from "react";
|
|
2719
2885
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
2720
|
-
import { jsx as
|
|
2886
|
+
import { jsx as jsx48, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2721
2887
|
function Drawer({ shouldScaleBackground = true, ...props }) {
|
|
2722
|
-
return /* @__PURE__ */
|
|
2888
|
+
return /* @__PURE__ */ jsx48(DrawerPrimitive.Root, { shouldScaleBackground, ...props });
|
|
2723
2889
|
}
|
|
2724
2890
|
Drawer.displayName = "Drawer";
|
|
2725
2891
|
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
2726
2892
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
2727
2893
|
var DrawerClose = DrawerPrimitive.Close;
|
|
2728
|
-
var DrawerOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2894
|
+
var DrawerOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
2729
2895
|
DrawerPrimitive.Overlay,
|
|
2730
2896
|
{
|
|
2731
2897
|
ref,
|
|
@@ -2738,7 +2904,7 @@ var DrawerOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2738
2904
|
));
|
|
2739
2905
|
DrawerOverlay.displayName = "DrawerOverlay";
|
|
2740
2906
|
var DrawerContent = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs20(DrawerPortal, { children: [
|
|
2741
|
-
/* @__PURE__ */
|
|
2907
|
+
/* @__PURE__ */ jsx48(DrawerOverlay, {}),
|
|
2742
2908
|
/* @__PURE__ */ jsxs20(
|
|
2743
2909
|
DrawerPrimitive.Content,
|
|
2744
2910
|
{
|
|
@@ -2749,7 +2915,7 @@ var DrawerContent = React38.forwardRef(({ className, children, ...props }, ref)
|
|
|
2749
2915
|
),
|
|
2750
2916
|
...props,
|
|
2751
2917
|
children: [
|
|
2752
|
-
/* @__PURE__ */
|
|
2918
|
+
/* @__PURE__ */ jsx48("div", { className: "mx-auto mt-[var(--space-4,1rem)] h-2 w-[100px] rounded-full bg-muted", "aria-hidden": "true" }),
|
|
2753
2919
|
children
|
|
2754
2920
|
]
|
|
2755
2921
|
}
|
|
@@ -2757,7 +2923,7 @@ var DrawerContent = React38.forwardRef(({ className, children, ...props }, ref)
|
|
|
2757
2923
|
] }));
|
|
2758
2924
|
DrawerContent.displayName = "DrawerContent";
|
|
2759
2925
|
function DrawerHeader({ className, ...props }) {
|
|
2760
|
-
return /* @__PURE__ */
|
|
2926
|
+
return /* @__PURE__ */ jsx48(
|
|
2761
2927
|
"div",
|
|
2762
2928
|
{
|
|
2763
2929
|
className: cn("grid gap-1.5 p-[var(--space-4,1rem)] text-center sm:text-left", className),
|
|
@@ -2766,9 +2932,9 @@ function DrawerHeader({ className, ...props }) {
|
|
|
2766
2932
|
);
|
|
2767
2933
|
}
|
|
2768
2934
|
function DrawerFooter({ className, ...props }) {
|
|
2769
|
-
return /* @__PURE__ */
|
|
2935
|
+
return /* @__PURE__ */ jsx48("div", { className: cn("mt-auto flex flex-col gap-[var(--gap-sm,0.5rem)] p-[var(--space-4,1rem)]", className), ...props });
|
|
2770
2936
|
}
|
|
2771
|
-
var DrawerTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2937
|
+
var DrawerTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
2772
2938
|
DrawerPrimitive.Title,
|
|
2773
2939
|
{
|
|
2774
2940
|
ref,
|
|
@@ -2777,7 +2943,7 @@ var DrawerTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2777
2943
|
}
|
|
2778
2944
|
));
|
|
2779
2945
|
DrawerTitle.displayName = "DrawerTitle";
|
|
2780
|
-
var DrawerDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2946
|
+
var DrawerDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
2781
2947
|
DrawerPrimitive.Description,
|
|
2782
2948
|
{
|
|
2783
2949
|
ref,
|
|
@@ -2793,12 +2959,12 @@ import {
|
|
|
2793
2959
|
Panel as ResizablePrimitivePanel,
|
|
2794
2960
|
Separator as ResizablePrimitiveSeparator
|
|
2795
2961
|
} from "react-resizable-panels";
|
|
2796
|
-
import { jsx as
|
|
2962
|
+
import { jsx as jsx49, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2797
2963
|
function ResizablePanelGroup({
|
|
2798
2964
|
className,
|
|
2799
2965
|
...props
|
|
2800
2966
|
}) {
|
|
2801
|
-
return /* @__PURE__ */
|
|
2967
|
+
return /* @__PURE__ */ jsx49(
|
|
2802
2968
|
ResizablePrimitiveGroup,
|
|
2803
2969
|
{
|
|
2804
2970
|
className: cn(
|
|
@@ -2812,7 +2978,7 @@ function ResizablePanelGroup({
|
|
|
2812
2978
|
ResizablePanelGroup.displayName = "ResizablePanelGroup";
|
|
2813
2979
|
var ResizablePanel = ResizablePrimitivePanel;
|
|
2814
2980
|
function ResizableHandle({ withHandle, className, ...props }) {
|
|
2815
|
-
return /* @__PURE__ */
|
|
2981
|
+
return /* @__PURE__ */ jsx49(
|
|
2816
2982
|
ResizablePrimitiveSeparator,
|
|
2817
2983
|
{
|
|
2818
2984
|
className: cn(
|
|
@@ -2825,7 +2991,7 @@ function ResizableHandle({ withHandle, className, ...props }) {
|
|
|
2825
2991
|
className
|
|
2826
2992
|
),
|
|
2827
2993
|
...props,
|
|
2828
|
-
children: withHandle && /* @__PURE__ */
|
|
2994
|
+
children: withHandle && /* @__PURE__ */ jsx49("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsxs21(
|
|
2829
2995
|
"svg",
|
|
2830
2996
|
{
|
|
2831
2997
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2834,12 +3000,12 @@ function ResizableHandle({ withHandle, className, ...props }) {
|
|
|
2834
3000
|
className: "h-2.5 w-2.5",
|
|
2835
3001
|
"aria-hidden": "true",
|
|
2836
3002
|
children: [
|
|
2837
|
-
/* @__PURE__ */
|
|
2838
|
-
/* @__PURE__ */
|
|
2839
|
-
/* @__PURE__ */
|
|
2840
|
-
/* @__PURE__ */
|
|
2841
|
-
/* @__PURE__ */
|
|
2842
|
-
/* @__PURE__ */
|
|
3003
|
+
/* @__PURE__ */ jsx49("circle", { cx: "9", cy: "5", r: "1" }),
|
|
3004
|
+
/* @__PURE__ */ jsx49("circle", { cx: "9", cy: "12", r: "1" }),
|
|
3005
|
+
/* @__PURE__ */ jsx49("circle", { cx: "9", cy: "19", r: "1" }),
|
|
3006
|
+
/* @__PURE__ */ jsx49("circle", { cx: "15", cy: "5", r: "1" }),
|
|
3007
|
+
/* @__PURE__ */ jsx49("circle", { cx: "15", cy: "12", r: "1" }),
|
|
3008
|
+
/* @__PURE__ */ jsx49("circle", { cx: "15", cy: "19", r: "1" })
|
|
2843
3009
|
]
|
|
2844
3010
|
}
|
|
2845
3011
|
) })
|
|
@@ -2849,10 +3015,10 @@ function ResizableHandle({ withHandle, className, ...props }) {
|
|
|
2849
3015
|
ResizableHandle.displayName = "ResizableHandle";
|
|
2850
3016
|
|
|
2851
3017
|
// src/components/sidebar/sidebar.tsx
|
|
2852
|
-
import { Slot as
|
|
2853
|
-
import { cva as
|
|
3018
|
+
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
3019
|
+
import { cva as cva13 } from "class-variance-authority";
|
|
2854
3020
|
import * as React39 from "react";
|
|
2855
|
-
import { Fragment as Fragment2, jsx as
|
|
3021
|
+
import { Fragment as Fragment2, jsx as jsx50, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2856
3022
|
var SidebarContext = React39.createContext(null);
|
|
2857
3023
|
function useSidebar() {
|
|
2858
3024
|
const ctx = React39.useContext(SidebarContext);
|
|
@@ -2881,7 +3047,7 @@ function SidebarProvider({
|
|
|
2881
3047
|
[isControlled, onOpenChange]
|
|
2882
3048
|
);
|
|
2883
3049
|
const value = React39.useMemo(() => ({ open, setOpen }), [open, setOpen]);
|
|
2884
|
-
return /* @__PURE__ */
|
|
3050
|
+
return /* @__PURE__ */ jsx50(SidebarContext.Provider, { value, children: /* @__PURE__ */ jsx50(
|
|
2885
3051
|
"div",
|
|
2886
3052
|
{
|
|
2887
3053
|
"data-state": open ? "open" : "closed",
|
|
@@ -2891,7 +3057,7 @@ function SidebarProvider({
|
|
|
2891
3057
|
) });
|
|
2892
3058
|
}
|
|
2893
3059
|
SidebarProvider.displayName = "SidebarProvider";
|
|
2894
|
-
var sidebarVariants =
|
|
3060
|
+
var sidebarVariants = cva13(
|
|
2895
3061
|
cn(
|
|
2896
3062
|
"flex h-full shrink-0 flex-col border-r bg-background text-foreground",
|
|
2897
3063
|
"transition-[width] duration-[var(--duration-normal,200ms)] ease-out"
|
|
@@ -2916,7 +3082,7 @@ var sidebarVariants = cva8(
|
|
|
2916
3082
|
var Sidebar = React39.forwardRef(
|
|
2917
3083
|
({ className, side = "left", children, ...props }, ref) => {
|
|
2918
3084
|
const { open } = useSidebar();
|
|
2919
|
-
return /* @__PURE__ */
|
|
3085
|
+
return /* @__PURE__ */ jsx50(
|
|
2920
3086
|
"aside",
|
|
2921
3087
|
{
|
|
2922
3088
|
ref,
|
|
@@ -2934,9 +3100,9 @@ Sidebar.displayName = "Sidebar";
|
|
|
2934
3100
|
var SidebarTrigger = React39.forwardRef(
|
|
2935
3101
|
({ asChild, className, onClick, "aria-label": ariaLabel, ...props }, ref) => {
|
|
2936
3102
|
const { open, setOpen } = useSidebar();
|
|
2937
|
-
const Comp = asChild ?
|
|
3103
|
+
const Comp = asChild ? Slot5 : "button";
|
|
2938
3104
|
const resolvedAriaLabel = ariaLabel ?? (asChild ? void 0 : open ? "Collapse sidebar" : "Expand sidebar");
|
|
2939
|
-
return /* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ jsx50(
|
|
2940
3106
|
Comp,
|
|
2941
3107
|
{
|
|
2942
3108
|
ref,
|
|
@@ -2970,12 +3136,12 @@ var SidebarTrigger = React39.forwardRef(
|
|
|
2970
3136
|
className: "h-4 w-4",
|
|
2971
3137
|
"aria-hidden": "true",
|
|
2972
3138
|
children: [
|
|
2973
|
-
/* @__PURE__ */
|
|
2974
|
-
/* @__PURE__ */
|
|
3139
|
+
/* @__PURE__ */ jsx50("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
|
|
3140
|
+
/* @__PURE__ */ jsx50("line", { x1: "9", y1: "3", x2: "9", y2: "21" })
|
|
2975
3141
|
]
|
|
2976
3142
|
}
|
|
2977
3143
|
),
|
|
2978
|
-
/* @__PURE__ */
|
|
3144
|
+
/* @__PURE__ */ jsx50("span", { className: "sr-only", children: "Toggle sidebar" })
|
|
2979
3145
|
] })
|
|
2980
3146
|
}
|
|
2981
3147
|
);
|
|
@@ -2983,7 +3149,7 @@ var SidebarTrigger = React39.forwardRef(
|
|
|
2983
3149
|
);
|
|
2984
3150
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
2985
3151
|
var SidebarHeader = React39.forwardRef(
|
|
2986
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3152
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
2987
3153
|
"div",
|
|
2988
3154
|
{
|
|
2989
3155
|
ref,
|
|
@@ -2994,7 +3160,7 @@ var SidebarHeader = React39.forwardRef(
|
|
|
2994
3160
|
);
|
|
2995
3161
|
SidebarHeader.displayName = "SidebarHeader";
|
|
2996
3162
|
var SidebarContent = React39.forwardRef(
|
|
2997
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3163
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
2998
3164
|
"div",
|
|
2999
3165
|
{
|
|
3000
3166
|
ref,
|
|
@@ -3005,7 +3171,7 @@ var SidebarContent = React39.forwardRef(
|
|
|
3005
3171
|
);
|
|
3006
3172
|
SidebarContent.displayName = "SidebarContent";
|
|
3007
3173
|
var SidebarFooter = React39.forwardRef(
|
|
3008
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3174
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
3009
3175
|
"div",
|
|
3010
3176
|
{
|
|
3011
3177
|
ref,
|
|
@@ -3017,8 +3183,8 @@ var SidebarFooter = React39.forwardRef(
|
|
|
3017
3183
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3018
3184
|
var SidebarItem = React39.forwardRef(
|
|
3019
3185
|
({ asChild, active, className, ...props }, ref) => {
|
|
3020
|
-
const Comp = asChild ?
|
|
3021
|
-
return /* @__PURE__ */
|
|
3186
|
+
const Comp = asChild ? Slot5 : "button";
|
|
3187
|
+
return /* @__PURE__ */ jsx50(
|
|
3022
3188
|
Comp,
|
|
3023
3189
|
{
|
|
3024
3190
|
ref,
|
|
@@ -4843,6 +5009,535 @@ var aspectRatioSchema = {
|
|
|
4843
5009
|
tags: ["aspect-ratio", "layout", "image", "video", "ratio"]
|
|
4844
5010
|
};
|
|
4845
5011
|
|
|
5012
|
+
// src/primitives/container/container.schema.ts
|
|
5013
|
+
var containerSchema = {
|
|
5014
|
+
name: "container",
|
|
5015
|
+
displayName: "Container",
|
|
5016
|
+
description: "Centered max-width wrapper that constrains content to readable widths. Sizes map to `--container-*` prose-width tokens; padding maps to `--space-*`.",
|
|
5017
|
+
category: "primitive",
|
|
5018
|
+
subcategory: "layout",
|
|
5019
|
+
props: [
|
|
5020
|
+
{
|
|
5021
|
+
name: "size",
|
|
5022
|
+
type: "enum",
|
|
5023
|
+
required: false,
|
|
5024
|
+
default: "lg",
|
|
5025
|
+
description: "Max-width preset bound to `--container-*` tokens (sm=33rem, md=40rem, lg=50rem, xl=66rem, full=100%).",
|
|
5026
|
+
enumValues: ["sm", "md", "lg", "xl", "full"]
|
|
5027
|
+
},
|
|
5028
|
+
{
|
|
5029
|
+
name: "padding",
|
|
5030
|
+
type: "enum",
|
|
5031
|
+
required: false,
|
|
5032
|
+
default: "md",
|
|
5033
|
+
description: "Horizontal padding bound to `--space-*` tokens (none=0, sm=0.75rem, md=1rem, lg=2rem).",
|
|
5034
|
+
enumValues: ["none", "sm", "md", "lg"]
|
|
5035
|
+
},
|
|
5036
|
+
{
|
|
5037
|
+
name: "asChild",
|
|
5038
|
+
type: "boolean",
|
|
5039
|
+
required: false,
|
|
5040
|
+
default: false,
|
|
5041
|
+
description: "Render as a different element via Radix `Slot`. Use to render as `<main>`, `<section>`, etc. for landmark semantics."
|
|
5042
|
+
}
|
|
5043
|
+
],
|
|
5044
|
+
variants: [
|
|
5045
|
+
{
|
|
5046
|
+
name: "size",
|
|
5047
|
+
description: "Max-width preset bound to `--container-*` tokens.",
|
|
5048
|
+
values: [
|
|
5049
|
+
{ value: "sm", description: "33rem (\u2248530px) \u2014 narrow column for short content." },
|
|
5050
|
+
{ value: "md", description: "40rem (\u2248640px) \u2014 comfortable reading width." },
|
|
5051
|
+
{ value: "lg", description: "50rem (\u2248800px) \u2014 default; standard article width." },
|
|
5052
|
+
{ value: "xl", description: "66rem (\u22481056px) \u2014 wider canvas for dashboards or marketing." },
|
|
5053
|
+
{ value: "full", description: "100% \u2014 disable max-width clamp." }
|
|
5054
|
+
],
|
|
5055
|
+
default: "lg"
|
|
5056
|
+
},
|
|
5057
|
+
{
|
|
5058
|
+
name: "padding",
|
|
5059
|
+
description: "Horizontal padding bound to `--space-*` tokens.",
|
|
5060
|
+
values: [
|
|
5061
|
+
{ value: "none", description: "0 \u2014 flush to container edges." },
|
|
5062
|
+
{ value: "sm", description: "0.75rem \u2014 tight gutter." },
|
|
5063
|
+
{ value: "md", description: "1rem \u2014 default; standard reading gutter." },
|
|
5064
|
+
{ value: "lg", description: "2rem \u2014 generous gutter for marketing pages." }
|
|
5065
|
+
],
|
|
5066
|
+
default: "md"
|
|
5067
|
+
}
|
|
5068
|
+
],
|
|
5069
|
+
slots: [
|
|
5070
|
+
{
|
|
5071
|
+
name: "children",
|
|
5072
|
+
description: "Page content to constrain \u2014 typically a section, article, or grid.",
|
|
5073
|
+
required: true,
|
|
5074
|
+
acceptedTypes: ["ReactNode"]
|
|
5075
|
+
}
|
|
5076
|
+
],
|
|
5077
|
+
dependencies: {
|
|
5078
|
+
npm: ["class-variance-authority", "@radix-ui/react-slot"],
|
|
5079
|
+
internal: ["lib/utils"],
|
|
5080
|
+
peer: ["react"]
|
|
5081
|
+
},
|
|
5082
|
+
tokensUsed: [
|
|
5083
|
+
"--container-sm",
|
|
5084
|
+
"--container-md",
|
|
5085
|
+
"--container-lg",
|
|
5086
|
+
"--container-xl",
|
|
5087
|
+
"--space-3",
|
|
5088
|
+
"--space-4",
|
|
5089
|
+
"--space-8"
|
|
5090
|
+
],
|
|
5091
|
+
examples: [
|
|
5092
|
+
{
|
|
5093
|
+
title: "Reading-width article",
|
|
5094
|
+
description: "lg size (50rem) + md padding for an article body.",
|
|
5095
|
+
code: '<Container size="lg" padding="md">\n <article>...</article>\n</Container>'
|
|
5096
|
+
},
|
|
5097
|
+
{
|
|
5098
|
+
title: "Full-width hero",
|
|
5099
|
+
description: "Use size=full when you want the section to span the viewport.",
|
|
5100
|
+
code: '<Container size="full" padding="none">\n <Hero />\n</Container>'
|
|
5101
|
+
}
|
|
5102
|
+
],
|
|
5103
|
+
ai: {
|
|
5104
|
+
whenToUse: "Use to constrain page content to readable widths. Pair with `Stack` or `Grid` inside for vertical/grid layouts. Default for any centered article, settings page, or marketing section.",
|
|
5105
|
+
whenNotToUse: 'Don\'t use inside another `Container` (double-clamping). Don\'t use as a drop-in for `<main>` semantics \u2014 it\'s a layout primitive, not a landmark. For full-bleed sections (edge-to-edge banners), pass `size="full" padding="none"`.',
|
|
5106
|
+
commonMistakes: [
|
|
5107
|
+
"Wrapping a `Container` in another `Container` and getting an unexpectedly narrow column",
|
|
5108
|
+
'Using `padding="none"` and forgetting that children still need their own gutter \u2014 the parent contributes nothing',
|
|
5109
|
+
"Treating `lg` as the largest size \u2014 `xl` (66rem) and `full` are bigger"
|
|
5110
|
+
],
|
|
5111
|
+
relatedComponents: ["stack", "grid", "cluster"],
|
|
5112
|
+
accessibilityNotes: "Container is presentational. Wrap in a semantic landmark (`<main>`, `<section>`, `<article>`) when the page structure needs it; Container itself renders a plain `<div>`.",
|
|
5113
|
+
tokenBudget: 250
|
|
5114
|
+
},
|
|
5115
|
+
tags: ["container", "layout", "wrapper", "max-width", "primitive"]
|
|
5116
|
+
};
|
|
5117
|
+
|
|
5118
|
+
// src/primitives/stack/stack.schema.ts
|
|
5119
|
+
var stackSchema = {
|
|
5120
|
+
name: "stack",
|
|
5121
|
+
displayName: "Stack",
|
|
5122
|
+
description: 'Vertical flex flow with token-bound gap. The headless equivalent of `<div className="flex flex-col gap-X">` with consistent spacing scale.',
|
|
5123
|
+
category: "primitive",
|
|
5124
|
+
subcategory: "layout",
|
|
5125
|
+
props: [
|
|
5126
|
+
{
|
|
5127
|
+
name: "gap",
|
|
5128
|
+
type: "enum",
|
|
5129
|
+
required: false,
|
|
5130
|
+
default: "md",
|
|
5131
|
+
description: "Vertical spacing between children, bound to `--gap-*` tokens.",
|
|
5132
|
+
enumValues: ["xs", "sm", "md", "lg", "xl"]
|
|
5133
|
+
},
|
|
5134
|
+
{
|
|
5135
|
+
name: "align",
|
|
5136
|
+
type: "enum",
|
|
5137
|
+
required: false,
|
|
5138
|
+
default: "stretch",
|
|
5139
|
+
description: "Cross-axis alignment (CSS `align-items`).",
|
|
5140
|
+
enumValues: ["start", "center", "end", "stretch"]
|
|
5141
|
+
},
|
|
5142
|
+
{
|
|
5143
|
+
name: "justify",
|
|
5144
|
+
type: "enum",
|
|
5145
|
+
required: false,
|
|
5146
|
+
default: "start",
|
|
5147
|
+
description: "Main-axis distribution (CSS `justify-content`).",
|
|
5148
|
+
enumValues: ["start", "center", "end", "between"]
|
|
5149
|
+
}
|
|
5150
|
+
],
|
|
5151
|
+
variants: [
|
|
5152
|
+
{
|
|
5153
|
+
name: "gap",
|
|
5154
|
+
description: "Vertical gap between children, bound to `--gap-*` tokens.",
|
|
5155
|
+
values: [
|
|
5156
|
+
{ value: "xs", description: "0.25rem \u2014 barely-there spacing." },
|
|
5157
|
+
{ value: "sm", description: "0.5rem \u2014 tight grouping." },
|
|
5158
|
+
{ value: "md", description: "1rem \u2014 default; standard rhythm." },
|
|
5159
|
+
{ value: "lg", description: "1.5rem \u2014 section-level spacing." },
|
|
5160
|
+
{ value: "xl", description: "2rem \u2014 major separation." }
|
|
5161
|
+
],
|
|
5162
|
+
default: "md"
|
|
5163
|
+
},
|
|
5164
|
+
{
|
|
5165
|
+
name: "align",
|
|
5166
|
+
description: "Cross-axis alignment (CSS `align-items`).",
|
|
5167
|
+
values: [
|
|
5168
|
+
{ value: "start", description: "Children align to left edge." },
|
|
5169
|
+
{ value: "center", description: "Children center horizontally." },
|
|
5170
|
+
{ value: "end", description: "Children align to right edge." },
|
|
5171
|
+
{ value: "stretch", description: "Default \u2014 children fill container width." }
|
|
5172
|
+
],
|
|
5173
|
+
default: "stretch"
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
name: "justify",
|
|
5177
|
+
description: "Main-axis distribution (CSS `justify-content`).",
|
|
5178
|
+
values: [
|
|
5179
|
+
{ value: "start", description: "Default \u2014 children pack to top." },
|
|
5180
|
+
{ value: "center", description: "Children center vertically." },
|
|
5181
|
+
{ value: "end", description: "Children pack to bottom." },
|
|
5182
|
+
{ value: "between", description: "First child to top, last to bottom, even distribution." }
|
|
5183
|
+
],
|
|
5184
|
+
default: "start"
|
|
5185
|
+
}
|
|
5186
|
+
],
|
|
5187
|
+
slots: [
|
|
5188
|
+
{
|
|
5189
|
+
name: "children",
|
|
5190
|
+
description: "Items to stack vertically.",
|
|
5191
|
+
required: true,
|
|
5192
|
+
acceptedTypes: ["ReactNode"]
|
|
5193
|
+
}
|
|
5194
|
+
],
|
|
5195
|
+
dependencies: {
|
|
5196
|
+
npm: ["class-variance-authority"],
|
|
5197
|
+
internal: ["lib/utils"],
|
|
5198
|
+
peer: ["react"]
|
|
5199
|
+
},
|
|
5200
|
+
tokensUsed: ["--gap-xs", "--gap-sm", "--gap-md", "--gap-lg", "--gap-xl"],
|
|
5201
|
+
examples: [
|
|
5202
|
+
{
|
|
5203
|
+
title: "Form sections",
|
|
5204
|
+
description: "Lg gap separates labelled groups; nested Stack with sm gap groups label+input.",
|
|
5205
|
+
code: '<Stack gap="lg">\n <Stack gap="sm"><Label>Email</Label><Input /></Stack>\n <Stack gap="sm"><Label>Password</Label><Input type="password" /></Stack>\n <Button>Submit</Button>\n</Stack>'
|
|
5206
|
+
},
|
|
5207
|
+
{
|
|
5208
|
+
title: "Centered hero",
|
|
5209
|
+
description: "Center children horizontally for a centered call-to-action stack.",
|
|
5210
|
+
code: '<Stack gap="md" align="center">\n <h1>Title</h1>\n <p>Subtitle</p>\n <Button>Get started</Button>\n</Stack>'
|
|
5211
|
+
}
|
|
5212
|
+
],
|
|
5213
|
+
ai: {
|
|
5214
|
+
whenToUse: "Use anywhere you'd write `flex flex-col gap-X`. Default for vertical lists of dissimilar items (label + input + helper text), section bodies, sidebar items, button groups stacked vertically.",
|
|
5215
|
+
whenNotToUse: "Don't use for tabular data \u2014 use `<table>` or DataTable. Don't use for grid-like layouts \u2014 use `Grid`. Don't reach for `Stack` when a single child needs no spacing \u2014 just render the child.",
|
|
5216
|
+
commonMistakes: [
|
|
5217
|
+
'Setting `gap="md"` then adding `mt-*` / `space-y-*` on individual children \u2014 pick one spacing system',
|
|
5218
|
+
'Using `align="center"` and wondering why children expand to full width \u2014 that\'s the `stretch` default for cross-axis',
|
|
5219
|
+
"Nesting Stack inside Stack with the same gap when one Stack with two children would suffice"
|
|
5220
|
+
],
|
|
5221
|
+
relatedComponents: ["cluster", "grid", "container"],
|
|
5222
|
+
accessibilityNotes: "Stack is presentational. Wrap stacked navigation links in a `<nav>`, stacked form fields in a `<form>`, etc. \u2014 Stack does not contribute landmark semantics.",
|
|
5223
|
+
tokenBudget: 250
|
|
5224
|
+
},
|
|
5225
|
+
tags: ["stack", "layout", "flex", "column", "vertical", "primitive"]
|
|
5226
|
+
};
|
|
5227
|
+
|
|
5228
|
+
// src/primitives/cluster/cluster.schema.ts
|
|
5229
|
+
var clusterSchema = {
|
|
5230
|
+
name: "cluster",
|
|
5231
|
+
displayName: "Cluster",
|
|
5232
|
+
description: "Horizontal flex flow with wrap and token-bound gap. Use for tag lists, button rows, breadcrumbs, and any group of equally-weighted inline items.",
|
|
5233
|
+
category: "primitive",
|
|
5234
|
+
subcategory: "layout",
|
|
5235
|
+
props: [
|
|
5236
|
+
{
|
|
5237
|
+
name: "gap",
|
|
5238
|
+
type: "enum",
|
|
5239
|
+
required: false,
|
|
5240
|
+
default: "md",
|
|
5241
|
+
description: "Gap between items, bound to `--gap-*` tokens. Applies to both row and column gaps when wrapping.",
|
|
5242
|
+
enumValues: ["xs", "sm", "md", "lg", "xl"]
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
name: "align",
|
|
5246
|
+
type: "enum",
|
|
5247
|
+
required: false,
|
|
5248
|
+
default: "center",
|
|
5249
|
+
description: "Cross-axis alignment (CSS `align-items`). `baseline` aligns text-baselines for mixed-size siblings; `stretch` makes items fill row height (useful for wrap-card layouts).",
|
|
5250
|
+
enumValues: ["start", "center", "end", "stretch", "baseline"]
|
|
5251
|
+
},
|
|
5252
|
+
{
|
|
5253
|
+
name: "justify",
|
|
5254
|
+
type: "enum",
|
|
5255
|
+
required: false,
|
|
5256
|
+
default: "start",
|
|
5257
|
+
description: "Main-axis distribution (CSS `justify-content`).",
|
|
5258
|
+
enumValues: ["start", "center", "end", "between"]
|
|
5259
|
+
}
|
|
5260
|
+
],
|
|
5261
|
+
variants: [
|
|
5262
|
+
{
|
|
5263
|
+
name: "gap",
|
|
5264
|
+
description: "Gap between items, bound to `--gap-*` tokens (applies to row + column gaps when wrapping).",
|
|
5265
|
+
values: [
|
|
5266
|
+
{ value: "xs", description: "0.25rem \u2014 barely-there spacing." },
|
|
5267
|
+
{ value: "sm", description: "0.5rem \u2014 tight chip group." },
|
|
5268
|
+
{ value: "md", description: "1rem \u2014 default; standard rhythm." },
|
|
5269
|
+
{ value: "lg", description: "1.5rem \u2014 generous separation." },
|
|
5270
|
+
{ value: "xl", description: "2rem \u2014 section-scale spacing." }
|
|
5271
|
+
],
|
|
5272
|
+
default: "md"
|
|
5273
|
+
},
|
|
5274
|
+
{
|
|
5275
|
+
name: "align",
|
|
5276
|
+
description: "Cross-axis alignment (CSS `align-items`).",
|
|
5277
|
+
values: [
|
|
5278
|
+
{ value: "start", description: "Items align to top of row." },
|
|
5279
|
+
{ value: "center", description: "Default \u2014 items center vertically in the row." },
|
|
5280
|
+
{ value: "end", description: "Items align to bottom of row." },
|
|
5281
|
+
{ value: "stretch", description: "Items fill row height \u2014 use for wrap layouts of equal-height cards." },
|
|
5282
|
+
{ value: "baseline", description: "Text-baselines align across mixed-size siblings." }
|
|
5283
|
+
],
|
|
5284
|
+
default: "center"
|
|
5285
|
+
},
|
|
5286
|
+
{
|
|
5287
|
+
name: "justify",
|
|
5288
|
+
description: "Main-axis distribution (CSS `justify-content`).",
|
|
5289
|
+
values: [
|
|
5290
|
+
{ value: "start", description: "Default \u2014 items pack to start of row." },
|
|
5291
|
+
{ value: "center", description: "Items center horizontally." },
|
|
5292
|
+
{ value: "end", description: "Items pack to end of row." },
|
|
5293
|
+
{ value: "between", description: "First item flush left, last flush right, even distribution." }
|
|
5294
|
+
],
|
|
5295
|
+
default: "start"
|
|
5296
|
+
}
|
|
5297
|
+
],
|
|
5298
|
+
slots: [
|
|
5299
|
+
{
|
|
5300
|
+
name: "children",
|
|
5301
|
+
description: "Items to lay out horizontally with wrap.",
|
|
5302
|
+
required: true,
|
|
5303
|
+
acceptedTypes: ["ReactNode"]
|
|
5304
|
+
}
|
|
5305
|
+
],
|
|
5306
|
+
dependencies: {
|
|
5307
|
+
npm: ["class-variance-authority"],
|
|
5308
|
+
internal: ["lib/utils"],
|
|
5309
|
+
peer: ["react"]
|
|
5310
|
+
},
|
|
5311
|
+
tokensUsed: ["--gap-xs", "--gap-sm", "--gap-md", "--gap-lg", "--gap-xl"],
|
|
5312
|
+
examples: [
|
|
5313
|
+
{
|
|
5314
|
+
title: "Tag chips",
|
|
5315
|
+
description: "Small gap, wraps when overflowing the row.",
|
|
5316
|
+
code: '<Cluster gap="sm">\n {tags.map((t) => <Badge key={t}>{t}</Badge>)}\n</Cluster>'
|
|
5317
|
+
},
|
|
5318
|
+
{
|
|
5319
|
+
title: "Action bar",
|
|
5320
|
+
description: "Right-aligned buttons inside a panel footer.",
|
|
5321
|
+
code: '<Cluster gap="sm" justify="end">\n <Button variant="ghost">Cancel</Button>\n <Button>Save</Button>\n</Cluster>'
|
|
5322
|
+
}
|
|
5323
|
+
],
|
|
5324
|
+
ai: {
|
|
5325
|
+
whenToUse: "Use for any horizontal row of items that should wrap when space runs out: tag clouds, breadcrumbs, button rows, social-link icon strips, inline metadata badges. Pick `Cluster` over `flex` when you want predictable wrap + gap behavior.",
|
|
5326
|
+
whenNotToUse: "Don't use for two-element rows where you need precise positional control (left/right) \u2014 use `Stack` rotated or a flex with `justify-between` directly. Don't use for grid-aligned layouts where columns must line up across rows \u2014 use `Grid`.",
|
|
5327
|
+
commonMistakes: [
|
|
5328
|
+
"Forgetting that `Cluster` wraps \u2014 adding `flex-nowrap` defeats the purpose; if you don't want wrap, use a flex row or `Stack` rotated",
|
|
5329
|
+
"Setting `align=\"baseline\"` for icon+text rows where the icon's bbox doesn't have a baseline \u2014 use `center` instead",
|
|
5330
|
+
"Reaching for `Cluster` for tabular alignment \u2014 use `Grid` or a real `<table>` when columns must line up"
|
|
5331
|
+
],
|
|
5332
|
+
relatedComponents: ["stack", "grid", "container"],
|
|
5333
|
+
accessibilityNotes: "Cluster is presentational. Lists of navigational items should be wrapped in `<nav>` (and ideally `<ul>` / `<li>`). Lists of tags can use a list element for screen-reader semantics; the visual wrap is independent.",
|
|
5334
|
+
tokenBudget: 250
|
|
5335
|
+
},
|
|
5336
|
+
tags: ["cluster", "layout", "flex", "wrap", "horizontal", "primitive"]
|
|
5337
|
+
};
|
|
5338
|
+
|
|
5339
|
+
// src/primitives/grid/grid.schema.ts
|
|
5340
|
+
var gridSchema = {
|
|
5341
|
+
name: "grid",
|
|
5342
|
+
displayName: "Grid",
|
|
5343
|
+
description: 'CSS grid with column-count presets and token-bound gap. Pass `cols="auto-fit"` + `minColWidth` for responsive grids without media queries.',
|
|
5344
|
+
category: "primitive",
|
|
5345
|
+
subcategory: "layout",
|
|
5346
|
+
props: [
|
|
5347
|
+
{
|
|
5348
|
+
name: "cols",
|
|
5349
|
+
type: "enum",
|
|
5350
|
+
required: false,
|
|
5351
|
+
default: "3",
|
|
5352
|
+
description: 'Number of fixed columns, or `"auto-fit"` for responsive tracks (use with `minColWidth`).',
|
|
5353
|
+
enumValues: ["1", "2", "3", "4", "6", "auto-fit"]
|
|
5354
|
+
},
|
|
5355
|
+
{
|
|
5356
|
+
name: "gap",
|
|
5357
|
+
type: "enum",
|
|
5358
|
+
required: false,
|
|
5359
|
+
default: "md",
|
|
5360
|
+
description: "Gap between cells, bound to `--gap-*` tokens.",
|
|
5361
|
+
enumValues: ["xs", "sm", "md", "lg", "xl"]
|
|
5362
|
+
},
|
|
5363
|
+
{
|
|
5364
|
+
name: "align",
|
|
5365
|
+
type: "enum",
|
|
5366
|
+
required: false,
|
|
5367
|
+
default: "stretch",
|
|
5368
|
+
description: "Cell vertical alignment within their grid row.",
|
|
5369
|
+
enumValues: ["start", "center", "end", "stretch"]
|
|
5370
|
+
},
|
|
5371
|
+
{
|
|
5372
|
+
name: "minColWidth",
|
|
5373
|
+
type: "string",
|
|
5374
|
+
required: false,
|
|
5375
|
+
default: "16rem",
|
|
5376
|
+
description: 'Min track size for `cols="auto-fit"` (e.g. `"20rem"`). Ignored when `cols` is a fixed integer.'
|
|
5377
|
+
}
|
|
5378
|
+
],
|
|
5379
|
+
variants: [
|
|
5380
|
+
{
|
|
5381
|
+
name: "cols",
|
|
5382
|
+
description: "Column count or `auto-fit` mode.",
|
|
5383
|
+
values: [
|
|
5384
|
+
{ value: "1", description: "Single column \u2014 items stack vertically inside the grid." },
|
|
5385
|
+
{ value: "2", description: "Two even columns." },
|
|
5386
|
+
{ value: "3", description: "Default \u2014 three even columns." },
|
|
5387
|
+
{ value: "4", description: "Four even columns." },
|
|
5388
|
+
{ value: "6", description: "Six even columns \u2014 dense layouts." },
|
|
5389
|
+
{ value: "auto-fit", description: "Tracks repeat to fill width, never below `minColWidth`." }
|
|
5390
|
+
],
|
|
5391
|
+
default: "3"
|
|
5392
|
+
},
|
|
5393
|
+
{
|
|
5394
|
+
name: "gap",
|
|
5395
|
+
description: "Gap between cells, bound to `--gap-*` tokens.",
|
|
5396
|
+
values: [
|
|
5397
|
+
{ value: "xs", description: "0.25rem \u2014 minimal separation." },
|
|
5398
|
+
{ value: "sm", description: "0.5rem \u2014 tight grid." },
|
|
5399
|
+
{ value: "md", description: "1rem \u2014 default; standard rhythm." },
|
|
5400
|
+
{ value: "lg", description: "1.5rem \u2014 generous separation." },
|
|
5401
|
+
{ value: "xl", description: "2rem \u2014 major separation between cards." }
|
|
5402
|
+
],
|
|
5403
|
+
default: "md"
|
|
5404
|
+
},
|
|
5405
|
+
{
|
|
5406
|
+
name: "align",
|
|
5407
|
+
description: "Cell vertical alignment within their grid row.",
|
|
5408
|
+
values: [
|
|
5409
|
+
{ value: "start", description: "Cells align to top of row." },
|
|
5410
|
+
{ value: "center", description: "Cells center vertically." },
|
|
5411
|
+
{ value: "end", description: "Cells align to bottom of row." },
|
|
5412
|
+
{ value: "stretch", description: "Default \u2014 cells fill row height." }
|
|
5413
|
+
],
|
|
5414
|
+
default: "stretch"
|
|
5415
|
+
}
|
|
5416
|
+
],
|
|
5417
|
+
slots: [
|
|
5418
|
+
{
|
|
5419
|
+
name: "children",
|
|
5420
|
+
description: "Grid cells \u2014 typically Cards, images, or any uniform block.",
|
|
5421
|
+
required: true,
|
|
5422
|
+
acceptedTypes: ["ReactNode"]
|
|
5423
|
+
}
|
|
5424
|
+
],
|
|
5425
|
+
dependencies: {
|
|
5426
|
+
npm: ["class-variance-authority"],
|
|
5427
|
+
internal: ["lib/utils"],
|
|
5428
|
+
peer: ["react"]
|
|
5429
|
+
},
|
|
5430
|
+
tokensUsed: ["--gap-xs", "--gap-sm", "--gap-md", "--gap-lg", "--gap-xl"],
|
|
5431
|
+
examples: [
|
|
5432
|
+
{
|
|
5433
|
+
title: "Three-column card grid",
|
|
5434
|
+
description: "Fixed 3 columns with medium gap.",
|
|
5435
|
+
code: '<Grid cols={3} gap="md">\n {items.map((i) => <Card key={i.id}>{i.title}</Card>)}\n</Grid>'
|
|
5436
|
+
},
|
|
5437
|
+
{
|
|
5438
|
+
title: "Responsive auto-fit",
|
|
5439
|
+
description: "Tracks fit as many 20rem columns as the viewport allows; no media queries needed.",
|
|
5440
|
+
code: '<Grid cols="auto-fit" minColWidth="20rem" gap="lg">\n {items.map(...)}\n</Grid>'
|
|
5441
|
+
}
|
|
5442
|
+
],
|
|
5443
|
+
ai: {
|
|
5444
|
+
whenToUse: 'Use for visually-aligned grids of similar items: card galleries, image walls, dashboard tiles, settings panels. Prefer `cols="auto-fit"` + `minColWidth` over hand-written breakpoints when the column count should adapt to viewport width.',
|
|
5445
|
+
whenNotToUse: "Don't use for one-dimensional flows \u2014 use `Stack` (vertical) or `Cluster` (horizontal). Don't use for tabular data \u2014 use `<table>` or DataTable. Don't fight `Grid` to make uneven columns; if cells need different sizes, use a flexbox layout or a CSS grid with named tracks directly.",
|
|
5446
|
+
commonMistakes: [
|
|
5447
|
+
'Setting `cols={5}` and getting nothing \u2014 the preset only supports 1/2/3/4/6 (deliberate, to avoid odd visual rhythms); use `cols="auto-fit"` for arbitrary counts',
|
|
5448
|
+
'Passing `cols="auto-fit"` without `minColWidth` \u2014 the default `16rem` may not match your design intent',
|
|
5449
|
+
"Using `Grid` for two children when `Cluster` or `Stack` would communicate intent better"
|
|
5450
|
+
],
|
|
5451
|
+
relatedComponents: ["stack", "cluster", "container", "card"],
|
|
5452
|
+
accessibilityNotes: "Grid is presentational. If the grid renders a list of similar items, wrap in `<ul>`/`<li>` for screen-reader semantics \u2014 Grid only handles visual layout.",
|
|
5453
|
+
tokenBudget: 300
|
|
5454
|
+
},
|
|
5455
|
+
tags: ["grid", "layout", "css-grid", "responsive", "auto-fit", "primitive"]
|
|
5456
|
+
};
|
|
5457
|
+
|
|
5458
|
+
// src/primitives/spacer/spacer.schema.ts
|
|
5459
|
+
var spacerSchema = {
|
|
5460
|
+
name: "spacer",
|
|
5461
|
+
displayName: "Spacer",
|
|
5462
|
+
description: "Declarative whitespace block bound to `--space-*` tokens. Use when sibling spacing can't come from a parent's `gap`.",
|
|
5463
|
+
category: "primitive",
|
|
5464
|
+
subcategory: "layout",
|
|
5465
|
+
props: [
|
|
5466
|
+
{
|
|
5467
|
+
name: "size",
|
|
5468
|
+
type: "enum",
|
|
5469
|
+
required: false,
|
|
5470
|
+
default: "md",
|
|
5471
|
+
description: "Spacing token (xs=0.25rem, sm=0.5rem, md=1rem, lg=2rem, xl=4rem). Bound to `--space-*`.",
|
|
5472
|
+
enumValues: ["xs", "sm", "md", "lg", "xl"]
|
|
5473
|
+
},
|
|
5474
|
+
{
|
|
5475
|
+
name: "axis",
|
|
5476
|
+
type: "enum",
|
|
5477
|
+
required: false,
|
|
5478
|
+
default: "vertical",
|
|
5479
|
+
description: "Which axis to expand. Vertical = height; horizontal = width; both = square.",
|
|
5480
|
+
enumValues: ["vertical", "horizontal", "both"]
|
|
5481
|
+
}
|
|
5482
|
+
],
|
|
5483
|
+
variants: [
|
|
5484
|
+
{
|
|
5485
|
+
name: "size",
|
|
5486
|
+
description: "Spacer extent bound to `--space-*` tokens.",
|
|
5487
|
+
values: [
|
|
5488
|
+
{ value: "xs", description: "0.25rem \u2014 micro-gap." },
|
|
5489
|
+
{ value: "sm", description: "0.5rem \u2014 tight separation." },
|
|
5490
|
+
{ value: "md", description: "1rem \u2014 default; standard breathing room." },
|
|
5491
|
+
{ value: "lg", description: "2rem \u2014 section-scale separation." },
|
|
5492
|
+
{ value: "xl", description: "4rem \u2014 major separation between hero areas." }
|
|
5493
|
+
],
|
|
5494
|
+
default: "md"
|
|
5495
|
+
},
|
|
5496
|
+
{
|
|
5497
|
+
name: "axis",
|
|
5498
|
+
description: "Which axis the spacer extends along.",
|
|
5499
|
+
values: [
|
|
5500
|
+
{ value: "vertical", description: "Default \u2014 fixed height, 1px width." },
|
|
5501
|
+
{ value: "horizontal", description: "Fixed width, 1px height \u2014 for flex rows." },
|
|
5502
|
+
{ value: "both", description: "Square block \u2014 rare; usually pick one axis." }
|
|
5503
|
+
],
|
|
5504
|
+
default: "vertical"
|
|
5505
|
+
}
|
|
5506
|
+
],
|
|
5507
|
+
slots: [],
|
|
5508
|
+
dependencies: {
|
|
5509
|
+
npm: ["class-variance-authority"],
|
|
5510
|
+
internal: ["lib/utils"],
|
|
5511
|
+
peer: ["react"]
|
|
5512
|
+
},
|
|
5513
|
+
tokensUsed: ["--space-1", "--space-2", "--space-4", "--space-8", "--space-16"],
|
|
5514
|
+
examples: [
|
|
5515
|
+
{
|
|
5516
|
+
title: "Vertical breathing room",
|
|
5517
|
+
description: "Push two sections apart inside a parent that doesn't manage gap.",
|
|
5518
|
+
code: '<>\n <Hero />\n <Spacer size="xl" />\n <Features />\n</>'
|
|
5519
|
+
},
|
|
5520
|
+
{
|
|
5521
|
+
title: "Horizontal flex spacer",
|
|
5522
|
+
description: "Push siblings to opposite ends of a flex row.",
|
|
5523
|
+
code: '<div className="flex items-center">\n <Logo />\n <Spacer axis="horizontal" size="lg" />\n <Nav />\n</div>'
|
|
5524
|
+
}
|
|
5525
|
+
],
|
|
5526
|
+
ai: {
|
|
5527
|
+
whenToUse: "Use as an explicit whitespace primitive when you can't (or don't want to) use `gap` on the parent \u2014 typically: pushing siblings apart inside a flex row that already has gap-0, or inserting one-off vertical breathing room between top-level sections that aren't wrapped in a Stack.",
|
|
5528
|
+
whenNotToUse: "Don't use Spacer when a `Stack` or `Cluster` parent's `gap` would do the same thing \u2014 that scales better and keeps the spacing concern with the layout primitive. Don't use Spacer to flush content to one edge of a flex container \u2014 use `ml-auto` / `justify-between` directly.",
|
|
5529
|
+
commonMistakes: [
|
|
5530
|
+
"Using `<Spacer />` between every child in a Stack \u2014 just set the Stack's `gap` instead",
|
|
5531
|
+
'Using `axis="both"` and getting a square block where you wanted a line \u2014 `both` is rare, usually you want vertical or horizontal',
|
|
5532
|
+
`Setting size="lg" on a horizontal spacer and getting nothing visible because the parent isn't a flex row \u2014 Spacer reserves space, it doesn't push siblings on its own`
|
|
5533
|
+
],
|
|
5534
|
+
relatedComponents: ["stack", "cluster", "separator"],
|
|
5535
|
+
accessibilityNotes: 'Spacer is `aria-hidden="true"` \u2014 screen readers skip it. Don\'t use a Spacer where a `Separator` would convey meaning (a thematic break should be `Separator`, not `Spacer`).',
|
|
5536
|
+
tokenBudget: 200
|
|
5537
|
+
},
|
|
5538
|
+
tags: ["spacer", "layout", "whitespace", "spacing", "primitive"]
|
|
5539
|
+
};
|
|
5540
|
+
|
|
4846
5541
|
// src/components/collapsible/collapsible.schema.ts
|
|
4847
5542
|
var collapsibleSchema = {
|
|
4848
5543
|
name: "collapsible",
|
|
@@ -6266,6 +6961,7 @@ export {
|
|
|
6266
6961
|
CardHeader,
|
|
6267
6962
|
CardTitle,
|
|
6268
6963
|
Checkbox,
|
|
6964
|
+
Cluster,
|
|
6269
6965
|
Collapsible,
|
|
6270
6966
|
CollapsibleContent2 as CollapsibleContent,
|
|
6271
6967
|
CollapsibleTrigger2 as CollapsibleTrigger,
|
|
@@ -6279,6 +6975,7 @@ export {
|
|
|
6279
6975
|
CommandList,
|
|
6280
6976
|
CommandSeparator,
|
|
6281
6977
|
CommandShortcut,
|
|
6978
|
+
Container,
|
|
6282
6979
|
ContextMenu,
|
|
6283
6980
|
ContextMenuCheckboxItem,
|
|
6284
6981
|
ContextMenuContent,
|
|
@@ -6333,6 +7030,7 @@ export {
|
|
|
6333
7030
|
FormItem,
|
|
6334
7031
|
FormLabel,
|
|
6335
7032
|
FormMessage,
|
|
7033
|
+
Grid,
|
|
6336
7034
|
HoverCard,
|
|
6337
7035
|
HoverCardContent,
|
|
6338
7036
|
HoverCardTrigger,
|
|
@@ -6408,6 +7106,8 @@ export {
|
|
|
6408
7106
|
SidebarTrigger,
|
|
6409
7107
|
Skeleton,
|
|
6410
7108
|
Slider,
|
|
7109
|
+
Spacer,
|
|
7110
|
+
Stack,
|
|
6411
7111
|
Switch,
|
|
6412
7112
|
Table,
|
|
6413
7113
|
TableBody,
|
|
@@ -6444,10 +7144,14 @@ export {
|
|
|
6444
7144
|
calendarSchema,
|
|
6445
7145
|
cardSchema,
|
|
6446
7146
|
checkboxSchema,
|
|
7147
|
+
clusterSchema,
|
|
7148
|
+
clusterVariants,
|
|
6447
7149
|
cn,
|
|
6448
7150
|
collapsibleSchema,
|
|
6449
7151
|
comboboxSchema,
|
|
6450
7152
|
commandSchema,
|
|
7153
|
+
containerSchema,
|
|
7154
|
+
containerVariants,
|
|
6451
7155
|
contextMenuSchema,
|
|
6452
7156
|
dataTableSchema,
|
|
6453
7157
|
datePickerSchema,
|
|
@@ -6455,6 +7159,8 @@ export {
|
|
|
6455
7159
|
drawerSchema,
|
|
6456
7160
|
dropdownMenuSchema,
|
|
6457
7161
|
formSchema,
|
|
7162
|
+
gridSchema,
|
|
7163
|
+
gridVariants,
|
|
6458
7164
|
hoverCardSchema,
|
|
6459
7165
|
inputOTPSchema,
|
|
6460
7166
|
inputSchema,
|
|
@@ -6475,6 +7181,10 @@ export {
|
|
|
6475
7181
|
skeletonSchema,
|
|
6476
7182
|
sliderSchema,
|
|
6477
7183
|
sonnerSchema,
|
|
7184
|
+
spacerSchema,
|
|
7185
|
+
spacerVariants,
|
|
7186
|
+
stackSchema,
|
|
7187
|
+
stackVariants,
|
|
6478
7188
|
switchSchema,
|
|
6479
7189
|
tableSchema,
|
|
6480
7190
|
tabsSchema,
|