@moontra/moonui 6.1.0 → 6.3.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.
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
- import * as React24 from 'react';
4
- import React24__default, { useState, useCallback, useEffect } from 'react';
3
+ import * as React25 from 'react';
4
+ import React25__default, { useState, useCallback, useEffect } from 'react';
5
5
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
6
- import { ChevronDown, Info, AlertCircle, AlertTriangle, Check, X, MoreHorizontal, Loader2, CreditCard, ArrowLeft, ArrowRight, Minus, Search, Calendar as Calendar$1, Clock, ChevronLeft, ChevronRight, Circle, Upload, Dot, ChevronUp, Phone, Bold, Italic, Underline, Strikethrough, AlignLeft, AlignCenter, AlignRight, AlignJustify, List, ListOrdered, Quote, Code, Link, Image, Palette, Undo, Redo, Edit, Eye, CheckCircle, Star, Video, Music, FileText, File, Copy, ArrowDown, ArrowUp, ArrowUpDown, GitFork, ExternalLink, Crown, Lock, Zap } from 'lucide-react';
6
+ import { ChevronDown, Info, AlertCircle, AlertTriangle, Check, X, MoreHorizontal, Loader2, CreditCard, ArrowLeft, ArrowRight, Minus, Search, Calendar as Calendar$1, Clock, ChevronLeft, ChevronRight, Circle, Upload, Dot, ChevronUp, Phone, Bold, Italic, Underline, Strikethrough, AlignLeft, AlignCenter, AlignRight, AlignJustify, List, ListOrdered, Quote, Code, Link, Image, Palette, Undo, Redo, Edit, Eye, Copy, ArrowDown, ArrowUp, ArrowUpDown, CheckCircle, Star, GitFork, ExternalLink, Crown, Lock, Zap, Video, Music, FileText, File } from 'lucide-react';
7
7
  export { Palette, Pipette } from 'lucide-react';
8
8
  import { clsx } from 'clsx';
9
9
  import { twMerge } from 'tailwind-merge';
@@ -11,7 +11,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
11
  import { cva } from 'class-variance-authority';
12
12
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
13
13
  import { motion, AnimatePresence, useMotionValue, useTransform, animate } from 'framer-motion';
14
- import { isValid, format, isSameMonth, isToday, startOfMonth, endOfMonth, eachDayOfInterval, getDay, startOfWeek, endOfWeek, subMonths, addMonths, isSameDay } from 'date-fns';
14
+ import { isValid, format, isSameMonth, isToday, subMonths, addMonths, isSameDay, startOfMonth, endOfMonth, eachDayOfInterval, getDay, startOfWeek, endOfWeek } from 'date-fns';
15
15
  export { format } from 'date-fns';
16
16
  import useEmblaCarousel from 'embla-carousel-react';
17
17
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
@@ -21,7 +21,7 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
21
21
  import * as TabsPrimitive from '@radix-ui/react-tabs';
22
22
  import { Command as Command$1 } from 'cmdk';
23
23
  import * as DialogPrimitive from '@radix-ui/react-dialog';
