@moontra/moonui 3.4.0 → 4.1.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.
Files changed (34) hide show
  1. package/dist/index.d.mts +34 -19
  2. package/dist/index.d.ts +34 -19
  3. package/dist/index.global.js +355 -42
  4. package/dist/index.global.js.map +1 -1
  5. package/dist/index.js +539 -387
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +505 -354
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/lib/theme.global.js +14 -1
  10. package/dist/lib/theme.global.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/components/ui/__tests__/alert.test.tsx +5 -5
  13. package/src/components/ui/__tests__/avatar.test.tsx +12 -12
  14. package/src/components/ui/__tests__/badge.test.tsx +17 -1
  15. package/src/components/ui/__tests__/label.test.tsx +3 -2
  16. package/src/components/ui/__tests__/select.test.tsx +24 -2
  17. package/src/components/ui/__tests__/switch.test.tsx +36 -3
  18. package/src/components/ui/__tests__/tags-input.test.tsx +163 -0
  19. package/src/components/ui/alert.tsx +5 -2
  20. package/src/components/ui/aspect-ratio.tsx +9 -3
  21. package/src/components/ui/avatar.tsx +18 -6
  22. package/src/components/ui/badge.tsx +18 -11
  23. package/src/components/ui/button.tsx +3 -0
  24. package/src/components/ui/date-picker.tsx +38 -19
  25. package/src/components/ui/file-upload.tsx +4 -0
  26. package/src/components/ui/index.ts +22 -0
  27. package/src/components/ui/input-otp.tsx +5 -0
  28. package/src/components/ui/input.tsx +7 -2
  29. package/src/components/ui/label.tsx +6 -3
  30. package/src/components/ui/select.tsx +59 -23
  31. package/src/components/ui/simple-editor.tsx +18 -3
  32. package/src/components/ui/switch.tsx +108 -51
  33. package/src/components/ui/tags-input.tsx +86 -14
  34. package/src/components/ui/textarea.tsx +8 -4
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
- import * as React10 from 'react';
4
- import React10__default, { useState, useCallback, useEffect } from 'react';
3
+ import * as React24 from 'react';
4
+ import React24__default, { useState, useCallback, useEffect } from 'react';
5
5
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
6
- import { ChevronDown, Info, AlertCircle, AlertTriangle, Check, X, MoreHorizontal, Loader2, CreditCard, ArrowLeft, ArrowRight, Minus, Search, 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';
6
+ import { ChevronDown, Info, AlertCircle, AlertTriangle, Check, X, MoreHorizontal, Loader2, CreditCard, ArrowLeft, ArrowRight, Minus, Search, Calendar as Calendar$1, Clock, ChevronLeft, ChevronRight, Circle, Upload, Dot, ChevronUp, Phone, Bold, Italic, Underline, Strikethrough, AlignLeft, AlignCenter, AlignRight, AlignJustify, List, ListOrdered, Quote, Code, Link, Image, Palette, Undo, Redo, Edit, Eye, Copy, ArrowDown, ArrowUp, ArrowUpDown, CheckCircle, Star, GitFork, ExternalLink, Crown, Lock, Zap, Video, Music, FileText, File } from 'lucide-react';
7
7
  export { Palette, Pipette } from 'lucide-react';
8
8
  import { clsx } from 'clsx';
9
9
  import { twMerge } from 'tailwind-merge';
@@ -11,7 +11,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
11
  import { cva } from 'class-variance-authority';
12
12
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
13
13
  import { motion, AnimatePresence, useMotionValue, useTransform, animate } from 'framer-motion';
14
- import { format, isSameMonth, isToday, isValid, subMonths, addMonths, isSameDay, startOfMonth, endOfMonth, eachDayOfInterval, getDay, startOfWeek, endOfWeek } from 'date-fns';
14
+ import { isValid, format, isSameMonth, isToday, subMonths, addMonths, isSameDay, startOfMonth, endOfMonth, eachDayOfInterval, getDay, startOfWeek, endOfWeek } from 'date-fns';
15
15
  export { format } from 'date-fns';
16
16
  import useEmblaCarousel from 'embla-carousel-react';
17
17
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
@@ -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 = React24.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 = React24.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 = React24.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 = React24.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 = React24.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 = React24.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 = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
192
195
  "div",
193
196
  {
194
197
  ref,
@@ -205,11 +208,15 @@ var aspectRatioVariants = cva(
205
208
  "relative overflow-hidden",
206
209
  {
207
210
  variants: {
211
+ // `variant` yalnız yüzey/kenarlık eksenini yönetir. Önceden her varyant
212
+ // ayrıca `rounded-md` taşıyordu ve `radius` ekseniyle çakışıyordu
213
+ // (aynı anda iki `rounded-*` sınıfı üretiliyordu). Köşe yuvarlaması artık
214
+ // TEK kaynaktan: `radius`.
208
215
  variant: {
209
- default: "rounded-md bg-muted/10",
216
+ default: "bg-muted/10",
210
217
  ghost: "bg-transparent",
211
- outline: "rounded-md border border-border",
212
- card: "rounded-md bg-card shadow-sm"
218
+ outline: "border border-border",
219
+ card: "bg-card shadow-sm"
213
220
  },
214
221
  radius: {
215
222
  none: "rounded-none",
@@ -220,11 +227,13 @@ var aspectRatioVariants = cva(
220
227
  }
221
228
  },
222
229
  defaultVariants: {
223
- variant: "default"
230
+ variant: "default",
231
+ // Önceki davranış korunur: her varyant `rounded-md` taşıyordu.
232
+ radius: "md"
224
233
  }
225
234
  }
226
235
  );
227
- var AspectRatio = React10.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
236
+ var AspectRatio = React24.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
228
237
  "div",
229
238
  {
230
239
  ref,
@@ -273,7 +282,7 @@ var avatarVariants = cva(
273
282
  }
274
283
  }
275
284
  );
276
- var Avatar = React10.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
285
+ var Avatar = React24.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
277
286
  AvatarPrimitive.Root,
278
287
  {
279
288
  ref,
@@ -282,7 +291,7 @@ var Avatar = React10.forwardRef(({ className, size, radius, variant, ...props },
282
291
  }
283
292
  ));
284
293
  Avatar.displayName = AvatarPrimitive.Root.displayName;
285
- var AvatarImage = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
294
+ var AvatarImage = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
286
295
  AvatarPrimitive.Image,
287
296
  {
288
297
  ref,
@@ -291,7 +300,7 @@ var AvatarImage = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
291
300
  }
292
301
  ));
293
302
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
294
- var AvatarFallback = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
303
+ var AvatarFallback = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
295
304
  AvatarPrimitive.Fallback,
