@moontra/moonui 6.2.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,7 +1,7 @@
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
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';
@@ -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
  {
@@ -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,
@@ -1054,7 +1069,7 @@ var cardVariants = cva(
1054
1069
  }
1055
1070
  }
1056
1071
  );
1057
- var Card = React24.forwardRef(
1072
+ var Card = React25.forwardRef(
1058
1073
  ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
1059
1074
  if (interactive && microInteraction !== "none") {
1060
1075
  const interactionProps = {
@@ -1082,7 +1097,7 @@ var Card = React24.forwardRef(
1082
1097
  }
1083
1098
  );
1084
1099
  Card.displayName = "Card";
1085
- var CardHeader = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1100
+ var CardHeader = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1086
1101
  "div",
1087
1102
  {
1088
1103
  ref,
@@ -1091,7 +1106,7 @@ var CardHeader = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
1091
1106
  }
1092
1107
  ));
1093
1108
  CardHeader.displayName = "CardHeader";
1094
- var CardTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1109
+ var CardTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1095
1110
  "h3",
1096
1111
  {
1097
1112
  ref,
@@ -1100,7 +1115,7 @@ var CardTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1100
1115
  }
1101
1116
  ));
1102
1117
  CardTitle.displayName = "CardTitle";
1103
- var CardDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1118
+ var CardDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1104
1119
  "p",
