@yuhuanowo/yunui 0.1.8 → 0.2.0

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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from './chunk-N7JHOWGR.js';
3
3
  import { useYunUI } from './chunk-T37N6OZA.js';
4
- import * as React from 'react';
4
+ import * as React7 from 'react';
5
5
  import { forwardRef, useState, useEffect, useRef, useCallback, useId } from 'react';
6
6
  import * as DialogPrimitive from '@radix-ui/react-dialog';
7
7
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
@@ -12,9 +12,11 @@ import * as ProgressPrimitive from '@radix-ui/react-progress';
12
12
  import * as TabsPrimitive from '@radix-ui/react-tabs';
13
13
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
14
14
  import { motion, AnimatePresence, useSpring, useTransform } from 'framer-motion';
15
- import { Check, Loader2, AlertCircle, X, ChevronDown, ChevronRight, CheckCircle2, CheckCircle, Info, RefreshCw, Trash2, Search, ArrowRight, AlertTriangle } from 'lucide-react';
15
+ import { Check, ChevronDown, ChevronLeft, ChevronRight, Loader2, AlertCircle, X, CheckCircle2, CheckCircle, Info, RefreshCw, Trash2, Search, ArrowRight, AlertTriangle } from 'lucide-react';
16
16
  import { createPortal } from 'react-dom';
17
17
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
18
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
19
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
18
20
  import * as Primitive from '@radix-ui/react-collapsible';
19
21
  import * as PopoverPrimitive from '@radix-ui/react-popover';
20
22
  import { Toaster as Toaster$1, toast as toast$1 } from 'sonner';
@@ -752,7 +754,523 @@ function Combobox({
752
754
  ] }) }) })
753
755
  ] });
754
756
  }
