@moontra/moonui 6.8.0 → 6.9.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 React23 from 'react';
4
- import React23__default, { useState, useCallback, useEffect } from 'react';
3
+ import * as React12 from 'react';
4
+ import React12__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';
@@ -46,14 +46,14 @@ function readableText(node) {
46
46
  if (Array.isArray(node)) {
47
47
  return node.map(readableText).filter(Boolean).join(" ").trim();
48
48
  }
49
- if (React23.isValidElement(node)) {
49
+ if (React12.isValidElement(node)) {
50
50
  const props = node.props;
51
51
  return readableText(props.children);
52
52
  }
53
53
  return "";
54
54
  }
55
55
  var Accordion = AccordionPrimitive.Root;
56
- var AccordionItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
56
+ var AccordionItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
57
57
  AccordionPrimitive.Item,
58
58
  {
59
59
  ref,
@@ -62,7 +62,7 @@ var AccordionItem = React23.forwardRef(({ className, ...props }, ref) => /* @__P
62
62
  }
63
63
  ));
64
64
  AccordionItem.displayName = "AccordionItem";
65
- var AccordionTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
65
+ var AccordionTrigger = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
66
66
  AccordionPrimitive.Trigger,
67
67
  {
68
68
  ref,
@@ -80,7 +80,7 @@ var AccordionTrigger = React23.forwardRef(({ className, children, ...props }, re
80
80
  }
81
81
  ) }));
82
82
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
83
- var AccordionContent = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
83
+ var AccordionContent = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
84
84
  AccordionPrimitive.Content,
85
85
  {
86
86
  ref,
@@ -133,7 +133,7 @@ var alertVariants = cva(
133
133
  }
134
134
  }
135
135
  );
136
- var Alert = React23.forwardRef(
136
+ var Alert = React12.forwardRef(
137
137
  ({
138
138
  className,
139
139
  variant = "default",
@@ -145,7 +145,7 @@ var Alert = React23.forwardRef(
145
145
  children,
146
146
  ...props
147
147
  }, ref) => {
148
- const Icon2 = React23.useMemo(() => {
148
+ const Icon2 = React12.useMemo(() => {
149
149
  switch (variant) {
150
150
  case "success":
151
151
  return Check;
@@ -193,7 +193,7 @@ var Alert = React23.forwardRef(
193
193
  }
194
194
  );
195
195
  Alert.displayName = "Alert";
196
- var AlertTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
196
+ var AlertTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
197
197
  "h5",
198
198
  {
199
199
  ref,
@@ -206,7 +206,7 @@ var AlertTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
206
206
  }
207
207
  ));
208
208
  AlertTitle.displayName = "AlertTitle";
209
- var AlertDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
209
+ var AlertDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
210
210
  "div",
211
211
  {
212
212
  ref,
@@ -248,7 +248,7 @@ var aspectRatioVariants = cva(
248
248
  }
249
249
  }
250
250
  );
251
- var AspectRatio = React23.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
251
+ var AspectRatio = React12.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
252
252
  "div",
253
253
  {
254
254
  ref,
@@ -297,7 +297,7 @@ var avatarVariants = cva(
297
297
  }
298
298
  }
299
299
  );
300
- var Avatar = React23.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
300
+ var Avatar = React12.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
301
301
  AvatarPrimitive.Root,
302
302
  {
303
303
  ref,
@@ -306,7 +306,7 @@ var Avatar = React23.forwardRef(({ className, size, radius, variant, ...props },
306
306
  }
307
307
  ));
308
308
  Avatar.displayName = AvatarPrimitive.Root.displayName;
309
- var AvatarImage = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
309
+ var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
310
310
  AvatarPrimitive.Image,
311
311
  {
312
312
  ref,
@@ -315,7 +315,7 @@ var AvatarImage = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
315
315
  }
316
316
  ));
317
317
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
318
- var AvatarFallback = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
318
+ var AvatarFallback = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
319
319
  AvatarPrimitive.Fallback,
320
320
  {
321
321
  ref,
@@ -327,9 +327,9 @@ var AvatarFallback = React23.forwardRef(({ className, ...props }, ref) => /* @__
327
327
  }
328
328
  ));
329
329
  AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
330
- var AvatarGroup = React23.forwardRef(
330
+ var AvatarGroup = React12.forwardRef(
331
331
  ({ className, max, children, overlapOffset = -8, ...props }, ref) => {
332
- const childrenArray = React23.Children.toArray(children);
332
+ const childrenArray = React12.Children.toArray(children);
333
333
  const visibleAvatars = max ? childrenArray.slice(0, max) : childrenArray;
334
334
  const remainingCount = max ? Math.max(0, childrenArray.length - max) : 0;
335
335
  return /* @__PURE__ */ jsx(
@@ -460,7 +460,7 @@ var badgeVariants = cva(
460
460
  }
461
461
  }
462
462
  );
463
- var Badge = React23.forwardRef(({
463
+ var Badge = React12.forwardRef(({
464
464
  className,
465
465
  variant,
466
466
  size,
@@ -568,8 +568,8 @@ var breadcrumbVariants = cva(
568
568
  }
569
569
  }
570
570
  );
571
- var BreadcrumbSeparatorContext = React23.createContext(void 0);
572
- var Breadcrumb = React23.forwardRef(
571
+ var BreadcrumbSeparatorContext = React12.createContext(void 0);
572
+ var Breadcrumb = React12.forwardRef(
573
573
  // #309: `separator` ve `showHomeIcon` ESKİDEN destructure EDİLMİYORDU → `{...props}` ile
574
574
  // `<nav>`'a öznitelik olarak basılıyor, React uyarı veriyordu. İkisi de artık ayrılıyor.
575
575
  ({ className, variant, size, separator, showHomeIcon: _showHomeIcon, ...props }, ref) => /* @__PURE__ */ jsx(BreadcrumbSeparatorContext.Provider, { value: separator, children: /* @__PURE__ */ jsx(
@@ -583,9 +583,9 @@ var Breadcrumb = React23.forwardRef(
583
583
  ) })
584
584
  );
585
585
  Breadcrumb.displayName = "Breadcrumb";
586
- var BreadcrumbList = React23.forwardRef(
586
+ var BreadcrumbList = React12.forwardRef(
587
587
  ({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
588
- const childrenArray = React23.Children.toArray(props.children).filter(Boolean);
588
+ const childrenArray = React12.Children.toArray(props.children).filter(Boolean);
589
589
  const childCount = childrenArray.length;
590
590
  if (collapsed && childCount > collapsedWidth) {
591
591
  const firstItem = childrenArray[0];
@@ -621,7 +621,7 @@ var BreadcrumbList = React23.forwardRef(
621
621
  }
622
622
  );
623
623
  BreadcrumbList.displayName = "BreadcrumbList";
624
- var BreadcrumbItem = React23.forwardRef(
624
+ var BreadcrumbItem = React12.forwardRef(
625
625
  ({ className, isCurrent, href, asChild = false, children, ...props }, ref) => {
626
626
  const Comp = asChild ? Slot : href ? "a" : "span";
627
627
  const itemProps = !asChild && href ? { href } : {};
@@ -654,7 +654,7 @@ var BreadcrumbSeparator = ({
654
654
  icon,
655
655
  ...props
656
656
  }) => {
657
- const rootSeparator = React23.useContext(BreadcrumbSeparatorContext);
657
+ const rootSeparator = React12.useContext(BreadcrumbSeparatorContext);
658
658
  return (
659
659
  // Ayraç tümüyle dekoratiftir → `aria-hidden` burada DOĞRU (ellipsis'in aksine içinde
660
660
  // ekran-okuyucuya ait metin yok).
@@ -697,7 +697,7 @@ var BreadcrumbEllipsis = ({
697
697
  )
698
698
  );
699
699
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
700
- var BreadcrumbLink = React23.forwardRef(
700
+ var BreadcrumbLink = React12.forwardRef(
701
701
  ({ className, href, ...props }, ref) => /* @__PURE__ */ jsx(
702
702
  "a",
703
703
  {
@@ -712,7 +712,7 @@ var BreadcrumbLink = React23.forwardRef(
712
712
  )
713
713
  );
714
714
  BreadcrumbLink.displayName = "BreadcrumbLink";
715
- var BreadcrumbPage = React23.forwardRef(
715
+ var BreadcrumbPage = React12.forwardRef(
716
716
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
717
717
  "span",
718
718
  {
@@ -875,7 +875,7 @@ var buttonVariants = cva(
875
875
  }
876
876
  }
877
877
  );
878
- var Button = React23.forwardRef(
878
+ var Button = React12.forwardRef(
879
879
  ({
880
880
  className,
881
881
  variant,
@@ -1090,7 +1090,7 @@ var cardVariants = cva(
1090
1090
  }
1091
1091
  }
1092
1092
  );
1093
- var Card = React23.forwardRef(
1093
+ var Card = React12.forwardRef(
1094
1094
  ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
1095
1095
  if (interactive && microInteraction !== "none") {
1096
1096
  const interactionProps = {
@@ -1118,7 +1118,7 @@ var Card = React23.forwardRef(
1118
1118
  }
1119
1119
  );
1120
1120
  Card.displayName = "Card";
1121
- var CardHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1121
+ var CardHeader = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1122
1122
  "div",
1123
1123
  {
1124
1124
  ref,
@@ -1127,7 +1127,7 @@ var CardHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
1127
1127
  }
1128
1128
  ));
1129
1129
  CardHeader.displayName = "CardHeader";
1130
- var CardTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1130
+ var CardTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1131
1131
  "h3",
1132
1132
  {
1133
1133
  ref,
@@ -1136,7 +1136,7 @@ var CardTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1136
1136
  }
1137
1137
  ));
1138
1138
  CardTitle.displayName = "CardTitle";
1139
- var CardDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1139
+ var CardDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1140
1140
  "p",
1141
1141
  {
1142
1142
  ref,
@@ -1145,9 +1145,9 @@ var CardDescription = React23.forwardRef(({ className, ...props }, ref) => /* @_
1145
1145
  }
1146
1146
  ));
1147
1147
  CardDescription.displayName = "CardDescription";
1148
- var CardContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1148
+ var CardContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1149
1149
  CardContent.displayName = "CardContent";
1150
- var CardFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1150
+ var CardFooter = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1151
1151
  "div",
1152
1152
  {
1153
1153
  ref,
@@ -1168,7 +1168,7 @@ function Calendar({
1168
1168
  defaultMonth,
1169
1169
  ...props
1170
1170
  }) {
1171
- const [currentMonth, setCurrentMonth] = React23.useState(
1171
+ const [currentMonth, setCurrentMonth] = React12.useState(
1172
1172
  defaultMonth || selected && selected || /* @__PURE__ */ new Date()
1173
1173
  );
1174
1174
  const weekDays = [
@@ -1382,9 +1382,9 @@ var formatCardNumber = (value, cardType) => {
1382
1382
  }
1383
1383
  return formatted;
1384
1384
  };
1385
- var CardNumberInput = React23.forwardRef(
1385
+ var CardNumberInput = React12.forwardRef(
1386
1386
  ({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
1387
- const [cardType, setCardType] = React23.useState("unknown");
1387
+ const [cardType, setCardType] = React12.useState("unknown");
1388
1388
  const handleChange = (e) => {
1389
1389
  const rawValue = e.target.value.replace(/\D/g, "");
1390
1390
  const detectedType = getCardType(rawValue);
@@ -1415,7 +1415,7 @@ var CardNumberInput = React23.forwardRef(
1415
1415
  }
1416
1416
  );
1417
1417
  CardNumberInput.displayName = "CardNumberInput";
1418
- var CardExpiryInput = React23.forwardRef(
1418
+ var CardExpiryInput = React12.forwardRef(
1419
1419
  ({ className, value = "", onChange, size, ...props }, ref) => {
1420
1420
  const handleChange = (e) => {
1421
1421
  let rawValue = e.target.value.replace(/\D/g, "");
@@ -1453,7 +1453,7 @@ var CardExpiryInput = React23.forwardRef(
1453
1453
  }
1454
1454
  );
1455
1455
  CardExpiryInput.displayName = "CardExpiryInput";
1456
- var CardCVCInput = React23.forwardRef(
1456
+ var CardCVCInput = React12.forwardRef(
1457
1457
  ({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
1458
1458
  const maxLength = cardType === "amex" ? 4 : 3;
1459
1459
  const handleChange = (e) => {
@@ -1478,7 +1478,7 @@ var CardCVCInput = React23.forwardRef(
1478
1478
  }
1479
1479
  );
1480
1480
  CardCVCInput.displayName = "CardCVCInput";
1481
- var CardZipInput = React23.forwardRef(
1481
+ var CardZipInput = React12.forwardRef(
1482
1482
  ({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
1483
1483
  const handleChange = (e) => {
1484
1484
  let rawValue = e.target.value;
@@ -1529,15 +1529,15 @@ var CardZipInput = React23.forwardRef(
1529
1529
  }
1530
1530
  );
1531
1531
  CardZipInput.displayName = "CardZipInput";
1532
- var CarouselContext = React23.createContext(null);
1532
+ var CarouselContext = React12.createContext(null);
1533
1533
  function useCarousel() {
1534
- const context = React23.useContext(CarouselContext);
1534
+ const context = React12.useContext(CarouselContext);
1535
1535
  if (!context) {
1536
1536
  throw new Error("useCarousel must be used within a <Carousel />");
1537
1537
  }
1538
1538
  return context;
1539
1539
  }
1540
- var Carousel = React23.forwardRef(
1540
+ var Carousel = React12.forwardRef(
1541
1541
  ({
1542
1542
  orientation = "horizontal",
1543
1543
  opts,
@@ -1555,21 +1555,28 @@ var Carousel = React23.forwardRef(
1555
1555
  },
1556
1556
  plugins
1557
1557
  );
1558
- const [canScrollPrev, setCanScrollPrev] = React23.useState(false);
1559
- const [canScrollNext, setCanScrollNext] = React23.useState(false);
1560
- const onSelect = React23.useCallback((emblaApi) => {
1558
+ const [canScrollPrev, setCanScrollPrev] = React12.useState(false);
1559
+ const [canScrollNext, setCanScrollNext] = React12.useState(false);
1560
+ const [slideState, setSlideState] = React12.useState(
1561
+ { current: 0, total: 0 }
1562
+ );
1563
+ const onSelect = React12.useCallback((emblaApi) => {
1561
1564
  if (!emblaApi)
1562
1565
  return;
1563
1566
  setCanScrollPrev(emblaApi.canScrollPrev());
1564
1567
  setCanScrollNext(emblaApi.canScrollNext());
1568
+ setSlideState({
1569
+ current: emblaApi.selectedScrollSnap() + 1,
1570
+ total: emblaApi.scrollSnapList().length
1571
+ });
1565
1572
  }, []);
1566
- const scrollPrev = React23.useCallback(() => {
1573
+ const scrollPrev = React12.useCallback(() => {
1567
1574
  api?.scrollPrev();
1568
1575
  }, [api]);
1569
- const scrollNext = React23.useCallback(() => {
1576
+ const scrollNext = React12.useCallback(() => {
1570
1577
  api?.scrollNext();
1571
1578
  }, [api]);
1572
- const handleKeyDown = React23.useCallback(
1579
+ const handleKeyDown = React12.useCallback(
1573
1580
  (event) => {
1574
1581
  const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
1575
1582
  const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
@@ -1583,12 +1590,12 @@ var Carousel = React23.forwardRef(
1583
1590
  },
1584
1591
  [resolvedOrientation, scrollPrev, scrollNext]
1585
1592
  );
1586
- React23.useEffect(() => {
1593
+ React12.useEffect(() => {
1587
1594
  if (!api || !setApi)
1588
1595
  return;
1589
1596
  setApi(api);
1590
1597
  }, [api, setApi]);
1591
- React23.useEffect(() => {
1598
+ React12.useEffect(() => {
1592
1599
  if (!api)
1593
1600
  return;
1594
1601
  onSelect(api);
@@ -1612,7 +1619,7 @@ var Carousel = React23.forwardRef(
1612
1619
  canScrollNext,
1613
1620
  orientation: resolvedOrientation
1614
1621
  },
1615
- children: /* @__PURE__ */ jsx(
1622
+ children: /* @__PURE__ */ jsxs(
1616
1623
  "div",
1617
1624
  {
1618
1625
  ref,
@@ -1621,7 +1628,10 @@ var Carousel = React23.forwardRef(
1621
1628
  role: "region",
1622
1629
  "aria-roledescription": "carousel",
1623
1630
  ...props,
1624
- children
1631
+ children: [
1632
+ children,
1633
+ /* @__PURE__ */ jsx("div", { "aria-live": "polite", "aria-atomic": "true", className: "sr-only", children: slideState.total > 0 ? `Slide ${slideState.current} of ${slideState.total}` : "" })
1634
+ ]
1625
1635
  }
1626
1636
  )
1627
1637
  }
@@ -1640,7 +1650,7 @@ var carouselContentVariants = cva("flex", {
1640
1650
  orientation: "horizontal"
1641
1651
  }
1642
1652
  });
1643
- var CarouselContent = React23.forwardRef(
1653
+ var CarouselContent = React12.forwardRef(
1644
1654
  ({ className, ...props }, ref) => {
1645
1655
  const { carouselRef, orientation } = useCarousel();
1646
1656
  return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
@@ -1665,7 +1675,7 @@ var carouselItemVariants = cva("min-w-0 shrink-0 grow-0 basis-full", {
1665
1675
  orientation: "horizontal"
1666
1676
  }
1667
1677
  });
1668
- var CarouselItem = React23.forwardRef(
1678
+ var CarouselItem = React12.forwardRef(
1669
1679
  ({ className, ...props }, ref) => {
1670
1680
  const { orientation } = useCarousel();
1671
1681
  return /* @__PURE__ */ jsx(
@@ -1681,7 +1691,7 @@ var CarouselItem = React23.forwardRef(
1681
1691
  }
1682
1692
  );
1683
1693
  CarouselItem.displayName = "CarouselItem";
1684
- var CarouselPrevious = React23.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1694
+ var CarouselPrevious = React12.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1685
1695
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
1686
1696
  return /* @__PURE__ */ jsxs(
1687
1697
  Button,
@@ -1706,7 +1716,7 @@ var CarouselPrevious = React23.forwardRef(({ className, variant = "outline", siz
1706
1716
  );
1707
1717
  });
1708
1718
  CarouselPrevious.displayName = "CarouselPrevious";
1709
- var CarouselNext = React23.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1719
+ var CarouselNext = React12.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1710
1720
  const { orientation, scrollNext, canScrollNext } = useCarousel();
1711
1721
  return /* @__PURE__ */ jsxs(
1712
1722
  Button,
@@ -1769,7 +1779,7 @@ var checkboxVariants = cva(
1769
1779
  }
1770
1780
  }
1771
1781
  );
1772
- var Checkbox = React23.forwardRef(({
1782
+ var Checkbox = React12.forwardRef(({
1773
1783
  className,
1774
1784
  variant,
1775
1785
  size,
@@ -1802,7 +1812,7 @@ var Checkbox = React23.forwardRef(({
1802
1812
  );
1803
1813
  });
1804
1814
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1805
- var CheckboxGroup = React23.forwardRef(
1815
+ var CheckboxGroup = React12.forwardRef(
1806
1816
  ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
1807
1817
  return /* @__PURE__ */ jsx(
1808
1818
  "div",
@@ -1822,7 +1832,7 @@ var CheckboxGroup = React23.forwardRef(
1822
1832
  }
1823
1833
  );
1824
1834
  CheckboxGroup.displayName = "CheckboxGroup";
1825
- var CheckboxLabel = React23.forwardRef(
1835
+ var CheckboxLabel = React12.forwardRef(
1826
1836
  ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
1827
1837
  return /* @__PURE__ */ jsx(
1828
1838
  "label",
@@ -1842,14 +1852,14 @@ var CheckboxLabel = React23.forwardRef(
1842
1852
  }
1843
1853
  );
1844
1854
  CheckboxLabel.displayName = "CheckboxLabel";
1845
- var CheckboxWithLabel = React23.forwardRef(({
1855
+ var CheckboxWithLabel = React12.forwardRef(({
1846
1856
  id,
1847
1857
  label,
1848
1858
  labelPosition = "end",
1849
1859
  labelClassName,
1850
1860
  ...checkboxProps
1851
1861
  }, ref) => {
1852
- const generatedId = React23.useId();
1862
+ const generatedId = React12.useId();
1853
1863
  const checkboxId = id || generatedId;
1854
1864
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
1855
1865
  labelPosition === "start" && /* @__PURE__ */ jsx(
@@ -1899,7 +1909,7 @@ var collapsibleTriggerVariants = cva(
1899
1909
  }
1900
1910
  }
1901
1911
  );
1902
- var CollapsibleTrigger = React23.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1912
+ var CollapsibleTrigger = React12.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1903
1913
  if (asChild) {
1904
1914
  return /* @__PURE__ */ jsx(
1905
1915
  CollapsiblePrimitive.Trigger,
@@ -1948,7 +1958,7 @@ var collapsibleContentVariants = cva(
1948
1958
  }
1949
1959
  }
1950
1960
  );
1951
- var CollapsibleContent = React23.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1961
+ var CollapsibleContent = React12.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1952
1962
  CollapsiblePrimitive.Content,
1953
1963
  {
1954
1964
  ref,
@@ -2031,7 +2041,7 @@ var inputVariants = cva(
2031
2041
  }
2032
2042
  }
2033
2043
  );
2034
- var Input = React23.forwardRef(
2044
+ var Input = React12.forwardRef(
2035
2045
  ({
2036
2046
  className,
2037
2047
  wrapperClassName,
@@ -2058,10 +2068,10 @@ var Input = React23.forwardRef(
2058
2068
  placeholder,
2059
2069
  ...props
2060
2070
  }, ref) => {
2061
- const reactId = React23.useId();
2071
+ const reactId = React12.useId();
2062
2072
  const fieldId = props.id || reactId;
2063
- const [isFocused, setIsFocused] = React23.useState(false);
2064
- const [internalValue, setInternalValue] = React23.useState(value || defaultValue || "");
2073
+ const [isFocused, setIsFocused] = React12.useState(false);
2074
+ const [internalValue, setInternalValue] = React12.useState(value || defaultValue || "");
2065
2075
  const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
2066
2076
  const isLabelActive = isFocused || hasValue;
2067
2077
  const handleFocus = (e) => {
@@ -2076,7 +2086,7 @@ var Input = React23.forwardRef(
2076
2086
  setInternalValue(e.target.value);
2077
2087
  onChange?.(e);
2078
2088
  };
2079
- React23.useEffect(() => {
2089
+ React12.useEffect(() => {
2080
2090
  if (value !== void 0) {
2081
2091
  setInternalValue(value);
2082
2092
  }
@@ -2160,7 +2170,7 @@ Input.displayName = "Input";
2160
2170
  var labelVariants = cva(
2161
2171
  "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"
2162
2172
  );
2163
- var Label = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2173
+ var Label = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2164
2174
  LabelPrimitive.Root,
2165
2175
  {
2166
2176
  ref,
@@ -2221,7 +2231,7 @@ var popoverContentVariants = cva(
2221
2231
  var Popover = PopoverPrimitive.Root;
2222
2232
  var PopoverTrigger = PopoverPrimitive.Trigger;
2223
2233
  var PopoverAnchor = PopoverPrimitive.Anchor;
2224
- var PopoverContent = React23.forwardRef(({
2234
+ var PopoverContent = React12.forwardRef(({
2225
2235
  className,
2226
2236
  variant,
2227
2237
  size,
@@ -2295,8 +2305,8 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
2295
2305
  }
2296
2306
  );
2297
2307
  PopoverFooter.displayName = "PopoverFooter";
2298
- var TabsOrientationContext = React23.createContext("horizontal");
2299
- var Tabs = React23.forwardRef(({ vertical = false, orientation, className, ...props }, ref) => {
2308
+ var TabsOrientationContext = React12.createContext("horizontal");
2309
+ var Tabs = React12.forwardRef(({ vertical = false, orientation, className, ...props }, ref) => {
2300
2310
  const resolvedOrientation = orientation ?? (vertical ? "vertical" : "horizontal");
2301
2311
  return /* @__PURE__ */ jsx(TabsOrientationContext.Provider, { value: resolvedOrientation, children: /* @__PURE__ */ jsx(
2302
2312
  TabsPrimitive.Root,
@@ -2340,8 +2350,8 @@ var tabsListVariants = cva(
2340
2350
  }
2341
2351
  }
2342
2352
  );
2343
- var TabsList = React23.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2344
- const contextOrientation = React23.useContext(TabsOrientationContext);
2353
+ var TabsList = React12.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2354
+ const contextOrientation = React12.useContext(TabsOrientationContext);
2345
2355
  const resolvedOrientation = orientation ?? contextOrientation;
2346
2356
  return /* @__PURE__ */ jsx(
2347
2357
  TabsPrimitive.List,
@@ -2385,7 +2395,7 @@ var tabsTriggerVariants = cva(
2385
2395
  }
2386
2396
  }
2387
2397
  );
2388
- var TabsTrigger = React23.forwardRef(({
2398
+ var TabsTrigger = React12.forwardRef(({
2389
2399
  className,
2390
2400
  variant,
2391
2401
  size,
@@ -2398,7 +2408,7 @@ var TabsTrigger = React23.forwardRef(({
2398
2408
  children,
2399
2409
  ...props
2400
2410
  }, ref) => {
2401
- const contextOrientation = React23.useContext(TabsOrientationContext);
2411
+ const contextOrientation = React12.useContext(TabsOrientationContext);
2402
2412
  const resolvedOrientation = orientation ?? contextOrientation;
2403
2413
  return /* @__PURE__ */ jsxs(
2404
2414
  TabsPrimitive.Trigger,
@@ -2421,7 +2431,7 @@ var TabsTrigger = React23.forwardRef(({
2421
2431
  );
2422
2432
  });
2423
2433
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
2424
- var TabsContent = React23.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2434
+ var TabsContent = React12.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2425
2435
  TabsPrimitive.Content,
2426
2436
  {
2427
2437
  ref,
@@ -2515,7 +2525,7 @@ var sliderThumbVariants = cva(
2515
2525
  }
2516
2526
  }
2517
2527
  );
2518
- var Slider = React23.forwardRef(({
2528
+ var Slider = React12.forwardRef(({
2519
2529
  className,
2520
2530
  size,
2521
2531
  trackVariant,
@@ -2531,10 +2541,10 @@ var Slider = React23.forwardRef(({
2531
2541
  disabled,
2532
2542
  ...props
2533
2543
  }, ref) => {
2534
- const [sliderValue, setSliderValue] = React23.useState(
2544
+ const [sliderValue, setSliderValue] = React12.useState(
2535
2545
  value || defaultValue || [0]
2536
2546
  );
2537
- React23.useEffect(() => {
2547
+ React12.useEffect(() => {
2538
2548
  if (value !== void 0) {
2539
2549
  setSliderValue(value);
2540
2550
  }
@@ -2549,7 +2559,7 @@ var Slider = React23.forwardRef(({
2549
2559
  const calculateThumbPercent = (value2, min2, max2) => {
2550
2560
  return (value2 - min2) / (max2 - min2) * 100;
2551
2561
  };
2552
- const trackRef = React23.useRef(null);
2562
+ const trackRef = React12.useRef(null);
2553
2563
  const min = props.min || 0;
2554
2564
  const max = props.max || 100;
2555
2565
  const step = props.step || 1;
@@ -2861,14 +2871,14 @@ function ColorPicker({
2861
2871
  disabled,
2862
2872
  ...props
2863
2873
  }) {
2864
- const [open, setOpen] = React23.useState(false);
2865
- const [color, setColor] = React23.useState(value);
2866
- const [opacity, setOpacity] = React23.useState(100);
2867
- const [copied, setCopied] = React23.useState(false);
2868
- const [inputValue, setInputValue] = React23.useState(value);
2869
- const hsl = React23.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2870
- const rgb = React23.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2871
- React23.useEffect(() => {
2874
+ const [open, setOpen] = React12.useState(false);
2875
+ const [color, setColor] = React12.useState(value);
2876
+ const [opacity, setOpacity] = React12.useState(100);
2877
+ const [copied, setCopied] = React12.useState(false);
2878
+ const [inputValue, setInputValue] = React12.useState(value);
2879
+ const hsl = React12.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2880
+ const rgb = React12.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2881
+ React12.useEffect(() => {
2872
2882
  setColor(value);
2873
2883
  setInputValue(value);
2874
2884
  }, [value]);
@@ -3263,7 +3273,7 @@ function GradientPicker({
3263
3273
  onChange,
3264
3274
  className
3265
3275
  }) {
3266
- const [gradient, setGradient] = React23.useState(value);
3276
+ const [gradient, setGradient] = React12.useState(value);
3267
3277
  const handleChange = (field, newValue) => {
3268
3278
  const newGradient = { ...gradient, [field]: newValue };
3269
3279
  setGradient(newGradient);
@@ -3349,7 +3359,7 @@ var overlayVariants = cva(
3349
3359
  }
3350
3360
  }
3351
3361
  );
3352
- var DialogOverlay = React23.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3362
+ var DialogOverlay = React12.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3353
3363
  DialogPrimitive.Overlay,
3354
3364
  {
3355
3365
  ref,
@@ -3408,7 +3418,7 @@ var dialogContentVariants = cva(
3408
3418
  }
3409
3419
  }
3410
3420
  );
3411
- var DialogContent = React23.forwardRef(
3421
+ var DialogContent = React12.forwardRef(
3412
3422
  ({
3413
3423
  className,
3414
3424
  children,
@@ -3521,7 +3531,7 @@ var DialogFooter = ({
3521
3531
  }
3522
3532
  );
3523
3533
  DialogFooter.displayName = "DialogFooter";
3524
- var DialogTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3534
+ var DialogTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3525
3535
  DialogPrimitive.Title,
3526
3536
  {
3527
3537
  ref,
@@ -3533,7 +3543,7 @@ var DialogTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
3533
3543
  }
3534
3544
  ));
3535
3545
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
3536
- var DialogDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3546
+ var DialogDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3537
3547
  DialogPrimitive.Description,
3538
3548
  {
3539
3549
  ref,
@@ -3545,7 +3555,7 @@ var DialogDescription = React23.forwardRef(({ className, ...props }, ref) => /*
3545
3555
  }
3546
3556
  ));
3547
3557
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
3548
- var DialogForm = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3558
+ var DialogForm = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3549
3559
  "form",
3550
3560
  {
3551
3561
  ref,
@@ -3575,7 +3585,7 @@ var commandVariants = cva(
3575
3585
  }
3576
3586
  }
3577
3587
  );
3578
- var Command = React23.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3588
+ var Command = React12.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3579
3589
  Command$1,
3580
3590
  {
3581
3591
  ref,
@@ -3597,7 +3607,7 @@ var CommandDialog = ({
3597
3607
  ), children })
3598
3608
  ] }) });
3599
3609
  };
3600
- var CommandInput = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3610
+ var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3601
3611
  /* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
3602
3612
  /* @__PURE__ */ jsx(
3603
3613
  Command$1.Input,
@@ -3612,7 +3622,7 @@ var CommandInput = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
3612
3622
  )
3613
3623
  ] }));
3614
3624
  CommandInput.displayName = "CommandInput";
3615
- var CommandList = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3625
+ var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3616
3626
  Command$1.List,
3617
3627
  {
3618
3628
  ref,
@@ -3621,7 +3631,7 @@ var CommandList = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
3621
3631
  }
3622
3632
  ));
3623
3633
  CommandList.displayName = "CommandList";
3624
- var CommandEmpty = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3634
+ var CommandEmpty = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3625
3635
  Command$1.Empty,
3626
3636
  {
3627
3637
  ref,
@@ -3630,7 +3640,7 @@ var CommandEmpty = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
3630
3640
  }
3631
3641
  ));
3632
3642
  CommandEmpty.displayName = "CommandEmpty";
3633
- var CommandGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3643
+ var CommandGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3634
3644
  Command$1.Group,
3635
3645
  {
3636
3646
  ref,
@@ -3642,16 +3652,17 @@ var CommandGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
3642
3652
  }
3643
3653
  ));
3644
3654
  CommandGroup.displayName = "CommandGroup";
3645
- var CommandSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3655
+ var CommandSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3646
3656
  Command$1.Separator,
3647
3657
  {
3648
3658
  ref,
3659
+ "aria-hidden": "true",
3649
3660
  className: cn("moonui-theme", "-mx-1 h-px bg-border", className),
3650
3661
  ...props
3651
3662
  }
3652
3663
  ));
3653
3664
  CommandSeparator.displayName = "CommandSeparator";
3654
- var CommandItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3665
+ var CommandItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3655
3666
  Command$1.Item,
3656
3667
  {
3657
3668
  ref,
@@ -3679,7 +3690,7 @@ var CommandShortcut = ({
3679
3690
  );
3680
3691
  };
3681
3692
  CommandShortcut.displayName = "CommandShortcut";
3682
- var TableSortContext = React23.createContext(null);
3693
+ var TableSortContext = React12.createContext(null);
3683
3694
  function nextSortDirection(current) {
3684
3695
  if (current === "asc")
3685
3696
  return "desc";
@@ -3710,7 +3721,7 @@ var tableVariants = cva(
3710
3721
  }
3711
3722
  }
3712
3723
  );
3713
- var Table = React23.forwardRef(({
3724
+ var Table = React12.forwardRef(({
3714
3725
  className,
3715
3726
  variant,
3716
3727
  size,
@@ -3733,15 +3744,15 @@ var Table = React23.forwardRef(({
3733
3744
  ...props
3734
3745
  }, ref) => {
3735
3746
  const striped = variant === "striped";
3736
- const sortContextValue = React23.useMemo(
3747
+ const sortContextValue = React12.useMemo(
3737
3748
  () => ({ sortColumn, sortDirection, onSortChange }),
3738
3749
  [sortColumn, sortDirection, onSortChange]
3739
3750
  );
3740
- const childrenWithProps = React23.Children.map(props.children, (child) => {
3741
- if (React23.isValidElement(child)) {
3751
+ const childrenWithProps = React12.Children.map(props.children, (child) => {
3752
+ if (React12.isValidElement(child)) {
3742
3753
  if (child.type === "tbody") {
3743
3754
  const tbodyProps = child.props;
3744
- return React23.cloneElement(child, {
3755
+ return React12.cloneElement(child, {
3745
3756
  className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
3746
3757
  });
3747
3758
  }
@@ -3766,10 +3777,10 @@ var Table = React23.forwardRef(({
3766
3777
  ] });
3767
3778
  });
3768
3779
  Table.displayName = "Table";
3769
- var TableHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3780
+ var TableHeader = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3770
3781
  TableHeader.displayName = "TableHeader";
3771
- var TableBody = React23.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3772
- const hasChildren = React23.Children.count(children) > 0;
3782
+ var TableBody = React12.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3783
+ const hasChildren = React12.Children.count(children) > 0;
3773
3784
  return /* @__PURE__ */ jsx(
3774
3785
  "tbody",
3775
3786
  {
@@ -3781,7 +3792,7 @@ var TableBody = React23.forwardRef(({ className, emptyContent, emptyMessage = "N
3781
3792
  );
3782
3793
  });
3783
3794
  TableBody.displayName = "TableBody";
3784
- var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3795
+ var TableFooter = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3785
3796
  "tfoot",
3786
3797
  {
3787
3798
  ref,
@@ -3790,7 +3801,7 @@ var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
3790
3801
  }
3791
3802
  ));
3792
3803
  TableFooter.displayName = "TableFooter";
3793
- var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3804
+ var TableRow = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3794
3805
  "tr",
3795
3806
  {
3796
3807
  ref,
@@ -3802,12 +3813,12 @@ var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3802
3813
  }
3803
3814
  ));
3804
3815
  TableRow.displayName = "TableRow";
3805
- var TableHead = React23.forwardRef(
3816
+ var TableHead = React12.forwardRef(
3806
3817
  ({ className, sortable, sorted, onSort, columnId, align = "left", children, ...props }, ref) => {
3807
- const sortCtx = React23.useContext(TableSortContext);
3818
+ const sortCtx = React12.useContext(TableSortContext);
3808
3819
  const ctxSorted = columnId && sortCtx && sortCtx.sortColumn === columnId ? sortCtx.sortDirection ?? null : null;
3809
3820
  const effectiveSorted = sorted !== void 0 ? sorted : ctxSorted;
3810
- const handleSort = React23.useCallback(() => {
3821
+ const handleSort = React12.useCallback(() => {
3811
3822
  if (onSort) {
3812
3823
  onSort();
3813
3824
  return;
@@ -3918,7 +3929,7 @@ var TableHead = React23.forwardRef(
3918
3929
  }
3919
3930
  );
3920
3931
  TableHead.displayName = "TableHead";
3921
- var TableCell = React23.forwardRef(({ className, align = "left", ...props }, ref) => {
3932
+ var TableCell = React12.forwardRef(({ className, align = "left", ...props }, ref) => {
3922
3933
  const alignmentClass = {
3923
3934
  left: "text-left",
3924
3935
  center: "text-center",
@@ -3934,7 +3945,7 @@ var TableCell = React23.forwardRef(({ className, align = "left", ...props }, ref
3934
3945
  );
3935
3946
  });
3936
3947
  TableCell.displayName = "TableCell";
3937
- var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3948
+ var TableCaption = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3938
3949
  "caption",
3939
3950
  {
3940
3951
  ref,
@@ -3954,8 +3965,8 @@ function DataTableBasic({
3954
3965
  emptyMessage = "No results found.",
3955
3966
  className
3956
3967
  }) {
3957
- const [sorting, setSorting] = React23.useState([]);
3958
- const [globalFilter, setGlobalFilter] = React23.useState("");
3968
+ const [sorting, setSorting] = React12.useState([]);
3969
+ const [globalFilter, setGlobalFilter] = React12.useState("");
3959
3970
  const table = useReactTable({
3960
3971
  data,
3961
3972
  columns,
@@ -4118,7 +4129,7 @@ var datePickerVariants = cva(
4118
4129
  }
4119
4130
  }
4120
4131
  );
4121
- var DatePicker = React23.forwardRef(function DatePicker2({
4132
+ var DatePicker = React12.forwardRef(function DatePicker2({
4122
4133
  className,
4123
4134
  variant,
4124
4135
  size,
@@ -4141,9 +4152,9 @@ var DatePicker = React23.forwardRef(function DatePicker2({
4141
4152
  disabled,
4142
4153
  ...props
4143
4154
  }, ref) {
4144
- const [open, setOpen] = React23.useState(false);
4145
- const [internalDate, setInternalDate] = React23.useState(value);
4146
- React23.useEffect(() => {
4155
+ const [open, setOpen] = React12.useState(false);
4156
+ const [internalDate, setInternalDate] = React12.useState(value);
4157
+ React12.useEffect(() => {
4147
4158
  setInternalDate(value);
4148
4159
  }, [value]);
4149
4160
  const handleSelect = (date) => {
@@ -4291,7 +4302,7 @@ var DatePicker = React23.forwardRef(function DatePicker2({
4291
4302
  ] }) });
4292
4303
  });
4293
4304
  DatePicker.displayName = "DatePicker";
4294
- var DateRangePicker = React23.forwardRef(function DateRangePicker2({
4305
+ var DateRangePicker = React12.forwardRef(function DateRangePicker2({
4295
4306
  className,
4296
4307
  value,
4297
4308
  onChange,
@@ -4300,9 +4311,9 @@ var DateRangePicker = React23.forwardRef(function DateRangePicker2({
4300
4311
  separator = " - ",
4301
4312
  ...props
4302
4313
  }, ref) {
4303
- const [open, setOpen] = React23.useState(false);
4304
- const [internalRange, setInternalRange] = React23.useState(value);
4305
- React23.useEffect(() => {
4314
+ const [open, setOpen] = React12.useState(false);
4315
+ const [internalRange, setInternalRange] = React12.useState(value);
4316
+ React12.useEffect(() => {
4306
4317
  setInternalRange(value);
4307
4318
  }, [value]);
4308
4319
  const handleSelect = (range) => {
@@ -4312,7 +4323,7 @@ var DateRangePicker = React23.forwardRef(function DateRangePicker2({
4312
4323
  setOpen(false);
4313
4324
  }
4314
4325
  };
4315
- const displayValue = React23.useMemo(() => {
4326
+ const displayValue = React12.useMemo(() => {
4316
4327
  if (!internalRange?.from)
4317
4328
  return null;
4318
4329
  if (!internalRange?.to) {
@@ -4360,7 +4371,7 @@ var DateRangePicker = React23.forwardRef(function DateRangePicker2({
4360
4371
  ] });
4361
4372
  });
4362
4373
  DateRangePicker.displayName = "DateRangePicker";
4363
- var DateTimePicker = React23.forwardRef(function DateTimePicker2({
4374
+ var DateTimePicker = React12.forwardRef(function DateTimePicker2({
4364
4375
  value,
4365
4376
  onChange,
4366
4377
  // Saat ayrı bir <select> ile gösterildiği için buton yalnızca TARİHİ yazar;
@@ -4372,8 +4383,8 @@ var DateTimePicker = React23.forwardRef(function DateTimePicker2({
4372
4383
  timeInterval = 15,
4373
4384
  ...props
4374
4385
  }, ref) {
4375
- const [date, setDate] = React23.useState(value);
4376
- const [time, setTime] = React23.useState(
4386
+ const [date, setDate] = React12.useState(value);
4387
+ const [time, setTime] = React12.useState(
4377
4388
  value ? format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
4378
4389
  );
4379
4390
  const handleDateChange = (newDate) => {
@@ -4398,7 +4409,7 @@ var DateTimePicker = React23.forwardRef(function DateTimePicker2({
4398
4409
  onChange?.(newDate);
4399
4410
  }
4400
4411
  };
4401
- const timeOptions = React23.useMemo(() => {
4412
+ const timeOptions = React12.useMemo(() => {
4402
4413
  const options = [];
4403
4414
  for (let h = 0; h < 24; h++) {
4404
4415
  for (let m = 0; m < 60; m += timeInterval) {
@@ -4452,15 +4463,15 @@ var DateTimePicker = React23.forwardRef(function DateTimePicker2({
4452
4463
  ] });
4453
4464
  });
4454
4465
  DateTimePicker.displayName = "DateTimePicker";
4455
- var MonthPicker = React23.forwardRef(function MonthPicker2({
4466
+ var MonthPicker = React12.forwardRef(function MonthPicker2({
4456
4467
  value,
4457
4468
  onChange,
4458
4469
  placeholder = "Pick a month",
4459
4470
  formatString = "MMMM yyyy",
4460
4471
  ...props
4461
4472
  }, ref) {
4462
- const [open, setOpen] = React23.useState(false);
4463
- const [viewDate, setViewDate] = React23.useState(value || /* @__PURE__ */ new Date());
4473
+ const [open, setOpen] = React12.useState(false);
4474
+ const [viewDate, setViewDate] = React12.useState(value || /* @__PURE__ */ new Date());
4464
4475
  const months = [
4465
4476
  "January",
4466
4477
  "February",
@@ -4556,7 +4567,7 @@ function DraggableList({
4556
4567
  className,
4557
4568
  disabled = false
4558
4569
  }) {
4559
- const [draggedIndex, setDraggedIndex] = React23.useState(null);
4570
+ const [draggedIndex, setDraggedIndex] = React12.useState(null);
4560
4571
  const handleDragStart = (e, index) => {
4561
4572
  if (disabled)
4562
4573
  return;
@@ -4608,7 +4619,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
4608
4619
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
4609
4620
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
4610
4621
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
4611
- var DropdownMenuSubTrigger = React23.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4622
+ var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4612
4623
  DropdownMenuPrimitive.SubTrigger,
4613
4624
  {
4614
4625
  ref,
@@ -4625,7 +4636,7 @@ var DropdownMenuSubTrigger = React23.forwardRef(({ className, inset, children, .
4625
4636
  }
4626
4637
  ));
4627
4638
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
4628
- var DropdownMenuSubContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4639
+ var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4629
4640
  DropdownMenuPrimitive.SubContent,
4630
4641
  {
4631
4642
  ref,
@@ -4637,7 +4648,7 @@ var DropdownMenuSubContent = React23.forwardRef(({ className, ...props }, ref) =
4637
4648
  }
4638
4649
  ));
4639
4650
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
4640
- var DropdownMenuContent = React23.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4651
+ var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4641
4652
  DropdownMenuPrimitive.Content,
4642
4653
  {
4643
4654
  ref,
@@ -4650,7 +4661,7 @@ var DropdownMenuContent = React23.forwardRef(({ className, sideOffset = 4, ...pr
4650
4661
  }
4651
4662
  ) }));
4652
4663
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4653
- var DropdownMenuItem = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4664
+ var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4654
4665
  DropdownMenuPrimitive.Item,
4655
4666
  {
4656
4667
  ref,
@@ -4663,7 +4674,7 @@ var DropdownMenuItem = React23.forwardRef(({ className, inset, ...props }, ref)
4663
4674
  }
4664
4675
  ));
4665
4676
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4666
- var DropdownMenuCheckboxItem = React23.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4677
+ var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4667
4678
  DropdownMenuPrimitive.CheckboxItem,
4668
4679
  {
4669
4680
  ref,
@@ -4680,7 +4691,7 @@ var DropdownMenuCheckboxItem = React23.forwardRef(({ className, children, checke
4680
4691
  }
4681
4692
  ));
4682
4693
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
4683
- var DropdownMenuRadioItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4694
+ var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4684
4695
  DropdownMenuPrimitive.RadioItem,
4685
4696
  {
4686
4697
  ref,
@@ -4696,7 +4707,7 @@ var DropdownMenuRadioItem = React23.forwardRef(({ className, children, ...props
4696
4707
  }
4697
4708
  ));
4698
4709
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
4699
- var DropdownMenuLabel = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4710
+ var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4700
4711
  DropdownMenuPrimitive.Label,
4701
4712
  {
4702
4713
  ref,
@@ -4709,7 +4720,7 @@ var DropdownMenuLabel = React23.forwardRef(({ className, inset, ...props }, ref)
4709
4720
  }
4710
4721
  ));
4711
4722
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4712
- var DropdownMenuSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4723
+ var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4713
4724
  DropdownMenuPrimitive.Separator,
4714
4725
  {
4715
4726
  ref,
@@ -4798,7 +4809,7 @@ var progressIndicatorVariants = cva(
4798
4809
  }
4799
4810
  }
4800
4811
  );
4801
- var Progress = React23.forwardRef(({
4812
+ var Progress = React12.forwardRef(({
4802
4813
  className,
4803
4814
  value = 0,
4804
4815
  variant,
@@ -4928,7 +4939,7 @@ var FileItem = ({
4928
4939
  }
4929
4940
  );
4930
4941
  };
4931
- var FileUpload = React23__default.forwardRef(
4942
+ var FileUpload = React12__default.forwardRef(
4932
4943
  ({
4933
4944
  accept = "*",
4934
4945
  multiple = true,
@@ -5151,7 +5162,7 @@ var FileUpload = React23__default.forwardRef(
5151
5162
  }
5152
5163
  );
5153
5164
  FileUpload.displayName = "FileUpload";
5154
- var GestureDrawer = React23__default.forwardRef(
5165
+ var GestureDrawer = React12__default.forwardRef(
5155
5166
  ({
5156
5167
  children,
5157
5168
  isOpen,
@@ -5422,7 +5433,7 @@ function GitHubStarButton({
5422
5433
  }
5423
5434
  );
5424
5435
  }
5425
- var InputOTP = React23.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5436
+ var InputOTP = React12.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5426
5437
  OTPInput,
5427
5438
  {
5428
5439
  ref,
@@ -5437,7 +5448,7 @@ var InputOTP = React23.forwardRef(({ className, containerClassName, ...props },
5437
5448
  }
5438
5449
  ));
5439
5450
  InputOTP.displayName = "InputOTP";
5440
- var InputOTPGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5451
+ var InputOTPGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5441
5452
  InputOTPGroup.displayName = "InputOTPGroup";
5442
5453
  var inputOTPSlotVariants = cva(
5443
5454
  [
@@ -5459,9 +5470,9 @@ var inputOTPSlotVariants = cva(
5459
5470
  }
5460
5471
  }
5461
5472
  );
5462
- var InputOTPSlot = React23.forwardRef(
5473
+ var InputOTPSlot = React12.forwardRef(
5463
5474
  ({ index, className, ...props }, ref) => {
5464
- const inputOTPContext = React23.useContext(OTPInputContext);
5475
+ const inputOTPContext = React12.useContext(OTPInputContext);
5465
5476
  const slot = inputOTPContext?.slots?.[index];
5466
5477
  const char = slot?.char;
5467
5478
  const hasFakeCaret = slot?.hasFakeCaret;
@@ -5483,7 +5494,7 @@ var InputOTPSlot = React23.forwardRef(
5483
5494
  }
5484
5495
  );
5485
5496
  InputOTPSlot.displayName = "InputOTPSlot";
5486
- var InputOTPSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5497
+ var InputOTPSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5487
5498
  "div",
5488
5499
  {
5489
5500
  ref,
@@ -5782,7 +5793,7 @@ function MoonLogo({
5782
5793
  showText = true,
5783
5794
  ...props
5784
5795
  }) {
5785
- const logoId = React23.useId();
5796
+ const logoId = React12.useId();
5786
5797
  const gradientId = `moon-gradient-${logoId}`;
5787
5798
  const maskId = `moon-mask-${logoId}`;
5788
5799
  return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", className), children: [
@@ -5854,7 +5865,7 @@ function MoonLogoAnimated({
5854
5865
  }
5855
5866
  );
5856
5867
  }
5857
- var Pagination = React23.forwardRef(
5868
+ var Pagination = React12.forwardRef(
5858
5869
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5859
5870
  "nav",
5860
5871
  {
@@ -5867,7 +5878,7 @@ var Pagination = React23.forwardRef(
5867
5878
  )
5868
5879
  );
5869
5880
  Pagination.displayName = "Pagination";
5870
- var PaginationContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5881
+ var PaginationContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5871
5882
  "ul",
5872
5883
  {
5873
5884
  ref,
@@ -5876,9 +5887,9 @@ var PaginationContent = React23.forwardRef(({ className, ...props }, ref) => /*
5876
5887
  }
5877
5888
  ));
5878
5889
  PaginationContent.displayName = "PaginationContent";
5879
- var PaginationItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5890
+ var PaginationItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5880
5891
  PaginationItem.displayName = "PaginationItem";
5881
- var PaginationLink = React23.forwardRef(
5892
+ var PaginationLink = React12.forwardRef(
5882
5893
  ({ className, isActive, size = "icon", ...props }, ref) => /* @__PURE__ */ jsx(
5883
5894
  "a",
5884
5895
  {
@@ -5897,7 +5908,7 @@ var PaginationLink = React23.forwardRef(
5897
5908
  );
5898
5909
  PaginationLink.displayName = "PaginationLink";
5899
5910
  var paginationLabelClass = "hidden sm:inline";
5900
- var PaginationPrevious = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
5911
+ var PaginationPrevious = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
5901
5912
  PaginationLink,
5902
5913
  {
5903
5914
  ref,
@@ -5912,7 +5923,7 @@ var PaginationPrevious = React23.forwardRef(({ className, ...props }, ref) => /*
5912
5923
  }
5913
5924
  ));
5914
5925
  PaginationPrevious.displayName = "PaginationPrevious";
5915
- var PaginationNext = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
5926
+ var PaginationNext = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
5916
5927
  PaginationLink,
5917
5928
  {
5918
5929
  ref,
@@ -5927,7 +5938,7 @@ var PaginationNext = React23.forwardRef(({ className, ...props }, ref) => /* @__
5927
5938
  }
5928
5939
  ));
5929
5940
  PaginationNext.displayName = "PaginationNext";
5930
- var PaginationEllipsis = React23.forwardRef(({ className, ...props }, ref) => (
5941
+ var PaginationEllipsis = React12.forwardRef(({ className, ...props }, ref) => (
5931
5942
  // #315: `aria-hidden` ESKİDEN BU ELEMANDAYDI → içindeki `sr-only` "More pages" metni
5932
5943
  // erişilebilirlik ağacından düşüyor, hiç duyurulmuyordu. Gizleme artık yalnız dekoratif
5933
5944
  // ikonda. (breadcrumb.tsx'te birebir aynı çakışma vardı — aynı PR'da düzeltildi.)
@@ -5981,7 +5992,7 @@ var selectTriggerVariants = cva(
5981
5992
  }
5982
5993
  }
5983
5994
  );
5984
- var SelectTrigger = React23.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
5995
+ var SelectTrigger = React12.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
5985
5996
  SelectPrimitive.Trigger,
5986
5997
  {
5987
5998
  ref,
@@ -6012,7 +6023,7 @@ var SelectTrigger = React23.forwardRef(({ className, children, variant, size, er
6012
6023
  }
6013
6024
  ));
6014
6025
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
6015
- var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6026
+ var SelectScrollUpButton = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6016
6027
  SelectPrimitive.ScrollUpButton,
6017
6028
  {
6018
6029
  ref,
@@ -6025,7 +6036,7 @@ var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) =>
6025
6036
  }
6026
6037
  ));
6027
6038
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
6028
- var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6039
+ var SelectScrollDownButton = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6029
6040
  SelectPrimitive.ScrollDownButton,
6030
6041
  {
6031
6042
  ref,
@@ -6038,7 +6049,7 @@ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) =
6038
6049
  }
6039
6050
  ));
6040
6051
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
6041
- var SelectContent = React23.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
6052
+ var SelectContent = React12.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
6042
6053
  SelectPrimitive.Content,
6043
6054
  {
6044
6055
  ref,
@@ -6079,7 +6090,7 @@ var SelectContent = React23.forwardRef(({ className, children, position = "poppe
6079
6090
  }
6080
6091
  ) }));
6081
6092
  SelectContent.displayName = SelectPrimitive.Content.displayName;
6082
- var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6093
+ var SelectLabel = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6083
6094
  SelectPrimitive.Label,
6084
6095
  {
6085
6096
  ref,
@@ -6088,7 +6099,7 @@ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
6088
6099
  }
6089
6100
  ));
6090
6101
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
6091
- var SelectItem = React23.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
6102
+ var SelectItem = React12.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
6092
6103
  SelectPrimitive.Item,
6093
6104
  {
6094
6105
  ref,
@@ -6118,7 +6129,7 @@ var SelectItem = React23.forwardRef(({ className, children, variant = "default",
6118
6129
  }
6119
6130
  ));
6120
6131
  SelectItem.displayName = SelectPrimitive.Item.displayName;
6121
- var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6132
+ var SelectSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6122
6133
  SelectPrimitive.Separator,
6123
6134
  {
6124
6135
  ref,
@@ -6200,7 +6211,7 @@ var getMaxLength = (countryCode) => {
6200
6211
  return 15;
6201
6212
  }
6202
6213
  };
6203
- var PhoneInput = React23.forwardRef(
6214
+ var PhoneInput = React12.forwardRef(
6204
6215
  ({
6205
6216
  className,
6206
6217
  value = "",
@@ -6212,8 +6223,8 @@ var PhoneInput = React23.forwardRef(
6212
6223
  size,
6213
6224
  ...props
6214
6225
  }, ref) => {
6215
- const [countryCode, setCountryCode] = React23.useState(defaultCountry);
6216
- const [phoneNumber, setPhoneNumber] = React23.useState(value);
6226
+ const [countryCode, setCountryCode] = React12.useState(defaultCountry);
6227
+ const [phoneNumber, setPhoneNumber] = React12.useState(value);
6217
6228
  const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
6218
6229
  const handlePhoneChange = (e) => {
6219
6230
  const rawValue = e.target.value.replace(/\D/g, "");
@@ -6284,15 +6295,15 @@ var radioGroupItemVariants = cva(
6284
6295
  }
6285
6296
  }
6286
6297
  );
6287
- var RadioGroupContext = React23.createContext({});
6288
- var RadioGroup2 = React23.forwardRef(
6298
+ var RadioGroupContext = React12.createContext({});
6299
+ var RadioGroup2 = React12.forwardRef(
6289
6300
  ({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
6290
- const [internalValue, setInternalValue] = React23.useState(
6301
+ const [internalValue, setInternalValue] = React12.useState(
6291
6302
  defaultValue
6292
6303
  );
6293
6304
  const isControlled = value !== void 0;
6294
6305
  const currentValue = isControlled ? value : internalValue;
6295
- const handleValueChange = React23.useCallback(
6306
+ const handleValueChange = React12.useCallback(
6296
6307
  (next) => {
6297
6308
  if (!isControlled) {
6298
6309
  setInternalValue(next);
@@ -6324,9 +6335,9 @@ var RadioGroup2 = React23.forwardRef(
6324
6335
  }
6325
6336
  );
6326
6337
  RadioGroup2.displayName = "RadioGroup";
6327
- var RadioGroupItem = React23.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6328
- const radioGroup = React23.useContext(RadioGroupContext);
6329
- const generatedId = React23.useId();
6338
+ var RadioGroupItem = React12.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6339
+ const radioGroup = React12.useContext(RadioGroupContext);
6340
+ const generatedId = React12.useId();
6330
6341
  const radioId = id || generatedId;
6331
6342
  const isChecked = radioGroup.value === value;
6332
6343
  const handleChange = (e) => {
@@ -6379,7 +6390,7 @@ var RadioGroupItem = React23.forwardRef(({ className, variant, size, indicator,
6379
6390
  ] });
6380
6391
  });
6381
6392
  RadioGroupItem.displayName = "RadioGroupItem";
6382
- var RadioLabel = React23.forwardRef(
6393
+ var RadioLabel = React12.forwardRef(
6383
6394
  ({ className, htmlFor, children, disabled = false, ...props }, ref) => {
6384
6395
  return /* @__PURE__ */ jsx(
6385
6396
  "label",
@@ -6398,13 +6409,13 @@ var RadioLabel = React23.forwardRef(
6398
6409
  }
6399
6410
  );
6400
6411
  RadioLabel.displayName = "RadioLabel";
6401
- var RadioItemWithLabel = React23.forwardRef(({
6412
+ var RadioItemWithLabel = React12.forwardRef(({
6402
6413
  id,
6403
6414
  label,
6404
6415
  labelClassName,
6405
6416
  ...radioProps
6406
6417
  }, ref) => {
6407
- const generatedId = React23.useId();
6418
+ const generatedId = React12.useId();
6408
6419
  const radioId = id || generatedId;
6409
6420
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
6410
6421
  /* @__PURE__ */ jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
@@ -6481,21 +6492,28 @@ function RichTextEditor({
6481
6492
  )
6482
6493
  ] });
6483
6494
  }
6484
- var ScrollArea = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6495
+ var ScrollArea = React12.forwardRef(({ className, children, focusable = true, ...props }, ref) => /* @__PURE__ */ jsxs(
6485
6496
  ScrollAreaPrimitive.Root,
6486
6497
  {
6487
6498
  ref,
6488
6499
  className: cn("relative overflow-hidden", className),
6489
6500
  ...props,
6490
6501
  children: [
6491
- /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
6502
+ /* @__PURE__ */ jsx(
6503
+ ScrollAreaPrimitive.Viewport,
6504
+ {
6505
+ tabIndex: focusable ? 0 : void 0,
6506
+ className: "h-full w-full rounded-[inherit]",
6507
+ children
6508
+ }
6509
+ ),
6492
6510
  /* @__PURE__ */ jsx(ScrollBar, {}),
6493
6511
  /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
6494
6512
  ]
6495
6513
  }
6496
6514
  ));
6497
6515
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
6498
- var ScrollBar = React23.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6516
+ var ScrollBar = React12.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6499
6517
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6500
6518
  {
6501
6519
  ref,
@@ -6549,7 +6567,7 @@ var defaultTransition = {
6549
6567
  ease: [0.25, 0.46, 0.45, 0.94]
6550
6568
  // Custom cubic-bezier for smooth motion
6551
6569
  };
6552
- var ScrollReveal = React23.forwardRef(
6570
+ var ScrollReveal = React12.forwardRef(
6553
6571
  ({
6554
6572
  children,
6555
6573
  direction = "up",
@@ -6570,17 +6588,17 @@ var ScrollReveal = React23.forwardRef(
6570
6588
  viewport
6571
6589
  }, ref) => {
6572
6590
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6573
- const animationVariants = React23.useMemo(() => {
6591
+ const animationVariants = React12.useMemo(() => {
6574
6592
  if (variants)
6575
6593
  return variants;
6576
6594
  return createDefaultVariants(direction, distance);
6577
6595
  }, [direction, distance, variants]);
6578
- const transition = React23.useMemo(() => ({
6596
+ const transition = React12.useMemo(() => ({
6579
6597
  ...defaultTransition,
6580
6598
  duration,
6581
6599
  delay: delay + stagger
6582
6600
  }), [duration, delay, stagger]);
6583
- const viewportConfig = React23.useMemo(() => ({
6601
+ const viewportConfig = React12.useMemo(() => ({
6584
6602
  once: shouldTriggerOnce,
6585
6603
  amount: threshold,
6586
6604
  ...viewport
@@ -6615,7 +6633,7 @@ var ScrollReveal = React23.forwardRef(
6615
6633
  }
6616
6634
  );
6617
6635
  ScrollReveal.displayName = "ScrollReveal";
6618
- var ScrollRevealContainer = React23.forwardRef(
6636
+ var ScrollRevealContainer = React12.forwardRef(
6619
6637
  ({
6620
6638
  children,
6621
6639
  stagger = 0.1,
@@ -6628,7 +6646,7 @@ var ScrollRevealContainer = React23.forwardRef(
6628
6646
  viewport
6629
6647
  }, ref) => {
6630
6648
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6631
- const viewportConfig = React23.useMemo(() => ({
6649
+ const viewportConfig = React12.useMemo(() => ({
6632
6650
  once: shouldTriggerOnce,
6633
6651
  amount: threshold,
6634
6652
  ...viewport
@@ -6659,7 +6677,7 @@ var ScrollRevealContainer = React23.forwardRef(
6659
6677
  }
6660
6678
  );
6661
6679
  ScrollRevealContainer.displayName = "ScrollRevealContainer";
6662
- var ScrollRevealItem = React23.forwardRef(
6680
+ var ScrollRevealItem = React12.forwardRef(
6663
6681
  ({
6664
6682
  children,
6665
6683
  direction = "up",
@@ -6670,12 +6688,12 @@ var ScrollRevealItem = React23.forwardRef(
6670
6688
  style,
6671
6689
  id
6672
6690
  }, ref) => {
6673
- const animationVariants = React23.useMemo(() => {
6691
+ const animationVariants = React12.useMemo(() => {
6674
6692
  if (variants)
6675
6693
  return variants;
6676
6694
  return createDefaultVariants(direction, distance);
6677
6695
  }, [direction, distance, variants]);
6678
- const transition = React23.useMemo(() => ({
6696
+ const transition = React12.useMemo(() => ({
6679
6697
  ...defaultTransition,
6680
6698
  duration
6681
6699
  }), [duration]);
@@ -6791,7 +6809,7 @@ var separatorVariants = cva(
6791
6809
  }
6792
6810
  }
6793
6811
  );
6794
- var Separator3 = React23.forwardRef(
6812
+ var Separator3 = React12.forwardRef(
6795
6813
  ({
6796
6814
  className,
6797
6815
  orientation = "horizontal",
@@ -6834,7 +6852,7 @@ var toggleVariants = cva(
6834
6852
  }
6835
6853
  }
6836
6854
  );
6837
- var Toggle = React23.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6855
+ var Toggle = React12.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6838
6856
  TogglePrimitive.Root,
6839
6857
  {
6840
6858
  ref,
@@ -6870,7 +6888,7 @@ var tooltipVariants = cva(
6870
6888
  );
6871
6889
  var Tooltip = TooltipPrimitive.Root;
6872
6890
  var TooltipTrigger = TooltipPrimitive.Trigger;
6873
- var TooltipArrow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6891
+ var TooltipArrow = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6874
6892
  TooltipPrimitive.Arrow,
6875
6893
  {
6876
6894
  ref,
@@ -6879,7 +6897,7 @@ var TooltipArrow = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
6879
6897
  }
6880
6898
  ));
6881
6899
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
6882
- var TooltipContent = React23.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6900
+ var TooltipContent = React12.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6883
6901
  TooltipPrimitive.Content,
6884
6902
  {
6885
6903
  ref,
@@ -6893,7 +6911,7 @@ var TooltipContent = React23.forwardRef(({ className, variant, size, showArrow =
6893
6911
  }
6894
6912
  ));
6895
6913
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6896
- var SimpleTooltip = React23.forwardRef(
6914
+ var SimpleTooltip = React12.forwardRef(
6897
6915
  ({
6898
6916
  children,
6899
6917
  content,
@@ -6981,7 +6999,7 @@ var ColorPicker2 = ({ onColorSelect }) => {
6981
6999
  color
6982
7000
  )) });
6983
7001
  };
6984
- var SimpleEditor = React23__default.forwardRef(
7002
+ var SimpleEditor = React12__default.forwardRef(
6985
7003
  ({
6986
7004
  value = "",
6987
7005
  onChange,
@@ -6998,8 +7016,8 @@ var SimpleEditor = React23__default.forwardRef(
6998
7016
  const [isPreview, setIsPreview] = useState(false);
6999
7017
  const [sourceContent, setSourceContent] = useState(value);
7000
7018
  useState(null);
7001
- const editorRef = React23__default.useRef(null);
7002
- const sourceRef = React23__default.useRef(null);
7019
+ const editorRef = React12__default.useRef(null);
7020
+ const sourceRef = React12__default.useRef(null);
7003
7021
  const [formatState, setFormatState] = useState({
7004
7022
  bold: false,
7005
7023
  italic: false,
@@ -7133,12 +7151,12 @@ var SimpleEditor = React23__default.forwardRef(
7133
7151
  }
7134
7152
  }
7135
7153
  }, [executeCommand, updateContent]);
7136
- React23__default.useEffect(() => {
7154
+ React12__default.useEffect(() => {
7137
7155
  if (editorRef.current && content && content !== editorRef.current.innerHTML) {
7138
7156
  editorRef.current.innerHTML = content;
7139
7157
  }
7140
7158
  }, [content]);
7141
- React23__default.useEffect(() => {
7159
+ React12__default.useEffect(() => {
7142
7160
  if (value !== void 0 && value !== content) {
7143
7161
  setContent(value);
7144
7162
  setSourceContent(value);
@@ -7548,7 +7566,7 @@ var skeletonVariants = cva(
7548
7566
  }
7549
7567
  }
7550
7568
  );
7551
- var Skeleton = React23.forwardRef(
7569
+ var Skeleton = React12.forwardRef(
7552
7570
  ({
7553
7571
  className,
7554
7572
  variant,
@@ -7614,6 +7632,7 @@ var Skeleton = React23.forwardRef(
7614
7632
  SkeletonElement,
7615
7633
  {
7616
7634
  ref,
7635
+ "aria-hidden": "true",
7617
7636
  className: cn(
7618
7637
  "moonui-theme",
7619
7638
  skeletonVariants({ variant, size, shape, animation }),
@@ -7632,7 +7651,7 @@ var Skeleton = React23.forwardRef(
7632
7651
  }
7633
7652
  );
7634
7653
  Skeleton.displayName = "Skeleton";
7635
- var SkeletonText = React23.forwardRef(
7654
+ var SkeletonText = React12.forwardRef(
7636
7655
  ({
7637
7656
  className,
7638
7657
  lines = 3,
@@ -7673,7 +7692,7 @@ var SkeletonText = React23.forwardRef(
7673
7692
  }
7674
7693
  );
7675
7694
  SkeletonText.displayName = "SkeletonText";
7676
- var SkeletonAvatar = React23.forwardRef(
7695
+ var SkeletonAvatar = React12.forwardRef(
7677
7696
  ({
7678
7697
  className,
7679
7698
  size = "2.5rem",
@@ -7699,7 +7718,7 @@ var SkeletonAvatar = React23.forwardRef(
7699
7718
  }
7700
7719
  );
7701
7720
  SkeletonAvatar.displayName = "SkeletonAvatar";
7702
- var SkeletonCard = React23.forwardRef(
7721
+ var SkeletonCard = React12.forwardRef(
7703
7722
  ({
7704
7723
  className,
7705
7724
  showHeader = true,
@@ -7773,11 +7792,11 @@ var SkeletonCard = React23.forwardRef(
7773
7792
  }
7774
7793
  );
7775
7794
  SkeletonCard.displayName = "SkeletonCard";
7776
- var SwipeableCard = React23.forwardRef(
7795
+ var SwipeableCard = React12.forwardRef(
7777
7796
  ({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
7778
- const [startX, setStartX] = React23.useState(0);
7779
- const [currentX, setCurrentX] = React23.useState(0);
7780
- const [isSwiping, setIsSwiping] = React23.useState(false);
7797
+ const [startX, setStartX] = React12.useState(0);
7798
+ const [currentX, setCurrentX] = React12.useState(0);
7799
+ const [isSwiping, setIsSwiping] = React12.useState(false);
7781
7800
  const handleTouchStart = (e) => {
7782
7801
  if (disabled)
7783
7802
  return;
@@ -7872,7 +7891,7 @@ var switchThumbVariants = cva(
7872
7891
  }
7873
7892
  }
7874
7893
  );
7875
- var Switch = React23.forwardRef(({
7894
+ var Switch = React12.forwardRef(({
7876
7895
  className,
7877
7896
  size,
7878
7897
  variant,
@@ -7883,7 +7902,7 @@ var Switch = React23.forwardRef(({
7883
7902
  "aria-describedby": ariaDescribedBy,
7884
7903
  ...props
7885
7904
  }, ref) => {
7886
- const reactId = React23.useId();
7905
+ const reactId = React12.useId();
7887
7906
  const descriptionId = description ? `${reactId}-description` : void 0;
7888
7907
  const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
7889
7908
  return /* @__PURE__ */ jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
@@ -7911,7 +7930,7 @@ var Switch = React23.forwardRef(({
7911
7930
  ] });
7912
7931
  });
7913
7932
  Switch.displayName = SwitchPrimitives.Root.displayName;
7914
- var TagsInput = React23.forwardRef(
7933
+ var TagsInput = React12.forwardRef(
7915
7934
  ({
7916
7935
  value = [],
7917
7936
  onChange,
@@ -7924,12 +7943,12 @@ var TagsInput = React23.forwardRef(
7924
7943
  disabled,
7925
7944
  ...props
7926
7945
  }, ref) => {
7927
- const [inputValue, setInputValue] = React23.useState("");
7928
- const [error, setError] = React23.useState("");
7929
- const innerInputRef = React23.useRef(null);
7930
- React23.useImperativeHandle(ref, () => innerInputRef.current);
7931
- const tagButtonRefs = React23.useRef([]);
7932
- const errorId = React23.useId();
7946
+ const [inputValue, setInputValue] = React12.useState("");
7947
+ const [error, setError] = React12.useState("");
7948
+ const innerInputRef = React12.useRef(null);
7949
+ React12.useImperativeHandle(ref, () => innerInputRef.current);
7950
+ const tagButtonRefs = React12.useRef([]);
7951
+ const errorId = React12.useId();
7933
7952
  const focusTag = (index) => {
7934
7953
  if (value.length === 0)
7935
7954
  return;
@@ -8106,7 +8125,7 @@ var textareaVariants = cva(
8106
8125
  }
8107
8126
  }
8108
8127
  );
8109
- var Textarea = React23.forwardRef(
8128
+ var Textarea = React12.forwardRef(
8110
8129
  ({
8111
8130
  className,
8112
8131
  wrapperClassName,
@@ -8126,12 +8145,12 @@ var Textarea = React23.forwardRef(
8126
8145
  onChange,
8127
8146
  ...props
8128
8147
  }, ref) => {
8129
- const reactId = React23.useId();
8148
+ const reactId = React12.useId();
8130
8149
  const fieldId = props.id || reactId;
8131
- const textareaRef = React23.useRef(null);
8132
- const [internalValue, setInternalValue] = React23.useState(value || defaultValue || "");
8133
- React23.useImperativeHandle(ref, () => textareaRef.current);
8134
- const adjustHeight = React23.useCallback(() => {
8150
+ const textareaRef = React12.useRef(null);
8151
+ const [internalValue, setInternalValue] = React12.useState(value || defaultValue || "");
8152
+ React12.useImperativeHandle(ref, () => textareaRef.current);
8153
+ const adjustHeight = React12.useCallback(() => {
8135
8154
  const textarea = textareaRef.current;
8136
8155
  if (!textarea || !autoResize)
8137
8156
  return;
@@ -8145,10 +8164,10 @@ var Textarea = React23.forwardRef(
8145
8164
  textarea.style.overflowY = "hidden";
8146
8165
  }
8147
8166
  }, [autoResize, maxHeight]);
8148
- React23.useEffect(() => {
8167
+ React12.useEffect(() => {
8149
8168
  adjustHeight();
8150
8169
  }, [internalValue, adjustHeight]);
8151
- React23.useEffect(() => {
8170
+ React12.useEffect(() => {
8152
8171
  if (value !== void 0) {
8153
8172
  setInternalValue(value);
8154
8173
  }
@@ -8214,7 +8233,7 @@ var Textarea = React23.forwardRef(
8214
8233
  );
8215
8234
  Textarea.displayName = "Textarea";
8216
8235
  var ToastProvider = ToastPrimitives.Provider;
8217
- var ToastViewport = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8236
+ var ToastViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8218
8237
  ToastPrimitives.Viewport,
8219
8238
  {
8220
8239
  ref,
@@ -8243,7 +8262,7 @@ var toastVariants = cva(
8243
8262
  }
8244
8263
  }
8245
8264
  );
8246
- var Toast = React23.forwardRef(({ className, variant, ...props }, ref) => {
8265
+ var Toast = React12.forwardRef(({ className, variant, ...props }, ref) => {
8247
8266
  return /* @__PURE__ */ jsx(
8248
8267
  ToastPrimitives.Root,
8249
8268
  {
@@ -8254,7 +8273,7 @@ var Toast = React23.forwardRef(({ className, variant, ...props }, ref) => {
8254
8273
  );
8255
8274
  });
8256
8275
  Toast.displayName = ToastPrimitives.Root.displayName;
8257
- var ToastAction = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8276
+ var ToastAction = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8258
8277
  ToastPrimitives.Action,
8259
8278
  {
8260
8279
  ref,
@@ -8266,7 +8285,7 @@ var ToastAction = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
8266
8285
  }
8267
8286
  ));
8268
8287
  ToastAction.displayName = ToastPrimitives.Action.displayName;
8269
- var ToastClose = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
8288
+ var ToastClose = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
8270
8289
  ToastPrimitives.Close,
8271
8290
  {
8272
8291
  ref,
@@ -8283,7 +8302,7 @@ var ToastClose = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
8283
8302
  }
8284
8303
  ));
8285
8304
  ToastClose.displayName = ToastPrimitives.Close.displayName;
8286
- var ToastTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8305
+ var ToastTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8287
8306
  ToastPrimitives.Title,
8288
8307
  {
8289
8308
  ref,
@@ -8292,7 +8311,7 @@ var ToastTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
8292
8311
  }
8293
8312
  ));
8294
8313
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
8295
- var ToastDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8314
+ var ToastDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8296
8315
  ToastPrimitives.Description,
8297
8316
  {
8298
8317
  ref,
@@ -8400,8 +8419,8 @@ function toast({ ...props }) {
8400
8419
  };
8401
8420
  }
8402
8421
  function useToast() {
8403
- const [state, setState] = React23.useState(memoryState);
8404
- React23.useEffect(() => {
8422
+ const [state, setState] = React12.useState(memoryState);
8423
+ React12.useEffect(() => {
8405
8424
  listeners.push(setState);
8406
8425
  return () => {
8407
8426
  const index = listeners.indexOf(setState);
@@ -8454,7 +8473,7 @@ var kbdVariants = cva(
8454
8473
  }
8455
8474
  }
8456
8475
  );
8457
- var Kbd = React23.forwardRef(
8476
+ var Kbd = React12.forwardRef(
8458
8477
  ({ className, size, children, ...props }, ref) => {
8459
8478
  return /* @__PURE__ */ jsx(
8460
8479
  "kbd",
@@ -8491,7 +8510,7 @@ var iconSizeMap = {
8491
8510
  md: "h-5 w-5",
8492
8511
  lg: "h-6 w-6"
8493
8512
  };
8494
- var Rating = React23.forwardRef(
8513
+ var Rating = React12.forwardRef(
8495
8514
  ({
8496
8515
  className,
8497
8516
  value,
@@ -8509,11 +8528,11 @@ var Rating = React23.forwardRef(
8509
8528
  const iconSizeClass = iconSizeMap[resolvedSize];
8510
8529
  const step = precision === "half" ? 0.5 : 1;
8511
8530
  const isControlled = value !== void 0;
8512
- const [internalValue, setInternalValue] = React23.useState(defaultValue ?? 0);
8531
+ const [internalValue, setInternalValue] = React12.useState(defaultValue ?? 0);
8513
8532
  const currentValue = isControlled ? value ?? 0 : internalValue;
8514
- const [hoverValue, setHoverValue] = React23.useState(null);
8533
+ const [hoverValue, setHoverValue] = React12.useState(null);
8515
8534
  const displayValue = hoverValue !== null ? hoverValue : currentValue;
8516
- const commit = React23.useCallback(
8535
+ const commit = React12.useCallback(
8517
8536
  (next) => {
8518
8537
  if (readOnly)
8519
8538
  return;
@@ -8523,7 +8542,7 @@ var Rating = React23.forwardRef(
8523
8542
  },
8524
8543
  [readOnly, isControlled, onValueChange]
8525
8544
  );
8526
- const handleKeyDown = React23.useCallback(
8545
+ const handleKeyDown = React12.useCallback(
8527
8546
  (event) => {
8528
8547
  if (readOnly)
8529
8548
  return;
@@ -8552,9 +8571,9 @@ var Rating = React23.forwardRef(
8552
8571
  [readOnly, max, currentValue, step, commit]
8553
8572
  );
8554
8573
  const renderIcon = (filled) => {
8555
- if (React23.isValidElement(icon)) {
8574
+ if (React12.isValidElement(icon)) {
8556
8575
  const element = icon;
8557
- return React23.cloneElement(element, {
8576
+ return React12.cloneElement(element, {
8558
8577
  className: cn(
8559
8578
  iconSizeClass,
8560
8579
  "shrink-0",
@@ -8688,7 +8707,7 @@ var dotSizeMap = {
8688
8707
  lg: "h-2 w-2",
8689
8708
  xl: "h-2.5 w-2.5"
8690
8709
  };
8691
- var Spinner = React23.forwardRef(
8710
+ var Spinner = React12.forwardRef(
8692
8711
  ({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
8693
8712
  return /* @__PURE__ */ jsxs(
8694
8713
  "div",
@@ -8767,15 +8786,15 @@ var buttonGroupVariants = cva(
8767
8786
  }
8768
8787
  }
8769
8788
  );
8770
- var ButtonGroup = React23.forwardRef(
8789
+ var ButtonGroup = React12.forwardRef(
8771
8790
  ({ className, orientation, attached, size, variant, children, ...props }, ref) => {
8772
8791
  const shouldPropagate = size !== void 0 || variant !== void 0;
8773
- const enhancedChildren = shouldPropagate ? React23.Children.map(children, (child) => {
8774
- if (!React23.isValidElement(child) || child.type !== Button) {
8792
+ const enhancedChildren = shouldPropagate ? React12.Children.map(children, (child) => {
8793
+ if (!React12.isValidElement(child) || child.type !== Button) {
8775
8794
  return child;
8776
8795
  }
8777
8796
  const childProps = child.props;
8778
- return React23.cloneElement(child, {
8797
+ return React12.cloneElement(child, {
8779
8798
  size: childProps.size ?? size,
8780
8799
  variant: childProps.variant ?? variant
8781
8800
  });
@@ -8793,11 +8812,11 @@ var ButtonGroup = React23.forwardRef(
8793
8812
  }
8794
8813
  );
8795
8814
  ButtonGroup.displayName = "ButtonGroup";
8796
- var ToggleGroupContext = React23.createContext({
8815
+ var ToggleGroupContext = React12.createContext({
8797
8816
  size: "default",
8798
8817
  variant: "default"
8799
8818
  });
8800
- var ToggleGroup = React23.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8819
+ var ToggleGroup = React12.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8801
8820
  ToggleGroupPrimitive.Root,
8802
8821
  {
8803
8822
  ref,
@@ -8814,8 +8833,8 @@ var ToggleGroup = React23.forwardRef(({ className, variant, size, children, ...p
8814
8833
  }
8815
8834
  ));
8816
8835
  ToggleGroup.displayName = "ToggleGroup";
8817
- var ToggleGroupItem = React23.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8818
- const context = React23.useContext(ToggleGroupContext);
8836
+ var ToggleGroupItem = React12.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8837
+ const context = React12.useContext(ToggleGroupContext);
8819
8838
  return /* @__PURE__ */ jsx(
8820
8839
  ToggleGroupPrimitive.Item,
8821
8840
  {