24
- import { useReactTable, getFilteredRowModel, getSortedRowModel, getPaginationRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
24
+ import { useReactTable, getCoreRowModel, getPaginationRowModel, getSortedRowModel, getFilteredRowModel, flexRender } from '@tanstack/react-table';
25
25
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
26
26
  import { OTPInput, OTPInputContext } from 'input-otp';
27
27
  export { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from 'input-otp';
@@ -37,8 +37,22 @@ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
37
37
  function cn(...inputs) {
38
38
  return twMerge(clsx(inputs));
39
39
  }
40
+ function readableText(node) {
41
+ if (node === null || node === void 0 || typeof node === "boolean")
42
+ return "";
43
+ if (typeof node === "string" || typeof node === "number")
44
+ return String(node);
45
+ if (Array.isArray(node)) {
46
+ return node.map(readableText).filter(Boolean).join(" ").trim();
47
+ }
48
+ if (React25.isValidElement(node)) {
49
+ const props = node.props;
50
+ return readableText(props.children);
51
+ }
52
+ return "";
53
+ }
40
54
  var Accordion = AccordionPrimitive.Root;
41
- var AccordionItem = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
55
+ var AccordionItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
42
56
  AccordionPrimitive.Item,
43
57
  {
44
58
  ref,
@@ -47,7 +61,7 @@ var AccordionItem = React24.forwardRef(({ className, ...props }, ref) => /* @__P
47
61
  }
48
62
  ));
49
63
  AccordionItem.displayName = "AccordionItem";
50
- var AccordionTrigger = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
64
+ var AccordionTrigger = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
51
65
  AccordionPrimitive.Trigger,
52
66
  {
53
67
  ref,
@@ -65,7 +79,7 @@ var AccordionTrigger = React24.forwardRef(({ className, children, ...props }, re
65
79
  }
66
80
  ) }));
67
81
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
68
- var AccordionContent = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
82
+ var AccordionContent = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
69
83
  AccordionPrimitive.Content,
70
84
  {
71
85
  ref,
@@ -118,7 +132,7 @@ var alertVariants = cva(
118
132
  }
119
133
  }
120
134
  );
121
- var Alert = React24.forwardRef(
135
+ var Alert = React25.forwardRef(
122
136
  ({
123
137
  className,
124
138
  variant = "default",
@@ -130,7 +144,7 @@ var Alert = React24.forwardRef(
130
144
  children,
131
145
  ...props
132
146
  }, ref) => {
133
- const Icon2 = React24.useMemo(() => {
147
+ const Icon2 = React25.useMemo(() => {
134
148
  switch (variant) {
135
149
  case "success":
136
150
  return Check;
@@ -178,7 +192,7 @@ var Alert = React24.forwardRef(
178
192
  }
179
193
  );
180
194
  Alert.displayName = "Alert";
181
- var AlertTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
195
+ var AlertTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
182
196
  "h5",
183
197
  {
184
198
  ref,
@@ -191,7 +205,7 @@ var AlertTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
191
205
  }
192
206
  ));
193
207
  AlertTitle.displayName = "AlertTitle";
194
- var AlertDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
208
+ var AlertDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
195
209
  "div",
196
210
  {
197
211
  ref,
@@ -233,7 +247,7 @@ var aspectRatioVariants = cva(
233
247
  }
234
248
  }
235
249
  );
236
- var AspectRatio = React24.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
250
+ var AspectRatio = React25.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
237
251
  "div",
238
252
  {
239
253
  ref,
@@ -282,7 +296,7 @@ var avatarVariants = cva(
282
296
  }
283
297
  }
284
298
  );
285
- var Avatar = React24.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
299
+ var Avatar = React25.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
286
300
  AvatarPrimitive.Root,
287
301
  {
288
302
  ref,
@@ -291,7 +305,7 @@ var Avatar = React24.forwardRef(({ className, size, radius, variant, ...props },
291
305
  }
292
306
  ));
293
307
  Avatar.displayName = AvatarPrimitive.Root.displayName;
294
- var AvatarImage = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
308
+ var AvatarImage = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
295
309
  AvatarPrimitive.Image,
296
310
  {
297
311
  ref,
@@ -300,7 +314,7 @@ var AvatarImage = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
300
314
  }
301
315
  ));
302
316
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
303
- var AvatarFallback = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
317
+ var AvatarFallback = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
304
318
  AvatarPrimitive.Fallback,
305
319
  {
306
320
  ref,
@@ -312,9 +326,9 @@ var AvatarFallback = React24.forwardRef(({ className, ...props }, ref) => /* @__
312
326
  }
313
327
  ));
314
328
  AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
315
- var AvatarGroup = React24.forwardRef(
329
+ var AvatarGroup = React25.forwardRef(
316
330
  ({ className, max, children, overlapOffset = -8, ...props }, ref) => {
317
- const childrenArray = React24.Children.toArray(children);
331
+ const childrenArray = React25.Children.toArray(children);
318
332
  const visibleAvatars = max ? childrenArray.slice(0, max) : childrenArray;
319
333
  const remainingCount = max ? Math.max(0, childrenArray.length - max) : 0;
320
334
  return /* @__PURE__ */ jsx(
@@ -445,7 +459,7 @@ var badgeVariants = cva(
445
459
  }
446
460
  }
447
461
  );
448
- var Badge = React24.forwardRef(({
462
+ var Badge = React25.forwardRef(({
449
463
  className,
450
464
  variant,
451
465
  size,
@@ -454,6 +468,7 @@ var Badge = React24.forwardRef(({
454
468
  dotColor,
455
469
  removable,
456
470
  onRemove,
471
+ removeLabel,
457
472
  leftIcon,
458
473
  rightIcon,
459
474
  noAutoSpacing,
@@ -510,7 +525,7 @@ var Badge = React24.forwardRef(({
510
525
  e.stopPropagation();
511
526
  onRemove();
512
527
  },
513
- "aria-label": "Remove badge",
528
+ "aria-label": removeLabel || (readableText(autoChildren) ? `Remove ${readableText(autoChildren)}` : "Remove badge"),
514
529
  children: /* @__PURE__ */ jsx(
515
530
  "svg",
516
531
  {
@@ -552,7 +567,7 @@ var breadcrumbVariants = cva(
552
567
  }
553
568
  }
554
569
  );
555
- var Breadcrumb = React24.forwardRef(
570
+ var Breadcrumb = React25.forwardRef(
556
571
  ({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
557
572
  "nav",
558
573
  {
@@ -564,9 +579,9 @@ var Breadcrumb = React24.forwardRef(
564
579
  )
565
580
  );
566
581
  Breadcrumb.displayName = "Breadcrumb";
567
- var BreadcrumbList = React24.forwardRef(
582
+ var BreadcrumbList = React25.forwardRef(
568
583
  ({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
569
- const childrenArray = React24.Children.toArray(props.children).filter(Boolean);
584
+ const childrenArray = React25.Children.toArray(props.children).filter(Boolean);
570
585
  const childCount = childrenArray.length;
571
586
  if (collapsed && childCount > collapsedWidth) {
572
587
  const firstItem = childrenArray[0];
@@ -602,9 +617,9 @@ var BreadcrumbList = React24.forwardRef(
602
617
  }
603
618
  );
604
619
  BreadcrumbList.displayName = "BreadcrumbList";
605
- var BreadcrumbItem = React24.forwardRef(
620
+ var BreadcrumbItem = React25.forwardRef(
606
621
  ({ className, isCurrent, href, asChild = false, ...props }, ref) => {
607
- const Comp = asChild ? React24.Fragment : href ? "a" : "span";
622
+ const Comp = asChild ? React25.Fragment : href ? "a" : "span";
608
623
  const itemProps = asChild ? {} : href ? { href } : {};
609
624
  return /* @__PURE__ */ jsx(
610
625
  "li",
@@ -661,7 +676,7 @@ var BreadcrumbEllipsis = ({
661
676
  }
662
677
  );
663
678
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
664
- var BreadcrumbLink = React24.forwardRef(
679
+ var BreadcrumbLink = React25.forwardRef(
665
680
  ({ className, href, ...props }, ref) => /* @__PURE__ */ jsx(
666
681
  "a",
667
682
  {
@@ -676,7 +691,7 @@ var BreadcrumbLink = React24.forwardRef(
676
691
  )
677
692
  );
678
693
  BreadcrumbLink.displayName = "BreadcrumbLink";
679
- var BreadcrumbPage = React24.forwardRef(
694
+ var BreadcrumbPage = React25.forwardRef(
680
695
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
681
696
  "span",
682
697
  {
@@ -716,7 +731,7 @@ var buttonVariants = cva(
716
731
  "dark:bg-gray-800 dark:text-gray-100",
717
732
  "hover:bg-gray-200 dark:hover:bg-gray-700",
718
733
  "active:bg-gray-300 dark:active:bg-gray-600",
719
- "border border-gray-200 dark:border-gray-700",
734
+ "border border-input",
720
735
  "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
721
736
  "shadow-sm hover:shadow-md"
722
737
  ],
@@ -839,7 +854,7 @@ var buttonVariants = cva(
839
854
  }
840
855
  }
841
856
  );
842
- var Button = React24.forwardRef(
857
+ var Button = React25.forwardRef(
843
858
  ({
844
859
  className,
845
860
  variant,
@@ -958,7 +973,26 @@ var springAnimations = {
958
973
  type: "spring",
959
974
  stiffness: 260,
960
975
  damping: 20
961
- }};
976
+ },
977
+ // Bouncy spring for playful interactions
978
+ bouncy: {
979
+ type: "spring",
980
+ stiffness: 300,
981
+ damping: 15
982
+ },
983
+ // Stiff spring for quick responses
984
+ stiff: {
985
+ type: "spring",
986
+ stiffness: 400,
987
+ damping: 25
988
+ },
989
+ // Gentle spring for subtle movements
990
+ gentle: {
991
+ type: "spring",
992
+ stiffness: 150,
993
+ damping: 15
994
+ }
995
+ };
962
996
  var hoverAnimations = {
963
997
  lift: {
964
998
  y: -2,
@@ -971,12 +1005,22 @@ var hoverAnimations = {
971
1005
  glow: {
972
1006
  boxShadow: "0 0 20px rgba(var(--primary), 0.3)",
973
1007
  transition: springAnimations.smooth
974
- }};
1008
+ },
1009
+ rotate: {
1010
+ rotate: 2,
1011
+ transition: springAnimations.bouncy
1012
+ }
1013
+ };
975
1014
  var tapAnimations = {
976
1015
  scale: {
977
1016
  scale: 0.95,
978
1017
  transition: { duration: 0.1 }
979
- }};
1018
+ },
1019
+ depress: {
1020
+ y: 1,
1021
+ transition: { duration: 0.1 }
1022
+ }
1023
+ };
980
1024
  var skeletonAnimation = {
981
1025
  initial: { opacity: 0.5 },
982
1026
  animate: {
@@ -1025,7 +1069,7 @@ var cardVariants = cva(
1025
1069
  }
1026
1070
  }
1027
1071
  );
1028
- var Card = React24.forwardRef(
1072
+ var Card = React25.forwardRef(
1029
1073
  ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
1030
1074
  if (interactive && microInteraction !== "none") {
1031
1075
  const interactionProps = {
@@ -1053,7 +1097,7 @@ var Card = React24.forwardRef(
1053
1097
  }
1054
1098
  );
1055
1099
  Card.displayName = "Card";
1056
- var CardHeader = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1100
+ var CardHeader = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1057
1101
  "div",
1058
1102
  {
1059
1103
  ref,
@@ -1062,7 +1106,7 @@ var CardHeader = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
1062
1106
  }
1063
1107
  ));
1064
1108
  CardHeader.displayName = "CardHeader";
1065
- var CardTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1109
+ var CardTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1066
1110
  "h3",
1067
1111
  {
1068
1112
  ref,
@@ -1071,7 +1115,7 @@ var CardTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1071
1115
  }
1072
1116
  ));
1073
1117
  CardTitle.displayName = "CardTitle";
1074
- var CardDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1118
+ var CardDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1075
1119
  "p",
1076
1120
  {
1077
1121
  ref,
@@ -1080,9 +1124,9 @@ var CardDescription = React24.forwardRef(({ className, ...props }, ref) => /* @_
1080
1124
  }
1081
1125
  ));
1082
1126
  CardDescription.displayName = "CardDescription";
1083
- var CardContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1127
+ var CardContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1084
1128
  CardContent.displayName = "CardContent";
1085
- var CardFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1129
+ var CardFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1086
1130
  "div",
1087
1131
  {
1088
1132
  ref,
@@ -1103,7 +1147,7 @@ function Calendar({
1103
1147
  defaultMonth,
1104
1148
  ...props
1105
1149
  }) {
1106
- const [currentMonth, setCurrentMonth] = React24.useState(
1150
+ const [currentMonth, setCurrentMonth] = React25.useState(
1107
1151
  defaultMonth || selected && selected || /* @__PURE__ */ new Date()
1108
1152
  );
1109
1153
  const weekDays = [
@@ -1122,7 +1166,8 @@ function Calendar({
1122
1166
  setCurrentMonth(addMonths(currentMonth, 1));
1123
1167
  };
1124
1168
  const handleDateClick = (date) => {
1125
- if (disabled?.(date)) return;
1169
+ if (disabled?.(date))
1170
+ return;
1126
1171
  if (mode === "single") {
1127
1172
  onSelect?.(date);
1128
1173
  } else if (mode === "range") {
@@ -1139,7 +1184,8 @@ function Calendar({
1139
1184
  }
1140
1185
  };
1141
1186
  const isDateSelected = (date) => {
1142
- if (!selected) return false;
1187
+ if (!selected)
1188
+ return false;
1143
1189
  if (mode === "single") {
1144
1190
  return isSameDay(date, selected);
1145
1191
  } else if (mode === "range") {
@@ -1152,19 +1198,23 @@ function Calendar({
1152
1198
  return false;
1153
1199
  };
1154
1200
  const isRangeStart = (date) => {
1155
- if (mode !== "range" || !selected) return false;
1201
+ if (mode !== "range" || !selected)
1202
+ return false;
1156
1203
  const range = selected;
1157
1204
  return range.from ? isSameDay(date, range.from) : false;
1158
1205
  };
1159
1206
  const isRangeEnd = (date) => {
1160
- if (mode !== "range" || !selected) return false;
1207
+ if (mode !== "range" || !selected)
1208
+ return false;
1161
1209
  const range = selected;
1162
1210
  return range.to ? isSameDay(date, range.to) : false;
1163
1211
  };
1164
1212
  const isRangeMiddle = (date) => {
1165
- if (mode !== "range" || !selected) return false;
1213
+ if (mode !== "range" || !selected)
1214
+ return false;
1166
1215
  const range = selected;
1167
- if (!range.from || !range.to) return false;
1216
+ if (!range.from || !range.to)
1217
+ return false;
1168
1218
  return date > range.from && date < range.to;
1169
1219
  };
1170
1220
  const getDaysInMonth = () => {
@@ -1291,7 +1341,8 @@ var getCardType = (number) => {
1291
1341
  jcb: /^35/
1292
1342
  };
1293
1343
  for (const [type, pattern] of Object.entries(patterns)) {
1294
- if (pattern.test(number)) return type;
1344
+ if (pattern.test(number))
1345
+ return type;
1295
1346
  }
1296
1347
  return "unknown";
1297
1348
  };
@@ -1301,16 +1352,18 @@ var formatCardNumber = (value, cardType) => {
1301
1352
  let formatted = "";
1302
1353
  let position = 0;
1303
1354
  for (const group of groups) {
1304
- if (position >= cleaned.length) break;
1305
- if (formatted) formatted += " ";
1355
+ if (position >= cleaned.length)
1356
+ break;
1357
+ if (formatted)
1358
+ formatted += " ";
1306
1359
  formatted += cleaned.slice(position, position + group);
1307
1360
  position += group;
1308
1361
  }
1309
1362
  return formatted;
1310
1363
  };
1311
- var CardNumberInput = React24.forwardRef(
1364
+ var CardNumberInput = React25.forwardRef(
1312
1365
  ({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
1313
- const [cardType, setCardType] = React24.useState("unknown");
1366
+ const [cardType, setCardType] = React25.useState("unknown");
1314
1367
  const handleChange = (e) => {
1315
1368
  const rawValue = e.target.value.replace(/\D/g, "");
1316
1369
  const detectedType = getCardType(rawValue);
@@ -1341,7 +1394,7 @@ var CardNumberInput = React24.forwardRef(
1341
1394
  }
1342
1395
  );
1343
1396
  CardNumberInput.displayName = "CardNumberInput";
1344
- var CardExpiryInput = React24.forwardRef(
1397
+ var CardExpiryInput = React25.forwardRef(
1345
1398
  ({ className, value = "", onChange, size, ...props }, ref) => {
1346
1399
  const handleChange = (e) => {
1347
1400
  let rawValue = e.target.value.replace(/\D/g, "");
@@ -1379,7 +1432,7 @@ var CardExpiryInput = React24.forwardRef(
1379
1432
  }
1380
1433
  );
1381
1434
  CardExpiryInput.displayName = "CardExpiryInput";
1382
- var CardCVCInput = React24.forwardRef(
1435
+ var CardCVCInput = React25.forwardRef(
1383
1436
  ({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
1384
1437
  const maxLength = cardType === "amex" ? 4 : 3;
1385
1438
  const handleChange = (e) => {
@@ -1404,7 +1457,7 @@ var CardCVCInput = React24.forwardRef(
1404
1457
  }
1405
1458
  );
1406
1459
  CardCVCInput.displayName = "CardCVCInput";
1407
- var CardZipInput = React24.forwardRef(
1460
+ var CardZipInput = React25.forwardRef(
1408
1461
  ({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
1409
1462
  const handleChange = (e) => {
1410
1463
  let rawValue = e.target.value;
@@ -1455,15 +1508,15 @@ var CardZipInput = React24.forwardRef(
1455
1508
  }
1456
1509
  );
1457
1510
  CardZipInput.displayName = "CardZipInput";
1458
- var CarouselContext = React24.createContext(null);
1511
+ var CarouselContext = React25.createContext(null);
1459
1512
  function useCarousel() {
1460
- const context = React24.useContext(CarouselContext);
1513
+ const context = React25.useContext(CarouselContext);
1461
1514
  if (!context) {
1462
1515
  throw new Error("useCarousel must be used within a <Carousel />");
1463
1516
  }
1464
1517
  return context;
1465
1518
  }
1466
- var Carousel = React24.forwardRef(
1519
+ var Carousel = React25.forwardRef(
1467
1520
  ({
1468
1521
  orientation = "horizontal",
1469
1522
  opts,
@@ -1481,20 +1534,21 @@ var Carousel = React24.forwardRef(
1481
1534
  },
1482
1535
  plugins
1483
1536
  );
1484
- const [canScrollPrev, setCanScrollPrev] = React24.useState(false);
1485
- const [canScrollNext, setCanScrollNext] = React24.useState(false);
1486
- const onSelect = React24.useCallback((emblaApi) => {
1487
- if (!emblaApi) return;
1537
+ const [canScrollPrev, setCanScrollPrev] = React25.useState(false);
1538
+ const [canScrollNext, setCanScrollNext] = React25.useState(false);
1539
+ const onSelect = React25.useCallback((emblaApi) => {
1540
+ if (!emblaApi)
1541
+ return;
1488
1542
  setCanScrollPrev(emblaApi.canScrollPrev());
1489
1543
  setCanScrollNext(emblaApi.canScrollNext());
1490
1544
  }, []);
1491
- const scrollPrev = React24.useCallback(() => {
1545
+ const scrollPrev = React25.useCallback(() => {
1492
1546
  api?.scrollPrev();
1493
1547
  }, [api]);
1494
- const scrollNext = React24.useCallback(() => {
1548
+ const scrollNext = React25.useCallback(() => {
1495
1549
  api?.scrollNext();
1496
1550
  }, [api]);
1497
- const handleKeyDown = React24.useCallback(
1551
+ const handleKeyDown = React25.useCallback(
1498
1552
  (event) => {
1499
1553
  const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
1500
1554
  const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
@@ -1508,12 +1562,14 @@ var Carousel = React24.forwardRef(
1508
1562
  },
1509
1563
  [resolvedOrientation, scrollPrev, scrollNext]
1510
1564
  );
1511
- React24.useEffect(() => {
1512
- if (!api || !setApi) return;
1565
+ React25.useEffect(() => {
1566
+ if (!api || !setApi)
1567
+ return;
1513
1568
  setApi(api);
1514
1569
  }, [api, setApi]);
1515
- React24.useEffect(() => {
1516
- if (!api) return;
1570
+ React25.useEffect(() => {
1571
+ if (!api)
1572
+ return;
1517
1573
  onSelect(api);
1518
1574
  api.on("reInit", onSelect);
1519
1575
  api.on("select", onSelect);
@@ -1563,7 +1619,7 @@ var carouselContentVariants = cva("flex", {
1563
1619
  orientation: "horizontal"
1564
1620
  }
1565
1621
  });
1566
- var CarouselContent = React24.forwardRef(
1622
+ var CarouselContent = React25.forwardRef(
1567
1623
  ({ className, ...props }, ref) => {
1568
1624
  const { carouselRef, orientation } = useCarousel();
1569
1625
  return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
@@ -1588,7 +1644,7 @@ var carouselItemVariants = cva("min-w-0 shrink-0 grow-0 basis-full", {
1588
1644
  orientation: "horizontal"
1589
1645
  }
1590
1646
  });
1591
- var CarouselItem = React24.forwardRef(
1647
+ var CarouselItem = React25.forwardRef(
1592
1648
  ({ className, ...props }, ref) => {
1593
1649
  const { orientation } = useCarousel();
1594
1650
  return /* @__PURE__ */ jsx(
@@ -1604,7 +1660,7 @@ var CarouselItem = React24.forwardRef(
1604
1660
  }
1605
1661
  );
1606
1662
  CarouselItem.displayName = "CarouselItem";
1607
- var CarouselPrevious = React24.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1663
+ var CarouselPrevious = React25.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1608
1664
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
1609
1665
  return /* @__PURE__ */ jsxs(
1610
1666
  Button,
@@ -1629,7 +1685,7 @@ var CarouselPrevious = React24.forwardRef(({ className, variant = "outline", siz
1629
1685
  );
1630
1686
  });
1631
1687
  CarouselPrevious.displayName = "CarouselPrevious";
1632
- var CarouselNext = React24.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1688
+ var CarouselNext = React25.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1633
1689
  const { orientation, scrollNext, canScrollNext } = useCarousel();
1634
1690
  return /* @__PURE__ */ jsxs(
1635
1691
  Button,
@@ -1692,7 +1748,7 @@ var checkboxVariants = cva(
1692
1748
  }
1693
1749
  }
1694
1750
  );
1695
- var Checkbox = React24.forwardRef(({
1751
+ var Checkbox = React25.forwardRef(({
1696
1752
  className,
1697
1753
  variant,
1698
1754
  size,
@@ -1725,7 +1781,7 @@ var Checkbox = React24.forwardRef(({
1725
1781
  );
1726
1782
  });
1727
1783
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1728
- var CheckboxGroup = React24.forwardRef(
1784
+ var CheckboxGroup = React25.forwardRef(
1729
1785
  ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
1730
1786
  return /* @__PURE__ */ jsx(
1731
1787
  "div",
@@ -1745,7 +1801,7 @@ var CheckboxGroup = React24.forwardRef(
1745
1801
  }
1746
1802
  );
1747
1803
  CheckboxGroup.displayName = "CheckboxGroup";
1748
- var CheckboxLabel = React24.forwardRef(
1804
+ var CheckboxLabel = React25.forwardRef(
1749
1805
  ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
1750
1806
  return /* @__PURE__ */ jsx(
1751
1807
  "label",
@@ -1765,14 +1821,14 @@ var CheckboxLabel = React24.forwardRef(
1765
1821
  }
1766
1822
  );
1767
1823
  CheckboxLabel.displayName = "CheckboxLabel";
1768
- var CheckboxWithLabel = React24.forwardRef(({
1824
+ var CheckboxWithLabel = React25.forwardRef(({
1769
1825
  id,
1770
1826
  label,
1771
1827
  labelPosition = "end",
1772
1828
  labelClassName,
1773
1829
  ...checkboxProps
1774
1830
  }, ref) => {
1775
- const generatedId = React24.useId();
1831
+ const generatedId = React25.useId();
1776
1832
  const checkboxId = id || generatedId;
1777
1833
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
1778
1834
  labelPosition === "start" && /* @__PURE__ */ jsx(
@@ -1822,7 +1878,7 @@ var collapsibleTriggerVariants = cva(
1822
1878
  }
1823
1879
  }
1824
1880
  );
1825
- var CollapsibleTrigger = React24.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1881
+ var CollapsibleTrigger = React25.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1826
1882
  if (asChild) {
1827
1883
  return /* @__PURE__ */ jsx(
1828
1884
  CollapsiblePrimitive.Trigger,
@@ -1871,7 +1927,7 @@ var collapsibleContentVariants = cva(
1871
1927
  }
1872
1928
  }
1873
1929
  );
1874
- var CollapsibleContent = React24.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1930
+ var CollapsibleContent = React25.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1875
1931
  CollapsiblePrimitive.Content,
1876
1932
  {
1877
1933
  ref,
@@ -1899,7 +1955,7 @@ var inputWrapperVariants = cva(
1899
1955
  var inputVariants = cva(
1900
1956
  [
1901
1957
  "w-full bg-background transition-all duration-200",
1902
- "text-foreground placeholder:text-muted-foreground dark:placeholder:text-gray-500",
1958
+ "text-foreground placeholder:text-muted-foreground",
1903
1959
  "disabled:cursor-not-allowed disabled:opacity-50",
1904
1960
  "file:border-0 file:bg-transparent file:font-medium",
1905
1961
  "focus-visible:outline-none dark:text-gray-200"
@@ -1907,10 +1963,10 @@ var inputVariants = cva(
1907
1963
  {
1908
1964
  variants: {
1909
1965
  variant: {
1910
- standard: "border border-gray-300 dark:border-gray-700 rounded-md px-3 py-2 hover:border-gray-400 dark:hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80 dark:bg-gray-800/80 dark:shadow-inner dark:shadow-gray-950/10",
1966
+ standard: "border border-input rounded-md px-3 py-2 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80 dark:bg-gray-800/80 dark:shadow-inner dark:shadow-gray-950/10",
1911
1967
  filled: "border border-transparent bg-gray-100 dark:bg-gray-800 rounded-md px-3 py-2 hover:bg-gray-200 dark:hover:bg-gray-700 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 dark:shadow-inner dark:shadow-gray-950/10",
1912
- ghost: "border-none bg-transparent shadow-none px-1 dark:text-gray-300 dark:placeholder:text-gray-500 hover:bg-gray-100/50 dark:hover:bg-gray-800/30 focus-visible:bg-transparent",
1913
- underline: "border-t-0 border-l-0 border-r-0 border-b border-gray-300 dark:border-gray-600 rounded-none px-0 py-2 hover:border-gray-400 dark:hover:border-gray-500 focus-visible:ring-0 focus-visible:border-b-2 focus-visible:border-primary dark:focus-visible:border-primary/80 dark:text-gray-300 dark:bg-transparent"
1968
+ ghost: "border-none bg-transparent shadow-none px-1 dark:text-gray-300 hover:bg-gray-100/50 dark:hover:bg-gray-800/30 focus-visible:bg-transparent",
1969
+ underline: "border-t-0 border-l-0 border-r-0 border-b border-input rounded-none px-0 py-2 focus-visible:ring-0 focus-visible:border-b-2 focus-visible:border-primary dark:focus-visible:border-primary/80 dark:text-gray-300 dark:bg-transparent"
1914
1970
  },
1915
1971
  size: {
1916
1972
  sm: "h-8 text-xs",
@@ -1954,7 +2010,7 @@ var inputVariants = cva(
1954
2010
  }
1955
2011
  }
1956
2012
  );
1957
- var Input = React24.forwardRef(
2013
+ var Input = React25.forwardRef(
1958
2014
  ({
1959
2015
  className,
1960
2016
  wrapperClassName,
@@ -1981,10 +2037,10 @@ var Input = React24.forwardRef(
1981
2037
  placeholder,
1982
2038
  ...props
1983
2039
  }, ref) => {
1984
- const reactId = React24.useId();
2040
+ const reactId = React25.useId();
1985
2041
  const fieldId = props.id || reactId;
1986
- const [isFocused, setIsFocused] = React24.useState(false);
1987
- const [internalValue, setInternalValue] = React24.useState(value || defaultValue || "");
2042
+ const [isFocused, setIsFocused] = React25.useState(false);
2043
+ const [internalValue, setInternalValue] = React25.useState(value || defaultValue || "");
1988
2044
  const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
1989
2045
  const isLabelActive = isFocused || hasValue;
1990
2046
  const handleFocus = (e) => {
@@ -1999,7 +2055,7 @@ var Input = React24.forwardRef(
1999
2055
  setInternalValue(e.target.value);
2000
2056
  onChange?.(e);
2001
2057
  };
2002
- React24.useEffect(() => {
2058
+ React25.useEffect(() => {
2003
2059
  if (value !== void 0) {
2004
2060
  setInternalValue(value);
2005
2061
  }
@@ -2083,7 +2139,7 @@ Input.displayName = "Input";
2083
2139
  var labelVariants = cva(
2084
2140
  "text-sm font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:peer-disabled:opacity-60 transition-colors duration-200"
2085
2141
  );
2086
- var Label = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2142
+ var Label = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2087
2143
  LabelPrimitive.Root,
2088
2144
  {
2089
2145
  ref,
@@ -2144,7 +2200,7 @@ var popoverContentVariants = cva(
2144
2200
  var Popover = PopoverPrimitive.Root;
2145
2201
  var PopoverTrigger = PopoverPrimitive.Trigger;
2146
2202
  var PopoverAnchor = PopoverPrimitive.Anchor;
2147
- var PopoverContent = React24.forwardRef(({
2203
+ var PopoverContent = React25.forwardRef(({
2148
2204
  className,
2149
2205
  variant,
2150
2206
  size,
@@ -2212,7 +2268,7 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
2212
2268
  }
2213
2269
  );
2214
2270
  PopoverFooter.displayName = "PopoverFooter";
2215
- var Tabs = React24.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
2271
+ var Tabs = React25.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
2216
2272
  TabsPrimitive.Root,
2217
2273
  {
2218
2274
  ref,
@@ -2253,7 +2309,7 @@ var tabsListVariants = cva(
2253
2309
  }
2254
2310
  }
2255
2311
  );
2256
- var TabsList = React24.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2312
+ var TabsList = React25.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2257
2313
  return /* @__PURE__ */ jsx(
2258
2314
  TabsPrimitive.List,
2259
2315
  {
@@ -2296,7 +2352,7 @@ var tabsTriggerVariants = cva(
2296
2352
  }
2297
2353
  }
2298
2354
  );
2299
- var TabsTrigger = React24.forwardRef(({
2355
+ var TabsTrigger = React25.forwardRef(({
2300
2356
  className,
2301
2357
  variant,
2302
2358
  size,
@@ -2328,7 +2384,7 @@ var TabsTrigger = React24.forwardRef(({
2328
2384
  }
2329
2385
  ));
2330
2386
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
2331
- var TabsContent = React24.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2387
+ var TabsContent = React25.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2332
2388
  TabsPrimitive.Content,
2333
2389
  {
2334
2390
  ref,
@@ -2422,7 +2478,7 @@ var sliderThumbVariants = cva(
2422
2478
  }
2423
2479
  }
2424
2480
  );
2425
- var Slider = React24.forwardRef(({
2481
+ var Slider = React25.forwardRef(({
2426
2482
  className,
2427
2483
  size,
2428
2484
  trackVariant,
@@ -2438,10 +2494,10 @@ var Slider = React24.forwardRef(({
2438
2494
  disabled,
2439
2495
  ...props
2440
2496
  }, ref) => {
2441
- const [sliderValue, setSliderValue] = React24.useState(
2497
+ const [sliderValue, setSliderValue] = React25.useState(
2442
2498
  value || defaultValue || [0]
2443
2499
  );
2444
- React24.useEffect(() => {
2500
+ React25.useEffect(() => {
2445
2501
  if (value !== void 0) {
2446
2502
  setSliderValue(value);
2447
2503
  }
@@ -2456,7 +2512,7 @@ var Slider = React24.forwardRef(({
2456
2512
  const calculateThumbPercent = (value2, min2, max2) => {
2457
2513
  return (value2 - min2) / (max2 - min2) * 100;
2458
2514
  };
2459
- const trackRef = React24.useRef(null);
2515
+ const trackRef = React25.useRef(null);
2460
2516
  const min = props.min || 0;
2461
2517
  const max = props.max || 100;
2462
2518
  const step = props.step || 1;
@@ -2474,9 +2530,11 @@ var Slider = React24.forwardRef(({
2474
2530
  }
2475
2531
  };
2476
2532
  const handleTrackClick = (event) => {
2477
- if (disabled) return;
2533
+ if (disabled)
2534
+ return;
2478
2535
  const track = trackRef.current;
2479
- if (!track) return;
2536
+ if (!track)
2537
+ return;
2480
2538
  const rect = track.getBoundingClientRect();
2481
2539
  const percent = (event.clientX - rect.left) / rect.width;
2482
2540
  const rawValue = min + percent * (max - min);
@@ -2487,11 +2545,13 @@ var Slider = React24.forwardRef(({
2487
2545
  handleValueChange(newValues);
2488
2546
  };
2489
2547
  const handleThumbMouseDown = (index) => (event) => {
2490
- if (disabled) return;
2548
+ if (disabled)
2549
+ return;
2491
2550
  event.preventDefault();
2492
2551
  const handleMouseMove = (moveEvent) => {
2493
2552
  const track = trackRef.current;
2494
- if (!track) return;
2553
+ if (!track)
2554
+ return;
2495
2555
  const rect = track.getBoundingClientRect();
2496
2556
  const percent = (moveEvent.clientX - rect.left) / rect.width;
2497
2557
  const rawValue = min + percent * (max - min);
@@ -2509,7 +2569,8 @@ var Slider = React24.forwardRef(({
2509
2569
  document.addEventListener("mouseup", handleMouseUp);
2510
2570
  };
2511
2571
  const handleThumbKeyDown = (index) => (event) => {
2512
- if (disabled) return;
2572
+ if (disabled)
2573
+ return;
2513
2574
  const largeStep = step * 10;
2514
2575
  const current = sliderValue[index];
2515
2576
  let next;
@@ -2646,7 +2707,8 @@ function rgbToHex(r, g, b) {
2646
2707
  }
2647
2708
  function hexToHsl(hex) {
2648
2709
  const rgb = hexToRgb(hex);
2649
- if (!rgb) return null;
2710
+ if (!rgb)
2711
+ return null;
2650
2712
  const r = rgb.r / 255;
2651
2713
  const g = rgb.g / 255;
2652
2714
  const b = rgb.b / 255;
@@ -2685,11 +2747,16 @@ function hslToHex(h, s, l) {
2685
2747
  r = g = b = l;
2686
2748
  } else {
2687
2749
  const hue2rgb = (p2, q2, t) => {
2688
- if (t < 0) t += 1;
2689
- if (t > 1) t -= 1;
2690
- if (t < 1 / 6) return p2 + (q2 - p2) * 6 * t;
2691
- if (t < 1 / 2) return q2;
2692
- if (t < 2 / 3) return p2 + (q2 - p2) * (2 / 3 - t) * 6;
2750
+ if (t < 0)
2751
+ t += 1;
2752
+ if (t > 1)
2753
+ t -= 1;
2754
+ if (t < 1 / 6)
2755
+ return p2 + (q2 - p2) * 6 * t;
2756
+ if (t < 1 / 2)
2757
+ return q2;
2758
+ if (t < 2 / 3)
2759
+ return p2 + (q2 - p2) * (2 / 3 - t) * 6;
2693
2760
  return p2;
2694
2761
  };
2695
2762
  const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
@@ -2757,14 +2824,14 @@ function ColorPicker({
2757
2824
  disabled,
2758
2825
  ...props
2759
2826
  }) {
2760
- const [open, setOpen] = React24.useState(false);
2761
- const [color, setColor] = React24.useState(value);
2762
- const [opacity, setOpacity] = React24.useState(100);
2763
- const [copied, setCopied] = React24.useState(false);
2764
- const [inputValue, setInputValue] = React24.useState(value);
2765
- const hsl = React24.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2766
- const rgb = React24.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2767
- React24.useEffect(() => {
2827
+ const [open, setOpen] = React25.useState(false);
2828
+ const [color, setColor] = React25.useState(value);
2829
+ const [opacity, setOpacity] = React25.useState(100);
2830
+ const [copied, setCopied] = React25.useState(false);
2831
+ const [inputValue, setInputValue] = React25.useState(value);
2832
+ const hsl = React25.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2833
+ const rgb = React25.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2834
+ React25.useEffect(() => {
2768
2835
  setColor(value);
2769
2836
  setInputValue(value);
2770
2837
  }, [value]);
@@ -2806,8 +2873,10 @@ function ColorPicker({
2806
2873
  }
2807
2874
  };
2808
2875
  const formatDisplay = () => {
2809
- if (format4 === "rgb") return `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`;
2810
- if (format4 === "hsl") return `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;
2876
+ if (format4 === "rgb")
2877
+ return `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`;
2878
+ if (format4 === "hsl")
2879
+ return `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;
2811
2880
  return color;
2812
2881
  };
2813
2882
  return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
@@ -3157,7 +3226,7 @@ function GradientPicker({
3157
3226
  onChange,
3158
3227
  className
3159
3228
  }) {
3160
- const [gradient, setGradient] = React24.useState(value);
3229
+ const [gradient, setGradient] = React25.useState(value);
3161
3230
  const handleChange = (field, newValue) => {
3162
3231
  const newGradient = { ...gradient, [field]: newValue };
3163
3232
  setGradient(newGradient);
@@ -3243,7 +3312,7 @@ var overlayVariants = cva(
3243
3312
  }
3244
3313
  }
3245
3314
  );
3246
- var DialogOverlay = React24.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3315
+ var DialogOverlay = React25.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3247
3316
  DialogPrimitive.Overlay,
3248
3317
  {
3249
3318
  ref,
@@ -3302,7 +3371,7 @@ var dialogContentVariants = cva(
3302
3371
  }
3303
3372
  }
3304
3373
  );
3305
- var DialogContent = React24.forwardRef(
3374
+ var DialogContent = React25.forwardRef(
3306
3375
  ({
3307
3376
  className,
3308
3377
  children,
@@ -3415,7 +3484,7 @@ var DialogFooter = ({
3415
3484
  }
3416
3485
  );
3417
3486
  DialogFooter.displayName = "DialogFooter";
3418
- var DialogTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3487
+ var DialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3419
3488
  DialogPrimitive.Title,
3420
3489
  {
3421
3490
  ref,
@@ -3427,7 +3496,7 @@ var DialogTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
3427
3496
  }
3428
3497
  ));
3429
3498
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
3430
- var DialogDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3499
+ var DialogDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3431
3500
  DialogPrimitive.Description,
3432
3501
  {
3433
3502
  ref,
@@ -3439,7 +3508,7 @@ var DialogDescription = React24.forwardRef(({ className, ...props }, ref) => /*
3439
3508
  }
3440
3509
  ));
3441
3510
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
3442
- var DialogForm = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3511
+ var DialogForm = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3443
3512
  "form",
3444
3513
  {
3445
3514
  ref,
@@ -3469,7 +3538,7 @@ var commandVariants = cva(
3469
3538
  }
3470
3539
  }
3471
3540
  );
3472
- var Command = React24.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3541
+ var Command = React25.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3473
3542
  Command$1,
3474
3543
  {
3475
3544
  ref,
@@ -3491,7 +3560,7 @@ var CommandDialog = ({
3491
3560
  ), children })
3492
3561
  ] }) });
3493
3562
  };
3494
- var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3563
+ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3495
3564
  /* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
3496
3565
  /* @__PURE__ */ jsx(
3497
3566
  Command$1.Input,
@@ -3506,7 +3575,7 @@ var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
3506
3575
  )
3507
3576
  ] }));
3508
3577
  CommandInput.displayName = "CommandInput";
3509
- var CommandList = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3578
+ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3510
3579
  Command$1.List,
3511
3580
  {
3512
3581
  ref,
@@ -3515,7 +3584,7 @@ var CommandList = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
3515
3584
  }
3516
3585
  ));
3517
3586
  CommandList.displayName = "CommandList";
3518
- var CommandEmpty = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3587
+ var CommandEmpty = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3519
3588
  Command$1.Empty,
3520
3589
  {
3521
3590
  ref,
@@ -3524,7 +3593,7 @@ var CommandEmpty = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
3524
3593
  }
3525
3594
  ));
3526
3595
  CommandEmpty.displayName = "CommandEmpty";
3527
- var CommandGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3596
+ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3528
3597
  Command$1.Group,
3529
3598
  {
3530
3599
  ref,
@@ -3536,7 +3605,7 @@ var CommandGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
3536
3605
  }
3537
3606
  ));
3538
3607
  CommandGroup.displayName = "CommandGroup";
3539
- var CommandSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3608
+ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3540
3609
  Command$1.Separator,
3541
3610
  {
3542
3611
  ref,
@@ -3545,7 +3614,7 @@ var CommandSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @
3545
3614
  }
3546
3615
  ));
3547
3616
  CommandSeparator.displayName = "CommandSeparator";
3548
- var CommandItem = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3617
+ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3549
3618
  Command$1.Item,
3550
3619
  {
3551
3620
  ref,
@@ -3596,7 +3665,7 @@ var tableVariants = cva(
3596
3665
  }
3597
3666
  }
3598
3667
  );
3599
- var Table = React24.forwardRef(({
3668
+ var Table = React25.forwardRef(({
3600
3669
  className,
3601
3670
  variant,
3602
3671
  size,
@@ -3613,11 +3682,11 @@ var Table = React24.forwardRef(({
3613
3682
  ...props
3614
3683
  }, ref) => {
3615
3684
  const striped = variant === "striped";
3616
- const childrenWithProps = React24.Children.map(props.children, (child) => {
3617
- if (React24.isValidElement(child)) {
3685
+ const childrenWithProps = React25.Children.map(props.children, (child) => {
3686
+ if (React25.isValidElement(child)) {
3618
3687
  if (child.type === "tbody") {
3619
3688
  const tbodyProps = child.props;
3620
- return React24.cloneElement(child, {
3689
+ return React25.cloneElement(child, {
3621
3690
  className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
3622
3691
  });
3623
3692
  }
@@ -3642,10 +3711,10 @@ var Table = React24.forwardRef(({
3642
3711
  ] });
3643
3712
  });
3644
3713
  Table.displayName = "Table";
3645
- var TableHeader = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3714
+ var TableHeader = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3646
3715
  TableHeader.displayName = "TableHeader";
3647
- var TableBody = React24.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3648
- const hasChildren = React24.Children.count(children) > 0;
3716
+ var TableBody = React25.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3717
+ const hasChildren = React25.Children.count(children) > 0;
3649
3718
  return /* @__PURE__ */ jsx(
3650
3719
  "tbody",
3651
3720
  {
@@ -3657,7 +3726,7 @@ var TableBody = React24.forwardRef(({ className, emptyContent, emptyMessage = "N
3657
3726
  );
3658
3727
  });
3659
3728
  TableBody.displayName = "TableBody";
3660
- var TableFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3729
+ var TableFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3661
3730
  "tfoot",
3662
3731
  {
3663
3732
  ref,
@@ -3666,7 +3735,7 @@ var TableFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
3666
3735
  }
3667
3736
  ));
3668
3737
  TableFooter.displayName = "TableFooter";
3669
- var TableRow = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3738
+ var TableRow = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3670
3739
  "tr",
3671
3740
  {
3672
3741
  ref,
@@ -3678,10 +3747,11 @@ var TableRow = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3678
3747
  }
3679
3748
  ));
3680
3749
  TableRow.displayName = "TableRow";
3681
- var TableHead = React24.forwardRef(
3750
+ var TableHead = React25.forwardRef(
3682
3751
  ({ className, sortable, sorted, onSort, align = "left", children, ...props }, ref) => {
3683
3752
  const renderSortIcon = () => {
3684
- if (!sortable) return null;
3753
+ if (!sortable)
3754
+ return null;
3685
3755
  if (sorted === "asc") {
3686
3756
  return /* @__PURE__ */ jsx(
3687
3757
  "svg",
@@ -3765,7 +3835,7 @@ var TableHead = React24.forwardRef(
3765
3835
  }
3766
3836
  );
3767
3837
  TableHead.displayName = "TableHead";
3768
- var TableCell = React24.forwardRef(({ className, align = "left", ...props }, ref) => {
3838
+ var TableCell = React25.forwardRef(({ className, align = "left", ...props }, ref) => {
3769
3839
  const alignmentClass = {
3770
3840
  left: "text-left",
3771
3841
  center: "text-center",
@@ -3781,7 +3851,7 @@ var TableCell = React24.forwardRef(({ className, align = "left", ...props }, ref
3781
3851
  );
3782
3852
  });
3783
3853
  TableCell.displayName = "TableCell";
3784
- var TableCaption = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3854
+ var TableCaption = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3785
3855
  "caption",
3786
3856
  {
3787
3857
  ref,
@@ -3801,8 +3871,8 @@ function DataTableBasic({
3801
3871
  emptyMessage = "No results found.",
3802
3872
  className
3803
3873
  }) {
3804
- const [sorting, setSorting] = React24.useState([]);
3805
- const [globalFilter, setGlobalFilter] = React24.useState("");
3874
+ const [sorting, setSorting] = React25.useState([]);
3875
+ const [globalFilter, setGlobalFilter] = React25.useState("");
3806
3876
  const table = useReactTable({
3807
3877
  data,
3808
3878
  columns,
@@ -3965,7 +4035,7 @@ var datePickerVariants = cva(
3965
4035
  }
3966
4036
  }
3967
4037
  );
3968
- var DatePicker = React24.forwardRef(function DatePicker2({
4038
+ var DatePicker = React25.forwardRef(function DatePicker2({
3969
4039
  className,
3970
4040
  variant,
3971
4041
  size,
@@ -3988,9 +4058,9 @@ var DatePicker = React24.forwardRef(function DatePicker2({
3988
4058
  disabled,
3989
4059
  ...props
3990
4060
  }, ref) {
3991
- const [open, setOpen] = React24.useState(false);
3992
- const [internalDate, setInternalDate] = React24.useState(value);
3993
- React24.useEffect(() => {
4061
+ const [open, setOpen] = React25.useState(false);
4062
+ const [internalDate, setInternalDate] = React25.useState(value);
4063
+ React25.useEffect(() => {
3994
4064
  setInternalDate(value);
3995
4065
  }, [value]);
3996
4066
  const handleSelect = (date) => {
@@ -4010,10 +4080,14 @@ var DatePicker = React24.forwardRef(function DatePicker2({
4010
4080
  handleSelect(today);
4011
4081
  };
4012
4082
  const isDateDisabled = (date) => {
4013
- if (minDate && date < minDate) return true;
4014
- if (maxDate && date > maxDate) return true;
4015
- if (disabledDates?.some((d) => d.toDateString() === date.toDateString())) return true;
4016
- if (disabledDaysOfWeek?.includes(date.getDay())) return true;
4083
+ if (minDate && date < minDate)
4084
+ return true;
4085
+ if (maxDate && date > maxDate)
4086
+ return true;
4087
+ if (disabledDates?.some((d) => d.toDateString() === date.toDateString()))
4088
+ return true;
4089
+ if (disabledDaysOfWeek?.includes(date.getDay()))
4090
+ return true;
4017
4091
  return false;
4018
4092
  };
4019
4093
  const displayValue = internalDate && isValid(internalDate) ? format(internalDate, formatString) : null;
@@ -4134,7 +4208,7 @@ var DatePicker = React24.forwardRef(function DatePicker2({
4134
4208
  ] }) });
4135
4209
  });
4136
4210
  DatePicker.displayName = "DatePicker";
4137
- var DateRangePicker = React24.forwardRef(function DateRangePicker2({
4211
+ var DateRangePicker = React25.forwardRef(function DateRangePicker2({
4138
4212
  className,
4139
4213
  value,
4140
4214
  onChange,
@@ -4143,9 +4217,9 @@ var DateRangePicker = React24.forwardRef(function DateRangePicker2({
4143
4217
  separator = " - ",
4144
4218
  ...props
4145
4219
  }, ref) {
4146
- const [open, setOpen] = React24.useState(false);
4147
- const [internalRange, setInternalRange] = React24.useState(value);
4148
- React24.useEffect(() => {
4220
+ const [open, setOpen] = React25.useState(false);
4221
+ const [internalRange, setInternalRange] = React25.useState(value);
4222
+ React25.useEffect(() => {
4149
4223
  setInternalRange(value);
4150
4224
  }, [value]);
4151
4225
  const handleSelect = (range) => {
@@ -4155,8 +4229,9 @@ var DateRangePicker = React24.forwardRef(function DateRangePicker2({
4155
4229
  setOpen(false);
4156
4230
  }
4157
4231
  };
4158
- const displayValue = React24.useMemo(() => {
4159
- if (!internalRange?.from) return null;
4232
+ const displayValue = React25.useMemo(() => {
4233
+ if (!internalRange?.from)
4234
+ return null;
4160
4235
  if (!internalRange?.to) {
4161
4236
  return format(internalRange.from, formatString);
4162
4237
  }
@@ -4202,7 +4277,7 @@ var DateRangePicker = React24.forwardRef(function DateRangePicker2({
4202
4277
  ] });
4203
4278
  });
4204
4279
  DateRangePicker.displayName = "DateRangePicker";
4205
- var DateTimePicker = React24.forwardRef(function DateTimePicker2({
4280
+ var DateTimePicker = React25.forwardRef(function DateTimePicker2({
4206
4281
  value,
4207
4282
  onChange,
4208
4283
  // Saat ayrı bir <select> ile gösterildiği için buton yalnızca TARİHİ yazar;
@@ -4214,8 +4289,8 @@ var DateTimePicker = React24.forwardRef(function DateTimePicker2({
4214
4289
  timeInterval = 15,
4215
4290
  ...props
4216
4291
  }, ref) {
4217
- const [date, setDate] = React24.useState(value);
4218
- const [time, setTime] = React24.useState(
4292
+ const [date, setDate] = React25.useState(value);
4293
+ const [time, setTime] = React25.useState(
4219
4294
  value ? format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
4220
4295
  );
4221
4296
  const handleDateChange = (newDate) => {
@@ -4240,7 +4315,7 @@ var DateTimePicker = React24.forwardRef(function DateTimePicker2({
4240
4315
  onChange?.(newDate);
4241
4316
  }
4242
4317
  };
4243
- const timeOptions = React24.useMemo(() => {
4318
+ const timeOptions = React25.useMemo(() => {
4244
4319
  const options = [];
4245
4320
  for (let h = 0; h < 24; h++) {
4246
4321
  for (let m = 0; m < 60; m += timeInterval) {
@@ -4294,15 +4369,15 @@ var DateTimePicker = React24.forwardRef(function DateTimePicker2({
4294
4369
  ] });
4295
4370
  });
4296
4371
  DateTimePicker.displayName = "DateTimePicker";
4297
- var MonthPicker = React24.forwardRef(function MonthPicker2({
4372
+ var MonthPicker = React25.forwardRef(function MonthPicker2({
4298
4373
  value,
4299
4374
  onChange,
4300
4375
  placeholder = "Pick a month",
4301
4376
  formatString = "MMMM yyyy",
4302
4377
  ...props
4303
4378
  }, ref) {
4304
- const [open, setOpen] = React24.useState(false);
4305
- const [viewDate, setViewDate] = React24.useState(value || /* @__PURE__ */ new Date());
4379
+ const [open, setOpen] = React25.useState(false);
4380
+ const [viewDate, setViewDate] = React25.useState(value || /* @__PURE__ */ new Date());
4306
4381
  const months = [
4307
4382
  "January",
4308
4383
  "February",
@@ -4398,9 +4473,10 @@ function DraggableList({
4398
4473
  className,
4399
4474
  disabled = false
4400
4475
  }) {
4401
- const [draggedIndex, setDraggedIndex] = React24.useState(null);
4476
+ const [draggedIndex, setDraggedIndex] = React25.useState(null);
4402
4477
  const handleDragStart = (e, index) => {
4403
- if (disabled) return;
4478
+ if (disabled)
4479
+ return;
4404
4480
  setDraggedIndex(index);
4405
4481
  e.dataTransfer.effectAllowed = "move";
4406
4482
  };
@@ -4449,7 +4525,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
4449
4525
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
4450
4526
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
4451
4527
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
4452
- var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4528
+ var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4453
4529
  DropdownMenuPrimitive.SubTrigger,
4454
4530
  {
4455
4531
  ref,
@@ -4466,7 +4542,7 @@ var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, .
4466
4542
  }
4467
4543
  ));
4468
4544
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
4469
- var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4545
+ var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4470
4546
  DropdownMenuPrimitive.SubContent,
4471
4547
  {
4472
4548
  ref,
@@ -4478,7 +4554,7 @@ var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) =
4478
4554
  }
4479
4555
  ));
4480
4556
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
4481
- var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4557
+ var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4482
4558
  DropdownMenuPrimitive.Content,
4483
4559
  {
4484
4560
  ref,
@@ -4491,7 +4567,7 @@ var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...pr
4491
4567
  }
4492
4568
  ) }));
4493
4569
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4494
- var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4570
+ var DropdownMenuItem = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4495
4571
  DropdownMenuPrimitive.Item,
4496
4572
  {
4497
4573
  ref,
@@ -4504,7 +4580,7 @@ var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref)
4504
4580
  }
4505
4581
  ));
4506
4582
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4507
- var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4583
+ var DropdownMenuCheckboxItem = React25.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4508
4584
  DropdownMenuPrimitive.CheckboxItem,
4509
4585
  {
4510
4586
  ref,
@@ -4521,7 +4597,7 @@ var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checke
4521
4597
  }
4522
4598
  ));
4523
4599
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
4524
- var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4600
+ var DropdownMenuRadioItem = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4525
4601
  DropdownMenuPrimitive.RadioItem,
4526
4602
  {
4527
4603
  ref,
@@ -4537,7 +4613,7 @@ var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props
4537
4613
  }
4538
4614
  ));
4539
4615
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
4540
- var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4616
+ var DropdownMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4541
4617
  DropdownMenuPrimitive.Label,
4542
4618
  {
4543
4619
  ref,
@@ -4550,7 +4626,7 @@ var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref)
4550
4626
  }
4551
4627
  ));
4552
4628
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4553
- var DropdownMenuSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4629
+ var DropdownMenuSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4554
4630
  DropdownMenuPrimitive.Separator,
4555
4631
  {
4556
4632
  ref,
@@ -4639,7 +4715,7 @@ var progressIndicatorVariants = cva(
4639
4715
  }
4640
4716
  }
4641
4717
  );
4642
- var Progress = React24.forwardRef(({
4718
+ var Progress = React25.forwardRef(({
4643
4719
  className,
4644
4720
  value = 0,
4645
4721
  variant,
@@ -4694,14 +4770,19 @@ var Progress = React24.forwardRef(({
4694
4770
  });
4695
4771
  Progress.displayName = "Progress";
4696
4772
  var getFileIcon = (type) => {
4697
- if (type.startsWith("image/")) return /* @__PURE__ */ jsx(Image, { className: "h-4 w-4" });
4698
- if (type.startsWith("video/")) return /* @__PURE__ */ jsx(Video, { className: "h-4 w-4" });
4699
- if (type.startsWith("audio/")) return /* @__PURE__ */ jsx(Music, { className: "h-4 w-4" });
4700
- if (type.includes("text") || type.includes("document")) return /* @__PURE__ */ jsx(FileText, { className: "h-4 w-4" });
4773
+ if (type.startsWith("image/"))
4774
+ return /* @__PURE__ */ jsx(Image, { className: "h-4 w-4" });
4775
+ if (type.startsWith("video/"))
4776
+ return /* @__PURE__ */ jsx(Video, { className: "h-4 w-4" });
4777
+ if (type.startsWith("audio/"))
4778
+ return /* @__PURE__ */ jsx(Music, { className: "h-4 w-4" });
4779
+ if (type.includes("text") || type.includes("document"))
4780
+ return /* @__PURE__ */ jsx(FileText, { className: "h-4 w-4" });
4701
4781
  return /* @__PURE__ */ jsx(File, { className: "h-4 w-4" });
4702
4782
  };
4703
4783
  var formatFileSize = (bytes) => {
4704
- if (bytes === 0) return "0 Bytes";
4784
+ if (bytes === 0)
4785
+ return "0 Bytes";
4705
4786
  const k = 1024;
4706
4787
  const sizes = ["Bytes", "KB", "MB", "GB"];
4707
4788
  const i = Math.floor(Math.log(bytes) / Math.log(k));
@@ -4764,7 +4845,7 @@ var FileItem = ({
4764
4845
  }
4765
4846
  );
4766
4847
  };
4767
- var FileUpload = React24__default.forwardRef(
4848
+ var FileUpload = React25__default.forwardRef(
4768
4849
  ({
4769
4850
  accept = "*",
4770
4851
  multiple = true,
@@ -4862,7 +4943,8 @@ var FileUpload = React24__default.forwardRef(
4862
4943
  const handleDrop = useCallback((e) => {
4863
4944
  e.preventDefault();
4864
4945
  setIsDragOver(false);
4865
- if (disabled) return;
4946
+ if (disabled)
4947
+ return;
4866
4948
  const files = e.dataTransfer.files;
4867
4949
  if (files.length > 0) {
4868
4950
  processFiles(files);
@@ -4986,7 +5068,7 @@ var FileUpload = React24__default.forwardRef(
4986
5068
  }
4987
5069
  );
4988
5070
  FileUpload.displayName = "FileUpload";
4989
- var GestureDrawer = React24__default.forwardRef(
5071
+ var GestureDrawer = React25__default.forwardRef(
4990
5072
  ({
4991
5073
  children,
4992
5074
  isOpen,
@@ -5004,7 +5086,8 @@ var GestureDrawer = React24__default.forwardRef(
5004
5086
  const motionValue = isVertical ? y : x;
5005
5087
  const opacity = useTransform(motionValue, [0, threshold], [1, 0.5]);
5006
5088
  const handleDragEnd = (event, info) => {
5007
- if (!enableSwipeToClose) return;
5089
+ if (!enableSwipeToClose)
5090
+ return;
5008
5091
  const offset = isVertical ? info.offset.y : info.offset.x;
5009
5092
  const velocity = isVertical ? info.velocity.y : info.velocity.x;
5010
5093
  let shouldClose = false;
@@ -5045,7 +5128,8 @@ var GestureDrawer = React24__default.forwardRef(
5045
5128
  const getAnimatePosition = () => {
5046
5129
  return isVertical ? { y: 0 } : { x: 0 };
5047
5130
  };
5048
- if (!isOpen) return null;
5131
+ if (!isOpen)
5132
+ return null;
5049
5133
  return /* @__PURE__ */ jsxs("div", { className: "fixed inset-0 z-50", children: [
5050
5134
  /* @__PURE__ */ jsx(
5051
5135
  motion.div,
@@ -5255,7 +5339,7 @@ function GitHubStarButton({
5255
5339
  }
5256
5340
  );
5257
5341
  }
5258
- var InputOTP = React24.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5342
+ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5259
5343
  OTPInput,
5260
5344
  {
5261
5345
  ref,
@@ -5270,7 +5354,7 @@ var InputOTP = React24.forwardRef(({ className, containerClassName, ...props },
5270
5354
  }
5271
5355
  ));
5272
5356
  InputOTP.displayName = "InputOTP";
5273
- var InputOTPGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5357
+ var InputOTPGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5274
5358
  InputOTPGroup.displayName = "InputOTPGroup";
5275
5359
  var inputOTPSlotVariants = cva(
5276
5360
  [
@@ -5292,9 +5376,9 @@ var inputOTPSlotVariants = cva(
5292
5376
  }
5293
5377
  }
5294
5378
  );
5295
- var InputOTPSlot = React24.forwardRef(
5379
+ var InputOTPSlot = React25.forwardRef(
5296
5380
  ({ index, className, ...props }, ref) => {
5297
- const inputOTPContext = React24.useContext(OTPInputContext);
5381
+ const inputOTPContext = React25.useContext(OTPInputContext);
5298
5382
  const slot = inputOTPContext?.slots?.[index];
5299
5383
  const char = slot?.char;
5300
5384
  const hasFakeCaret = slot?.hasFakeCaret;
@@ -5316,7 +5400,7 @@ var InputOTPSlot = React24.forwardRef(
5316
5400
  }
5317
5401
  );
5318
5402
  InputOTPSlot.displayName = "InputOTPSlot";
5319
- var InputOTPSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5403
+ var InputOTPSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5320
5404
  "div",
5321
5405
  {
5322
5406
  ref,
@@ -5337,7 +5421,8 @@ function LockedComponent({
5337
5421
  const [isPreviewActive, setIsPreviewActive] = useState(false);
5338
5422
  const [previewTimeout, setPreviewTimeout] = useState(null);
5339
5423
  const handleMouseEnter = () => {
5340
- if (!showPreview) return;
5424
+ if (!showPreview)
5425
+ return;
5341
5426
  setIsPreviewActive(true);
5342
5427
  if (previewTimeout) {
5343
5428
  clearTimeout(previewTimeout);
@@ -5443,6 +5528,7 @@ function ProComponentWrapper({
5443
5528
  nodeEnv: process.env.NODE_ENV === "development",
5444
5529
  nextPublicEnv: process.env.NEXT_PUBLIC_VERCEL_ENV === "development",
5445
5530
  localhost: typeof window !== "undefined" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname.includes(".local")),
5531
+ port: typeof window !== "undefined" && (window.location.port === "3000" || window.location.port === "3001" || window.location.port === "8080"),
5446
5532
  vercelEnv: !process.env.VERCEL,
5447
5533
  ciEnv: !process.env.CI,
5448
5534
  deploymentEnv: !process.env.DEPLOYMENT_ENV
@@ -5523,7 +5609,9 @@ function ProComponentWrapper({
5523
5609
  const isDevelopment = () => {
5524
5610
  const checks = {
5525
5611
  nodeEnv: process.env.NODE_ENV === "development",
5526
- localhost: typeof window !== "undefined" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname.includes(".local"))};
5612
+ localhost: typeof window !== "undefined" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname.includes(".local")),
5613
+ port: typeof window !== "undefined" && (window.location.port === "3000" || window.location.port === "3001" || window.location.port === "8080")
5614
+ };
5527
5615
  if (process.env.VERCEL || process.env.NETLIFY || process.env.RENDER || process.env.RAILWAY_ENVIRONMENT || process.env.FLY_APP_NAME) {
5528
5616
  return false;
5529
5617
  }
@@ -5611,7 +5699,7 @@ function MoonLogo({
5611
5699
  showText = true,
5612
5700
  ...props
5613
5701
  }) {
5614
- const logoId = React24.useId();
5702
+ const logoId = React25.useId();
5615
5703
  const gradientId = `moon-gradient-${logoId}`;
5616
5704
  const maskId = `moon-mask-${logoId}`;
5617
5705
  return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", className), children: [
@@ -5693,7 +5781,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
5693
5781
  }
5694
5782
  );
5695
5783
  Pagination.displayName = "Pagination";
5696
- var PaginationContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5784
+ var PaginationContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5697
5785
  "ul",
5698
5786
  {
5699
5787
  ref,
@@ -5702,7 +5790,7 @@ var PaginationContent = React24.forwardRef(({ className, ...props }, ref) => /*
5702
5790
  }
5703
5791
  ));
5704
5792
  PaginationContent.displayName = "PaginationContent";
5705
- var PaginationItem = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5793
+ var PaginationItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5706
5794
  PaginationItem.displayName = "PaginationItem";
5707
5795
  var PaginationLink = ({
5708
5796
  className,
@@ -5810,7 +5898,7 @@ var selectTriggerVariants = cva(
5810
5898
  }
5811
5899
  }
5812
5900
  );
5813
- var SelectTrigger = React24.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
5901
+ var SelectTrigger = React25.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
5814
5902
  SelectPrimitive.Trigger,
5815
5903
  {
5816
5904
  ref,
@@ -5841,7 +5929,7 @@ var SelectTrigger = React24.forwardRef(({ className, children, variant, size, er
5841
5929
  }
5842
5930
  ));
5843
5931
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
5844
- var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5932
+ var SelectScrollUpButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5845
5933
  SelectPrimitive.ScrollUpButton,
5846
5934
  {
5847
5935
  ref,
@@ -5854,7 +5942,7 @@ var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) =>
5854
5942
  }
5855
5943
  ));
5856
5944
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
5857
- var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5945
+ var SelectScrollDownButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5858
5946
  SelectPrimitive.ScrollDownButton,
5859
5947
  {
5860
5948
  ref,
@@ -5867,7 +5955,7 @@ var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) =
5867
5955
  }
5868
5956
  ));
5869
5957
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
5870
- var SelectContent = React24.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
5958
+ var SelectContent = React25.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
5871
5959
  SelectPrimitive.Content,
5872
5960
  {
5873
5961
  ref,
@@ -5878,7 +5966,7 @@ var SelectContent = React24.forwardRef(({ className, children, position = "poppe
5878
5966
  className: cn(
5879
5967
  [
5880
5968
  "relative z-50 max-h-96 min-w-[8rem] overflow-hidden",
5881
- "rounded-md border border-gray-200 dark:border-gray-700",
5969
+ "rounded-md border border-input",
5882
5970
  "bg-background dark:bg-gray-800/80 backdrop-blur-sm text-foreground dark:text-gray-200",
5883
5971
  "shadow-lg dark:shadow-gray-900/20",
5884
5972
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
@@ -5908,7 +5996,7 @@ var SelectContent = React24.forwardRef(({ className, children, position = "poppe
5908
5996
  }
5909
5997
  ) }));
5910
5998
  SelectContent.displayName = SelectPrimitive.Content.displayName;
5911
- var SelectLabel = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5999
+ var SelectLabel = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5912
6000
  SelectPrimitive.Label,
5913
6001
  {
5914
6002
  ref,
@@ -5917,7 +6005,7 @@ var SelectLabel = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
5917
6005
  }
5918
6006
  ));
5919
6007
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
5920
- var SelectItem = React24.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
6008
+ var SelectItem = React25.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
5921
6009
  SelectPrimitive.Item,
5922
6010
  {
5923
6011
  ref,
@@ -5947,7 +6035,7 @@ var SelectItem = React24.forwardRef(({ className, children, variant = "default",
5947
6035
  }
5948
6036
  ));
5949
6037
  SelectItem.displayName = SelectPrimitive.Item.displayName;
5950
- var SelectSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6038
+ var SelectSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5951
6039
  SelectPrimitive.Separator,
5952
6040
  {
5953
6041
  ref,
@@ -5988,22 +6076,30 @@ var formatPhoneNumber = (value, countryCode) => {
5988
6076
  const cleaned = value.replace(/\D/g, "");
5989
6077
  switch (countryCode) {
5990
6078
  case "+1":
5991
- if (cleaned.length <= 3) return cleaned;
5992
- if (cleaned.length <= 6) return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3)}`;
6079
+ if (cleaned.length <= 3)
6080
+ return cleaned;
6081
+ if (cleaned.length <= 6)
6082
+ return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3)}`;
5993
6083
  return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)}-${cleaned.slice(6, 10)}`;
5994
6084
  case "+44":
5995
- if (cleaned.length <= 4) return cleaned;
5996
- if (cleaned.length <= 7) return `${cleaned.slice(0, 4)} ${cleaned.slice(4)}`;
6085
+ if (cleaned.length <= 4)
6086
+ return cleaned;
6087
+ if (cleaned.length <= 7)
6088
+ return `${cleaned.slice(0, 4)} ${cleaned.slice(4)}`;
5997
6089
  return `${cleaned.slice(0, 4)} ${cleaned.slice(4, 7)} ${cleaned.slice(7, 11)}`;
5998
6090
  case "+90":
5999
- if (cleaned.length <= 3) return cleaned;
6000
- if (cleaned.length <= 6) return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3)}`;
6001
- if (cleaned.length <= 9) return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)} ${cleaned.slice(6)}`;
6091
+ if (cleaned.length <= 3)
6092
+ return cleaned;
6093
+ if (cleaned.length <= 6)
6094
+ return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3)}`;
6095
+ if (cleaned.length <= 9)
6096
+ return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)} ${cleaned.slice(6)}`;
6002
6097
  return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)} ${cleaned.slice(6, 8)} ${cleaned.slice(8, 10)}`;
6003
6098
  default:
6004
6099
  let formatted = "";
6005
6100
  for (let i = 0; i < cleaned.length; i++) {
6006
- if (i > 0 && i % 3 === 0) formatted += " ";
6101
+ if (i > 0 && i % 3 === 0)
6102
+ formatted += " ";
6007
6103
  formatted += cleaned[i];
6008
6104
  }
6009
6105
  return formatted;
@@ -6013,18 +6109,15 @@ var getMaxLength = (countryCode) => {
6013
6109
  switch (countryCode) {
6014
6110
  case "+1":
6015
6111
  return 10;
6016
- // US/Canada
6017
6112
  case "+44":
6018
6113
  return 11;
6019
- // UK
6020
6114
  case "+90":
6021
6115
  return 10;
6022
- // Turkey
6023
6116
  default:
6024
6117
  return 15;
6025
6118
  }
6026
6119
  };
6027
- var PhoneInput = React24.forwardRef(
6120
+ var PhoneInput = React25.forwardRef(
6028
6121
  ({
6029
6122
  className,
6030
6123
  value = "",
@@ -6036,8 +6129,8 @@ var PhoneInput = React24.forwardRef(
6036
6129
  size,
6037
6130
  ...props
6038
6131
  }, ref) => {
6039
- const [countryCode, setCountryCode] = React24.useState(defaultCountry);
6040
- const [phoneNumber, setPhoneNumber] = React24.useState(value);
6132
+ const [countryCode, setCountryCode] = React25.useState(defaultCountry);
6133
+ const [phoneNumber, setPhoneNumber] = React25.useState(value);
6041
6134
  const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
6042
6135
  const handlePhoneChange = (e) => {
6043
6136
  const rawValue = e.target.value.replace(/\D/g, "");
@@ -6108,15 +6201,15 @@ var radioGroupItemVariants = cva(
6108
6201
  }
6109
6202
  }
6110
6203
  );
6111
- var RadioGroupContext = React24.createContext({});
6112
- var RadioGroup2 = React24.forwardRef(
6204
+ var RadioGroupContext = React25.createContext({});
6205
+ var RadioGroup2 = React25.forwardRef(
6113
6206
  ({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
6114
- const [internalValue, setInternalValue] = React24.useState(
6207
+ const [internalValue, setInternalValue] = React25.useState(
6115
6208
  defaultValue
6116
6209
  );
6117
6210
  const isControlled = value !== void 0;
6118
6211
  const currentValue = isControlled ? value : internalValue;
6119
- const handleValueChange = React24.useCallback(
6212
+ const handleValueChange = React25.useCallback(
6120
6213
  (next) => {
6121
6214
  if (!isControlled) {
6122
6215
  setInternalValue(next);
@@ -6148,9 +6241,9 @@ var RadioGroup2 = React24.forwardRef(
6148
6241
  }
6149
6242
  );
6150
6243
  RadioGroup2.displayName = "RadioGroup";
6151
- var RadioGroupItem = React24.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6152
- const radioGroup = React24.useContext(RadioGroupContext);
6153
- const generatedId = React24.useId();
6244
+ var RadioGroupItem = React25.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6245
+ const radioGroup = React25.useContext(RadioGroupContext);
6246
+ const generatedId = React25.useId();
6154
6247
  const radioId = id || generatedId;
6155
6248
  const isChecked = radioGroup.value === value;
6156
6249
  const handleChange = (e) => {
@@ -6203,7 +6296,7 @@ var RadioGroupItem = React24.forwardRef(({ className, variant, size, indicator,
6203
6296
  ] });
6204
6297
  });
6205
6298
  RadioGroupItem.displayName = "RadioGroupItem";
6206
- var RadioLabel = React24.forwardRef(
6299
+ var RadioLabel = React25.forwardRef(
6207
6300
  ({ className, htmlFor, children, disabled = false, ...props }, ref) => {
6208
6301
  return /* @__PURE__ */ jsx(
6209
6302
  "label",
@@ -6222,13 +6315,13 @@ var RadioLabel = React24.forwardRef(
6222
6315
  }
6223
6316
  );
6224
6317
  RadioLabel.displayName = "RadioLabel";
6225
- var RadioItemWithLabel = React24.forwardRef(({
6318
+ var RadioItemWithLabel = React25.forwardRef(({
6226
6319
  id,
6227
6320
  label,
6228
6321
  labelClassName,
6229
6322
  ...radioProps
6230
6323
  }, ref) => {
6231
- const generatedId = React24.useId();
6324
+ const generatedId = React25.useId();
6232
6325
  const radioId = id || generatedId;
6233
6326
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
6234
6327
  /* @__PURE__ */ jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
@@ -6305,7 +6398,7 @@ function RichTextEditor({
6305
6398
  )
6306
6399
  ] });
6307
6400
  }
6308
- var ScrollArea = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6401
+ var ScrollArea = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6309
6402
  ScrollAreaPrimitive.Root,
6310
6403
  {
6311
6404
  ref,
@@ -6319,7 +6412,7 @@ var ScrollArea = React24.forwardRef(({ className, children, ...props }, ref) =>
6319
6412
  }
6320
6413
  ));
6321
6414
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
6322
- var ScrollBar = React24.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6415
+ var ScrollBar = React25.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6323
6416
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6324
6417
  {
6325
6418
  ref,
@@ -6373,7 +6466,7 @@ var defaultTransition = {
6373
6466
  ease: [0.25, 0.46, 0.45, 0.94]
6374
6467
  // Custom cubic-bezier for smooth motion
6375
6468
  };
6376
- var ScrollReveal = React24.forwardRef(
6469
+ var ScrollReveal = React25.forwardRef(
6377
6470
  ({
6378
6471
  children,
6379
6472
  direction = "up",
@@ -6394,16 +6487,17 @@ var ScrollReveal = React24.forwardRef(
6394
6487
  viewport
6395
6488
  }, ref) => {
6396
6489
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6397
- const animationVariants = React24.useMemo(() => {
6398
- if (variants) return variants;
6490
+ const animationVariants = React25.useMemo(() => {
6491
+ if (variants)
6492
+ return variants;
6399
6493
  return createDefaultVariants(direction, distance);
6400
6494
  }, [direction, distance, variants]);
6401
- const transition = React24.useMemo(() => ({
6495
+ const transition = React25.useMemo(() => ({
6402
6496
  ...defaultTransition,
6403
6497
  duration,
6404
6498
  delay: delay + stagger
6405
6499
  }), [duration, delay, stagger]);
6406
- const viewportConfig = React24.useMemo(() => ({
6500
+ const viewportConfig = React25.useMemo(() => ({
6407
6501
  once: shouldTriggerOnce,
6408
6502
  amount: threshold,
6409
6503
  ...viewport
@@ -6438,7 +6532,7 @@ var ScrollReveal = React24.forwardRef(
6438
6532
  }
6439
6533
  );
6440
6534
  ScrollReveal.displayName = "ScrollReveal";
6441
- var ScrollRevealContainer = React24.forwardRef(
6535
+ var ScrollRevealContainer = React25.forwardRef(
6442
6536
  ({
6443
6537
  children,
6444
6538
  stagger = 0.1,
@@ -6451,7 +6545,7 @@ var ScrollRevealContainer = React24.forwardRef(
6451
6545
  viewport
6452
6546
  }, ref) => {
6453
6547
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6454
- const viewportConfig = React24.useMemo(() => ({
6548
+ const viewportConfig = React25.useMemo(() => ({
6455
6549
  once: shouldTriggerOnce,
6456
6550
  amount: threshold,
6457
6551
  ...viewport
@@ -6482,7 +6576,7 @@ var ScrollRevealContainer = React24.forwardRef(
6482
6576
  }
6483
6577
  );
6484
6578
  ScrollRevealContainer.displayName = "ScrollRevealContainer";
6485
- var ScrollRevealItem = React24.forwardRef(
6579
+ var ScrollRevealItem = React25.forwardRef(
6486
6580
  ({
6487
6581
  children,
6488
6582
  direction = "up",
@@ -6493,11 +6587,12 @@ var ScrollRevealItem = React24.forwardRef(
6493
6587
  style,
6494
6588
  id
6495
6589
  }, ref) => {
6496
- const animationVariants = React24.useMemo(() => {
6497
- if (variants) return variants;
6590
+ const animationVariants = React25.useMemo(() => {
6591
+ if (variants)
6592
+ return variants;
6498
6593
  return createDefaultVariants(direction, distance);
6499
6594
  }, [direction, distance, variants]);
6500
- const transition = React24.useMemo(() => ({
6595
+ const transition = React25.useMemo(() => ({
6501
6596
  ...defaultTransition,
6502
6597
  duration
6503
6598
  }), [duration]);
@@ -6613,7 +6708,7 @@ var separatorVariants = cva(
6613
6708
  }
6614
6709
  }
6615
6710
  );
6616
- var Separator3 = React24.forwardRef(
6711
+ var Separator3 = React25.forwardRef(
6617
6712
  ({
6618
6713
  className,
6619
6714
  orientation = "horizontal",
@@ -6656,7 +6751,7 @@ var toggleVariants = cva(
6656
6751
  }
6657
6752
  }
6658
6753
  );
6659
- var Toggle = React24.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6754
+ var Toggle = React25.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6660
6755
  TogglePrimitive.Root,
6661
6756
  {
6662
6757
  ref,
@@ -6692,7 +6787,7 @@ var tooltipVariants = cva(
6692
6787
  );
6693
6788
  var Tooltip = TooltipPrimitive.Root;
6694
6789
  var TooltipTrigger = TooltipPrimitive.Trigger;
6695
- var TooltipArrow = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6790
+ var TooltipArrow = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6696
6791
  TooltipPrimitive.Arrow,
6697
6792
  {
6698
6793
  ref,
@@ -6701,7 +6796,7 @@ var TooltipArrow = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
6701
6796
  }
6702
6797
  ));
6703
6798
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
6704
- var TooltipContent = React24.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6799
+ var TooltipContent = React25.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6705
6800
  TooltipPrimitive.Content,
6706
6801
  {
6707
6802
  ref,
@@ -6715,7 +6810,7 @@ var TooltipContent = React24.forwardRef(({ className, variant, size, showArrow =
6715
6810
  }
6716
6811
  ));
6717
6812
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6718
- var SimpleTooltip = React24.forwardRef(
6813
+ var SimpleTooltip = React25.forwardRef(
6719
6814
  ({
6720
6815
  children,
6721
6816
  content,
@@ -6803,7 +6898,7 @@ var ColorPicker2 = ({ onColorSelect }) => {
6803
6898
  color
6804
6899
  )) });
6805
6900
  };
6806
- var SimpleEditor = React24__default.forwardRef(
6901
+ var SimpleEditor = React25__default.forwardRef(
6807
6902
  ({
6808
6903
  value = "",
6809
6904
  onChange,
@@ -6819,9 +6914,9 @@ var SimpleEditor = React24__default.forwardRef(
6819
6914
  const [content, setContent] = useState(value);
6820
6915
  const [isPreview, setIsPreview] = useState(false);
6821
6916
  const [sourceContent, setSourceContent] = useState(value);
6822
- const [selection, setSelection] = useState(null);
6823
- const editorRef = React24__default.useRef(null);
6824
- const sourceRef = React24__default.useRef(null);
6917
+ useState(null);
6918
+ const editorRef = React25__default.useRef(null);
6919
+ const sourceRef = React25__default.useRef(null);
6825
6920
  const [formatState, setFormatState] = useState({
6826
6921
  bold: false,
6827
6922
  italic: false,
@@ -6848,7 +6943,8 @@ var SimpleEditor = React24__default.forwardRef(
6848
6943
  return null;
6849
6944
  }, []);
6850
6945
  useCallback((range) => {
6851
- if (!range) return;
6946
+ if (!range)
6947
+ return;
6852
6948
  const selection2 = window.getSelection();
6853
6949
  if (selection2) {
6854
6950
  selection2.removeAllRanges();
@@ -6856,7 +6952,8 @@ var SimpleEditor = React24__default.forwardRef(
6856
6952
  }
6857
6953
  }, []);
6858
6954
  const executeCommand = useCallback((command, value2) => {
6859
- if (disabled) return;
6955
+ if (disabled)
6956
+ return;
6860
6957
  if (editorRef.current) {
6861
6958
  editorRef.current.focus();
6862
6959
  }
@@ -6953,12 +7050,12 @@ var SimpleEditor = React24__default.forwardRef(
6953
7050
  }
6954
7051
  }
6955
7052
  }, [executeCommand, updateContent]);
6956
- React24__default.useEffect(() => {
7053
+ React25__default.useEffect(() => {
6957
7054
  if (editorRef.current && content && content !== editorRef.current.innerHTML) {
6958
7055
  editorRef.current.innerHTML = content;
6959
7056
  }
6960
7057
  }, [content]);
6961
- React24__default.useEffect(() => {
7058
+ React25__default.useEffect(() => {
6962
7059
  if (value !== void 0 && value !== content) {
6963
7060
  setContent(value);
6964
7061
  setSourceContent(value);
@@ -7368,7 +7465,7 @@ var skeletonVariants = cva(
7368
7465
  }
7369
7466
  }
7370
7467
  );
7371
- var Skeleton = React24.forwardRef(
7468
+ var Skeleton = React25.forwardRef(
7372
7469
  ({
7373
7470
  className,
7374
7471
  variant,
@@ -7452,7 +7549,7 @@ var Skeleton = React24.forwardRef(
7452
7549
  }
7453
7550
  );
7454
7551
  Skeleton.displayName = "Skeleton";
7455
- var SkeletonText = React24.forwardRef(
7552
+ var SkeletonText = React25.forwardRef(
7456
7553
  ({
7457
7554
  className,
7458
7555
  lines = 3,
@@ -7493,7 +7590,7 @@ var SkeletonText = React24.forwardRef(
7493
7590
  }
7494
7591
  );
7495
7592
  SkeletonText.displayName = "SkeletonText";
7496
- var SkeletonAvatar = React24.forwardRef(
7593
+ var SkeletonAvatar = React25.forwardRef(
7497
7594
  ({
7498
7595
  className,
7499
7596
  size = "2.5rem",
@@ -7519,7 +7616,7 @@ var SkeletonAvatar = React24.forwardRef(
7519
7616
  }
7520
7617
  );
7521
7618
  SkeletonAvatar.displayName = "SkeletonAvatar";
7522
- var SkeletonCard = React24.forwardRef(
7619
+ var SkeletonCard = React25.forwardRef(
7523
7620
  ({
7524
7621
  className,
7525
7622
  showHeader = true,
@@ -7593,22 +7690,25 @@ var SkeletonCard = React24.forwardRef(
7593
7690
  }
7594
7691
  );
7595
7692
  SkeletonCard.displayName = "SkeletonCard";
7596
- var SwipeableCard = React24.forwardRef(
7693
+ var SwipeableCard = React25.forwardRef(
7597
7694
  ({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
7598
- const [startX, setStartX] = React24.useState(0);
7599
- const [currentX, setCurrentX] = React24.useState(0);
7600
- const [isSwiping, setIsSwiping] = React24.useState(false);
7695
+ const [startX, setStartX] = React25.useState(0);
7696
+ const [currentX, setCurrentX] = React25.useState(0);
7697
+ const [isSwiping, setIsSwiping] = React25.useState(false);
7601
7698
  const handleTouchStart = (e) => {
7602
- if (disabled) return;
7699
+ if (disabled)
7700
+ return;
7603
7701
  setStartX(e.touches[0].clientX);
7604
7702
  setIsSwiping(true);
7605
7703
  };
7606
7704
  const handleTouchMove = (e) => {
7607
- if (disabled || !isSwiping) return;
7705
+ if (disabled || !isSwiping)
7706
+ return;
7608
7707
  setCurrentX(e.touches[0].clientX);
7609
7708
  };
7610
7709
  const handleTouchEnd = () => {
7611
- if (disabled || !isSwiping) return;
7710
+ if (disabled || !isSwiping)
7711
+ return;
7612
7712
  const deltaX = currentX - startX;
7613
7713
  if (Math.abs(deltaX) > threshold) {
7614
7714
  if (deltaX > 0 && onSwipeRight) {
@@ -7689,7 +7789,7 @@ var switchThumbVariants = cva(
7689
7789
  }
7690
7790
  }
7691
7791
  );
7692
- var Switch = React24.forwardRef(({
7792
+ var Switch = React25.forwardRef(({
7693
7793
  className,
7694
7794
  size,
7695
7795
  variant,
@@ -7700,7 +7800,7 @@ var Switch = React24.forwardRef(({
7700
7800
  "aria-describedby": ariaDescribedBy,
7701
7801
  ...props
7702
7802
  }, ref) => {
7703
- const reactId = React24.useId();
7803
+ const reactId = React25.useId();
7704
7804
  const descriptionId = description ? `${reactId}-description` : void 0;
7705
7805
  const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
7706
7806
  return /* @__PURE__ */ jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
@@ -7728,7 +7828,7 @@ var Switch = React24.forwardRef(({
7728
7828
  ] });
7729
7829
  });
7730
7830
  Switch.displayName = SwitchPrimitives.Root.displayName;
7731
- var TagsInput = React24.forwardRef(
7831
+ var TagsInput = React25.forwardRef(
7732
7832
  ({
7733
7833
  value = [],
7734
7834
  onChange,
@@ -7741,14 +7841,15 @@ var TagsInput = React24.forwardRef(
7741
7841
  disabled,
7742
7842
  ...props
7743
7843
  }, ref) => {
7744
- const [inputValue, setInputValue] = React24.useState("");
7745
- const [error, setError] = React24.useState("");
7746
- const innerInputRef = React24.useRef(null);
7747
- React24.useImperativeHandle(ref, () => innerInputRef.current);
7748
- const tagButtonRefs = React24.useRef([]);
7749
- const errorId = React24.useId();
7844
+ const [inputValue, setInputValue] = React25.useState("");
7845
+ const [error, setError] = React25.useState("");
7846
+ const innerInputRef = React25.useRef(null);
7847
+ React25.useImperativeHandle(ref, () => innerInputRef.current);
7848
+ const tagButtonRefs = React25.useRef([]);
7849
+ const errorId = React25.useId();
7750
7850
  const focusTag = (index) => {
7751
- if (value.length === 0) return;
7851
+ if (value.length === 0)
7852
+ return;
7752
7853
  const clamped = Math.max(0, Math.min(value.length - 1, index));
7753
7854
  tagButtonRefs.current[clamped]?.focus();
7754
7855
  };
@@ -7771,8 +7872,10 @@ var TagsInput = React24.forwardRef(
7771
7872
  break;
7772
7873
  case "ArrowRight":
7773
7874
  e.preventDefault();
7774
- if (index >= value.length - 1) innerInputRef.current?.focus();
7775
- else focusTag(index + 1);
7875
+ if (index >= value.length - 1)
7876
+ innerInputRef.current?.focus();
7877
+ else
7878
+ focusTag(index + 1);
7776
7879
  break;
7777
7880
  case "Home":
7778
7881
  e.preventDefault();
@@ -7788,8 +7891,10 @@ var TagsInput = React24.forwardRef(
7788
7891
  const remaining = value.length - 1;
7789
7892
  removeTag(index);
7790
7893
  requestAnimationFrame(() => {
7791
- if (remaining > 0) focusTag(Math.min(index, remaining - 1));
7792
- else innerInputRef.current?.focus();
7894
+ if (remaining > 0)
7895
+ focusTag(Math.min(index, remaining - 1));
7896
+ else
7897
+ innerInputRef.current?.focus();
7793
7898
  });
7794
7899
  break;
7795
7900
  }
@@ -7797,7 +7902,8 @@ var TagsInput = React24.forwardRef(
7797
7902
  };
7798
7903
  const addTag = () => {
7799
7904
  const tag = inputValue.trim();
7800
- if (!tag) return;
7905
+ if (!tag)
7906
+ return;
7801
7907
  if (!allowDuplicates && value.includes(tag)) {
7802
7908
  setError("This tag already exists");
7803
7909
  setTimeout(() => setError(""), 2e3);
@@ -7813,7 +7919,8 @@ var TagsInput = React24.forwardRef(
7813
7919
  setError("");
7814
7920
  };
7815
7921
  const removeTag = (index) => {
7816
- if (disabled) return;
7922
+ if (disabled)
7923
+ return;
7817
7924
  onChange(value.filter((_, i) => i !== index));
7818
7925
  };
7819
7926
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
@@ -7880,7 +7987,7 @@ TagsInput.displayName = "TagsInput";
7880
7987
  var textareaVariants = cva(
7881
7988
  [
7882
7989
  "flex w-full rounded-md px-3 py-2 text-sm transition-all duration-200",
7883
- "text-foreground placeholder:text-muted-foreground dark:placeholder:text-gray-500",
7990
+ "text-foreground placeholder:text-muted-foreground",
7884
7991
  "disabled:cursor-not-allowed disabled:opacity-50",
7885
7992
  "focus-visible:outline-none dark:text-gray-200",
7886
7993
  "resize-none"
@@ -7889,10 +7996,10 @@ var textareaVariants = cva(
7889
7996
  {
7890
7997
  variants: {
7891
7998
  variant: {
7892
- default: "border border-gray-300 dark:border-gray-700 bg-background dark:bg-gray-800/80 hover:border-gray-400 dark:hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80 dark:shadow-inner dark:shadow-gray-950/10",
7893
- outline: "border-2 border-gray-300 dark:border-gray-700 bg-transparent hover:border-gray-400 dark:hover:border-gray-600 focus-visible:border-primary dark:focus-visible:border-primary/80",
7999
+ default: "border border-input bg-background dark:bg-gray-800/80 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80 dark:shadow-inner dark:shadow-gray-950/10",
8000
+ outline: "border-2 border-input bg-transparent focus-visible:border-primary dark:focus-visible:border-primary/80",
7894
8001
  ghost: "border-none bg-transparent hover:bg-gray-100/50 dark:hover:bg-gray-800/30 focus-visible:bg-transparent",
7895
- underline: "border-t-0 border-l-0 border-r-0 border-b-2 border-gray-300 dark:border-gray-600 rounded-none px-0 hover:border-gray-400 dark:hover:border-gray-500 focus-visible:ring-0 focus-visible:border-primary dark:focus-visible:border-primary/80 bg-transparent dark:bg-transparent"
8002
+ underline: "border-t-0 border-l-0 border-r-0 border-b-2 border-input rounded-none px-0 focus-visible:ring-0 focus-visible:border-primary dark:focus-visible:border-primary/80 bg-transparent dark:bg-transparent"
7896
8003
  },
7897
8004
  size: {
7898
8005
  sm: "min-h-[60px] text-xs",
@@ -7916,7 +8023,7 @@ var textareaVariants = cva(
7916
8023
  }
7917
8024
  }
7918
8025
  );
7919
- var Textarea = React24.forwardRef(
8026
+ var Textarea = React25.forwardRef(
7920
8027
  ({
7921
8028
  className,
7922
8029
  wrapperClassName,
@@ -7936,14 +8043,15 @@ var Textarea = React24.forwardRef(
7936
8043
  onChange,
7937
8044
  ...props
7938
8045
  }, ref) => {
7939
- const reactId = React24.useId();
8046
+ const reactId = React25.useId();
7940
8047
  const fieldId = props.id || reactId;
7941
- const textareaRef = React24.useRef(null);
7942
- const [internalValue, setInternalValue] = React24.useState(value || defaultValue || "");
7943
- React24.useImperativeHandle(ref, () => textareaRef.current);
7944
- const adjustHeight = React24.useCallback(() => {
8048
+ const textareaRef = React25.useRef(null);
8049
+ const [internalValue, setInternalValue] = React25.useState(value || defaultValue || "");
8050
+ React25.useImperativeHandle(ref, () => textareaRef.current);
8051
+ const adjustHeight = React25.useCallback(() => {
7945
8052
  const textarea = textareaRef.current;
7946
- if (!textarea || !autoResize) return;
8053
+ if (!textarea || !autoResize)
8054
+ return;
7947
8055
  textarea.style.height = "auto";
7948
8056
  const newHeight = textarea.scrollHeight;
7949
8057
  if (maxHeight && newHeight > maxHeight) {
@@ -7954,10 +8062,10 @@ var Textarea = React24.forwardRef(
7954
8062
  textarea.style.overflowY = "hidden";
7955
8063
  }
7956
8064
  }, [autoResize, maxHeight]);
7957
- React24.useEffect(() => {
8065
+ React25.useEffect(() => {
7958
8066
  adjustHeight();
7959
8067
  }, [internalValue, adjustHeight]);
7960
- React24.useEffect(() => {
8068
+ React25.useEffect(() => {
7961
8069
  if (value !== void 0) {
7962
8070
  setInternalValue(value);
7963
8071
  }
@@ -8023,7 +8131,7 @@ var Textarea = React24.forwardRef(
8023
8131
  );
8024
8132
  Textarea.displayName = "Textarea";
8025
8133
  var ToastProvider = ToastPrimitives.Provider;
8026
- var ToastViewport = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8134
+ var ToastViewport = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8027
8135
  ToastPrimitives.Viewport,
8028
8136
  {
8029
8137
  ref,
@@ -8052,7 +8160,7 @@ var toastVariants = cva(
8052
8160
  }
8053
8161
  }
8054
8162
  );
8055
- var Toast = React24.forwardRef(({ className, variant, ...props }, ref) => {
8163
+ var Toast = React25.forwardRef(({ className, variant, ...props }, ref) => {
8056
8164
  return /* @__PURE__ */ jsx(
8057
8165
  ToastPrimitives.Root,
8058
8166
  {
@@ -8063,7 +8171,7 @@ var Toast = React24.forwardRef(({ className, variant, ...props }, ref) => {
8063
8171
  );
8064
8172
  });
8065
8173
  Toast.displayName = ToastPrimitives.Root.displayName;
8066
- var ToastAction = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8174
+ var ToastAction = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8067
8175
  ToastPrimitives.Action,
8068
8176
  {
8069
8177
  ref,
@@ -8075,7 +8183,7 @@ var ToastAction = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
8075
8183
  }
8076
8184
  ));
8077
8185
  ToastAction.displayName = ToastPrimitives.Action.displayName;
8078
- var ToastClose = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
8186
+ var ToastClose = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
8079
8187
  ToastPrimitives.Close,
8080
8188
  {
8081
8189
  ref,
@@ -8092,7 +8200,7 @@ var ToastClose = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
8092
8200
  }
8093
8201
  ));
8094
8202
  ToastClose.displayName = ToastPrimitives.Close.displayName;
8095
- var ToastTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8203
+ var ToastTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8096
8204
  ToastPrimitives.Title,
8097
8205
  {
8098
8206
  ref,
@@ -8101,7 +8209,7 @@ var ToastTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
8101
8209
  }
8102
8210
  ));
8103
8211
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
8104
- var ToastDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8212
+ var ToastDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8105
8213
  ToastPrimitives.Description,
8106
8214
  {
8107
8215
  ref,
@@ -8197,7 +8305,8 @@ function toast({ ...props }) {
8197
8305
  id,
8198
8306
  open: true,
8199
8307
  onOpenChange: (open) => {
8200
- if (!open) dismiss();
8308
+ if (!open)
8309
+ dismiss();
8201
8310
  }
8202
8311
  }
8203
8312
  });
@@ -8208,8 +8317,8 @@ function toast({ ...props }) {
8208
8317
  };
8209
8318
  }
8210
8319
  function useToast() {
8211
- const [state, setState] = React24.useState(memoryState);
8212
- React24.useEffect(() => {
8320
+ const [state, setState] = React25.useState(memoryState);
8321
+ React25.useEffect(() => {
8213
8322
  listeners.push(setState);
8214
8323
  return () => {
8215
8324
  const index = listeners.indexOf(setState);
@@ -8262,7 +8371,7 @@ var kbdVariants = cva(
8262
8371
  }
8263
8372
  }
8264
8373
  );
8265
- var Kbd = React24.forwardRef(
8374
+ var Kbd = React25.forwardRef(
8266
8375
  ({ className, size, children, ...props }, ref) => {
8267
8376
  return /* @__PURE__ */ jsx(
8268
8377
  "kbd",
@@ -8299,7 +8408,7 @@ var iconSizeMap = {
8299
8408
  md: "h-5 w-5",
8300
8409
  lg: "h-6 w-6"
8301
8410
  };
8302
- var Rating = React24.forwardRef(
8411
+ var Rating = React25.forwardRef(
8303
8412
  ({
8304
8413
  className,
8305
8414
  value,
@@ -8317,21 +8426,24 @@ var Rating = React24.forwardRef(
8317
8426
  const iconSizeClass = iconSizeMap[resolvedSize];
8318
8427
  const step = precision === "half" ? 0.5 : 1;
8319
8428
  const isControlled = value !== void 0;
8320
- const [internalValue, setInternalValue] = React24.useState(defaultValue ?? 0);
8429
+ const [internalValue, setInternalValue] = React25.useState(defaultValue ?? 0);
8321
8430
  const currentValue = isControlled ? value ?? 0 : internalValue;
8322
- const [hoverValue, setHoverValue] = React24.useState(null);
8431
+ const [hoverValue, setHoverValue] = React25.useState(null);
8323
8432
  const displayValue = hoverValue !== null ? hoverValue : currentValue;
8324
- const commit = React24.useCallback(
8433
+ const commit = React25.useCallback(
8325
8434
  (next) => {
8326
- if (readOnly) return;
8327
- if (!isControlled) setInternalValue(next);
8435
+ if (readOnly)
8436
+ return;
8437
+ if (!isControlled)
8438
+ setInternalValue(next);
8328
8439
  onValueChange?.(next);
8329
8440
  },
8330
8441
  [readOnly, isControlled, onValueChange]
8331
8442
  );
8332
- const handleKeyDown = React24.useCallback(
8443
+ const handleKeyDown = React25.useCallback(
8333
8444
  (event) => {
8334
- if (readOnly) return;
8445
+ if (readOnly)
8446
+ return;
8335
8447
  let next = null;
8336
8448
  switch (event.key) {
8337
8449
  case "ArrowRight":
@@ -8357,9 +8469,9 @@ var Rating = React24.forwardRef(
8357
8469
  [readOnly, max, currentValue, step, commit]
8358
8470
  );
8359
8471
  const renderIcon = (filled) => {
8360
- if (React24.isValidElement(icon)) {
8472
+ if (React25.isValidElement(icon)) {
8361
8473
  const element = icon;
8362
- return React24.cloneElement(element, {
8474
+ return React25.cloneElement(element, {
8363
8475
  className: cn(
8364
8476
  iconSizeClass,
8365
8477
  "shrink-0",
@@ -8493,7 +8605,7 @@ var dotSizeMap = {
8493
8605
  lg: "h-2 w-2",
8494
8606
  xl: "h-2.5 w-2.5"
8495
8607
  };
8496
- var Spinner = React24.forwardRef(
8608
+ var Spinner = React25.forwardRef(
8497
8609
  ({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
8498
8610
  return /* @__PURE__ */ jsxs(
8499
8611
  "div",
@@ -8572,15 +8684,15 @@ var buttonGroupVariants = cva(
8572
8684
  }
8573
8685
  }
8574
8686
  );
8575
- var ButtonGroup = React24.forwardRef(
8687
+ var ButtonGroup = React25.forwardRef(
8576
8688
  ({ className, orientation, attached, size, variant, children, ...props }, ref) => {
8577
8689
  const shouldPropagate = size !== void 0 || variant !== void 0;
8578
- const enhancedChildren = shouldPropagate ? React24.Children.map(children, (child) => {
8579
- if (!React24.isValidElement(child) || child.type !== Button) {
8690
+ const enhancedChildren = shouldPropagate ? React25.Children.map(children, (child) => {
8691
+ if (!React25.isValidElement(child) || child.type !== Button) {
8580
8692
  return child;
8581
8693
  }
8582
8694
  const childProps = child.props;
8583
- return React24.cloneElement(child, {
8695
+ return React25.cloneElement(child, {
8584
8696
  size: childProps.size ?? size,
8585
8697
  variant: childProps.variant ?? variant
8586
8698
  });
@@ -8598,11 +8710,11 @@ var ButtonGroup = React24.forwardRef(
8598
8710
  }
8599
8711
  );
8600
8712
  ButtonGroup.displayName = "ButtonGroup";
8601
- var ToggleGroupContext = React24.createContext({
8713
+ var ToggleGroupContext = React25.createContext({
8602
8714
  size: "default",
8603
8715
  variant: "default"
8604
8716
  });
8605
- var ToggleGroup = React24.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8717
+ var ToggleGroup = React25.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8606
8718
  ToggleGroupPrimitive.Root,
8607
8719
  {
8608
8720
  ref,
@@ -8619,8 +8731,8 @@ var ToggleGroup = React24.forwardRef(({ className, variant, size, children, ...p
8619
8731
  }
8620
8732
  ));
8621
8733
  ToggleGroup.displayName = "ToggleGroup";
8622
- var ToggleGroupItem = React24.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8623
- const context = React24.useContext(ToggleGroupContext);
8734
+ var ToggleGroupItem = React25.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8735
+ const context = React25.useContext(ToggleGroupContext);
8624
8736
  return /* @__PURE__ */ jsx(
8625
8737
  ToggleGroupPrimitive.Item,
8626
8738
  {
@@ -8640,5 +8752,5 @@ var ToggleGroupItem = React24.forwardRef(({ className, children, variant, size,
8640
8752
  ToggleGroupItem.displayName = "ToggleGroupItem";
8641
8753
 
8642
8754
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, Card, CardCVCInput, CardContent, CardDescription, CardExpiryInput, CardFooter, CardHeader, CardNumberInput, CardTitle, CardZipInput, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogForm, DialogHeader, DialogTitle, DialogTrigger, DraggableList, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileUpload, FreeBadge, GestureDrawer, GitHubStarButton, GitHubStars, GradientPicker, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, Label, LockedComponent, MonthPicker, MoonLogo, MoonLogoAnimated, MoonLogoIcon, Accordion as MoonUIAccordion, AccordionContent as MoonUIAccordionContent, AccordionItem as MoonUIAccordionItem, AccordionTrigger as MoonUIAccordionTrigger, Alert as MoonUIAlert, AlertDescription as MoonUIAlertDescription, AlertTitle as MoonUIAlertTitle, AspectRatio as MoonUIAspectRatio, Avatar as MoonUIAvatar, AvatarFallback as MoonUIAvatarFallback, AvatarGroup as MoonUIAvatarGroup, AvatarImage as MoonUIAvatarImage, Badge as MoonUIBadge, Breadcrumb as MoonUIBreadcrumb, BreadcrumbEllipsis as MoonUIBreadcrumbEllipsis, BreadcrumbItem as MoonUIBreadcrumbItem, BreadcrumbLink as MoonUIBreadcrumbLink, BreadcrumbList as MoonUIBreadcrumbList, BreadcrumbPage as MoonUIBreadcrumbPage, BreadcrumbSeparator as MoonUIBreadcrumbSeparator, Button as MoonUIButton, ButtonGroup as MoonUIButtonGroup, Calendar as MoonUICalendar, Card as MoonUICard, CardCVCInput as MoonUICardCVCInput, CardContent as MoonUICardContent, CardDescription as MoonUICardDescription, CardExpiryInput as MoonUICardExpiryInput, CardFooter as MoonUICardFooter, CardHeader as MoonUICardHeader, CardNumberInput as MoonUICardNumberInput, CardTitle as MoonUICardTitle, CardZipInput as MoonUICardZipInput, Carousel as MoonUICarousel, CarouselContent as MoonUICarouselContent, CarouselItem as MoonUICarouselItem, CarouselNext as MoonUICarouselNext, CarouselPrevious as MoonUICarouselPrevious, Checkbox as MoonUICheckbox, CheckboxGroup as MoonUICheckboxGroup, CheckboxLabel as MoonUICheckboxLabel, CheckboxWithLabel as MoonUICheckboxWithLabel, Collapsible as MoonUICollapsible, CollapsibleContent as MoonUICollapsibleContent, CollapsibleTrigger as MoonUICollapsibleTrigger, ColorPicker as MoonUIColorPicker, Command as MoonUICommand, CommandDialog as MoonUICommandDialog, CommandEmpty as MoonUICommandEmpty, CommandGroup as MoonUICommandGroup, CommandInput as MoonUICommandInput, CommandItem as MoonUICommandItem, CommandList as MoonUICommandList, CommandSeparator as MoonUICommandSeparator, CommandShortcut as MoonUICommandShortcut, DataTableBasic as MoonUIDataTableBasic, DatePicker as MoonUIDatePicker, DateRangePicker as MoonUIDateRangePicker, DateTimePicker as MoonUIDateTimePicker, Dialog as MoonUIDialog, DialogClose as MoonUIDialogClose, DialogContent as MoonUIDialogContent, DialogDescription as MoonUIDialogDescription, DialogFooter as MoonUIDialogFooter, DialogHeader as MoonUIDialogHeader, DialogTitle as MoonUIDialogTitle, DialogTrigger as MoonUIDialogTrigger, DraggableList as MoonUIDraggableList, DropdownMenu as MoonUIDropdownMenu, DropdownMenuCheckboxItem as MoonUIDropdownMenuCheckboxItem, DropdownMenuContent as MoonUIDropdownMenuContent, DropdownMenuGroup as MoonUIDropdownMenuGroup, DropdownMenuItem as MoonUIDropdownMenuItem, DropdownMenuLabel as MoonUIDropdownMenuLabel, DropdownMenuPortal as MoonUIDropdownMenuPortal, DropdownMenuRadioGroup as MoonUIDropdownMenuRadioGroup, DropdownMenuRadioItem as MoonUIDropdownMenuRadioItem, DropdownMenuSeparator as MoonUIDropdownMenuSeparator, DropdownMenuShortcut as MoonUIDropdownMenuShortcut, DropdownMenuSub as MoonUIDropdownMenuSub, DropdownMenuSubContent as MoonUIDropdownMenuSubContent, DropdownMenuSubTrigger as MoonUIDropdownMenuSubTrigger, DropdownMenuTrigger as MoonUIDropdownMenuTrigger, FileUpload as MoonUIFileUpload, FreeBadge as MoonUIFreeBadge, GestureDrawer as MoonUIGestureDrawer, GitHubStars as MoonUIGitHubStars, GradientPicker as MoonUIGradientPicker, Input as MoonUIInput, InputOTP as MoonUIInputOTP, InputOTPGroup as MoonUIInputOTPGroup, InputOTPSeparator as MoonUIInputOTPSeparator, InputOTPSlot as MoonUIInputOTPSlot, Kbd as MoonUIKbd, Label as MoonUILabel, LockedComponent as MoonUILockedComponent, MonthPicker as MoonUIMonthPicker, MoonLogo as MoonUIMoonLogo, Pagination as MoonUIPagination, PaginationContent as MoonUIPaginationContent, PaginationEllipsis as MoonUIPaginationEllipsis, PaginationItem as MoonUIPaginationItem, PaginationLink as MoonUIPaginationLink, PaginationNext as MoonUIPaginationNext, PaginationPrevious as MoonUIPaginationPrevious, PhoneInput as MoonUIPhoneInput, Popover as MoonUIPopover, PopoverContent as MoonUIPopoverContent, PopoverTrigger as MoonUIPopoverTrigger, ProBadge as MoonUIProBadge, ProComponentWrapper as MoonUIProComponentWrapper, Progress as MoonUIProgress, RadioGroup2 as MoonUIRadioGroup, RadioGroupItem as MoonUIRadioGroupItem, RadioItemWithLabel as MoonUIRadioItemWithLabel, RadioLabel as MoonUIRadioLabel, Rating as MoonUIRating, RichTextEditor as MoonUIRichTextEditor, ScrollArea as MoonUIScrollArea, ScrollBar as MoonUIScrollBar, ScrollReveal as MoonUIScrollReveal, ScrollRevealContainer as MoonUIScrollRevealContainer, ScrollRevealItem as MoonUIScrollRevealItem, Select as MoonUISelect, SelectContent as MoonUISelectContent, SelectGroup as MoonUISelectGroup, SelectItem as MoonUISelectItem, SelectLabel as MoonUISelectLabel, SelectScrollDownButton as MoonUISelectScrollDownButton, SelectScrollUpButton as MoonUISelectScrollUpButton, SelectSeparator as MoonUISelectSeparator, SelectTrigger as MoonUISelectTrigger, SelectValue as MoonUISelectValue, Separator3 as MoonUISeparator, SimpleColorPicker as MoonUISimpleColorPicker, SimpleEditor as MoonUISimpleEditor, Skeleton as MoonUISkeleton, SkeletonAvatar as MoonUISkeletonAvatar, SkeletonCard as MoonUISkeletonCard, SkeletonText as MoonUISkeletonText, Slider as MoonUISlider, Spinner as MoonUISpinner, SwipeableCard as MoonUISwipeableCard, Switch as MoonUISwitch, Table as MoonUITable, TableBody as MoonUITableBody, TableCaption as MoonUITableCaption, TableCell as MoonUITableCell, TableFooter as MoonUITableFooter, TableHead as MoonUITableHead, TableHeader as MoonUITableHeader, TableRow as MoonUITableRow, Tabs as MoonUITabs, TabsContent as MoonUITabsContent, TabsList as MoonUITabsList, TabsTrigger as MoonUITabsTrigger, TagsInput as MoonUITagsInput, Textarea as MoonUITextarea, Toast as MoonUIToast, ToastAction as MoonUIToastAction, ToastClose as MoonUIToastClose, ToastDescription as MoonUIToastDescription, ToastProvider as MoonUIToastProvider, ToastTitle as MoonUIToastTitle, ToastViewport as MoonUIToastViewport, Toaster as MoonUIToaster, Toggle as MoonUIToggle, ToggleGroup as MoonUIToggleGroup, ToggleGroupItem as MoonUIToggleGroupItem, Tooltip as MoonUITooltip, TooltipContent as MoonUITooltipContent, TooltipProvider as MoonUITooltipProvider, TooltipTrigger as MoonUITooltipTrigger, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PhoneInput, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverSeparator, PopoverTrigger, ProBadge, ProComponentWrapper, Progress, RadioGroup2 as RadioGroup, RadioGroupItem, RadioItemWithLabel, RadioLabel, Rating, RichTextEditor, ScrollArea, ScrollBar, ScrollReveal, ScrollRevealContainer, ScrollRevealItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, SimpleColorPicker, SimpleEditor, SimpleTooltip, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonText, Slider, Spinner, SwipeableCard, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagsInput, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, aspectRatioVariants, badgeVariants, buttonGroupVariants, buttonVariants, carouselContentVariants, carouselItemVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, inputOTPSlotVariants, kbdVariants, badgeVariants as moonUIBadgeVariants, buttonGroupVariants as moonUIButtonGroupVariants, buttonVariants as moonUIButtonVariants, carouselContentVariants as moonUICarouselContentVariants, carouselItemVariants as moonUICarouselItemVariants, createSortableHeader as moonUICreateSortableHeader, inputOTPSlotVariants as moonUIInputOTPSlotVariants, kbdVariants as moonUIKbdVariants, ratingVariants as moonUIRatingVariants, skeletonVariants as moonUISkeletonVariants, spinnerVariants as moonUISpinnerVariants, toggleVariants as moonUIToggleVariants, popoverContentVariants, progressVariants, ratingVariants, separatorVariants, skeletonVariants, spinnerVariants, switchVariants, toast, toggleVariants, tooltipVariants, useCarousel, useToast };
8643
- //# sourceMappingURL=index.mjs.map
8755
+ //# sourceMappingURL=out.js.map
8644
8756
  //# sourceMappingURL=index.mjs.map