@moontra/moonui 3.3.0 → 4.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.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import * as React10 from 'react';
4
- import React10__default, { useState, useCallback, useEffect } from 'react';
3
+ import * as React11 from 'react';
4
+ import React11__default, { useState, useCallback, useEffect } from 'react';
5
5
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
6
6
  import { ChevronDown, Info, AlertCircle, AlertTriangle, Check, X, MoreHorizontal, Loader2, CreditCard, ArrowLeft, ArrowRight, Minus, Search, ChevronRight, Circle, Upload, Dot, ChevronUp, Phone, Bold, Italic, Underline, Strikethrough, AlignLeft, AlignCenter, AlignRight, AlignJustify, List, ListOrdered, Quote, Code, Link, Image, Palette, Undo, Redo, Edit, Eye, ChevronLeft, Copy, ArrowDown, ArrowUp, ArrowUpDown, Calendar as Calendar$1, Clock, CheckCircle, Star, GitFork, ExternalLink, Crown, Lock, Zap, Video, Music, FileText, File } from 'lucide-react';
7
7
  export { Palette, Pipette } from 'lucide-react';
@@ -38,7 +38,7 @@ function cn(...inputs) {
38
38
  return twMerge(clsx(inputs));
39
39
  }
40
40
  var Accordion = AccordionPrimitive.Root;
41
- var AccordionItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
41
+ var AccordionItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
42
42
  AccordionPrimitive.Item,
