@moontra/moonui 4.0.0 → 5.0.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.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  'use strict';
4
4
 
5
- var React11 = require('react');
5
+ var React24 = require('react');
6
6
  var AccordionPrimitive = require('@radix-ui/react-accordion');
7
7
  var lucideReact = require('lucide-react');
8
8
  var clsx = require('clsx');
@@ -52,7 +52,7 @@ function _interopNamespace(e) {
52
52
  return Object.freeze(n);
53
53
  }
54
54
 
55
- var React11__namespace = /*#__PURE__*/_interopNamespace(React11);
55
+ var React24__namespace = /*#__PURE__*/_interopNamespace(React24);
56
56
  var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
57
57
  var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
58
58
  var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
@@ -76,7 +76,7 @@ function cn(...inputs) {
76
76
  return tailwindMerge.twMerge(clsx.clsx(inputs));
77
77
  }
78
78
  var Accordion = AccordionPrimitive__namespace.Root;
79
- var AccordionItem = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
79
+ var AccordionItem = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
80
80
  AccordionPrimitive__namespace.Item,
81
81
  {
82
82
  ref,
@@ -85,7 +85,7 @@ var AccordionItem = React11__namespace.forwardRef(({ className, ...props }, ref)
85
85
  }
86
86
  ));
87
87
  AccordionItem.displayName = "AccordionItem";
88
- var AccordionTrigger = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
88
+ var AccordionTrigger = React24__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
89
89
  AccordionPrimitive__namespace.Trigger,
90
90
  {
91
91
  ref,
@@ -103,7 +103,7 @@ var AccordionTrigger = React11__namespace.forwardRef(({ className, children, ...
103
103
  }
104
104
  ) }));
105
105
  AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
106
- var AccordionContent = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
106
+ var AccordionContent = React24__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
107
107
  AccordionPrimitive__namespace.Content,
108
108
  {
109
109
  ref,
@@ -156,7 +156,7 @@ var alertVariants = classVarianceAuthority.cva(
156
156
  }
157
157
  }
158
158
  );