296
305
  {
297
306
  ref,
@@ -303,10 +312,11 @@ var AvatarFallback = React10.forwardRef(({ className, ...props }, ref) => /* @__
303
312
  }
304
313
  ));
305
314
  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;
315
+ var AvatarGroup = React24.forwardRef(
316
+ ({ className, max, children, overlapOffset = -8, ...props }, ref) => {
317
+ const childrenArray = React24.Children.toArray(children);
318
+ const visibleAvatars = max ? childrenArray.slice(0, max) : childrenArray;
319
+ const remainingCount = max ? Math.max(0, childrenArray.length - max) : 0;
310
320
  return /* @__PURE__ */ jsx(
311
321
  "div",
312
322
  {
@@ -355,11 +365,15 @@ var badgeVariants = cva(
355
365
  {
356
366
  variants: {
357
367
  variant: {
368
+ // KIRICI (issue #261): önceden ham `gray-900`/`white` kullanılıyordu;
369
+ // aynı varyant pro pakette token'lıydı → free ve pro `primary` için
370
+ // farklı renk üretiyordu. Artık token'a bağlı (tema/karanlık moda duyarlı).
371
+ // `primary` VARSAYILAN varyant olduğu için görünür bir renk değişimidir.
358
372
  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"
373
+ "border-transparent bg-primary text-primary-foreground",
374
+ "hover:bg-primary/90",
375
+ "focus-visible:ring-primary/30 dark:focus-visible:ring-primary/40",
376
+ "dark:bg-primary/90 dark:shadow-inner dark:shadow-primary/10"
363
377
  ],
364
378
  secondary: [
365
379
  "border-transparent bg-secondary text-secondary-foreground",
@@ -431,7 +445,7 @@ var badgeVariants = cva(
431
445
  }
432
446
  }
433
447
  );
434
- function Badge({
448
+ var Badge = React24.forwardRef(({
435
449
  className,
436
450
  variant,
437
451
  size,
@@ -445,7 +459,7 @@ function Badge({
445
459
  noAutoSpacing,
446
460
  children,
447
461
  ...props
448
- }) {
462
+ }, ref) => {
449
463
  let autoLeftIcon = leftIcon;
450
464
  let autoChildren = children;
451
465
  if (variant === "pro") {
@@ -463,6 +477,7 @@ function Badge({
463
477
  return /* @__PURE__ */ jsxs(
464
478
  "div",
465
479
  {
480
+ ref,
466
481
  className: cn(
467
482
  "moonui-theme",
468
483
  badgeVariants({ variant, size, radius }),
@@ -514,7 +529,8 @@ function Badge({
514
529
  ]
515
530
  }
516
531
  );
517
- }
532
+ });
533
+ Badge.displayName = "Badge";
518
534
  var breadcrumbVariants = cva(
519
535
  "flex items-center gap-1.5 text-sm",
520
536
  {
@@ -536,7 +552,7 @@ var breadcrumbVariants = cva(
536
552
  }
537
553
  }
538
554
  );
539
- var Breadcrumb = React10.forwardRef(
555
+ var Breadcrumb = React24.forwardRef(
540
556
  ({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
541
557
  "nav",
542
558
  {
@@ -548,9 +564,9 @@ var Breadcrumb = React10.forwardRef(
548
564
  )
549
565
  );
550
566
  Breadcrumb.displayName = "Breadcrumb";
551
- var BreadcrumbList = React10.forwardRef(
567
+ var BreadcrumbList = React24.forwardRef(
552
568
  ({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
553
- const childrenArray = React10.Children.toArray(props.children).filter(Boolean);
569
+ const childrenArray = React24.Children.toArray(props.children).filter(Boolean);
554
570
  const childCount = childrenArray.length;
555
571
  if (collapsed && childCount > collapsedWidth) {
556
572
  const firstItem = childrenArray[0];
@@ -586,9 +602,9 @@ var BreadcrumbList = React10.forwardRef(
586
602
  }
587
603
  );
588
604
  BreadcrumbList.displayName = "BreadcrumbList";
589
- var BreadcrumbItem = React10.forwardRef(
605
+ var BreadcrumbItem = React24.forwardRef(
590
606
  ({ className, isCurrent, href, asChild = false, ...props }, ref) => {
591
- const Comp = asChild ? React10.Fragment : href ? "a" : "span";
607
+ const Comp = asChild ? React24.Fragment : href ? "a" : "span";
592
608
  const itemProps = asChild ? {} : href ? { href } : {};
593
609
  return /* @__PURE__ */ jsx(
594
610
  "li",
@@ -645,7 +661,7 @@ var BreadcrumbEllipsis = ({
645
661
  }
646
662
  );
647
663
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
648
- var BreadcrumbLink = React10.forwardRef(
664
+ var BreadcrumbLink = React24.forwardRef(
649
665
  ({ className, href, ...props }, ref) => /* @__PURE__ */ jsx(
650
666
  "a",
651
667
  {
@@ -660,7 +676,7 @@ var BreadcrumbLink = React10.forwardRef(
660
676
  )
661
677
  );
662
678
  BreadcrumbLink.displayName = "BreadcrumbLink";
663
- var BreadcrumbPage = React10.forwardRef(
679
+ var BreadcrumbPage = React24.forwardRef(
664
680
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
665
681
  "span",
666
682
  {
@@ -823,7 +839,7 @@ var buttonVariants = cva(
823
839
  }
824
840
  }
825
841
  );
826
- var Button = React10.forwardRef(
842
+ var Button = React24.forwardRef(
827
843
  ({
828
844
  className,
829
845
  variant,
@@ -845,6 +861,7 @@ var Button = React10.forwardRef(
845
861
  className: cn("moonui-theme", buttonVariants({ variant, size, rounded, fullWidth, className })),
846
862
  ref,
847
863
  disabled: disabled || loading,
864
+ "aria-busy": loading || void 0,
848
865
  "data-loading": loading ? "" : void 0,
849
866
  ...props,
850
867
  children: [
@@ -1037,7 +1054,7 @@ var cardVariants = cva(
1037
1054
  }
1038
1055
  }
1039
1056
  );
1040
- var Card = React10.forwardRef(
1057
+ var Card = React24.forwardRef(
1041
1058
  ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
1042
1059
  if (interactive && microInteraction !== "none") {
1043
1060
  const interactionProps = {
@@ -1065,7 +1082,7 @@ var Card = React10.forwardRef(
1065
1082
  }
1066
1083
  );
1067
1084
  Card.displayName = "Card";
1068
- var CardHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1085
+ var CardHeader = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1069
1086
  "div",
1070
1087
  {
1071
1088
  ref,
@@ -1074,7 +1091,7 @@ var CardHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
1074
1091
  }
1075
1092
  ));
1076
1093
  CardHeader.displayName = "CardHeader";
1077
- var CardTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1094
+ var CardTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1078
1095
  "h3",
1079
1096
  {
1080
1097
  ref,
@@ -1083,7 +1100,7 @@ var CardTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1083
1100
  }
1084
1101
  ));
1085
1102
  CardTitle.displayName = "CardTitle";
1086
- var CardDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1103
+ var CardDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1087
1104
  "p",
1088
1105
  {
1089
1106
  ref,
@@ -1092,9 +1109,9 @@ var CardDescription = React10.forwardRef(({ className, ...props }, ref) => /* @_
1092
1109
  }
1093
1110
  ));
1094
1111
  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 }));
1112
+ var CardContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1096
1113
  CardContent.displayName = "CardContent";
1097
- var CardFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1114
+ var CardFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1098
1115
  "div",
1099
1116
  {
1100
1117
  ref,
@@ -1115,7 +1132,7 @@ function Calendar({
1115
1132
  defaultMonth,
1116
1133
  ...props
1117
1134
  }) {
1118
- const [currentMonth, setCurrentMonth] = React10.useState(
1135
+ const [currentMonth, setCurrentMonth] = React24.useState(
1119
1136
  defaultMonth || selected && selected || /* @__PURE__ */ new Date()
1120
1137
  );
1121
1138
  const weekDays = [
@@ -1329,9 +1346,9 @@ var formatCardNumber = (value, cardType) => {
1329
1346
  }
1330
1347
  return formatted;
1331
1348
  };
1332
- var CardNumberInput = React10.forwardRef(
1349
+ var CardNumberInput = React24.forwardRef(
1333
1350
  ({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
1334
- const [cardType, setCardType] = React10.useState("unknown");
1351
+ const [cardType, setCardType] = React24.useState("unknown");
1335
1352
  const handleChange = (e) => {
1336
1353
  const rawValue = e.target.value.replace(/\D/g, "");
1337
1354
  const detectedType = getCardType(rawValue);
@@ -1362,7 +1379,7 @@ var CardNumberInput = React10.forwardRef(
1362
1379
  }
1363
1380
  );
1364
1381
  CardNumberInput.displayName = "CardNumberInput";
1365
- var CardExpiryInput = React10.forwardRef(
1382
+ var CardExpiryInput = React24.forwardRef(
1366
1383
  ({ className, value = "", onChange, size, ...props }, ref) => {
1367
1384
  const handleChange = (e) => {
1368
1385
  let rawValue = e.target.value.replace(/\D/g, "");
@@ -1400,7 +1417,7 @@ var CardExpiryInput = React10.forwardRef(
1400
1417
  }
1401
1418
  );
1402
1419
  CardExpiryInput.displayName = "CardExpiryInput";
1403
- var CardCVCInput = React10.forwardRef(
1420
+ var CardCVCInput = React24.forwardRef(
1404
1421
  ({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
1405
1422
  const maxLength = cardType === "amex" ? 4 : 3;
1406
1423
  const handleChange = (e) => {
@@ -1425,7 +1442,7 @@ var CardCVCInput = React10.forwardRef(
1425
1442
  }
1426
1443
  );
1427
1444
  CardCVCInput.displayName = "CardCVCInput";
1428
- var CardZipInput = React10.forwardRef(
1445
+ var CardZipInput = React24.forwardRef(
1429
1446
  ({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
1430
1447
  const handleChange = (e) => {
1431
1448
  let rawValue = e.target.value;
@@ -1476,15 +1493,15 @@ var CardZipInput = React10.forwardRef(
1476
1493
  }
1477
1494
  );
1478
1495
  CardZipInput.displayName = "CardZipInput";
1479
- var CarouselContext = React10.createContext(null);
1496
+ var CarouselContext = React24.createContext(null);
1480
1497
  function useCarousel() {
1481
- const context = React10.useContext(CarouselContext);
1498
+ const context = React24.useContext(CarouselContext);
1482
1499
  if (!context) {
1483
1500
  throw new Error("useCarousel must be used within a <Carousel />");
1484
1501
  }
1485
1502
  return context;
1486
1503
  }
1487
- var Carousel = React10.forwardRef(
1504
+ var Carousel = React24.forwardRef(
1488
1505
  ({
1489
1506
  orientation = "horizontal",
1490
1507
  opts,
@@ -1502,21 +1519,21 @@ var Carousel = React10.forwardRef(
1502
1519
  },
1503
1520
  plugins
1504
1521
  );
1505
- const [canScrollPrev, setCanScrollPrev] = React10.useState(false);
1506
- const [canScrollNext, setCanScrollNext] = React10.useState(false);
1507
- const onSelect = React10.useCallback((emblaApi) => {
1522
+ const [canScrollPrev, setCanScrollPrev] = React24.useState(false);
1523
+ const [canScrollNext, setCanScrollNext] = React24.useState(false);
1524
+ const onSelect = React24.useCallback((emblaApi) => {
1508
1525
  if (!emblaApi)
1509
1526
  return;
1510
1527
  setCanScrollPrev(emblaApi.canScrollPrev());
1511
1528
  setCanScrollNext(emblaApi.canScrollNext());
1512
1529
  }, []);
1513
- const scrollPrev = React10.useCallback(() => {
1530
+ const scrollPrev = React24.useCallback(() => {
1514
1531
  api?.scrollPrev();
1515
1532
  }, [api]);
1516
- const scrollNext = React10.useCallback(() => {
1533
+ const scrollNext = React24.useCallback(() => {
1517
1534
  api?.scrollNext();
1518
1535
  }, [api]);
1519
- const handleKeyDown = React10.useCallback(
1536
+ const handleKeyDown = React24.useCallback(
1520
1537
  (event) => {
1521
1538
  const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
1522
1539
  const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
@@ -1530,12 +1547,12 @@ var Carousel = React10.forwardRef(
1530
1547
  },
1531
1548
  [resolvedOrientation, scrollPrev, scrollNext]
1532
1549
  );
1533
- React10.useEffect(() => {
1550
+ React24.useEffect(() => {
1534
1551
  if (!api || !setApi)
1535
1552
  return;
1536
1553
  setApi(api);
1537
1554
  }, [api, setApi]);
1538
- React10.useEffect(() => {
1555
+ React24.useEffect(() => {
1539
1556
  if (!api)
1540
1557
  return;
1541
1558
  onSelect(api);
@@ -1587,7 +1604,7 @@ var carouselContentVariants = cva("flex", {
1587
1604
  orientation: "horizontal"
1588
1605
  }
1589
1606
  });
1590
- var CarouselContent = React10.forwardRef(
1607
+ var CarouselContent = React24.forwardRef(
1591
1608
  ({ className, ...props }, ref) => {
1592
1609
  const { carouselRef, orientation } = useCarousel();
1593
1610
  return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
@@ -1612,7 +1629,7 @@ var carouselItemVariants = cva("min-w-0 shrink-0 grow-0 basis-full", {
1612
1629
  orientation: "horizontal"
1613
1630
  }
1614
1631
  });
1615
- var CarouselItem = React10.forwardRef(
1632
+ var CarouselItem = React24.forwardRef(
1616
1633
  ({ className, ...props }, ref) => {
1617
1634
  const { orientation } = useCarousel();
1618
1635
  return /* @__PURE__ */ jsx(
@@ -1628,7 +1645,7 @@ var CarouselItem = React10.forwardRef(
1628
1645
  }
1629
1646
  );
1630
1647
  CarouselItem.displayName = "CarouselItem";
1631
- var CarouselPrevious = React10.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1648
+ var CarouselPrevious = React24.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1632
1649
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
1633
1650
  return /* @__PURE__ */ jsxs(
1634
1651
  Button,
@@ -1653,7 +1670,7 @@ var CarouselPrevious = React10.forwardRef(({ className, variant = "outline", siz
1653
1670
  );
1654
1671
  });
1655
1672
  CarouselPrevious.displayName = "CarouselPrevious";
1656
- var CarouselNext = React10.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1673
+ var CarouselNext = React24.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1657
1674
  const { orientation, scrollNext, canScrollNext } = useCarousel();
1658
1675
  return /* @__PURE__ */ jsxs(
1659
1676
  Button,
@@ -1716,7 +1733,7 @@ var checkboxVariants = cva(
1716
1733
  }
1717
1734
  }
1718
1735
  );
1719
- var Checkbox = React10.forwardRef(({
1736
+ var Checkbox = React24.forwardRef(({
1720
1737
  className,
1721
1738
  variant,
1722
1739
  size,
@@ -1749,7 +1766,7 @@ var Checkbox = React10.forwardRef(({
1749
1766
  );
1750
1767
  });
1751
1768
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1752
- var CheckboxGroup = React10.forwardRef(
1769
+ var CheckboxGroup = React24.forwardRef(
1753
1770
  ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
1754
1771
  return /* @__PURE__ */ jsx(
1755
1772
  "div",
@@ -1769,7 +1786,7 @@ var CheckboxGroup = React10.forwardRef(
1769
1786
  }
1770
1787
  );
1771
1788
  CheckboxGroup.displayName = "CheckboxGroup";
1772
- var CheckboxLabel = React10.forwardRef(
1789
+ var CheckboxLabel = React24.forwardRef(
1773
1790
  ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
1774
1791
  return /* @__PURE__ */ jsx(
1775
1792
  "label",
@@ -1789,14 +1806,14 @@ var CheckboxLabel = React10.forwardRef(
1789
1806
  }
1790
1807
  );
1791
1808
  CheckboxLabel.displayName = "CheckboxLabel";
1792
- var CheckboxWithLabel = React10.forwardRef(({
1809
+ var CheckboxWithLabel = React24.forwardRef(({
1793
1810
  id,
1794
1811
  label,
1795
1812
  labelPosition = "end",
1796
1813
  labelClassName,
1797
1814
  ...checkboxProps
1798
1815
  }, ref) => {
1799
- const generatedId = React10.useId();
1816
+ const generatedId = React24.useId();
1800
1817
  const checkboxId = id || generatedId;
1801
1818
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
1802
1819
  labelPosition === "start" && /* @__PURE__ */ jsx(
@@ -1846,7 +1863,7 @@ var collapsibleTriggerVariants = cva(
1846
1863
  }
1847
1864
  }
1848
1865
  );
1849
- var CollapsibleTrigger = React10.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1866
+ var CollapsibleTrigger = React24.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1850
1867
  if (asChild) {
1851
1868
  return /* @__PURE__ */ jsx(
1852
1869
  CollapsiblePrimitive.Trigger,
@@ -1895,7 +1912,7 @@ var collapsibleContentVariants = cva(
1895
1912
  }
1896
1913
  }
1897
1914
  );
1898
- var CollapsibleContent = React10.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1915
+ var CollapsibleContent = React24.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1899
1916
  CollapsiblePrimitive.Content,
1900
1917
  {
1901
1918
  ref,
@@ -1978,7 +1995,7 @@ var inputVariants = cva(
1978
1995
  }
1979
1996
  }
1980
1997
  );
1981
- var Input = React10.forwardRef(
1998
+ var Input = React24.forwardRef(
1982
1999
  ({
1983
2000
  className,
1984
2001
  wrapperClassName,
@@ -2005,8 +2022,10 @@ var Input = React10.forwardRef(
2005
2022
  placeholder,
2006
2023
  ...props
2007
2024
  }, ref) => {
2008
- const [isFocused, setIsFocused] = React10.useState(false);
2009
- const [internalValue, setInternalValue] = React10.useState(value || defaultValue || "");
2025
+ const reactId = React24.useId();
2026
+ const fieldId = props.id || reactId;
2027
+ const [isFocused, setIsFocused] = React24.useState(false);
2028
+ const [internalValue, setInternalValue] = React24.useState(value || defaultValue || "");
2010
2029
  const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
2011
2030
  const isLabelActive = isFocused || hasValue;
2012
2031
  const handleFocus = (e) => {
@@ -2021,7 +2040,7 @@ var Input = React10.forwardRef(
2021
2040
  setInternalValue(e.target.value);
2022
2041
  onChange?.(e);
2023
2042
  };
2024
- React10.useEffect(() => {
2043
+ React24.useEffect(() => {
2025
2044
  if (value !== void 0) {
2026
2045
  setInternalValue(value);
2027
2046
  }
@@ -2070,7 +2089,7 @@ var Input = React10.forwardRef(
2070
2089
  "data-error": !!error ? "" : void 0,
2071
2090
  "data-success": !!success ? "" : void 0,
2072
2091
  "aria-invalid": !!error || !!isError || void 0,
2073
- "aria-describedby": error ? `${props.id || ""}-error` : success ? `${props.id || ""}-success` : void 0,
2092
+ "aria-describedby": error ? `${fieldId}-error` : success ? `${fieldId}-success` : void 0,
2074
2093
  value,
2075
2094
  defaultValue,
2076
2095
  onChange: handleChange,
@@ -2094,7 +2113,7 @@ var Input = React10.forwardRef(
2094
2113
  messageType === "normal" && "text-muted-foreground",
2095
2114
  messageClassName
2096
2115
  ),
2097
- id: error ? `${props.id || ""}-error` : success ? `${props.id || ""}-success` : void 0,
2116
+ id: error ? `${fieldId}-error` : success ? `${fieldId}-success` : void 0,
2098
2117
  children: error || success || ""
2099
2118
  }
2100
2119
  )
@@ -2103,9 +2122,9 @@ var Input = React10.forwardRef(
2103
2122
  );
2104
2123
  Input.displayName = "Input";
2105
2124
  var labelVariants = cva(
2106
- "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"
2125
+ "text-sm font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:peer-disabled:opacity-60 transition-colors duration-200"
2107
2126
  );
2108
- var Label = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2127
+ var Label = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2109
2128
  LabelPrimitive.Root,
2110
2129
  {
2111
2130
  ref,
@@ -2166,7 +2185,7 @@ var popoverContentVariants = cva(
2166
2185
  var Popover = PopoverPrimitive.Root;
2167
2186
  var PopoverTrigger = PopoverPrimitive.Trigger;
2168
2187
  var PopoverAnchor = PopoverPrimitive.Anchor;
2169
- var PopoverContent = React10.forwardRef(({
2188
+ var PopoverContent = React24.forwardRef(({
2170
2189
  className,
2171
2190
  variant,
2172
2191
  size,
@@ -2234,7 +2253,7 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
2234
2253
  }
2235
2254
  );
2236
2255
  PopoverFooter.displayName = "PopoverFooter";
2237
- var Tabs = React10.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
2256
+ var Tabs = React24.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
2238
2257
  TabsPrimitive.Root,
2239
2258
  {
2240
2259
  ref,
@@ -2275,7 +2294,7 @@ var tabsListVariants = cva(
2275
2294
  }
2276
2295
  }
2277
2296
  );
2278
- var TabsList = React10.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2297
+ var TabsList = React24.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2279
2298
  return /* @__PURE__ */ jsx(
2280
2299
  TabsPrimitive.List,
2281
2300
  {
@@ -2318,7 +2337,7 @@ var tabsTriggerVariants = cva(
2318
2337
  }
2319
2338
  }
2320
2339
  );
2321
- var TabsTrigger = React10.forwardRef(({
2340
+ var TabsTrigger = React24.forwardRef(({
2322
2341
  className,
2323
2342
  variant,
2324
2343
  size,
@@ -2350,7 +2369,7 @@ var TabsTrigger = React10.forwardRef(({
2350
2369
  }
2351
2370
  ));
2352
2371
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
2353
- var TabsContent = React10.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2372
+ var TabsContent = React24.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2354
2373
  TabsPrimitive.Content,
2355
2374
  {
2356
2375
  ref,
@@ -2444,7 +2463,7 @@ var sliderThumbVariants = cva(
2444
2463
  }
2445
2464
  }
2446
2465
  );
2447
- var Slider = React10.forwardRef(({
2466
+ var Slider = React24.forwardRef(({
2448
2467
  className,
2449
2468
  size,
2450
2469
  trackVariant,
@@ -2460,10 +2479,10 @@ var Slider = React10.forwardRef(({
2460
2479
  disabled,
2461
2480
  ...props
2462
2481
  }, ref) => {
2463
- const [sliderValue, setSliderValue] = React10.useState(
2482
+ const [sliderValue, setSliderValue] = React24.useState(
2464
2483
  value || defaultValue || [0]
2465
2484
  );
2466
- React10.useEffect(() => {
2485
+ React24.useEffect(() => {
2467
2486
  if (value !== void 0) {
2468
2487
  setSliderValue(value);
2469
2488
  }
@@ -2478,7 +2497,7 @@ var Slider = React10.forwardRef(({
2478
2497
  const calculateThumbPercent = (value2, min2, max2) => {
2479
2498
  return (value2 - min2) / (max2 - min2) * 100;
2480
2499
  };
2481
- const trackRef = React10.useRef(null);
2500
+ const trackRef = React24.useRef(null);
2482
2501
  const min = props.min || 0;
2483
2502
  const max = props.max || 100;
2484
2503
  const step = props.step || 1;
@@ -2790,14 +2809,14 @@ function ColorPicker({
2790
2809
  disabled,
2791
2810
  ...props
2792
2811
  }) {
2793
- const [open, setOpen] = React10.useState(false);
2794
- const [color, setColor] = React10.useState(value);
2795
- const [opacity, setOpacity] = React10.useState(100);
2796
- const [copied, setCopied] = React10.useState(false);
2797
- const [inputValue, setInputValue] = React10.useState(value);
2798
- const hsl = React10.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2799
- const rgb = React10.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2800
- React10.useEffect(() => {
2812
+ const [open, setOpen] = React24.useState(false);
2813
+ const [color, setColor] = React24.useState(value);
2814
+ const [opacity, setOpacity] = React24.useState(100);
2815
+ const [copied, setCopied] = React24.useState(false);
2816
+ const [inputValue, setInputValue] = React24.useState(value);
2817
+ const hsl = React24.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2818
+ const rgb = React24.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2819
+ React24.useEffect(() => {
2801
2820
  setColor(value);
2802
2821
  setInputValue(value);
2803
2822
  }, [value]);
@@ -3192,7 +3211,7 @@ function GradientPicker({
3192
3211
  onChange,
3193
3212
  className
3194
3213
  }) {
3195
- const [gradient, setGradient] = React10.useState(value);
3214
+ const [gradient, setGradient] = React24.useState(value);
3196
3215
  const handleChange = (field, newValue) => {
3197
3216
  const newGradient = { ...gradient, [field]: newValue };
3198
3217
  setGradient(newGradient);
@@ -3278,7 +3297,7 @@ var overlayVariants = cva(
3278
3297
  }
3279
3298
  }
3280
3299
  );
3281
- var DialogOverlay = React10.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3300
+ var DialogOverlay = React24.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3282
3301
  DialogPrimitive.Overlay,
3283
3302
  {
3284
3303
  ref,
@@ -3337,7 +3356,7 @@ var dialogContentVariants = cva(
3337
3356
  }
3338
3357
  }
3339
3358
  );
3340
- var DialogContent = React10.forwardRef(
3359
+ var DialogContent = React24.forwardRef(
3341
3360
  ({
3342
3361
  className,
3343
3362
  children,
@@ -3450,7 +3469,7 @@ var DialogFooter = ({
3450
3469
  }
3451
3470
  );
3452
3471
  DialogFooter.displayName = "DialogFooter";
3453
- var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3472
+ var DialogTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3454
3473
  DialogPrimitive.Title,
3455
3474
  {
3456
3475
  ref,
@@ -3462,7 +3481,7 @@ var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
3462
3481
  }
3463
3482
  ));
3464
3483
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
3465
- var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3484
+ var DialogDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3466
3485
  DialogPrimitive.Description,
3467
3486
  {
3468
3487
  ref,
@@ -3474,7 +3493,7 @@ var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /*
3474
3493
  }
3475
3494
  ));
3476
3495
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
3477
- var DialogForm = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3496
+ var DialogForm = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3478
3497
  "form",
3479
3498
  {
3480
3499
  ref,
@@ -3504,7 +3523,7 @@ var commandVariants = cva(
3504
3523
  }
3505
3524
  }
3506
3525
  );
3507
- var Command = React10.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3526
+ var Command = React24.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3508
3527
  Command$1,
3509
3528
  {
3510
3529
  ref,
@@ -3526,7 +3545,7 @@ var CommandDialog = ({
3526
3545
  ), children })
3527
3546
  ] }) });
3528
3547
  };
3529
- var CommandInput = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3548
+ var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3530
3549
  /* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
3531
3550
  /* @__PURE__ */ jsx(
3532
3551
  Command$1.Input,
@@ -3541,7 +3560,7 @@ var CommandInput = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
3541
3560
  )
3542
3561
  ] }));
3543
3562
  CommandInput.displayName = Command$1.Input.displayName;
3544
- var CommandList = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3563
+ var CommandList = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3545
3564
  Command$1.List,
3546
3565
  {
3547
3566
  ref,
@@ -3550,7 +3569,7 @@ var CommandList = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
3550
3569
  }
3551
3570
  ));
3552
3571
  CommandList.displayName = Command$1.List.displayName;
3553
- var CommandEmpty = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3572
+ var CommandEmpty = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3554
3573
  Command$1.Empty,
3555
3574
  {
3556
3575
  ref,
@@ -3559,7 +3578,7 @@ var CommandEmpty = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
3559
3578
  }
3560
3579
  ));
3561
3580
  CommandEmpty.displayName = Command$1.Empty.displayName;
3562
- var CommandGroup = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3581
+ var CommandGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3563
3582
  Command$1.Group,
3564
3583
  {
3565
3584
  ref,
@@ -3571,7 +3590,7 @@ var CommandGroup = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
3571
3590
  }
3572
3591
  ));
3573
3592
  CommandGroup.displayName = Command$1.Group.displayName;
3574
- var CommandSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3593
+ var CommandSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3575
3594
  Command$1.Separator,
3576
3595
  {
3577
3596
  ref,
@@ -3580,7 +3599,7 @@ var CommandSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @
3580
3599
  }
3581
3600
  ));
3582
3601
  CommandSeparator.displayName = Command$1.Separator.displayName;
3583
- var CommandItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3602
+ var CommandItem = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3584
3603
  Command$1.Item,
3585
3604
  {
3586
3605
  ref,
@@ -3631,7 +3650,7 @@ var tableVariants = cva(
3631
3650
  }
3632
3651
  }
3633
3652
  );
3634
- var Table = React10.forwardRef(({
3653
+ var Table = React24.forwardRef(({
3635
3654
  className,
3636
3655
  variant,
3637
3656
  size,
@@ -3648,11 +3667,11 @@ var Table = React10.forwardRef(({
3648
3667
  ...props
3649
3668
  }, ref) => {
3650
3669
  const striped = variant === "striped";
3651
- const childrenWithProps = React10.Children.map(props.children, (child) => {
3652
- if (React10.isValidElement(child)) {
3670
+ const childrenWithProps = React24.Children.map(props.children, (child) => {
3671
+ if (React24.isValidElement(child)) {
3653
3672
  if (child.type === "tbody") {
3654
3673
  const tbodyProps = child.props;
3655
- return React10.cloneElement(child, {
3674
+ return React24.cloneElement(child, {
3656
3675
  className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
3657
3676
  });
3658
3677
  }
@@ -3677,10 +3696,10 @@ var Table = React10.forwardRef(({
3677
3696
  ] });
3678
3697
  });
3679
3698
  Table.displayName = "Table";
3680
- var TableHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3699
+ var TableHeader = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3681
3700
  TableHeader.displayName = "TableHeader";
3682
- var TableBody = React10.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3683
- const hasChildren = React10.Children.count(children) > 0;
3701
+ var TableBody = React24.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3702
+ const hasChildren = React24.Children.count(children) > 0;
3684
3703
  return /* @__PURE__ */ jsx(
3685
3704
  "tbody",
3686
3705
  {
@@ -3692,7 +3711,7 @@ var TableBody = React10.forwardRef(({ className, emptyContent, emptyMessage = "N
3692
3711
  );
3693
3712
  });
3694
3713
  TableBody.displayName = "TableBody";
3695
- var TableFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3714
+ var TableFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3696
3715
  "tfoot",
3697
3716
  {
3698
3717
  ref,
@@ -3701,7 +3720,7 @@ var TableFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
3701
3720
  }
3702
3721
  ));
3703
3722
  TableFooter.displayName = "TableFooter";
3704
- var TableRow = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3723
+ var TableRow = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3705
3724
  "tr",
3706
3725
  {
3707
3726
  ref,
@@ -3713,7 +3732,7 @@ var TableRow = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3713
3732
  }
3714
3733
  ));
3715
3734
  TableRow.displayName = "TableRow";
3716
- var TableHead = React10.forwardRef(
3735
+ var TableHead = React24.forwardRef(
3717
3736
  ({ className, sortable, sorted, onSort, align = "left", children, ...props }, ref) => {
3718
3737
  const renderSortIcon = () => {
3719
3738
  if (!sortable)
@@ -3801,7 +3820,7 @@ var TableHead = React10.forwardRef(
3801
3820
  }
3802
3821
  );
3803
3822
  TableHead.displayName = "TableHead";
3804
- var TableCell = React10.forwardRef(({ className, align = "left", ...props }, ref) => {
3823
+ var TableCell = React24.forwardRef(({ className, align = "left", ...props }, ref) => {
3805
3824
  const alignmentClass = {
3806
3825
  left: "text-left",
3807
3826
  center: "text-center",
@@ -3817,7 +3836,7 @@ var TableCell = React10.forwardRef(({ className, align = "left", ...props }, ref
3817
3836
  );
3818
3837
  });
3819
3838
  TableCell.displayName = "TableCell";
3820
- var TableCaption = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3839
+ var TableCaption = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3821
3840
  "caption",
3822
3841
  {
3823
3842
  ref,
@@ -3837,8 +3856,8 @@ function DataTableBasic({
3837
3856
  emptyMessage = "No results found.",
3838
3857
  className
3839
3858
  }) {
3840
- const [sorting, setSorting] = React10.useState([]);
3841
- const [globalFilter, setGlobalFilter] = React10.useState("");
3859
+ const [sorting, setSorting] = React24.useState([]);
3860
+ const [globalFilter, setGlobalFilter] = React24.useState("");
3842
3861
  const table = useReactTable({
3843
3862
  data,
3844
3863
  columns,
@@ -4001,7 +4020,7 @@ var datePickerVariants = cva(
4001
4020
  }
4002
4021
  }
4003
4022
  );
4004
- function DatePicker({
4023
+ var DatePicker = React24.forwardRef(function DatePicker2({
4005
4024
  className,
4006
4025
  variant,
4007
4026
  size,
@@ -4023,10 +4042,10 @@ function DatePicker({
4023
4042
  calendarProps,
4024
4043
  disabled,
4025
4044
  ...props
4026
- }) {
4027
- const [open, setOpen] = React10.useState(false);
4028
- const [internalDate, setInternalDate] = React10.useState(value);
4029
- React10.useEffect(() => {
4045
+ }, ref) {
4046
+ const [open, setOpen] = React24.useState(false);
4047
+ const [internalDate, setInternalDate] = React24.useState(value);
4048
+ React24.useEffect(() => {
4030
4049
  setInternalDate(value);
4031
4050
  }, [value]);
4032
4051
  const handleSelect = (date) => {
@@ -4058,7 +4077,7 @@ function DatePicker({
4058
4077
  };
4059
4078
  const displayValue = internalDate && isValid(internalDate) ? format(internalDate, formatString) : null;
4060
4079
  const iconElement = icon || /* @__PURE__ */ jsx(Calendar$1, { className: "h-4 w-4" });
4061
- return /* @__PURE__ */ jsx("div", { className: "moonui-theme", children: /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
4080
+ return /* @__PURE__ */ jsx("div", { ref, className: "moonui-theme", children: /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
4062
4081
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
4063
4082
  Button,
4064
4083
  {
@@ -4135,7 +4154,7 @@ function DatePicker({
4135
4154
  /* @__PURE__ */ jsx(
4136
4155
  PopoverContent,
4137
4156
  {
4138
- className: "w-[360px] p-0 shadow-2xl rounded-2xl border border-gray-200 dark:border-gray-700 bg-background/95 backdrop-blur-sm !z-[9999]",
4157
+ className: "w-[360px] p-0 shadow-2xl rounded-2xl border border-border bg-background/95 backdrop-blur-sm !z-[9999]",
4139
4158
  align: "start",
4140
4159
  sideOffset: 12,
4141
4160
  children: /* @__PURE__ */ jsxs(
@@ -4172,8 +4191,9 @@ function DatePicker({
4172
4191
  }
4173
4192
  )
4174
4193
  ] }) });
4175
- }
4176
- function DateRangePicker({
4194
+ });
4195
+ DatePicker.displayName = "DatePicker";
4196
+ var DateRangePicker = React24.forwardRef(function DateRangePicker2({
4177
4197
  className,
4178
4198
  value,
4179
4199
  onChange,
@@ -4181,10 +4201,10 @@ function DateRangePicker({
4181
4201
  formatString = "LLL dd, y",
4182
4202
  separator = " - ",
4183
4203
  ...props
4184
- }) {
4185
- const [open, setOpen] = React10.useState(false);
4186
- const [internalRange, setInternalRange] = React10.useState(value);
4187
- React10.useEffect(() => {
4204
+ }, ref) {
4205
+ const [open, setOpen] = React24.useState(false);
4206
+ const [internalRange, setInternalRange] = React24.useState(value);
4207
+ React24.useEffect(() => {
4188
4208
  setInternalRange(value);
4189
4209
  }, [value]);
4190
4210
  const handleSelect = (range) => {
@@ -4194,7 +4214,7 @@ function DateRangePicker({
4194
4214
  setOpen(false);
4195
4215
  }
4196
4216
  };
4197
- const displayValue = React10.useMemo(() => {
4217
+ const displayValue = React24.useMemo(() => {
4198
4218
  if (!internalRange?.from)
4199
4219
  return null;
4200
4220
  if (!internalRange?.to) {
@@ -4209,6 +4229,7 @@ function DateRangePicker({
4209
4229
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
4210
4230
  Button,
4211
4231
  {
4232
+ ref,
4212
4233
  variant: props.variant === "ghost" ? "ghost" : "outline",
4213
4234
  className: cn(
4214
4235
  datePickerVariants({
@@ -4226,7 +4247,7 @@ function DateRangePicker({
4226
4247
  ]
4227
4248
  }
4228
4249
  ) }),
4229
- /* @__PURE__ */ jsx(PopoverContent, { className: "w-auto p-0 shadow-2xl rounded-2xl border border-gray-200 dark:border-gray-700 bg-background/95 backdrop-blur-sm !z-[9999]", align: "start", sideOffset: 12, children: /* @__PURE__ */ jsx(
4250
+ /* @__PURE__ */ jsx(PopoverContent, { className: "w-auto p-0 shadow-2xl rounded-2xl border border-border bg-background/95 backdrop-blur-sm !z-[9999]", align: "start", sideOffset: 12, children: /* @__PURE__ */ jsx(
4230
4251
  Calendar,
4231
4252
  {
4232
4253
  mode: "range",
@@ -4239,8 +4260,9 @@ function DateRangePicker({
4239
4260
  }
4240
4261
  ) })
4241
4262
  ] });
4242
- }
4243
- function DateTimePicker({
4263
+ });
4264
+ DateRangePicker.displayName = "DateRangePicker";
4265
+ var DateTimePicker = React24.forwardRef(function DateTimePicker2({
4244
4266
  value,
4245
4267
  onChange,
4246
4268
  formatString = "PPP p",
@@ -4248,9 +4270,9 @@ function DateTimePicker({
4248
4270
  timeFormat = "24",
4249
4271
  timeInterval = 15,
4250
4272
  ...props
4251
- }) {
4252
- const [date, setDate] = React10.useState(value);
4253
- const [time, setTime] = React10.useState(
4273
+ }, ref) {
4274
+ const [date, setDate] = React24.useState(value);
4275
+ const [time, setTime] = React24.useState(
4254
4276
  value ? format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
4255
4277
  );
4256
4278
  const handleDateChange = (newDate) => {
@@ -4275,7 +4297,7 @@ function DateTimePicker({
4275
4297
  onChange?.(newDate);
4276
4298
  }
4277
4299
  };
4278
- const timeOptions = React10.useMemo(() => {
4300
+ const timeOptions = React24.useMemo(() => {
4279
4301
  const options = [];
4280
4302
  for (let h = 0; h < 24; h++) {
4281
4303
  for (let m = 0; m < 60; m += timeInterval) {
@@ -4294,7 +4316,7 @@ function DateTimePicker({
4294
4316
  }
4295
4317
  return options;
4296
4318
  }, [timeFormat, timeInterval]);
4297
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
4319
+ return /* @__PURE__ */ jsxs("div", { ref, className: "flex flex-col gap-2", children: [
4298
4320
  /* @__PURE__ */ jsx(
4299
4321
  DatePicker,
4300
4322
  {
@@ -4327,16 +4349,17 @@ function DateTimePicker({
4327
4349
  }
4328
4350
  )
4329
4351
  ] });
4330
- }
4331
- function MonthPicker({
4352
+ });
4353
+ DateTimePicker.displayName = "DateTimePicker";
4354
+ var MonthPicker = React24.forwardRef(function MonthPicker2({
4332
4355
  value,
4333
4356
  onChange,
4334
4357
  placeholder = "Pick a month",
4335
4358
  formatString = "MMMM yyyy",
4336
4359
  ...props
4337
- }) {
4338
- const [open, setOpen] = React10.useState(false);
4339
- const [viewDate, setViewDate] = React10.useState(value || /* @__PURE__ */ new Date());
4360
+ }, ref) {
4361
+ const [open, setOpen] = React24.useState(false);
4362
+ const [viewDate, setViewDate] = React24.useState(value || /* @__PURE__ */ new Date());
4340
4363
  const months = [
4341
4364
  "January",
4342
4365
  "February",
@@ -4367,6 +4390,7 @@ function MonthPicker({
4367
4390
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
4368
4391
  Button,
4369
4392
  {
4393
+ ref,
4370
4394
  variant: props.variant === "default" ? "outline" : props.variant || "outline",
4371
4395
  className: cn(
4372
4396
  datePickerVariants({
@@ -4384,13 +4408,14 @@ function MonthPicker({
4384
4408
  ]
4385
4409
  }
4386
4410
  ) }),
4387
- /* @__PURE__ */ jsx(PopoverContent, { className: "w-64 p-0 shadow-2xl border border-gray-200 dark:border-gray-700 bg-background !z-[9999]", align: "start", children: /* @__PURE__ */ jsxs("div", { className: "p-3", children: [
4411
+ /* @__PURE__ */ jsx(PopoverContent, { className: "w-64 p-0 shadow-2xl border border-border bg-background !z-[9999]", align: "start", children: /* @__PURE__ */ jsxs("div", { className: "p-3", children: [
4388
4412
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-3", children: [
4389
4413
  /* @__PURE__ */ jsx(
4390
4414
  Button,
4391
4415
  {
4392
4416
  variant: "outline",
4393
4417
  size: "icon",
4418
+ "aria-label": `Previous year, ${viewDate.getFullYear() - 1}`,
4394
4419
  onClick: () => handleYearChange(-1),
4395
4420
  children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" })
4396
4421
  }
@@ -4401,6 +4426,7 @@ function MonthPicker({
4401
4426
  {
4402
4427
  variant: "outline",
4403
4428
  size: "icon",
4429
+ "aria-label": `Next year, ${viewDate.getFullYear() + 1}`,
4404
4430
  onClick: () => handleYearChange(1),
4405
4431
  children: /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
4406
4432
  }
@@ -4419,7 +4445,8 @@ function MonthPicker({
4419
4445
  )) })
4420
4446
  ] }) })
4421
4447
  ] });
4422
- }
4448
+ });
4449
+ MonthPicker.displayName = "MonthPicker";
4423
4450
  function DraggableList({
4424
4451
  items,
4425
4452
  onReorder,
@@ -4428,7 +4455,7 @@ function DraggableList({
4428
4455
  className,
4429
4456
  disabled = false
4430
4457
  }) {
4431
- const [draggedIndex, setDraggedIndex] = React10.useState(null);
4458
+ const [draggedIndex, setDraggedIndex] = React24.useState(null);
4432
4459
  const handleDragStart = (e, index) => {
4433
4460
  if (disabled)
4434
4461
  return;
@@ -4480,7 +4507,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
4480
4507
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
4481
4508
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
4482
4509
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
4483
- var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4510
+ var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4484
4511
  DropdownMenuPrimitive.SubTrigger,
4485
4512
  {
4486
4513
  ref,
@@ -4497,7 +4524,7 @@ var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, .
4497
4524
  }
4498
4525
  ));
4499
4526
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
4500
- var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4527
+ var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4501
4528
  DropdownMenuPrimitive.SubContent,
4502
4529
  {
4503
4530
  ref,
@@ -4509,7 +4536,7 @@ var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) =
4509
4536
  }
4510
4537
  ));
4511
4538
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
4512
- var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4539
+ var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4513
4540
  DropdownMenuPrimitive.Content,
4514
4541
  {
4515
4542
  ref,
@@ -4522,7 +4549,7 @@ var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...pr
4522
4549
  }
4523
4550
  ) }));
4524
4551
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4525
- var DropdownMenuItem = React10.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4552
+ var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4526
4553
  DropdownMenuPrimitive.Item,
4527
4554
  {
4528
4555
  ref,
@@ -4535,7 +4562,7 @@ var DropdownMenuItem = React10.forwardRef(({ className, inset, ...props }, ref)
4535
4562
  }
4536
4563
  ));
4537
4564
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4538
- var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4565
+ var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4539
4566
  DropdownMenuPrimitive.CheckboxItem,
4540
4567
  {
4541
4568
  ref,
@@ -4552,7 +4579,7 @@ var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checke
4552
4579
  }
4553
4580
  ));
4554
4581
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
4555
- var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4582
+ var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4556
4583
  DropdownMenuPrimitive.RadioItem,
4557
4584
  {
4558
4585
  ref,
@@ -4568,7 +4595,7 @@ var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props
4568
4595
  }
4569
4596
  ));
4570
4597
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
4571
- var DropdownMenuLabel = React10.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4598
+ var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4572
4599
  DropdownMenuPrimitive.Label,
4573
4600
  {
4574
4601
  ref,
@@ -4581,7 +4608,7 @@ var DropdownMenuLabel = React10.forwardRef(({ className, inset, ...props }, ref)
4581
4608
  }
4582
4609
  ));
4583
4610
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4584
- var DropdownMenuSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4611
+ var DropdownMenuSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4585
4612
  DropdownMenuPrimitive.Separator,
4586
4613
  {
4587
4614
  ref,
@@ -4670,7 +4697,7 @@ var progressIndicatorVariants = cva(
4670
4697
  }
4671
4698
  }
4672
4699
  );
4673
- var Progress = React10.forwardRef(({
4700
+ var Progress = React24.forwardRef(({
4674
4701
  className,
4675
4702
  value = 0,
4676
4703
  variant,
@@ -4799,7 +4826,7 @@ var FileItem = ({
4799
4826
  }
4800
4827
  );
4801
4828
  };
4802
- var FileUpload = React10__default.forwardRef(
4829
+ var FileUpload = React24__default.forwardRef(
4803
4830
  ({
4804
4831
  accept = "*",
4805
4832
  multiple = true,
@@ -4959,6 +4986,7 @@ var FileUpload = React10__default.forwardRef(
4959
4986
  multiple,
4960
4987
  disabled,
4961
4988
  onChange: handleFileSelect,
4989
+ "aria-label": multiple ? "Choose files to upload" : "Choose a file to upload",
4962
4990
  className: "absolute inset-0 w-full h-full opacity-0 cursor-pointer"
4963
4991
  }
4964
4992
  ),
@@ -5021,7 +5049,7 @@ var FileUpload = React10__default.forwardRef(
5021
5049
  }
5022
5050
  );
5023
5051
  FileUpload.displayName = "FileUpload";
5024
- var GestureDrawer = React10__default.forwardRef(
5052
+ var GestureDrawer = React24__default.forwardRef(
5025
5053
  ({
5026
5054
  children,
5027
5055
  isOpen,
@@ -5292,10 +5320,11 @@ function GitHubStarButton({
5292
5320
  }
5293
5321
  );
5294
5322
  }
5295
- var InputOTP = React10.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5323
+ var InputOTP = React24.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5296
5324
  OTPInput,
5297
5325
  {
5298
5326
  ref,
5327
+ "aria-label": "One-time password",
5299
5328
  containerClassName: cn(
5300
5329
  "moonui-theme",
5301
5330
  "flex items-center gap-2 has-[:disabled]:opacity-50",
@@ -5306,7 +5335,7 @@ var InputOTP = React10.forwardRef(({ className, containerClassName, ...props },
5306
5335
  }
5307
5336
  ));
5308
5337
  InputOTP.displayName = "InputOTP";
5309
- var InputOTPGroup = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5338
+ var InputOTPGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5310
5339
  InputOTPGroup.displayName = "InputOTPGroup";
5311
5340
  var inputOTPSlotVariants = cva(
5312
5341
  [
@@ -5328,9 +5357,9 @@ var inputOTPSlotVariants = cva(
5328
5357
  }
5329
5358
  }
5330
5359
  );
5331
- var InputOTPSlot = React10.forwardRef(
5360
+ var InputOTPSlot = React24.forwardRef(
5332
5361
  ({ index, className, ...props }, ref) => {
5333
- const inputOTPContext = React10.useContext(OTPInputContext);
5362
+ const inputOTPContext = React24.useContext(OTPInputContext);
5334
5363
  const slot = inputOTPContext?.slots?.[index];
5335
5364
  const char = slot?.char;
5336
5365
  const hasFakeCaret = slot?.hasFakeCaret;
@@ -5352,7 +5381,7 @@ var InputOTPSlot = React10.forwardRef(
5352
5381
  }
5353
5382
  );
5354
5383
  InputOTPSlot.displayName = "InputOTPSlot";
5355
- var InputOTPSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5384
+ var InputOTPSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5356
5385
  "div",
5357
5386
  {
5358
5387
  ref,
@@ -5651,7 +5680,7 @@ function MoonLogo({
5651
5680
  showText = true,
5652
5681
  ...props
5653
5682
  }) {
5654
- const logoId = React10.useId();
5683
+ const logoId = React24.useId();
5655
5684
  const gradientId = `moon-gradient-${logoId}`;
5656
5685
  const maskId = `moon-mask-${logoId}`;
5657
5686
  return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", className), children: [
@@ -5733,7 +5762,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
5733
5762
  }
5734
5763
  );
5735
5764
  Pagination.displayName = "Pagination";
5736
- var PaginationContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5765
+ var PaginationContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5737
5766
  "ul",
5738
5767
  {
5739
5768
  ref,
@@ -5742,7 +5771,7 @@ var PaginationContent = React10.forwardRef(({ className, ...props }, ref) => /*
5742
5771
  }
5743
5772
  ));
5744
5773
  PaginationContent.displayName = "PaginationContent";
5745
- var PaginationItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5774
+ var PaginationItem = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5746
5775
  PaginationItem.displayName = "PaginationItem";
5747
5776
  var PaginationLink = ({
5748
5777
  className,
@@ -5818,41 +5847,62 @@ var Select = SelectPrimitive.Root;
5818
5847
  Select.displayName = "Select";
5819
5848
  var SelectGroup = SelectPrimitive.Group;
5820
5849
  var SelectValue = SelectPrimitive.Value;
5821
- var SelectTrigger = React10.forwardRef(({ className, children, variant = "standard", size = "md", error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
5850
+ var selectTriggerVariants = cva(
5851
+ [
5852
+ "flex w-full items-center justify-between gap-1 rounded-md transition-all duration-200",
5853
+ "disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
5854
+ "focus-visible:outline-none text-foreground"
5855
+ ],
5856
+ {
5857
+ variants: {
5858
+ variant: {
5859
+ standard: "border border-input bg-background hover:border-ring focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:border-primary",
5860
+ outline: "border border-input bg-transparent hover:border-ring focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:border-primary",
5861
+ ghost: "border-none bg-muted hover:bg-muted/80 focus-visible:ring-2 focus-visible:ring-primary/30",
5862
+ 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"
5863
+ },
5864
+ size: {
5865
+ sm: "h-8 text-xs px-2",
5866
+ md: "h-10 text-sm px-3",
5867
+ lg: "h-12 text-base px-4"
5868
+ },
5869
+ state: {
5870
+ none: "",
5871
+ error: "border-error focus-visible:ring-error/30 focus-visible:border-error",
5872
+ success: "border-success focus-visible:ring-success/30 focus-visible:border-success"
5873
+ }
5874
+ },
5875
+ defaultVariants: {
5876
+ variant: "standard",
5877
+ size: "md",
5878
+ state: "none"
5879
+ }
5880
+ }
5881
+ );
5882
+ var SelectTrigger = React24.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
5822
5883
  SelectPrimitive.Trigger,
5823
5884
  {
5824
5885
  ref,
5825
5886
  className: cn(
5826
- /* Base styles */
5827
- "flex w-full items-center justify-between gap-1 rounded-md transition-all duration-200",
5828
- "disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
5829
- "focus-visible:outline-none",
5830
- /* Error state */
5831
- error && "border-error focus-visible:ring-error/30 focus-visible:border-error",
5832
- /* Success state */
5833
- success && "border-success focus-visible:ring-success/30 focus-visible:border-success",
5834
- /* Size variants */
5835
- size === "sm" && "h-8 text-xs px-2",
5836
- size === "md" && "h-10 text-sm px-3",
5837
- size === "lg" && "h-12 text-base px-4",
5838
- /* Visual variants */
5839
- 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",
5840
- 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",
5841
- 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",
5842
- 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",
5887
+ selectTriggerVariants({
5888
+ variant,
5889
+ size,
5890
+ state: error ? "error" : success ? "success" : "none"
5891
+ }),
5843
5892
  className
5844
5893
  ),
5845
5894
  ...props,
5846
5895
  disabled: props.disabled || loading,
5896
+ "aria-invalid": error ? true : void 0,
5847
5897
  "data-error": error ? true : void 0,
5848
5898
  "data-success": success ? true : void 0,
5849
5899
  "data-loading": loading ? true : void 0,
5850
5900
  children: [
5851
5901
  /* @__PURE__ */ jsxs("div", { className: "flex items-center flex-1 gap-2", children: [
5852
- leftIcon && /* @__PURE__ */ jsx("span", { className: "flex items-center justify-center text-gray-500 dark:text-gray-400", children: leftIcon }),
5902
+ leftIcon && /* @__PURE__ */ jsx("span", { className: "flex items-center justify-center text-muted-foreground", children: leftIcon }),
5853
5903
  loading ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
5854
- /* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground dark:text-gray-400" }),
5855
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground dark:text-gray-400", children: "Loading..." })
5904
+ /* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground" }),
5905
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Loading..." })
5856
5906
  ] }) : children
5857
5907
  ] }),
5858
5908
  !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" }) })
@@ -5860,7 +5910,7 @@ var SelectTrigger = React10.forwardRef(({ className, children, variant = "standa
5860
5910
  }
5861
5911
  ));
5862
5912
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
5863
- var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5913
+ var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5864
5914
  SelectPrimitive.ScrollUpButton,
5865
5915
  {
5866
5916
  ref,
@@ -5873,7 +5923,7 @@ var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) =>
5873
5923
  }
5874
5924
  ));
5875
5925
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
5876
- var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5926
+ var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5877
5927
  SelectPrimitive.ScrollDownButton,
5878
5928
  {
5879
5929
  ref,
@@ -5886,7 +5936,7 @@ var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) =
5886
5936
  }
5887
5937
  ));
5888
5938
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
5889
- var SelectContent = React10.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
5939
+ var SelectContent = React24.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
5890
5940
  SelectPrimitive.Content,
5891
5941
  {
5892
5942
  ref,
@@ -5927,7 +5977,7 @@ var SelectContent = React10.forwardRef(({ className, children, position = "poppe
5927
5977
  }
5928
5978
  ) }));
5929
5979
  SelectContent.displayName = SelectPrimitive.Content.displayName;
5930
- var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5980
+ var SelectLabel = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5931
5981
  SelectPrimitive.Label,
5932
5982
  {
5933
5983
  ref,
@@ -5936,7 +5986,7 @@ var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
5936
5986
  }
5937
5987
  ));
5938
5988
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
5939
- var SelectItem = React10.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
5989
+ var SelectItem = React24.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
5940
5990
  SelectPrimitive.Item,
5941
5991
  {
5942
5992
  ref,
@@ -5966,7 +6016,7 @@ var SelectItem = React10.forwardRef(({ className, children, variant = "default",
5966
6016
  }
5967
6017
  ));
5968
6018
  SelectItem.displayName = SelectPrimitive.Item.displayName;
5969
- var SelectSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6019
+ var SelectSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5970
6020
  SelectPrimitive.Separator,
5971
6021
  {
5972
6022
  ref,
@@ -6048,7 +6098,7 @@ var getMaxLength = (countryCode) => {
6048
6098
  return 15;
6049
6099
  }
6050
6100
  };
6051
- var PhoneInput = React10.forwardRef(
6101
+ var PhoneInput = React24.forwardRef(
6052
6102
  ({
6053
6103
  className,
6054
6104
  value = "",
@@ -6060,8 +6110,8 @@ var PhoneInput = React10.forwardRef(
6060
6110
  size,
6061
6111
  ...props
6062
6112
  }, ref) => {
6063
- const [countryCode, setCountryCode] = React10.useState(defaultCountry);
6064
- const [phoneNumber, setPhoneNumber] = React10.useState(value);
6113
+ const [countryCode, setCountryCode] = React24.useState(defaultCountry);
6114
+ const [phoneNumber, setPhoneNumber] = React24.useState(value);
6065
6115
  const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
6066
6116
  const handlePhoneChange = (e) => {
6067
6117
  const rawValue = e.target.value.replace(/\D/g, "");
@@ -6132,15 +6182,15 @@ var radioGroupItemVariants = cva(
6132
6182
  }
6133
6183
  }
6134
6184
  );
6135
- var RadioGroupContext = React10.createContext({});
6136
- var RadioGroup2 = React10.forwardRef(
6185
+ var RadioGroupContext = React24.createContext({});
6186
+ var RadioGroup2 = React24.forwardRef(
6137
6187
  ({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
6138
- const [internalValue, setInternalValue] = React10.useState(
6188
+ const [internalValue, setInternalValue] = React24.useState(
6139
6189
  defaultValue
6140
6190
  );
6141
6191
  const isControlled = value !== void 0;
6142
6192
  const currentValue = isControlled ? value : internalValue;
6143
- const handleValueChange = React10.useCallback(
6193
+ const handleValueChange = React24.useCallback(
6144
6194
  (next) => {
6145
6195
  if (!isControlled) {
6146
6196
  setInternalValue(next);
@@ -6172,9 +6222,9 @@ var RadioGroup2 = React10.forwardRef(
6172
6222
  }
6173
6223
  );
6174
6224
  RadioGroup2.displayName = "RadioGroup";
6175
- var RadioGroupItem = React10.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6176
- const radioGroup = React10.useContext(RadioGroupContext);
6177
- const generatedId = React10.useId();
6225
+ var RadioGroupItem = React24.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6226
+ const radioGroup = React24.useContext(RadioGroupContext);
6227
+ const generatedId = React24.useId();
6178
6228
  const radioId = id || generatedId;
6179
6229
  const isChecked = radioGroup.value === value;
6180
6230
  const handleChange = (e) => {
@@ -6227,7 +6277,7 @@ var RadioGroupItem = React10.forwardRef(({ className, variant, size, indicator,
6227
6277
  ] });
6228
6278
  });
6229
6279
  RadioGroupItem.displayName = "RadioGroupItem";
6230
- var RadioLabel = React10.forwardRef(
6280
+ var RadioLabel = React24.forwardRef(
6231
6281
  ({ className, htmlFor, children, disabled = false, ...props }, ref) => {
6232
6282
  return /* @__PURE__ */ jsx(
6233
6283
  "label",
@@ -6246,13 +6296,13 @@ var RadioLabel = React10.forwardRef(
6246
6296
  }
6247
6297
  );
6248
6298
  RadioLabel.displayName = "RadioLabel";
6249
- var RadioItemWithLabel = React10.forwardRef(({
6299
+ var RadioItemWithLabel = React24.forwardRef(({
6250
6300
  id,
6251
6301
  label,
6252
6302
  labelClassName,
6253
6303
  ...radioProps
6254
6304
  }, ref) => {
6255
- const generatedId = React10.useId();
6305
+ const generatedId = React24.useId();
6256
6306
  const radioId = id || generatedId;
6257
6307
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
6258
6308
  /* @__PURE__ */ jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
@@ -6329,7 +6379,7 @@ function RichTextEditor({
6329
6379
  )
6330
6380
  ] });
6331
6381
  }
6332
- var ScrollArea = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6382
+ var ScrollArea = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6333
6383
  ScrollAreaPrimitive.Root,
6334
6384
  {
6335
6385
  ref,
@@ -6343,7 +6393,7 @@ var ScrollArea = React10.forwardRef(({ className, children, ...props }, ref) =>
6343
6393
  }
6344
6394
  ));
6345
6395
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
6346
- var ScrollBar = React10.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6396
+ var ScrollBar = React24.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6347
6397
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6348
6398
  {
6349
6399
  ref,
@@ -6397,7 +6447,7 @@ var defaultTransition = {
6397
6447
  ease: [0.25, 0.46, 0.45, 0.94]
6398
6448
  // Custom cubic-bezier for smooth motion
6399
6449
  };
6400
- var ScrollReveal = React10.forwardRef(
6450
+ var ScrollReveal = React24.forwardRef(
6401
6451
  ({
6402
6452
  children,
6403
6453
  direction = "up",
@@ -6418,17 +6468,17 @@ var ScrollReveal = React10.forwardRef(
6418
6468
  viewport
6419
6469
  }, ref) => {
6420
6470
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6421
- const animationVariants = React10.useMemo(() => {
6471
+ const animationVariants = React24.useMemo(() => {
6422
6472
  if (variants)
6423
6473
  return variants;
6424
6474
  return createDefaultVariants(direction, distance);
6425
6475
  }, [direction, distance, variants]);
6426
- const transition = React10.useMemo(() => ({
6476
+ const transition = React24.useMemo(() => ({
6427
6477
  ...defaultTransition,
6428
6478
  duration,
6429
6479
  delay: delay + stagger
6430
6480
  }), [duration, delay, stagger]);
6431
- const viewportConfig = React10.useMemo(() => ({
6481
+ const viewportConfig = React24.useMemo(() => ({
6432
6482
  once: shouldTriggerOnce,
6433
6483
  amount: threshold,
6434
6484
  ...viewport
@@ -6463,7 +6513,7 @@ var ScrollReveal = React10.forwardRef(
6463
6513
  }
6464
6514
  );
6465
6515
  ScrollReveal.displayName = "ScrollReveal";
6466
- var ScrollRevealContainer = React10.forwardRef(
6516
+ var ScrollRevealContainer = React24.forwardRef(
6467
6517
  ({
6468
6518
  children,
6469
6519
  stagger = 0.1,
@@ -6476,7 +6526,7 @@ var ScrollRevealContainer = React10.forwardRef(
6476
6526
  viewport
6477
6527
  }, ref) => {
6478
6528
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6479
- const viewportConfig = React10.useMemo(() => ({
6529
+ const viewportConfig = React24.useMemo(() => ({
6480
6530
  once: shouldTriggerOnce,
6481
6531
  amount: threshold,
6482
6532
  ...viewport
@@ -6507,7 +6557,7 @@ var ScrollRevealContainer = React10.forwardRef(
6507
6557
  }
6508
6558
  );
6509
6559
  ScrollRevealContainer.displayName = "ScrollRevealContainer";
6510
- var ScrollRevealItem = React10.forwardRef(
6560
+ var ScrollRevealItem = React24.forwardRef(
6511
6561
  ({
6512
6562
  children,
6513
6563
  direction = "up",
@@ -6518,12 +6568,12 @@ var ScrollRevealItem = React10.forwardRef(
6518
6568
  style,
6519
6569
  id
6520
6570
  }, ref) => {
6521
- const animationVariants = React10.useMemo(() => {
6571
+ const animationVariants = React24.useMemo(() => {
6522
6572
  if (variants)
6523
6573
  return variants;
6524
6574
  return createDefaultVariants(direction, distance);
6525
6575
  }, [direction, distance, variants]);
6526
- const transition = React10.useMemo(() => ({
6576
+ const transition = React24.useMemo(() => ({
6527
6577
  ...defaultTransition,
6528
6578
  duration
6529
6579
  }), [duration]);
@@ -6639,7 +6689,7 @@ var separatorVariants = cva(
6639
6689
  }
6640
6690
  }
6641
6691
  );
6642
- var Separator3 = React10.forwardRef(
6692
+ var Separator3 = React24.forwardRef(
6643
6693
  ({
6644
6694
  className,
6645
6695
  orientation = "horizontal",
@@ -6682,7 +6732,7 @@ var toggleVariants = cva(
6682
6732
  }
6683
6733
  }
6684
6734
  );
6685
- var Toggle = React10.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6735
+ var Toggle = React24.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6686
6736
  TogglePrimitive.Root,
6687
6737
  {
6688
6738
  ref,
@@ -6718,7 +6768,7 @@ var tooltipVariants = cva(
6718
6768
  );
6719
6769
  var Tooltip = TooltipPrimitive.Root;
6720
6770
  var TooltipTrigger = TooltipPrimitive.Trigger;
6721
- var TooltipArrow = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6771
+ var TooltipArrow = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6722
6772
  TooltipPrimitive.Arrow,
6723
6773
  {
6724
6774
  ref,
@@ -6727,7 +6777,7 @@ var TooltipArrow = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
6727
6777
  }
6728
6778
  ));
6729
6779
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
6730
- var TooltipContent = React10.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6780
+ var TooltipContent = React24.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6731
6781
  TooltipPrimitive.Content,
6732
6782
  {
6733
6783
  ref,
@@ -6741,7 +6791,7 @@ var TooltipContent = React10.forwardRef(({ className, variant, size, showArrow =
6741
6791
  }
6742
6792
  ));
6743
6793
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6744
- var SimpleTooltip = React10.forwardRef(
6794
+ var SimpleTooltip = React24.forwardRef(
6745
6795
  ({
6746
6796
  children,
6747
6797
  content,
@@ -6795,6 +6845,7 @@ var ToolbarButton = ({ icon, tooltip, active, onClick, disabled }) => /* @__PURE
6795
6845
  pressed: active,
6796
6846
  onPressedChange: () => onClick(),
6797
6847
  disabled,
6848
+ "aria-label": tooltip,
6798
6849
  className: "h-8 w-8 p-0",
6799
6850
  children: icon
6800
6851
  }
@@ -6819,14 +6870,16 @@ var ColorPicker2 = ({ onColorSelect }) => {
6819
6870
  return /* @__PURE__ */ jsx("div", { className: "grid grid-cols-4 gap-1 p-2", children: colors.map((color) => /* @__PURE__ */ jsx(
6820
6871
  "button",
6821
6872
  {
6822
- className: "w-6 h-6 rounded border-2 border-gray-200 hover:border-gray-400",
6873
+ type: "button",
6874
+ "aria-label": `Select color ${color}`,
6875
+ className: "w-6 h-6 rounded border-2 border-border hover:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
6823
6876
  style: { backgroundColor: color },
6824
6877
  onClick: () => onColorSelect(color)
6825
6878
  },
6826
6879
  color
6827
6880
  )) });
6828
6881
  };
6829
- var SimpleEditor = React10__default.forwardRef(
6882
+ var SimpleEditor = React24__default.forwardRef(
6830
6883
  ({
6831
6884
  value = "",
6832
6885
  onChange,
@@ -6843,8 +6896,8 @@ var SimpleEditor = React10__default.forwardRef(
6843
6896
  const [isPreview, setIsPreview] = useState(false);
6844
6897
  const [sourceContent, setSourceContent] = useState(value);
6845
6898
  useState(null);
6846
- const editorRef = React10__default.useRef(null);
6847
- const sourceRef = React10__default.useRef(null);
6899
+ const editorRef = React24__default.useRef(null);
6900
+ const sourceRef = React24__default.useRef(null);
6848
6901
  const [formatState, setFormatState] = useState({
6849
6902
  bold: false,
6850
6903
  italic: false,
@@ -6978,12 +7031,12 @@ var SimpleEditor = React10__default.forwardRef(
6978
7031
  }
6979
7032
  }
6980
7033
  }, [executeCommand, updateContent]);
6981
- React10__default.useEffect(() => {
7034
+ React24__default.useEffect(() => {
6982
7035
  if (editorRef.current && content && content !== editorRef.current.innerHTML) {
6983
7036
  editorRef.current.innerHTML = content;
6984
7037
  }
6985
7038
  }, [content]);
6986
- React10__default.useEffect(() => {
7039
+ React24__default.useEffect(() => {
6987
7040
  if (value !== void 0 && value !== content) {
6988
7041
  setContent(value);
6989
7042
  setSourceContent(value);
@@ -7298,10 +7351,15 @@ var SimpleEditor = React10__default.forwardRef(
7298
7351
  ref: editorRef,
7299
7352
  contentEditable: !disabled,
7300
7353
  suppressContentEditableWarning: true,
7354
+ role: "textbox",
7355
+ "aria-multiline": "true",
7356
+ "aria-label": placeholder,
7357
+ "aria-disabled": disabled || void 0,
7301
7358
  className: cn(
7302
7359
  "p-4 outline-none prose prose-sm dark:prose-invert max-w-none overflow-y-auto",
7303
- "bg-slate-50 dark:bg-zinc-900/95",
7304
- "text-gray-900 dark:text-gray-100",
7360
+ // Token'a bağlandı (önce `bg-slate-50 dark:bg-zinc-900/95` ve
7361
+ // `text-gray-900 dark:text-gray-100` hardcode'luydu).
7362
+ "bg-background text-foreground",
7305
7363
  "focus:ring-0",
7306
7364
  "[&_h1]:text-3xl [&_h1]:font-bold [&_h1]:mb-4",
7307
7365
  "[&_h2]:text-2xl [&_h2]:font-bold [&_h2]:mb-3",
@@ -7388,7 +7446,7 @@ var skeletonVariants = cva(
7388
7446
  }
7389
7447
  }
7390
7448
  );
7391
- var Skeleton = React10.forwardRef(
7449
+ var Skeleton = React24.forwardRef(
7392
7450
  ({
7393
7451
  className,
7394
7452
  variant,
@@ -7472,7 +7530,7 @@ var Skeleton = React10.forwardRef(
7472
7530
  }
7473
7531
  );
7474
7532
  Skeleton.displayName = "Skeleton";
7475
- var SkeletonText = React10.forwardRef(
7533
+ var SkeletonText = React24.forwardRef(
7476
7534
  ({
7477
7535
  className,
7478
7536
  lines = 3,
@@ -7513,7 +7571,7 @@ var SkeletonText = React10.forwardRef(
7513
7571
  }
7514
7572
  );
7515
7573
  SkeletonText.displayName = "SkeletonText";
7516
- var SkeletonAvatar = React10.forwardRef(
7574
+ var SkeletonAvatar = React24.forwardRef(
7517
7575
  ({
7518
7576
  className,
7519
7577
  size = "2.5rem",
@@ -7539,7 +7597,7 @@ var SkeletonAvatar = React10.forwardRef(
7539
7597
  }
7540
7598
  );
7541
7599
  SkeletonAvatar.displayName = "SkeletonAvatar";
7542
- var SkeletonCard = React10.forwardRef(
7600
+ var SkeletonCard = React24.forwardRef(
7543
7601
  ({
7544
7602
  className,
7545
7603
  showHeader = true,
@@ -7613,11 +7671,11 @@ var SkeletonCard = React10.forwardRef(
7613
7671
  }
7614
7672
  );
7615
7673
  SkeletonCard.displayName = "SkeletonCard";
7616
- var SwipeableCard = React10.forwardRef(
7674
+ var SwipeableCard = React24.forwardRef(
7617
7675
  ({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
7618
- const [startX, setStartX] = React10.useState(0);
7619
- const [currentX, setCurrentX] = React10.useState(0);
7620
- const [isSwiping, setIsSwiping] = React10.useState(false);
7676
+ const [startX, setStartX] = React24.useState(0);
7677
+ const [currentX, setCurrentX] = React24.useState(0);
7678
+ const [isSwiping, setIsSwiping] = React24.useState(false);
7621
7679
  const handleTouchStart = (e) => {
7622
7680
  if (disabled)
7623
7681
  return;
@@ -7663,54 +7721,95 @@ var SwipeableCard = React10.forwardRef(
7663
7721
  }
7664
7722
  );
7665
7723
  SwipeableCard.displayName = "SwipeableCard";
7666
- 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: [
7667
- leftIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: leftIcon }),
7668
- /* @__PURE__ */ jsxs(
7669
- SwitchPrimitives.Root,
7670
- {
7671
- className: cn(
7672
- "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",
7673
- // Boyutlar
7674
- size === "sm" && "h-4 w-8",
7675
- size === "md" && "h-6 w-11",
7676
- size === "lg" && "h-7 w-14",
7677
- // Varyantlar (checked durumunda)
7678
- variant === "primary" && "data-[state=checked]:bg-primary",
7679
- variant === "success" && "data-[state=checked]:bg-success",
7680
- variant === "warning" && "data-[state=checked]:bg-warning",
7681
- variant === "danger" && "data-[state=checked]:bg-error",
7682
- variant === "secondary" && "data-[state=checked]:bg-accent",
7683
- // Unchecked durumu
7684
- "data-[state=unchecked]:bg-input",
7685
- // Loading durumu
7686
- loading && "opacity-80 cursor-wait",
7687
- className
7688
- ),
7689
- disabled: loading || props.disabled,
7690
- ...props,
7691
- ref,
7692
- children: [
7693
- 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,
7694
- /* @__PURE__ */ jsx(
7695
- SwitchPrimitives.Thumb,
7696
- {
7697
- className: cn(
7698
- "pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform",
7699
- // Boyuta göre thumb boyutları
7700
- size === "sm" && "h-3 w-3 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",
7701
- size === "md" && "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
7702
- size === "lg" && "h-6 w-6 data-[state=checked]:translate-x-7 data-[state=unchecked]:translate-x-0"
7703
- )
7704
- }
7705
- )
7706
- ]
7724
+ var switchVariants = cva(
7725
+ [
7726
+ "peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full",
7727
+ "border-2 border-transparent transition-colors",
7728
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
7729
+ "focus-visible:ring-offset-2 focus-visible:ring-offset-background",
7730
+ "disabled:cursor-not-allowed disabled:opacity-50",
7731
+ // Kapalı durum token'a bağlı; `--input` karanlık modda kendi değerini taşır.
7732
+ // (Önceden ayrıca `dark:data-[state=unchecked]:bg-gray-700/70` hardcode'u
7733
+ // vardı ve token'ı eziyordu — kaldırıldı.)
7734
+ "data-[state=unchecked]:bg-input",
7735
+ "dark:focus-visible:ring-primary/40"
7736
+ ],
7737
+ {
7738
+ variants: {
7739
+ size: {
7740
+ sm: "h-4 w-8",
7741
+ md: "h-6 w-11",
7742
+ lg: "h-7 w-14"
7743
+ },
7744
+ variant: {
7745
+ primary: "data-[state=checked]:bg-primary",
7746
+ success: "data-[state=checked]:bg-success",
7747
+ warning: "data-[state=checked]:bg-warning",
7748
+ destructive: "data-[state=checked]:bg-error",
7749
+ secondary: "data-[state=checked]:bg-accent"
7750
+ }
7751
+ },
7752
+ defaultVariants: {
7753
+ size: "md",
7754
+ variant: "primary"
7707
7755
  }
7708
- ),
7709
- rightIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: rightIcon }),
7710
- description && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: description })
7711
- ] }));
7756
+ }
7757
+ );
7758
+ var switchThumbVariants = cva(
7759
+ "pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform",
7760
+ {
7761
+ variants: {
7762
+ size: {
7763
+ sm: "h-3 w-3 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",
7764
+ md: "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
7765
+ lg: "h-6 w-6 data-[state=checked]:translate-x-7 data-[state=unchecked]:translate-x-0"
7766
+ }
7767
+ },
7768
+ defaultVariants: {
7769
+ size: "md"
7770
+ }
7771
+ }
7772
+ );
7773
+ var Switch = React24.forwardRef(({
7774
+ className,
7775
+ size,
7776
+ variant,
7777
+ loading,
7778
+ leftIcon,
7779
+ rightIcon,
7780
+ description,
7781
+ "aria-describedby": ariaDescribedBy,
7782
+ ...props
7783
+ }, ref) => {
7784
+ const reactId = React24.useId();
7785
+ const descriptionId = description ? `${reactId}-description` : void 0;
7786
+ const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
7787
+ return /* @__PURE__ */ jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
7788
+ leftIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: leftIcon }),
7789
+ /* @__PURE__ */ jsxs(
7790
+ SwitchPrimitives.Root,
7791
+ {
7792
+ className: cn(
7793
+ switchVariants({ size, variant }),
7794
+ loading && "opacity-80 cursor-wait",
7795
+ className
7796
+ ),
7797
+ disabled: loading || props.disabled,
7798
+ "aria-describedby": describedBy,
7799
+ ...props,
7800
+ ref,
7801
+ children: [
7802
+ 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,
7803
+ /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
7804
+ ]
7805
+ }
7806
+ ),
7807
+ rightIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: rightIcon }),
7808
+ description && /* @__PURE__ */ jsx("span", { id: descriptionId, className: "text-sm text-muted-foreground", children: description })
7809
+ ] });
7810
+ });
7712
7811
  Switch.displayName = SwitchPrimitives.Root.displayName;
7713
- var TagsInput = React10.forwardRef(
7812
+ var TagsInput = React24.forwardRef(
7714
7813
  ({
7715
7814
  value = [],
7716
7815
  onChange,
@@ -7723,14 +7822,63 @@ var TagsInput = React10.forwardRef(
7723
7822
  disabled,
7724
7823
  ...props
7725
7824
  }, ref) => {
7726
- const [inputValue, setInputValue] = React10.useState("");
7727
- const [error, setError] = React10.useState("");
7825
+ const [inputValue, setInputValue] = React24.useState("");
7826
+ const [error, setError] = React24.useState("");
7827
+ const innerInputRef = React24.useRef(null);
7828
+ React24.useImperativeHandle(ref, () => innerInputRef.current);
7829
+ const tagButtonRefs = React24.useRef([]);
7830
+ const errorId = React24.useId();
7831
+ const focusTag = (index) => {
7832
+ if (value.length === 0)
7833
+ return;
7834
+ const clamped = Math.max(0, Math.min(value.length - 1, index));
7835
+ tagButtonRefs.current[clamped]?.focus();
7836
+ };
7728
7837
  const handleKeyDown = (e) => {
7729
7838
  if (e.key === "Enter" || e.key === delimiter) {
7730
7839
  e.preventDefault();
7731
7840
  addTag();
7732
7841
  } else if (e.key === "Backspace" && inputValue === "" && value.length > 0) {
7733
7842
  removeTag(value.length - 1);
7843
+ } else if (e.key === "ArrowLeft" && inputValue === "" && value.length > 0) {
7844
+ e.preventDefault();
7845
+ focusTag(value.length - 1);
7846
+ }
7847
+ };
7848
+ const handleTagKeyDown = (index) => (e) => {
7849
+ switch (e.key) {
7850
+ case "ArrowLeft":
7851
+ e.preventDefault();
7852
+ focusTag(index - 1);
7853
+ break;
7854
+ case "ArrowRight":
7855
+ e.preventDefault();
7856
+ if (index >= value.length - 1)
7857
+ innerInputRef.current?.focus();
7858
+ else
7859
+ focusTag(index + 1);
7860
+ break;
7861
+ case "Home":
7862
+ e.preventDefault();
7863
+ focusTag(0);
7864
+ break;
7865
+ case "End":
7866
+ e.preventDefault();
7867
+ focusTag(value.length - 1);
7868
+ break;
7869
+ case "Delete":
7870
+ case "Backspace": {
7871
+ e.preventDefault();
7872
+ const remaining = value.length - 1;
7873
+ removeTag(index);
7874
+ requestAnimationFrame(() => {
7875
+ if (remaining > 0)
7876
+ focusTag(Math.min(index, remaining - 1));
7877
+ else
7878
+ innerInputRef.current?.focus();
7879
+ });
7880
+ break;
7881
+ }
7734
7882
  }
7735
7883
  };
7736
7884
  const addTag = () => {
@@ -7762,36 +7910,35 @@ var TagsInput = React10.forwardRef(
7762
7910
  {
7763
7911
  className: cn(
7764
7912
  "flex items-center min-h-[2.5rem] w-full flex-wrap gap-2 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background",
7765
- "dark:bg-zinc-950/50 dark:border-zinc-800",
7913
+ // NOT: burada `dark:bg-zinc-950/50 dark:border-zinc-800` hardcode'u
7914
+ // vardı ve aynı satırdaki `bg-background`/`border-input` token'larını
7915
+ // karanlık modda eziyordu. Token'lar zaten dark-mode duyarlı.
7766
7916
  "focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
7767
7917
  disabled && "cursor-not-allowed opacity-50",
7768
7918
  className
7769
7919
  ),
7770
7920
  children: [
7771
- value.map((tag, index) => /* @__PURE__ */ jsxs(
7772
- Badge,
7773
- {
7774
- variant,
7775
- className: "gap-1 pr-1.5",
7776
- children: [
7777
- /* @__PURE__ */ jsx("span", { className: "text-xs", children: tag }),
7778
- !disabled && /* @__PURE__ */ jsx(
7779
- "button",
7780
- {
7781
- type: "button",
7782
- onClick: () => removeTag(index),
7783
- className: "ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
7784
- children: /* @__PURE__ */ jsx(X, { className: "h-3 w-3 text-muted-foreground hover:text-foreground transition-colors" })
7785
- }
7786
- )
7787
- ]
7788
- },
7789
- index
7790
- )),
7921
+ value.map((tag, index) => /* @__PURE__ */ jsxs(Badge, { variant, className: "gap-1 pr-1.5", children: [
7922
+ /* @__PURE__ */ jsx("span", { className: "text-xs", children: tag }),
7923
+ !disabled && /* @__PURE__ */ jsx(
7924
+ "button",
7925
+ {
7926
+ ref: (el) => {
7927
+ tagButtonRefs.current[index] = el;
7928
+ },
7929
+ type: "button",
7930
+ "aria-label": `Remove ${tag}`,
7931
+ onClick: () => removeTag(index),
7932
+ onKeyDown: handleTagKeyDown(index),
7933
+ className: "ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
7934
+ children: /* @__PURE__ */ jsx(X, { className: "h-3 w-3 text-muted-foreground hover:text-foreground transition-colors" })
7935
+ }
7936
+ )
7937
+ ] }, index)),
7791
7938
  /* @__PURE__ */ jsx(
7792
7939
  "input",
7793
7940
  {
7794
- ref,
7941
+ ref: innerInputRef,
7795
7942
  type: "text",
7796
7943
  value: inputValue,
7797
7944
  onChange: (e) => setInputValue(e.target.value),
@@ -7799,9 +7946,11 @@ var TagsInput = React10.forwardRef(
7799
7946
  onBlur: addTag,
7800
7947
  disabled,
7801
7948
  placeholder: value.length === 0 ? placeholder : "",
7949
+ "aria-label": "Add tag",
7950
+ "aria-describedby": error ? errorId : void 0,
7951
+ "aria-invalid": error ? true : void 0,
7802
7952
  className: cn(
7803
7953
  "flex-1 bg-transparent outline-none placeholder:text-muted-foreground",
7804
- "dark:placeholder:text-zinc-500",
7805
7954
  "min-w-[120px]",
7806
7955
  disabled && "cursor-not-allowed"
7807
7956
  ),
@@ -7811,7 +7960,7 @@ var TagsInput = React10.forwardRef(
7811
7960
  ]
7812
7961
  }
7813
7962
  ),
7814
- error && /* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-destructive", children: error })
7963
+ error && /* @__PURE__ */ jsx("p", { id: errorId, role: "status", className: "mt-1 text-xs text-destructive", children: error })
7815
7964
  ] });
7816
7965
  }
7817
7966
  );
@@ -7855,7 +8004,7 @@ var textareaVariants = cva(
7855
8004
  }
7856
8005
  }
7857
8006
  );
7858
- var Textarea = React10.forwardRef(
8007
+ var Textarea = React24.forwardRef(
7859
8008
  ({
7860
8009
  className,
7861
8010
  wrapperClassName,
@@ -7875,10 +8024,12 @@ var Textarea = React10.forwardRef(
7875
8024
  onChange,
7876
8025
  ...props
7877
8026
  }, ref) => {
7878
- const textareaRef = React10.useRef(null);
7879
- const [internalValue, setInternalValue] = React10.useState(value || defaultValue || "");
7880
- React10.useImperativeHandle(ref, () => textareaRef.current);
7881
- const adjustHeight = React10.useCallback(() => {
8027
+ const reactId = React24.useId();
8028
+ const fieldId = props.id || reactId;
8029
+ const textareaRef = React24.useRef(null);
8030
+ const [internalValue, setInternalValue] = React24.useState(value || defaultValue || "");
8031
+ React24.useImperativeHandle(ref, () => textareaRef.current);
8032
+ const adjustHeight = React24.useCallback(() => {
7882
8033
  const textarea = textareaRef.current;
7883
8034
  if (!textarea || !autoResize)
7884
8035
  return;
@@ -7892,10 +8043,10 @@ var Textarea = React10.forwardRef(
7892
8043
  textarea.style.overflowY = "hidden";
7893
8044
  }
7894
8045
  }, [autoResize, maxHeight]);
7895
- React10.useEffect(() => {
8046
+ React24.useEffect(() => {
7896
8047
  adjustHeight();
7897
8048
  }, [internalValue, adjustHeight]);
7898
- React10.useEffect(() => {
8049
+ React24.useEffect(() => {
7899
8050
  if (value !== void 0) {
7900
8051
  setInternalValue(value);
7901
8052
  }
@@ -7931,7 +8082,7 @@ var Textarea = React10.forwardRef(
7931
8082
  onChange: handleChange,
7932
8083
  maxLength,
7933
8084
  "aria-invalid": !!error || void 0,
7934
- "aria-describedby": errorMessage ? `${props.id || ""}-error` : successMessage ? `${props.id || ""}-success` : void 0,
8085
+ "aria-describedby": errorMessage ? `${fieldId}-error` : successMessage ? `${fieldId}-success` : void 0,
7935
8086
  ...props
7936
8087
  }
7937
8088
  ),
@@ -7947,7 +8098,7 @@ var Textarea = React10.forwardRef(
7947
8098
  successMessage && "text-success",
7948
8099
  messageClassName
7949
8100
  ),
7950
- id: errorMessage ? `${props.id || ""}-error` : successMessage ? `${props.id || ""}-success` : void 0,
8101
+ id: errorMessage ? `${fieldId}-error` : successMessage ? `${fieldId}-success` : void 0,
7951
8102
  children: errorMessage || successMessage
7952
8103
  }
7953
8104
  ),
@@ -7961,7 +8112,7 @@ var Textarea = React10.forwardRef(
7961
8112
  );
7962
8113
  Textarea.displayName = "Textarea";
7963
8114
  var ToastProvider = ToastPrimitives.Provider;
7964
- var ToastViewport = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8115
+ var ToastViewport = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7965
8116
  ToastPrimitives.Viewport,
7966
8117
  {
7967
8118
  ref,
@@ -7990,7 +8141,7 @@ var toastVariants = cva(
7990
8141
  }
7991
8142
  }
7992
8143
  );
7993
- var Toast = React10.forwardRef(({ className, variant, ...props }, ref) => {
8144
+ var Toast = React24.forwardRef(({ className, variant, ...props }, ref) => {
7994
8145
  return /* @__PURE__ */ jsx(
7995
8146
  ToastPrimitives.Root,
7996
8147
  {
@@ -8001,7 +8152,7 @@ var Toast = React10.forwardRef(({ className, variant, ...props }, ref) => {
8001
8152
  );
8002
8153
  });
8003
8154
  Toast.displayName = ToastPrimitives.Root.displayName;
8004
- var ToastAction = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8155
+ var ToastAction = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8005
8156
  ToastPrimitives.Action,
8006
8157
  {
8007
8158
  ref,
@@ -8013,7 +8164,7 @@ var ToastAction = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
8013
8164
  }
8014
8165
  ));
8015
8166
  ToastAction.displayName = ToastPrimitives.Action.displayName;
8016
- var ToastClose = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8167
+ var ToastClose = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8017
8168
  ToastPrimitives.Close,
8018
8169
  {
8019
8170
  ref,
@@ -8027,7 +8178,7 @@ var ToastClose = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
8027
8178
  }
8028
8179
  ));
8029
8180
  ToastClose.displayName = ToastPrimitives.Close.displayName;
8030
- var ToastTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8181
+ var ToastTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8031
8182
  ToastPrimitives.Title,
8032
8183
  {
8033
8184
  ref,
@@ -8036,7 +8187,7 @@ var ToastTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
8036
8187
  }
8037
8188
  ));
8038
8189
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
8039
- var ToastDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8190
+ var ToastDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8040
8191
  ToastPrimitives.Description,
8041
8192
  {
8042
8193
  ref,
@@ -8144,8 +8295,8 @@ function toast({ ...props }) {
8144
8295
  };
8145
8296
  }
8146
8297
  function useToast() {
8147
- const [state, setState] = React10.useState(memoryState);
8148
- React10.useEffect(() => {
8298
+ const [state, setState] = React24.useState(memoryState);
8299
+ React24.useEffect(() => {
8149
8300
  listeners.push(setState);
8150
8301
  return () => {
8151
8302
  const index = listeners.indexOf(setState);
@@ -8198,7 +8349,7 @@ var kbdVariants = cva(
8198
8349
  }
8199
8350
  }
8200
8351
  );
8201
- var Kbd = React10.forwardRef(
8352
+ var Kbd = React24.forwardRef(
8202
8353
  ({ className, size, children, ...props }, ref) => {
8203
8354
  return /* @__PURE__ */ jsx(
8204
8355
  "kbd",
@@ -8235,7 +8386,7 @@ var iconSizeMap = {
8235
8386
  md: "h-5 w-5",
8236
8387
  lg: "h-6 w-6"
8237
8388
  };
8238
- var Rating = React10.forwardRef(
8389
+ var Rating = React24.forwardRef(
8239
8390
  ({
8240
8391
  className,
8241
8392
  value,
@@ -8253,11 +8404,11 @@ var Rating = React10.forwardRef(
8253
8404
  const iconSizeClass = iconSizeMap[resolvedSize];
8254
8405
  const step = precision === "half" ? 0.5 : 1;
8255
8406
  const isControlled = value !== void 0;
8256
- const [internalValue, setInternalValue] = React10.useState(defaultValue ?? 0);
8407
+ const [internalValue, setInternalValue] = React24.useState(defaultValue ?? 0);
8257
8408
  const currentValue = isControlled ? value ?? 0 : internalValue;
8258
- const [hoverValue, setHoverValue] = React10.useState(null);
8409
+ const [hoverValue, setHoverValue] = React24.useState(null);
8259
8410
  const displayValue = hoverValue !== null ? hoverValue : currentValue;
8260
- const commit = React10.useCallback(
8411
+ const commit = React24.useCallback(
8261
8412
  (next) => {
8262
8413
  if (readOnly)
8263
8414
  return;
@@ -8267,7 +8418,7 @@ var Rating = React10.forwardRef(
8267
8418
  },
8268
8419
  [readOnly, isControlled, onValueChange]
8269
8420
  );
8270
- const handleKeyDown = React10.useCallback(
8421
+ const handleKeyDown = React24.useCallback(
8271
8422
  (event) => {
8272
8423
  if (readOnly)
8273
8424
  return;
@@ -8296,9 +8447,9 @@ var Rating = React10.forwardRef(
8296
8447
  [readOnly, max, currentValue, step, commit]
8297
8448
  );
8298
8449
  const renderIcon = (filled) => {
8299
- if (React10.isValidElement(icon)) {
8450
+ if (React24.isValidElement(icon)) {
8300
8451
  const element = icon;
8301
- return React10.cloneElement(element, {
8452
+ return React24.cloneElement(element, {
8302
8453
  className: cn(
8303
8454
  iconSizeClass,
8304
8455
  "shrink-0",
@@ -8432,7 +8583,7 @@ var dotSizeMap = {
8432
8583
  lg: "h-2 w-2",
8433
8584
  xl: "h-2.5 w-2.5"
8434
8585
  };
8435
- var Spinner = React10.forwardRef(
8586
+ var Spinner = React24.forwardRef(
8436
8587
  ({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
8437
8588
  return /* @__PURE__ */ jsxs(
8438
8589
  "div",
@@ -8511,15 +8662,15 @@ var buttonGroupVariants = cva(
8511
8662
  }
8512
8663
  }
8513
8664
  );
8514
- var ButtonGroup = React10.forwardRef(
8665
+ var ButtonGroup = React24.forwardRef(
8515
8666
  ({ className, orientation, attached, size, variant, children, ...props }, ref) => {
8516
8667
  const shouldPropagate = size !== void 0 || variant !== void 0;
8517
- const enhancedChildren = shouldPropagate ? React10.Children.map(children, (child) => {
8518
- if (!React10.isValidElement(child) || child.type !== Button) {
8668
+ const enhancedChildren = shouldPropagate ? React24.Children.map(children, (child) => {
8669
+ if (!React24.isValidElement(child) || child.type !== Button) {
8519
8670
  return child;
8520
8671
  }
8521
8672
  const childProps = child.props;
8522
- return React10.cloneElement(child, {
8673
+ return React24.cloneElement(child, {
8523
8674
  size: childProps.size ?? size,
8524
8675
  variant: childProps.variant ?? variant
8525
8676
  });
@@ -8537,11 +8688,11 @@ var ButtonGroup = React10.forwardRef(
8537
8688
  }
8538
8689
  );
8539
8690
  ButtonGroup.displayName = "ButtonGroup";
8540
- var ToggleGroupContext = React10.createContext({
8691
+ var ToggleGroupContext = React24.createContext({
8541
8692
  size: "default",
8542
8693
  variant: "default"
8543
8694
  });
8544
- var ToggleGroup = React10.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8695
+ var ToggleGroup = React24.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8545
8696
  ToggleGroupPrimitive.Root,
8546
8697
  {
8547
8698
  ref,
@@ -8558,8 +8709,8 @@ var ToggleGroup = React10.forwardRef(({ className, variant, size, children, ...p
8558
8709
  }
8559
8710
  ));
8560
8711
  ToggleGroup.displayName = "ToggleGroup";
8561
- var ToggleGroupItem = React10.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8562
- const context = React10.useContext(ToggleGroupContext);
8712
+ var ToggleGroupItem = React24.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8713
+ const context = React24.useContext(ToggleGroupContext);
8563
8714
  return /* @__PURE__ */ jsx(
8564
8715
  ToggleGroupPrimitive.Item,
8565
8716
  {
@@ -8578,6 +8729,6 @@ var ToggleGroupItem = React10.forwardRef(({ className, children, variant, size,
8578
8729
  });
8579
8730
  ToggleGroupItem.displayName = "ToggleGroupItem";
8580
8731
 
8581
- 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 };
8732
+ 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 };
8582
8733
  //# sourceMappingURL=out.js.map
8583
8734
  //# sourceMappingURL=index.mjs.map