755
- var Button = React.forwardRef(
757
+ var Accordion = AccordionPrimitive.Root;
758
+ var AccordionItem = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
759
+ AccordionPrimitive.Item,
760
+ {
761
+ ref,
762
+ className: cn(
763
+ "rounded-xl border border-(--border-default) bg-(--bg-elevated) overflow-hidden",
764
+ "data-[state=open]:border-(--border-strong) transition-colors",
765
+ className
766
+ ),
767
+ ...props
768
+ }
769
+ ));
770
+ AccordionItem.displayName = AccordionPrimitive.Item.displayName;
771
+ var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
772
+ AccordionPrimitive.Trigger,
773
+ {
774
+ ref,
775
+ className: cn(
776
+ "flex flex-1 items-center justify-between gap-2 px-4 py-3 text-sm font-medium text-left",
777
+ "transition-colors hover:bg-(--bg-hover)",
778
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20",
779
+ "disabled:cursor-not-allowed disabled:opacity-50",
780
+ "[&[data-state=open]>svg]:rotate-180",
781
+ className
782
+ ),
783
+ ...props,
784
+ children: [
785
+ children,
786
+ /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
787
+ ]
788
+ }
789
+ ) }));
790
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
791
+ var AccordionContent = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
792
+ AccordionPrimitive.Content,
793
+ {
794
+ ref,
795
+ className: cn(
796
+ "grid text-sm text-muted-foreground",
797
+ "transition-[grid-template-rows] duration-200 ease-out",
798
+ "data-[state=closed]:grid-rows-[0fr] data-[state=open]:grid-rows-[1fr]",
799
+ className
800
+ ),
801
+ ...props,
802
+ children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "px-4 pb-3 pt-0", children }) })
803
+ }
804
+ ));
805
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
806
+ var RadioGroup = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
807
+ RadioGroupPrimitive.Root,
808
+ {
809
+ ref,
810
+ className: cn("grid gap-2", className),
811
+ ...props
812
+ }
813
+ ));
814
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
815
+ var RadioGroupItem = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
816
+ RadioGroupPrimitive.Item,
817
+ {
818
+ ref,
819
+ className: cn(
820
+ "h-4 w-4 shrink-0 rounded-full border-2 flex items-center justify-center",
821
+ "border-slate-300 dark:border-slate-600 bg-transparent",
822
+ "transition-all duration-200 ease-in-out",
823
+ "hover:border-primary/50",
824
+ "data-[state=checked]:border-primary",
825
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/20",
826
+ "disabled:cursor-not-allowed disabled:opacity-50",
827
+ className
828
+ ),
829
+ ...props,
830
+ children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: "h-2 w-2 rounded-full bg-primary" }) })
831
+ }
832
+ ));
833
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
834
+ var gapMap = {
835
+ 0: "gap-0",
836
+ 1: "gap-1",
837
+ 2: "gap-2",
838
+ 3: "gap-3",
839
+ 4: "gap-4",
840
+ 5: "gap-5",
841
+ 6: "gap-6",
842
+ 8: "gap-8",
843
+ 10: "gap-10",
844
+ 12: "gap-12"
845
+ };
846
+ var paddingMap = {
847
+ 0: "p-0",
848
+ 1: "p-1",
849
+ 2: "p-2",
850
+ 3: "p-3",
851
+ 4: "p-4",
852
+ 5: "p-5",
853
+ 6: "p-6",
854
+ 8: "p-8",
855
+ 10: "p-10",
856
+ 12: "p-12"
857
+ };
858
+ var pxMap = {
859
+ 0: "px-0",
860
+ 1: "px-1",
861
+ 2: "px-2",
862
+ 3: "px-3",
863
+ 4: "px-4",
864
+ 5: "px-5",
865
+ 6: "px-6",
866
+ 8: "px-8",
867
+ 10: "px-10",
868
+ 12: "px-12"
869
+ };
870
+ var pyMap = {
871
+ 0: "py-0",
872
+ 1: "py-1",
873
+ 2: "py-2",
874
+ 3: "py-3",
875
+ 4: "py-4",
876
+ 5: "py-5",
877
+ 6: "py-6",
878
+ 8: "py-8",
879
+ 10: "py-10",
880
+ 12: "py-12"
881
+ };
882
+ var directionMap = {
883
+ row: "flex-row",
884
+ col: "flex-col",
885
+ "row-reverse": "flex-row-reverse",
886
+ "col-reverse": "flex-col-reverse"
887
+ };
888
+ var alignMap = {
889
+ start: "items-start",
890
+ center: "items-center",
891
+ end: "items-end",
892
+ stretch: "items-stretch",
893
+ baseline: "items-baseline"
894
+ };
895
+ var justifyMap = {
896
+ start: "justify-start",
897
+ center: "justify-center",
898
+ end: "justify-end",
899
+ between: "justify-between",
900
+ around: "justify-around",
901
+ evenly: "justify-evenly"
902
+ };
903
+ var colsMap = {
904
+ 1: "grid-cols-1",
905
+ 2: "grid-cols-2",
906
+ 3: "grid-cols-3",
907
+ 4: "grid-cols-4",
908
+ 5: "grid-cols-5",
909
+ 6: "grid-cols-6",
910
+ 7: "grid-cols-7",
911
+ 8: "grid-cols-8",
912
+ 9: "grid-cols-9",
913
+ 10: "grid-cols-10",
914
+ 11: "grid-cols-11",
915
+ 12: "grid-cols-12"
916
+ };
917
+ var rowsMap = {
918
+ 1: "grid-rows-1",
919
+ 2: "grid-rows-2",
920
+ 3: "grid-rows-3",
921
+ 4: "grid-rows-4",
922
+ 5: "grid-rows-5",
923
+ 6: "grid-rows-6",
924
+ 7: "grid-rows-7",
925
+ 8: "grid-rows-8",
926
+ 9: "grid-rows-9",
927
+ 10: "grid-rows-10",
928
+ 11: "grid-rows-11",
929
+ 12: "grid-rows-12"
930
+ };
931
+ var Flex = React7.forwardRef(
932
+ ({
933
+ as,
934
+ direction = "row",
935
+ align,
936
+ justify,
937
+ gap,
938
+ wrap,
939
+ padding,
940
+ px,
941
+ py,
942
+ className,
943
+ children,
944
+ ...props
945
+ }, ref) => {
946
+ const Comp = as ?? "div";
947
+ return /* @__PURE__ */ jsx(
948
+ Comp,
949
+ {
950
+ ref,
951
+ className: cn(
952
+ "flex",
953
+ directionMap[direction],
954
+ align && alignMap[align],
955
+ justify && justifyMap[justify],
956
+ gap !== void 0 && gapMap[gap],
957
+ wrap && "flex-wrap",
958
+ padding !== void 0 && paddingMap[padding],
959
+ px !== void 0 && pxMap[px],
960
+ py !== void 0 && pyMap[py],
961
+ className
962
+ ),
963
+ ...props,
964
+ children
965
+ }
966
+ );
967
+ }
968
+ );
969
+ Flex.displayName = "Flex";
970
+ var Grid = React7.forwardRef(
971
+ ({ as, columns, rows, gap, align, padding, className, children, ...props }, ref) => {
972
+ const Comp = as ?? "div";
973
+ return /* @__PURE__ */ jsx(
974
+ Comp,
975
+ {
976
+ ref,
977
+ className: cn(
978
+ "grid",
979
+ columns !== void 0 && colsMap[columns],
980
+ rows !== void 0 && rowsMap[rows],
981
+ gap !== void 0 && gapMap[gap],
982
+ align && alignMap[align],
983
+ padding !== void 0 && paddingMap[padding],
984
+ className
985
+ ),
986
+ ...props,
987
+ children
988
+ }
989
+ );
990
+ }
991
+ );
992
+ Grid.displayName = "Grid";
993
+ var Column = React7.forwardRef(
994
+ (props, ref) => /* @__PURE__ */ jsx(Flex, { ref, direction: "col", ...props })
995
+ );
996
+ Column.displayName = "Column";
997
+ var Row = React7.forwardRef(
998
+ (props, ref) => /* @__PURE__ */ jsx(Flex, { ref, direction: "row", ...props })
999
+ );
1000
+ Row.displayName = "Row";
1001
+ var Stack = React7.forwardRef(
1002
+ ({ gap = 4, ...props }, ref) => /* @__PURE__ */ jsx(Flex, { ref, direction: "col", gap, ...props })
1003
+ );
1004
+ Stack.displayName = "Stack";
1005
+ var Table = React7.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("relative w-full overflow-x-auto", containerClassName), children: /* @__PURE__ */ jsx(
1006
+ "table",
1007
+ {
1008
+ ref,
1009
+ className: cn("w-full caption-bottom border-collapse text-sm", className),
1010
+ ...props
1011
+ }
1012
+ ) }));
1013
+ Table.displayName = "Table";
1014
+ var TableHeader = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1015
+ "thead",
1016
+ {
1017
+ ref,
1018
+ className: cn("[&_tr]:border-b [&_tr]:border-(--border-default)", className),
1019
+ ...props
1020
+ }
1021
+ ));
1022
+ TableHeader.displayName = "TableHeader";
1023
+ var TableBody = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1024
+ "tbody",
1025
+ {
1026
+ ref,
1027
+ className: cn("[&_tr:last-child]:border-0", className),
1028
+ ...props
1029
+ }
1030
+ ));
1031
+ TableBody.displayName = "TableBody";
1032
+ var TableFooter = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1033
+ "tfoot",
1034
+ {
1035
+ ref,
1036
+ className: cn(
1037
+ "border-t border-(--border-default) bg-muted/30 font-medium [&>tr]:last:border-b-0",
1038
+ className
1039
+ ),
1040
+ ...props
1041
+ }
1042
+ ));
1043
+ TableFooter.displayName = "TableFooter";
1044
+ var TableRow = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1045
+ "tr",
1046
+ {
1047
+ ref,
1048
+ className: cn(
1049
+ "border-b border-(--border-default) transition-colors hover:bg-(--bg-hover) data-[state=selected]:bg-muted",
1050
+ className
1051
+ ),
1052
+ ...props
1053
+ }
1054
+ ));
1055
+ TableRow.displayName = "TableRow";
1056
+ var TableHead = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1057
+ "th",
1058
+ {
1059
+ ref,
1060
+ className: cn(
1061
+ "h-10 px-4 text-left align-middle text-[11px] font-medium uppercase tracking-wider text-muted-foreground [&:has([role=checkbox])]:pr-0",
1062
+ className
1063
+ ),
1064
+ ...props
1065
+ }
1066
+ ));
1067
+ TableHead.displayName = "TableHead";
1068
+ var TableCell = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1069
+ "td",
1070
+ {
1071
+ ref,
1072
+ className: cn("px-4 py-3 align-middle [&:has([role=checkbox])]:pr-0", className),
1073
+ ...props
1074
+ }
1075
+ ));
1076
+ TableCell.displayName = "TableCell";
1077
+ var TableCaption = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1078
+ "caption",
1079
+ {
1080
+ ref,
1081
+ className: cn("mt-4 text-sm text-muted-foreground", className),
1082
+ ...props
1083
+ }
1084
+ ));
1085
+ TableCaption.displayName = "TableCaption";
1086
+ var Breadcrumb = React7.forwardRef(({ "aria-label": ariaLabel = "Breadcrumb", ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": ariaLabel, ...props }));
1087
+ Breadcrumb.displayName = "Breadcrumb";
1088
+ var BreadcrumbList = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1089
+ "ol",
1090
+ {
1091
+ ref,
1092
+ className: cn(
1093
+ "flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground sm:gap-2.5",
1094
+ className
1095
+ ),
1096
+ ...props
1097
+ }
1098
+ ));
1099
+ BreadcrumbList.displayName = "BreadcrumbList";
1100
+ var BreadcrumbItem = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1101
+ "li",
1102
+ {
1103
+ ref,
1104
+ className: cn("inline-flex items-center gap-1.5", className),
1105
+ ...props
1106
+ }
1107
+ ));
1108
+ BreadcrumbItem.displayName = "BreadcrumbItem";
1109
+ function BreadcrumbLink({
1110
+ className,
1111
+ href,
1112
+ ...props
1113
+ }) {
1114
+ const { Link } = useYunUI();
1115
+ return /* @__PURE__ */ jsx(
1116
+ Link,
1117
+ {
1118
+ href,
1119
+ className: cn("transition-colors hover:text-foreground", className),
1120
+ ...props
1121
+ }
1122
+ );
1123
+ }
1124
+ BreadcrumbLink.displayName = "BreadcrumbLink";
1125
+ var BreadcrumbPage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1126
+ "span",
1127
+ {
1128
+ ref,
1129
+ role: "link",
1130
+ "aria-disabled": "true",
1131
+ "aria-current": "page",
1132
+ className: cn("font-medium text-foreground", className),
1133
+ ...props
1134
+ }
1135
+ ));
1136
+ BreadcrumbPage.displayName = "BreadcrumbPage";
1137
+ var BreadcrumbSeparator = ({
1138
+ children,
1139
+ className,
1140
+ ...props
1141
+ }) => /* @__PURE__ */ jsx(
1142
+ "li",
1143
+ {
1144
+ role: "presentation",
1145
+ "aria-hidden": "true",
1146
+ className: cn("[&>svg]:size-3.5 text-muted-foreground/60", className),
1147
+ ...props,
1148
+ children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
1149
+ }
1150
+ );
1151
+ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
1152
+ var BreadcrumbEllipsis = ({
1153
+ className,
1154
+ ...props
1155
+ }) => /* @__PURE__ */ jsxs(
1156
+ "span",
1157
+ {
1158
+ role: "presentation",
1159
+ "aria-hidden": "true",
1160
+ className: cn("flex h-9 w-9 items-center justify-center", className),
1161
+ ...props,
1162
+ children: [
1163
+ /* @__PURE__ */ jsx("span", { className: "text-base leading-none", children: "\u2026" }),
1164
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
1165
+ ]
1166
+ }
1167
+ );
1168
+ BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
1169
+ function getPageRange(page, totalPages, siblingCount) {
1170
+ const totalNumbers = siblingCount * 2 + 5;
1171
+ if (totalPages <= totalNumbers) {
1172
+ return Array.from({ length: totalPages }, (_, i) => i + 1);
1173
+ }
1174
+ const leftSibling = Math.max(page - siblingCount, 1);
1175
+ const rightSibling = Math.min(page + siblingCount, totalPages);
1176
+ const showLeftEllipsis = leftSibling > 2;
1177
+ const showRightEllipsis = rightSibling < totalPages - 1;
1178
+ const tokens = [1];
1179
+ if (showLeftEllipsis) {
1180
+ tokens.push("ellipsis");
1181
+ } else {
1182
+ for (let i = 2; i < leftSibling; i++) tokens.push(i);
1183
+ }
1184
+ for (let i = leftSibling; i <= rightSibling; i++) {
1185
+ if (i !== 1 && i !== totalPages) tokens.push(i);
1186
+ }
1187
+ if (showRightEllipsis) {
1188
+ tokens.push("ellipsis");
1189
+ } else {
1190
+ for (let i = rightSibling + 1; i < totalPages; i++) tokens.push(i);
1191
+ }
1192
+ if (totalPages > 1) tokens.push(totalPages);
1193
+ return tokens;
1194
+ }
1195
+ var navButton = "inline-flex h-9 min-w-9 items-center justify-center gap-1 rounded-xl border border-(--border-default) bg-(--bg-elevated) px-2 text-sm transition-all duration-200 hover:border-(--border-strong) hover:bg-(--bg-hover) focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/20 disabled:pointer-events-none disabled:opacity-50";
1196
+ var Pagination = React7.forwardRef(
1197
+ ({
1198
+ page,
1199
+ totalPages,
1200
+ onPageChange,
1201
+ siblingCount = 1,
1202
+ previousLabel = "Go to previous page",
1203
+ nextLabel = "Go to next page",
1204
+ ariaLabel = "Pagination",
1205
+ className,
1206
+ ...props
1207
+ }, ref) => {
1208
+ if (totalPages <= 1) return null;
1209
+ const tokens = getPageRange(page, totalPages, siblingCount);
1210
+ const isFirst = page <= 1;
1211
+ const isLast = page >= totalPages;
1212
+ return /* @__PURE__ */ jsxs(
1213
+ "nav",
1214
+ {
1215
+ ref,
1216
+ "aria-label": ariaLabel,
1217
+ className: cn("flex items-center justify-center gap-1.5", className),
1218
+ ...props,
1219
+ children: [
1220
+ /* @__PURE__ */ jsx(
1221
+ "button",
1222
+ {
1223
+ type: "button",
1224
+ "aria-label": previousLabel,
1225
+ disabled: isFirst,
1226
+ onClick: () => !isFirst && onPageChange(page - 1),
1227
+ className: navButton,
1228
+ children: /* @__PURE__ */ jsx(ChevronLeft, { size: 16 })
1229
+ }
1230
+ ),
1231
+ tokens.map(
1232
+ (token, i) => token === "ellipsis" ? /* @__PURE__ */ jsx(
1233
+ "span",
1234
+ {
1235
+ "aria-hidden": "true",
1236
+ className: "flex h-9 min-w-9 items-center justify-center text-muted-foreground",
1237
+ children: "\u2026"
1238
+ },
1239
+ `ellipsis-${i}`
1240
+ ) : /* @__PURE__ */ jsx(
1241
+ "button",
1242
+ {
1243
+ type: "button",
1244
+ "aria-label": `Go to page ${token}`,
1245
+ "aria-current": token === page ? "page" : void 0,
1246
+ onClick: () => onPageChange(token),
1247
+ className: cn(
1248
+ navButton,
1249
+ token === page && "border-primary bg-primary text-primary-foreground hover:border-primary hover:bg-primary"
1250
+ ),
1251
+ children: token
1252
+ },
1253
+ token
1254
+ )
1255
+ ),
1256
+ /* @__PURE__ */ jsx(
1257
+ "button",
1258
+ {
1259
+ type: "button",
1260
+ "aria-label": nextLabel,
1261
+ disabled: isLast,
1262
+ onClick: () => !isLast && onPageChange(page + 1),
1263
+ className: navButton,
1264
+ children: /* @__PURE__ */ jsx(ChevronRight, { size: 16 })
1265
+ }
1266
+ )
1267
+ ]
1268
+ }
1269
+ );
1270
+ }
1271
+ );
1272
+ Pagination.displayName = "Pagination";
1273
+ var Button = React7.forwardRef(
756
1274
  ({ className, variant = "default", size = "md", loading, disabled, asChild, children, ...props }, ref) => {
757
1275
  const variantMap = {
758
1276
  default: "btn-primary",
@@ -773,8 +1291,8 @@ var Button = React.forwardRef(
773
1291
  icon: "w-10 h-10 p-0"
774
1292
  };
775
1293
  const classes = cn("btn", variantClass, sizes[size], className);
776
- if (asChild && React.isValidElement(children)) {
777
- return React.cloneElement(children, {
1294
+ if (asChild && React7.isValidElement(children)) {
1295
+ return React7.cloneElement(children, {
778
1296
  className: cn(classes, children.props.className)
779
1297
  });
780
1298
  }
@@ -794,7 +1312,7 @@ var Button = React.forwardRef(
794
1312
  }
795
1313
  );
796
1314
  Button.displayName = "Button";
797
- var Input = React.forwardRef(
1315
+ var Input = React7.forwardRef(
798
1316
  ({ className, icon, error, ...props }, ref) => {
799
1317
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
800
1318
  icon && /* @__PURE__ */ jsx("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: icon }),
@@ -821,7 +1339,7 @@ var Input = React.forwardRef(
821
1339
  }
822
1340
  );
823
1341
  Input.displayName = "Input";
824
- var Textarea = React.forwardRef(
1342
+ var Textarea = React7.forwardRef(
825
1343
  ({ className, error, ...props }, ref) => {
826
1344
  return /* @__PURE__ */ jsxs("div", { children: [
827
1345
  /* @__PURE__ */ jsx(
@@ -846,7 +1364,7 @@ var Textarea = React.forwardRef(
846
1364
  }
847
1365
  );
848
1366
  Textarea.displayName = "Textarea";
849
- var Card = React.forwardRef(
1367
+ var Card = React7.forwardRef(
850
1368
  ({ className, hover, ...props }, ref) => {
851
1369
  return /* @__PURE__ */ jsx(
852
1370
  "div",
@@ -889,7 +1407,7 @@ var Dialog = DialogPrimitive.Root;
889
1407
  var DialogTrigger = DialogPrimitive.Trigger;
890
1408
  var DialogPortal = DialogPrimitive.Portal;
891
1409
  var DialogClose = DialogPrimitive.Close;
892
- var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1410
+ var DialogOverlay = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
893
1411
  DialogPrimitive.Overlay,
894
1412
  {
895
1413
  ref,
@@ -903,7 +1421,7 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
903
1421
  }
904
1422
  ));
905
1423
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
906
- var DialogContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
1424
+ var DialogContent = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
907
1425
  /* @__PURE__ */ jsx(DialogOverlay, {}),
908
1426
  /* @__PURE__ */ jsxs(
909
1427
  DialogPrimitive.Content,
@@ -931,7 +1449,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
931
1449
  function DialogHeader({ className, ...props }) {
932
1450
  return /* @__PURE__ */ jsx("div", { className: cn("mb-4", className), ...props });
933
1451
  }
934
- var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1452
+ var DialogTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
935
1453
  DialogPrimitive.Title,
936
1454
  {
937
1455
  ref,
@@ -940,7 +1458,7 @@ var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
940
1458
  }
941
1459
  ));
942
1460
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
943
- var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1461
+ var DialogDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
944
1462
  DialogPrimitive.Description,
945
1463
  {
946
1464
  ref,
@@ -955,7 +1473,7 @@ function DialogFooter({ className, ...props }) {
955
1473
  var Select = SelectPrimitive.Root;
956
1474
  var SelectValue = SelectPrimitive.Value;
957
1475
  var SelectGroup = SelectPrimitive.Group;
958
- var SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1476
+ var SelectTrigger = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
959
1477
  SelectPrimitive.Trigger,
960
1478
  {
961
1479
  ref,
@@ -974,7 +1492,7 @@ var SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) =>
974
1492
  }
975
1493
  ));
976
1494
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
977
- var SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx(
1495
+ var SelectContent = React7.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx(
978
1496
  SelectPrimitive.Content,
979
1497
  {
980
1498
  ref,
@@ -1001,7 +1519,7 @@ var SelectContent = React.forwardRef(({ className, children, position = "popper"
1001
1519
  }
1002
1520
  ) }));
1003
1521
  SelectContent.displayName = SelectPrimitive.Content.displayName;
1004
- var SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1522
+ var SelectItem = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1005
1523
  SelectPrimitive.Item,
1006
1524
  {
1007
1525
  ref,
@@ -1018,7 +1536,7 @@ var SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /*
1018
1536
  }
1019
1537
  ));
1020
1538
  SelectItem.displayName = SelectPrimitive.Item.displayName;
1021
- var Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
1539
+ var Slider = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
1022
1540
  SliderPrimitive.Root,
1023
1541
  {
1024
1542
  ref,
@@ -1036,7 +1554,7 @@ var Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
1036
1554
  }
1037
1555
  ));
1038
1556
  Slider.displayName = SliderPrimitive.Root.displayName;
1039
- var Progress = React.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
1557
+ var Progress = React7.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
1040
1558
  ProgressPrimitive.Root,
1041
1559
  {
1042
1560
  ref,
@@ -1053,7 +1571,7 @@ var Progress = React.forwardRef(({ className, value, ...props }, ref) => /* @__P
1053
1571
  ));
1054
1572
  Progress.displayName = ProgressPrimitive.Root.displayName;
1055
1573
  var Tabs = TabsPrimitive.Root;
1056
- var TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1574
+ var TabsList = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1057
1575
  TabsPrimitive.List,
1058
1576
  {
1059
1577
  ref,
@@ -1065,7 +1583,7 @@ var TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
1065
1583
  }
1066
1584
  ));
1067
1585
  TabsList.displayName = TabsPrimitive.List.displayName;
1068
- var TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1586
+ var TabsTrigger = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1069
1587
  TabsPrimitive.Trigger,
1070
1588
  {
1071
1589
  ref,
@@ -1081,7 +1599,7 @@ var TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1081
1599
  }
1082
1600
  ));
1083
1601
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
1084
- var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1602
+ var TabsContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1085
1603
  TabsPrimitive.Content,
1086
1604
  {
1087
1605
  ref,
@@ -1090,7 +1608,7 @@ var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1090
1608
  }
1091
1609
  ));
1092
1610
  TabsContent.displayName = TabsPrimitive.Content.displayName;
1093
- var Avatar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1611
+ var Avatar = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1094
1612
  AvatarPrimitive.Root,
1095
1613
  {
1096
1614
  ref,
@@ -1102,7 +1620,7 @@ var Avatar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
1102
1620
  }
1103
1621
  ));
1104
1622
  Avatar.displayName = AvatarPrimitive.Root.displayName;
1105
- var AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1623
+ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1106
1624
  AvatarPrimitive.Image,
1107
1625
  {
1108
1626
  ref,
@@ -1111,7 +1629,7 @@ var AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1111
1629
  }
1112
1630
  ));
1113
1631
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
1114
- var AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1632
+ var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1115
1633
  AvatarPrimitive.Fallback,
1116
1634
  {
1117
1635
  ref,
@@ -1126,7 +1644,7 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
1126
1644
  var TooltipProvider = TooltipPrimitive.Provider;
1127
1645
  var Tooltip = TooltipPrimitive.Root;
1128
1646
  var TooltipTrigger = TooltipPrimitive.Trigger;
1129
- var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
1647
+ var TooltipContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
1130
1648
  TooltipPrimitive.Content,
1131
1649
  {
1132
1650
  ref,
@@ -1201,7 +1719,7 @@ var staggerItem = {
1201
1719
  initial: { opacity: 0, y: 20 },
1202
1720
  animate: { opacity: 1, y: 0 }
1203
1721
  };
1204
- var IconButton = React.forwardRef(
1722
+ var IconButton = React7.forwardRef(
1205
1723
  ({ className, icon, label, ...props }, ref) => {
1206
1724
  return /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs(Tooltip, { children: [
1207
1725
  /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
@@ -1240,7 +1758,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
1240
1758
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
1241
1759
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
1242
1760
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
1243
- var DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1761
+ var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1244
1762
  DropdownMenuPrimitive.SubTrigger,
1245
1763
  {
1246
1764
  ref,
@@ -1257,7 +1775,7 @@ var DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...
1257
1775
  }
1258
1776
  ));
1259
1777
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
1260
- var DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1778
+ var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1261
1779
  DropdownMenuPrimitive.SubContent,
1262
1780
  {
1263
1781
  ref,
@@ -1269,7 +1787,7 @@ var DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) =>
1269
1787
  }
1270
1788
  ));
1271
1789
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
1272
- var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
1790
+ var DropdownMenuContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
1273
1791
  DropdownMenuPrimitive.Content,
1274
1792
  {
1275
1793
  ref,
@@ -1283,7 +1801,7 @@ var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...prop
1283
1801
  }
1284
1802
  ) }));
1285
1803
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1286
- var DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
1804
+ var DropdownMenuItem = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
1287
1805
  DropdownMenuItemInternal,
1288
1806
  {
1289
1807
  ref,
@@ -1297,7 +1815,7 @@ var DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) =>
1297
1815
  ));
1298
1816
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
1299
1817
  var DropdownMenuItemInternal = DropdownMenuPrimitive.Item;
1300
- var DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
1818
+ var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
1301
1819
  DropdownMenuPrimitive.CheckboxItem,
1302
1820
  {
1303
1821
  ref,
@@ -1314,7 +1832,7 @@ var DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked,
1314
1832
  }
1315
1833
  ));
1316
1834
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
1317
- var DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1835
+ var DropdownMenuRadioItem = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1318
1836
  DropdownMenuPrimitive.RadioItem,
1319
1837
  {
1320
1838
  ref,
@@ -1330,7 +1848,7 @@ var DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props },
1330
1848
  }
1331
1849
  ));
1332
1850
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
1333
- var DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
1851
+ var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
1334
1852
  DropdownMenuPrimitive.Label,
1335
1853
  {
1336
1854
  ref,
@@ -1343,7 +1861,7 @@ var DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) =
1343
1861
  }
1344
1862
  ));
1345
1863
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
1346
- var DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1864
+ var DropdownMenuSeparator = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1347
1865
  DropdownMenuPrimitive.Separator,
1348
1866
  {
1349
1867
  ref,
@@ -1764,7 +2282,7 @@ var CollapsibleContent2 = forwardRef(({ children, ...props }, ref) => {
1764
2282
  CollapsibleContent2.displayName = Primitive.CollapsibleContent.displayName;
1765
2283
  var Popover = PopoverPrimitive.Root;
1766
2284
  var PopoverTrigger = PopoverPrimitive.Trigger;
1767
- var PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
2285
+ var PopoverContent = React7.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
1768
2286
  PopoverPrimitive.Content,
1769
2287
  {
1770
2288
  ref,
@@ -1924,6 +2442,6 @@ var toast = {
1924
2442
  }
1925
2443
  };
1926
2444
 
1927
- export { AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Button, Card, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, IconButton, Input, Label2 as Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, PageLoader, Popover, PopoverClose2 as PopoverClose, PopoverContent, PopoverTrigger, Progress, RegenerateConfirmModal, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, fadeIn, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior };
1928
- //# sourceMappingURL=chunk-EFIELFBW.js.map
1929
- //# sourceMappingURL=chunk-EFIELFBW.js.map
2445
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Column, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, Grid, IconButton, Input, Label2 as Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, PageLoader, Pagination, Popover, PopoverClose2 as PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, fadeIn, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior };
2446
+ //# sourceMappingURL=chunk-YRITK7CC.js.map
2447
+ //# sourceMappingURL=chunk-YRITK7CC.js.map