159
- var Alert = React11__namespace.forwardRef(
159
+ var Alert = React24__namespace.forwardRef(
160
160
  ({
161
161
  className,
162
162
  variant = "default",
@@ -168,7 +168,7 @@ var Alert = React11__namespace.forwardRef(
168
168
  children,
169
169
  ...props
170
170
  }, ref) => {
171
- const Icon2 = React11__namespace.useMemo(() => {
171
+ const Icon2 = React24__namespace.useMemo(() => {
172
172
  switch (variant) {
173
173
  case "success":
174
174
  return lucideReact.Check;
@@ -216,7 +216,7 @@ var Alert = React11__namespace.forwardRef(
216
216
  }
217
217
  );
218
218
  Alert.displayName = "Alert";
219
- var AlertTitle = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
219
+ var AlertTitle = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
220
220
  "h5",
221
221
  {
222
222
  ref,
@@ -229,7 +229,7 @@ var AlertTitle = React11__namespace.forwardRef(({ className, ...props }, ref) =>
229
229
  }
230
230
  ));
231
231
  AlertTitle.displayName = "AlertTitle";
232
- var AlertDescription = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
232
+ var AlertDescription = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
233
233
  "div",
234
234
  {
235
235
  ref,
@@ -246,11 +246,15 @@ var aspectRatioVariants = classVarianceAuthority.cva(
246
246
  "relative overflow-hidden",
247
247
  {
248
248
  variants: {
249
+ // `variant` yalnız yüzey/kenarlık eksenini yönetir. Önceden her varyant
250
+ // ayrıca `rounded-md` taşıyordu ve `radius` ekseniyle çakışıyordu
251
+ // (aynı anda iki `rounded-*` sınıfı üretiliyordu). Köşe yuvarlaması artık
252
+ // TEK kaynaktan: `radius`.
249
253
  variant: {
250
- default: "rounded-md bg-muted/10",
254
+ default: "bg-muted/10",
251
255
  ghost: "bg-transparent",
252
- outline: "rounded-md border border-border",
253
- card: "rounded-md bg-card shadow-sm"
256
+ outline: "border border-border",
257
+ card: "bg-card shadow-sm"
254
258
  },
255
259
  radius: {
256
260
  none: "rounded-none",
@@ -261,11 +265,13 @@ var aspectRatioVariants = classVarianceAuthority.cva(
261
265
  }
262
266
  },
263
267
  defaultVariants: {
264
- variant: "default"
268
+ variant: "default",
269
+ // Önceki davranış korunur: her varyant `rounded-md` taşıyordu.
270
+ radius: "md"
265
271
  }
266
272
  }
267
273
  );
268
- var AspectRatio = React11__namespace.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
274
+ var AspectRatio = React24__namespace.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
269
275
  "div",
270
276
  {
271
277
  ref,
@@ -314,7 +320,7 @@ var avatarVariants = classVarianceAuthority.cva(
314
320
  }
315
321
  }
316
322
  );
317
- var Avatar = React11__namespace.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
323
+ var Avatar = React24__namespace.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
318
324
  AvatarPrimitive__namespace.Root,
319
325
  {
320
326
  ref,
@@ -323,7 +329,7 @@ var Avatar = React11__namespace.forwardRef(({ className, size, radius, variant,
323
329
  }
324
330
  ));
325
331
  Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
326
- var AvatarImage = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
332
+ var AvatarImage = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
327
333
  AvatarPrimitive__namespace.Image,
328
334
  {
329
335
  ref,
@@ -332,7 +338,7 @@ var AvatarImage = React11__namespace.forwardRef(({ className, ...props }, ref) =
332
338
  }
333
339
  ));
334
340
  AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
335
- var AvatarFallback = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
341
+ var AvatarFallback = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
336
342
  AvatarPrimitive__namespace.Fallback,
337
343
  {
338
344
  ref,
@@ -344,9 +350,9 @@ var AvatarFallback = React11__namespace.forwardRef(({ className, ...props }, ref
344
350
  }
345
351
  ));
346
352
  AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
347
- var AvatarGroup = React11__namespace.forwardRef(
353
+ var AvatarGroup = React24__namespace.forwardRef(
348
354
  ({ className, max, children, overlapOffset = -8, ...props }, ref) => {
349
- const childrenArray = React11__namespace.Children.toArray(children);
355
+ const childrenArray = React24__namespace.Children.toArray(children);
350
356
  const visibleAvatars = max ? childrenArray.slice(0, max) : childrenArray;
351
357
  const remainingCount = max ? Math.max(0, childrenArray.length - max) : 0;
352
358
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -427,16 +433,16 @@ var badgeVariants = classVarianceAuthority.cva(
427
433
  "dark:bg-error/90 dark:text-white dark:shadow-inner dark:shadow-error/10"
428
434
  ],
429
435
  success: [
430
- "border-transparent bg-success text-white",
436
+ "border-transparent bg-success text-success-foreground",
431
437
  "hover:bg-success/90 dark:hover:bg-success/80",
432
438
  "focus-visible:ring-success/30 dark:focus-visible:ring-success/25",
433
- "dark:bg-success/90 dark:text-white dark:shadow-inner dark:shadow-success/10"
439
+ "dark:bg-success/90 dark:text-success-foreground dark:shadow-inner dark:shadow-success/10"
434
440
  ],
435
441
  warning: [
436
- "border-transparent bg-warning text-white",
442
+ "border-transparent bg-warning text-warning-foreground",
437
443
  "hover:bg-warning/90 dark:hover:bg-warning/80",
438
444
  "focus-visible:ring-warning/30 dark:focus-visible:ring-warning/25",
439
- "dark:bg-warning/90 dark:text-gray-900 dark:shadow-inner dark:shadow-warning/10"
445
+ "dark:bg-warning/90 dark:text-warning-foreground dark:shadow-inner dark:shadow-warning/10"
440
446
  ],
441
447
  ghost: [
442
448
  "border border-gray-200 bg-gray-50/50 text-gray-700",
@@ -477,7 +483,7 @@ var badgeVariants = classVarianceAuthority.cva(
477
483
  }
478
484
  }
479
485
  );
480
- var Badge = React11__namespace.forwardRef(({
486
+ var Badge = React24__namespace.forwardRef(({
481
487
  className,
482
488
  variant,
483
489
  size,
@@ -584,7 +590,7 @@ var breadcrumbVariants = classVarianceAuthority.cva(
584
590
  }
585
591
  }
586
592
  );
587
- var Breadcrumb = React11__namespace.forwardRef(
593
+ var Breadcrumb = React24__namespace.forwardRef(
588
594
  ({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
589
595
  "nav",
590
596
  {
@@ -596,9 +602,9 @@ var Breadcrumb = React11__namespace.forwardRef(
596
602
  )
597
603
  );
598
604
  Breadcrumb.displayName = "Breadcrumb";
599
- var BreadcrumbList = React11__namespace.forwardRef(
605
+ var BreadcrumbList = React24__namespace.forwardRef(
600
606
  ({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
601
- const childrenArray = React11__namespace.Children.toArray(props.children).filter(Boolean);
607
+ const childrenArray = React24__namespace.Children.toArray(props.children).filter(Boolean);
602
608
  const childCount = childrenArray.length;
603
609
  if (collapsed && childCount > collapsedWidth) {
604
610
  const firstItem = childrenArray[0];
@@ -634,9 +640,9 @@ var BreadcrumbList = React11__namespace.forwardRef(
634
640
  }
635
641
  );
636
642
  BreadcrumbList.displayName = "BreadcrumbList";
637
- var BreadcrumbItem = React11__namespace.forwardRef(
643
+ var BreadcrumbItem = React24__namespace.forwardRef(
638
644
  ({ className, isCurrent, href, asChild = false, ...props }, ref) => {
639
- const Comp = asChild ? React11__namespace.Fragment : href ? "a" : "span";
645
+ const Comp = asChild ? React24__namespace.Fragment : href ? "a" : "span";
640
646
  const itemProps = asChild ? {} : href ? { href } : {};
641
647
  return /* @__PURE__ */ jsxRuntime.jsx(
642
648
  "li",
@@ -693,7 +699,7 @@ var BreadcrumbEllipsis = ({
693
699
  }
694
700
  );
695
701
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
696
- var BreadcrumbLink = React11__namespace.forwardRef(
702
+ var BreadcrumbLink = React24__namespace.forwardRef(
697
703
  ({ className, href, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
698
704
  "a",
699
705
  {
@@ -708,7 +714,7 @@ var BreadcrumbLink = React11__namespace.forwardRef(
708
714
  )
709
715
  );
710
716
  BreadcrumbLink.displayName = "BreadcrumbLink";
711
- var BreadcrumbPage = React11__namespace.forwardRef(
717
+ var BreadcrumbPage = React24__namespace.forwardRef(
712
718
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
713
719
  "span",
714
720
  {
@@ -871,7 +877,7 @@ var buttonVariants = classVarianceAuthority.cva(
871
877
  }
872
878
  }
873
879
  );
874
- var Button = React11__namespace.forwardRef(
880
+ var Button = React24__namespace.forwardRef(
875
881
  ({
876
882
  className,
877
883
  variant,
@@ -893,6 +899,7 @@ var Button = React11__namespace.forwardRef(
893
899
  className: cn("moonui-theme", buttonVariants({ variant, size, rounded, fullWidth, className })),
894
900
  ref,
895
901
  disabled: disabled || loading,
902
+ "aria-busy": loading || void 0,
896
903
  "data-loading": loading ? "" : void 0,
897
904
  ...props,
898
905
  children: [
@@ -1085,7 +1092,7 @@ var cardVariants = classVarianceAuthority.cva(
1085
1092
  }
1086
1093
  }
1087
1094
  );
1088
- var Card = React11__namespace.forwardRef(
1095
+ var Card = React24__namespace.forwardRef(
1089
1096
  ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
1090
1097
  if (interactive && microInteraction !== "none") {
1091
1098
  const interactionProps = {
@@ -1113,7 +1120,7 @@ var Card = React11__namespace.forwardRef(
1113
1120
  }
1114
1121
  );
1115
1122
  Card.displayName = "Card";
1116
- var CardHeader = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1123
+ var CardHeader = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1117
1124
  "div",
1118
1125
  {
1119
1126
  ref,
@@ -1122,7 +1129,7 @@ var CardHeader = React11__namespace.forwardRef(({ className, ...props }, ref) =>
1122
1129
  }
1123
1130
  ));
1124
1131
  CardHeader.displayName = "CardHeader";
1125
- var CardTitle = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1132
+ var CardTitle = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1126
1133
  "h3",
1127
1134
  {
1128
1135
  ref,
@@ -1131,7 +1138,7 @@ var CardTitle = React11__namespace.forwardRef(({ className, ...props }, ref) =>
1131
1138
  }
1132
1139
  ));
1133
1140
  CardTitle.displayName = "CardTitle";
1134
- var CardDescription = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1141
+ var CardDescription = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1135
1142
  "p",
1136
1143
  {
1137
1144
  ref,
@@ -1140,9 +1147,9 @@ var CardDescription = React11__namespace.forwardRef(({ className, ...props }, re
1140
1147
  }
1141
1148
  ));
1142
1149
  CardDescription.displayName = "CardDescription";
1143
- var CardContent = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1150
+ var CardContent = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1144
1151
  CardContent.displayName = "CardContent";
1145
- var CardFooter = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1152
+ var CardFooter = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1146
1153
  "div",
1147
1154
  {
1148
1155
  ref,
@@ -1163,7 +1170,7 @@ function Calendar({
1163
1170
  defaultMonth,
1164
1171
  ...props
1165
1172
  }) {
1166
- const [currentMonth, setCurrentMonth] = React11__namespace.useState(
1173
+ const [currentMonth, setCurrentMonth] = React24__namespace.useState(
1167
1174
  defaultMonth || selected && selected || /* @__PURE__ */ new Date()
1168
1175
  );
1169
1176
  const weekDays = [
@@ -1377,9 +1384,9 @@ var formatCardNumber = (value, cardType) => {
1377
1384
  }
1378
1385
  return formatted;
1379
1386
  };
1380
- var CardNumberInput = React11__namespace.forwardRef(
1387
+ var CardNumberInput = React24__namespace.forwardRef(
1381
1388
  ({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
1382
- const [cardType, setCardType] = React11__namespace.useState("unknown");
1389
+ const [cardType, setCardType] = React24__namespace.useState("unknown");
1383
1390
  const handleChange = (e) => {
1384
1391
  const rawValue = e.target.value.replace(/\D/g, "");
1385
1392
  const detectedType = getCardType(rawValue);
@@ -1410,7 +1417,7 @@ var CardNumberInput = React11__namespace.forwardRef(
1410
1417
  }
1411
1418
  );
1412
1419
  CardNumberInput.displayName = "CardNumberInput";
1413
- var CardExpiryInput = React11__namespace.forwardRef(
1420
+ var CardExpiryInput = React24__namespace.forwardRef(
1414
1421
  ({ className, value = "", onChange, size, ...props }, ref) => {
1415
1422
  const handleChange = (e) => {
1416
1423
  let rawValue = e.target.value.replace(/\D/g, "");
@@ -1448,7 +1455,7 @@ var CardExpiryInput = React11__namespace.forwardRef(
1448
1455
  }
1449
1456
  );
1450
1457
  CardExpiryInput.displayName = "CardExpiryInput";
1451
- var CardCVCInput = React11__namespace.forwardRef(
1458
+ var CardCVCInput = React24__namespace.forwardRef(
1452
1459
  ({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
1453
1460
  const maxLength = cardType === "amex" ? 4 : 3;
1454
1461
  const handleChange = (e) => {
@@ -1473,7 +1480,7 @@ var CardCVCInput = React11__namespace.forwardRef(
1473
1480
  }
1474
1481
  );
1475
1482
  CardCVCInput.displayName = "CardCVCInput";
1476
- var CardZipInput = React11__namespace.forwardRef(
1483
+ var CardZipInput = React24__namespace.forwardRef(
1477
1484
  ({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
1478
1485
  const handleChange = (e) => {
1479
1486
  let rawValue = e.target.value;
@@ -1524,15 +1531,15 @@ var CardZipInput = React11__namespace.forwardRef(
1524
1531
  }
1525
1532
  );
1526
1533
  CardZipInput.displayName = "CardZipInput";
1527
- var CarouselContext = React11__namespace.createContext(null);
1534
+ var CarouselContext = React24__namespace.createContext(null);
1528
1535
  function useCarousel() {
1529
- const context = React11__namespace.useContext(CarouselContext);
1536
+ const context = React24__namespace.useContext(CarouselContext);
1530
1537
  if (!context) {
1531
1538
  throw new Error("useCarousel must be used within a <Carousel />");
1532
1539
  }
1533
1540
  return context;
1534
1541
  }
1535
- var Carousel = React11__namespace.forwardRef(
1542
+ var Carousel = React24__namespace.forwardRef(
1536
1543
  ({
1537
1544
  orientation = "horizontal",
1538
1545
  opts,
@@ -1550,21 +1557,21 @@ var Carousel = React11__namespace.forwardRef(
1550
1557
  },
1551
1558
  plugins
1552
1559
  );
1553
- const [canScrollPrev, setCanScrollPrev] = React11__namespace.useState(false);
1554
- const [canScrollNext, setCanScrollNext] = React11__namespace.useState(false);
1555
- const onSelect = React11__namespace.useCallback((emblaApi) => {
1560
+ const [canScrollPrev, setCanScrollPrev] = React24__namespace.useState(false);
1561
+ const [canScrollNext, setCanScrollNext] = React24__namespace.useState(false);
1562
+ const onSelect = React24__namespace.useCallback((emblaApi) => {
1556
1563
  if (!emblaApi)
1557
1564
  return;
1558
1565
  setCanScrollPrev(emblaApi.canScrollPrev());
1559
1566
  setCanScrollNext(emblaApi.canScrollNext());
1560
1567
  }, []);
1561
- const scrollPrev = React11__namespace.useCallback(() => {
1568
+ const scrollPrev = React24__namespace.useCallback(() => {
1562
1569
  api?.scrollPrev();
1563
1570
  }, [api]);
1564
- const scrollNext = React11__namespace.useCallback(() => {
1571
+ const scrollNext = React24__namespace.useCallback(() => {
1565
1572
  api?.scrollNext();
1566
1573
  }, [api]);
1567
- const handleKeyDown = React11__namespace.useCallback(
1574
+ const handleKeyDown = React24__namespace.useCallback(
1568
1575
  (event) => {
1569
1576
  const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
1570
1577
  const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
@@ -1578,12 +1585,12 @@ var Carousel = React11__namespace.forwardRef(
1578
1585
  },
1579
1586
  [resolvedOrientation, scrollPrev, scrollNext]
1580
1587
  );
1581
- React11__namespace.useEffect(() => {
1588
+ React24__namespace.useEffect(() => {
1582
1589
  if (!api || !setApi)
1583
1590
  return;
1584
1591
  setApi(api);
1585
1592
  }, [api, setApi]);
1586
- React11__namespace.useEffect(() => {
1593
+ React24__namespace.useEffect(() => {
1587
1594
  if (!api)
1588
1595
  return;
1589
1596
  onSelect(api);
@@ -1635,7 +1642,7 @@ var carouselContentVariants = classVarianceAuthority.cva("flex", {
1635
1642
  orientation: "horizontal"
1636
1643
  }
1637
1644
  });
1638
- var CarouselContent = React11__namespace.forwardRef(
1645
+ var CarouselContent = React24__namespace.forwardRef(
1639
1646
  ({ className, ...props }, ref) => {
1640
1647
  const { carouselRef, orientation } = useCarousel();
1641
1648
  return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1660,7 +1667,7 @@ var carouselItemVariants = classVarianceAuthority.cva("min-w-0 shrink-0 grow-0 b
1660
1667
  orientation: "horizontal"
1661
1668
  }
1662
1669
  });
1663
- var CarouselItem = React11__namespace.forwardRef(
1670
+ var CarouselItem = React24__namespace.forwardRef(
1664
1671
  ({ className, ...props }, ref) => {
1665
1672
  const { orientation } = useCarousel();
1666
1673
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -1676,7 +1683,7 @@ var CarouselItem = React11__namespace.forwardRef(
1676
1683
  }
1677
1684
  );
1678
1685
  CarouselItem.displayName = "CarouselItem";
1679
- var CarouselPrevious = React11__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1686
+ var CarouselPrevious = React24__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1680
1687
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
1681
1688
  return /* @__PURE__ */ jsxRuntime.jsxs(
1682
1689
  Button,
@@ -1701,7 +1708,7 @@ var CarouselPrevious = React11__namespace.forwardRef(({ className, variant = "ou
1701
1708
  );
1702
1709
  });
1703
1710
  CarouselPrevious.displayName = "CarouselPrevious";
1704
- var CarouselNext = React11__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1711
+ var CarouselNext = React24__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1705
1712
  const { orientation, scrollNext, canScrollNext } = useCarousel();
1706
1713
  return /* @__PURE__ */ jsxRuntime.jsxs(
1707
1714
  Button,
@@ -1764,7 +1771,7 @@ var checkboxVariants = classVarianceAuthority.cva(
1764
1771
  }
1765
1772
  }
1766
1773
  );
1767
- var Checkbox = React11__namespace.forwardRef(({
1774
+ var Checkbox = React24__namespace.forwardRef(({
1768
1775
  className,
1769
1776
  variant,
1770
1777
  size,
@@ -1797,7 +1804,7 @@ var Checkbox = React11__namespace.forwardRef(({
1797
1804
  );
1798
1805
  });
1799
1806
  Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
1800
- var CheckboxGroup = React11__namespace.forwardRef(
1807
+ var CheckboxGroup = React24__namespace.forwardRef(
1801
1808
  ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
1802
1809
  return /* @__PURE__ */ jsxRuntime.jsx(
1803
1810
  "div",
@@ -1817,7 +1824,7 @@ var CheckboxGroup = React11__namespace.forwardRef(
1817
1824
  }
1818
1825
  );
1819
1826
  CheckboxGroup.displayName = "CheckboxGroup";
1820
- var CheckboxLabel = React11__namespace.forwardRef(
1827
+ var CheckboxLabel = React24__namespace.forwardRef(
1821
1828
  ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
1822
1829
  return /* @__PURE__ */ jsxRuntime.jsx(
1823
1830
  "label",
@@ -1837,14 +1844,14 @@ var CheckboxLabel = React11__namespace.forwardRef(
1837
1844
  }
1838
1845
  );
1839
1846
  CheckboxLabel.displayName = "CheckboxLabel";
1840
- var CheckboxWithLabel = React11__namespace.forwardRef(({
1847
+ var CheckboxWithLabel = React24__namespace.forwardRef(({
1841
1848
  id,
1842
1849
  label,
1843
1850
  labelPosition = "end",
1844
1851
  labelClassName,
1845
1852
  ...checkboxProps
1846
1853
  }, ref) => {
1847
- const generatedId = React11__namespace.useId();
1854
+ const generatedId = React24__namespace.useId();
1848
1855
  const checkboxId = id || generatedId;
1849
1856
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
1850
1857
  labelPosition === "start" && /* @__PURE__ */ jsxRuntime.jsx(
@@ -1894,7 +1901,7 @@ var collapsibleTriggerVariants = classVarianceAuthority.cva(
1894
1901
  }
1895
1902
  }
1896
1903
  );
1897
- var CollapsibleTrigger = React11__namespace.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1904
+ var CollapsibleTrigger = React24__namespace.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1898
1905
  if (asChild) {
1899
1906
  return /* @__PURE__ */ jsxRuntime.jsx(
1900
1907
  CollapsiblePrimitive__namespace.Trigger,
@@ -1943,7 +1950,7 @@ var collapsibleContentVariants = classVarianceAuthority.cva(
1943
1950
  }
1944
1951
  }
1945
1952
  );
1946
- var CollapsibleContent = React11__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1953
+ var CollapsibleContent = React24__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1947
1954
  CollapsiblePrimitive__namespace.Content,
1948
1955
  {
1949
1956
  ref,
@@ -2026,7 +2033,7 @@ var inputVariants = classVarianceAuthority.cva(
2026
2033
  }
2027
2034
  }
2028
2035
  );
2029
- var Input = React11__namespace.forwardRef(
2036
+ var Input = React24__namespace.forwardRef(
2030
2037
  ({
2031
2038
  className,
2032
2039
  wrapperClassName,
@@ -2053,8 +2060,10 @@ var Input = React11__namespace.forwardRef(
2053
2060
  placeholder,
2054
2061
  ...props
2055
2062
  }, ref) => {
2056
- const [isFocused, setIsFocused] = React11__namespace.useState(false);
2057
- const [internalValue, setInternalValue] = React11__namespace.useState(value || defaultValue || "");
2063
+ const reactId = React24__namespace.useId();
2064
+ const fieldId = props.id || reactId;
2065
+ const [isFocused, setIsFocused] = React24__namespace.useState(false);
2066
+ const [internalValue, setInternalValue] = React24__namespace.useState(value || defaultValue || "");
2058
2067
  const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
2059
2068
  const isLabelActive = isFocused || hasValue;
2060
2069
  const handleFocus = (e) => {
@@ -2069,7 +2078,7 @@ var Input = React11__namespace.forwardRef(
2069
2078
  setInternalValue(e.target.value);
2070
2079
  onChange?.(e);
2071
2080
  };
2072
- React11__namespace.useEffect(() => {
2081
+ React24__namespace.useEffect(() => {
2073
2082
  if (value !== void 0) {
2074
2083
  setInternalValue(value);
2075
2084
  }
@@ -2118,7 +2127,7 @@ var Input = React11__namespace.forwardRef(
2118
2127
  "data-error": !!error ? "" : void 0,
2119
2128
  "data-success": !!success ? "" : void 0,
2120
2129
  "aria-invalid": !!error || !!isError || void 0,
2121
- "aria-describedby": error ? `${props.id || ""}-error` : success ? `${props.id || ""}-success` : void 0,
2130
+ "aria-describedby": error ? `${fieldId}-error` : success ? `${fieldId}-success` : void 0,
2122
2131
  value,
2123
2132
  defaultValue,
2124
2133
  onChange: handleChange,
@@ -2142,7 +2151,7 @@ var Input = React11__namespace.forwardRef(
2142
2151
  messageType === "normal" && "text-muted-foreground",
2143
2152
  messageClassName
2144
2153
  ),
2145
- id: error ? `${props.id || ""}-error` : success ? `${props.id || ""}-success` : void 0,
2154
+ id: error ? `${fieldId}-error` : success ? `${fieldId}-success` : void 0,
2146
2155
  children: error || success || ""
2147
2156
  }
2148
2157
  )
@@ -2151,9 +2160,9 @@ var Input = React11__namespace.forwardRef(
2151
2160
  );
2152
2161
  Input.displayName = "Input";
2153
2162
  var labelVariants = classVarianceAuthority.cva(
2154
- "text-sm font-medium leading-none text-gray-900 dark:text-gray-200 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:peer-disabled:opacity-60 transition-colors duration-200"
2163
+ "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"
2155
2164
  );
2156
- var Label = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2165
+ var Label = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2157
2166
  LabelPrimitive__namespace.Root,
2158
2167
  {
2159
2168
  ref,
@@ -2214,7 +2223,7 @@ var popoverContentVariants = classVarianceAuthority.cva(
2214
2223
  var Popover = PopoverPrimitive__namespace.Root;
2215
2224
  var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
2216
2225
  var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
2217
- var PopoverContent = React11__namespace.forwardRef(({
2226
+ var PopoverContent = React24__namespace.forwardRef(({
2218
2227
  className,
2219
2228
  variant,
2220
2229
  size,
@@ -2282,7 +2291,7 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
2282
2291
  }
2283
2292
  );
2284
2293
  PopoverFooter.displayName = "PopoverFooter";
2285
- var Tabs = React11__namespace.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2294
+ var Tabs = React24__namespace.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2286
2295
  TabsPrimitive__namespace.Root,
2287
2296
  {
2288
2297
  ref,
@@ -2323,7 +2332,7 @@ var tabsListVariants = classVarianceAuthority.cva(
2323
2332
  }
2324
2333
  }
2325
2334
  );
2326
- var TabsList = React11__namespace.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2335
+ var TabsList = React24__namespace.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2327
2336
  return /* @__PURE__ */ jsxRuntime.jsx(
2328
2337
  TabsPrimitive__namespace.List,
2329
2338
  {
@@ -2366,7 +2375,7 @@ var tabsTriggerVariants = classVarianceAuthority.cva(
2366
2375
  }
2367
2376
  }
2368
2377
  );
2369
- var TabsTrigger = React11__namespace.forwardRef(({
2378
+ var TabsTrigger = React24__namespace.forwardRef(({
2370
2379
  className,
2371
2380
  variant,
2372
2381
  size,
@@ -2398,7 +2407,7 @@ var TabsTrigger = React11__namespace.forwardRef(({
2398
2407
  }
2399
2408
  ));
2400
2409
  TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
2401
- var TabsContent = React11__namespace.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2410
+ var TabsContent = React24__namespace.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2402
2411
  TabsPrimitive__namespace.Content,
2403
2412
  {
2404
2413
  ref,
@@ -2492,7 +2501,7 @@ var sliderThumbVariants = classVarianceAuthority.cva(
2492
2501
  }
2493
2502
  }
2494
2503
  );
2495
- var Slider = React11__namespace.forwardRef(({
2504
+ var Slider = React24__namespace.forwardRef(({
2496
2505
  className,
2497
2506
  size,
2498
2507
  trackVariant,
@@ -2508,10 +2517,10 @@ var Slider = React11__namespace.forwardRef(({
2508
2517
  disabled,
2509
2518
  ...props
2510
2519
  }, ref) => {
2511
- const [sliderValue, setSliderValue] = React11__namespace.useState(
2520
+ const [sliderValue, setSliderValue] = React24__namespace.useState(
2512
2521
  value || defaultValue || [0]
2513
2522
  );
2514
- React11__namespace.useEffect(() => {
2523
+ React24__namespace.useEffect(() => {
2515
2524
  if (value !== void 0) {
2516
2525
  setSliderValue(value);
2517
2526
  }
@@ -2526,7 +2535,7 @@ var Slider = React11__namespace.forwardRef(({
2526
2535
  const calculateThumbPercent = (value2, min2, max2) => {
2527
2536
  return (value2 - min2) / (max2 - min2) * 100;
2528
2537
  };
2529
- const trackRef = React11__namespace.useRef(null);
2538
+ const trackRef = React24__namespace.useRef(null);
2530
2539
  const min = props.min || 0;
2531
2540
  const max = props.max || 100;
2532
2541
  const step = props.step || 1;
@@ -2838,14 +2847,14 @@ function ColorPicker({
2838
2847
  disabled,
2839
2848
  ...props
2840
2849
  }) {
2841
- const [open, setOpen] = React11__namespace.useState(false);
2842
- const [color, setColor] = React11__namespace.useState(value);
2843
- const [opacity, setOpacity] = React11__namespace.useState(100);
2844
- const [copied, setCopied] = React11__namespace.useState(false);
2845
- const [inputValue, setInputValue] = React11__namespace.useState(value);
2846
- const hsl = React11__namespace.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2847
- const rgb = React11__namespace.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2848
- React11__namespace.useEffect(() => {
2850
+ const [open, setOpen] = React24__namespace.useState(false);
2851
+ const [color, setColor] = React24__namespace.useState(value);
2852
+ const [opacity, setOpacity] = React24__namespace.useState(100);
2853
+ const [copied, setCopied] = React24__namespace.useState(false);
2854
+ const [inputValue, setInputValue] = React24__namespace.useState(value);
2855
+ const hsl = React24__namespace.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2856
+ const rgb = React24__namespace.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2857
+ React24__namespace.useEffect(() => {
2849
2858
  setColor(value);
2850
2859
  setInputValue(value);
2851
2860
  }, [value]);
@@ -3240,7 +3249,7 @@ function GradientPicker({
3240
3249
  onChange,
3241
3250
  className
3242
3251
  }) {
3243
- const [gradient, setGradient] = React11__namespace.useState(value);
3252
+ const [gradient, setGradient] = React24__namespace.useState(value);
3244
3253
  const handleChange = (field, newValue) => {
3245
3254
  const newGradient = { ...gradient, [field]: newValue };
3246
3255
  setGradient(newGradient);
@@ -3326,7 +3335,7 @@ var overlayVariants = classVarianceAuthority.cva(
3326
3335
  }
3327
3336
  }
3328
3337
  );
3329
- var DialogOverlay = React11__namespace.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3338
+ var DialogOverlay = React24__namespace.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3330
3339
  DialogPrimitive__namespace.Overlay,
3331
3340
  {
3332
3341
  ref,
@@ -3385,7 +3394,7 @@ var dialogContentVariants = classVarianceAuthority.cva(
3385
3394
  }
3386
3395
  }
3387
3396
  );
3388
- var DialogContent = React11__namespace.forwardRef(
3397
+ var DialogContent = React24__namespace.forwardRef(
3389
3398
  ({
3390
3399
  className,
3391
3400
  children,
@@ -3498,7 +3507,7 @@ var DialogFooter = ({
3498
3507
  }
3499
3508
  );
3500
3509
  DialogFooter.displayName = "DialogFooter";
3501
- var DialogTitle = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3510
+ var DialogTitle = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3502
3511
  DialogPrimitive__namespace.Title,
3503
3512
  {
3504
3513
  ref,
@@ -3510,7 +3519,7 @@ var DialogTitle = React11__namespace.forwardRef(({ className, ...props }, ref) =
3510
3519
  }
3511
3520
  ));
3512
3521
  DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
3513
- var DialogDescription = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3522
+ var DialogDescription = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3514
3523
  DialogPrimitive__namespace.Description,
3515
3524
  {
3516
3525
  ref,
@@ -3522,7 +3531,7 @@ var DialogDescription = React11__namespace.forwardRef(({ className, ...props },
3522
3531
  }
3523
3532
  ));
3524
3533
  DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
3525
- var DialogForm = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3534
+ var DialogForm = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3526
3535
  "form",
3527
3536
  {
3528
3537
  ref,
@@ -3552,7 +3561,7 @@ var commandVariants = classVarianceAuthority.cva(
3552
3561
  }
3553
3562
  }
3554
3563
  );
3555
- var Command = React11__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3564
+ var Command = React24__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3556
3565
  cmdk.Command,
3557
3566
  {
3558
3567
  ref,
@@ -3574,7 +3583,7 @@ var CommandDialog = ({
3574
3583
  ), children })
3575
3584
  ] }) });
3576
3585
  };
3577
- var CommandInput = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3586
+ var CommandInput = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3578
3587
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
3579
3588
  /* @__PURE__ */ jsxRuntime.jsx(
3580
3589
  cmdk.Command.Input,
@@ -3589,7 +3598,7 @@ var CommandInput = React11__namespace.forwardRef(({ className, ...props }, ref)
3589
3598
  )
3590
3599
  ] }));
3591
3600
  CommandInput.displayName = cmdk.Command.Input.displayName;
3592
- var CommandList = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3601
+ var CommandList = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3593
3602
  cmdk.Command.List,
3594
3603
  {
3595
3604
  ref,
@@ -3598,7 +3607,7 @@ var CommandList = React11__namespace.forwardRef(({ className, ...props }, ref) =
3598
3607
  }
3599
3608
  ));
3600
3609
  CommandList.displayName = cmdk.Command.List.displayName;
3601
- var CommandEmpty = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3610
+ var CommandEmpty = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3602
3611
  cmdk.Command.Empty,
3603
3612
  {
3604
3613
  ref,
@@ -3607,7 +3616,7 @@ var CommandEmpty = React11__namespace.forwardRef(({ className, ...props }, ref)
3607
3616
  }
3608
3617
  ));
3609
3618
  CommandEmpty.displayName = cmdk.Command.Empty.displayName;
3610
- var CommandGroup = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3619
+ var CommandGroup = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3611
3620
  cmdk.Command.Group,
3612
3621
  {
3613
3622
  ref,
@@ -3619,7 +3628,7 @@ var CommandGroup = React11__namespace.forwardRef(({ className, ...props }, ref)
3619
3628
  }
3620
3629
  ));
3621
3630
  CommandGroup.displayName = cmdk.Command.Group.displayName;
3622
- var CommandSeparator = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3631
+ var CommandSeparator = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3623
3632
  cmdk.Command.Separator,
3624
3633
  {
3625
3634
  ref,
@@ -3628,7 +3637,7 @@ var CommandSeparator = React11__namespace.forwardRef(({ className, ...props }, r
3628
3637
  }
3629
3638
  ));
3630
3639
  CommandSeparator.displayName = cmdk.Command.Separator.displayName;
3631
- var CommandItem = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3640
+ var CommandItem = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3632
3641
  cmdk.Command.Item,
3633
3642
  {
3634
3643
  ref,
@@ -3679,7 +3688,7 @@ var tableVariants = classVarianceAuthority.cva(
3679
3688
  }
3680
3689
  }
3681
3690
  );
3682
- var Table = React11__namespace.forwardRef(({
3691
+ var Table = React24__namespace.forwardRef(({
3683
3692
  className,
3684
3693
  variant,
3685
3694
  size,
@@ -3696,11 +3705,11 @@ var Table = React11__namespace.forwardRef(({
3696
3705
  ...props
3697
3706
  }, ref) => {
3698
3707
  const striped = variant === "striped";
3699
- const childrenWithProps = React11__namespace.Children.map(props.children, (child) => {
3700
- if (React11__namespace.isValidElement(child)) {
3708
+ const childrenWithProps = React24__namespace.Children.map(props.children, (child) => {
3709
+ if (React24__namespace.isValidElement(child)) {
3701
3710
  if (child.type === "tbody") {
3702
3711
  const tbodyProps = child.props;
3703
- return React11__namespace.cloneElement(child, {
3712
+ return React24__namespace.cloneElement(child, {
3704
3713
  className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
3705
3714
  });
3706
3715
  }
@@ -3725,10 +3734,10 @@ var Table = React11__namespace.forwardRef(({
3725
3734
  ] });
3726
3735
  });
3727
3736
  Table.displayName = "Table";
3728
- var TableHeader = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3737
+ var TableHeader = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3729
3738
  TableHeader.displayName = "TableHeader";
3730
- var TableBody = React11__namespace.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3731
- const hasChildren = React11__namespace.Children.count(children) > 0;
3739
+ var TableBody = React24__namespace.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3740
+ const hasChildren = React24__namespace.Children.count(children) > 0;
3732
3741
  return /* @__PURE__ */ jsxRuntime.jsx(
3733
3742
  "tbody",
3734
3743
  {
@@ -3740,7 +3749,7 @@ var TableBody = React11__namespace.forwardRef(({ className, emptyContent, emptyM
3740
3749
  );
3741
3750
  });
3742
3751
  TableBody.displayName = "TableBody";
3743
- var TableFooter = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3752
+ var TableFooter = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3744
3753
  "tfoot",
3745
3754
  {
3746
3755
  ref,
@@ -3749,7 +3758,7 @@ var TableFooter = React11__namespace.forwardRef(({ className, ...props }, ref) =
3749
3758
  }
3750
3759
  ));
3751
3760
  TableFooter.displayName = "TableFooter";
3752
- var TableRow = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3761
+ var TableRow = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3753
3762
  "tr",
3754
3763
  {
3755
3764
  ref,
@@ -3761,7 +3770,7 @@ var TableRow = React11__namespace.forwardRef(({ className, ...props }, ref) => /
3761
3770
  }
3762
3771
  ));
3763
3772
  TableRow.displayName = "TableRow";
3764
- var TableHead = React11__namespace.forwardRef(
3773
+ var TableHead = React24__namespace.forwardRef(
3765
3774
  ({ className, sortable, sorted, onSort, align = "left", children, ...props }, ref) => {
3766
3775
  const renderSortIcon = () => {
3767
3776
  if (!sortable)
@@ -3849,7 +3858,7 @@ var TableHead = React11__namespace.forwardRef(
3849
3858
  }
3850
3859
  );
3851
3860
  TableHead.displayName = "TableHead";
3852
- var TableCell = React11__namespace.forwardRef(({ className, align = "left", ...props }, ref) => {
3861
+ var TableCell = React24__namespace.forwardRef(({ className, align = "left", ...props }, ref) => {
3853
3862
  const alignmentClass = {
3854
3863
  left: "text-left",
3855
3864
  center: "text-center",
@@ -3865,7 +3874,7 @@ var TableCell = React11__namespace.forwardRef(({ className, align = "left", ...p
3865
3874
  );
3866
3875
  });
3867
3876
  TableCell.displayName = "TableCell";
3868
- var TableCaption = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3877
+ var TableCaption = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3869
3878
  "caption",
3870
3879
  {
3871
3880
  ref,
@@ -3885,8 +3894,8 @@ function DataTableBasic({
3885
3894
  emptyMessage = "No results found.",
3886
3895
  className
3887
3896
  }) {
3888
- const [sorting, setSorting] = React11__namespace.useState([]);
3889
- const [globalFilter, setGlobalFilter] = React11__namespace.useState("");
3897
+ const [sorting, setSorting] = React24__namespace.useState([]);
3898
+ const [globalFilter, setGlobalFilter] = React24__namespace.useState("");
3890
3899
  const table = reactTable.useReactTable({
3891
3900
  data,
3892
3901
  columns,
@@ -4049,7 +4058,7 @@ var datePickerVariants = classVarianceAuthority.cva(
4049
4058
  }
4050
4059
  }
4051
4060
  );
4052
- function DatePicker({
4061
+ var DatePicker = React24__namespace.forwardRef(function DatePicker2({
4053
4062
  className,
4054
4063
  variant,
4055
4064
  size,
@@ -4071,10 +4080,10 @@ function DatePicker({
4071
4080
  calendarProps,
4072
4081
  disabled,
4073
4082
  ...props
4074
- }) {
4075
- const [open, setOpen] = React11__namespace.useState(false);
4076
- const [internalDate, setInternalDate] = React11__namespace.useState(value);
4077
- React11__namespace.useEffect(() => {
4083
+ }, ref) {
4084
+ const [open, setOpen] = React24__namespace.useState(false);
4085
+ const [internalDate, setInternalDate] = React24__namespace.useState(value);
4086
+ React24__namespace.useEffect(() => {
4078
4087
  setInternalDate(value);
4079
4088
  }, [value]);
4080
4089
  const handleSelect = (date) => {
@@ -4106,7 +4115,7 @@ function DatePicker({
4106
4115
  };
4107
4116
  const displayValue = internalDate && dateFns.isValid(internalDate) ? dateFns.format(internalDate, formatString) : null;
4108
4117
  const iconElement = icon || /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Calendar, { className: "h-4 w-4" });
4109
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "moonui-theme", children: /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
4118
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: "moonui-theme", children: /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
4110
4119
  /* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
4111
4120
  Button,
4112
4121
  {
@@ -4183,7 +4192,7 @@ function DatePicker({
4183
4192
  /* @__PURE__ */ jsxRuntime.jsx(
4184
4193
  PopoverContent,
4185
4194
  {
4186
- className: "w-[360px] p-0 shadow-2xl rounded-2xl border border-gray-200 dark:border-gray-700 bg-background/95 backdrop-blur-sm !z-[9999]",
4195
+ className: "w-[360px] p-0 shadow-2xl rounded-2xl border border-border bg-background/95 backdrop-blur-sm !z-[9999]",
4187
4196
  align: "start",
4188
4197
  sideOffset: 12,
4189
4198
  children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -4220,8 +4229,9 @@ function DatePicker({
4220
4229
  }
4221
4230
  )
4222
4231
  ] }) });
4223
- }
4224
- function DateRangePicker({
4232
+ });
4233
+ DatePicker.displayName = "DatePicker";
4234
+ var DateRangePicker = React24__namespace.forwardRef(function DateRangePicker2({
4225
4235
  className,
4226
4236
  value,
4227
4237
  onChange,
@@ -4229,10 +4239,10 @@ function DateRangePicker({
4229
4239
  formatString = "LLL dd, y",
4230
4240
  separator = " - ",
4231
4241
  ...props
4232
- }) {
4233
- const [open, setOpen] = React11__namespace.useState(false);
4234
- const [internalRange, setInternalRange] = React11__namespace.useState(value);
4235
- React11__namespace.useEffect(() => {
4242
+ }, ref) {
4243
+ const [open, setOpen] = React24__namespace.useState(false);
4244
+ const [internalRange, setInternalRange] = React24__namespace.useState(value);
4245
+ React24__namespace.useEffect(() => {
4236
4246
  setInternalRange(value);
4237
4247
  }, [value]);
4238
4248
  const handleSelect = (range) => {
@@ -4242,7 +4252,7 @@ function DateRangePicker({
4242
4252
  setOpen(false);
4243
4253
  }
4244
4254
  };
4245
- const displayValue = React11__namespace.useMemo(() => {
4255
+ const displayValue = React24__namespace.useMemo(() => {
4246
4256
  if (!internalRange?.from)
4247
4257
  return null;
4248
4258
  if (!internalRange?.to) {
@@ -4257,6 +4267,7 @@ function DateRangePicker({
4257
4267
  /* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
4258
4268
  Button,
4259
4269
  {
4270
+ ref,
4260
4271
  variant: props.variant === "ghost" ? "ghost" : "outline",
4261
4272
  className: cn(
4262
4273
  datePickerVariants({
@@ -4274,7 +4285,7 @@ function DateRangePicker({
4274
4285
  ]
4275
4286
  }
4276
4287
  ) }),
4277
- /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-auto p-0 shadow-2xl rounded-2xl border border-gray-200 dark:border-gray-700 bg-background/95 backdrop-blur-sm !z-[9999]", align: "start", sideOffset: 12, children: /* @__PURE__ */ jsxRuntime.jsx(
4288
+ /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-auto p-0 shadow-2xl rounded-2xl border border-border bg-background/95 backdrop-blur-sm !z-[9999]", align: "start", sideOffset: 12, children: /* @__PURE__ */ jsxRuntime.jsx(
4278
4289
  Calendar,
4279
4290
  {
4280
4291
  mode: "range",
@@ -4287,8 +4298,9 @@ function DateRangePicker({
4287
4298
  }
4288
4299
  ) })
4289
4300
  ] });
4290
- }
4291
- function DateTimePicker({
4301
+ });
4302
+ DateRangePicker.displayName = "DateRangePicker";
4303
+ var DateTimePicker = React24__namespace.forwardRef(function DateTimePicker2({
4292
4304
  value,
4293
4305
  onChange,
4294
4306
  formatString = "PPP p",
@@ -4296,9 +4308,9 @@ function DateTimePicker({
4296
4308
  timeFormat = "24",
4297
4309
  timeInterval = 15,
4298
4310
  ...props
4299
- }) {
4300
- const [date, setDate] = React11__namespace.useState(value);
4301
- const [time, setTime] = React11__namespace.useState(
4311
+ }, ref) {
4312
+ const [date, setDate] = React24__namespace.useState(value);
4313
+ const [time, setTime] = React24__namespace.useState(
4302
4314
  value ? dateFns.format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
4303
4315
  );
4304
4316
  const handleDateChange = (newDate) => {
@@ -4323,7 +4335,7 @@ function DateTimePicker({
4323
4335
  onChange?.(newDate);
4324
4336
  }
4325
4337
  };
4326
- const timeOptions = React11__namespace.useMemo(() => {
4338
+ const timeOptions = React24__namespace.useMemo(() => {
4327
4339
  const options = [];
4328
4340
  for (let h = 0; h < 24; h++) {
4329
4341
  for (let m = 0; m < 60; m += timeInterval) {
@@ -4342,7 +4354,7 @@ function DateTimePicker({
4342
4354
  }
4343
4355
  return options;
4344
4356
  }, [timeFormat, timeInterval]);
4345
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
4357
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: "flex flex-col gap-2", children: [
4346
4358
  /* @__PURE__ */ jsxRuntime.jsx(
4347
4359
  DatePicker,
4348
4360
  {
@@ -4375,16 +4387,17 @@ function DateTimePicker({
4375
4387
  }
4376
4388
  )
4377
4389
  ] });
4378
- }
4379
- function MonthPicker({
4390
+ });
4391
+ DateTimePicker.displayName = "DateTimePicker";
4392
+ var MonthPicker = React24__namespace.forwardRef(function MonthPicker2({
4380
4393
  value,
4381
4394
  onChange,
4382
4395
  placeholder = "Pick a month",
4383
4396
  formatString = "MMMM yyyy",
4384
4397
  ...props
4385
- }) {
4386
- const [open, setOpen] = React11__namespace.useState(false);
4387
- const [viewDate, setViewDate] = React11__namespace.useState(value || /* @__PURE__ */ new Date());
4398
+ }, ref) {
4399
+ const [open, setOpen] = React24__namespace.useState(false);
4400
+ const [viewDate, setViewDate] = React24__namespace.useState(value || /* @__PURE__ */ new Date());
4388
4401
  const months = [
4389
4402
  "January",
4390
4403
  "February",
@@ -4415,6 +4428,7 @@ function MonthPicker({
4415
4428
  /* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
4416
4429
  Button,
4417
4430
  {
4431
+ ref,
4418
4432
  variant: props.variant === "default" ? "outline" : props.variant || "outline",
4419
4433
  className: cn(
4420
4434
  datePickerVariants({
@@ -4432,13 +4446,14 @@ function MonthPicker({
4432
4446
  ]
4433
4447
  }
4434
4448
  ) }),
4435
- /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-64 p-0 shadow-2xl border border-gray-200 dark:border-gray-700 bg-background !z-[9999]", align: "start", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-3", children: [
4449
+ /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-64 p-0 shadow-2xl border border-border bg-background !z-[9999]", align: "start", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-3", children: [
4436
4450
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-3", children: [
4437
4451
  /* @__PURE__ */ jsxRuntime.jsx(
4438
4452
  Button,
4439
4453
  {
4440
4454
  variant: "outline",
4441
4455
  size: "icon",
4456
+ "aria-label": `Previous year, ${viewDate.getFullYear() - 1}`,
4442
4457
  onClick: () => handleYearChange(-1),
4443
4458
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" })
4444
4459
  }
@@ -4449,6 +4464,7 @@ function MonthPicker({
4449
4464
  {
4450
4465
  variant: "outline",
4451
4466
  size: "icon",
4467
+ "aria-label": `Next year, ${viewDate.getFullYear() + 1}`,
4452
4468
  onClick: () => handleYearChange(1),
4453
4469
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" })
4454
4470
  }
@@ -4467,7 +4483,8 @@ function MonthPicker({
4467
4483
  )) })
4468
4484
  ] }) })
4469
4485
  ] });
4470
- }
4486
+ });
4487
+ MonthPicker.displayName = "MonthPicker";
4471
4488
  function DraggableList({
4472
4489
  items,
4473
4490
  onReorder,
@@ -4476,7 +4493,7 @@ function DraggableList({
4476
4493
  className,
4477
4494
  disabled = false
4478
4495
  }) {
4479
- const [draggedIndex, setDraggedIndex] = React11__namespace.useState(null);
4496
+ const [draggedIndex, setDraggedIndex] = React24__namespace.useState(null);
4480
4497
  const handleDragStart = (e, index) => {
4481
4498
  if (disabled)
4482
4499
  return;
@@ -4528,7 +4545,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
4528
4545
  var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
4529
4546
  var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
4530
4547
  var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
4531
- var DropdownMenuSubTrigger = React11__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4548
+ var DropdownMenuSubTrigger = React24__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4532
4549
  DropdownMenuPrimitive__namespace.SubTrigger,
4533
4550
  {
4534
4551
  ref,
@@ -4545,7 +4562,7 @@ var DropdownMenuSubTrigger = React11__namespace.forwardRef(({ className, inset,
4545
4562
  }
4546
4563
  ));
4547
4564
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
4548
- var DropdownMenuSubContent = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4565
+ var DropdownMenuSubContent = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4549
4566
  DropdownMenuPrimitive__namespace.SubContent,
4550
4567
  {
4551
4568
  ref,
@@ -4557,7 +4574,7 @@ var DropdownMenuSubContent = React11__namespace.forwardRef(({ className, ...prop
4557
4574
  }
4558
4575
  ));
4559
4576
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
4560
- var DropdownMenuContent = React11__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
4577
+ var DropdownMenuContent = React24__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
4561
4578
  DropdownMenuPrimitive__namespace.Content,
4562
4579
  {
4563
4580
  ref,
@@ -4570,7 +4587,7 @@ var DropdownMenuContent = React11__namespace.forwardRef(({ className, sideOffset
4570
4587
  }
4571
4588
  ) }));
4572
4589
  DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
4573
- var DropdownMenuItem = React11__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4590
+ var DropdownMenuItem = React24__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4574
4591
  DropdownMenuPrimitive__namespace.Item,
4575
4592
  {
4576
4593
  ref,
@@ -4583,7 +4600,7 @@ var DropdownMenuItem = React11__namespace.forwardRef(({ className, inset, ...pro
4583
4600
  }
4584
4601
  ));
4585
4602
  DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
4586
- var DropdownMenuCheckboxItem = React11__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4603
+ var DropdownMenuCheckboxItem = React24__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4587
4604
  DropdownMenuPrimitive__namespace.CheckboxItem,
4588
4605
  {
4589
4606
  ref,
@@ -4600,7 +4617,7 @@ var DropdownMenuCheckboxItem = React11__namespace.forwardRef(({ className, child
4600
4617
  }
4601
4618
  ));
4602
4619
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
4603
- var DropdownMenuRadioItem = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4620
+ var DropdownMenuRadioItem = React24__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4604
4621
  DropdownMenuPrimitive__namespace.RadioItem,
4605
4622
  {
4606
4623
  ref,
@@ -4616,7 +4633,7 @@ var DropdownMenuRadioItem = React11__namespace.forwardRef(({ className, children
4616
4633
  }
4617
4634
  ));
4618
4635
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
4619
- var DropdownMenuLabel = React11__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4636
+ var DropdownMenuLabel = React24__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4620
4637
  DropdownMenuPrimitive__namespace.Label,
4621
4638
  {
4622
4639
  ref,
@@ -4629,7 +4646,7 @@ var DropdownMenuLabel = React11__namespace.forwardRef(({ className, inset, ...pr
4629
4646
  }
4630
4647
  ));
4631
4648
  DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
4632
- var DropdownMenuSeparator = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4649
+ var DropdownMenuSeparator = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4633
4650
  DropdownMenuPrimitive__namespace.Separator,
4634
4651
  {
4635
4652
  ref,
@@ -4718,7 +4735,7 @@ var progressIndicatorVariants = classVarianceAuthority.cva(
4718
4735
  }
4719
4736
  }
4720
4737
  );
4721
- var Progress = React11__namespace.forwardRef(({
4738
+ var Progress = React24__namespace.forwardRef(({
4722
4739
  className,
4723
4740
  value = 0,
4724
4741
  variant,
@@ -4847,7 +4864,7 @@ var FileItem = ({
4847
4864
  }
4848
4865
  );
4849
4866
  };
4850
- var FileUpload = React11__namespace.default.forwardRef(
4867
+ var FileUpload = React24__namespace.default.forwardRef(
4851
4868
  ({
4852
4869
  accept = "*",
4853
4870
  multiple = true,
@@ -4861,9 +4878,9 @@ var FileUpload = React11__namespace.default.forwardRef(
4861
4878
  children,
4862
4879
  ...props
4863
4880
  }, ref) => {
4864
- const [uploadedFiles, setUploadedFiles] = React11.useState([]);
4865
- const [isDragOver, setIsDragOver] = React11.useState(false);
4866
- const [error, setError] = React11.useState(null);
4881
+ const [uploadedFiles, setUploadedFiles] = React24.useState([]);
4882
+ const [isDragOver, setIsDragOver] = React24.useState(false);
4883
+ const [error, setError] = React24.useState(null);
4867
4884
  const validateFile = (file) => {
4868
4885
  if (file.size > maxSize) {
4869
4886
  return `File size exceeds ${formatFileSize(maxSize)}`;
@@ -4879,7 +4896,7 @@ var FileUpload = React11__namespace.default.forwardRef(
4879
4896
  }
4880
4897
  return null;
4881
4898
  };
4882
- const processFiles = React11.useCallback(async (files) => {
4899
+ const processFiles = React24.useCallback(async (files) => {
4883
4900
  const fileArray = Array.from(files);
4884
4901
  setError(null);
4885
4902
  if (uploadedFiles.length + fileArray.length > maxFiles) {
@@ -4942,7 +4959,7 @@ var FileUpload = React11__namespace.default.forwardRef(
4942
4959
  }
4943
4960
  }
4944
4961
  }, [uploadedFiles.length, maxFiles, maxSize, accept, onUpload]);
4945
- const handleDrop = React11.useCallback((e) => {
4962
+ const handleDrop = React24.useCallback((e) => {
4946
4963
  e.preventDefault();
4947
4964
  setIsDragOver(false);
4948
4965
  if (disabled)
@@ -4952,24 +4969,24 @@ var FileUpload = React11__namespace.default.forwardRef(
4952
4969
  processFiles(files);
4953
4970
  }
4954
4971
  }, [processFiles, disabled]);
4955
- const handleDragOver = React11.useCallback((e) => {
4972
+ const handleDragOver = React24.useCallback((e) => {
4956
4973
  e.preventDefault();
4957
4974
  if (!disabled) {
4958
4975
  setIsDragOver(true);
4959
4976
  }
4960
4977
  }, [disabled]);
4961
- const handleDragLeave = React11.useCallback((e) => {
4978
+ const handleDragLeave = React24.useCallback((e) => {
4962
4979
  e.preventDefault();
4963
4980
  setIsDragOver(false);
4964
4981
  }, []);
4965
- const handleFileSelect = React11.useCallback((e) => {
4982
+ const handleFileSelect = React24.useCallback((e) => {
4966
4983
  const files = e.target.files;
4967
4984
  if (files && files.length > 0) {
4968
4985
  processFiles(files);
4969
4986
  }
4970
4987
  e.target.value = "";
4971
4988
  }, [processFiles]);
4972
- const removeFile = React11.useCallback((fileId) => {
4989
+ const removeFile = React24.useCallback((fileId) => {
4973
4990
  setUploadedFiles((prev) => {
4974
4991
  const fileToRemove = prev.find((f) => f.id === fileId);
4975
4992
  if (fileToRemove?.preview) {
@@ -5007,6 +5024,7 @@ var FileUpload = React11__namespace.default.forwardRef(
5007
5024
  multiple,
5008
5025
  disabled,
5009
5026
  onChange: handleFileSelect,
5027
+ "aria-label": multiple ? "Choose files to upload" : "Choose a file to upload",
5010
5028
  className: "absolute inset-0 w-full h-full opacity-0 cursor-pointer"
5011
5029
  }
5012
5030
  ),
@@ -5069,7 +5087,7 @@ var FileUpload = React11__namespace.default.forwardRef(
5069
5087
  }
5070
5088
  );
5071
5089
  FileUpload.displayName = "FileUpload";
5072
- var GestureDrawer = React11__namespace.default.forwardRef(
5090
+ var GestureDrawer = React24__namespace.default.forwardRef(
5073
5091
  ({
5074
5092
  children,
5075
5093
  isOpen,
@@ -5191,9 +5209,9 @@ function GitHubStars({
5191
5209
  showWatchers = false,
5192
5210
  repoUrl = "https://github.com/moonui/moonui"
5193
5211
  }) {
5194
- const [stats, setStats] = React11.useState(null);
5195
- const [isLoading, setIsLoading] = React11.useState(true);
5196
- React11.useEffect(() => {
5212
+ const [stats, setStats] = React24.useState(null);
5213
+ const [isLoading, setIsLoading] = React24.useState(true);
5214
+ React24.useEffect(() => {
5197
5215
  const fetchStats = async () => {
5198
5216
  try {
5199
5217
  const response = await fetch("/api/github-stars");
@@ -5292,9 +5310,9 @@ function GitHubStarButton({
5292
5310
  size = "md",
5293
5311
  repoUrl = "https://github.com/moonui/moonui"
5294
5312
  }) {
5295
- const [stars, setStars] = React11.useState(null);
5296
- const [isLoading, setIsLoading] = React11.useState(true);
5297
- React11.useEffect(() => {
5313
+ const [stars, setStars] = React24.useState(null);
5314
+ const [isLoading, setIsLoading] = React24.useState(true);
5315
+ React24.useEffect(() => {
5298
5316
  const fetchStats = async () => {
5299
5317
  try {
5300
5318
  const response = await fetch("/api/github-stars");
@@ -5340,10 +5358,11 @@ function GitHubStarButton({
5340
5358
  }
5341
5359
  );
5342
5360
  }
5343
- var InputOTP = React11__namespace.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5361
+ var InputOTP = React24__namespace.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5344
5362
  inputOtp.OTPInput,
5345
5363
  {
5346
5364
  ref,
5365
+ "aria-label": "One-time password",
5347
5366
  containerClassName: cn(
5348
5367
  "moonui-theme",
5349
5368
  "flex items-center gap-2 has-[:disabled]:opacity-50",
@@ -5354,7 +5373,7 @@ var InputOTP = React11__namespace.forwardRef(({ className, containerClassName, .
5354
5373
  }
5355
5374
  ));
5356
5375
  InputOTP.displayName = "InputOTP";
5357
- var InputOTPGroup = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5376
+ var InputOTPGroup = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5358
5377
  InputOTPGroup.displayName = "InputOTPGroup";
5359
5378
  var inputOTPSlotVariants = classVarianceAuthority.cva(
5360
5379
  [
@@ -5376,9 +5395,9 @@ var inputOTPSlotVariants = classVarianceAuthority.cva(
5376
5395
  }
5377
5396
  }
5378
5397
  );
5379
- var InputOTPSlot = React11__namespace.forwardRef(
5398
+ var InputOTPSlot = React24__namespace.forwardRef(
5380
5399
  ({ index, className, ...props }, ref) => {
5381
- const inputOTPContext = React11__namespace.useContext(inputOtp.OTPInputContext);
5400
+ const inputOTPContext = React24__namespace.useContext(inputOtp.OTPInputContext);
5382
5401
  const slot = inputOTPContext?.slots?.[index];
5383
5402
  const char = slot?.char;
5384
5403
  const hasFakeCaret = slot?.hasFakeCaret;
@@ -5400,7 +5419,7 @@ var InputOTPSlot = React11__namespace.forwardRef(
5400
5419
  }
5401
5420
  );
5402
5421
  InputOTPSlot.displayName = "InputOTPSlot";
5403
- var InputOTPSeparator = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5422
+ var InputOTPSeparator = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5404
5423
  "div",
5405
5424
  {
5406
5425
  ref,
@@ -5418,8 +5437,8 @@ function LockedComponent({
5418
5437
  showPreview = true,
5419
5438
  previewDuration = 2e3
5420
5439
  }) {
5421
- const [isPreviewActive, setIsPreviewActive] = React11.useState(false);
5422
- const [previewTimeout, setPreviewTimeout] = React11.useState(null);
5440
+ const [isPreviewActive, setIsPreviewActive] = React24.useState(false);
5441
+ const [previewTimeout, setPreviewTimeout] = React24.useState(null);
5423
5442
  const handleMouseEnter = () => {
5424
5443
  if (!showPreview)
5425
5444
  return;
@@ -5516,13 +5535,13 @@ function ProComponentWrapper({
5516
5535
  fallback,
5517
5536
  requireCLI = true
5518
5537
  }) {
5519
- const [authState, setAuthState] = React11.useState({
5538
+ const [authState, setAuthState] = React24.useState({
5520
5539
  isAuthenticated: false,
5521
5540
  deviceValid: false,
5522
5541
  hasProAccess: false,
5523
5542
  loading: true
5524
5543
  });
5525
- React11.useEffect(() => {
5544
+ React24.useEffect(() => {
5526
5545
  const isDevelopment2 = () => {
5527
5546
  const checks = {
5528
5547
  nodeEnv: process.env.NODE_ENV === "development",
@@ -5699,7 +5718,7 @@ function MoonLogo({
5699
5718
  showText = true,
5700
5719
  ...props
5701
5720
  }) {
5702
- const logoId = React11__namespace.useId();
5721
+ const logoId = React24__namespace.useId();
5703
5722
  const gradientId = `moon-gradient-${logoId}`;
5704
5723
  const maskId = `moon-mask-${logoId}`;
5705
5724
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-2", className), children: [
@@ -5781,7 +5800,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
5781
5800
  }
5782
5801
  );
5783
5802
  Pagination.displayName = "Pagination";
5784
- var PaginationContent = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5803
+ var PaginationContent = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5785
5804
  "ul",
5786
5805
  {
5787
5806
  ref,
@@ -5790,7 +5809,7 @@ var PaginationContent = React11__namespace.forwardRef(({ className, ...props },
5790
5809
  }
5791
5810
  ));
5792
5811
  PaginationContent.displayName = "PaginationContent";
5793
- var PaginationItem = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5812
+ var PaginationItem = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5794
5813
  PaginationItem.displayName = "PaginationItem";
5795
5814
  var PaginationLink = ({
5796
5815
  className,
@@ -5898,7 +5917,7 @@ var selectTriggerVariants = classVarianceAuthority.cva(
5898
5917
  }
5899
5918
  }
5900
5919
  );
5901
- var SelectTrigger = React11__namespace.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5920
+ var SelectTrigger = React24__namespace.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5902
5921
  SelectPrimitive__namespace.Trigger,
5903
5922
  {
5904
5923
  ref,
@@ -5929,7 +5948,7 @@ var SelectTrigger = React11__namespace.forwardRef(({ className, children, varian
5929
5948
  }
5930
5949
  ));
5931
5950
  SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
5932
- var SelectScrollUpButton = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5951
+ var SelectScrollUpButton = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5933
5952
  SelectPrimitive__namespace.ScrollUpButton,
5934
5953
  {
5935
5954
  ref,
@@ -5942,7 +5961,7 @@ var SelectScrollUpButton = React11__namespace.forwardRef(({ className, ...props
5942
5961
  }
5943
5962
  ));
5944
5963
  SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
5945
- var SelectScrollDownButton = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5964
+ var SelectScrollDownButton = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5946
5965
  SelectPrimitive__namespace.ScrollDownButton,
5947
5966
  {
5948
5967
  ref,
@@ -5955,7 +5974,7 @@ var SelectScrollDownButton = React11__namespace.forwardRef(({ className, ...prop
5955
5974
  }
5956
5975
  ));
5957
5976
  SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
5958
- var SelectContent = React11__namespace.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
5977
+ var SelectContent = React24__namespace.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
5959
5978
  SelectPrimitive__namespace.Content,
5960
5979
  {
5961
5980
  ref,
@@ -5996,7 +6015,7 @@ var SelectContent = React11__namespace.forwardRef(({ className, children, positi
5996
6015
  }
5997
6016
  ) }));
5998
6017
  SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
5999
- var SelectLabel = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6018
+ var SelectLabel = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6000
6019
  SelectPrimitive__namespace.Label,
6001
6020
  {
6002
6021
  ref,
@@ -6005,7 +6024,7 @@ var SelectLabel = React11__namespace.forwardRef(({ className, ...props }, ref) =
6005
6024
  }
6006
6025
  ));
6007
6026
  SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
6008
- var SelectItem = React11__namespace.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
6027
+ var SelectItem = React24__namespace.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
6009
6028
  SelectPrimitive__namespace.Item,
6010
6029
  {
6011
6030
  ref,
@@ -6035,7 +6054,7 @@ var SelectItem = React11__namespace.forwardRef(({ className, children, variant =
6035
6054
  }
6036
6055
  ));
6037
6056
  SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
6038
- var SelectSeparator = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6057
+ var SelectSeparator = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6039
6058
  SelectPrimitive__namespace.Separator,
6040
6059
  {
6041
6060
  ref,
@@ -6117,7 +6136,7 @@ var getMaxLength = (countryCode) => {
6117
6136
  return 15;
6118
6137
  }
6119
6138
  };
6120
- var PhoneInput = React11__namespace.forwardRef(
6139
+ var PhoneInput = React24__namespace.forwardRef(
6121
6140
  ({
6122
6141
  className,
6123
6142
  value = "",
@@ -6129,8 +6148,8 @@ var PhoneInput = React11__namespace.forwardRef(
6129
6148
  size,
6130
6149
  ...props
6131
6150
  }, ref) => {
6132
- const [countryCode, setCountryCode] = React11__namespace.useState(defaultCountry);
6133
- const [phoneNumber, setPhoneNumber] = React11__namespace.useState(value);
6151
+ const [countryCode, setCountryCode] = React24__namespace.useState(defaultCountry);
6152
+ const [phoneNumber, setPhoneNumber] = React24__namespace.useState(value);
6134
6153
  const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
6135
6154
  const handlePhoneChange = (e) => {
6136
6155
  const rawValue = e.target.value.replace(/\D/g, "");
@@ -6201,15 +6220,15 @@ var radioGroupItemVariants = classVarianceAuthority.cva(
6201
6220
  }
6202
6221
  }
6203
6222
  );
6204
- var RadioGroupContext = React11__namespace.createContext({});
6205
- var RadioGroup2 = React11__namespace.forwardRef(
6223
+ var RadioGroupContext = React24__namespace.createContext({});
6224
+ var RadioGroup2 = React24__namespace.forwardRef(
6206
6225
  ({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
6207
- const [internalValue, setInternalValue] = React11__namespace.useState(
6226
+ const [internalValue, setInternalValue] = React24__namespace.useState(
6208
6227
  defaultValue
6209
6228
  );
6210
6229
  const isControlled = value !== void 0;
6211
6230
  const currentValue = isControlled ? value : internalValue;
6212
- const handleValueChange = React11__namespace.useCallback(
6231
+ const handleValueChange = React24__namespace.useCallback(
6213
6232
  (next) => {
6214
6233
  if (!isControlled) {
6215
6234
  setInternalValue(next);
@@ -6241,9 +6260,9 @@ var RadioGroup2 = React11__namespace.forwardRef(
6241
6260
  }
6242
6261
  );
6243
6262
  RadioGroup2.displayName = "RadioGroup";
6244
- var RadioGroupItem = React11__namespace.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6245
- const radioGroup = React11__namespace.useContext(RadioGroupContext);
6246
- const generatedId = React11__namespace.useId();
6263
+ var RadioGroupItem = React24__namespace.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6264
+ const radioGroup = React24__namespace.useContext(RadioGroupContext);
6265
+ const generatedId = React24__namespace.useId();
6247
6266
  const radioId = id || generatedId;
6248
6267
  const isChecked = radioGroup.value === value;
6249
6268
  const handleChange = (e) => {
@@ -6296,7 +6315,7 @@ var RadioGroupItem = React11__namespace.forwardRef(({ className, variant, size,
6296
6315
  ] });
6297
6316
  });
6298
6317
  RadioGroupItem.displayName = "RadioGroupItem";
6299
- var RadioLabel = React11__namespace.forwardRef(
6318
+ var RadioLabel = React24__namespace.forwardRef(
6300
6319
  ({ className, htmlFor, children, disabled = false, ...props }, ref) => {
6301
6320
  return /* @__PURE__ */ jsxRuntime.jsx(
6302
6321
  "label",
@@ -6315,13 +6334,13 @@ var RadioLabel = React11__namespace.forwardRef(
6315
6334
  }
6316
6335
  );
6317
6336
  RadioLabel.displayName = "RadioLabel";
6318
- var RadioItemWithLabel = React11__namespace.forwardRef(({
6337
+ var RadioItemWithLabel = React24__namespace.forwardRef(({
6319
6338
  id,
6320
6339
  label,
6321
6340
  labelClassName,
6322
6341
  ...radioProps
6323
6342
  }, ref) => {
6324
- const generatedId = React11__namespace.useId();
6343
+ const generatedId = React24__namespace.useId();
6325
6344
  const radioId = id || generatedId;
6326
6345
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
6327
6346
  /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
@@ -6398,7 +6417,7 @@ function RichTextEditor({
6398
6417
  )
6399
6418
  ] });
6400
6419
  }
6401
- var ScrollArea = React11__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
6420
+ var ScrollArea = React24__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
6402
6421
  ScrollAreaPrimitive__namespace.Root,
6403
6422
  {
6404
6423
  ref,
@@ -6412,7 +6431,7 @@ var ScrollArea = React11__namespace.forwardRef(({ className, children, ...props
6412
6431
  }
6413
6432
  ));
6414
6433
  ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
6415
- var ScrollBar = React11__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6434
+ var ScrollBar = React24__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6416
6435
  ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
6417
6436
  {
6418
6437
  ref,
@@ -6466,7 +6485,7 @@ var defaultTransition = {
6466
6485
  ease: [0.25, 0.46, 0.45, 0.94]
6467
6486
  // Custom cubic-bezier for smooth motion
6468
6487
  };
6469
- var ScrollReveal = React11__namespace.forwardRef(
6488
+ var ScrollReveal = React24__namespace.forwardRef(
6470
6489
  ({
6471
6490
  children,
6472
6491
  direction = "up",
@@ -6487,17 +6506,17 @@ var ScrollReveal = React11__namespace.forwardRef(
6487
6506
  viewport
6488
6507
  }, ref) => {
6489
6508
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6490
- const animationVariants = React11__namespace.useMemo(() => {
6509
+ const animationVariants = React24__namespace.useMemo(() => {
6491
6510
  if (variants)
6492
6511
  return variants;
6493
6512
  return createDefaultVariants(direction, distance);
6494
6513
  }, [direction, distance, variants]);
6495
- const transition = React11__namespace.useMemo(() => ({
6514
+ const transition = React24__namespace.useMemo(() => ({
6496
6515
  ...defaultTransition,
6497
6516
  duration,
6498
6517
  delay: delay + stagger
6499
6518
  }), [duration, delay, stagger]);
6500
- const viewportConfig = React11__namespace.useMemo(() => ({
6519
+ const viewportConfig = React24__namespace.useMemo(() => ({
6501
6520
  once: shouldTriggerOnce,
6502
6521
  amount: threshold,
6503
6522
  ...viewport
@@ -6532,7 +6551,7 @@ var ScrollReveal = React11__namespace.forwardRef(
6532
6551
  }
6533
6552
  );
6534
6553
  ScrollReveal.displayName = "ScrollReveal";
6535
- var ScrollRevealContainer = React11__namespace.forwardRef(
6554
+ var ScrollRevealContainer = React24__namespace.forwardRef(
6536
6555
  ({
6537
6556
  children,
6538
6557
  stagger = 0.1,
@@ -6545,7 +6564,7 @@ var ScrollRevealContainer = React11__namespace.forwardRef(
6545
6564
  viewport
6546
6565
  }, ref) => {
6547
6566
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6548
- const viewportConfig = React11__namespace.useMemo(() => ({
6567
+ const viewportConfig = React24__namespace.useMemo(() => ({
6549
6568
  once: shouldTriggerOnce,
6550
6569
  amount: threshold,
6551
6570
  ...viewport
@@ -6576,7 +6595,7 @@ var ScrollRevealContainer = React11__namespace.forwardRef(
6576
6595
  }
6577
6596
  );
6578
6597
  ScrollRevealContainer.displayName = "ScrollRevealContainer";
6579
- var ScrollRevealItem = React11__namespace.forwardRef(
6598
+ var ScrollRevealItem = React24__namespace.forwardRef(
6580
6599
  ({
6581
6600
  children,
6582
6601
  direction = "up",
@@ -6587,12 +6606,12 @@ var ScrollRevealItem = React11__namespace.forwardRef(
6587
6606
  style,
6588
6607
  id
6589
6608
  }, ref) => {
6590
- const animationVariants = React11__namespace.useMemo(() => {
6609
+ const animationVariants = React24__namespace.useMemo(() => {
6591
6610
  if (variants)
6592
6611
  return variants;
6593
6612
  return createDefaultVariants(direction, distance);
6594
6613
  }, [direction, distance, variants]);
6595
- const transition = React11__namespace.useMemo(() => ({
6614
+ const transition = React24__namespace.useMemo(() => ({
6596
6615
  ...defaultTransition,
6597
6616
  duration
6598
6617
  }), [duration]);
@@ -6708,7 +6727,7 @@ var separatorVariants = classVarianceAuthority.cva(
6708
6727
  }
6709
6728
  }
6710
6729
  );
6711
- var Separator3 = React11__namespace.forwardRef(
6730
+ var Separator3 = React24__namespace.forwardRef(
6712
6731
  ({
6713
6732
  className,
6714
6733
  orientation = "horizontal",
@@ -6751,7 +6770,7 @@ var toggleVariants = classVarianceAuthority.cva(
6751
6770
  }
6752
6771
  }
6753
6772
  );
6754
- var Toggle = React11__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6773
+ var Toggle = React24__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6755
6774
  TogglePrimitive__namespace.Root,
6756
6775
  {
6757
6776
  ref,
@@ -6787,7 +6806,7 @@ var tooltipVariants = classVarianceAuthority.cva(
6787
6806
  );
6788
6807
  var Tooltip = TooltipPrimitive__namespace.Root;
6789
6808
  var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
6790
- var TooltipArrow = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6809
+ var TooltipArrow = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6791
6810
  TooltipPrimitive__namespace.Arrow,
6792
6811
  {
6793
6812
  ref,
@@ -6796,7 +6815,7 @@ var TooltipArrow = React11__namespace.forwardRef(({ className, ...props }, ref)
6796
6815
  }
6797
6816
  ));
6798
6817
  TooltipArrow.displayName = TooltipPrimitive__namespace.Arrow.displayName;
6799
- var TooltipContent = React11__namespace.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
6818
+ var TooltipContent = React24__namespace.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
6800
6819
  TooltipPrimitive__namespace.Content,
6801
6820
  {
6802
6821
  ref,
@@ -6810,7 +6829,7 @@ var TooltipContent = React11__namespace.forwardRef(({ className, variant, size,
6810
6829
  }
6811
6830
  ));
6812
6831
  TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
6813
- var SimpleTooltip = React11__namespace.forwardRef(
6832
+ var SimpleTooltip = React24__namespace.forwardRef(
6814
6833
  ({
6815
6834
  children,
6816
6835
  content,
@@ -6864,6 +6883,7 @@ var ToolbarButton = ({ icon, tooltip, active, onClick, disabled }) => /* @__PURE
6864
6883
  pressed: active,
6865
6884
  onPressedChange: () => onClick(),
6866
6885
  disabled,
6886
+ "aria-label": tooltip,
6867
6887
  className: "h-8 w-8 p-0",
6868
6888
  children: icon
6869
6889
  }
@@ -6888,14 +6908,16 @@ var ColorPicker2 = ({ onColorSelect }) => {
6888
6908
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-4 gap-1 p-2", children: colors.map((color) => /* @__PURE__ */ jsxRuntime.jsx(
6889
6909
  "button",
6890
6910
  {
6891
- className: "w-6 h-6 rounded border-2 border-gray-200 hover:border-gray-400",
6911
+ type: "button",
6912
+ "aria-label": `Select color ${color}`,
6913
+ className: "w-6 h-6 rounded border-2 border-border hover:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
6892
6914
  style: { backgroundColor: color },
6893
6915
  onClick: () => onColorSelect(color)
6894
6916
  },
6895
6917
  color
6896
6918
  )) });
6897
6919
  };
6898
- var SimpleEditor = React11__namespace.default.forwardRef(
6920
+ var SimpleEditor = React24__namespace.default.forwardRef(
6899
6921
  ({
6900
6922
  value = "",
6901
6923
  onChange,
@@ -6908,13 +6930,13 @@ var SimpleEditor = React11__namespace.default.forwardRef(
6908
6930
  showPreview = true,
6909
6931
  ...props
6910
6932
  }, ref) => {
6911
- const [content, setContent] = React11.useState(value);
6912
- const [isPreview, setIsPreview] = React11.useState(false);
6913
- const [sourceContent, setSourceContent] = React11.useState(value);
6914
- React11.useState(null);
6915
- const editorRef = React11__namespace.default.useRef(null);
6916
- const sourceRef = React11__namespace.default.useRef(null);
6917
- const [formatState, setFormatState] = React11.useState({
6933
+ const [content, setContent] = React24.useState(value);
6934
+ const [isPreview, setIsPreview] = React24.useState(false);
6935
+ const [sourceContent, setSourceContent] = React24.useState(value);
6936
+ React24.useState(null);
6937
+ const editorRef = React24__namespace.default.useRef(null);
6938
+ const sourceRef = React24__namespace.default.useRef(null);
6939
+ const [formatState, setFormatState] = React24.useState({
6918
6940
  bold: false,
6919
6941
  italic: false,
6920
6942
  underline: false,
@@ -6928,18 +6950,18 @@ var SimpleEditor = React11__namespace.default.forwardRef(
6928
6950
  quote: false,
6929
6951
  code: false
6930
6952
  });
6931
- const updateContent = React11.useCallback((newContent) => {
6953
+ const updateContent = React24.useCallback((newContent) => {
6932
6954
  setContent(newContent);
6933
6955
  onChange?.(newContent);
6934
6956
  }, [onChange]);
6935
- const saveSelection = React11.useCallback(() => {
6957
+ const saveSelection = React24.useCallback(() => {
6936
6958
  const selection2 = window.getSelection();
6937
6959
  if (selection2 && selection2.rangeCount > 0) {
6938
6960
  return selection2.getRangeAt(0);
6939
6961
  }
6940
6962
  return null;
6941
6963
  }, []);
6942
- React11.useCallback((range) => {
6964
+ React24.useCallback((range) => {
6943
6965
  if (!range)
6944
6966
  return;
6945
6967
  const selection2 = window.getSelection();
@@ -6948,7 +6970,7 @@ var SimpleEditor = React11__namespace.default.forwardRef(
6948
6970
  selection2.addRange(range);
6949
6971
  }
6950
6972
  }, []);
6951
- const executeCommand = React11.useCallback((command, value2) => {
6973
+ const executeCommand = React24.useCallback((command, value2) => {
6952
6974
  if (disabled)
6953
6975
  return;
6954
6976
  if (editorRef.current) {
@@ -6981,11 +7003,11 @@ var SimpleEditor = React11__namespace.default.forwardRef(
6981
7003
  editorRef.current.focus();
6982
7004
  }
6983
7005
  }, [disabled, saveSelection, updateContent]);
6984
- const handleInput = React11.useCallback((e) => {
7006
+ const handleInput = React24.useCallback((e) => {
6985
7007
  const newContent = e.currentTarget.innerHTML;
6986
7008
  updateContent(newContent);
6987
7009
  }, [updateContent]);
6988
- const handleKeyDown = React11.useCallback((e) => {
7010
+ const handleKeyDown = React24.useCallback((e) => {
6989
7011
  if (e.ctrlKey || e.metaKey) {
6990
7012
  switch (e.key) {
6991
7013
  case "b":
@@ -7015,22 +7037,22 @@ var SimpleEditor = React11__namespace.default.forwardRef(
7015
7037
  executeCommand("insertHTML", "&nbsp;&nbsp;&nbsp;&nbsp;");
7016
7038
  }
7017
7039
  }, [executeCommand]);
7018
- const insertLink = React11.useCallback(() => {
7040
+ const insertLink = React24.useCallback(() => {
7019
7041
  const url = prompt("Enter URL:");
7020
7042
  if (url) {
7021
7043
  executeCommand("createLink", url);
7022
7044
  }
7023
7045
  }, [executeCommand]);
7024
- const insertImage = React11.useCallback(() => {
7046
+ const insertImage = React24.useCallback(() => {
7025
7047
  const url = prompt("Enter image URL:");
7026
7048
  if (url) {
7027
7049
  executeCommand("insertImage", url);
7028
7050
  }
7029
7051
  }, [executeCommand]);
7030
- const formatHeading = React11.useCallback((level) => {
7052
+ const formatHeading = React24.useCallback((level) => {
7031
7053
  executeCommand("formatBlock", `<h${level}>`);
7032
7054
  }, [executeCommand]);
7033
- const setTextColor = React11.useCallback((color) => {
7055
+ const setTextColor = React24.useCallback((color) => {
7034
7056
  const selection2 = window.getSelection();
7035
7057
  if (selection2 && selection2.rangeCount > 0) {
7036
7058
  const range = selection2.getRangeAt(0);
@@ -7047,12 +7069,12 @@ var SimpleEditor = React11__namespace.default.forwardRef(
7047
7069
  }
7048
7070
  }
7049
7071
  }, [executeCommand, updateContent]);
7050
- React11__namespace.default.useEffect(() => {
7072
+ React24__namespace.default.useEffect(() => {
7051
7073
  if (editorRef.current && content && content !== editorRef.current.innerHTML) {
7052
7074
  editorRef.current.innerHTML = content;
7053
7075
  }
7054
7076
  }, [content]);
7055
- React11__namespace.default.useEffect(() => {
7077
+ React24__namespace.default.useEffect(() => {
7056
7078
  if (value !== void 0 && value !== content) {
7057
7079
  setContent(value);
7058
7080
  setSourceContent(value);
@@ -7367,10 +7389,15 @@ var SimpleEditor = React11__namespace.default.forwardRef(
7367
7389
  ref: editorRef,
7368
7390
  contentEditable: !disabled,
7369
7391
  suppressContentEditableWarning: true,
7392
+ role: "textbox",
7393
+ "aria-multiline": "true",
7394
+ "aria-label": placeholder,
7395
+ "aria-disabled": disabled || void 0,
7370
7396
  className: cn(
7371
7397
  "p-4 outline-none prose prose-sm dark:prose-invert max-w-none overflow-y-auto",
7372
- "bg-slate-50 dark:bg-zinc-900/95",
7373
- "text-gray-900 dark:text-gray-100",
7398
+ // Token'a bağlandı (önce `bg-slate-50 dark:bg-zinc-900/95` ve
7399
+ // `text-gray-900 dark:text-gray-100` hardcode'luydu).
7400
+ "bg-background text-foreground",
7374
7401
  "focus:ring-0",
7375
7402
  "[&_h1]:text-3xl [&_h1]:font-bold [&_h1]:mb-4",
7376
7403
  "[&_h2]:text-2xl [&_h2]:font-bold [&_h2]:mb-3",
@@ -7409,8 +7436,8 @@ var SimpleEditor = React11__namespace.default.forwardRef(
7409
7436
  );
7410
7437
  SimpleEditor.displayName = "SimpleEditor";
7411
7438
  var CharacterCount = ({ content }) => {
7412
- const [count, setCount] = React11.useState(0);
7413
- React11.useEffect(() => {
7439
+ const [count, setCount] = React24.useState(0);
7440
+ React24.useEffect(() => {
7414
7441
  const getPlainText = (html) => {
7415
7442
  const div = document.createElement("div");
7416
7443
  div.innerHTML = html;
@@ -7457,7 +7484,7 @@ var skeletonVariants = classVarianceAuthority.cva(
7457
7484
  }
7458
7485
  }
7459
7486
  );
7460
- var Skeleton = React11__namespace.forwardRef(
7487
+ var Skeleton = React24__namespace.forwardRef(
7461
7488
  ({
7462
7489
  className,
7463
7490
  variant,
@@ -7541,7 +7568,7 @@ var Skeleton = React11__namespace.forwardRef(
7541
7568
  }
7542
7569
  );
7543
7570
  Skeleton.displayName = "Skeleton";
7544
- var SkeletonText = React11__namespace.forwardRef(
7571
+ var SkeletonText = React24__namespace.forwardRef(
7545
7572
  ({
7546
7573
  className,
7547
7574
  lines = 3,
@@ -7582,7 +7609,7 @@ var SkeletonText = React11__namespace.forwardRef(
7582
7609
  }
7583
7610
  );
7584
7611
  SkeletonText.displayName = "SkeletonText";
7585
- var SkeletonAvatar = React11__namespace.forwardRef(
7612
+ var SkeletonAvatar = React24__namespace.forwardRef(
7586
7613
  ({
7587
7614
  className,
7588
7615
  size = "2.5rem",
@@ -7608,7 +7635,7 @@ var SkeletonAvatar = React11__namespace.forwardRef(
7608
7635
  }
7609
7636
  );
7610
7637
  SkeletonAvatar.displayName = "SkeletonAvatar";
7611
- var SkeletonCard = React11__namespace.forwardRef(
7638
+ var SkeletonCard = React24__namespace.forwardRef(
7612
7639
  ({
7613
7640
  className,
7614
7641
  showHeader = true,
@@ -7682,11 +7709,11 @@ var SkeletonCard = React11__namespace.forwardRef(
7682
7709
  }
7683
7710
  );
7684
7711
  SkeletonCard.displayName = "SkeletonCard";
7685
- var SwipeableCard = React11__namespace.forwardRef(
7712
+ var SwipeableCard = React24__namespace.forwardRef(
7686
7713
  ({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
7687
- const [startX, setStartX] = React11__namespace.useState(0);
7688
- const [currentX, setCurrentX] = React11__namespace.useState(0);
7689
- const [isSwiping, setIsSwiping] = React11__namespace.useState(false);
7714
+ const [startX, setStartX] = React24__namespace.useState(0);
7715
+ const [currentX, setCurrentX] = React24__namespace.useState(0);
7716
+ const [isSwiping, setIsSwiping] = React24__namespace.useState(false);
7690
7717
  const handleTouchStart = (e) => {
7691
7718
  if (disabled)
7692
7719
  return;
@@ -7781,7 +7808,7 @@ var switchThumbVariants = classVarianceAuthority.cva(
7781
7808
  }
7782
7809
  }
7783
7810
  );
7784
- var Switch = React11__namespace.forwardRef(({
7811
+ var Switch = React24__namespace.forwardRef(({
7785
7812
  className,
7786
7813
  size,
7787
7814
  variant,
@@ -7792,7 +7819,7 @@ var Switch = React11__namespace.forwardRef(({
7792
7819
  "aria-describedby": ariaDescribedBy,
7793
7820
  ...props
7794
7821
  }, ref) => {
7795
- const reactId = React11__namespace.useId();
7822
+ const reactId = React24__namespace.useId();
7796
7823
  const descriptionId = description ? `${reactId}-description` : void 0;
7797
7824
  const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
7798
7825
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
@@ -7820,7 +7847,7 @@ var Switch = React11__namespace.forwardRef(({
7820
7847
  ] });
7821
7848
  });
7822
7849
  Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
7823
- var TagsInput = React11__namespace.forwardRef(
7850
+ var TagsInput = React24__namespace.forwardRef(
7824
7851
  ({
7825
7852
  value = [],
7826
7853
  onChange,
@@ -7833,14 +7860,63 @@ var TagsInput = React11__namespace.forwardRef(
7833
7860
  disabled,
7834
7861
  ...props
7835
7862
  }, ref) => {
7836
- const [inputValue, setInputValue] = React11__namespace.useState("");
7837
- const [error, setError] = React11__namespace.useState("");
7863
+ const [inputValue, setInputValue] = React24__namespace.useState("");
7864
+ const [error, setError] = React24__namespace.useState("");
7865
+ const innerInputRef = React24__namespace.useRef(null);
7866
+ React24__namespace.useImperativeHandle(ref, () => innerInputRef.current);
7867
+ const tagButtonRefs = React24__namespace.useRef([]);
7868
+ const errorId = React24__namespace.useId();
7869
+ const focusTag = (index) => {
7870
+ if (value.length === 0)
7871
+ return;
7872
+ const clamped = Math.max(0, Math.min(value.length - 1, index));
7873
+ tagButtonRefs.current[clamped]?.focus();
7874
+ };
7838
7875
  const handleKeyDown = (e) => {
7839
7876
  if (e.key === "Enter" || e.key === delimiter) {
7840
7877
  e.preventDefault();
7841
7878
  addTag();
7842
7879
  } else if (e.key === "Backspace" && inputValue === "" && value.length > 0) {
7843
7880
  removeTag(value.length - 1);
7881
+ } else if (e.key === "ArrowLeft" && inputValue === "" && value.length > 0) {
7882
+ e.preventDefault();
7883
+ focusTag(value.length - 1);
7884
+ }
7885
+ };
7886
+ const handleTagKeyDown = (index) => (e) => {
7887
+ switch (e.key) {
7888
+ case "ArrowLeft":
7889
+ e.preventDefault();
7890
+ focusTag(index - 1);
7891
+ break;
7892
+ case "ArrowRight":
7893
+ e.preventDefault();
7894
+ if (index >= value.length - 1)
7895
+ innerInputRef.current?.focus();
7896
+ else
7897
+ focusTag(index + 1);
7898
+ break;
7899
+ case "Home":
7900
+ e.preventDefault();
7901
+ focusTag(0);
7902
+ break;
7903
+ case "End":
7904
+ e.preventDefault();
7905
+ focusTag(value.length - 1);
7906
+ break;
7907
+ case "Delete":
7908
+ case "Backspace": {
7909
+ e.preventDefault();
7910
+ const remaining = value.length - 1;
7911
+ removeTag(index);
7912
+ requestAnimationFrame(() => {
7913
+ if (remaining > 0)
7914
+ focusTag(Math.min(index, remaining - 1));
7915
+ else
7916
+ innerInputRef.current?.focus();
7917
+ });
7918
+ break;
7919
+ }
7844
7920
  }
7845
7921
  };
7846
7922
  const addTag = () => {
@@ -7872,36 +7948,35 @@ var TagsInput = React11__namespace.forwardRef(
7872
7948
  {
7873
7949
  className: cn(
7874
7950
  "flex items-center min-h-[2.5rem] w-full flex-wrap gap-2 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background",
7875
- "dark:bg-zinc-950/50 dark:border-zinc-800",
7951
+ // NOT: burada `dark:bg-zinc-950/50 dark:border-zinc-800` hardcode'u
7952
+ // vardı ve aynı satırdaki `bg-background`/`border-input` token'larını
7953
+ // karanlık modda eziyordu. Token'lar zaten dark-mode duyarlı.
7876
7954
  "focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
7877
7955
  disabled && "cursor-not-allowed opacity-50",
7878
7956
  className
7879
7957
  ),
7880
7958
  children: [
7881
- value.map((tag, index) => /* @__PURE__ */ jsxRuntime.jsxs(
7882
- Badge,
7883
- {
7884
- variant,
7885
- className: "gap-1 pr-1.5",
7886
- children: [
7887
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs", children: tag }),
7888
- !disabled && /* @__PURE__ */ jsxRuntime.jsx(
7889
- "button",
7890
- {
7891
- type: "button",
7892
- onClick: () => removeTag(index),
7893
- className: "ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
7894
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-3 w-3 text-muted-foreground hover:text-foreground transition-colors" })
7895
- }
7896
- )
7897
- ]
7898
- },
7899
- index
7900
- )),
7959
+ value.map((tag, index) => /* @__PURE__ */ jsxRuntime.jsxs(Badge, { variant, className: "gap-1 pr-1.5", children: [
7960
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs", children: tag }),
7961
+ !disabled && /* @__PURE__ */ jsxRuntime.jsx(
7962
+ "button",
7963
+ {
7964
+ ref: (el) => {
7965
+ tagButtonRefs.current[index] = el;
7966
+ },
7967
+ type: "button",
7968
+ "aria-label": `Remove ${tag}`,
7969
+ onClick: () => removeTag(index),
7970
+ onKeyDown: handleTagKeyDown(index),
7971
+ className: "ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
7972
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-3 w-3 text-muted-foreground hover:text-foreground transition-colors" })
7973
+ }
7974
+ )
7975
+ ] }, index)),
7901
7976
  /* @__PURE__ */ jsxRuntime.jsx(
7902
7977
  "input",
7903
7978
  {
7904
- ref,
7979
+ ref: innerInputRef,
7905
7980
  type: "text",
7906
7981
  value: inputValue,
7907
7982
  onChange: (e) => setInputValue(e.target.value),
@@ -7909,9 +7984,11 @@ var TagsInput = React11__namespace.forwardRef(
7909
7984
  onBlur: addTag,
7910
7985
  disabled,
7911
7986
  placeholder: value.length === 0 ? placeholder : "",
7987
+ "aria-label": "Add tag",
7988
+ "aria-describedby": error ? errorId : void 0,
7989
+ "aria-invalid": error ? true : void 0,
7912
7990
  className: cn(
7913
7991
  "flex-1 bg-transparent outline-none placeholder:text-muted-foreground",
7914
- "dark:placeholder:text-zinc-500",
7915
7992
  "min-w-[120px]",
7916
7993
  disabled && "cursor-not-allowed"
7917
7994
  ),
@@ -7921,7 +7998,7 @@ var TagsInput = React11__namespace.forwardRef(
7921
7998
  ]
7922
7999
  }
7923
8000
  ),
7924
- error && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-xs text-destructive", children: error })
8001
+ error && /* @__PURE__ */ jsxRuntime.jsx("p", { id: errorId, role: "status", className: "mt-1 text-xs text-destructive", children: error })
7925
8002
  ] });
7926
8003
  }
7927
8004
  );
@@ -7965,7 +8042,7 @@ var textareaVariants = classVarianceAuthority.cva(
7965
8042
  }
7966
8043
  }
7967
8044
  );
7968
- var Textarea = React11__namespace.forwardRef(
8045
+ var Textarea = React24__namespace.forwardRef(
7969
8046
  ({
7970
8047
  className,
7971
8048
  wrapperClassName,
@@ -7985,10 +8062,12 @@ var Textarea = React11__namespace.forwardRef(
7985
8062
  onChange,
7986
8063
  ...props
7987
8064
  }, ref) => {
7988
- const textareaRef = React11__namespace.useRef(null);
7989
- const [internalValue, setInternalValue] = React11__namespace.useState(value || defaultValue || "");
7990
- React11__namespace.useImperativeHandle(ref, () => textareaRef.current);
7991
- const adjustHeight = React11__namespace.useCallback(() => {
8065
+ const reactId = React24__namespace.useId();
8066
+ const fieldId = props.id || reactId;
8067
+ const textareaRef = React24__namespace.useRef(null);
8068
+ const [internalValue, setInternalValue] = React24__namespace.useState(value || defaultValue || "");
8069
+ React24__namespace.useImperativeHandle(ref, () => textareaRef.current);
8070
+ const adjustHeight = React24__namespace.useCallback(() => {
7992
8071
  const textarea = textareaRef.current;
7993
8072
  if (!textarea || !autoResize)
7994
8073
  return;
@@ -8002,10 +8081,10 @@ var Textarea = React11__namespace.forwardRef(
8002
8081
  textarea.style.overflowY = "hidden";
8003
8082
  }
8004
8083
  }, [autoResize, maxHeight]);
8005
- React11__namespace.useEffect(() => {
8084
+ React24__namespace.useEffect(() => {
8006
8085
  adjustHeight();
8007
8086
  }, [internalValue, adjustHeight]);
8008
- React11__namespace.useEffect(() => {
8087
+ React24__namespace.useEffect(() => {
8009
8088
  if (value !== void 0) {
8010
8089
  setInternalValue(value);
8011
8090
  }
@@ -8041,7 +8120,7 @@ var Textarea = React11__namespace.forwardRef(
8041
8120
  onChange: handleChange,
8042
8121
  maxLength,
8043
8122
  "aria-invalid": !!error || void 0,
8044
- "aria-describedby": errorMessage ? `${props.id || ""}-error` : successMessage ? `${props.id || ""}-success` : void 0,
8123
+ "aria-describedby": errorMessage ? `${fieldId}-error` : successMessage ? `${fieldId}-success` : void 0,
8045
8124
  ...props
8046
8125
  }
8047
8126
  ),
@@ -8057,7 +8136,7 @@ var Textarea = React11__namespace.forwardRef(
8057
8136
  successMessage && "text-success",
8058
8137
  messageClassName
8059
8138
  ),
8060
- id: errorMessage ? `${props.id || ""}-error` : successMessage ? `${props.id || ""}-success` : void 0,
8139
+ id: errorMessage ? `${fieldId}-error` : successMessage ? `${fieldId}-success` : void 0,
8061
8140
  children: errorMessage || successMessage
8062
8141
  }
8063
8142
  ),
@@ -8071,7 +8150,7 @@ var Textarea = React11__namespace.forwardRef(
8071
8150
  );
8072
8151
  Textarea.displayName = "Textarea";
8073
8152
  var ToastProvider = ToastPrimitives__namespace.Provider;
8074
- var ToastViewport = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8153
+ var ToastViewport = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8075
8154
  ToastPrimitives__namespace.Viewport,
8076
8155
  {
8077
8156
  ref,
@@ -8100,7 +8179,7 @@ var toastVariants = classVarianceAuthority.cva(
8100
8179
  }
8101
8180
  }
8102
8181
  );
8103
- var Toast = React11__namespace.forwardRef(({ className, variant, ...props }, ref) => {
8182
+ var Toast = React24__namespace.forwardRef(({ className, variant, ...props }, ref) => {
8104
8183
  return /* @__PURE__ */ jsxRuntime.jsx(
8105
8184
  ToastPrimitives__namespace.Root,
8106
8185
  {
@@ -8111,7 +8190,7 @@ var Toast = React11__namespace.forwardRef(({ className, variant, ...props }, ref
8111
8190
  );
8112
8191
  });
8113
8192
  Toast.displayName = ToastPrimitives__namespace.Root.displayName;
8114
- var ToastAction = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8193
+ var ToastAction = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8115
8194
  ToastPrimitives__namespace.Action,
8116
8195
  {
8117
8196
  ref,
@@ -8123,7 +8202,7 @@ var ToastAction = React11__namespace.forwardRef(({ className, ...props }, ref) =
8123
8202
  }
8124
8203
  ));
8125
8204
  ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
8126
- var ToastClose = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8205
+ var ToastClose = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8127
8206
  ToastPrimitives__namespace.Close,
8128
8207
  {
8129
8208
  ref,
@@ -8137,7 +8216,7 @@ var ToastClose = React11__namespace.forwardRef(({ className, ...props }, ref) =>
8137
8216
  }
8138
8217
  ));
8139
8218
  ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
8140
- var ToastTitle = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8219
+ var ToastTitle = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8141
8220
  ToastPrimitives__namespace.Title,
8142
8221
  {
8143
8222
  ref,
@@ -8146,7 +8225,7 @@ var ToastTitle = React11__namespace.forwardRef(({ className, ...props }, ref) =>
8146
8225
  }
8147
8226
  ));
8148
8227
  ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
8149
- var ToastDescription = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8228
+ var ToastDescription = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8150
8229
  ToastPrimitives__namespace.Description,
8151
8230
  {
8152
8231
  ref,
@@ -8254,8 +8333,8 @@ function toast({ ...props }) {
8254
8333
  };
8255
8334
  }
8256
8335
  function useToast() {
8257
- const [state, setState] = React11__namespace.useState(memoryState);
8258
- React11__namespace.useEffect(() => {
8336
+ const [state, setState] = React24__namespace.useState(memoryState);
8337
+ React24__namespace.useEffect(() => {
8259
8338
  listeners.push(setState);
8260
8339
  return () => {
8261
8340
  const index = listeners.indexOf(setState);
@@ -8308,7 +8387,7 @@ var kbdVariants = classVarianceAuthority.cva(
8308
8387
  }
8309
8388
  }
8310
8389
  );
8311
- var Kbd = React11__namespace.forwardRef(
8390
+ var Kbd = React24__namespace.forwardRef(
8312
8391
  ({ className, size, children, ...props }, ref) => {
8313
8392
  return /* @__PURE__ */ jsxRuntime.jsx(
8314
8393
  "kbd",
@@ -8345,7 +8424,7 @@ var iconSizeMap = {
8345
8424
  md: "h-5 w-5",
8346
8425
  lg: "h-6 w-6"
8347
8426
  };
8348
- var Rating = React11__namespace.forwardRef(
8427
+ var Rating = React24__namespace.forwardRef(
8349
8428
  ({
8350
8429
  className,
8351
8430
  value,
@@ -8363,11 +8442,11 @@ var Rating = React11__namespace.forwardRef(
8363
8442
  const iconSizeClass = iconSizeMap[resolvedSize];
8364
8443
  const step = precision === "half" ? 0.5 : 1;
8365
8444
  const isControlled = value !== void 0;
8366
- const [internalValue, setInternalValue] = React11__namespace.useState(defaultValue ?? 0);
8445
+ const [internalValue, setInternalValue] = React24__namespace.useState(defaultValue ?? 0);
8367
8446
  const currentValue = isControlled ? value ?? 0 : internalValue;
8368
- const [hoverValue, setHoverValue] = React11__namespace.useState(null);
8447
+ const [hoverValue, setHoverValue] = React24__namespace.useState(null);
8369
8448
  const displayValue = hoverValue !== null ? hoverValue : currentValue;
8370
- const commit = React11__namespace.useCallback(
8449
+ const commit = React24__namespace.useCallback(
8371
8450
  (next) => {
8372
8451
  if (readOnly)
8373
8452
  return;
@@ -8377,7 +8456,7 @@ var Rating = React11__namespace.forwardRef(
8377
8456
  },
8378
8457
  [readOnly, isControlled, onValueChange]
8379
8458
  );
8380
- const handleKeyDown = React11__namespace.useCallback(
8459
+ const handleKeyDown = React24__namespace.useCallback(
8381
8460
  (event) => {
8382
8461
  if (readOnly)
8383
8462
  return;
@@ -8406,9 +8485,9 @@ var Rating = React11__namespace.forwardRef(
8406
8485
  [readOnly, max, currentValue, step, commit]
8407
8486
  );
8408
8487
  const renderIcon = (filled) => {
8409
- if (React11__namespace.isValidElement(icon)) {
8488
+ if (React24__namespace.isValidElement(icon)) {
8410
8489
  const element = icon;
8411
- return React11__namespace.cloneElement(element, {
8490
+ return React24__namespace.cloneElement(element, {
8412
8491
  className: cn(
8413
8492
  iconSizeClass,
8414
8493
  "shrink-0",
@@ -8542,7 +8621,7 @@ var dotSizeMap = {
8542
8621
  lg: "h-2 w-2",
8543
8622
  xl: "h-2.5 w-2.5"
8544
8623
  };
8545
- var Spinner = React11__namespace.forwardRef(
8624
+ var Spinner = React24__namespace.forwardRef(
8546
8625
  ({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
8547
8626
  return /* @__PURE__ */ jsxRuntime.jsxs(
8548
8627
  "div",
@@ -8621,15 +8700,15 @@ var buttonGroupVariants = classVarianceAuthority.cva(
8621
8700
  }
8622
8701
  }
8623
8702
  );
8624
- var ButtonGroup = React11__namespace.forwardRef(
8703
+ var ButtonGroup = React24__namespace.forwardRef(
8625
8704
  ({ className, orientation, attached, size, variant, children, ...props }, ref) => {
8626
8705
  const shouldPropagate = size !== void 0 || variant !== void 0;
8627
- const enhancedChildren = shouldPropagate ? React11__namespace.Children.map(children, (child) => {
8628
- if (!React11__namespace.isValidElement(child) || child.type !== Button) {
8706
+ const enhancedChildren = shouldPropagate ? React24__namespace.Children.map(children, (child) => {
8707
+ if (!React24__namespace.isValidElement(child) || child.type !== Button) {
8629
8708
  return child;
8630
8709
  }
8631
8710
  const childProps = child.props;
8632
- return React11__namespace.cloneElement(child, {
8711
+ return React24__namespace.cloneElement(child, {
8633
8712
  size: childProps.size ?? size,
8634
8713
  variant: childProps.variant ?? variant
8635
8714
  });
@@ -8647,11 +8726,11 @@ var ButtonGroup = React11__namespace.forwardRef(
8647
8726
  }
8648
8727
  );
8649
8728
  ButtonGroup.displayName = "ButtonGroup";
8650
- var ToggleGroupContext = React11__namespace.createContext({
8729
+ var ToggleGroupContext = React24__namespace.createContext({
8651
8730
  size: "default",
8652
8731
  variant: "default"
8653
8732
  });
8654
- var ToggleGroup = React11__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8733
+ var ToggleGroup = React24__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8655
8734
  ToggleGroupPrimitive__namespace.Root,
8656
8735
  {
8657
8736
  ref,
@@ -8668,8 +8747,8 @@ var ToggleGroup = React11__namespace.forwardRef(({ className, variant, size, chi
8668
8747
  }
8669
8748
  ));
8670
8749
  ToggleGroup.displayName = "ToggleGroup";
8671
- var ToggleGroupItem = React11__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8672
- const context = React11__namespace.useContext(ToggleGroupContext);
8750
+ var ToggleGroupItem = React24__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8751
+ const context = React24__namespace.useContext(ToggleGroupContext);
8673
8752
  return /* @__PURE__ */ jsxRuntime.jsx(
8674
8753
  ToggleGroupPrimitive__namespace.Item,
8675
8754
  {