43
43
  {
44
44
  ref,
@@ -47,7 +47,7 @@ var AccordionItem = React10.forwardRef(({ className, ...props }, ref) => /* @__P
47
47
  }
48
48
  ));
49
49
  AccordionItem.displayName = "AccordionItem";
50
- var AccordionTrigger = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
50
+ var AccordionTrigger = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
51
51
  AccordionPrimitive.Trigger,
52
52
  {
53
53
  ref,
@@ -65,7 +65,7 @@ var AccordionTrigger = React10.forwardRef(({ className, children, ...props }, re
65
65
  }
66
66
  ) }));
67
67
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
68
- var AccordionContent = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
68
+ var AccordionContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
69
69
  AccordionPrimitive.Content,
70
70
  {
71
71
  ref,
@@ -89,7 +89,10 @@ var alertVariants = cva(
89
89
  success: "bg-success/10 text-success border-success/30",
90
90
  warning: "bg-warning/10 text-warning border-warning/30",
91
91
  error: "bg-destructive/10 text-destructive border-destructive/30",
92
- info: "bg-blue-500/10 text-blue-500 border-blue-500/30"
92
+ // `--info` token'ı (tokens.css) blue-500 ile birebir aynı değeri
93
+ // taşır → görsel değişiklik yok, ancak varyant artık temaya ve
94
+ // karanlık moda duyarlı. Kardeş varyantlarla simetrik.
95
+ info: "bg-info/10 text-info border-info/30"
93
96
  },
94
97
  size: {
95
98
  sm: "py-2 text-xs",
@@ -115,7 +118,7 @@ var alertVariants = cva(
115
118
  }
116
119
  }
117
120
  );
118
- var Alert = React10.forwardRef(
121
+ var Alert = React11.forwardRef(
119
122
  ({
120
123
  className,
121
124
  variant = "default",
@@ -127,7 +130,7 @@ var Alert = React10.forwardRef(
127
130
  children,
128
131
  ...props
129
132
  }, ref) => {
130
- const Icon2 = React10.useMemo(() => {
133
+ const Icon2 = React11.useMemo(() => {
131
134
  switch (variant) {
132
135
  case "success":
133
136
  return Check;
@@ -165,7 +168,7 @@ var Alert = React10.forwardRef(
165
168
  {
166
169
  onClick: onClose,
167
170
  className: "absolute right-3 top-3 inline-flex h-6 w-6 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100",
168
- "aria-label": "Kapat",
171
+ "aria-label": "Close alert",
169
172
  children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
170
173
  }
171
174
  )
@@ -175,7 +178,7 @@ var Alert = React10.forwardRef(
175
178
  }
176
179
  );
177
180
  Alert.displayName = "Alert";
178
- var AlertTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
181
+ var AlertTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
179
182
  "h5",
180
183
  {
181
184
  ref,
@@ -188,7 +191,7 @@ var AlertTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
188
191
  }
189
192
  ));
190
193
  AlertTitle.displayName = "AlertTitle";
191
- var AlertDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
194
+ var AlertDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
192
195
  "div",
193
196
  {
194
197
  ref,
@@ -224,7 +227,7 @@ var aspectRatioVariants = cva(
224
227
  }
225
228
  }
226
229
  );
227
- var AspectRatio = React10.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
230
+ var AspectRatio = React11.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
228
231
  "div",
229
232
  {
230
233
  ref,
@@ -273,7 +276,7 @@ var avatarVariants = cva(
273
276
  }
274
277
  }
275
278
  );
276
- var Avatar = React10.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
279
+ var Avatar = React11.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
277
280
  AvatarPrimitive.Root,
278
281
  {
279
282
  ref,
@@ -282,7 +285,7 @@ var Avatar = React10.forwardRef(({ className, size, radius, variant, ...props },
282
285
  }
283
286
  ));
284
287
  Avatar.displayName = AvatarPrimitive.Root.displayName;
285
- var AvatarImage = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
288
+ var AvatarImage = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
286
289
  AvatarPrimitive.Image,
287
290
  {
288
291
  ref,
@@ -291,7 +294,7 @@ var AvatarImage = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
291
294
  }
292
295
  ));
293
296
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
294
- var AvatarFallback = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
297
+ var AvatarFallback = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
295
298
  AvatarPrimitive.Fallback,
296
299
  {
297
300
  ref,
@@ -303,10 +306,11 @@ var AvatarFallback = React10.forwardRef(({ className, ...props }, ref) => /* @__
303
306
  }
304
307
  ));
305
308
  AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
306
- var AvatarGroup = React10.forwardRef(
307
- ({ className, limit, avatars, overlapOffset = -8, ...props }, ref) => {
308
- const visibleAvatars = limit ? avatars.slice(0, limit) : avatars;
309
- const remainingCount = limit ? Math.max(0, avatars.length - limit) : 0;
309
+ var AvatarGroup = React11.forwardRef(
310
+ ({ className, max, children, overlapOffset = -8, ...props }, ref) => {
311
+ const childrenArray = React11.Children.toArray(children);
312
+ const visibleAvatars = max ? childrenArray.slice(0, max) : childrenArray;
313
+ const remainingCount = max ? Math.max(0, childrenArray.length - max) : 0;
310
314
  return /* @__PURE__ */ jsx(
311
315
  "div",
312
316
  {
@@ -355,11 +359,15 @@ var badgeVariants = cva(
355
359
  {
356
360
  variants: {
357
361
  variant: {
362
+ // KIRICI (issue #261): önceden ham `gray-900`/`white` kullanılıyordu;
363
+ // aynı varyant pro pakette token'lıydı → free ve pro `primary` için
364
+ // farklı renk üretiyordu. Artık token'a bağlı (tema/karanlık moda duyarlı).
365
+ // `primary` VARSAYILAN varyant olduğu için görünür bir renk değişimidir.
358
366
  primary: [
359
- "border-transparent bg-gray-900 text-white",
360
- "hover:bg-gray-800 dark:hover:bg-gray-700",
361
- "focus-visible:ring-gray-500/30 dark:focus-visible:ring-gray-400/40",
362
- "dark:bg-gray-700 dark:text-gray-50 dark:shadow-inner dark:shadow-gray-950/10"
367
+ "border-transparent bg-primary text-primary-foreground",
368
+ "hover:bg-primary/90",
369
+ "focus-visible:ring-primary/30 dark:focus-visible:ring-primary/40",
370
+ "dark:bg-primary/90 dark:shadow-inner dark:shadow-primary/10"
363
371
  ],
364
372
  secondary: [
365
373
  "border-transparent bg-secondary text-secondary-foreground",
@@ -431,7 +439,7 @@ var badgeVariants = cva(
431
439
  }
432
440
  }
433
441
  );
434
- function Badge({
442
+ var Badge = React11.forwardRef(({
435
443
  className,
436
444
  variant,
437
445
  size,
@@ -445,7 +453,7 @@ function Badge({
445
453
  noAutoSpacing,
446
454
  children,
447
455
  ...props
448
- }) {
456
+ }, ref) => {
449
457
  let autoLeftIcon = leftIcon;
450
458
  let autoChildren = children;
451
459
  if (variant === "pro") {
@@ -463,6 +471,7 @@ function Badge({
463
471
  return /* @__PURE__ */ jsxs(
464
472
  "div",
465
473
  {
474
+ ref,
466
475
  className: cn(
467
476
  "moonui-theme",
468
477
  badgeVariants({ variant, size, radius }),
@@ -514,7 +523,8 @@ function Badge({
514
523
  ]
515
524
  }
516
525
  );
517
- }
526
+ });
527
+ Badge.displayName = "Badge";
518
528
  var breadcrumbVariants = cva(
519
529
  "flex items-center gap-1.5 text-sm",
520
530
  {
@@ -536,7 +546,7 @@ var breadcrumbVariants = cva(
536
546
  }
537
547
  }
538
548
  );
539
- var Breadcrumb = React10.forwardRef(
549
+ var Breadcrumb = React11.forwardRef(
540
550
  ({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
541
551
  "nav",
542
552
  {
@@ -548,9 +558,9 @@ var Breadcrumb = React10.forwardRef(
548
558
  )
549
559
  );
550
560
  Breadcrumb.displayName = "Breadcrumb";
551
- var BreadcrumbList = React10.forwardRef(
561
+ var BreadcrumbList = React11.forwardRef(
552
562
  ({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
553
- const childrenArray = React10.Children.toArray(props.children).filter(Boolean);
563
+ const childrenArray = React11.Children.toArray(props.children).filter(Boolean);
554
564
  const childCount = childrenArray.length;
555
565
  if (collapsed && childCount > collapsedWidth) {
556
566
  const firstItem = childrenArray[0];
@@ -586,9 +596,9 @@ var BreadcrumbList = React10.forwardRef(
586
596
  }
587
597
  );
588
598
  BreadcrumbList.displayName = "BreadcrumbList";
589
- var BreadcrumbItem = React10.forwardRef(
599
+ var BreadcrumbItem = React11.forwardRef(
590
600
  ({ className, isCurrent, href, asChild = false, ...props }, ref) => {
591
- const Comp = asChild ? React10.Fragment : href ? "a" : "span";
601
+ const Comp = asChild ? React11.Fragment : href ? "a" : "span";
592
602
  const itemProps = asChild ? {} : href ? { href } : {};
593
603
  return /* @__PURE__ */ jsx(
594
604
  "li",
@@ -645,7 +655,7 @@ var BreadcrumbEllipsis = ({
645
655
  }
646
656
  );
647
657
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
648
- var BreadcrumbLink = React10.forwardRef(
658
+ var BreadcrumbLink = React11.forwardRef(
649
659
  ({ className, href, ...props }, ref) => /* @__PURE__ */ jsx(
650
660
  "a",
651
661
  {
@@ -660,7 +670,7 @@ var BreadcrumbLink = React10.forwardRef(
660
670
  )
661
671
  );
662
672
  BreadcrumbLink.displayName = "BreadcrumbLink";
663
- var BreadcrumbPage = React10.forwardRef(
673
+ var BreadcrumbPage = React11.forwardRef(
664
674
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
665
675
  "span",
666
676
  {
@@ -823,7 +833,7 @@ var buttonVariants = cva(
823
833
  }
824
834
  }
825
835
  );
826
- var Button = React10.forwardRef(
836
+ var Button = React11.forwardRef(
827
837
  ({
828
838
  className,
829
839
  variant,
@@ -1037,7 +1047,7 @@ var cardVariants = cva(
1037
1047
  }
1038
1048
  }
1039
1049
  );
1040
- var Card = React10.forwardRef(
1050
+ var Card = React11.forwardRef(
1041
1051
  ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
1042
1052
  if (interactive && microInteraction !== "none") {
1043
1053
  const interactionProps = {
@@ -1065,7 +1075,7 @@ var Card = React10.forwardRef(
1065
1075
  }
1066
1076
  );
1067
1077
  Card.displayName = "Card";
1068
- var CardHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1078
+ var CardHeader = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1069
1079
  "div",
1070
1080
  {
1071
1081
  ref,
@@ -1074,7 +1084,7 @@ var CardHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
1074
1084
  }
1075
1085
  ));
1076
1086
  CardHeader.displayName = "CardHeader";
1077
- var CardTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1087
+ var CardTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1078
1088
  "h3",
1079
1089
  {
1080
1090
  ref,
@@ -1083,7 +1093,7 @@ var CardTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1083
1093
  }
1084
1094
  ));
1085
1095
  CardTitle.displayName = "CardTitle";
1086
- var CardDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1096
+ var CardDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1087
1097
  "p",
1088
1098
  {
1089
1099
  ref,
@@ -1092,9 +1102,9 @@ var CardDescription = React10.forwardRef(({ className, ...props }, ref) => /* @_
1092
1102
  }
1093
1103
  ));
1094
1104
  CardDescription.displayName = "CardDescription";
1095
- var CardContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1105
+ var CardContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1096
1106
  CardContent.displayName = "CardContent";
1097
- var CardFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1107
+ var CardFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1098
1108
  "div",
1099
1109
  {
1100
1110
  ref,
@@ -1115,7 +1125,7 @@ function Calendar({
1115
1125
  defaultMonth,
1116
1126
  ...props
1117
1127
  }) {
1118
- const [currentMonth, setCurrentMonth] = React10.useState(
1128
+ const [currentMonth, setCurrentMonth] = React11.useState(
1119
1129
  defaultMonth || selected && selected || /* @__PURE__ */ new Date()
1120
1130
  );
1121
1131
  const weekDays = [
@@ -1329,9 +1339,9 @@ var formatCardNumber = (value, cardType) => {
1329
1339
  }
1330
1340
  return formatted;
1331
1341
  };
1332
- var CardNumberInput = React10.forwardRef(
1342
+ var CardNumberInput = React11.forwardRef(
1333
1343
  ({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
1334
- const [cardType, setCardType] = React10.useState("unknown");
1344
+ const [cardType, setCardType] = React11.useState("unknown");
1335
1345
  const handleChange = (e) => {
1336
1346
  const rawValue = e.target.value.replace(/\D/g, "");
1337
1347
  const detectedType = getCardType(rawValue);
@@ -1362,7 +1372,7 @@ var CardNumberInput = React10.forwardRef(
1362
1372
  }
1363
1373
  );
1364
1374
  CardNumberInput.displayName = "CardNumberInput";
1365
- var CardExpiryInput = React10.forwardRef(
1375
+ var CardExpiryInput = React11.forwardRef(
1366
1376
  ({ className, value = "", onChange, size, ...props }, ref) => {
1367
1377
  const handleChange = (e) => {
1368
1378
  let rawValue = e.target.value.replace(/\D/g, "");
@@ -1400,7 +1410,7 @@ var CardExpiryInput = React10.forwardRef(
1400
1410
  }
1401
1411
  );
1402
1412
  CardExpiryInput.displayName = "CardExpiryInput";
1403
- var CardCVCInput = React10.forwardRef(
1413
+ var CardCVCInput = React11.forwardRef(
1404
1414
  ({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
1405
1415
  const maxLength = cardType === "amex" ? 4 : 3;
1406
1416
  const handleChange = (e) => {
@@ -1425,7 +1435,7 @@ var CardCVCInput = React10.forwardRef(
1425
1435
  }
1426
1436
  );
1427
1437
  CardCVCInput.displayName = "CardCVCInput";
1428
- var CardZipInput = React10.forwardRef(
1438
+ var CardZipInput = React11.forwardRef(
1429
1439
  ({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
1430
1440
  const handleChange = (e) => {
1431
1441
  let rawValue = e.target.value;
@@ -1476,15 +1486,15 @@ var CardZipInput = React10.forwardRef(
1476
1486
  }
1477
1487
  );
1478
1488
  CardZipInput.displayName = "CardZipInput";
1479
- var CarouselContext = React10.createContext(null);
1489
+ var CarouselContext = React11.createContext(null);
1480
1490
  function useCarousel() {
1481
- const context = React10.useContext(CarouselContext);
1491
+ const context = React11.useContext(CarouselContext);
1482
1492
  if (!context) {
1483
1493
  throw new Error("useCarousel must be used within a <Carousel />");
1484
1494
  }
1485
1495
  return context;
1486
1496
  }
1487
- var Carousel = React10.forwardRef(
1497
+ var Carousel = React11.forwardRef(
1488
1498
  ({
1489
1499
  orientation = "horizontal",
1490
1500
  opts,
@@ -1502,21 +1512,21 @@ var Carousel = React10.forwardRef(
1502
1512
  },
1503
1513
  plugins
1504
1514
  );
1505
- const [canScrollPrev, setCanScrollPrev] = React10.useState(false);
1506
- const [canScrollNext, setCanScrollNext] = React10.useState(false);
1507
- const onSelect = React10.useCallback((emblaApi) => {
1515
+ const [canScrollPrev, setCanScrollPrev] = React11.useState(false);
1516
+ const [canScrollNext, setCanScrollNext] = React11.useState(false);
1517
+ const onSelect = React11.useCallback((emblaApi) => {
1508
1518
  if (!emblaApi)
1509
1519
  return;
1510
1520
  setCanScrollPrev(emblaApi.canScrollPrev());
1511
1521
  setCanScrollNext(emblaApi.canScrollNext());
1512
1522
  }, []);
1513
- const scrollPrev = React10.useCallback(() => {
1523
+ const scrollPrev = React11.useCallback(() => {
1514
1524
  api?.scrollPrev();
1515
1525
  }, [api]);
1516
- const scrollNext = React10.useCallback(() => {
1526
+ const scrollNext = React11.useCallback(() => {
1517
1527
  api?.scrollNext();
1518
1528
  }, [api]);
1519
- const handleKeyDown = React10.useCallback(
1529
+ const handleKeyDown = React11.useCallback(
1520
1530
  (event) => {
1521
1531
  const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
1522
1532
  const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
@@ -1530,12 +1540,12 @@ var Carousel = React10.forwardRef(
1530
1540
  },
1531
1541
  [resolvedOrientation, scrollPrev, scrollNext]
1532
1542
  );
1533
- React10.useEffect(() => {
1543
+ React11.useEffect(() => {
1534
1544
  if (!api || !setApi)
1535
1545
  return;
1536
1546
  setApi(api);
1537
1547
  }, [api, setApi]);
1538
- React10.useEffect(() => {
1548
+ React11.useEffect(() => {
1539
1549
  if (!api)
1540
1550
  return;
1541
1551
  onSelect(api);
@@ -1587,7 +1597,7 @@ var carouselContentVariants = cva("flex", {
1587
1597
  orientation: "horizontal"
1588
1598
  }
1589
1599
  });
1590
- var CarouselContent = React10.forwardRef(
1600
+ var CarouselContent = React11.forwardRef(
1591
1601
  ({ className, ...props }, ref) => {
1592
1602
  const { carouselRef, orientation } = useCarousel();
1593
1603
  return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
@@ -1612,7 +1622,7 @@ var carouselItemVariants = cva("min-w-0 shrink-0 grow-0 basis-full", {
1612
1622
  orientation: "horizontal"
1613
1623
  }
1614
1624
  });
1615
- var CarouselItem = React10.forwardRef(
1625
+ var CarouselItem = React11.forwardRef(
1616
1626
  ({ className, ...props }, ref) => {
1617
1627
  const { orientation } = useCarousel();
1618
1628
  return /* @__PURE__ */ jsx(
@@ -1628,7 +1638,7 @@ var CarouselItem = React10.forwardRef(
1628
1638
  }
1629
1639
  );
1630
1640
  CarouselItem.displayName = "CarouselItem";
1631
- var CarouselPrevious = React10.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1641
+ var CarouselPrevious = React11.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1632
1642
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
1633
1643
  return /* @__PURE__ */ jsxs(
1634
1644
  Button,
@@ -1653,7 +1663,7 @@ var CarouselPrevious = React10.forwardRef(({ className, variant = "outline", siz
1653
1663
  );
1654
1664
  });
1655
1665
  CarouselPrevious.displayName = "CarouselPrevious";
1656
- var CarouselNext = React10.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1666
+ var CarouselNext = React11.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1657
1667
  const { orientation, scrollNext, canScrollNext } = useCarousel();
1658
1668
  return /* @__PURE__ */ jsxs(
1659
1669
  Button,
@@ -1679,14 +1689,14 @@ var CarouselNext = React10.forwardRef(({ className, variant = "outline", size =
1679
1689
  });
1680
1690
  CarouselNext.displayName = "CarouselNext";
1681
1691
  var checkboxVariants = cva(
1682
- "peer shrink-0 border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary-foreground",
1692
+ "peer shrink-0 border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary-foreground data-[state=indeterminate]:text-primary-foreground",
1683
1693
  {
1684
1694
  variants: {
1685
1695
  variant: {
1686
- default: "border-border bg-background data-[state=checked]:bg-primary data-[state=checked]:border-primary",
1687
- outline: "border-border bg-transparent data-[state=checked]:bg-primary data-[state=checked]:border-primary",
1688
- muted: "border-border bg-accent data-[state=checked]:bg-primary data-[state=checked]:border-primary",
1689
- ghost: "border-transparent bg-transparent hover:bg-accent data-[state=checked]:bg-primary data-[state=checked]:border-primary"
1696
+ default: "border-border bg-background data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary",
1697
+ outline: "border-border bg-transparent data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary",
1698
+ muted: "border-border bg-accent data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary",
1699
+ ghost: "border-transparent bg-transparent hover:bg-accent data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary"
1690
1700
  },
1691
1701
  size: {
1692
1702
  sm: "h-3.5 w-3.5",
@@ -1716,7 +1726,7 @@ var checkboxVariants = cva(
1716
1726
  }
1717
1727
  }
1718
1728
  );
1719
- var Checkbox = React10.forwardRef(({
1729
+ var Checkbox = React11.forwardRef(({
1720
1730
  className,
1721
1731
  variant,
1722
1732
  size,
@@ -1727,11 +1737,7 @@ var Checkbox = React10.forwardRef(({
1727
1737
  checked,
1728
1738
  ...props
1729
1739
  }, ref) => {
1730
- const [isIndeterminate, setIsIndeterminate] = React10.useState(indeterminate);
1731
- React10.useEffect(() => {
1732
- setIsIndeterminate(indeterminate);
1733
- }, [indeterminate]);
1734
- const effectiveChecked = isIndeterminate ? false : checked;
1740
+ const effectiveChecked = indeterminate ? "indeterminate" : checked;
1735
1741
  return /* @__PURE__ */ jsx(
1736
1742
  CheckboxPrimitive.Root,
1737
1743
  {
@@ -1746,14 +1752,14 @@ var Checkbox = React10.forwardRef(({
1746
1752
  "flex items-center justify-center text-current",
1747
1753
  animation === "bounce" && "data-[state=checked]:animate-bounce"
1748
1754
  ),
1749
- children: isIndeterminate ? /* @__PURE__ */ jsx(Minus, { className: "h-[65%] w-[65%]" }) : icon ? icon : /* @__PURE__ */ jsx(Check, { className: "h-[65%] w-[65%]" })
1755
+ children: indeterminate ? /* @__PURE__ */ jsx(Minus, { className: "h-[65%] w-[65%]" }) : icon ? icon : /* @__PURE__ */ jsx(Check, { className: "h-[65%] w-[65%]" })
1750
1756
  }
1751
1757
  )
1752
1758
  }
1753
1759
  );
1754
1760
  });
1755
1761
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1756
- var CheckboxGroup = React10.forwardRef(
1762
+ var CheckboxGroup = React11.forwardRef(
1757
1763
  ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
1758
1764
  return /* @__PURE__ */ jsx(
1759
1765
  "div",
@@ -1773,7 +1779,7 @@ var CheckboxGroup = React10.forwardRef(
1773
1779
  }
1774
1780
  );
1775
1781
  CheckboxGroup.displayName = "CheckboxGroup";
1776
- var CheckboxLabel = React10.forwardRef(
1782
+ var CheckboxLabel = React11.forwardRef(
1777
1783
  ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
1778
1784
  return /* @__PURE__ */ jsx(
1779
1785
  "label",
@@ -1793,14 +1799,14 @@ var CheckboxLabel = React10.forwardRef(
1793
1799
  }
1794
1800
  );
1795
1801
  CheckboxLabel.displayName = "CheckboxLabel";
1796
- var CheckboxWithLabel = React10.forwardRef(({
1802
+ var CheckboxWithLabel = React11.forwardRef(({
1797
1803
  id,
1798
1804
  label,
1799
1805
  labelPosition = "end",
1800
1806
  labelClassName,
1801
1807
  ...checkboxProps
1802
1808
  }, ref) => {
1803
- const generatedId = React10.useId();
1809
+ const generatedId = React11.useId();
1804
1810
  const checkboxId = id || generatedId;
1805
1811
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
1806
1812
  labelPosition === "start" && /* @__PURE__ */ jsx(
@@ -1850,7 +1856,7 @@ var collapsibleTriggerVariants = cva(
1850
1856
  }
1851
1857
  }
1852
1858
  );
1853
- var CollapsibleTrigger = React10.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1859
+ var CollapsibleTrigger = React11.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1854
1860
  if (asChild) {
1855
1861
  return /* @__PURE__ */ jsx(
1856
1862
  CollapsiblePrimitive.Trigger,
@@ -1899,7 +1905,7 @@ var collapsibleContentVariants = cva(
1899
1905
  }
1900
1906
  }
1901
1907
  );
1902
- var CollapsibleContent = React10.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1908
+ var CollapsibleContent = React11.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1903
1909
  CollapsiblePrimitive.Content,
1904
1910
  {
1905
1911
  ref,
@@ -1982,7 +1988,7 @@ var inputVariants = cva(
1982
1988
  }
1983
1989
  }
1984
1990
  );
1985
- var Input = React10.forwardRef(
1991
+ var Input = React11.forwardRef(
1986
1992
  ({
1987
1993
  className,
1988
1994
  wrapperClassName,
@@ -2009,8 +2015,8 @@ var Input = React10.forwardRef(
2009
2015
  placeholder,
2010
2016
  ...props
2011
2017
  }, ref) => {
2012
- const [isFocused, setIsFocused] = React10.useState(false);
2013
- const [internalValue, setInternalValue] = React10.useState(value || defaultValue || "");
2018
+ const [isFocused, setIsFocused] = React11.useState(false);
2019
+ const [internalValue, setInternalValue] = React11.useState(value || defaultValue || "");
2014
2020
  const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
2015
2021
  const isLabelActive = isFocused || hasValue;
2016
2022
  const handleFocus = (e) => {
@@ -2025,7 +2031,7 @@ var Input = React10.forwardRef(
2025
2031
  setInternalValue(e.target.value);
2026
2032
  onChange?.(e);
2027
2033
  };
2028
- React10.useEffect(() => {
2034
+ React11.useEffect(() => {
2029
2035
  if (value !== void 0) {
2030
2036
  setInternalValue(value);
2031
2037
  }
@@ -2109,7 +2115,7 @@ Input.displayName = "Input";
2109
2115
  var labelVariants = cva(
2110
2116
  "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"
2111
2117
  );
2112
- var Label = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2118
+ var Label = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2113
2119
  LabelPrimitive.Root,
2114
2120
  {
2115
2121
  ref,
@@ -2170,7 +2176,7 @@ var popoverContentVariants = cva(
2170
2176
  var Popover = PopoverPrimitive.Root;
2171
2177
  var PopoverTrigger = PopoverPrimitive.Trigger;
2172
2178
  var PopoverAnchor = PopoverPrimitive.Anchor;
2173
- var PopoverContent = React10.forwardRef(({
2179
+ var PopoverContent = React11.forwardRef(({
2174
2180
  className,
2175
2181
  variant,
2176
2182
  size,
@@ -2238,7 +2244,7 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
2238
2244
  }
2239
2245
  );
2240
2246
  PopoverFooter.displayName = "PopoverFooter";
2241
- var Tabs = React10.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
2247
+ var Tabs = React11.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
2242
2248
  TabsPrimitive.Root,
2243
2249
  {
2244
2250
  ref,
@@ -2279,7 +2285,7 @@ var tabsListVariants = cva(
2279
2285
  }
2280
2286
  }
2281
2287
  );
2282
- var TabsList = React10.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2288
+ var TabsList = React11.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2283
2289
  return /* @__PURE__ */ jsx(
2284
2290
  TabsPrimitive.List,
2285
2291
  {
@@ -2322,7 +2328,7 @@ var tabsTriggerVariants = cva(
2322
2328
  }
2323
2329
  }
2324
2330
  );
2325
- var TabsTrigger = React10.forwardRef(({
2331
+ var TabsTrigger = React11.forwardRef(({
2326
2332
  className,
2327
2333
  variant,
2328
2334
  size,
@@ -2354,7 +2360,7 @@ var TabsTrigger = React10.forwardRef(({
2354
2360
  }
2355
2361
  ));
2356
2362
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
2357
- var TabsContent = React10.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2363
+ var TabsContent = React11.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2358
2364
  TabsPrimitive.Content,
2359
2365
  {
2360
2366
  ref,
@@ -2448,7 +2454,7 @@ var sliderThumbVariants = cva(
2448
2454
  }
2449
2455
  }
2450
2456
  );
2451
- var Slider = React10.forwardRef(({
2457
+ var Slider = React11.forwardRef(({
2452
2458
  className,
2453
2459
  size,
2454
2460
  trackVariant,
@@ -2464,10 +2470,10 @@ var Slider = React10.forwardRef(({
2464
2470
  disabled,
2465
2471
  ...props
2466
2472
  }, ref) => {
2467
- const [sliderValue, setSliderValue] = React10.useState(
2473
+ const [sliderValue, setSliderValue] = React11.useState(
2468
2474
  value || defaultValue || [0]
2469
2475
  );
2470
- React10.useEffect(() => {
2476
+ React11.useEffect(() => {
2471
2477
  if (value !== void 0) {
2472
2478
  setSliderValue(value);
2473
2479
  }
@@ -2482,7 +2488,7 @@ var Slider = React10.forwardRef(({
2482
2488
  const calculateThumbPercent = (value2, min2, max2) => {
2483
2489
  return (value2 - min2) / (max2 - min2) * 100;
2484
2490
  };
2485
- const trackRef = React10.useRef(null);
2491
+ const trackRef = React11.useRef(null);
2486
2492
  const min = props.min || 0;
2487
2493
  const max = props.max || 100;
2488
2494
  const step = props.step || 1;
@@ -2538,6 +2544,44 @@ var Slider = React10.forwardRef(({
2538
2544
  document.addEventListener("mousemove", handleMouseMove);
2539
2545
  document.addEventListener("mouseup", handleMouseUp);
2540
2546
  };
2547
+ const handleThumbKeyDown = (index) => (event) => {
2548
+ if (disabled)
2549
+ return;
2550
+ const largeStep = step * 10;
2551
+ const current = sliderValue[index];
2552
+ let next;
2553
+ switch (event.key) {
2554
+ case "ArrowRight":
2555
+ case "ArrowUp":
2556
+ next = current + step;
2557
+ break;
2558
+ case "ArrowLeft":
2559
+ case "ArrowDown":
2560
+ next = current - step;
2561
+ break;
2562
+ case "PageUp":
2563
+ next = current + largeStep;
2564
+ break;
2565
+ case "PageDown":
2566
+ next = current - largeStep;
2567
+ break;
2568
+ case "Home":
2569
+ next = min;
2570
+ break;
2571
+ case "End":
2572
+ next = max;
2573
+ break;
2574
+ default:
2575
+ return;
2576
+ }
2577
+ event.preventDefault();
2578
+ const lowerBound = index > 0 ? sliderValue[index - 1] : min;
2579
+ const upperBound = index < sliderValue.length - 1 ? sliderValue[index + 1] : max;
2580
+ const bounded = Math.max(lowerBound, Math.min(upperBound, next));
2581
+ const newValues = [...sliderValue];
2582
+ newValues[index] = bounded;
2583
+ handleValueChange(newValues);
2584
+ };
2541
2585
  return /* @__PURE__ */ jsxs("div", { className: "w-full", ref, ...props, children: [
2542
2586
  showValueLabel && /* @__PURE__ */ jsx("div", { className: cn(
2543
2587
  "flex justify-end mb-1 text-sm text-muted-foreground",
@@ -2587,6 +2631,7 @@ var Slider = React10.forwardRef(({
2587
2631
  cursor: disabled ? "not-allowed" : "pointer"
2588
2632
  },
2589
2633
  onMouseDown: handleThumbMouseDown(i),
2634
+ onKeyDown: handleThumbKeyDown(i),
2590
2635
  "aria-label": `Thumb ${i + 1}`,
2591
2636
  tabIndex: disabled ? -1 : 0,
2592
2637
  role: "slider",
@@ -2755,14 +2800,14 @@ function ColorPicker({
2755
2800
  disabled,
2756
2801
  ...props
2757
2802
  }) {
2758
- const [open, setOpen] = React10.useState(false);
2759
- const [color, setColor] = React10.useState(value);
2760
- const [opacity, setOpacity] = React10.useState(100);
2761
- const [copied, setCopied] = React10.useState(false);
2762
- const [inputValue, setInputValue] = React10.useState(value);
2763
- const hsl = React10.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2764
- const rgb = React10.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2765
- React10.useEffect(() => {
2803
+ const [open, setOpen] = React11.useState(false);
2804
+ const [color, setColor] = React11.useState(value);
2805
+ const [opacity, setOpacity] = React11.useState(100);
2806
+ const [copied, setCopied] = React11.useState(false);
2807
+ const [inputValue, setInputValue] = React11.useState(value);
2808
+ const hsl = React11.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2809
+ const rgb = React11.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2810
+ React11.useEffect(() => {
2766
2811
  setColor(value);
2767
2812
  setInputValue(value);
2768
2813
  }, [value]);
@@ -3105,8 +3150,12 @@ function ColorPicker({
3105
3150
  /* @__PURE__ */ jsx("div", { className: "grid grid-cols-10 gap-1", children: presets.map((presetColor) => /* @__PURE__ */ jsx(
3106
3151
  "button",
3107
3152
  {
3153
+ type: "button",
3154
+ "aria-label": `Select color ${presetColor}`,
3155
+ "aria-pressed": color === presetColor,
3108
3156
  className: cn(
3109
3157
  "h-7 w-7 rounded border-2 transition-all hover:scale-110",
3158
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
3110
3159
  color === presetColor ? "border-primary" : "border-transparent"
3111
3160
  ),
3112
3161
  style: { backgroundColor: presetColor },
@@ -3133,8 +3182,12 @@ function SimpleColorPicker({
3133
3182
  return /* @__PURE__ */ jsx("div", { className: cn("moonui-theme", "flex flex-wrap gap-2", className), children: colors.map((color) => /* @__PURE__ */ jsx(
3134
3183
  "button",
3135
3184
  {
3185
+ type: "button",
3186
+ "aria-label": `Select color ${color}`,
3187
+ "aria-pressed": value === color,
3136
3188
  className: cn(
3137
3189
  "rounded-full border-2 transition-all hover:scale-110",
3190
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
3138
3191
  sizeClasses[size],
3139
3192
  value === color ? "border-primary ring-2 ring-primary/20" : "border-transparent"
3140
3193
  ),
@@ -3149,7 +3202,7 @@ function GradientPicker({
3149
3202
  onChange,
3150
3203
  className
3151
3204
  }) {
3152
- const [gradient, setGradient] = React10.useState(value);
3205
+ const [gradient, setGradient] = React11.useState(value);
3153
3206
  const handleChange = (field, newValue) => {
3154
3207
  const newGradient = { ...gradient, [field]: newValue };
3155
3208
  setGradient(newGradient);
@@ -3235,7 +3288,7 @@ var overlayVariants = cva(
3235
3288
  }
3236
3289
  }
3237
3290
  );
3238
- var DialogOverlay = React10.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3291
+ var DialogOverlay = React11.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3239
3292
  DialogPrimitive.Overlay,
3240
3293
  {
3241
3294
  ref,
@@ -3294,7 +3347,7 @@ var dialogContentVariants = cva(
3294
3347
  }
3295
3348
  }
3296
3349
  );
3297
- var DialogContent = React10.forwardRef(
3350
+ var DialogContent = React11.forwardRef(
3298
3351
  ({
3299
3352
  className,
3300
3353
  children,
@@ -3407,7 +3460,7 @@ var DialogFooter = ({
3407
3460
  }
3408
3461
  );
3409
3462
  DialogFooter.displayName = "DialogFooter";
3410
- var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3463
+ var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3411
3464
  DialogPrimitive.Title,
3412
3465
  {
3413
3466
  ref,
@@ -3419,7 +3472,7 @@ var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
3419
3472
  }
3420
3473
  ));
3421
3474
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
3422
- var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3475
+ var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3423
3476
  DialogPrimitive.Description,
3424
3477
  {
3425
3478
  ref,
@@ -3431,7 +3484,7 @@ var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /*
3431
3484
  }
3432
3485
  ));
3433
3486
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
3434
- var DialogForm = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3487
+ var DialogForm = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3435
3488
  "form",
3436
3489
  {
3437
3490
  ref,
@@ -3461,7 +3514,7 @@ var commandVariants = cva(
3461
3514
  }
3462
3515
  }
3463
3516
  );
3464
- var Command = React10.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3517
+ var Command = React11.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3465
3518
  Command$1,
3466
3519
  {
3467
3520
  ref,
@@ -3483,7 +3536,7 @@ var CommandDialog = ({
3483
3536
  ), children })
3484
3537
  ] }) });
3485
3538
  };
3486
- var CommandInput = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3539
+ var CommandInput = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3487
3540
  /* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
3488
3541
  /* @__PURE__ */ jsx(
3489
3542
  Command$1.Input,
@@ -3498,7 +3551,7 @@ var CommandInput = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
3498
3551
  )
3499
3552
  ] }));
3500
3553
  CommandInput.displayName = Command$1.Input.displayName;
3501
- var CommandList = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3554
+ var CommandList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3502
3555
  Command$1.List,
3503
3556
  {
3504
3557
  ref,
@@ -3507,7 +3560,7 @@ var CommandList = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
3507
3560
  }
3508
3561
  ));
3509
3562
  CommandList.displayName = Command$1.List.displayName;
3510
- var CommandEmpty = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3563
+ var CommandEmpty = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3511
3564
  Command$1.Empty,
3512
3565
  {
3513
3566
  ref,
@@ -3516,7 +3569,7 @@ var CommandEmpty = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
3516
3569
  }
3517
3570
  ));
3518
3571
  CommandEmpty.displayName = Command$1.Empty.displayName;
3519
- var CommandGroup = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3572
+ var CommandGroup = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3520
3573
  Command$1.Group,
3521
3574
  {
3522
3575
  ref,
@@ -3528,7 +3581,7 @@ var CommandGroup = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
3528
3581
  }
3529
3582
  ));
3530
3583
  CommandGroup.displayName = Command$1.Group.displayName;
3531
- var CommandSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3584
+ var CommandSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3532
3585
  Command$1.Separator,
3533
3586
  {
3534
3587
  ref,
@@ -3537,7 +3590,7 @@ var CommandSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @
3537
3590
  }
3538
3591
  ));
3539
3592
  CommandSeparator.displayName = Command$1.Separator.displayName;
3540
- var CommandItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3593
+ var CommandItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3541
3594
  Command$1.Item,
3542
3595
  {
3543
3596
  ref,
@@ -3588,7 +3641,7 @@ var tableVariants = cva(
3588
3641
  }
3589
3642
  }
3590
3643
  );
3591
- var Table = React10.forwardRef(({
3644
+ var Table = React11.forwardRef(({
3592
3645
  className,
3593
3646
  variant,
3594
3647
  size,
@@ -3605,11 +3658,11 @@ var Table = React10.forwardRef(({
3605
3658
  ...props
3606
3659
  }, ref) => {
3607
3660
  const striped = variant === "striped";
3608
- const childrenWithProps = React10.Children.map(props.children, (child) => {
3609
- if (React10.isValidElement(child)) {
3661
+ const childrenWithProps = React11.Children.map(props.children, (child) => {
3662
+ if (React11.isValidElement(child)) {
3610
3663
  if (child.type === "tbody") {
3611
3664
  const tbodyProps = child.props;
3612
- return React10.cloneElement(child, {
3665
+ return React11.cloneElement(child, {
3613
3666
  className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
3614
3667
  });
3615
3668
  }
@@ -3634,10 +3687,10 @@ var Table = React10.forwardRef(({
3634
3687
  ] });
3635
3688
  });
3636
3689
  Table.displayName = "Table";
3637
- var TableHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3690
+ var TableHeader = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3638
3691
  TableHeader.displayName = "TableHeader";
3639
- var TableBody = React10.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3640
- const hasChildren = React10.Children.count(children) > 0;
3692
+ var TableBody = React11.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3693
+ const hasChildren = React11.Children.count(children) > 0;
3641
3694
  return /* @__PURE__ */ jsx(
3642
3695
  "tbody",
3643
3696
  {
@@ -3649,7 +3702,7 @@ var TableBody = React10.forwardRef(({ className, emptyContent, emptyMessage = "N
3649
3702
  );
3650
3703
  });
3651
3704
  TableBody.displayName = "TableBody";
3652
- var TableFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3705
+ var TableFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3653
3706
  "tfoot",
3654
3707
  {
3655
3708
  ref,
@@ -3658,7 +3711,7 @@ var TableFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
3658
3711
  }
3659
3712
  ));
3660
3713
  TableFooter.displayName = "TableFooter";
3661
- var TableRow = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3714
+ var TableRow = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3662
3715
  "tr",
3663
3716
  {
3664
3717
  ref,
@@ -3670,7 +3723,7 @@ var TableRow = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3670
3723
  }
3671
3724
  ));
3672
3725
  TableRow.displayName = "TableRow";
3673
- var TableHead = React10.forwardRef(
3726
+ var TableHead = React11.forwardRef(
3674
3727
  ({ className, sortable, sorted, onSort, align = "left", children, ...props }, ref) => {
3675
3728
  const renderSortIcon = () => {
3676
3729
  if (!sortable)
@@ -3758,7 +3811,7 @@ var TableHead = React10.forwardRef(
3758
3811
  }
3759
3812
  );
3760
3813
  TableHead.displayName = "TableHead";
3761
- var TableCell = React10.forwardRef(({ className, align = "left", ...props }, ref) => {
3814
+ var TableCell = React11.forwardRef(({ className, align = "left", ...props }, ref) => {
3762
3815
  const alignmentClass = {
3763
3816
  left: "text-left",
3764
3817
  center: "text-center",
@@ -3774,7 +3827,7 @@ var TableCell = React10.forwardRef(({ className, align = "left", ...props }, ref
3774
3827
  );
3775
3828
  });
3776
3829
  TableCell.displayName = "TableCell";
3777
- var TableCaption = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3830
+ var TableCaption = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3778
3831
  "caption",
3779
3832
  {
3780
3833
  ref,
@@ -3794,8 +3847,8 @@ function DataTableBasic({
3794
3847
  emptyMessage = "No results found.",
3795
3848
  className
3796
3849
  }) {
3797
- const [sorting, setSorting] = React10.useState([]);
3798
- const [globalFilter, setGlobalFilter] = React10.useState("");
3850
+ const [sorting, setSorting] = React11.useState([]);
3851
+ const [globalFilter, setGlobalFilter] = React11.useState("");
3799
3852
  const table = useReactTable({
3800
3853
  data,
3801
3854
  columns,
@@ -3981,9 +4034,9 @@ function DatePicker({
3981
4034
  disabled,
3982
4035
  ...props
3983
4036
  }) {
3984
- const [open, setOpen] = React10.useState(false);
3985
- const [internalDate, setInternalDate] = React10.useState(value);
3986
- React10.useEffect(() => {
4037
+ const [open, setOpen] = React11.useState(false);
4038
+ const [internalDate, setInternalDate] = React11.useState(value);
4039
+ React11.useEffect(() => {
3987
4040
  setInternalDate(value);
3988
4041
  }, [value]);
3989
4042
  const handleSelect = (date) => {
@@ -4139,9 +4192,9 @@ function DateRangePicker({
4139
4192
  separator = " - ",
4140
4193
  ...props
4141
4194
  }) {
4142
- const [open, setOpen] = React10.useState(false);
4143
- const [internalRange, setInternalRange] = React10.useState(value);
4144
- React10.useEffect(() => {
4195
+ const [open, setOpen] = React11.useState(false);
4196
+ const [internalRange, setInternalRange] = React11.useState(value);
4197
+ React11.useEffect(() => {
4145
4198
  setInternalRange(value);
4146
4199
  }, [value]);
4147
4200
  const handleSelect = (range) => {
@@ -4151,7 +4204,7 @@ function DateRangePicker({
4151
4204
  setOpen(false);
4152
4205
  }
4153
4206
  };
4154
- const displayValue = React10.useMemo(() => {
4207
+ const displayValue = React11.useMemo(() => {
4155
4208
  if (!internalRange?.from)
4156
4209
  return null;
4157
4210
  if (!internalRange?.to) {
@@ -4206,8 +4259,8 @@ function DateTimePicker({
4206
4259
  timeInterval = 15,
4207
4260
  ...props
4208
4261
  }) {
4209
- const [date, setDate] = React10.useState(value);
4210
- const [time, setTime] = React10.useState(
4262
+ const [date, setDate] = React11.useState(value);
4263
+ const [time, setTime] = React11.useState(
4211
4264
  value ? format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
4212
4265
  );
4213
4266
  const handleDateChange = (newDate) => {
@@ -4232,7 +4285,7 @@ function DateTimePicker({
4232
4285
  onChange?.(newDate);
4233
4286
  }
4234
4287
  };
4235
- const timeOptions = React10.useMemo(() => {
4288
+ const timeOptions = React11.useMemo(() => {
4236
4289
  const options = [];
4237
4290
  for (let h = 0; h < 24; h++) {
4238
4291
  for (let m = 0; m < 60; m += timeInterval) {
@@ -4292,8 +4345,8 @@ function MonthPicker({
4292
4345
  formatString = "MMMM yyyy",
4293
4346
  ...props
4294
4347
  }) {
4295
- const [open, setOpen] = React10.useState(false);
4296
- const [viewDate, setViewDate] = React10.useState(value || /* @__PURE__ */ new Date());
4348
+ const [open, setOpen] = React11.useState(false);
4349
+ const [viewDate, setViewDate] = React11.useState(value || /* @__PURE__ */ new Date());
4297
4350
  const months = [
4298
4351
  "January",
4299
4352
  "February",
@@ -4385,7 +4438,7 @@ function DraggableList({
4385
4438
  className,
4386
4439
  disabled = false
4387
4440
  }) {
4388
- const [draggedIndex, setDraggedIndex] = React10.useState(null);
4441
+ const [draggedIndex, setDraggedIndex] = React11.useState(null);
4389
4442
  const handleDragStart = (e, index) => {
4390
4443
  if (disabled)
4391
4444
  return;
@@ -4437,7 +4490,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
4437
4490
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
4438
4491
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
4439
4492
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
4440
- var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4493
+ var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4441
4494
  DropdownMenuPrimitive.SubTrigger,
4442
4495
  {
4443
4496
  ref,
@@ -4454,7 +4507,7 @@ var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, .
4454
4507
  }
4455
4508
  ));
4456
4509
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
4457
- var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4510
+ var DropdownMenuSubContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4458
4511
  DropdownMenuPrimitive.SubContent,
4459
4512
  {
4460
4513
  ref,
@@ -4466,7 +4519,7 @@ var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) =
4466
4519
  }
4467
4520
  ));
4468
4521
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
4469
- var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4522
+ var DropdownMenuContent = React11.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4470
4523
  DropdownMenuPrimitive.Content,
4471
4524
  {
4472
4525
  ref,
@@ -4479,7 +4532,7 @@ var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...pr
4479
4532
  }
4480
4533
  ) }));
4481
4534
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4482
- var DropdownMenuItem = React10.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4535
+ var DropdownMenuItem = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4483
4536
  DropdownMenuPrimitive.Item,
4484
4537
  {
4485
4538
  ref,
@@ -4492,7 +4545,7 @@ var DropdownMenuItem = React10.forwardRef(({ className, inset, ...props }, ref)
4492
4545
  }
4493
4546
  ));
4494
4547
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4495
- var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4548
+ var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4496
4549
  DropdownMenuPrimitive.CheckboxItem,
4497
4550
  {
4498
4551
  ref,
@@ -4509,7 +4562,7 @@ var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checke
4509
4562
  }
4510
4563
  ));
4511
4564
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
4512
- var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4565
+ var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4513
4566
  DropdownMenuPrimitive.RadioItem,
4514
4567
  {
4515
4568
  ref,
@@ -4525,7 +4578,7 @@ var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props
4525
4578
  }
4526
4579
  ));
4527
4580
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
4528
- var DropdownMenuLabel = React10.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4581
+ var DropdownMenuLabel = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4529
4582
  DropdownMenuPrimitive.Label,
4530
4583
  {
4531
4584
  ref,
@@ -4538,7 +4591,7 @@ var DropdownMenuLabel = React10.forwardRef(({ className, inset, ...props }, ref)
4538
4591
  }
4539
4592
  ));
4540
4593
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4541
- var DropdownMenuSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4594
+ var DropdownMenuSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4542
4595
  DropdownMenuPrimitive.Separator,
4543
4596
  {
4544
4597
  ref,
@@ -4627,7 +4680,7 @@ var progressIndicatorVariants = cva(
4627
4680
  }
4628
4681
  }
4629
4682
  );
4630
- var Progress = React10.forwardRef(({
4683
+ var Progress = React11.forwardRef(({
4631
4684
  className,
4632
4685
  value = 0,
4633
4686
  variant,
@@ -4756,7 +4809,7 @@ var FileItem = ({
4756
4809
  }
4757
4810
  );
4758
4811
  };
4759
- var FileUpload = React10__default.forwardRef(
4812
+ var FileUpload = React11__default.forwardRef(
4760
4813
  ({
4761
4814
  accept = "*",
4762
4815
  multiple = true,
@@ -4978,7 +5031,7 @@ var FileUpload = React10__default.forwardRef(
4978
5031
  }
4979
5032
  );
4980
5033
  FileUpload.displayName = "FileUpload";
4981
- var GestureDrawer = React10__default.forwardRef(
5034
+ var GestureDrawer = React11__default.forwardRef(
4982
5035
  ({
4983
5036
  children,
4984
5037
  isOpen,
@@ -5249,7 +5302,7 @@ function GitHubStarButton({
5249
5302
  }
5250
5303
  );
5251
5304
  }
5252
- var InputOTP = React10.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5305
+ var InputOTP = React11.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5253
5306
  OTPInput,
5254
5307
  {
5255
5308
  ref,
@@ -5263,7 +5316,7 @@ var InputOTP = React10.forwardRef(({ className, containerClassName, ...props },
5263
5316
  }
5264
5317
  ));
5265
5318
  InputOTP.displayName = "InputOTP";
5266
- var InputOTPGroup = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5319
+ var InputOTPGroup = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5267
5320
  InputOTPGroup.displayName = "InputOTPGroup";
5268
5321
  var inputOTPSlotVariants = cva(
5269
5322
  [
@@ -5285,9 +5338,9 @@ var inputOTPSlotVariants = cva(
5285
5338
  }
5286
5339
  }
5287
5340
  );
5288
- var InputOTPSlot = React10.forwardRef(
5341
+ var InputOTPSlot = React11.forwardRef(
5289
5342
  ({ index, className, ...props }, ref) => {
5290
- const inputOTPContext = React10.useContext(OTPInputContext);
5343
+ const inputOTPContext = React11.useContext(OTPInputContext);
5291
5344
  const slot = inputOTPContext?.slots?.[index];
5292
5345
  const char = slot?.char;
5293
5346
  const hasFakeCaret = slot?.hasFakeCaret;
@@ -5309,7 +5362,7 @@ var InputOTPSlot = React10.forwardRef(
5309
5362
  }
5310
5363
  );
5311
5364
  InputOTPSlot.displayName = "InputOTPSlot";
5312
- var InputOTPSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5365
+ var InputOTPSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5313
5366
  "div",
5314
5367
  {
5315
5368
  ref,
@@ -5608,7 +5661,7 @@ function MoonLogo({
5608
5661
  showText = true,
5609
5662
  ...props
5610
5663
  }) {
5611
- const logoId = React10.useId();
5664
+ const logoId = React11.useId();
5612
5665
  const gradientId = `moon-gradient-${logoId}`;
5613
5666
  const maskId = `moon-mask-${logoId}`;
5614
5667
  return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", className), children: [
@@ -5690,7 +5743,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
5690
5743
  }
5691
5744
  );
5692
5745
  Pagination.displayName = "Pagination";
5693
- var PaginationContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5746
+ var PaginationContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5694
5747
  "ul",
5695
5748
  {
5696
5749
  ref,
@@ -5699,7 +5752,7 @@ var PaginationContent = React10.forwardRef(({ className, ...props }, ref) => /*
5699
5752
  }
5700
5753
  ));
5701
5754
  PaginationContent.displayName = "PaginationContent";
5702
- var PaginationItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5755
+ var PaginationItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5703
5756
  PaginationItem.displayName = "PaginationItem";
5704
5757
  var PaginationLink = ({
5705
5758
  className,
@@ -5775,41 +5828,62 @@ var Select = SelectPrimitive.Root;
5775
5828
  Select.displayName = "Select";
5776
5829
  var SelectGroup = SelectPrimitive.Group;
5777
5830
  var SelectValue = SelectPrimitive.Value;
5778
- var SelectTrigger = React10.forwardRef(({ className, children, variant = "standard", size = "md", error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
5831
+ var selectTriggerVariants = cva(
5832
+ [
5833
+ "flex w-full items-center justify-between gap-1 rounded-md transition-all duration-200",
5834
+ "disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
5835
+ "focus-visible:outline-none text-foreground"
5836
+ ],
5837
+ {
5838
+ variants: {
5839
+ variant: {
5840
+ standard: "border border-input bg-background hover:border-ring focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:border-primary",
5841
+ outline: "border border-input bg-transparent hover:border-ring focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:border-primary",
5842
+ ghost: "border-none bg-muted hover:bg-muted/80 focus-visible:ring-2 focus-visible:ring-primary/30",
5843
+ underline: "border-t-0 border-l-0 border-r-0 border-b border-input rounded-none px-0 bg-transparent hover:border-ring focus-visible:ring-0 focus-visible:border-b-2 focus-visible:border-primary"
5844
+ },
5845
+ size: {
5846
+ sm: "h-8 text-xs px-2",
5847
+ md: "h-10 text-sm px-3",
5848
+ lg: "h-12 text-base px-4"
5849
+ },
5850
+ state: {
5851
+ none: "",
5852
+ error: "border-error focus-visible:ring-error/30 focus-visible:border-error",
5853
+ success: "border-success focus-visible:ring-success/30 focus-visible:border-success"
5854
+ }
5855
+ },
5856
+ defaultVariants: {
5857
+ variant: "standard",
5858
+ size: "md",
5859
+ state: "none"
5860
+ }
5861
+ }
5862
+ );
5863
+ var SelectTrigger = React11.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
5779
5864
  SelectPrimitive.Trigger,
5780
5865
  {
5781
5866
  ref,
5782
5867
  className: cn(
5783
- /* Base styles */
5784
- "flex w-full items-center justify-between gap-1 rounded-md transition-all duration-200",
5785
- "disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
5786
- "focus-visible:outline-none",
5787
- /* Error state */
5788
- error && "border-error focus-visible:ring-error/30 focus-visible:border-error",
5789
- /* Success state */
5790
- success && "border-success focus-visible:ring-success/30 focus-visible:border-success",
5791
- /* Size variants */
5792
- size === "sm" && "h-8 text-xs px-2",
5793
- size === "md" && "h-10 text-sm px-3",
5794
- size === "lg" && "h-12 text-base px-4",
5795
- /* Visual variants */
5796
- variant === "standard" && "border border-gray-300 dark:border-gray-700 bg-background dark:bg-gray-800/80 dark:shadow-inner dark:shadow-gray-950/10 dark:text-gray-200 hover:border-gray-400 dark:hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80",
5797
- variant === "outline" && "border border-gray-300 dark:border-gray-700 bg-transparent dark:text-gray-200 hover:border-gray-400 dark:hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80",
5798
- variant === "ghost" && "border-none bg-gray-100 dark:bg-gray-800 dark:shadow-inner dark:shadow-gray-950/10 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-gray-700 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20",
5799
- variant === "underline" && "border-t-0 border-l-0 border-r-0 border-b border-gray-300 dark:border-gray-600 rounded-none px-0 dark:text-gray-200 dark:bg-transparent hover:border-gray-400 dark:hover:border-gray-500 focus-visible:ring-0 focus-visible:border-b-2 focus-visible:border-primary dark:focus-visible:border-primary/80",
5868
+ selectTriggerVariants({
5869
+ variant,
5870
+ size,
5871
+ state: error ? "error" : success ? "success" : "none"
5872
+ }),
5800
5873
  className
5801
5874
  ),
5802
5875
  ...props,
5803
5876
  disabled: props.disabled || loading,
5877
+ "aria-invalid": error ? true : void 0,
5804
5878
  "data-error": error ? true : void 0,
5805
5879
  "data-success": success ? true : void 0,
5806
5880
  "data-loading": loading ? true : void 0,
5807
5881
  children: [
5808
5882
  /* @__PURE__ */ jsxs("div", { className: "flex items-center flex-1 gap-2", children: [
5809
- leftIcon && /* @__PURE__ */ jsx("span", { className: "flex items-center justify-center text-gray-500 dark:text-gray-400", children: leftIcon }),
5883
+ leftIcon && /* @__PURE__ */ jsx("span", { className: "flex items-center justify-center text-muted-foreground", children: leftIcon }),
5810
5884
  loading ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
5811
- /* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground dark:text-gray-400" }),
5812
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground dark:text-gray-400", children: "Loading..." })
5885
+ /* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground" }),
5886
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Loading..." })
5813
5887
  ] }) : children
5814
5888
  ] }),
5815
5889
  !loading && /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: rightIcon ? /* @__PURE__ */ jsx("span", { className: "opacity-60", children: rightIcon }) : /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-60 transition-transform duration-200 ease-out group-data-[state=open]:rotate-180" }) })
@@ -5817,7 +5891,7 @@ var SelectTrigger = React10.forwardRef(({ className, children, variant = "standa
5817
5891
  }
5818
5892
  ));
5819
5893
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
5820
- var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5894
+ var SelectScrollUpButton = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5821
5895
  SelectPrimitive.ScrollUpButton,
5822
5896
  {
5823
5897
  ref,
@@ -5830,7 +5904,7 @@ var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) =>
5830
5904
  }
5831
5905
  ));
5832
5906
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
5833
- var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5907
+ var SelectScrollDownButton = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5834
5908
  SelectPrimitive.ScrollDownButton,
5835
5909
  {
5836
5910
  ref,
@@ -5843,7 +5917,7 @@ var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) =
5843
5917
  }
5844
5918
  ));
5845
5919
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
5846
- var SelectContent = React10.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
5920
+ var SelectContent = React11.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
5847
5921
  SelectPrimitive.Content,
5848
5922
  {
5849
5923
  ref,
@@ -5884,7 +5958,7 @@ var SelectContent = React10.forwardRef(({ className, children, position = "poppe
5884
5958
  }
5885
5959
  ) }));
5886
5960
  SelectContent.displayName = SelectPrimitive.Content.displayName;
5887
- var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5961
+ var SelectLabel = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5888
5962
  SelectPrimitive.Label,
5889
5963
  {
5890
5964
  ref,
@@ -5893,7 +5967,7 @@ var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
5893
5967
  }
5894
5968
  ));
5895
5969
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
5896
- var SelectItem = React10.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
5970
+ var SelectItem = React11.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
5897
5971
  SelectPrimitive.Item,
5898
5972
  {
5899
5973
  ref,
@@ -5923,7 +5997,7 @@ var SelectItem = React10.forwardRef(({ className, children, variant = "default",
5923
5997
  }
5924
5998
  ));
5925
5999
  SelectItem.displayName = SelectPrimitive.Item.displayName;
5926
- var SelectSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6000
+ var SelectSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5927
6001
  SelectPrimitive.Separator,
5928
6002
  {
5929
6003
  ref,
@@ -6005,7 +6079,7 @@ var getMaxLength = (countryCode) => {
6005
6079
  return 15;
6006
6080
  }
6007
6081
  };
6008
- var PhoneInput = React10.forwardRef(
6082
+ var PhoneInput = React11.forwardRef(
6009
6083
  ({
6010
6084
  className,
6011
6085
  value = "",
@@ -6017,8 +6091,8 @@ var PhoneInput = React10.forwardRef(
6017
6091
  size,
6018
6092
  ...props
6019
6093
  }, ref) => {
6020
- const [countryCode, setCountryCode] = React10.useState(defaultCountry);
6021
- const [phoneNumber, setPhoneNumber] = React10.useState(value);
6094
+ const [countryCode, setCountryCode] = React11.useState(defaultCountry);
6095
+ const [phoneNumber, setPhoneNumber] = React11.useState(value);
6022
6096
  const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
6023
6097
  const handlePhoneChange = (e) => {
6024
6098
  const rawValue = e.target.value.replace(/\D/g, "");
@@ -6089,24 +6163,49 @@ var radioGroupItemVariants = cva(
6089
6163
  }
6090
6164
  }
6091
6165
  );
6092
- var RadioGroupContext = React10.createContext({});
6093
- var RadioGroup2 = React10.forwardRef(
6094
- ({ className, value, onValueChange, disabled, name, ...props }, ref) => {
6095
- return /* @__PURE__ */ jsx(RadioGroupContext.Provider, { value: { value, onValueChange, disabled, name }, children: /* @__PURE__ */ jsx(
6096
- "div",
6166
+ var RadioGroupContext = React11.createContext({});
6167
+ var RadioGroup2 = React11.forwardRef(
6168
+ ({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
6169
+ const [internalValue, setInternalValue] = React11.useState(
6170
+ defaultValue
6171
+ );
6172
+ const isControlled = value !== void 0;
6173
+ const currentValue = isControlled ? value : internalValue;
6174
+ const handleValueChange = React11.useCallback(
6175
+ (next) => {
6176
+ if (!isControlled) {
6177
+ setInternalValue(next);
6178
+ }
6179
+ onValueChange?.(next);
6180
+ },
6181
+ [isControlled, onValueChange]
6182
+ );
6183
+ return /* @__PURE__ */ jsx(
6184
+ RadioGroupContext.Provider,
6097
6185
  {
6098
- ref,
6099
- role: "radiogroup",
6100
- className: cn("moonui-theme", "grid gap-2", className),
6101
- ...props
6186
+ value: {
6187
+ value: currentValue,
6188
+ onValueChange: handleValueChange,
6189
+ disabled,
6190
+ name
6191
+ },
6192
+ children: /* @__PURE__ */ jsx(
6193
+ "div",
6194
+ {
6195
+ ref,
6196
+ role: "radiogroup",
6197
+ className: cn("moonui-theme", "grid gap-2", className),
6198
+ ...props
6199
+ }
6200
+ )
6102
6201
  }
6103
- ) });
6202
+ );
6104
6203
  }
6105
6204
  );
6106
6205
  RadioGroup2.displayName = "RadioGroup";
6107
- var RadioGroupItem = React10.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6108
- const radioGroup = React10.useContext(RadioGroupContext);
6109
- const generatedId = React10.useId();
6206
+ var RadioGroupItem = React11.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6207
+ const radioGroup = React11.useContext(RadioGroupContext);
6208
+ const generatedId = React11.useId();
6110
6209
  const radioId = id || generatedId;
6111
6210
  const isChecked = radioGroup.value === value;
6112
6211
  const handleChange = (e) => {
@@ -6129,7 +6228,7 @@ var RadioGroupItem = React10.forwardRef(({ className, variant, size, indicator,
6129
6228
  disabled: disabled || radioGroup.disabled,
6130
6229
  name: radioGroup.name,
6131
6230
  onChange: handleChange,
6132
- className: "sr-only",
6231
+ className: "peer sr-only",
6133
6232
  ...props
6134
6233
  }
6135
6234
  ),
@@ -6140,7 +6239,12 @@ var RadioGroupItem = React10.forwardRef(({ className, variant, size, indicator,
6140
6239
  className: cn(
6141
6240
  radioGroupItemVariants({ variant, size }),
6142
6241
  "rounded-full",
6143
- "focus-visible:ring-primary/50",
6242
+ // Gerçekte odaklanan eleman görsel olarak gizli `sr-only` input'tur.
6243
+ // Görünür label onun KARDEŞİ olduğu için label'da `:focus-visible` hiç
6244
+ // tetiklenmiyor, dolayısıyla klavye kullanıcısı hiçbir focus izi
6245
+ // görmüyordu. Tailwind `peer` deseniyle (input `peer` sınıfını taşır ve
6246
+ // DOM'da label'dan önce gelir) focus izi görünür elemana taşınır.
6247
+ "peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-primary/50",
6144
6248
  "relative inline-flex shrink-0 cursor-pointer items-center justify-center overflow-hidden",
6145
6249
  disabled && "cursor-not-allowed opacity-50",
6146
6250
  className
@@ -6154,7 +6258,7 @@ var RadioGroupItem = React10.forwardRef(({ className, variant, size, indicator,
6154
6258
  ] });
6155
6259
  });
6156
6260
  RadioGroupItem.displayName = "RadioGroupItem";
6157
- var RadioLabel = React10.forwardRef(
6261
+ var RadioLabel = React11.forwardRef(
6158
6262
  ({ className, htmlFor, children, disabled = false, ...props }, ref) => {
6159
6263
  return /* @__PURE__ */ jsx(
6160
6264
  "label",
@@ -6173,13 +6277,13 @@ var RadioLabel = React10.forwardRef(
6173
6277
  }
6174
6278
  );
6175
6279
  RadioLabel.displayName = "RadioLabel";
6176
- var RadioItemWithLabel = React10.forwardRef(({
6280
+ var RadioItemWithLabel = React11.forwardRef(({
6177
6281
  id,
6178
6282
  label,
6179
6283
  labelClassName,
6180
6284
  ...radioProps
6181
6285
  }, ref) => {
6182
- const generatedId = React10.useId();
6286
+ const generatedId = React11.useId();
6183
6287
  const radioId = id || generatedId;
6184
6288
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
6185
6289
  /* @__PURE__ */ jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
@@ -6256,7 +6360,7 @@ function RichTextEditor({
6256
6360
  )
6257
6361
  ] });
6258
6362
  }
6259
- var ScrollArea = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6363
+ var ScrollArea = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6260
6364
  ScrollAreaPrimitive.Root,
6261
6365
  {
6262
6366
  ref,
@@ -6270,7 +6374,7 @@ var ScrollArea = React10.forwardRef(({ className, children, ...props }, ref) =>
6270
6374
  }
6271
6375
  ));
6272
6376
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
6273
- var ScrollBar = React10.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6377
+ var ScrollBar = React11.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6274
6378
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6275
6379
  {
6276
6380
  ref,
@@ -6324,7 +6428,7 @@ var defaultTransition = {
6324
6428
  ease: [0.25, 0.46, 0.45, 0.94]
6325
6429
  // Custom cubic-bezier for smooth motion
6326
6430
  };
6327
- var ScrollReveal = React10.forwardRef(
6431
+ var ScrollReveal = React11.forwardRef(
6328
6432
  ({
6329
6433
  children,
6330
6434
  direction = "up",
@@ -6345,17 +6449,17 @@ var ScrollReveal = React10.forwardRef(
6345
6449
  viewport
6346
6450
  }, ref) => {
6347
6451
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6348
- const animationVariants = React10.useMemo(() => {
6452
+ const animationVariants = React11.useMemo(() => {
6349
6453
  if (variants)
6350
6454
  return variants;
6351
6455
  return createDefaultVariants(direction, distance);
6352
6456
  }, [direction, distance, variants]);
6353
- const transition = React10.useMemo(() => ({
6457
+ const transition = React11.useMemo(() => ({
6354
6458
  ...defaultTransition,
6355
6459
  duration,
6356
6460
  delay: delay + stagger
6357
6461
  }), [duration, delay, stagger]);
6358
- const viewportConfig = React10.useMemo(() => ({
6462
+ const viewportConfig = React11.useMemo(() => ({
6359
6463
  once: shouldTriggerOnce,
6360
6464
  amount: threshold,
6361
6465
  ...viewport
@@ -6390,7 +6494,7 @@ var ScrollReveal = React10.forwardRef(
6390
6494
  }
6391
6495
  );
6392
6496
  ScrollReveal.displayName = "ScrollReveal";
6393
- var ScrollRevealContainer = React10.forwardRef(
6497
+ var ScrollRevealContainer = React11.forwardRef(
6394
6498
  ({
6395
6499
  children,
6396
6500
  stagger = 0.1,
@@ -6403,7 +6507,7 @@ var ScrollRevealContainer = React10.forwardRef(
6403
6507
  viewport
6404
6508
  }, ref) => {
6405
6509
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6406
- const viewportConfig = React10.useMemo(() => ({
6510
+ const viewportConfig = React11.useMemo(() => ({
6407
6511
  once: shouldTriggerOnce,
6408
6512
  amount: threshold,
6409
6513
  ...viewport
@@ -6434,7 +6538,7 @@ var ScrollRevealContainer = React10.forwardRef(
6434
6538
  }
6435
6539
  );
6436
6540
  ScrollRevealContainer.displayName = "ScrollRevealContainer";
6437
- var ScrollRevealItem = React10.forwardRef(
6541
+ var ScrollRevealItem = React11.forwardRef(
6438
6542
  ({
6439
6543
  children,
6440
6544
  direction = "up",
@@ -6445,12 +6549,12 @@ var ScrollRevealItem = React10.forwardRef(
6445
6549
  style,
6446
6550
  id
6447
6551
  }, ref) => {
6448
- const animationVariants = React10.useMemo(() => {
6552
+ const animationVariants = React11.useMemo(() => {
6449
6553
  if (variants)
6450
6554
  return variants;
6451
6555
  return createDefaultVariants(direction, distance);
6452
6556
  }, [direction, distance, variants]);
6453
- const transition = React10.useMemo(() => ({
6557
+ const transition = React11.useMemo(() => ({
6454
6558
  ...defaultTransition,
6455
6559
  duration
6456
6560
  }), [duration]);
@@ -6566,7 +6670,7 @@ var separatorVariants = cva(
6566
6670
  }
6567
6671
  }
6568
6672
  );
6569
- var Separator3 = React10.forwardRef(
6673
+ var Separator3 = React11.forwardRef(
6570
6674
  ({
6571
6675
  className,
6572
6676
  orientation = "horizontal",
@@ -6609,7 +6713,7 @@ var toggleVariants = cva(
6609
6713
  }
6610
6714
  }
6611
6715
  );
6612
- var Toggle = React10.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6716
+ var Toggle = React11.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6613
6717
  TogglePrimitive.Root,
6614
6718
  {
6615
6719
  ref,
@@ -6645,7 +6749,7 @@ var tooltipVariants = cva(
6645
6749
  );
6646
6750
  var Tooltip = TooltipPrimitive.Root;
6647
6751
  var TooltipTrigger = TooltipPrimitive.Trigger;
6648
- var TooltipArrow = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6752
+ var TooltipArrow = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6649
6753
  TooltipPrimitive.Arrow,
6650
6754
  {
6651
6755
  ref,
@@ -6654,7 +6758,7 @@ var TooltipArrow = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
6654
6758
  }
6655
6759
  ));
6656
6760
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
6657
- var TooltipContent = React10.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6761
+ var TooltipContent = React11.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6658
6762
  TooltipPrimitive.Content,
6659
6763
  {
6660
6764
  ref,
@@ -6668,7 +6772,7 @@ var TooltipContent = React10.forwardRef(({ className, variant, size, showArrow =
6668
6772
  }
6669
6773
  ));
6670
6774
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6671
- var SimpleTooltip = React10.forwardRef(
6775
+ var SimpleTooltip = React11.forwardRef(
6672
6776
  ({
6673
6777
  children,
6674
6778
  content,
@@ -6753,7 +6857,7 @@ var ColorPicker2 = ({ onColorSelect }) => {
6753
6857
  color
6754
6858
  )) });
6755
6859
  };
6756
- var SimpleEditor = React10__default.forwardRef(
6860
+ var SimpleEditor = React11__default.forwardRef(
6757
6861
  ({
6758
6862
  value = "",
6759
6863
  onChange,
@@ -6770,8 +6874,8 @@ var SimpleEditor = React10__default.forwardRef(
6770
6874
  const [isPreview, setIsPreview] = useState(false);
6771
6875
  const [sourceContent, setSourceContent] = useState(value);
6772
6876
  useState(null);
6773
- const editorRef = React10__default.useRef(null);
6774
- const sourceRef = React10__default.useRef(null);
6877
+ const editorRef = React11__default.useRef(null);
6878
+ const sourceRef = React11__default.useRef(null);
6775
6879
  const [formatState, setFormatState] = useState({
6776
6880
  bold: false,
6777
6881
  italic: false,
@@ -6905,12 +7009,12 @@ var SimpleEditor = React10__default.forwardRef(
6905
7009
  }
6906
7010
  }
6907
7011
  }, [executeCommand, updateContent]);
6908
- React10__default.useEffect(() => {
7012
+ React11__default.useEffect(() => {
6909
7013
  if (editorRef.current && content && content !== editorRef.current.innerHTML) {
6910
7014
  editorRef.current.innerHTML = content;
6911
7015
  }
6912
7016
  }, [content]);
6913
- React10__default.useEffect(() => {
7017
+ React11__default.useEffect(() => {
6914
7018
  if (value !== void 0 && value !== content) {
6915
7019
  setContent(value);
6916
7020
  setSourceContent(value);
@@ -7315,7 +7419,7 @@ var skeletonVariants = cva(
7315
7419
  }
7316
7420
  }
7317
7421
  );
7318
- var Skeleton = React10.forwardRef(
7422
+ var Skeleton = React11.forwardRef(
7319
7423
  ({
7320
7424
  className,
7321
7425
  variant,
@@ -7399,7 +7503,7 @@ var Skeleton = React10.forwardRef(
7399
7503
  }
7400
7504
  );
7401
7505
  Skeleton.displayName = "Skeleton";
7402
- var SkeletonText = React10.forwardRef(
7506
+ var SkeletonText = React11.forwardRef(
7403
7507
  ({
7404
7508
  className,
7405
7509
  lines = 3,
@@ -7440,7 +7544,7 @@ var SkeletonText = React10.forwardRef(
7440
7544
  }
7441
7545
  );
7442
7546
  SkeletonText.displayName = "SkeletonText";
7443
- var SkeletonAvatar = React10.forwardRef(
7547
+ var SkeletonAvatar = React11.forwardRef(
7444
7548
  ({
7445
7549
  className,
7446
7550
  size = "2.5rem",
@@ -7466,7 +7570,7 @@ var SkeletonAvatar = React10.forwardRef(
7466
7570
  }
7467
7571
  );
7468
7572
  SkeletonAvatar.displayName = "SkeletonAvatar";
7469
- var SkeletonCard = React10.forwardRef(
7573
+ var SkeletonCard = React11.forwardRef(
7470
7574
  ({
7471
7575
  className,
7472
7576
  showHeader = true,
@@ -7540,11 +7644,11 @@ var SkeletonCard = React10.forwardRef(
7540
7644
  }
7541
7645
  );
7542
7646
  SkeletonCard.displayName = "SkeletonCard";
7543
- var SwipeableCard = React10.forwardRef(
7647
+ var SwipeableCard = React11.forwardRef(
7544
7648
  ({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
7545
- const [startX, setStartX] = React10.useState(0);
7546
- const [currentX, setCurrentX] = React10.useState(0);
7547
- const [isSwiping, setIsSwiping] = React10.useState(false);
7649
+ const [startX, setStartX] = React11.useState(0);
7650
+ const [currentX, setCurrentX] = React11.useState(0);
7651
+ const [isSwiping, setIsSwiping] = React11.useState(false);
7548
7652
  const handleTouchStart = (e) => {
7549
7653
  if (disabled)
7550
7654
  return;
@@ -7590,54 +7694,95 @@ var SwipeableCard = React10.forwardRef(
7590
7694
  }
7591
7695
  );
7592
7696
  SwipeableCard.displayName = "SwipeableCard";
7593
- var Switch = React10.forwardRef(({ className, size = "md", variant = "primary", loading, leftIcon, rightIcon, description, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
7594
- leftIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: leftIcon }),
7595
- /* @__PURE__ */ jsxs(
7596
- SwitchPrimitives.Root,
7597
- {
7598
- className: cn(
7599
- "peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 dark:data-[state=unchecked]:bg-gray-700/70 dark:focus-visible:ring-primary/40 dark:focus-visible:ring-offset-gray-950",
7600
- // Boyutlar
7601
- size === "sm" && "h-4 w-8",
7602
- size === "md" && "h-6 w-11",
7603
- size === "lg" && "h-7 w-14",
7604
- // Varyantlar (checked durumunda)
7605
- variant === "primary" && "data-[state=checked]:bg-primary",
7606
- variant === "success" && "data-[state=checked]:bg-success",
7607
- variant === "warning" && "data-[state=checked]:bg-warning",
7608
- variant === "danger" && "data-[state=checked]:bg-error",
7609
- variant === "secondary" && "data-[state=checked]:bg-accent",
7610
- // Unchecked durumu
7611
- "data-[state=unchecked]:bg-input",
7612
- // Loading durumu
7613
- loading && "opacity-80 cursor-wait",
7614
- className
7615
- ),
7616
- disabled: loading || props.disabled,
7617
- ...props,
7618
- ref,
7619
- children: [
7620
- loading ? /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "h-3 w-3 animate-spin rounded-full border-2 border-gray-300 border-t-primary" }) }) : null,
7621
- /* @__PURE__ */ jsx(
7622
- SwitchPrimitives.Thumb,
7623
- {
7624
- className: cn(
7625
- "pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform",
7626
- // Boyuta göre thumb boyutları
7627
- size === "sm" && "h-3 w-3 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",
7628
- size === "md" && "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
7629
- size === "lg" && "h-6 w-6 data-[state=checked]:translate-x-7 data-[state=unchecked]:translate-x-0"
7630
- )
7631
- }
7632
- )
7633
- ]
7697
+ var switchVariants = cva(
7698
+ [
7699
+ "peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full",
7700
+ "border-2 border-transparent transition-colors",
7701
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
7702
+ "focus-visible:ring-offset-2 focus-visible:ring-offset-background",
7703
+ "disabled:cursor-not-allowed disabled:opacity-50",
7704
+ // Kapalı durum token'a bağlı; `--input` karanlık modda kendi değerini taşır.
7705
+ // (Önceden ayrıca `dark:data-[state=unchecked]:bg-gray-700/70` hardcode'u
7706
+ // vardı ve token'ı eziyordu — kaldırıldı.)
7707
+ "data-[state=unchecked]:bg-input",
7708
+ "dark:focus-visible:ring-primary/40"
7709
+ ],
7710
+ {
7711
+ variants: {
7712
+ size: {
7713
+ sm: "h-4 w-8",
7714
+ md: "h-6 w-11",
7715
+ lg: "h-7 w-14"
7716
+ },
7717
+ variant: {
7718
+ primary: "data-[state=checked]:bg-primary",
7719
+ success: "data-[state=checked]:bg-success",
7720
+ warning: "data-[state=checked]:bg-warning",
7721
+ destructive: "data-[state=checked]:bg-error",
7722
+ secondary: "data-[state=checked]:bg-accent"
7723
+ }
7724
+ },
7725
+ defaultVariants: {
7726
+ size: "md",
7727
+ variant: "primary"
7634
7728
  }
7635
- ),
7636
- rightIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: rightIcon }),
7637
- description && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: description })
7638
- ] }));
7729
+ }
7730
+ );
7731
+ var switchThumbVariants = cva(
7732
+ "pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform",
7733
+ {
7734
+ variants: {
7735
+ size: {
7736
+ sm: "h-3 w-3 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",
7737
+ md: "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
7738
+ lg: "h-6 w-6 data-[state=checked]:translate-x-7 data-[state=unchecked]:translate-x-0"
7739
+ }
7740
+ },
7741
+ defaultVariants: {
7742
+ size: "md"
7743
+ }
7744
+ }
7745
+ );
7746
+ var Switch = React11.forwardRef(({
7747
+ className,
7748
+ size,
7749
+ variant,
7750
+ loading,
7751
+ leftIcon,
7752
+ rightIcon,
7753
+ description,
7754
+ "aria-describedby": ariaDescribedBy,
7755
+ ...props
7756
+ }, ref) => {
7757
+ const reactId = React11.useId();
7758
+ const descriptionId = description ? `${reactId}-description` : void 0;
7759
+ const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
7760
+ return /* @__PURE__ */ jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
7761
+ leftIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: leftIcon }),
7762
+ /* @__PURE__ */ jsxs(
7763
+ SwitchPrimitives.Root,
7764
+ {
7765
+ className: cn(
7766
+ switchVariants({ size, variant }),
7767
+ loading && "opacity-80 cursor-wait",
7768
+ className
7769
+ ),
7770
+ disabled: loading || props.disabled,
7771
+ "aria-describedby": describedBy,
7772
+ ...props,
7773
+ ref,
7774
+ children: [
7775
+ loading ? /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "h-3 w-3 animate-spin rounded-full border-2 border-muted border-t-primary" }) }) : null,
7776
+ /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
7777
+ ]
7778
+ }
7779
+ ),
7780
+ rightIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: rightIcon }),
7781
+ description && /* @__PURE__ */ jsx("span", { id: descriptionId, className: "text-sm text-muted-foreground", children: description })
7782
+ ] });
7783
+ });
7639
7784
  Switch.displayName = SwitchPrimitives.Root.displayName;
7640
- var TagsInput = React10.forwardRef(
7785
+ var TagsInput = React11.forwardRef(
7641
7786
  ({
7642
7787
  value = [],
7643
7788
  onChange,
@@ -7650,8 +7795,8 @@ var TagsInput = React10.forwardRef(
7650
7795
  disabled,
7651
7796
  ...props
7652
7797
  }, ref) => {
7653
- const [inputValue, setInputValue] = React10.useState("");
7654
- const [error, setError] = React10.useState("");
7798
+ const [inputValue, setInputValue] = React11.useState("");
7799
+ const [error, setError] = React11.useState("");
7655
7800
  const handleKeyDown = (e) => {
7656
7801
  if (e.key === "Enter" || e.key === delimiter) {
7657
7802
  e.preventDefault();
@@ -7782,7 +7927,7 @@ var textareaVariants = cva(
7782
7927
  }
7783
7928
  }
7784
7929
  );
7785
- var Textarea = React10.forwardRef(
7930
+ var Textarea = React11.forwardRef(
7786
7931
  ({
7787
7932
  className,
7788
7933
  wrapperClassName,
@@ -7802,10 +7947,10 @@ var Textarea = React10.forwardRef(
7802
7947
  onChange,
7803
7948
  ...props
7804
7949
  }, ref) => {
7805
- const textareaRef = React10.useRef(null);
7806
- const [internalValue, setInternalValue] = React10.useState(value || defaultValue || "");
7807
- React10.useImperativeHandle(ref, () => textareaRef.current);
7808
- const adjustHeight = React10.useCallback(() => {
7950
+ const textareaRef = React11.useRef(null);
7951
+ const [internalValue, setInternalValue] = React11.useState(value || defaultValue || "");
7952
+ React11.useImperativeHandle(ref, () => textareaRef.current);
7953
+ const adjustHeight = React11.useCallback(() => {
7809
7954
  const textarea = textareaRef.current;
7810
7955
  if (!textarea || !autoResize)
7811
7956
  return;
@@ -7819,10 +7964,10 @@ var Textarea = React10.forwardRef(
7819
7964
  textarea.style.overflowY = "hidden";
7820
7965
  }
7821
7966
  }, [autoResize, maxHeight]);
7822
- React10.useEffect(() => {
7967
+ React11.useEffect(() => {
7823
7968
  adjustHeight();
7824
7969
  }, [internalValue, adjustHeight]);
7825
- React10.useEffect(() => {
7970
+ React11.useEffect(() => {
7826
7971
  if (value !== void 0) {
7827
7972
  setInternalValue(value);
7828
7973
  }
@@ -7888,7 +8033,7 @@ var Textarea = React10.forwardRef(
7888
8033
  );
7889
8034
  Textarea.displayName = "Textarea";
7890
8035
  var ToastProvider = ToastPrimitives.Provider;
7891
- var ToastViewport = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8036
+ var ToastViewport = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7892
8037
  ToastPrimitives.Viewport,
7893
8038
  {
7894
8039
  ref,
@@ -7917,7 +8062,7 @@ var toastVariants = cva(
7917
8062
  }
7918
8063
  }
7919
8064
  );
7920
- var Toast = React10.forwardRef(({ className, variant, ...props }, ref) => {
8065
+ var Toast = React11.forwardRef(({ className, variant, ...props }, ref) => {
7921
8066
  return /* @__PURE__ */ jsx(
7922
8067
  ToastPrimitives.Root,
7923
8068
  {
@@ -7928,7 +8073,7 @@ var Toast = React10.forwardRef(({ className, variant, ...props }, ref) => {
7928
8073
  );
7929
8074
  });
7930
8075
  Toast.displayName = ToastPrimitives.Root.displayName;
7931
- var ToastAction = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8076
+ var ToastAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7932
8077
  ToastPrimitives.Action,
7933
8078
  {
7934
8079
  ref,
@@ -7940,7 +8085,7 @@ var ToastAction = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
7940
8085
  }
7941
8086
  ));
7942
8087
  ToastAction.displayName = ToastPrimitives.Action.displayName;
7943
- var ToastClose = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8088
+ var ToastClose = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7944
8089
  ToastPrimitives.Close,
7945
8090
  {
7946
8091
  ref,
@@ -7954,7 +8099,7 @@ var ToastClose = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
7954
8099
  }
7955
8100
  ));
7956
8101
  ToastClose.displayName = ToastPrimitives.Close.displayName;
7957
- var ToastTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8102
+ var ToastTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7958
8103
  ToastPrimitives.Title,
7959
8104
  {
7960
8105
  ref,
@@ -7963,7 +8108,7 @@ var ToastTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
7963
8108
  }
7964
8109
  ));
7965
8110
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
7966
- var ToastDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8111
+ var ToastDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7967
8112
  ToastPrimitives.Description,
7968
8113
  {
7969
8114
  ref,
@@ -8071,8 +8216,8 @@ function toast({ ...props }) {
8071
8216
  };
8072
8217
  }
8073
8218
  function useToast() {
8074
- const [state, setState] = React10.useState(memoryState);
8075
- React10.useEffect(() => {
8219
+ const [state, setState] = React11.useState(memoryState);
8220
+ React11.useEffect(() => {
8076
8221
  listeners.push(setState);
8077
8222
  return () => {
8078
8223
  const index = listeners.indexOf(setState);
@@ -8125,7 +8270,7 @@ var kbdVariants = cva(
8125
8270
  }
8126
8271
  }
8127
8272
  );
8128
- var Kbd = React10.forwardRef(
8273
+ var Kbd = React11.forwardRef(
8129
8274
  ({ className, size, children, ...props }, ref) => {
8130
8275
  return /* @__PURE__ */ jsx(
8131
8276
  "kbd",
@@ -8162,7 +8307,7 @@ var iconSizeMap = {
8162
8307
  md: "h-5 w-5",
8163
8308
  lg: "h-6 w-6"
8164
8309
  };
8165
- var Rating = React10.forwardRef(
8310
+ var Rating = React11.forwardRef(
8166
8311
  ({
8167
8312
  className,
8168
8313
  value,
@@ -8180,11 +8325,11 @@ var Rating = React10.forwardRef(
8180
8325
  const iconSizeClass = iconSizeMap[resolvedSize];
8181
8326
  const step = precision === "half" ? 0.5 : 1;
8182
8327
  const isControlled = value !== void 0;
8183
- const [internalValue, setInternalValue] = React10.useState(defaultValue ?? 0);
8328
+ const [internalValue, setInternalValue] = React11.useState(defaultValue ?? 0);
8184
8329
  const currentValue = isControlled ? value ?? 0 : internalValue;
8185
- const [hoverValue, setHoverValue] = React10.useState(null);
8330
+ const [hoverValue, setHoverValue] = React11.useState(null);
8186
8331
  const displayValue = hoverValue !== null ? hoverValue : currentValue;
8187
- const commit = React10.useCallback(
8332
+ const commit = React11.useCallback(
8188
8333
  (next) => {
8189
8334
  if (readOnly)
8190
8335
  return;
@@ -8194,7 +8339,7 @@ var Rating = React10.forwardRef(
8194
8339
  },
8195
8340
  [readOnly, isControlled, onValueChange]
8196
8341
  );
8197
- const handleKeyDown = React10.useCallback(
8342
+ const handleKeyDown = React11.useCallback(
8198
8343
  (event) => {
8199
8344
  if (readOnly)
8200
8345
  return;
@@ -8223,9 +8368,9 @@ var Rating = React10.forwardRef(
8223
8368
  [readOnly, max, currentValue, step, commit]
8224
8369
  );
8225
8370
  const renderIcon = (filled) => {
8226
- if (React10.isValidElement(icon)) {
8371
+ if (React11.isValidElement(icon)) {
8227
8372
  const element = icon;
8228
- return React10.cloneElement(element, {
8373
+ return React11.cloneElement(element, {
8229
8374
  className: cn(
8230
8375
  iconSizeClass,
8231
8376
  "shrink-0",
@@ -8359,7 +8504,7 @@ var dotSizeMap = {
8359
8504
  lg: "h-2 w-2",
8360
8505
  xl: "h-2.5 w-2.5"
8361
8506
  };
8362
- var Spinner = React10.forwardRef(
8507
+ var Spinner = React11.forwardRef(
8363
8508
  ({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
8364
8509
  return /* @__PURE__ */ jsxs(
8365
8510
  "div",
@@ -8438,15 +8583,15 @@ var buttonGroupVariants = cva(
8438
8583
  }
8439
8584
  }
8440
8585
  );
8441
- var ButtonGroup = React10.forwardRef(
8586
+ var ButtonGroup = React11.forwardRef(
8442
8587
  ({ className, orientation, attached, size, variant, children, ...props }, ref) => {
8443
8588
  const shouldPropagate = size !== void 0 || variant !== void 0;
8444
- const enhancedChildren = shouldPropagate ? React10.Children.map(children, (child) => {
8445
- if (!React10.isValidElement(child) || child.type !== Button) {
8589
+ const enhancedChildren = shouldPropagate ? React11.Children.map(children, (child) => {
8590
+ if (!React11.isValidElement(child) || child.type !== Button) {
8446
8591
  return child;
8447
8592
  }
8448
8593
  const childProps = child.props;
8449
- return React10.cloneElement(child, {
8594
+ return React11.cloneElement(child, {
8450
8595
  size: childProps.size ?? size,
8451
8596
  variant: childProps.variant ?? variant
8452
8597
  });
@@ -8464,16 +8609,20 @@ var ButtonGroup = React10.forwardRef(
8464
8609
  }
8465
8610
  );
8466
8611
  ButtonGroup.displayName = "ButtonGroup";
8467
- var ToggleGroupContext = React10.createContext({
8612
+ var ToggleGroupContext = React11.createContext({
8468
8613
  size: "default",
8469
8614
  variant: "default"
8470
8615
  });
8471
- var ToggleGroup = React10.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8616
+ var ToggleGroup = React11.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8472
8617
  ToggleGroupPrimitive.Root,
8473
8618
  {
8474
8619
  ref,
8475
8620
  className: cn(
8476
8621
  "moonui-theme inline-flex items-center justify-center gap-1",
8622
+ // Radix roving-focus kök elemana `data-orientation` yazar; dikey yerleşim
8623
+ // buna bağlanır. Yatay/tanımsız durumda taban sınıflar geçerli kalır —
8624
+ // yani mevcut render değişmez. Kardeş `button-group` ile desen paritesi.
8625
+ "data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch data-[orientation=vertical]:justify-start",
8477
8626
  className
8478
8627
  ),
8479
8628
  ...props,
@@ -8481,8 +8630,8 @@ var ToggleGroup = React10.forwardRef(({ className, variant, size, children, ...p
8481
8630
  }
8482
8631
  ));
8483
8632
  ToggleGroup.displayName = "ToggleGroup";
8484
- var ToggleGroupItem = React10.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8485
- const context = React10.useContext(ToggleGroupContext);
8633
+ var ToggleGroupItem = React11.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8634
+ const context = React11.useContext(ToggleGroupContext);
8486
8635
  return /* @__PURE__ */ jsx(
8487
8636
  ToggleGroupPrimitive.Item,
8488
8637
  {
@@ -8501,6 +8650,6 @@ var ToggleGroupItem = React10.forwardRef(({ className, children, variant, size,
8501
8650
  });
8502
8651
  ToggleGroupItem.displayName = "ToggleGroupItem";
8503
8652
 
8504
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, Card, CardCVCInput, CardContent, CardDescription, CardExpiryInput, CardFooter, CardHeader, CardNumberInput, CardTitle, CardZipInput, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogForm, DialogHeader, DialogTitle, DialogTrigger, DraggableList, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileUpload, FreeBadge, GestureDrawer, GitHubStarButton, GitHubStars, GradientPicker, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, Label, LockedComponent, MonthPicker, MoonLogo, MoonLogoAnimated, MoonLogoIcon, Accordion as MoonUIAccordion, AccordionContent as MoonUIAccordionContent, AccordionItem as MoonUIAccordionItem, AccordionTrigger as MoonUIAccordionTrigger, Alert as MoonUIAlert, AlertDescription as MoonUIAlertDescription, AlertTitle as MoonUIAlertTitle, AspectRatio as MoonUIAspectRatio, Avatar as MoonUIAvatar, AvatarFallback as MoonUIAvatarFallback, AvatarGroup as MoonUIAvatarGroup, AvatarImage as MoonUIAvatarImage, Badge as MoonUIBadge, Breadcrumb as MoonUIBreadcrumb, BreadcrumbEllipsis as MoonUIBreadcrumbEllipsis, BreadcrumbItem as MoonUIBreadcrumbItem, BreadcrumbLink as MoonUIBreadcrumbLink, BreadcrumbList as MoonUIBreadcrumbList, BreadcrumbPage as MoonUIBreadcrumbPage, BreadcrumbSeparator as MoonUIBreadcrumbSeparator, Button as MoonUIButton, ButtonGroup as MoonUIButtonGroup, Calendar as MoonUICalendar, Card as MoonUICard, CardCVCInput as MoonUICardCVCInput, CardContent as MoonUICardContent, CardDescription as MoonUICardDescription, CardExpiryInput as MoonUICardExpiryInput, CardFooter as MoonUICardFooter, CardHeader as MoonUICardHeader, CardNumberInput as MoonUICardNumberInput, CardTitle as MoonUICardTitle, CardZipInput as MoonUICardZipInput, Carousel as MoonUICarousel, CarouselContent as MoonUICarouselContent, CarouselItem as MoonUICarouselItem, CarouselNext as MoonUICarouselNext, CarouselPrevious as MoonUICarouselPrevious, Checkbox as MoonUICheckbox, CheckboxGroup as MoonUICheckboxGroup, CheckboxLabel as MoonUICheckboxLabel, CheckboxWithLabel as MoonUICheckboxWithLabel, Collapsible as MoonUICollapsible, CollapsibleContent as MoonUICollapsibleContent, CollapsibleTrigger as MoonUICollapsibleTrigger, ColorPicker as MoonUIColorPicker, Command as MoonUICommand, CommandDialog as MoonUICommandDialog, CommandEmpty as MoonUICommandEmpty, CommandGroup as MoonUICommandGroup, CommandInput as MoonUICommandInput, CommandItem as MoonUICommandItem, CommandList as MoonUICommandList, CommandSeparator as MoonUICommandSeparator, CommandShortcut as MoonUICommandShortcut, DataTableBasic as MoonUIDataTableBasic, DatePicker as MoonUIDatePicker, DateRangePicker as MoonUIDateRangePicker, DateTimePicker as MoonUIDateTimePicker, Dialog as MoonUIDialog, DialogClose as MoonUIDialogClose, DialogContent as MoonUIDialogContent, DialogDescription as MoonUIDialogDescription, DialogFooter as MoonUIDialogFooter, DialogHeader as MoonUIDialogHeader, DialogTitle as MoonUIDialogTitle, DialogTrigger as MoonUIDialogTrigger, DraggableList as MoonUIDraggableList, DropdownMenu as MoonUIDropdownMenu, DropdownMenuCheckboxItem as MoonUIDropdownMenuCheckboxItem, DropdownMenuContent as MoonUIDropdownMenuContent, DropdownMenuGroup as MoonUIDropdownMenuGroup, DropdownMenuItem as MoonUIDropdownMenuItem, DropdownMenuLabel as MoonUIDropdownMenuLabel, DropdownMenuPortal as MoonUIDropdownMenuPortal, DropdownMenuRadioGroup as MoonUIDropdownMenuRadioGroup, DropdownMenuRadioItem as MoonUIDropdownMenuRadioItem, DropdownMenuSeparator as MoonUIDropdownMenuSeparator, DropdownMenuShortcut as MoonUIDropdownMenuShortcut, DropdownMenuSub as MoonUIDropdownMenuSub, DropdownMenuSubContent as MoonUIDropdownMenuSubContent, DropdownMenuSubTrigger as MoonUIDropdownMenuSubTrigger, DropdownMenuTrigger as MoonUIDropdownMenuTrigger, FileUpload as MoonUIFileUpload, FreeBadge as MoonUIFreeBadge, GestureDrawer as MoonUIGestureDrawer, GitHubStars as MoonUIGitHubStars, GradientPicker as MoonUIGradientPicker, Input as MoonUIInput, InputOTP as MoonUIInputOTP, InputOTPGroup as MoonUIInputOTPGroup, InputOTPSeparator as MoonUIInputOTPSeparator, InputOTPSlot as MoonUIInputOTPSlot, Kbd as MoonUIKbd, Label as MoonUILabel, LockedComponent as MoonUILockedComponent, MonthPicker as MoonUIMonthPicker, MoonLogo as MoonUIMoonLogo, Pagination as MoonUIPagination, PaginationContent as MoonUIPaginationContent, PaginationEllipsis as MoonUIPaginationEllipsis, PaginationItem as MoonUIPaginationItem, PaginationLink as MoonUIPaginationLink, PaginationNext as MoonUIPaginationNext, PaginationPrevious as MoonUIPaginationPrevious, PhoneInput as MoonUIPhoneInput, Popover as MoonUIPopover, PopoverContent as MoonUIPopoverContent, PopoverTrigger as MoonUIPopoverTrigger, ProBadge as MoonUIProBadge, ProComponentWrapper as MoonUIProComponentWrapper, Progress as MoonUIProgress, RadioGroup2 as MoonUIRadioGroup, RadioGroupItem as MoonUIRadioGroupItem, RadioItemWithLabel as MoonUIRadioItemWithLabel, RadioLabel as MoonUIRadioLabel, Rating as MoonUIRating, RichTextEditor as MoonUIRichTextEditor, ScrollArea as MoonUIScrollArea, ScrollBar as MoonUIScrollBar, ScrollReveal as MoonUIScrollReveal, ScrollRevealContainer as MoonUIScrollRevealContainer, ScrollRevealItem as MoonUIScrollRevealItem, Select as MoonUISelect, SelectContent as MoonUISelectContent, SelectGroup as MoonUISelectGroup, SelectItem as MoonUISelectItem, SelectLabel as MoonUISelectLabel, SelectScrollDownButton as MoonUISelectScrollDownButton, SelectScrollUpButton as MoonUISelectScrollUpButton, SelectSeparator as MoonUISelectSeparator, SelectTrigger as MoonUISelectTrigger, SelectValue as MoonUISelectValue, Separator3 as MoonUISeparator, SimpleColorPicker as MoonUISimpleColorPicker, SimpleEditor as MoonUISimpleEditor, Skeleton as MoonUISkeleton, SkeletonAvatar as MoonUISkeletonAvatar, SkeletonCard as MoonUISkeletonCard, SkeletonText as MoonUISkeletonText, Slider as MoonUISlider, Spinner as MoonUISpinner, SwipeableCard as MoonUISwipeableCard, Switch as MoonUISwitch, Table as MoonUITable, TableBody as MoonUITableBody, TableCaption as MoonUITableCaption, TableCell as MoonUITableCell, TableFooter as MoonUITableFooter, TableHead as MoonUITableHead, TableHeader as MoonUITableHeader, TableRow as MoonUITableRow, Tabs as MoonUITabs, TabsContent as MoonUITabsContent, TabsList as MoonUITabsList, TabsTrigger as MoonUITabsTrigger, TagsInput as MoonUITagsInput, Textarea as MoonUITextarea, Toast as MoonUIToast, ToastAction as MoonUIToastAction, ToastClose as MoonUIToastClose, ToastDescription as MoonUIToastDescription, ToastProvider as MoonUIToastProvider, ToastTitle as MoonUIToastTitle, ToastViewport as MoonUIToastViewport, Toaster as MoonUIToaster, Toggle as MoonUIToggle, ToggleGroup as MoonUIToggleGroup, ToggleGroupItem as MoonUIToggleGroupItem, Tooltip as MoonUITooltip, TooltipContent as MoonUITooltipContent, TooltipProvider as MoonUITooltipProvider, TooltipTrigger as MoonUITooltipTrigger, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PhoneInput, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverSeparator, PopoverTrigger, ProBadge, ProComponentWrapper, Progress, RadioGroup2 as RadioGroup, RadioGroupItem, RadioItemWithLabel, RadioLabel, Rating, RichTextEditor, ScrollArea, ScrollBar, ScrollReveal, ScrollRevealContainer, ScrollRevealItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, SimpleColorPicker, SimpleEditor, SimpleTooltip, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonText, Slider, Spinner, SwipeableCard, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagsInput, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, aspectRatioVariants, badgeVariants, buttonGroupVariants, buttonVariants, carouselContentVariants, carouselItemVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, inputOTPSlotVariants, kbdVariants, badgeVariants as moonUIBadgeVariants, buttonGroupVariants as moonUIButtonGroupVariants, buttonVariants as moonUIButtonVariants, carouselContentVariants as moonUICarouselContentVariants, carouselItemVariants as moonUICarouselItemVariants, createSortableHeader as moonUICreateSortableHeader, inputOTPSlotVariants as moonUIInputOTPSlotVariants, kbdVariants as moonUIKbdVariants, ratingVariants as moonUIRatingVariants, skeletonVariants as moonUISkeletonVariants, spinnerVariants as moonUISpinnerVariants, toggleVariants as moonUIToggleVariants, popoverContentVariants, progressVariants, ratingVariants, separatorVariants, skeletonVariants, spinnerVariants, toast, toggleVariants, tooltipVariants, useCarousel, useToast };
8653
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, Card, CardCVCInput, CardContent, CardDescription, CardExpiryInput, CardFooter, CardHeader, CardNumberInput, CardTitle, CardZipInput, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogForm, DialogHeader, DialogTitle, DialogTrigger, DraggableList, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileUpload, FreeBadge, GestureDrawer, GitHubStarButton, GitHubStars, GradientPicker, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, Label, LockedComponent, MonthPicker, MoonLogo, MoonLogoAnimated, MoonLogoIcon, Accordion as MoonUIAccordion, AccordionContent as MoonUIAccordionContent, AccordionItem as MoonUIAccordionItem, AccordionTrigger as MoonUIAccordionTrigger, Alert as MoonUIAlert, AlertDescription as MoonUIAlertDescription, AlertTitle as MoonUIAlertTitle, AspectRatio as MoonUIAspectRatio, Avatar as MoonUIAvatar, AvatarFallback as MoonUIAvatarFallback, AvatarGroup as MoonUIAvatarGroup, AvatarImage as MoonUIAvatarImage, Badge as MoonUIBadge, Breadcrumb as MoonUIBreadcrumb, BreadcrumbEllipsis as MoonUIBreadcrumbEllipsis, BreadcrumbItem as MoonUIBreadcrumbItem, BreadcrumbLink as MoonUIBreadcrumbLink, BreadcrumbList as MoonUIBreadcrumbList, BreadcrumbPage as MoonUIBreadcrumbPage, BreadcrumbSeparator as MoonUIBreadcrumbSeparator, Button as MoonUIButton, ButtonGroup as MoonUIButtonGroup, Calendar as MoonUICalendar, Card as MoonUICard, CardCVCInput as MoonUICardCVCInput, CardContent as MoonUICardContent, CardDescription as MoonUICardDescription, CardExpiryInput as MoonUICardExpiryInput, CardFooter as MoonUICardFooter, CardHeader as MoonUICardHeader, CardNumberInput as MoonUICardNumberInput, CardTitle as MoonUICardTitle, CardZipInput as MoonUICardZipInput, Carousel as MoonUICarousel, CarouselContent as MoonUICarouselContent, CarouselItem as MoonUICarouselItem, CarouselNext as MoonUICarouselNext, CarouselPrevious as MoonUICarouselPrevious, Checkbox as MoonUICheckbox, CheckboxGroup as MoonUICheckboxGroup, CheckboxLabel as MoonUICheckboxLabel, CheckboxWithLabel as MoonUICheckboxWithLabel, Collapsible as MoonUICollapsible, CollapsibleContent as MoonUICollapsibleContent, CollapsibleTrigger as MoonUICollapsibleTrigger, ColorPicker as MoonUIColorPicker, Command as MoonUICommand, CommandDialog as MoonUICommandDialog, CommandEmpty as MoonUICommandEmpty, CommandGroup as MoonUICommandGroup, CommandInput as MoonUICommandInput, CommandItem as MoonUICommandItem, CommandList as MoonUICommandList, CommandSeparator as MoonUICommandSeparator, CommandShortcut as MoonUICommandShortcut, DataTableBasic as MoonUIDataTableBasic, DatePicker as MoonUIDatePicker, DateRangePicker as MoonUIDateRangePicker, DateTimePicker as MoonUIDateTimePicker, Dialog as MoonUIDialog, DialogClose as MoonUIDialogClose, DialogContent as MoonUIDialogContent, DialogDescription as MoonUIDialogDescription, DialogFooter as MoonUIDialogFooter, DialogHeader as MoonUIDialogHeader, DialogTitle as MoonUIDialogTitle, DialogTrigger as MoonUIDialogTrigger, DraggableList as MoonUIDraggableList, DropdownMenu as MoonUIDropdownMenu, DropdownMenuCheckboxItem as MoonUIDropdownMenuCheckboxItem, DropdownMenuContent as MoonUIDropdownMenuContent, DropdownMenuGroup as MoonUIDropdownMenuGroup, DropdownMenuItem as MoonUIDropdownMenuItem, DropdownMenuLabel as MoonUIDropdownMenuLabel, DropdownMenuPortal as MoonUIDropdownMenuPortal, DropdownMenuRadioGroup as MoonUIDropdownMenuRadioGroup, DropdownMenuRadioItem as MoonUIDropdownMenuRadioItem, DropdownMenuSeparator as MoonUIDropdownMenuSeparator, DropdownMenuShortcut as MoonUIDropdownMenuShortcut, DropdownMenuSub as MoonUIDropdownMenuSub, DropdownMenuSubContent as MoonUIDropdownMenuSubContent, DropdownMenuSubTrigger as MoonUIDropdownMenuSubTrigger, DropdownMenuTrigger as MoonUIDropdownMenuTrigger, FileUpload as MoonUIFileUpload, FreeBadge as MoonUIFreeBadge, GestureDrawer as MoonUIGestureDrawer, GitHubStars as MoonUIGitHubStars, GradientPicker as MoonUIGradientPicker, Input as MoonUIInput, InputOTP as MoonUIInputOTP, InputOTPGroup as MoonUIInputOTPGroup, InputOTPSeparator as MoonUIInputOTPSeparator, InputOTPSlot as MoonUIInputOTPSlot, Kbd as MoonUIKbd, Label as MoonUILabel, LockedComponent as MoonUILockedComponent, MonthPicker as MoonUIMonthPicker, MoonLogo as MoonUIMoonLogo, Pagination as MoonUIPagination, PaginationContent as MoonUIPaginationContent, PaginationEllipsis as MoonUIPaginationEllipsis, PaginationItem as MoonUIPaginationItem, PaginationLink as MoonUIPaginationLink, PaginationNext as MoonUIPaginationNext, PaginationPrevious as MoonUIPaginationPrevious, PhoneInput as MoonUIPhoneInput, Popover as MoonUIPopover, PopoverContent as MoonUIPopoverContent, PopoverTrigger as MoonUIPopoverTrigger, ProBadge as MoonUIProBadge, ProComponentWrapper as MoonUIProComponentWrapper, Progress as MoonUIProgress, RadioGroup2 as MoonUIRadioGroup, RadioGroupItem as MoonUIRadioGroupItem, RadioItemWithLabel as MoonUIRadioItemWithLabel, RadioLabel as MoonUIRadioLabel, Rating as MoonUIRating, RichTextEditor as MoonUIRichTextEditor, ScrollArea as MoonUIScrollArea, ScrollBar as MoonUIScrollBar, ScrollReveal as MoonUIScrollReveal, ScrollRevealContainer as MoonUIScrollRevealContainer, ScrollRevealItem as MoonUIScrollRevealItem, Select as MoonUISelect, SelectContent as MoonUISelectContent, SelectGroup as MoonUISelectGroup, SelectItem as MoonUISelectItem, SelectLabel as MoonUISelectLabel, SelectScrollDownButton as MoonUISelectScrollDownButton, SelectScrollUpButton as MoonUISelectScrollUpButton, SelectSeparator as MoonUISelectSeparator, SelectTrigger as MoonUISelectTrigger, SelectValue as MoonUISelectValue, Separator3 as MoonUISeparator, SimpleColorPicker as MoonUISimpleColorPicker, SimpleEditor as MoonUISimpleEditor, Skeleton as MoonUISkeleton, SkeletonAvatar as MoonUISkeletonAvatar, SkeletonCard as MoonUISkeletonCard, SkeletonText as MoonUISkeletonText, Slider as MoonUISlider, Spinner as MoonUISpinner, SwipeableCard as MoonUISwipeableCard, Switch as MoonUISwitch, Table as MoonUITable, TableBody as MoonUITableBody, TableCaption as MoonUITableCaption, TableCell as MoonUITableCell, TableFooter as MoonUITableFooter, TableHead as MoonUITableHead, TableHeader as MoonUITableHeader, TableRow as MoonUITableRow, Tabs as MoonUITabs, TabsContent as MoonUITabsContent, TabsList as MoonUITabsList, TabsTrigger as MoonUITabsTrigger, TagsInput as MoonUITagsInput, Textarea as MoonUITextarea, Toast as MoonUIToast, ToastAction as MoonUIToastAction, ToastClose as MoonUIToastClose, ToastDescription as MoonUIToastDescription, ToastProvider as MoonUIToastProvider, ToastTitle as MoonUIToastTitle, ToastViewport as MoonUIToastViewport, Toaster as MoonUIToaster, Toggle as MoonUIToggle, ToggleGroup as MoonUIToggleGroup, ToggleGroupItem as MoonUIToggleGroupItem, Tooltip as MoonUITooltip, TooltipContent as MoonUITooltipContent, TooltipProvider as MoonUITooltipProvider, TooltipTrigger as MoonUITooltipTrigger, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PhoneInput, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverSeparator, PopoverTrigger, ProBadge, ProComponentWrapper, Progress, RadioGroup2 as RadioGroup, RadioGroupItem, RadioItemWithLabel, RadioLabel, Rating, RichTextEditor, ScrollArea, ScrollBar, ScrollReveal, ScrollRevealContainer, ScrollRevealItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, SimpleColorPicker, SimpleEditor, SimpleTooltip, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonText, Slider, Spinner, SwipeableCard, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagsInput, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, aspectRatioVariants, badgeVariants, buttonGroupVariants, buttonVariants, carouselContentVariants, carouselItemVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, inputOTPSlotVariants, kbdVariants, badgeVariants as moonUIBadgeVariants, buttonGroupVariants as moonUIButtonGroupVariants, buttonVariants as moonUIButtonVariants, carouselContentVariants as moonUICarouselContentVariants, carouselItemVariants as moonUICarouselItemVariants, createSortableHeader as moonUICreateSortableHeader, inputOTPSlotVariants as moonUIInputOTPSlotVariants, kbdVariants as moonUIKbdVariants, ratingVariants as moonUIRatingVariants, skeletonVariants as moonUISkeletonVariants, spinnerVariants as moonUISpinnerVariants, toggleVariants as moonUIToggleVariants, popoverContentVariants, progressVariants, ratingVariants, separatorVariants, skeletonVariants, spinnerVariants, switchVariants, toast, toggleVariants, tooltipVariants, useCarousel, useToast };
8505
8654
  //# sourceMappingURL=out.js.map
8506
8655
  //# sourceMappingURL=index.mjs.map