1105
1120
  {
1106
1121
  ref,
@@ -1109,9 +1124,9 @@ var CardDescription = React24.forwardRef(({ className, ...props }, ref) => /* @_
1109
1124
  }
1110
1125
  ));
1111
1126
  CardDescription.displayName = "CardDescription";
1112
- 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 }));
1113
1128
  CardContent.displayName = "CardContent";
1114
- var CardFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1129
+ var CardFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1115
1130
  "div",
1116
1131
  {
1117
1132
  ref,
@@ -1132,7 +1147,7 @@ function Calendar({
1132
1147
  defaultMonth,
1133
1148
  ...props
1134
1149
  }) {
1135
- const [currentMonth, setCurrentMonth] = React24.useState(
1150
+ const [currentMonth, setCurrentMonth] = React25.useState(
1136
1151
  defaultMonth || selected && selected || /* @__PURE__ */ new Date()
1137
1152
  );
1138
1153
  const weekDays = [
@@ -1346,9 +1361,9 @@ var formatCardNumber = (value, cardType) => {
1346
1361
  }
1347
1362
  return formatted;
1348
1363
  };
1349
- var CardNumberInput = React24.forwardRef(
1364
+ var CardNumberInput = React25.forwardRef(
1350
1365
  ({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
1351
- const [cardType, setCardType] = React24.useState("unknown");
1366
+ const [cardType, setCardType] = React25.useState("unknown");
1352
1367
  const handleChange = (e) => {
1353
1368
  const rawValue = e.target.value.replace(/\D/g, "");
1354
1369
  const detectedType = getCardType(rawValue);
@@ -1379,7 +1394,7 @@ var CardNumberInput = React24.forwardRef(
1379
1394
  }
1380
1395
  );
1381
1396
  CardNumberInput.displayName = "CardNumberInput";
1382
- var CardExpiryInput = React24.forwardRef(
1397
+ var CardExpiryInput = React25.forwardRef(
1383
1398
  ({ className, value = "", onChange, size, ...props }, ref) => {
1384
1399
  const handleChange = (e) => {
1385
1400
  let rawValue = e.target.value.replace(/\D/g, "");
@@ -1417,7 +1432,7 @@ var CardExpiryInput = React24.forwardRef(
1417
1432
  }
1418
1433
  );
1419
1434
  CardExpiryInput.displayName = "CardExpiryInput";
1420
- var CardCVCInput = React24.forwardRef(
1435
+ var CardCVCInput = React25.forwardRef(
1421
1436
  ({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
1422
1437
  const maxLength = cardType === "amex" ? 4 : 3;
1423
1438
  const handleChange = (e) => {
@@ -1442,7 +1457,7 @@ var CardCVCInput = React24.forwardRef(
1442
1457
  }
1443
1458
  );
1444
1459
  CardCVCInput.displayName = "CardCVCInput";
1445
- var CardZipInput = React24.forwardRef(
1460
+ var CardZipInput = React25.forwardRef(
1446
1461
  ({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
1447
1462
  const handleChange = (e) => {
1448
1463
  let rawValue = e.target.value;
@@ -1493,15 +1508,15 @@ var CardZipInput = React24.forwardRef(
1493
1508
  }
1494
1509
  );
1495
1510
  CardZipInput.displayName = "CardZipInput";
1496
- var CarouselContext = React24.createContext(null);
1511
+ var CarouselContext = React25.createContext(null);
1497
1512
  function useCarousel() {
1498
- const context = React24.useContext(CarouselContext);
1513
+ const context = React25.useContext(CarouselContext);
1499
1514
  if (!context) {
1500
1515
  throw new Error("useCarousel must be used within a <Carousel />");
1501
1516
  }
1502
1517
  return context;
1503
1518
  }
1504
- var Carousel = React24.forwardRef(
1519
+ var Carousel = React25.forwardRef(
1505
1520
  ({
1506
1521
  orientation = "horizontal",
1507
1522
  opts,
@@ -1519,21 +1534,21 @@ var Carousel = React24.forwardRef(
1519
1534
  },
1520
1535
  plugins
1521
1536
  );
1522
- const [canScrollPrev, setCanScrollPrev] = React24.useState(false);
1523
- const [canScrollNext, setCanScrollNext] = React24.useState(false);
1524
- const onSelect = React24.useCallback((emblaApi) => {
1537
+ const [canScrollPrev, setCanScrollPrev] = React25.useState(false);
1538
+ const [canScrollNext, setCanScrollNext] = React25.useState(false);
1539
+ const onSelect = React25.useCallback((emblaApi) => {
1525
1540
  if (!emblaApi)
1526
1541
  return;
1527
1542
  setCanScrollPrev(emblaApi.canScrollPrev());
1528
1543
  setCanScrollNext(emblaApi.canScrollNext());
1529
1544
  }, []);
1530
- const scrollPrev = React24.useCallback(() => {
1545
+ const scrollPrev = React25.useCallback(() => {
1531
1546
  api?.scrollPrev();
1532
1547
  }, [api]);
1533
- const scrollNext = React24.useCallback(() => {
1548
+ const scrollNext = React25.useCallback(() => {
1534
1549
  api?.scrollNext();
1535
1550
  }, [api]);
1536
- const handleKeyDown = React24.useCallback(
1551
+ const handleKeyDown = React25.useCallback(
1537
1552
  (event) => {
1538
1553
  const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
1539
1554
  const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
@@ -1547,12 +1562,12 @@ var Carousel = React24.forwardRef(
1547
1562
  },
1548
1563
  [resolvedOrientation, scrollPrev, scrollNext]
1549
1564
  );
1550
- React24.useEffect(() => {
1565
+ React25.useEffect(() => {
1551
1566
  if (!api || !setApi)
1552
1567
  return;
1553
1568
  setApi(api);
1554
1569
  }, [api, setApi]);
1555
- React24.useEffect(() => {
1570
+ React25.useEffect(() => {
1556
1571
  if (!api)
1557
1572
  return;
1558
1573
  onSelect(api);
@@ -1604,7 +1619,7 @@ var carouselContentVariants = cva("flex", {
1604
1619
  orientation: "horizontal"
1605
1620
  }
1606
1621
  });
1607
- var CarouselContent = React24.forwardRef(
1622
+ var CarouselContent = React25.forwardRef(
1608
1623
  ({ className, ...props }, ref) => {
1609
1624
  const { carouselRef, orientation } = useCarousel();
1610
1625
  return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
@@ -1629,7 +1644,7 @@ var carouselItemVariants = cva("min-w-0 shrink-0 grow-0 basis-full", {
1629
1644
  orientation: "horizontal"
1630
1645
  }
1631
1646
  });
1632
- var CarouselItem = React24.forwardRef(
1647
+ var CarouselItem = React25.forwardRef(
1633
1648
  ({ className, ...props }, ref) => {
1634
1649
  const { orientation } = useCarousel();
1635
1650
  return /* @__PURE__ */ jsx(
@@ -1645,7 +1660,7 @@ var CarouselItem = React24.forwardRef(
1645
1660
  }
1646
1661
  );
1647
1662
  CarouselItem.displayName = "CarouselItem";
1648
- 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) => {
1649
1664
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
1650
1665
  return /* @__PURE__ */ jsxs(
1651
1666
  Button,
@@ -1670,7 +1685,7 @@ var CarouselPrevious = React24.forwardRef(({ className, variant = "outline", siz
1670
1685
  );
1671
1686
  });
1672
1687
  CarouselPrevious.displayName = "CarouselPrevious";
1673
- 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) => {
1674
1689
  const { orientation, scrollNext, canScrollNext } = useCarousel();
1675
1690
  return /* @__PURE__ */ jsxs(
1676
1691
  Button,
@@ -1733,7 +1748,7 @@ var checkboxVariants = cva(
1733
1748
  }
1734
1749
  }
1735
1750
  );
1736
- var Checkbox = React24.forwardRef(({
1751
+ var Checkbox = React25.forwardRef(({
1737
1752
  className,
1738
1753
  variant,
1739
1754
  size,
@@ -1766,7 +1781,7 @@ var Checkbox = React24.forwardRef(({
1766
1781
  );
1767
1782
  });
1768
1783
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1769
- var CheckboxGroup = React24.forwardRef(
1784
+ var CheckboxGroup = React25.forwardRef(
1770
1785
  ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
1771
1786
  return /* @__PURE__ */ jsx(
1772
1787
  "div",
@@ -1786,7 +1801,7 @@ var CheckboxGroup = React24.forwardRef(
1786
1801
  }
1787
1802
  );
1788
1803
  CheckboxGroup.displayName = "CheckboxGroup";
1789
- var CheckboxLabel = React24.forwardRef(
1804
+ var CheckboxLabel = React25.forwardRef(
1790
1805
  ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
1791
1806
  return /* @__PURE__ */ jsx(
1792
1807
  "label",
@@ -1806,14 +1821,14 @@ var CheckboxLabel = React24.forwardRef(
1806
1821
  }
1807
1822
  );
1808
1823
  CheckboxLabel.displayName = "CheckboxLabel";
1809
- var CheckboxWithLabel = React24.forwardRef(({
1824
+ var CheckboxWithLabel = React25.forwardRef(({
1810
1825
  id,
1811
1826
  label,
1812
1827
  labelPosition = "end",
1813
1828
  labelClassName,
1814
1829
  ...checkboxProps
1815
1830
  }, ref) => {
1816
- const generatedId = React24.useId();
1831
+ const generatedId = React25.useId();
1817
1832
  const checkboxId = id || generatedId;
1818
1833
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
1819
1834
  labelPosition === "start" && /* @__PURE__ */ jsx(
@@ -1863,7 +1878,7 @@ var collapsibleTriggerVariants = cva(
1863
1878
  }
1864
1879
  }
1865
1880
  );
1866
- var CollapsibleTrigger = React24.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1881
+ var CollapsibleTrigger = React25.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1867
1882
  if (asChild) {
1868
1883
  return /* @__PURE__ */ jsx(
1869
1884
  CollapsiblePrimitive.Trigger,
@@ -1912,7 +1927,7 @@ var collapsibleContentVariants = cva(
1912
1927
  }
1913
1928
  }
1914
1929
  );
1915
- 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(
1916
1931
  CollapsiblePrimitive.Content,
1917
1932
  {
1918
1933
  ref,
@@ -1995,7 +2010,7 @@ var inputVariants = cva(
1995
2010
  }
1996
2011
  }
1997
2012
  );
1998
- var Input = React24.forwardRef(
2013
+ var Input = React25.forwardRef(
1999
2014
  ({
2000
2015
  className,
2001
2016
  wrapperClassName,
@@ -2022,10 +2037,10 @@ var Input = React24.forwardRef(
2022
2037
  placeholder,
2023
2038
  ...props
2024
2039
  }, ref) => {
2025
- const reactId = React24.useId();
2040
+ const reactId = React25.useId();
2026
2041
  const fieldId = props.id || reactId;
2027
- const [isFocused, setIsFocused] = React24.useState(false);
2028
- const [internalValue, setInternalValue] = React24.useState(value || defaultValue || "");
2042
+ const [isFocused, setIsFocused] = React25.useState(false);
2043
+ const [internalValue, setInternalValue] = React25.useState(value || defaultValue || "");
2029
2044
  const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
2030
2045
  const isLabelActive = isFocused || hasValue;
2031
2046
  const handleFocus = (e) => {
@@ -2040,7 +2055,7 @@ var Input = React24.forwardRef(
2040
2055
  setInternalValue(e.target.value);
2041
2056
  onChange?.(e);
2042
2057
  };
2043
- React24.useEffect(() => {
2058
+ React25.useEffect(() => {
2044
2059
  if (value !== void 0) {
2045
2060
  setInternalValue(value);
2046
2061
  }
@@ -2124,7 +2139,7 @@ Input.displayName = "Input";
2124
2139
  var labelVariants = cva(
2125
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"
2126
2141
  );
2127
- var Label = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2142
+ var Label = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2128
2143
  LabelPrimitive.Root,
2129
2144
  {
2130
2145
  ref,
@@ -2185,7 +2200,7 @@ var popoverContentVariants = cva(
2185
2200
  var Popover = PopoverPrimitive.Root;
2186
2201
  var PopoverTrigger = PopoverPrimitive.Trigger;
2187
2202
  var PopoverAnchor = PopoverPrimitive.Anchor;
2188
- var PopoverContent = React24.forwardRef(({
2203
+ var PopoverContent = React25.forwardRef(({
2189
2204
  className,
2190
2205
  variant,
2191
2206
  size,
@@ -2253,7 +2268,7 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
2253
2268
  }
2254
2269
  );
2255
2270
  PopoverFooter.displayName = "PopoverFooter";
2256
- var Tabs = React24.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
2271
+ var Tabs = React25.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
2257
2272
  TabsPrimitive.Root,
2258
2273
  {
2259
2274
  ref,
@@ -2294,7 +2309,7 @@ var tabsListVariants = cva(
2294
2309
  }
2295
2310
  }
2296
2311
  );
2297
- var TabsList = React24.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2312
+ var TabsList = React25.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2298
2313
  return /* @__PURE__ */ jsx(
2299
2314
  TabsPrimitive.List,
2300
2315
  {
@@ -2337,7 +2352,7 @@ var tabsTriggerVariants = cva(
2337
2352
  }
2338
2353
  }
2339
2354
  );
2340
- var TabsTrigger = React24.forwardRef(({
2355
+ var TabsTrigger = React25.forwardRef(({
2341
2356
  className,
2342
2357
  variant,
2343
2358
  size,
@@ -2369,7 +2384,7 @@ var TabsTrigger = React24.forwardRef(({
2369
2384
  }
2370
2385
  ));
2371
2386
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
2372
- var TabsContent = React24.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2387
+ var TabsContent = React25.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2373
2388
  TabsPrimitive.Content,
2374
2389
  {
2375
2390
  ref,
@@ -2463,7 +2478,7 @@ var sliderThumbVariants = cva(
2463
2478
  }
2464
2479
  }
2465
2480
  );
2466
- var Slider = React24.forwardRef(({
2481
+ var Slider = React25.forwardRef(({
2467
2482
  className,
2468
2483
  size,
2469
2484
  trackVariant,
@@ -2479,10 +2494,10 @@ var Slider = React24.forwardRef(({
2479
2494
  disabled,
2480
2495
  ...props
2481
2496
  }, ref) => {
2482
- const [sliderValue, setSliderValue] = React24.useState(
2497
+ const [sliderValue, setSliderValue] = React25.useState(
2483
2498
  value || defaultValue || [0]
2484
2499
  );
2485
- React24.useEffect(() => {
2500
+ React25.useEffect(() => {
2486
2501
  if (value !== void 0) {
2487
2502
  setSliderValue(value);
2488
2503
  }
@@ -2497,7 +2512,7 @@ var Slider = React24.forwardRef(({
2497
2512
  const calculateThumbPercent = (value2, min2, max2) => {
2498
2513
  return (value2 - min2) / (max2 - min2) * 100;
2499
2514
  };
2500
- const trackRef = React24.useRef(null);
2515
+ const trackRef = React25.useRef(null);
2501
2516
  const min = props.min || 0;
2502
2517
  const max = props.max || 100;
2503
2518
  const step = props.step || 1;
@@ -2809,14 +2824,14 @@ function ColorPicker({
2809
2824
  disabled,
2810
2825
  ...props
2811
2826
  }) {
2812
- const [open, setOpen] = React24.useState(false);
2813
- const [color, setColor] = React24.useState(value);
2814
- const [opacity, setOpacity] = React24.useState(100);
2815
- const [copied, setCopied] = React24.useState(false);
2816
- const [inputValue, setInputValue] = React24.useState(value);
2817
- const hsl = React24.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2818
- const rgb = React24.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2819
- 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(() => {
2820
2835
  setColor(value);
2821
2836
  setInputValue(value);
2822
2837
  }, [value]);
@@ -3211,7 +3226,7 @@ function GradientPicker({
3211
3226
  onChange,
3212
3227
  className
3213
3228
  }) {
3214
- const [gradient, setGradient] = React24.useState(value);
3229
+ const [gradient, setGradient] = React25.useState(value);
3215
3230
  const handleChange = (field, newValue) => {
3216
3231
  const newGradient = { ...gradient, [field]: newValue };
3217
3232
  setGradient(newGradient);
@@ -3297,7 +3312,7 @@ var overlayVariants = cva(
3297
3312
  }
3298
3313
  }
3299
3314
  );
3300
- var DialogOverlay = React24.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3315
+ var DialogOverlay = React25.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3301
3316
  DialogPrimitive.Overlay,
3302
3317
  {
3303
3318
  ref,
@@ -3356,7 +3371,7 @@ var dialogContentVariants = cva(
3356
3371
  }
3357
3372
  }
3358
3373
  );
3359
- var DialogContent = React24.forwardRef(
3374
+ var DialogContent = React25.forwardRef(
3360
3375
  ({
3361
3376
  className,
3362
3377
  children,
@@ -3469,7 +3484,7 @@ var DialogFooter = ({
3469
3484
  }
3470
3485
  );
3471
3486
  DialogFooter.displayName = "DialogFooter";
3472
- var DialogTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3487
+ var DialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3473
3488
  DialogPrimitive.Title,
3474
3489
  {
3475
3490
  ref,
@@ -3481,7 +3496,7 @@ var DialogTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
3481
3496
  }
3482
3497
  ));
3483
3498
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
3484
- var DialogDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3499
+ var DialogDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3485
3500
  DialogPrimitive.Description,
3486
3501
  {
3487
3502
  ref,
@@ -3493,7 +3508,7 @@ var DialogDescription = React24.forwardRef(({ className, ...props }, ref) => /*
3493
3508
  }
3494
3509
  ));
3495
3510
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
3496
- var DialogForm = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3511
+ var DialogForm = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3497
3512
  "form",
3498
3513
  {
3499
3514
  ref,
@@ -3523,7 +3538,7 @@ var commandVariants = cva(
3523
3538
  }
3524
3539
  }
3525
3540
  );
3526
- var Command = React24.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3541
+ var Command = React25.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3527
3542
  Command$1,
3528
3543
  {
3529
3544
  ref,
@@ -3545,7 +3560,7 @@ var CommandDialog = ({
3545
3560
  ), children })
3546
3561
  ] }) });
3547
3562
  };
3548
- 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: [
3549
3564
  /* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
3550
3565
  /* @__PURE__ */ jsx(
3551
3566
  Command$1.Input,
@@ -3560,7 +3575,7 @@ var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
3560
3575
  )
3561
3576
  ] }));
3562
3577
  CommandInput.displayName = "CommandInput";
3563
- var CommandList = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3578
+ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3564
3579
  Command$1.List,
3565
3580
  {
3566
3581
  ref,
@@ -3569,7 +3584,7 @@ var CommandList = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
3569
3584
  }
3570
3585
  ));
3571
3586
  CommandList.displayName = "CommandList";
3572
- var CommandEmpty = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3587
+ var CommandEmpty = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3573
3588
  Command$1.Empty,
3574
3589
  {
3575
3590
  ref,
@@ -3578,7 +3593,7 @@ var CommandEmpty = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
3578
3593
  }
3579
3594
  ));
3580
3595
  CommandEmpty.displayName = "CommandEmpty";
3581
- var CommandGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3596
+ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3582
3597
  Command$1.Group,
3583
3598
  {
3584
3599
  ref,
@@ -3590,7 +3605,7 @@ var CommandGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
3590
3605
  }
3591
3606
  ));
3592
3607
  CommandGroup.displayName = "CommandGroup";
3593
- var CommandSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3608
+ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3594
3609
  Command$1.Separator,
3595
3610
  {
3596
3611
  ref,
@@ -3599,7 +3614,7 @@ var CommandSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @
3599
3614
  }
3600
3615
  ));
3601
3616
  CommandSeparator.displayName = "CommandSeparator";
3602
- var CommandItem = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3617
+ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3603
3618
  Command$1.Item,
3604
3619
  {
3605
3620
  ref,
@@ -3650,7 +3665,7 @@ var tableVariants = cva(
3650
3665
  }
3651
3666
  }
3652
3667
  );
3653
- var Table = React24.forwardRef(({
3668
+ var Table = React25.forwardRef(({
3654
3669
  className,
3655
3670
  variant,
3656
3671
  size,
@@ -3667,11 +3682,11 @@ var Table = React24.forwardRef(({
3667
3682
  ...props
3668
3683
  }, ref) => {
3669
3684
  const striped = variant === "striped";
3670
- const childrenWithProps = React24.Children.map(props.children, (child) => {
3671
- if (React24.isValidElement(child)) {
3685
+ const childrenWithProps = React25.Children.map(props.children, (child) => {
3686
+ if (React25.isValidElement(child)) {
3672
3687
  if (child.type === "tbody") {
3673
3688
  const tbodyProps = child.props;
3674
- return React24.cloneElement(child, {
3689
+ return React25.cloneElement(child, {
3675
3690
  className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
3676
3691
  });
3677
3692
  }
@@ -3696,10 +3711,10 @@ var Table = React24.forwardRef(({
3696
3711
  ] });
3697
3712
  });
3698
3713
  Table.displayName = "Table";
3699
- 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 }));
3700
3715
  TableHeader.displayName = "TableHeader";
3701
- var TableBody = React24.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3702
- 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;
3703
3718
  return /* @__PURE__ */ jsx(
3704
3719
  "tbody",
3705
3720
  {
@@ -3711,7 +3726,7 @@ var TableBody = React24.forwardRef(({ className, emptyContent, emptyMessage = "N
3711
3726
  );
3712
3727
  });
3713
3728
  TableBody.displayName = "TableBody";
3714
- var TableFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3729
+ var TableFooter = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3715
3730
  "tfoot",
3716
3731
  {
3717
3732
  ref,
@@ -3720,7 +3735,7 @@ var TableFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
3720
3735
  }
3721
3736
  ));
3722
3737
  TableFooter.displayName = "TableFooter";
3723
- var TableRow = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3738
+ var TableRow = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3724
3739
  "tr",
3725
3740
  {
3726
3741
  ref,
@@ -3732,7 +3747,7 @@ var TableRow = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3732
3747
  }
3733
3748
  ));
3734
3749
  TableRow.displayName = "TableRow";
3735
- var TableHead = React24.forwardRef(
3750
+ var TableHead = React25.forwardRef(
3736
3751
  ({ className, sortable, sorted, onSort, align = "left", children, ...props }, ref) => {
3737
3752
  const renderSortIcon = () => {
3738
3753
  if (!sortable)
@@ -3820,7 +3835,7 @@ var TableHead = React24.forwardRef(
3820
3835
  }
3821
3836
  );
3822
3837
  TableHead.displayName = "TableHead";
3823
- var TableCell = React24.forwardRef(({ className, align = "left", ...props }, ref) => {
3838
+ var TableCell = React25.forwardRef(({ className, align = "left", ...props }, ref) => {
3824
3839
  const alignmentClass = {
3825
3840
  left: "text-left",
3826
3841
  center: "text-center",
@@ -3836,7 +3851,7 @@ var TableCell = React24.forwardRef(({ className, align = "left", ...props }, ref
3836
3851
  );
3837
3852
  });
3838
3853
  TableCell.displayName = "TableCell";
3839
- var TableCaption = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3854
+ var TableCaption = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3840
3855
  "caption",
3841
3856
  {
3842
3857
  ref,
@@ -3856,8 +3871,8 @@ function DataTableBasic({
3856
3871
  emptyMessage = "No results found.",
3857
3872
  className
3858
3873
  }) {
3859
- const [sorting, setSorting] = React24.useState([]);
3860
- const [globalFilter, setGlobalFilter] = React24.useState("");
3874
+ const [sorting, setSorting] = React25.useState([]);
3875
+ const [globalFilter, setGlobalFilter] = React25.useState("");
3861
3876
  const table = useReactTable({
3862
3877
  data,
3863
3878
  columns,
@@ -4020,7 +4035,7 @@ var datePickerVariants = cva(
4020
4035
  }
4021
4036
  }
4022
4037
  );
4023
- var DatePicker = React24.forwardRef(function DatePicker2({
4038
+ var DatePicker = React25.forwardRef(function DatePicker2({
4024
4039
  className,
4025
4040
  variant,
4026
4041
  size,
@@ -4043,9 +4058,9 @@ var DatePicker = React24.forwardRef(function DatePicker2({
4043
4058
  disabled,
4044
4059
  ...props
4045
4060
  }, ref) {
4046
- const [open, setOpen] = React24.useState(false);
4047
- const [internalDate, setInternalDate] = React24.useState(value);
4048
- React24.useEffect(() => {
4061
+ const [open, setOpen] = React25.useState(false);
4062
+ const [internalDate, setInternalDate] = React25.useState(value);
4063
+ React25.useEffect(() => {
4049
4064
  setInternalDate(value);
4050
4065
  }, [value]);
4051
4066
  const handleSelect = (date) => {
@@ -4193,7 +4208,7 @@ var DatePicker = React24.forwardRef(function DatePicker2({
4193
4208
  ] }) });
4194
4209
  });
4195
4210
  DatePicker.displayName = "DatePicker";
4196
- var DateRangePicker = React24.forwardRef(function DateRangePicker2({
4211
+ var DateRangePicker = React25.forwardRef(function DateRangePicker2({
4197
4212
  className,
4198
4213
  value,
4199
4214
  onChange,
@@ -4202,9 +4217,9 @@ var DateRangePicker = React24.forwardRef(function DateRangePicker2({
4202
4217
  separator = " - ",
4203
4218
  ...props
4204
4219
  }, ref) {
4205
- const [open, setOpen] = React24.useState(false);
4206
- const [internalRange, setInternalRange] = React24.useState(value);
4207
- React24.useEffect(() => {
4220
+ const [open, setOpen] = React25.useState(false);
4221
+ const [internalRange, setInternalRange] = React25.useState(value);
4222
+ React25.useEffect(() => {
4208
4223
  setInternalRange(value);
4209
4224
  }, [value]);
4210
4225
  const handleSelect = (range) => {
@@ -4214,7 +4229,7 @@ var DateRangePicker = React24.forwardRef(function DateRangePicker2({
4214
4229
  setOpen(false);
4215
4230
  }
4216
4231
  };
4217
- const displayValue = React24.useMemo(() => {
4232
+ const displayValue = React25.useMemo(() => {
4218
4233
  if (!internalRange?.from)
4219
4234
  return null;
4220
4235
  if (!internalRange?.to) {
@@ -4262,7 +4277,7 @@ var DateRangePicker = React24.forwardRef(function DateRangePicker2({
4262
4277
  ] });
4263
4278
  });
4264
4279
  DateRangePicker.displayName = "DateRangePicker";
4265
- var DateTimePicker = React24.forwardRef(function DateTimePicker2({
4280
+ var DateTimePicker = React25.forwardRef(function DateTimePicker2({
4266
4281
  value,
4267
4282
  onChange,
4268
4283
  // Saat ayrı bir <select> ile gösterildiği için buton yalnızca TARİHİ yazar;
@@ -4274,8 +4289,8 @@ var DateTimePicker = React24.forwardRef(function DateTimePicker2({
4274
4289
  timeInterval = 15,
4275
4290
  ...props
4276
4291
  }, ref) {
4277
- const [date, setDate] = React24.useState(value);
4278
- const [time, setTime] = React24.useState(
4292
+ const [date, setDate] = React25.useState(value);
4293
+ const [time, setTime] = React25.useState(
4279
4294
  value ? format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
4280
4295
  );
4281
4296
  const handleDateChange = (newDate) => {
@@ -4300,7 +4315,7 @@ var DateTimePicker = React24.forwardRef(function DateTimePicker2({
4300
4315
  onChange?.(newDate);
4301
4316
  }
4302
4317
  };
4303
- const timeOptions = React24.useMemo(() => {
4318
+ const timeOptions = React25.useMemo(() => {
4304
4319
  const options = [];
4305
4320
  for (let h = 0; h < 24; h++) {
4306
4321
  for (let m = 0; m < 60; m += timeInterval) {
@@ -4354,15 +4369,15 @@ var DateTimePicker = React24.forwardRef(function DateTimePicker2({
4354
4369
  ] });
4355
4370
  });
4356
4371
  DateTimePicker.displayName = "DateTimePicker";
4357
- var MonthPicker = React24.forwardRef(function MonthPicker2({
4372
+ var MonthPicker = React25.forwardRef(function MonthPicker2({
4358
4373
  value,
4359
4374
  onChange,
4360
4375
  placeholder = "Pick a month",
4361
4376
  formatString = "MMMM yyyy",
4362
4377
  ...props
4363
4378
  }, ref) {
4364
- const [open, setOpen] = React24.useState(false);
4365
- 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());
4366
4381
  const months = [
4367
4382
  "January",
4368
4383
  "February",
@@ -4458,7 +4473,7 @@ function DraggableList({
4458
4473
  className,
4459
4474
  disabled = false
4460
4475
  }) {
4461
- const [draggedIndex, setDraggedIndex] = React24.useState(null);
4476
+ const [draggedIndex, setDraggedIndex] = React25.useState(null);
4462
4477
  const handleDragStart = (e, index) => {
4463
4478
  if (disabled)
4464
4479
  return;
@@ -4510,7 +4525,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
4510
4525
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
4511
4526
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
4512
4527
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
4513
- var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4528
+ var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4514
4529
  DropdownMenuPrimitive.SubTrigger,
4515
4530
  {
4516
4531
  ref,
@@ -4527,7 +4542,7 @@ var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, .
4527
4542
  }
4528
4543
  ));
4529
4544
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
4530
- var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4545
+ var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4531
4546
  DropdownMenuPrimitive.SubContent,
4532
4547
  {
4533
4548
  ref,
@@ -4539,7 +4554,7 @@ var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) =
4539
4554
  }
4540
4555
  ));
4541
4556
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
4542
- 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(
4543
4558
  DropdownMenuPrimitive.Content,
4544
4559
  {
4545
4560
  ref,
@@ -4552,7 +4567,7 @@ var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...pr
4552
4567
  }
4553
4568
  ) }));
4554
4569
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4555
- var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4570
+ var DropdownMenuItem = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4556
4571
  DropdownMenuPrimitive.Item,
4557
4572
  {
4558
4573
  ref,
@@ -4565,7 +4580,7 @@ var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref)
4565
4580
  }
4566
4581
  ));
4567
4582
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4568
- var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4583
+ var DropdownMenuCheckboxItem = React25.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4569
4584
  DropdownMenuPrimitive.CheckboxItem,
4570
4585
  {
4571
4586
  ref,
@@ -4582,7 +4597,7 @@ var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checke
4582
4597
  }
4583
4598
  ));
4584
4599
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
4585
- var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4600
+ var DropdownMenuRadioItem = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4586
4601
  DropdownMenuPrimitive.RadioItem,
4587
4602
  {
4588
4603
  ref,
@@ -4598,7 +4613,7 @@ var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props
4598
4613
  }
4599
4614
  ));
4600
4615
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
4601
- var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4616
+ var DropdownMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4602
4617
  DropdownMenuPrimitive.Label,
4603
4618
  {
4604
4619
  ref,
@@ -4611,7 +4626,7 @@ var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref)
4611
4626
  }
4612
4627
  ));
4613
4628
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4614
- var DropdownMenuSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4629
+ var DropdownMenuSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4615
4630
  DropdownMenuPrimitive.Separator,
4616
4631
  {
4617
4632
  ref,
@@ -4700,7 +4715,7 @@ var progressIndicatorVariants = cva(
4700
4715
  }
4701
4716
  }
4702
4717
  );
4703
- var Progress = React24.forwardRef(({
4718
+ var Progress = React25.forwardRef(({
4704
4719
  className,
4705
4720
  value = 0,
4706
4721
  variant,
@@ -4830,7 +4845,7 @@ var FileItem = ({
4830
4845
  }
4831
4846
  );
4832
4847
  };
4833
- var FileUpload = React24__default.forwardRef(
4848
+ var FileUpload = React25__default.forwardRef(
4834
4849
  ({
4835
4850
  accept = "*",
4836
4851
  multiple = true,
@@ -5053,7 +5068,7 @@ var FileUpload = React24__default.forwardRef(
5053
5068
  }
5054
5069
  );
5055
5070
  FileUpload.displayName = "FileUpload";
5056
- var GestureDrawer = React24__default.forwardRef(
5071
+ var GestureDrawer = React25__default.forwardRef(
5057
5072
  ({
5058
5073
  children,
5059
5074
  isOpen,
@@ -5324,7 +5339,7 @@ function GitHubStarButton({
5324
5339
  }
5325
5340
  );
5326
5341
  }
5327
- var InputOTP = React24.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5342
+ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5328
5343
  OTPInput,
5329
5344
  {
5330
5345
  ref,
@@ -5339,7 +5354,7 @@ var InputOTP = React24.forwardRef(({ className, containerClassName, ...props },
5339
5354
  }
5340
5355
  ));
5341
5356
  InputOTP.displayName = "InputOTP";
5342
- 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 }));
5343
5358
  InputOTPGroup.displayName = "InputOTPGroup";
5344
5359
  var inputOTPSlotVariants = cva(
5345
5360
  [
@@ -5361,9 +5376,9 @@ var inputOTPSlotVariants = cva(
5361
5376
  }
5362
5377
  }
5363
5378
  );
5364
- var InputOTPSlot = React24.forwardRef(
5379
+ var InputOTPSlot = React25.forwardRef(
5365
5380
  ({ index, className, ...props }, ref) => {
5366
- const inputOTPContext = React24.useContext(OTPInputContext);
5381
+ const inputOTPContext = React25.useContext(OTPInputContext);
5367
5382
  const slot = inputOTPContext?.slots?.[index];
5368
5383
  const char = slot?.char;
5369
5384
  const hasFakeCaret = slot?.hasFakeCaret;
@@ -5385,7 +5400,7 @@ var InputOTPSlot = React24.forwardRef(
5385
5400
  }
5386
5401
  );
5387
5402
  InputOTPSlot.displayName = "InputOTPSlot";
5388
- var InputOTPSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5403
+ var InputOTPSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5389
5404
  "div",
5390
5405
  {
5391
5406
  ref,
@@ -5684,7 +5699,7 @@ function MoonLogo({
5684
5699
  showText = true,
5685
5700
  ...props
5686
5701
  }) {
5687
- const logoId = React24.useId();
5702
+ const logoId = React25.useId();
5688
5703
  const gradientId = `moon-gradient-${logoId}`;
5689
5704
  const maskId = `moon-mask-${logoId}`;
5690
5705
  return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", className), children: [
@@ -5766,7 +5781,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
5766
5781
  }
5767
5782
  );
5768
5783
  Pagination.displayName = "Pagination";
5769
- var PaginationContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5784
+ var PaginationContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5770
5785
  "ul",
5771
5786
  {
5772
5787
  ref,
@@ -5775,7 +5790,7 @@ var PaginationContent = React24.forwardRef(({ className, ...props }, ref) => /*
5775
5790
  }
5776
5791
  ));
5777
5792
  PaginationContent.displayName = "PaginationContent";
5778
- 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 }));
5779
5794
  PaginationItem.displayName = "PaginationItem";
5780
5795
  var PaginationLink = ({
5781
5796
  className,
@@ -5883,7 +5898,7 @@ var selectTriggerVariants = cva(
5883
5898
  }
5884
5899
  }
5885
5900
  );
5886
- 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(
5887
5902
  SelectPrimitive.Trigger,
5888
5903
  {
5889
5904
  ref,
@@ -5914,7 +5929,7 @@ var SelectTrigger = React24.forwardRef(({ className, children, variant, size, er
5914
5929
  }
5915
5930
  ));
5916
5931
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
5917
- var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5932
+ var SelectScrollUpButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5918
5933
  SelectPrimitive.ScrollUpButton,
5919
5934
  {
5920
5935
  ref,
@@ -5927,7 +5942,7 @@ var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) =>
5927
5942
  }
5928
5943
  ));
5929
5944
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
5930
- var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5945
+ var SelectScrollDownButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5931
5946
  SelectPrimitive.ScrollDownButton,
5932
5947
  {
5933
5948
  ref,
@@ -5940,7 +5955,7 @@ var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) =
5940
5955
  }
5941
5956
  ));
5942
5957
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
5943
- 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(
5944
5959
  SelectPrimitive.Content,
5945
5960
  {
5946
5961
  ref,
@@ -5981,7 +5996,7 @@ var SelectContent = React24.forwardRef(({ className, children, position = "poppe
5981
5996
  }
5982
5997
  ) }));
5983
5998
  SelectContent.displayName = SelectPrimitive.Content.displayName;
5984
- var SelectLabel = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5999
+ var SelectLabel = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5985
6000
  SelectPrimitive.Label,
5986
6001
  {
5987
6002
  ref,
@@ -5990,7 +6005,7 @@ var SelectLabel = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
5990
6005
  }
5991
6006
  ));
5992
6007
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
5993
- 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(
5994
6009
  SelectPrimitive.Item,
5995
6010
  {
5996
6011
  ref,
@@ -6020,7 +6035,7 @@ var SelectItem = React24.forwardRef(({ className, children, variant = "default",
6020
6035
  }
6021
6036
  ));
6022
6037
  SelectItem.displayName = SelectPrimitive.Item.displayName;
6023
- var SelectSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6038
+ var SelectSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6024
6039
  SelectPrimitive.Separator,
6025
6040
  {
6026
6041
  ref,
@@ -6102,7 +6117,7 @@ var getMaxLength = (countryCode) => {
6102
6117
  return 15;
6103
6118
  }
6104
6119
  };
6105
- var PhoneInput = React24.forwardRef(
6120
+ var PhoneInput = React25.forwardRef(
6106
6121
  ({
6107
6122
  className,
6108
6123
  value = "",
@@ -6114,8 +6129,8 @@ var PhoneInput = React24.forwardRef(
6114
6129
  size,
6115
6130
  ...props
6116
6131
  }, ref) => {
6117
- const [countryCode, setCountryCode] = React24.useState(defaultCountry);
6118
- const [phoneNumber, setPhoneNumber] = React24.useState(value);
6132
+ const [countryCode, setCountryCode] = React25.useState(defaultCountry);
6133
+ const [phoneNumber, setPhoneNumber] = React25.useState(value);
6119
6134
  const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
6120
6135
  const handlePhoneChange = (e) => {
6121
6136
  const rawValue = e.target.value.replace(/\D/g, "");
@@ -6186,15 +6201,15 @@ var radioGroupItemVariants = cva(
6186
6201
  }
6187
6202
  }
6188
6203
  );
6189
- var RadioGroupContext = React24.createContext({});
6190
- var RadioGroup2 = React24.forwardRef(
6204
+ var RadioGroupContext = React25.createContext({});
6205
+ var RadioGroup2 = React25.forwardRef(
6191
6206
  ({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
6192
- const [internalValue, setInternalValue] = React24.useState(
6207
+ const [internalValue, setInternalValue] = React25.useState(
6193
6208
  defaultValue
6194
6209
  );
6195
6210
  const isControlled = value !== void 0;
6196
6211
  const currentValue = isControlled ? value : internalValue;
6197
- const handleValueChange = React24.useCallback(
6212
+ const handleValueChange = React25.useCallback(
6198
6213
  (next) => {
6199
6214
  if (!isControlled) {
6200
6215
  setInternalValue(next);
@@ -6226,9 +6241,9 @@ var RadioGroup2 = React24.forwardRef(
6226
6241
  }
6227
6242
  );
6228
6243
  RadioGroup2.displayName = "RadioGroup";
6229
- var RadioGroupItem = React24.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6230
- const radioGroup = React24.useContext(RadioGroupContext);
6231
- 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();
6232
6247
  const radioId = id || generatedId;
6233
6248
  const isChecked = radioGroup.value === value;
6234
6249
  const handleChange = (e) => {
@@ -6281,7 +6296,7 @@ var RadioGroupItem = React24.forwardRef(({ className, variant, size, indicator,
6281
6296
  ] });
6282
6297
  });
6283
6298
  RadioGroupItem.displayName = "RadioGroupItem";
6284
- var RadioLabel = React24.forwardRef(
6299
+ var RadioLabel = React25.forwardRef(
6285
6300
  ({ className, htmlFor, children, disabled = false, ...props }, ref) => {
6286
6301
  return /* @__PURE__ */ jsx(
6287
6302
  "label",
@@ -6300,13 +6315,13 @@ var RadioLabel = React24.forwardRef(
6300
6315
  }
6301
6316
  );
6302
6317
  RadioLabel.displayName = "RadioLabel";
6303
- var RadioItemWithLabel = React24.forwardRef(({
6318
+ var RadioItemWithLabel = React25.forwardRef(({
6304
6319
  id,
6305
6320
  label,
6306
6321
  labelClassName,
6307
6322
  ...radioProps
6308
6323
  }, ref) => {
6309
- const generatedId = React24.useId();
6324
+ const generatedId = React25.useId();
6310
6325
  const radioId = id || generatedId;
6311
6326
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
6312
6327
  /* @__PURE__ */ jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
@@ -6383,7 +6398,7 @@ function RichTextEditor({
6383
6398
  )
6384
6399
  ] });
6385
6400
  }
6386
- var ScrollArea = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6401
+ var ScrollArea = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6387
6402
  ScrollAreaPrimitive.Root,
6388
6403
  {
6389
6404
  ref,
@@ -6397,7 +6412,7 @@ var ScrollArea = React24.forwardRef(({ className, children, ...props }, ref) =>
6397
6412
  }
6398
6413
  ));
6399
6414
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
6400
- var ScrollBar = React24.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6415
+ var ScrollBar = React25.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6401
6416
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6402
6417
  {
6403
6418
  ref,
@@ -6451,7 +6466,7 @@ var defaultTransition = {
6451
6466
  ease: [0.25, 0.46, 0.45, 0.94]
6452
6467
  // Custom cubic-bezier for smooth motion
6453
6468
  };
6454
- var ScrollReveal = React24.forwardRef(
6469
+ var ScrollReveal = React25.forwardRef(
6455
6470
  ({
6456
6471
  children,
6457
6472
  direction = "up",
@@ -6472,17 +6487,17 @@ var ScrollReveal = React24.forwardRef(
6472
6487
  viewport
6473
6488
  }, ref) => {
6474
6489
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6475
- const animationVariants = React24.useMemo(() => {
6490
+ const animationVariants = React25.useMemo(() => {
6476
6491
  if (variants)
6477
6492
  return variants;
6478
6493
  return createDefaultVariants(direction, distance);
6479
6494
  }, [direction, distance, variants]);
6480
- const transition = React24.useMemo(() => ({
6495
+ const transition = React25.useMemo(() => ({
6481
6496
  ...defaultTransition,
6482
6497
  duration,
6483
6498
  delay: delay + stagger
6484
6499
  }), [duration, delay, stagger]);
6485
- const viewportConfig = React24.useMemo(() => ({
6500
+ const viewportConfig = React25.useMemo(() => ({
6486
6501
  once: shouldTriggerOnce,
6487
6502
  amount: threshold,
6488
6503
  ...viewport
@@ -6517,7 +6532,7 @@ var ScrollReveal = React24.forwardRef(
6517
6532
  }
6518
6533
  );
6519
6534
  ScrollReveal.displayName = "ScrollReveal";
6520
- var ScrollRevealContainer = React24.forwardRef(
6535
+ var ScrollRevealContainer = React25.forwardRef(
6521
6536
  ({
6522
6537
  children,
6523
6538
  stagger = 0.1,
@@ -6530,7 +6545,7 @@ var ScrollRevealContainer = React24.forwardRef(
6530
6545
  viewport
6531
6546
  }, ref) => {
6532
6547
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6533
- const viewportConfig = React24.useMemo(() => ({
6548
+ const viewportConfig = React25.useMemo(() => ({
6534
6549
  once: shouldTriggerOnce,
6535
6550
  amount: threshold,
6536
6551
  ...viewport
@@ -6561,7 +6576,7 @@ var ScrollRevealContainer = React24.forwardRef(
6561
6576
  }
6562
6577
  );
6563
6578
  ScrollRevealContainer.displayName = "ScrollRevealContainer";
6564
- var ScrollRevealItem = React24.forwardRef(
6579
+ var ScrollRevealItem = React25.forwardRef(
6565
6580
  ({
6566
6581
  children,
6567
6582
  direction = "up",
@@ -6572,12 +6587,12 @@ var ScrollRevealItem = React24.forwardRef(
6572
6587
  style,
6573
6588
  id
6574
6589
  }, ref) => {
6575
- const animationVariants = React24.useMemo(() => {
6590
+ const animationVariants = React25.useMemo(() => {
6576
6591
  if (variants)
6577
6592
  return variants;
6578
6593
  return createDefaultVariants(direction, distance);
6579
6594
  }, [direction, distance, variants]);
6580
- const transition = React24.useMemo(() => ({
6595
+ const transition = React25.useMemo(() => ({
6581
6596
  ...defaultTransition,
6582
6597
  duration
6583
6598
  }), [duration]);
@@ -6693,7 +6708,7 @@ var separatorVariants = cva(
6693
6708
  }
6694
6709
  }
6695
6710
  );
6696
- var Separator3 = React24.forwardRef(
6711
+ var Separator3 = React25.forwardRef(
6697
6712
  ({
6698
6713
  className,
6699
6714
  orientation = "horizontal",
@@ -6736,7 +6751,7 @@ var toggleVariants = cva(
6736
6751
  }
6737
6752
  }
6738
6753
  );
6739
- var Toggle = React24.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6754
+ var Toggle = React25.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6740
6755
  TogglePrimitive.Root,
6741
6756
  {
6742
6757
  ref,
@@ -6772,7 +6787,7 @@ var tooltipVariants = cva(
6772
6787
  );
6773
6788
  var Tooltip = TooltipPrimitive.Root;
6774
6789
  var TooltipTrigger = TooltipPrimitive.Trigger;
6775
- var TooltipArrow = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6790
+ var TooltipArrow = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6776
6791
  TooltipPrimitive.Arrow,
6777
6792
  {
6778
6793
  ref,
@@ -6781,7 +6796,7 @@ var TooltipArrow = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
6781
6796
  }
6782
6797
  ));
6783
6798
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
6784
- 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(
6785
6800
  TooltipPrimitive.Content,
6786
6801
  {
6787
6802
  ref,
@@ -6795,7 +6810,7 @@ var TooltipContent = React24.forwardRef(({ className, variant, size, showArrow =
6795
6810
  }
6796
6811
  ));
6797
6812
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6798
- var SimpleTooltip = React24.forwardRef(
6813
+ var SimpleTooltip = React25.forwardRef(
6799
6814
  ({
6800
6815
  children,
6801
6816
  content,
@@ -6883,7 +6898,7 @@ var ColorPicker2 = ({ onColorSelect }) => {
6883
6898
  color
6884
6899
  )) });
6885
6900
  };
6886
- var SimpleEditor = React24__default.forwardRef(
6901
+ var SimpleEditor = React25__default.forwardRef(
6887
6902
  ({
6888
6903
  value = "",
6889
6904
  onChange,
@@ -6900,8 +6915,8 @@ var SimpleEditor = React24__default.forwardRef(
6900
6915
  const [isPreview, setIsPreview] = useState(false);
6901
6916
  const [sourceContent, setSourceContent] = useState(value);
6902
6917
  useState(null);
6903
- const editorRef = React24__default.useRef(null);
6904
- const sourceRef = React24__default.useRef(null);
6918
+ const editorRef = React25__default.useRef(null);
6919
+ const sourceRef = React25__default.useRef(null);
6905
6920
  const [formatState, setFormatState] = useState({
6906
6921
  bold: false,
6907
6922
  italic: false,
@@ -7035,12 +7050,12 @@ var SimpleEditor = React24__default.forwardRef(
7035
7050
  }
7036
7051
  }
7037
7052
  }, [executeCommand, updateContent]);
7038
- React24__default.useEffect(() => {
7053
+ React25__default.useEffect(() => {
7039
7054
  if (editorRef.current && content && content !== editorRef.current.innerHTML) {
7040
7055
  editorRef.current.innerHTML = content;
7041
7056
  }
7042
7057
  }, [content]);
7043
- React24__default.useEffect(() => {
7058
+ React25__default.useEffect(() => {
7044
7059
  if (value !== void 0 && value !== content) {
7045
7060
  setContent(value);
7046
7061
  setSourceContent(value);
@@ -7450,7 +7465,7 @@ var skeletonVariants = cva(
7450
7465
  }
7451
7466
  }
7452
7467
  );
7453
- var Skeleton = React24.forwardRef(
7468
+ var Skeleton = React25.forwardRef(
7454
7469
  ({
7455
7470
  className,
7456
7471
  variant,
@@ -7534,7 +7549,7 @@ var Skeleton = React24.forwardRef(
7534
7549
  }
7535
7550
  );
7536
7551
  Skeleton.displayName = "Skeleton";
7537
- var SkeletonText = React24.forwardRef(
7552
+ var SkeletonText = React25.forwardRef(
7538
7553
  ({
7539
7554
  className,
7540
7555
  lines = 3,
@@ -7575,7 +7590,7 @@ var SkeletonText = React24.forwardRef(
7575
7590
  }
7576
7591
  );
7577
7592
  SkeletonText.displayName = "SkeletonText";
7578
- var SkeletonAvatar = React24.forwardRef(
7593
+ var SkeletonAvatar = React25.forwardRef(
7579
7594
  ({
7580
7595
  className,
7581
7596
  size = "2.5rem",
@@ -7601,7 +7616,7 @@ var SkeletonAvatar = React24.forwardRef(
7601
7616
  }
7602
7617
  );
7603
7618
  SkeletonAvatar.displayName = "SkeletonAvatar";
7604
- var SkeletonCard = React24.forwardRef(
7619
+ var SkeletonCard = React25.forwardRef(
7605
7620
  ({
7606
7621
  className,
7607
7622
  showHeader = true,
@@ -7675,11 +7690,11 @@ var SkeletonCard = React24.forwardRef(
7675
7690
  }
7676
7691
  );
7677
7692
  SkeletonCard.displayName = "SkeletonCard";
7678
- var SwipeableCard = React24.forwardRef(
7693
+ var SwipeableCard = React25.forwardRef(
7679
7694
  ({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
7680
- const [startX, setStartX] = React24.useState(0);
7681
- const [currentX, setCurrentX] = React24.useState(0);
7682
- 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);
7683
7698
  const handleTouchStart = (e) => {
7684
7699
  if (disabled)
7685
7700
  return;
@@ -7774,7 +7789,7 @@ var switchThumbVariants = cva(
7774
7789
  }
7775
7790
  }
7776
7791
  );
7777
- var Switch = React24.forwardRef(({
7792
+ var Switch = React25.forwardRef(({
7778
7793
  className,
7779
7794
  size,
7780
7795
  variant,
@@ -7785,7 +7800,7 @@ var Switch = React24.forwardRef(({
7785
7800
  "aria-describedby": ariaDescribedBy,
7786
7801
  ...props
7787
7802
  }, ref) => {
7788
- const reactId = React24.useId();
7803
+ const reactId = React25.useId();
7789
7804
  const descriptionId = description ? `${reactId}-description` : void 0;
7790
7805
  const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
7791
7806
  return /* @__PURE__ */ jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
@@ -7813,7 +7828,7 @@ var Switch = React24.forwardRef(({
7813
7828
  ] });
7814
7829
  });
7815
7830
  Switch.displayName = SwitchPrimitives.Root.displayName;
7816
- var TagsInput = React24.forwardRef(
7831
+ var TagsInput = React25.forwardRef(
7817
7832
  ({
7818
7833
  value = [],
7819
7834
  onChange,
@@ -7826,12 +7841,12 @@ var TagsInput = React24.forwardRef(
7826
7841
  disabled,
7827
7842
  ...props
7828
7843
  }, ref) => {
7829
- const [inputValue, setInputValue] = React24.useState("");
7830
- const [error, setError] = React24.useState("");
7831
- const innerInputRef = React24.useRef(null);
7832
- React24.useImperativeHandle(ref, () => innerInputRef.current);
7833
- const tagButtonRefs = React24.useRef([]);
7834
- 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();
7835
7850
  const focusTag = (index) => {
7836
7851
  if (value.length === 0)
7837
7852
  return;
@@ -8008,7 +8023,7 @@ var textareaVariants = cva(
8008
8023
  }
8009
8024
  }
8010
8025
  );
8011
- var Textarea = React24.forwardRef(
8026
+ var Textarea = React25.forwardRef(
8012
8027
  ({
8013
8028
  className,
8014
8029
  wrapperClassName,
@@ -8028,12 +8043,12 @@ var Textarea = React24.forwardRef(
8028
8043
  onChange,
8029
8044
  ...props
8030
8045
  }, ref) => {
8031
- const reactId = React24.useId();
8046
+ const reactId = React25.useId();
8032
8047
  const fieldId = props.id || reactId;
8033
- const textareaRef = React24.useRef(null);
8034
- const [internalValue, setInternalValue] = React24.useState(value || defaultValue || "");
8035
- React24.useImperativeHandle(ref, () => textareaRef.current);
8036
- 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(() => {
8037
8052
  const textarea = textareaRef.current;
8038
8053
  if (!textarea || !autoResize)
8039
8054
  return;
@@ -8047,10 +8062,10 @@ var Textarea = React24.forwardRef(
8047
8062
  textarea.style.overflowY = "hidden";
8048
8063
  }
8049
8064
  }, [autoResize, maxHeight]);
8050
- React24.useEffect(() => {
8065
+ React25.useEffect(() => {
8051
8066
  adjustHeight();
8052
8067
  }, [internalValue, adjustHeight]);
8053
- React24.useEffect(() => {
8068
+ React25.useEffect(() => {
8054
8069
  if (value !== void 0) {
8055
8070
  setInternalValue(value);
8056
8071
  }
@@ -8116,7 +8131,7 @@ var Textarea = React24.forwardRef(
8116
8131
  );
8117
8132
  Textarea.displayName = "Textarea";
8118
8133
  var ToastProvider = ToastPrimitives.Provider;
8119
- var ToastViewport = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8134
+ var ToastViewport = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8120
8135
  ToastPrimitives.Viewport,
8121
8136
  {
8122
8137
  ref,
@@ -8145,7 +8160,7 @@ var toastVariants = cva(
8145
8160
  }
8146
8161
  }
8147
8162
  );
8148
- var Toast = React24.forwardRef(({ className, variant, ...props }, ref) => {
8163
+ var Toast = React25.forwardRef(({ className, variant, ...props }, ref) => {
8149
8164
  return /* @__PURE__ */ jsx(
8150
8165
  ToastPrimitives.Root,
8151
8166
  {
@@ -8156,7 +8171,7 @@ var Toast = React24.forwardRef(({ className, variant, ...props }, ref) => {
8156
8171
  );
8157
8172
  });
8158
8173
  Toast.displayName = ToastPrimitives.Root.displayName;
8159
- var ToastAction = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8174
+ var ToastAction = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8160
8175
  ToastPrimitives.Action,
8161
8176
  {
8162
8177
  ref,
@@ -8168,7 +8183,7 @@ var ToastAction = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
8168
8183
  }
8169
8184
  ));
8170
8185
  ToastAction.displayName = ToastPrimitives.Action.displayName;
8171
- var ToastClose = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
8186
+ var ToastClose = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
8172
8187
  ToastPrimitives.Close,
8173
8188
  {
8174
8189
  ref,
@@ -8185,7 +8200,7 @@ var ToastClose = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
8185
8200
  }
8186
8201
  ));
8187
8202
  ToastClose.displayName = ToastPrimitives.Close.displayName;
8188
- var ToastTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8203
+ var ToastTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8189
8204
  ToastPrimitives.Title,
8190
8205
  {
8191
8206
  ref,
@@ -8194,7 +8209,7 @@ var ToastTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
8194
8209
  }
8195
8210
  ));
8196
8211
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
8197
- var ToastDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8212
+ var ToastDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8198
8213
  ToastPrimitives.Description,
8199
8214
  {
8200
8215
  ref,
@@ -8302,8 +8317,8 @@ function toast({ ...props }) {
8302
8317
  };
8303
8318
  }
8304
8319
  function useToast() {
8305
- const [state, setState] = React24.useState(memoryState);
8306
- React24.useEffect(() => {
8320
+ const [state, setState] = React25.useState(memoryState);
8321
+ React25.useEffect(() => {
8307
8322
  listeners.push(setState);
8308
8323
  return () => {
8309
8324
  const index = listeners.indexOf(setState);
@@ -8356,7 +8371,7 @@ var kbdVariants = cva(
8356
8371
  }
8357
8372
  }
8358
8373
  );
8359
- var Kbd = React24.forwardRef(
8374
+ var Kbd = React25.forwardRef(
8360
8375
  ({ className, size, children, ...props }, ref) => {
8361
8376
  return /* @__PURE__ */ jsx(
8362
8377
  "kbd",
@@ -8393,7 +8408,7 @@ var iconSizeMap = {
8393
8408
  md: "h-5 w-5",
8394
8409
  lg: "h-6 w-6"
8395
8410
  };
8396
- var Rating = React24.forwardRef(
8411
+ var Rating = React25.forwardRef(
8397
8412
  ({
8398
8413
  className,
8399
8414
  value,
@@ -8411,11 +8426,11 @@ var Rating = React24.forwardRef(
8411
8426
  const iconSizeClass = iconSizeMap[resolvedSize];
8412
8427
  const step = precision === "half" ? 0.5 : 1;
8413
8428
  const isControlled = value !== void 0;
8414
- const [internalValue, setInternalValue] = React24.useState(defaultValue ?? 0);
8429
+ const [internalValue, setInternalValue] = React25.useState(defaultValue ?? 0);
8415
8430
  const currentValue = isControlled ? value ?? 0 : internalValue;
8416
- const [hoverValue, setHoverValue] = React24.useState(null);
8431
+ const [hoverValue, setHoverValue] = React25.useState(null);
8417
8432
  const displayValue = hoverValue !== null ? hoverValue : currentValue;
8418
- const commit = React24.useCallback(
8433
+ const commit = React25.useCallback(
8419
8434
  (next) => {
8420
8435
  if (readOnly)
8421
8436
  return;
@@ -8425,7 +8440,7 @@ var Rating = React24.forwardRef(
8425
8440
  },
8426
8441
  [readOnly, isControlled, onValueChange]
8427
8442
  );
8428
- const handleKeyDown = React24.useCallback(
8443
+ const handleKeyDown = React25.useCallback(
8429
8444
  (event) => {
8430
8445
  if (readOnly)
8431
8446
  return;
@@ -8454,9 +8469,9 @@ var Rating = React24.forwardRef(
8454
8469
  [readOnly, max, currentValue, step, commit]
8455
8470
  );
8456
8471
  const renderIcon = (filled) => {
8457
- if (React24.isValidElement(icon)) {
8472
+ if (React25.isValidElement(icon)) {
8458
8473
  const element = icon;
8459
- return React24.cloneElement(element, {
8474
+ return React25.cloneElement(element, {
8460
8475
  className: cn(
8461
8476
  iconSizeClass,
8462
8477
  "shrink-0",
@@ -8590,7 +8605,7 @@ var dotSizeMap = {
8590
8605
  lg: "h-2 w-2",
8591
8606
  xl: "h-2.5 w-2.5"
8592
8607
  };
8593
- var Spinner = React24.forwardRef(
8608
+ var Spinner = React25.forwardRef(
8594
8609
  ({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
8595
8610
  return /* @__PURE__ */ jsxs(
8596
8611
  "div",
@@ -8669,15 +8684,15 @@ var buttonGroupVariants = cva(
8669
8684
  }
8670
8685
  }
8671
8686
  );
8672
- var ButtonGroup = React24.forwardRef(
8687
+ var ButtonGroup = React25.forwardRef(
8673
8688
  ({ className, orientation, attached, size, variant, children, ...props }, ref) => {
8674
8689
  const shouldPropagate = size !== void 0 || variant !== void 0;
8675
- const enhancedChildren = shouldPropagate ? React24.Children.map(children, (child) => {
8676
- if (!React24.isValidElement(child) || child.type !== Button) {
8690
+ const enhancedChildren = shouldPropagate ? React25.Children.map(children, (child) => {
8691
+ if (!React25.isValidElement(child) || child.type !== Button) {
8677
8692
  return child;
8678
8693
  }
8679
8694
  const childProps = child.props;
8680
- return React24.cloneElement(child, {
8695
+ return React25.cloneElement(child, {
8681
8696
  size: childProps.size ?? size,
8682
8697
  variant: childProps.variant ?? variant
8683
8698
  });
@@ -8695,11 +8710,11 @@ var ButtonGroup = React24.forwardRef(
8695
8710
  }
8696
8711
  );
8697
8712
  ButtonGroup.displayName = "ButtonGroup";
8698
- var ToggleGroupContext = React24.createContext({
8713
+ var ToggleGroupContext = React25.createContext({
8699
8714
  size: "default",
8700
8715
  variant: "default"
8701
8716
  });
8702
- 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(
8703
8718
  ToggleGroupPrimitive.Root,
8704
8719
  {
8705
8720
  ref,
@@ -8716,8 +8731,8 @@ var ToggleGroup = React24.forwardRef(({ className, variant, size, children, ...p
8716
8731
  }
8717
8732
  ));
8718
8733
  ToggleGroup.displayName = "ToggleGroup";
8719
- var ToggleGroupItem = React24.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8720
- const context = React24.useContext(ToggleGroupContext);
8734
+ var ToggleGroupItem = React25.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8735
+ const context = React25.useContext(ToggleGroupContext);
8721
8736
  return /* @__PURE__ */ jsx(
8722
8737
  ToggleGroupPrimitive.Item,
8723
8738
  {