@moontra/moonui 6.8.0 → 6.10.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 (42) hide show
  1. package/dist/hooks/index.global.js +1 -6
  2. package/dist/index.d.mts +44 -35
  3. package/dist/index.d.ts +44 -35
  4. package/dist/index.global.js +52 -365
  5. package/dist/index.global.js.map +1 -1
  6. package/dist/index.js +421 -359
  7. package/dist/index.js.map +1 -1
  8. package/dist/index.mjs +385 -323
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/lib/theme.global.js +1 -14
  11. package/dist/lib/theme.global.js.map +1 -1
  12. package/package.json +1 -1
  13. package/src/components/ui/__tests__/carousel.test.tsx +37 -0
  14. package/src/components/ui/__tests__/checkbox.test.tsx +3 -3
  15. package/src/components/ui/__tests__/collapsible.test.tsx +5 -5
  16. package/src/components/ui/__tests__/dialog.test.tsx +2 -2
  17. package/src/components/ui/__tests__/progress.test.tsx +4 -4
  18. package/src/components/ui/__tests__/quality-group-de.test.tsx +159 -0
  19. package/src/components/ui/__tests__/radio-group.test.tsx +4 -4
  20. package/src/components/ui/__tests__/size-scale-convention.test.ts +189 -0
  21. package/src/components/ui/__tests__/slider.test.tsx +4 -4
  22. package/src/components/ui/alert.tsx +5 -3
  23. package/src/components/ui/avatar.tsx +3 -2
  24. package/src/components/ui/breadcrumb.tsx +4 -2
  25. package/src/components/ui/card.tsx +4 -2
  26. package/src/components/ui/carousel.tsx +24 -0
  27. package/src/components/ui/checkbox.tsx +5 -3
  28. package/src/components/ui/collapsible.tsx +10 -6
  29. package/src/components/ui/color-picker.tsx +11 -5
  30. package/src/components/ui/command.tsx +29 -2
  31. package/src/components/ui/date-picker.tsx +4 -2
  32. package/src/components/ui/dialog.tsx +7 -5
  33. package/src/components/ui/popover-pro.tsx +5 -3
  34. package/src/components/ui/popover.tsx +4 -2
  35. package/src/components/ui/progress.tsx +6 -4
  36. package/src/components/ui/radio-group.tsx +5 -3
  37. package/src/components/ui/scroll-area.tsx +23 -3
  38. package/src/components/ui/skeleton.tsx +20 -3
  39. package/src/components/ui/slider.tsx +10 -6
  40. package/src/components/ui/table.tsx +4 -2
  41. package/src/components/ui/toggle-group.tsx +4 -1
  42. package/src/components/ui/toggle.tsx +4 -2
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import * as React23 from 'react';
4
- import React23__default, { useState, useCallback, useEffect } from 'react';
3
+ import * as React12 from 'react';
4
+ import React12__default, { useState, useCallback, useEffect } from 'react';
5
5
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
6
6
  import { ChevronDown, Info, AlertCircle, AlertTriangle, Check, X, MoreHorizontal, Loader2, CreditCard, ArrowLeft, ArrowRight, Minus, Search, Calendar as Calendar$1, Clock, ChevronLeft, ChevronRight, Circle, Upload, Dot, ChevronUp, Phone, Bold, Italic, Underline, Strikethrough, AlignLeft, AlignCenter, AlignRight, AlignJustify, List, ListOrdered, Quote, Code, Link, Image, Palette, Undo, Redo, Edit, Eye, Copy, ArrowDown, ArrowUp, ArrowUpDown, CheckCircle, Star, GitFork, ExternalLink, Crown, Lock, Zap, Video, Music, FileText, File } from 'lucide-react';
7
7
  export { Palette, Pipette } from 'lucide-react';
@@ -46,14 +46,14 @@ function readableText(node) {
46
46
  if (Array.isArray(node)) {
47
47
  return node.map(readableText).filter(Boolean).join(" ").trim();
48
48
  }
49
- if (React23.isValidElement(node)) {
49
+ if (React12.isValidElement(node)) {
50
50
  const props = node.props;
51
51
  return readableText(props.children);
52
52
  }
53
53
  return "";
54
54
  }
55
55
  var Accordion = AccordionPrimitive.Root;
56
- var AccordionItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
56
+ var AccordionItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
57
57
  AccordionPrimitive.Item,
58
58
  {
59
59
  ref,
@@ -62,7 +62,7 @@ var AccordionItem = React23.forwardRef(({ className, ...props }, ref) => /* @__P
62
62
  }
63
63
  ));
64
64
  AccordionItem.displayName = "AccordionItem";
65
- var AccordionTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
65
+ var AccordionTrigger = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
66
66
  AccordionPrimitive.Trigger,
67
67
  {
68
68
  ref,
@@ -80,7 +80,7 @@ var AccordionTrigger = React23.forwardRef(({ className, children, ...props }, re
80
80
  }
81
81
  ) }));
82
82
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
83
- var AccordionContent = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
83
+ var AccordionContent = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
84
84
  AccordionPrimitive.Content,
85
85
  {
86
86
  ref,
@@ -111,8 +111,10 @@ var alertVariants = cva(
111
111
  },
112
112
  size: {
113
113
  sm: "py-2 text-xs",
114
- default: "py-3 text-sm",
115
- lg: "py-4 text-base"
114
+ md: "py-3 text-sm",
115
+ lg: "py-4 text-base",
116
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
117
+ default: "py-3 text-sm"
116
118
  },
117
119
  radius: {
118
120
  none: "rounded-none",
@@ -127,13 +129,13 @@ var alertVariants = cva(
127
129
  },
128
130
  defaultVariants: {
129
131
  variant: "default",
130
- size: "default",
132
+ size: "md",
131
133
  radius: "default",
132
134
  withClose: false
133
135
  }
134
136
  }
135
137
  );
136
- var Alert = React23.forwardRef(
138
+ var Alert = React12.forwardRef(
137
139
  ({
138
140
  className,
139
141
  variant = "default",
@@ -145,7 +147,7 @@ var Alert = React23.forwardRef(
145
147
  children,
146
148
  ...props
147
149
  }, ref) => {
148
- const Icon2 = React23.useMemo(() => {
150
+ const Icon2 = React12.useMemo(() => {
149
151
  switch (variant) {
150
152
  case "success":
151
153
  return Check;
@@ -193,7 +195,7 @@ var Alert = React23.forwardRef(
193
195
  }
194
196
  );
195
197
  Alert.displayName = "Alert";
196
- var AlertTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
198
+ var AlertTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
197
199
  "h5",
198
200
  {
199
201
  ref,
@@ -206,7 +208,7 @@ var AlertTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
206
208
  }
207
209
  ));
208
210
  AlertTitle.displayName = "AlertTitle";
209
- var AlertDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
211
+ var AlertDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
210
212
  "div",
211
213
  {
212
214
  ref,
@@ -248,7 +250,7 @@ var aspectRatioVariants = cva(
248
250
  }
249
251
  }
250
252
  );
251
- var AspectRatio = React23.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
253
+ var AspectRatio = React12.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
252
254
  "div",
253
255
  {
254
256
  ref,
@@ -268,13 +270,14 @@ var avatarVariants = cva(
268
270
  {
269
271
  variants: {
270
272
  size: {
271
- default: "h-10 w-10",
272
273
  xs: "h-6 w-6",
273
274
  sm: "h-8 w-8",
274
275
  md: "h-10 w-10",
275
276
  lg: "h-12 w-12",
276
277
  xl: "h-16 w-16",
277
- "2xl": "h-20 w-20"
278
+ "2xl": "h-20 w-20",
279
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
280
+ default: "h-10 w-10"
278
281
  },
279
282
  radius: {
280
283
  default: "rounded-full",
@@ -291,13 +294,13 @@ var avatarVariants = cva(
291
294
  }
292
295
  },
293
296
  defaultVariants: {
294
- size: "default",
297
+ size: "md",
295
298
  radius: "default",
296
299
  variant: "default"
297
300
  }
298
301
  }
299
302
  );
300
- var Avatar = React23.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
303
+ var Avatar = React12.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
301
304
  AvatarPrimitive.Root,
302
305
  {
303
306
  ref,
@@ -306,7 +309,7 @@ var Avatar = React23.forwardRef(({ className, size, radius, variant, ...props },
306
309
  }
307
310
  ));
308
311
  Avatar.displayName = AvatarPrimitive.Root.displayName;
309
- var AvatarImage = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
312
+ var AvatarImage = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
310
313
  AvatarPrimitive.Image,
311
314
  {
312
315
  ref,
@@ -315,7 +318,7 @@ var AvatarImage = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
315
318
  }
316
319
  ));
317
320
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
318
- var AvatarFallback = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
321
+ var AvatarFallback = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
319
322
  AvatarPrimitive.Fallback,
320
323
  {
321
324
  ref,
@@ -327,9 +330,9 @@ var AvatarFallback = React23.forwardRef(({ className, ...props }, ref) => /* @__
327
330
  }
328
331
  ));
329
332
  AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
330
- var AvatarGroup = React23.forwardRef(
333
+ var AvatarGroup = React12.forwardRef(
331
334
  ({ className, max, children, overlapOffset = -8, ...props }, ref) => {
332
- const childrenArray = React23.Children.toArray(children);
335
+ const childrenArray = React12.Children.toArray(children);
333
336
  const visibleAvatars = max ? childrenArray.slice(0, max) : childrenArray;
334
337
  const remainingCount = max ? Math.max(0, childrenArray.length - max) : 0;
335
338
  return /* @__PURE__ */ jsx(
@@ -460,7 +463,7 @@ var badgeVariants = cva(
460
463
  }
461
464
  }
462
465
  );
463
- var Badge = React23.forwardRef(({
466
+ var Badge = React12.forwardRef(({
464
467
  className,
465
468
  variant,
466
469
  size,
@@ -557,19 +560,21 @@ var breadcrumbVariants = cva(
557
560
  ghost: "text-foreground/60 transition-colors"
558
561
  },
559
562
  size: {
560
- default: "text-sm",
563
+ md: "text-sm",
561
564
  sm: "text-xs",
562
- lg: "text-base"
565
+ lg: "text-base",
566
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
567
+ default: "text-sm"
563
568
  }
564
569
  },
565
570
  defaultVariants: {
566
571
  variant: "default",
567
- size: "default"
572
+ size: "md"
568
573
  }
569
574
  }
570
575
  );
571
- var BreadcrumbSeparatorContext = React23.createContext(void 0);
572
- var Breadcrumb = React23.forwardRef(
576
+ var BreadcrumbSeparatorContext = React12.createContext(void 0);
577
+ var Breadcrumb = React12.forwardRef(
573
578
  // #309: `separator` ve `showHomeIcon` ESKİDEN destructure EDİLMİYORDU → `{...props}` ile
574
579
  // `<nav>`'a öznitelik olarak basılıyor, React uyarı veriyordu. İkisi de artık ayrılıyor.
575
580
  ({ className, variant, size, separator, showHomeIcon: _showHomeIcon, ...props }, ref) => /* @__PURE__ */ jsx(BreadcrumbSeparatorContext.Provider, { value: separator, children: /* @__PURE__ */ jsx(
@@ -583,9 +588,9 @@ var Breadcrumb = React23.forwardRef(
583
588
  ) })
584
589
  );
585
590
  Breadcrumb.displayName = "Breadcrumb";
586
- var BreadcrumbList = React23.forwardRef(
591
+ var BreadcrumbList = React12.forwardRef(
587
592
  ({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
588
- const childrenArray = React23.Children.toArray(props.children).filter(Boolean);
593
+ const childrenArray = React12.Children.toArray(props.children).filter(Boolean);
589
594
  const childCount = childrenArray.length;
590
595
  if (collapsed && childCount > collapsedWidth) {
591
596
  const firstItem = childrenArray[0];
@@ -621,7 +626,7 @@ var BreadcrumbList = React23.forwardRef(
621
626
  }
622
627
  );
623
628
  BreadcrumbList.displayName = "BreadcrumbList";
624
- var BreadcrumbItem = React23.forwardRef(
629
+ var BreadcrumbItem = React12.forwardRef(
625
630
  ({ className, isCurrent, href, asChild = false, children, ...props }, ref) => {
626
631
  const Comp = asChild ? Slot : href ? "a" : "span";
627
632
  const itemProps = !asChild && href ? { href } : {};
@@ -654,7 +659,7 @@ var BreadcrumbSeparator = ({
654
659
  icon,
655
660
  ...props
656
661
  }) => {
657
- const rootSeparator = React23.useContext(BreadcrumbSeparatorContext);
662
+ const rootSeparator = React12.useContext(BreadcrumbSeparatorContext);
658
663
  return (
659
664
  // Ayraç tümüyle dekoratiftir → `aria-hidden` burada DOĞRU (ellipsis'in aksine içinde
660
665
  // ekran-okuyucuya ait metin yok).
@@ -697,7 +702,7 @@ var BreadcrumbEllipsis = ({
697
702
  )
698
703
  );
699
704
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
700
- var BreadcrumbLink = React23.forwardRef(
705
+ var BreadcrumbLink = React12.forwardRef(
701
706
  ({ className, href, ...props }, ref) => /* @__PURE__ */ jsx(
702
707
  "a",
703
708
  {
@@ -712,7 +717,7 @@ var BreadcrumbLink = React23.forwardRef(
712
717
  )
713
718
  );
714
719
  BreadcrumbLink.displayName = "BreadcrumbLink";
715
- var BreadcrumbPage = React23.forwardRef(
720
+ var BreadcrumbPage = React12.forwardRef(
716
721
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
717
722
  "span",
718
723
  {
@@ -875,7 +880,7 @@ var buttonVariants = cva(
875
880
  }
876
881
  }
877
882
  );
878
- var Button = React23.forwardRef(
883
+ var Button = React12.forwardRef(
879
884
  ({
880
885
  className,
881
886
  variant,
@@ -1066,10 +1071,12 @@ var cardVariants = cva(
1066
1071
  glass: "border border-white/20 bg-white/10 backdrop-blur-md dark:border-gray-700/30 dark:bg-gray-800/10"
1067
1072
  },
1068
1073
  size: {
1069
- default: "",
1074
+ md: "",
1070
1075
  sm: "",
1071
1076
  lg: "",
1072
- xl: ""
1077
+ xl: "",
1078
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
1079
+ default: ""
1073
1080
  },
1074
1081
  radius: {
1075
1082
  default: "rounded-lg",
@@ -1085,12 +1092,12 @@ var cardVariants = cva(
1085
1092
  },
1086
1093
  defaultVariants: {
1087
1094
  variant: "default",
1088
- size: "default",
1095
+ size: "md",
1089
1096
  radius: "default"
1090
1097
  }
1091
1098
  }
1092
1099
  );
1093
- var Card = React23.forwardRef(
1100
+ var Card = React12.forwardRef(
1094
1101
  ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
1095
1102
  if (interactive && microInteraction !== "none") {
1096
1103
  const interactionProps = {
@@ -1118,7 +1125,7 @@ var Card = React23.forwardRef(
1118
1125
  }
1119
1126
  );
1120
1127
  Card.displayName = "Card";
1121
- var CardHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1128
+ var CardHeader = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1122
1129
  "div",
1123
1130
  {
1124
1131
  ref,
@@ -1127,7 +1134,7 @@ var CardHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
1127
1134
  }
1128
1135
  ));
1129
1136
  CardHeader.displayName = "CardHeader";
1130
- var CardTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1137
+ var CardTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1131
1138
  "h3",
1132
1139
  {
1133
1140
  ref,
@@ -1136,7 +1143,7 @@ var CardTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1136
1143
  }
1137
1144
  ));
1138
1145
  CardTitle.displayName = "CardTitle";
1139
- var CardDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1146
+ var CardDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1140
1147
  "p",
1141
1148
  {
1142
1149
  ref,
@@ -1145,9 +1152,9 @@ var CardDescription = React23.forwardRef(({ className, ...props }, ref) => /* @_
1145
1152
  }
1146
1153
  ));
1147
1154
  CardDescription.displayName = "CardDescription";
1148
- var CardContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1155
+ var CardContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1149
1156
  CardContent.displayName = "CardContent";
1150
- var CardFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1157
+ var CardFooter = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1151
1158
  "div",
1152
1159
  {
1153
1160
  ref,
@@ -1168,7 +1175,7 @@ function Calendar({
1168
1175
  defaultMonth,
1169
1176
  ...props
1170
1177
  }) {
1171
- const [currentMonth, setCurrentMonth] = React23.useState(
1178
+ const [currentMonth, setCurrentMonth] = React12.useState(
1172
1179
  defaultMonth || selected && selected || /* @__PURE__ */ new Date()
1173
1180
  );
1174
1181
  const weekDays = [
@@ -1382,9 +1389,9 @@ var formatCardNumber = (value, cardType) => {
1382
1389
  }
1383
1390
  return formatted;
1384
1391
  };
1385
- var CardNumberInput = React23.forwardRef(
1392
+ var CardNumberInput = React12.forwardRef(
1386
1393
  ({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
1387
- const [cardType, setCardType] = React23.useState("unknown");
1394
+ const [cardType, setCardType] = React12.useState("unknown");
1388
1395
  const handleChange = (e) => {
1389
1396
  const rawValue = e.target.value.replace(/\D/g, "");
1390
1397
  const detectedType = getCardType(rawValue);
@@ -1415,7 +1422,7 @@ var CardNumberInput = React23.forwardRef(
1415
1422
  }
1416
1423
  );
1417
1424
  CardNumberInput.displayName = "CardNumberInput";
1418
- var CardExpiryInput = React23.forwardRef(
1425
+ var CardExpiryInput = React12.forwardRef(
1419
1426
  ({ className, value = "", onChange, size, ...props }, ref) => {
1420
1427
  const handleChange = (e) => {
1421
1428
  let rawValue = e.target.value.replace(/\D/g, "");
@@ -1453,7 +1460,7 @@ var CardExpiryInput = React23.forwardRef(
1453
1460
  }
1454
1461
  );
1455
1462
  CardExpiryInput.displayName = "CardExpiryInput";
1456
- var CardCVCInput = React23.forwardRef(
1463
+ var CardCVCInput = React12.forwardRef(
1457
1464
  ({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
1458
1465
  const maxLength = cardType === "amex" ? 4 : 3;
1459
1466
  const handleChange = (e) => {
@@ -1478,7 +1485,7 @@ var CardCVCInput = React23.forwardRef(
1478
1485
  }
1479
1486
  );
1480
1487
  CardCVCInput.displayName = "CardCVCInput";
1481
- var CardZipInput = React23.forwardRef(
1488
+ var CardZipInput = React12.forwardRef(
1482
1489
  ({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
1483
1490
  const handleChange = (e) => {
1484
1491
  let rawValue = e.target.value;
@@ -1529,15 +1536,15 @@ var CardZipInput = React23.forwardRef(
1529
1536
  }
1530
1537
  );
1531
1538
  CardZipInput.displayName = "CardZipInput";
1532
- var CarouselContext = React23.createContext(null);
1539
+ var CarouselContext = React12.createContext(null);
1533
1540
  function useCarousel() {
1534
- const context = React23.useContext(CarouselContext);
1541
+ const context = React12.useContext(CarouselContext);
1535
1542
  if (!context) {
1536
1543
  throw new Error("useCarousel must be used within a <Carousel />");
1537
1544
  }
1538
1545
  return context;
1539
1546
  }
1540
- var Carousel = React23.forwardRef(
1547
+ var Carousel = React12.forwardRef(
1541
1548
  ({
1542
1549
  orientation = "horizontal",
1543
1550
  opts,
@@ -1555,21 +1562,28 @@ var Carousel = React23.forwardRef(
1555
1562
  },
1556
1563
  plugins
1557
1564
  );
1558
- const [canScrollPrev, setCanScrollPrev] = React23.useState(false);
1559
- const [canScrollNext, setCanScrollNext] = React23.useState(false);
1560
- const onSelect = React23.useCallback((emblaApi) => {
1565
+ const [canScrollPrev, setCanScrollPrev] = React12.useState(false);
1566
+ const [canScrollNext, setCanScrollNext] = React12.useState(false);
1567
+ const [slideState, setSlideState] = React12.useState(
1568
+ { current: 0, total: 0 }
1569
+ );
1570
+ const onSelect = React12.useCallback((emblaApi) => {
1561
1571
  if (!emblaApi)
1562
1572
  return;
1563
1573
  setCanScrollPrev(emblaApi.canScrollPrev());
1564
1574
  setCanScrollNext(emblaApi.canScrollNext());
1575
+ setSlideState({
1576
+ current: emblaApi.selectedScrollSnap() + 1,
1577
+ total: emblaApi.scrollSnapList().length
1578
+ });
1565
1579
  }, []);
1566
- const scrollPrev = React23.useCallback(() => {
1580
+ const scrollPrev = React12.useCallback(() => {
1567
1581
  api?.scrollPrev();
1568
1582
  }, [api]);
1569
- const scrollNext = React23.useCallback(() => {
1583
+ const scrollNext = React12.useCallback(() => {
1570
1584
  api?.scrollNext();
1571
1585
  }, [api]);
1572
- const handleKeyDown = React23.useCallback(
1586
+ const handleKeyDown = React12.useCallback(
1573
1587
  (event) => {
1574
1588
  const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
1575
1589
  const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
@@ -1583,12 +1597,12 @@ var Carousel = React23.forwardRef(
1583
1597
  },
1584
1598
  [resolvedOrientation, scrollPrev, scrollNext]
1585
1599
  );
1586
- React23.useEffect(() => {
1600
+ React12.useEffect(() => {
1587
1601
  if (!api || !setApi)
1588
1602
  return;
1589
1603
  setApi(api);
1590
1604
  }, [api, setApi]);
1591
- React23.useEffect(() => {
1605
+ React12.useEffect(() => {
1592
1606
  if (!api)
1593
1607
  return;
1594
1608
  onSelect(api);
@@ -1612,7 +1626,7 @@ var Carousel = React23.forwardRef(
1612
1626
  canScrollNext,
1613
1627
  orientation: resolvedOrientation
1614
1628
  },
1615
- children: /* @__PURE__ */ jsx(
1629
+ children: /* @__PURE__ */ jsxs(
1616
1630
  "div",
1617
1631
  {
1618
1632
  ref,
@@ -1621,7 +1635,10 @@ var Carousel = React23.forwardRef(
1621
1635
  role: "region",
1622
1636
  "aria-roledescription": "carousel",
1623
1637
  ...props,
1624
- children
1638
+ children: [
1639
+ children,
1640
+ /* @__PURE__ */ jsx("div", { "aria-live": "polite", "aria-atomic": "true", className: "sr-only", children: slideState.total > 0 ? `Slide ${slideState.current} of ${slideState.total}` : "" })
1641
+ ]
1625
1642
  }
1626
1643
  )
1627
1644
  }
@@ -1640,7 +1657,7 @@ var carouselContentVariants = cva("flex", {
1640
1657
  orientation: "horizontal"
1641
1658
  }
1642
1659
  });
1643
- var CarouselContent = React23.forwardRef(
1660
+ var CarouselContent = React12.forwardRef(
1644
1661
  ({ className, ...props }, ref) => {
1645
1662
  const { carouselRef, orientation } = useCarousel();
1646
1663
  return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
@@ -1665,7 +1682,7 @@ var carouselItemVariants = cva("min-w-0 shrink-0 grow-0 basis-full", {
1665
1682
  orientation: "horizontal"
1666
1683
  }
1667
1684
  });
1668
- var CarouselItem = React23.forwardRef(
1685
+ var CarouselItem = React12.forwardRef(
1669
1686
  ({ className, ...props }, ref) => {
1670
1687
  const { orientation } = useCarousel();
1671
1688
  return /* @__PURE__ */ jsx(
@@ -1681,7 +1698,7 @@ var CarouselItem = React23.forwardRef(
1681
1698
  }
1682
1699
  );
1683
1700
  CarouselItem.displayName = "CarouselItem";
1684
- var CarouselPrevious = React23.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1701
+ var CarouselPrevious = React12.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1685
1702
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
1686
1703
  return /* @__PURE__ */ jsxs(
1687
1704
  Button,
@@ -1706,7 +1723,7 @@ var CarouselPrevious = React23.forwardRef(({ className, variant = "outline", siz
1706
1723
  );
1707
1724
  });
1708
1725
  CarouselPrevious.displayName = "CarouselPrevious";
1709
- var CarouselNext = React23.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1726
+ var CarouselNext = React12.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1710
1727
  const { orientation, scrollNext, canScrollNext } = useCarousel();
1711
1728
  return /* @__PURE__ */ jsxs(
1712
1729
  Button,
@@ -1743,9 +1760,11 @@ var checkboxVariants = cva(
1743
1760
  },
1744
1761
  size: {
1745
1762
  sm: "h-3.5 w-3.5",
1746
- default: "h-4 w-4",
1747
- md: "h-5 w-5",
1748
- lg: "h-6 w-6"
1763
+ md: "h-4 w-4",
1764
+ lg: "h-5 w-5",
1765
+ xl: "h-6 w-6",
1766
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
1767
+ default: "h-4 w-4"
1749
1768
  },
1750
1769
  radius: {
1751
1770
  none: "rounded-none",
@@ -1763,13 +1782,13 @@ var checkboxVariants = cva(
1763
1782
  },
1764
1783
  defaultVariants: {
1765
1784
  variant: "default",
1766
- size: "default",
1785
+ size: "md",
1767
1786
  radius: "default",
1768
1787
  animation: "default"
1769
1788
  }
1770
1789
  }
1771
1790
  );
1772
- var Checkbox = React23.forwardRef(({
1791
+ var Checkbox = React12.forwardRef(({
1773
1792
  className,
1774
1793
  variant,
1775
1794
  size,
@@ -1802,7 +1821,7 @@ var Checkbox = React23.forwardRef(({
1802
1821
  );
1803
1822
  });
1804
1823
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1805
- var CheckboxGroup = React23.forwardRef(
1824
+ var CheckboxGroup = React12.forwardRef(
1806
1825
  ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
1807
1826
  return /* @__PURE__ */ jsx(
1808
1827
  "div",
@@ -1822,7 +1841,7 @@ var CheckboxGroup = React23.forwardRef(
1822
1841
  }
1823
1842
  );
1824
1843
  CheckboxGroup.displayName = "CheckboxGroup";
1825
- var CheckboxLabel = React23.forwardRef(
1844
+ var CheckboxLabel = React12.forwardRef(
1826
1845
  ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
1827
1846
  return /* @__PURE__ */ jsx(
1828
1847
  "label",
@@ -1842,14 +1861,14 @@ var CheckboxLabel = React23.forwardRef(
1842
1861
  }
1843
1862
  );
1844
1863
  CheckboxLabel.displayName = "CheckboxLabel";
1845
- var CheckboxWithLabel = React23.forwardRef(({
1864
+ var CheckboxWithLabel = React12.forwardRef(({
1846
1865
  id,
1847
1866
  label,
1848
1867
  labelPosition = "end",
1849
1868
  labelClassName,
1850
1869
  ...checkboxProps
1851
1870
  }, ref) => {
1852
- const generatedId = React23.useId();
1871
+ const generatedId = React12.useId();
1853
1872
  const checkboxId = id || generatedId;
1854
1873
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
1855
1874
  labelPosition === "start" && /* @__PURE__ */ jsx(
@@ -1888,18 +1907,20 @@ var collapsibleTriggerVariants = cva(
1888
1907
  },
1889
1908
  size: {
1890
1909
  sm: "text-xs py-2 px-3",
1891
- default: "text-sm py-3 px-4",
1892
- md: "text-base py-4 px-4",
1893
- lg: "text-lg py-5 px-5"
1910
+ md: "text-sm py-3 px-4",
1911
+ lg: "text-base py-4 px-4",
1912
+ xl: "text-lg py-5 px-5",
1913
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
1914
+ default: "text-sm py-3 px-4"
1894
1915
  }
1895
1916
  },
1896
1917
  defaultVariants: {
1897
1918
  variant: "default",
1898
- size: "default"
1919
+ size: "md"
1899
1920
  }
1900
1921
  }
1901
1922
  );
1902
- var CollapsibleTrigger = React23.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1923
+ var CollapsibleTrigger = React12.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1903
1924
  if (asChild) {
1904
1925
  return /* @__PURE__ */ jsx(
1905
1926
  CollapsiblePrimitive.Trigger,
@@ -1937,18 +1958,20 @@ var collapsibleContentVariants = cva(
1937
1958
  },
1938
1959
  size: {
1939
1960
  sm: "text-xs",
1940
- default: "text-sm",
1941
- md: "text-base",
1942
- lg: "text-lg"
1961
+ md: "text-sm",
1962
+ lg: "text-base",
1963
+ xl: "text-lg",
1964
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
1965
+ default: "text-sm"
1943
1966
  }
1944
1967
  },
1945
1968
  defaultVariants: {
1946
1969
  variant: "default",
1947
- size: "default"
1970
+ size: "md"
1948
1971
  }
1949
1972
  }
1950
1973
  );
1951
- var CollapsibleContent = React23.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1974
+ var CollapsibleContent = React12.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1952
1975
  CollapsiblePrimitive.Content,
1953
1976
  {
1954
1977
  ref,
@@ -2031,7 +2054,7 @@ var inputVariants = cva(
2031
2054
  }
2032
2055
  }
2033
2056
  );
2034
- var Input = React23.forwardRef(
2057
+ var Input = React12.forwardRef(
2035
2058
  ({
2036
2059
  className,
2037
2060
  wrapperClassName,
@@ -2058,10 +2081,10 @@ var Input = React23.forwardRef(
2058
2081
  placeholder,
2059
2082
  ...props
2060
2083
  }, ref) => {
2061
- const reactId = React23.useId();
2084
+ const reactId = React12.useId();
2062
2085
  const fieldId = props.id || reactId;
2063
- const [isFocused, setIsFocused] = React23.useState(false);
2064
- const [internalValue, setInternalValue] = React23.useState(value || defaultValue || "");
2086
+ const [isFocused, setIsFocused] = React12.useState(false);
2087
+ const [internalValue, setInternalValue] = React12.useState(value || defaultValue || "");
2065
2088
  const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
2066
2089
  const isLabelActive = isFocused || hasValue;
2067
2090
  const handleFocus = (e) => {
@@ -2076,7 +2099,7 @@ var Input = React23.forwardRef(
2076
2099
  setInternalValue(e.target.value);
2077
2100
  onChange?.(e);
2078
2101
  };
2079
- React23.useEffect(() => {
2102
+ React12.useEffect(() => {
2080
2103
  if (value !== void 0) {
2081
2104
  setInternalValue(value);
2082
2105
  }
@@ -2160,7 +2183,7 @@ Input.displayName = "Input";
2160
2183
  var labelVariants = cva(
2161
2184
  "text-sm font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:peer-disabled:opacity-60 transition-colors duration-200"
2162
2185
  );
2163
- var Label = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2186
+ var Label = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2164
2187
  LabelPrimitive.Root,
2165
2188
  {
2166
2189
  ref,
@@ -2181,8 +2204,10 @@ var popoverContentVariants = cva(
2181
2204
  },
2182
2205
  size: {
2183
2206
  sm: "w-48 p-3",
2184
- default: "w-72 p-4",
2185
- lg: "w-96 p-5"
2207
+ md: "w-72 p-4",
2208
+ lg: "w-96 p-5",
2209
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
2210
+ default: "w-72 p-4"
2186
2211
  },
2187
2212
  side: {
2188
2213
  top: "data-[side=top]:slide-in-from-bottom-2",
@@ -2212,7 +2237,7 @@ var popoverContentVariants = cva(
2212
2237
  },
2213
2238
  defaultVariants: {
2214
2239
  variant: "default",
2215
- size: "default",
2240
+ size: "md",
2216
2241
  radius: "default",
2217
2242
  shadow: "default"
2218
2243
  }
@@ -2221,7 +2246,7 @@ var popoverContentVariants = cva(
2221
2246
  var Popover = PopoverPrimitive.Root;
2222
2247
  var PopoverTrigger = PopoverPrimitive.Trigger;
2223
2248
  var PopoverAnchor = PopoverPrimitive.Anchor;
2224
- var PopoverContent = React23.forwardRef(({
2249
+ var PopoverContent = React12.forwardRef(({
2225
2250
  className,
2226
2251
  variant,
2227
2252
  size,
@@ -2295,8 +2320,8 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
2295
2320
  }
2296
2321
  );
2297
2322
  PopoverFooter.displayName = "PopoverFooter";
2298
- var TabsOrientationContext = React23.createContext("horizontal");
2299
- var Tabs = React23.forwardRef(({ vertical = false, orientation, className, ...props }, ref) => {
2323
+ var TabsOrientationContext = React12.createContext("horizontal");
2324
+ var Tabs = React12.forwardRef(({ vertical = false, orientation, className, ...props }, ref) => {
2300
2325
  const resolvedOrientation = orientation ?? (vertical ? "vertical" : "horizontal");
2301
2326
  return /* @__PURE__ */ jsx(TabsOrientationContext.Provider, { value: resolvedOrientation, children: /* @__PURE__ */ jsx(
2302
2327
  TabsPrimitive.Root,
@@ -2340,8 +2365,8 @@ var tabsListVariants = cva(
2340
2365
  }
2341
2366
  }
2342
2367
  );
2343
- var TabsList = React23.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2344
- const contextOrientation = React23.useContext(TabsOrientationContext);
2368
+ var TabsList = React12.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2369
+ const contextOrientation = React12.useContext(TabsOrientationContext);
2345
2370
  const resolvedOrientation = orientation ?? contextOrientation;
2346
2371
  return /* @__PURE__ */ jsx(
2347
2372
  TabsPrimitive.List,
@@ -2385,7 +2410,7 @@ var tabsTriggerVariants = cva(
2385
2410
  }
2386
2411
  }
2387
2412
  );
2388
- var TabsTrigger = React23.forwardRef(({
2413
+ var TabsTrigger = React12.forwardRef(({
2389
2414
  className,
2390
2415
  variant,
2391
2416
  size,
@@ -2398,7 +2423,7 @@ var TabsTrigger = React23.forwardRef(({
2398
2423
  children,
2399
2424
  ...props
2400
2425
  }, ref) => {
2401
- const contextOrientation = React23.useContext(TabsOrientationContext);
2426
+ const contextOrientation = React12.useContext(TabsOrientationContext);
2402
2427
  const resolvedOrientation = orientation ?? contextOrientation;
2403
2428
  return /* @__PURE__ */ jsxs(
2404
2429
  TabsPrimitive.Trigger,
@@ -2421,7 +2446,7 @@ var TabsTrigger = React23.forwardRef(({
2421
2446
  );
2422
2447
  });
2423
2448
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
2424
- var TabsContent = React23.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2449
+ var TabsContent = React12.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
2425
2450
  TabsPrimitive.Content,
2426
2451
  {
2427
2452
  ref,
@@ -2441,13 +2466,15 @@ var sliderVariants = cva(
2441
2466
  variants: {
2442
2467
  size: {
2443
2468
  sm: "h-5",
2444
- default: "h-6",
2445
- md: "h-8",
2446
- lg: "h-10"
2469
+ md: "h-6",
2470
+ lg: "h-8",
2471
+ xl: "h-10",
2472
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
2473
+ default: "h-6"
2447
2474
  }
2448
2475
  },
2449
2476
  defaultVariants: {
2450
- size: "default"
2477
+ size: "md"
2451
2478
  }
2452
2479
  }
2453
2480
  );
@@ -2504,18 +2531,20 @@ var sliderThumbVariants = cva(
2504
2531
  },
2505
2532
  size: {
2506
2533
  sm: "h-3 w-3",
2507
- default: "h-4 w-4",
2508
- md: "h-5 w-5",
2509
- lg: "h-6 w-6"
2534
+ md: "h-4 w-4",
2535
+ lg: "h-5 w-5",
2536
+ xl: "h-6 w-6",
2537
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
2538
+ default: "h-4 w-4"
2510
2539
  }
2511
2540
  },
2512
2541
  defaultVariants: {
2513
2542
  variant: "primary",
2514
- size: "default"
2543
+ size: "md"
2515
2544
  }
2516
2545
  }
2517
2546
  );
2518
- var Slider = React23.forwardRef(({
2547
+ var Slider = React12.forwardRef(({
2519
2548
  className,
2520
2549
  size,
2521
2550
  trackVariant,
@@ -2531,10 +2560,10 @@ var Slider = React23.forwardRef(({
2531
2560
  disabled,
2532
2561
  ...props
2533
2562
  }, ref) => {
2534
- const [sliderValue, setSliderValue] = React23.useState(
2563
+ const [sliderValue, setSliderValue] = React12.useState(
2535
2564
  value || defaultValue || [0]
2536
2565
  );
2537
- React23.useEffect(() => {
2566
+ React12.useEffect(() => {
2538
2567
  if (value !== void 0) {
2539
2568
  setSliderValue(value);
2540
2569
  }
@@ -2549,7 +2578,7 @@ var Slider = React23.forwardRef(({
2549
2578
  const calculateThumbPercent = (value2, min2, max2) => {
2550
2579
  return (value2 - min2) / (max2 - min2) * 100;
2551
2580
  };
2552
- const trackRef = React23.useRef(null);
2581
+ const trackRef = React12.useRef(null);
2553
2582
  const min = props.min || 0;
2554
2583
  const max = props.max || 100;
2555
2584
  const step = props.step || 1;
@@ -2714,10 +2743,12 @@ var colorPickerVariants = cva(
2714
2743
  {
2715
2744
  variants: {
2716
2745
  size: {
2717
- default: "h-10 w-10",
2746
+ md: "h-10 w-10",
2718
2747
  sm: "h-8 w-8",
2719
2748
  lg: "h-12 w-12",
2720
- xl: "h-16 w-16"
2749
+ xl: "h-16 w-16",
2750
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
2751
+ default: "h-10 w-10"
2721
2752
  },
2722
2753
  shape: {
2723
2754
  square: "rounded-md",
@@ -2726,7 +2757,7 @@ var colorPickerVariants = cva(
2726
2757
  }
2727
2758
  },
2728
2759
  defaultVariants: {
2729
- size: "default",
2760
+ size: "md",
2730
2761
  shape: "square"
2731
2762
  }
2732
2763
  }
@@ -2861,14 +2892,14 @@ function ColorPicker({
2861
2892
  disabled,
2862
2893
  ...props
2863
2894
  }) {
2864
- const [open, setOpen] = React23.useState(false);
2865
- const [color, setColor] = React23.useState(value);
2866
- const [opacity, setOpacity] = React23.useState(100);
2867
- const [copied, setCopied] = React23.useState(false);
2868
- const [inputValue, setInputValue] = React23.useState(value);
2869
- const hsl = React23.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2870
- const rgb = React23.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2871
- React23.useEffect(() => {
2895
+ const [open, setOpen] = React12.useState(false);
2896
+ const [color, setColor] = React12.useState(value);
2897
+ const [opacity, setOpacity] = React12.useState(100);
2898
+ const [copied, setCopied] = React12.useState(false);
2899
+ const [inputValue, setInputValue] = React12.useState(value);
2900
+ const hsl = React12.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2901
+ const rgb = React12.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2902
+ React12.useEffect(() => {
2872
2903
  setColor(value);
2873
2904
  setInputValue(value);
2874
2905
  }, [value]);
@@ -3233,12 +3264,15 @@ function SimpleColorPicker({
3233
3264
  onChange,
3234
3265
  colors = defaultPresets.slice(0, 10),
3235
3266
  className,
3236
- size = "default"
3267
+ // #319: varsayılan kanonik ada çekildi (aynı CSS: h-8 w-8)
3268
+ size = "md"
3237
3269
  }) {
3238
3270
  const sizeClasses = {
3239
3271
  sm: "h-6 w-6",
3240
- default: "h-8 w-8",
3241
- lg: "h-10 w-10"
3272
+ md: "h-8 w-8",
3273
+ lg: "h-10 w-10",
3274
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
3275
+ default: "h-8 w-8"
3242
3276
  };
3243
3277
  return /* @__PURE__ */ jsx("div", { className: cn("moonui-theme", "flex flex-wrap gap-2", className), children: colors.map((color) => /* @__PURE__ */ jsx(
3244
3278
  "button",
@@ -3263,7 +3297,7 @@ function GradientPicker({
3263
3297
  onChange,
3264
3298
  className
3265
3299
  }) {
3266
- const [gradient, setGradient] = React23.useState(value);
3300
+ const [gradient, setGradient] = React12.useState(value);
3267
3301
  const handleChange = (field, newValue) => {
3268
3302
  const newGradient = { ...gradient, [field]: newValue };
3269
3303
  setGradient(newGradient);
@@ -3349,7 +3383,7 @@ var overlayVariants = cva(
3349
3383
  }
3350
3384
  }
3351
3385
  );
3352
- var DialogOverlay = React23.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3386
+ var DialogOverlay = React12.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
3353
3387
  DialogPrimitive.Overlay,
3354
3388
  {
3355
3389
  ref,
@@ -3372,11 +3406,13 @@ var dialogContentVariants = cva(
3372
3406
  size: {
3373
3407
  xs: "max-w-xs p-4",
3374
3408
  sm: "max-w-sm p-5",
3375
- default: "max-w-lg p-6",
3409
+ lg: "max-w-lg p-6",
3376
3410
  md: "max-w-md p-6",
3377
- lg: "max-w-2xl p-7",
3378
- xl: "max-w-4xl p-8",
3379
- full: "max-w-[95vw] max-h-[95vh] p-6"
3411
+ xl: "max-w-2xl p-7",
3412
+ "2xl": "max-w-4xl p-8",
3413
+ full: "max-w-[95vw] max-h-[95vh] p-6",
3414
+ /** @deprecated `lg` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
3415
+ default: "max-w-lg p-6"
3380
3416
  },
3381
3417
  radius: {
3382
3418
  none: "rounded-none",
@@ -3401,14 +3437,14 @@ var dialogContentVariants = cva(
3401
3437
  },
3402
3438
  defaultVariants: {
3403
3439
  variant: "default",
3404
- size: "default",
3440
+ size: "lg",
3405
3441
  radius: "default",
3406
3442
  animation: "default",
3407
3443
  position: "default"
3408
3444
  }
3409
3445
  }
3410
3446
  );
3411
- var DialogContent = React23.forwardRef(
3447
+ var DialogContent = React12.forwardRef(
3412
3448
  ({
3413
3449
  className,
3414
3450
  children,
@@ -3521,7 +3557,7 @@ var DialogFooter = ({
3521
3557
  }
3522
3558
  );
3523
3559
  DialogFooter.displayName = "DialogFooter";
3524
- var DialogTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3560
+ var DialogTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3525
3561
  DialogPrimitive.Title,
3526
3562
  {
3527
3563
  ref,
@@ -3533,7 +3569,7 @@ var DialogTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
3533
3569
  }
3534
3570
  ));
3535
3571
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
3536
- var DialogDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3572
+ var DialogDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3537
3573
  DialogPrimitive.Description,
3538
3574
  {
3539
3575
  ref,
@@ -3545,7 +3581,7 @@ var DialogDescription = React23.forwardRef(({ className, ...props }, ref) => /*
3545
3581
  }
3546
3582
  ));
3547
3583
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
3548
- var DialogForm = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3584
+ var DialogForm = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3549
3585
  "form",
3550
3586
  {
3551
3587
  ref,
@@ -3565,17 +3601,19 @@ var commandVariants = cva(
3565
3601
  },
3566
3602
  size: {
3567
3603
  sm: "min-h-[200px]",
3568
- default: "min-h-[300px]",
3569
- lg: "min-h-[400px]"
3604
+ md: "min-h-[300px]",
3605
+ lg: "min-h-[400px]",
3606
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
3607
+ default: "min-h-[300px]"
3570
3608
  }
3571
3609
  },
3572
3610
  defaultVariants: {
3573
3611
  variant: "default",
3574
- size: "default"
3612
+ size: "md"
3575
3613
  }
3576
3614
  }
3577
3615
  );
3578
- var Command = React23.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3616
+ var Command = React12.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
3579
3617
  Command$1,
3580
3618
  {
3581
3619
  ref,
@@ -3597,7 +3635,7 @@ var CommandDialog = ({
3597
3635
  ), children })
3598
3636
  ] }) });
3599
3637
  };
3600
- var CommandInput = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3638
+ var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3601
3639
  /* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
3602
3640
  /* @__PURE__ */ jsx(
3603
3641
  Command$1.Input,
@@ -3612,7 +3650,7 @@ var CommandInput = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
3612
3650
  )
3613
3651
  ] }));
3614
3652
  CommandInput.displayName = "CommandInput";
3615
- var CommandList = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3653
+ var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3616
3654
  Command$1.List,
3617
3655
  {
3618
3656
  ref,
@@ -3621,7 +3659,7 @@ var CommandList = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
3621
3659
  }
3622
3660
  ));
3623
3661
  CommandList.displayName = "CommandList";
3624
- var CommandEmpty = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3662
+ var CommandEmpty = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3625
3663
  Command$1.Empty,
3626
3664
  {
3627
3665
  ref,
@@ -3630,7 +3668,7 @@ var CommandEmpty = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
3630
3668
  }
3631
3669
  ));
3632
3670
  CommandEmpty.displayName = "CommandEmpty";
3633
- var CommandGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3671
+ var CommandGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3634
3672
  Command$1.Group,
3635
3673
  {
3636
3674
  ref,
@@ -3642,16 +3680,17 @@ var CommandGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
3642
3680
  }
3643
3681
  ));
3644
3682
  CommandGroup.displayName = "CommandGroup";
3645
- var CommandSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3683
+ var CommandSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3646
3684
  Command$1.Separator,
3647
3685
  {
3648
3686
  ref,
3687
+ "aria-hidden": "true",
3649
3688
  className: cn("moonui-theme", "-mx-1 h-px bg-border", className),
3650
3689
  ...props
3651
3690
  }
3652
3691
  ));
3653
3692
  CommandSeparator.displayName = "CommandSeparator";
3654
- var CommandItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3693
+ var CommandItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3655
3694
  Command$1.Item,
3656
3695
  {
3657
3696
  ref,
@@ -3679,7 +3718,7 @@ var CommandShortcut = ({
3679
3718
  );
3680
3719
  };
3681
3720
  CommandShortcut.displayName = "CommandShortcut";
3682
- var TableSortContext = React23.createContext(null);
3721
+ var TableSortContext = React12.createContext(null);
3683
3722
  function nextSortDirection(current) {
3684
3723
  if (current === "asc")
3685
3724
  return "desc";
@@ -3700,17 +3739,19 @@ var tableVariants = cva(
3700
3739
  },
3701
3740
  size: {
3702
3741
  sm: "text-xs",
3703
- default: "text-sm",
3704
- lg: "text-base"
3742
+ md: "text-sm",
3743
+ lg: "text-base",
3744
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
3745
+ default: "text-sm"
3705
3746
  }
3706
3747
  },
3707
3748
  defaultVariants: {
3708
3749
  variant: "default",
3709
- size: "default"
3750
+ size: "md"
3710
3751
  }
3711
3752
  }
3712
3753
  );
3713
- var Table = React23.forwardRef(({
3754
+ var Table = React12.forwardRef(({
3714
3755
  className,
3715
3756
  variant,
3716
3757
  size,
@@ -3733,15 +3774,15 @@ var Table = React23.forwardRef(({
3733
3774
  ...props
3734
3775
  }, ref) => {
3735
3776
  const striped = variant === "striped";
3736
- const sortContextValue = React23.useMemo(
3777
+ const sortContextValue = React12.useMemo(
3737
3778
  () => ({ sortColumn, sortDirection, onSortChange }),
3738
3779
  [sortColumn, sortDirection, onSortChange]
3739
3780
  );
3740
- const childrenWithProps = React23.Children.map(props.children, (child) => {
3741
- if (React23.isValidElement(child)) {
3781
+ const childrenWithProps = React12.Children.map(props.children, (child) => {
3782
+ if (React12.isValidElement(child)) {
3742
3783
  if (child.type === "tbody") {
3743
3784
  const tbodyProps = child.props;
3744
- return React23.cloneElement(child, {
3785
+ return React12.cloneElement(child, {
3745
3786
  className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
3746
3787
  });
3747
3788
  }
@@ -3766,10 +3807,10 @@ var Table = React23.forwardRef(({
3766
3807
  ] });
3767
3808
  });
3768
3809
  Table.displayName = "Table";
3769
- var TableHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3810
+ var TableHeader = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3770
3811
  TableHeader.displayName = "TableHeader";
3771
- var TableBody = React23.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3772
- const hasChildren = React23.Children.count(children) > 0;
3812
+ var TableBody = React12.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3813
+ const hasChildren = React12.Children.count(children) > 0;
3773
3814
  return /* @__PURE__ */ jsx(
3774
3815
  "tbody",
3775
3816
  {
@@ -3781,7 +3822,7 @@ var TableBody = React23.forwardRef(({ className, emptyContent, emptyMessage = "N
3781
3822
  );
3782
3823
  });
3783
3824
  TableBody.displayName = "TableBody";
3784
- var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3825
+ var TableFooter = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3785
3826
  "tfoot",
3786
3827
  {
3787
3828
  ref,
@@ -3790,7 +3831,7 @@ var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
3790
3831
  }
3791
3832
  ));
3792
3833
  TableFooter.displayName = "TableFooter";
3793
- var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3834
+ var TableRow = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3794
3835
  "tr",
3795
3836
  {
3796
3837
  ref,
@@ -3802,12 +3843,12 @@ var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3802
3843
  }
3803
3844
  ));
3804
3845
  TableRow.displayName = "TableRow";
3805
- var TableHead = React23.forwardRef(
3846
+ var TableHead = React12.forwardRef(
3806
3847
  ({ className, sortable, sorted, onSort, columnId, align = "left", children, ...props }, ref) => {
3807
- const sortCtx = React23.useContext(TableSortContext);
3848
+ const sortCtx = React12.useContext(TableSortContext);
3808
3849
  const ctxSorted = columnId && sortCtx && sortCtx.sortColumn === columnId ? sortCtx.sortDirection ?? null : null;
3809
3850
  const effectiveSorted = sorted !== void 0 ? sorted : ctxSorted;
3810
- const handleSort = React23.useCallback(() => {
3851
+ const handleSort = React12.useCallback(() => {
3811
3852
  if (onSort) {
3812
3853
  onSort();
3813
3854
  return;
@@ -3918,7 +3959,7 @@ var TableHead = React23.forwardRef(
3918
3959
  }
3919
3960
  );
3920
3961
  TableHead.displayName = "TableHead";
3921
- var TableCell = React23.forwardRef(({ className, align = "left", ...props }, ref) => {
3962
+ var TableCell = React12.forwardRef(({ className, align = "left", ...props }, ref) => {
3922
3963
  const alignmentClass = {
3923
3964
  left: "text-left",
3924
3965
  center: "text-center",
@@ -3934,7 +3975,7 @@ var TableCell = React23.forwardRef(({ className, align = "left", ...props }, ref
3934
3975
  );
3935
3976
  });
3936
3977
  TableCell.displayName = "TableCell";
3937
- var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3978
+ var TableCaption = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3938
3979
  "caption",
3939
3980
  {
3940
3981
  ref,
@@ -3954,8 +3995,8 @@ function DataTableBasic({
3954
3995
  emptyMessage = "No results found.",
3955
3996
  className
3956
3997
  }) {
3957
- const [sorting, setSorting] = React23.useState([]);
3958
- const [globalFilter, setGlobalFilter] = React23.useState("");
3998
+ const [sorting, setSorting] = React12.useState([]);
3999
+ const [globalFilter, setGlobalFilter] = React12.useState("");
3959
4000
  const table = useReactTable({
3960
4001
  data,
3961
4002
  columns,
@@ -4099,10 +4140,12 @@ var datePickerVariants = cva(
4099
4140
  ghost: "hover:bg-accent hover:text-accent-foreground"
4100
4141
  },
4101
4142
  size: {
4102
- default: "h-10 px-4 py-2",
4143
+ md: "h-10 px-4 py-2",
4103
4144
  sm: "h-8 px-3 text-sm",
4104
4145
  lg: "h-12 px-6 text-base",
4105
- icon: "h-10 w-10"
4146
+ icon: "h-10 w-10",
4147
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
4148
+ default: "h-10 px-4 py-2"
4106
4149
  },
4107
4150
  state: {
4108
4151
  default: "",
@@ -4113,12 +4156,12 @@ var datePickerVariants = cva(
4113
4156
  },
4114
4157
  defaultVariants: {
4115
4158
  variant: "default",
4116
- size: "default",
4159
+ size: "md",
4117
4160
  state: "default"
4118
4161
  }
4119
4162
  }
4120
4163
  );
4121
- var DatePicker = React23.forwardRef(function DatePicker2({
4164
+ var DatePicker = React12.forwardRef(function DatePicker2({
4122
4165
  className,
4123
4166
  variant,
4124
4167
  size,
@@ -4141,9 +4184,9 @@ var DatePicker = React23.forwardRef(function DatePicker2({
4141
4184
  disabled,
4142
4185
  ...props
4143
4186
  }, ref) {
4144
- const [open, setOpen] = React23.useState(false);
4145
- const [internalDate, setInternalDate] = React23.useState(value);
4146
- React23.useEffect(() => {
4187
+ const [open, setOpen] = React12.useState(false);
4188
+ const [internalDate, setInternalDate] = React12.useState(value);
4189
+ React12.useEffect(() => {
4147
4190
  setInternalDate(value);
4148
4191
  }, [value]);
4149
4192
  const handleSelect = (date) => {
@@ -4291,7 +4334,7 @@ var DatePicker = React23.forwardRef(function DatePicker2({
4291
4334
  ] }) });
4292
4335
  });
4293
4336
  DatePicker.displayName = "DatePicker";
4294
- var DateRangePicker = React23.forwardRef(function DateRangePicker2({
4337
+ var DateRangePicker = React12.forwardRef(function DateRangePicker2({
4295
4338
  className,
4296
4339
  value,
4297
4340
  onChange,
@@ -4300,9 +4343,9 @@ var DateRangePicker = React23.forwardRef(function DateRangePicker2({
4300
4343
  separator = " - ",
4301
4344
  ...props
4302
4345
  }, ref) {
4303
- const [open, setOpen] = React23.useState(false);
4304
- const [internalRange, setInternalRange] = React23.useState(value);
4305
- React23.useEffect(() => {
4346
+ const [open, setOpen] = React12.useState(false);
4347
+ const [internalRange, setInternalRange] = React12.useState(value);
4348
+ React12.useEffect(() => {
4306
4349
  setInternalRange(value);
4307
4350
  }, [value]);
4308
4351
  const handleSelect = (range) => {
@@ -4312,7 +4355,7 @@ var DateRangePicker = React23.forwardRef(function DateRangePicker2({
4312
4355
  setOpen(false);
4313
4356
  }
4314
4357
  };
4315
- const displayValue = React23.useMemo(() => {
4358
+ const displayValue = React12.useMemo(() => {
4316
4359
  if (!internalRange?.from)
4317
4360
  return null;
4318
4361
  if (!internalRange?.to) {
@@ -4360,7 +4403,7 @@ var DateRangePicker = React23.forwardRef(function DateRangePicker2({
4360
4403
  ] });
4361
4404
  });
4362
4405
  DateRangePicker.displayName = "DateRangePicker";
4363
- var DateTimePicker = React23.forwardRef(function DateTimePicker2({
4406
+ var DateTimePicker = React12.forwardRef(function DateTimePicker2({
4364
4407
  value,
4365
4408
  onChange,
4366
4409
  // Saat ayrı bir <select> ile gösterildiği için buton yalnızca TARİHİ yazar;
@@ -4372,8 +4415,8 @@ var DateTimePicker = React23.forwardRef(function DateTimePicker2({
4372
4415
  timeInterval = 15,
4373
4416
  ...props
4374
4417
  }, ref) {
4375
- const [date, setDate] = React23.useState(value);
4376
- const [time, setTime] = React23.useState(
4418
+ const [date, setDate] = React12.useState(value);
4419
+ const [time, setTime] = React12.useState(
4377
4420
  value ? format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
4378
4421
  );
4379
4422
  const handleDateChange = (newDate) => {
@@ -4398,7 +4441,7 @@ var DateTimePicker = React23.forwardRef(function DateTimePicker2({
4398
4441
  onChange?.(newDate);
4399
4442
  }
4400
4443
  };
4401
- const timeOptions = React23.useMemo(() => {
4444
+ const timeOptions = React12.useMemo(() => {
4402
4445
  const options = [];
4403
4446
  for (let h = 0; h < 24; h++) {
4404
4447
  for (let m = 0; m < 60; m += timeInterval) {
@@ -4452,15 +4495,15 @@ var DateTimePicker = React23.forwardRef(function DateTimePicker2({
4452
4495
  ] });
4453
4496
  });
4454
4497
  DateTimePicker.displayName = "DateTimePicker";
4455
- var MonthPicker = React23.forwardRef(function MonthPicker2({
4498
+ var MonthPicker = React12.forwardRef(function MonthPicker2({
4456
4499
  value,
4457
4500
  onChange,
4458
4501
  placeholder = "Pick a month",
4459
4502
  formatString = "MMMM yyyy",
4460
4503
  ...props
4461
4504
  }, ref) {
4462
- const [open, setOpen] = React23.useState(false);
4463
- const [viewDate, setViewDate] = React23.useState(value || /* @__PURE__ */ new Date());
4505
+ const [open, setOpen] = React12.useState(false);
4506
+ const [viewDate, setViewDate] = React12.useState(value || /* @__PURE__ */ new Date());
4464
4507
  const months = [
4465
4508
  "January",
4466
4509
  "February",
@@ -4556,7 +4599,7 @@ function DraggableList({
4556
4599
  className,
4557
4600
  disabled = false
4558
4601
  }) {
4559
- const [draggedIndex, setDraggedIndex] = React23.useState(null);
4602
+ const [draggedIndex, setDraggedIndex] = React12.useState(null);
4560
4603
  const handleDragStart = (e, index) => {
4561
4604
  if (disabled)
4562
4605
  return;
@@ -4608,7 +4651,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
4608
4651
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
4609
4652
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
4610
4653
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
4611
- var DropdownMenuSubTrigger = React23.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4654
+ var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4612
4655
  DropdownMenuPrimitive.SubTrigger,
4613
4656
  {
4614
4657
  ref,
@@ -4625,7 +4668,7 @@ var DropdownMenuSubTrigger = React23.forwardRef(({ className, inset, children, .
4625
4668
  }
4626
4669
  ));
4627
4670
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
4628
- var DropdownMenuSubContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4671
+ var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4629
4672
  DropdownMenuPrimitive.SubContent,
4630
4673
  {
4631
4674
  ref,
@@ -4637,7 +4680,7 @@ var DropdownMenuSubContent = React23.forwardRef(({ className, ...props }, ref) =
4637
4680
  }
4638
4681
  ));
4639
4682
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
4640
- var DropdownMenuContent = React23.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4683
+ var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4641
4684
  DropdownMenuPrimitive.Content,
4642
4685
  {
4643
4686
  ref,
@@ -4650,7 +4693,7 @@ var DropdownMenuContent = React23.forwardRef(({ className, sideOffset = 4, ...pr
4650
4693
  }
4651
4694
  ) }));
4652
4695
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4653
- var DropdownMenuItem = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4696
+ var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4654
4697
  DropdownMenuPrimitive.Item,
4655
4698
  {
4656
4699
  ref,
@@ -4663,7 +4706,7 @@ var DropdownMenuItem = React23.forwardRef(({ className, inset, ...props }, ref)
4663
4706
  }
4664
4707
  ));
4665
4708
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4666
- var DropdownMenuCheckboxItem = React23.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4709
+ var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
4667
4710
  DropdownMenuPrimitive.CheckboxItem,
4668
4711
  {
4669
4712
  ref,
@@ -4680,7 +4723,7 @@ var DropdownMenuCheckboxItem = React23.forwardRef(({ className, children, checke
4680
4723
  }
4681
4724
  ));
4682
4725
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
4683
- var DropdownMenuRadioItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4726
+ var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
4684
4727
  DropdownMenuPrimitive.RadioItem,
4685
4728
  {
4686
4729
  ref,
@@ -4696,7 +4739,7 @@ var DropdownMenuRadioItem = React23.forwardRef(({ className, children, ...props
4696
4739
  }
4697
4740
  ));
4698
4741
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
4699
- var DropdownMenuLabel = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4742
+ var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
4700
4743
  DropdownMenuPrimitive.Label,
4701
4744
  {
4702
4745
  ref,
@@ -4709,7 +4752,7 @@ var DropdownMenuLabel = React23.forwardRef(({ className, inset, ...props }, ref)
4709
4752
  }
4710
4753
  ));
4711
4754
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4712
- var DropdownMenuSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4755
+ var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4713
4756
  DropdownMenuPrimitive.Separator,
4714
4757
  {
4715
4758
  ref,
@@ -4746,10 +4789,12 @@ var progressVariants = cva(
4746
4789
  size: {
4747
4790
  xs: "h-1",
4748
4791
  sm: "h-1.5",
4749
- default: "h-2",
4750
- md: "h-2.5",
4751
- lg: "h-3",
4752
- xl: "h-4"
4792
+ md: "h-2",
4793
+ lg: "h-2.5",
4794
+ xl: "h-3",
4795
+ "2xl": "h-4",
4796
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
4797
+ default: "h-2"
4753
4798
  },
4754
4799
  radius: {
4755
4800
  none: "rounded-none",
@@ -4767,7 +4812,7 @@ var progressVariants = cva(
4767
4812
  },
4768
4813
  defaultVariants: {
4769
4814
  variant: "default",
4770
- size: "default",
4815
+ size: "md",
4771
4816
  radius: "full",
4772
4817
  animation: "default"
4773
4818
  }
@@ -4798,7 +4843,7 @@ var progressIndicatorVariants = cva(
4798
4843
  }
4799
4844
  }
4800
4845
  );
4801
- var Progress = React23.forwardRef(({
4846
+ var Progress = React12.forwardRef(({
4802
4847
  className,
4803
4848
  value = 0,
4804
4849
  variant,
@@ -4928,7 +4973,7 @@ var FileItem = ({
4928
4973
  }
4929
4974
  );
4930
4975
  };
4931
- var FileUpload = React23__default.forwardRef(
4976
+ var FileUpload = React12__default.forwardRef(
4932
4977
  ({
4933
4978
  accept = "*",
4934
4979
  multiple = true,
@@ -5151,7 +5196,7 @@ var FileUpload = React23__default.forwardRef(
5151
5196
  }
5152
5197
  );
5153
5198
  FileUpload.displayName = "FileUpload";
5154
- var GestureDrawer = React23__default.forwardRef(
5199
+ var GestureDrawer = React12__default.forwardRef(
5155
5200
  ({
5156
5201
  children,
5157
5202
  isOpen,
@@ -5422,7 +5467,7 @@ function GitHubStarButton({
5422
5467
  }
5423
5468
  );
5424
5469
  }
5425
- var InputOTP = React23.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5470
+ var InputOTP = React12.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
5426
5471
  OTPInput,
5427
5472
  {
5428
5473
  ref,
@@ -5437,7 +5482,7 @@ var InputOTP = React23.forwardRef(({ className, containerClassName, ...props },
5437
5482
  }
5438
5483
  ));
5439
5484
  InputOTP.displayName = "InputOTP";
5440
- var InputOTPGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5485
+ var InputOTPGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5441
5486
  InputOTPGroup.displayName = "InputOTPGroup";
5442
5487
  var inputOTPSlotVariants = cva(
5443
5488
  [
@@ -5459,9 +5504,9 @@ var inputOTPSlotVariants = cva(
5459
5504
  }
5460
5505
  }
5461
5506
  );
5462
- var InputOTPSlot = React23.forwardRef(
5507
+ var InputOTPSlot = React12.forwardRef(
5463
5508
  ({ index, className, ...props }, ref) => {
5464
- const inputOTPContext = React23.useContext(OTPInputContext);
5509
+ const inputOTPContext = React12.useContext(OTPInputContext);
5465
5510
  const slot = inputOTPContext?.slots?.[index];
5466
5511
  const char = slot?.char;
5467
5512
  const hasFakeCaret = slot?.hasFakeCaret;
@@ -5483,7 +5528,7 @@ var InputOTPSlot = React23.forwardRef(
5483
5528
  }
5484
5529
  );
5485
5530
  InputOTPSlot.displayName = "InputOTPSlot";
5486
- var InputOTPSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5531
+ var InputOTPSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5487
5532
  "div",
5488
5533
  {
5489
5534
  ref,
@@ -5782,7 +5827,7 @@ function MoonLogo({
5782
5827
  showText = true,
5783
5828
  ...props
5784
5829
  }) {
5785
- const logoId = React23.useId();
5830
+ const logoId = React12.useId();
5786
5831
  const gradientId = `moon-gradient-${logoId}`;
5787
5832
  const maskId = `moon-mask-${logoId}`;
5788
5833
  return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", className), children: [
@@ -5854,7 +5899,7 @@ function MoonLogoAnimated({
5854
5899
  }
5855
5900
  );
5856
5901
  }
5857
- var Pagination = React23.forwardRef(
5902
+ var Pagination = React12.forwardRef(
5858
5903
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5859
5904
  "nav",
5860
5905
  {
@@ -5867,7 +5912,7 @@ var Pagination = React23.forwardRef(
5867
5912
  )
5868
5913
  );
5869
5914
  Pagination.displayName = "Pagination";
5870
- var PaginationContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5915
+ var PaginationContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5871
5916
  "ul",
5872
5917
  {
5873
5918
  ref,
@@ -5876,9 +5921,9 @@ var PaginationContent = React23.forwardRef(({ className, ...props }, ref) => /*
5876
5921
  }
5877
5922
  ));
5878
5923
  PaginationContent.displayName = "PaginationContent";
5879
- var PaginationItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5924
+ var PaginationItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5880
5925
  PaginationItem.displayName = "PaginationItem";
5881
- var PaginationLink = React23.forwardRef(
5926
+ var PaginationLink = React12.forwardRef(
5882
5927
  ({ className, isActive, size = "icon", ...props }, ref) => /* @__PURE__ */ jsx(
5883
5928
  "a",
5884
5929
  {
@@ -5897,7 +5942,7 @@ var PaginationLink = React23.forwardRef(
5897
5942
  );
5898
5943
  PaginationLink.displayName = "PaginationLink";
5899
5944
  var paginationLabelClass = "hidden sm:inline";
5900
- var PaginationPrevious = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
5945
+ var PaginationPrevious = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
5901
5946
  PaginationLink,
5902
5947
  {
5903
5948
  ref,
@@ -5912,7 +5957,7 @@ var PaginationPrevious = React23.forwardRef(({ className, ...props }, ref) => /*
5912
5957
  }
5913
5958
  ));
5914
5959
  PaginationPrevious.displayName = "PaginationPrevious";
5915
- var PaginationNext = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
5960
+ var PaginationNext = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
5916
5961
  PaginationLink,
5917
5962
  {
5918
5963
  ref,
@@ -5927,7 +5972,7 @@ var PaginationNext = React23.forwardRef(({ className, ...props }, ref) => /* @__
5927
5972
  }
5928
5973
  ));
5929
5974
  PaginationNext.displayName = "PaginationNext";
5930
- var PaginationEllipsis = React23.forwardRef(({ className, ...props }, ref) => (
5975
+ var PaginationEllipsis = React12.forwardRef(({ className, ...props }, ref) => (
5931
5976
  // #315: `aria-hidden` ESKİDEN BU ELEMANDAYDI → içindeki `sr-only` "More pages" metni
5932
5977
  // erişilebilirlik ağacından düşüyor, hiç duyurulmuyordu. Gizleme artık yalnız dekoratif
5933
5978
  // ikonda. (breadcrumb.tsx'te birebir aynı çakışma vardı — aynı PR'da düzeltildi.)
@@ -5981,7 +6026,7 @@ var selectTriggerVariants = cva(
5981
6026
  }
5982
6027
  }
5983
6028
  );
5984
- var SelectTrigger = React23.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
6029
+ var SelectTrigger = React12.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
5985
6030
  SelectPrimitive.Trigger,
5986
6031
  {
5987
6032
  ref,
@@ -6012,7 +6057,7 @@ var SelectTrigger = React23.forwardRef(({ className, children, variant, size, er
6012
6057
  }
6013
6058
  ));
6014
6059
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
6015
- var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6060
+ var SelectScrollUpButton = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6016
6061
  SelectPrimitive.ScrollUpButton,
6017
6062
  {
6018
6063
  ref,
@@ -6025,7 +6070,7 @@ var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) =>
6025
6070
  }
6026
6071
  ));
6027
6072
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
6028
- var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6073
+ var SelectScrollDownButton = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6029
6074
  SelectPrimitive.ScrollDownButton,
6030
6075
  {
6031
6076
  ref,
@@ -6038,7 +6083,7 @@ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) =
6038
6083
  }
6039
6084
  ));
6040
6085
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
6041
- var SelectContent = React23.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
6086
+ var SelectContent = React12.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
6042
6087
  SelectPrimitive.Content,
6043
6088
  {
6044
6089
  ref,
@@ -6079,7 +6124,7 @@ var SelectContent = React23.forwardRef(({ className, children, position = "poppe
6079
6124
  }
6080
6125
  ) }));
6081
6126
  SelectContent.displayName = SelectPrimitive.Content.displayName;
6082
- var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6127
+ var SelectLabel = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6083
6128
  SelectPrimitive.Label,
6084
6129
  {
6085
6130
  ref,
@@ -6088,7 +6133,7 @@ var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
6088
6133
  }
6089
6134
  ));
6090
6135
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
6091
- var SelectItem = React23.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
6136
+ var SelectItem = React12.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
6092
6137
  SelectPrimitive.Item,
6093
6138
  {
6094
6139
  ref,
@@ -6118,7 +6163,7 @@ var SelectItem = React23.forwardRef(({ className, children, variant = "default",
6118
6163
  }
6119
6164
  ));
6120
6165
  SelectItem.displayName = SelectPrimitive.Item.displayName;
6121
- var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6166
+ var SelectSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6122
6167
  SelectPrimitive.Separator,
6123
6168
  {
6124
6169
  ref,
@@ -6200,7 +6245,7 @@ var getMaxLength = (countryCode) => {
6200
6245
  return 15;
6201
6246
  }
6202
6247
  };
6203
- var PhoneInput = React23.forwardRef(
6248
+ var PhoneInput = React12.forwardRef(
6204
6249
  ({
6205
6250
  className,
6206
6251
  value = "",
@@ -6212,8 +6257,8 @@ var PhoneInput = React23.forwardRef(
6212
6257
  size,
6213
6258
  ...props
6214
6259
  }, ref) => {
6215
- const [countryCode, setCountryCode] = React23.useState(defaultCountry);
6216
- const [phoneNumber, setPhoneNumber] = React23.useState(value);
6260
+ const [countryCode, setCountryCode] = React12.useState(defaultCountry);
6261
+ const [phoneNumber, setPhoneNumber] = React12.useState(value);
6217
6262
  const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
6218
6263
  const handlePhoneChange = (e) => {
6219
6264
  const rawValue = e.target.value.replace(/\D/g, "");
@@ -6273,26 +6318,28 @@ var radioGroupItemVariants = cva(
6273
6318
  },
6274
6319
  size: {
6275
6320
  sm: "h-3.5 w-3.5",
6276
- default: "h-4 w-4",
6277
- md: "h-5 w-5",
6278
- lg: "h-6 w-6"
6321
+ md: "h-4 w-4",
6322
+ lg: "h-5 w-5",
6323
+ xl: "h-6 w-6",
6324
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
6325
+ default: "h-4 w-4"
6279
6326
  }
6280
6327
  },
6281
6328
  defaultVariants: {
6282
6329
  variant: "default",
6283
- size: "default"
6330
+ size: "md"
6284
6331
  }
6285
6332
  }
6286
6333
  );
6287
- var RadioGroupContext = React23.createContext({});
6288
- var RadioGroup2 = React23.forwardRef(
6334
+ var RadioGroupContext = React12.createContext({});
6335
+ var RadioGroup2 = React12.forwardRef(
6289
6336
  ({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
6290
- const [internalValue, setInternalValue] = React23.useState(
6337
+ const [internalValue, setInternalValue] = React12.useState(
6291
6338
  defaultValue
6292
6339
  );
6293
6340
  const isControlled = value !== void 0;
6294
6341
  const currentValue = isControlled ? value : internalValue;
6295
- const handleValueChange = React23.useCallback(
6342
+ const handleValueChange = React12.useCallback(
6296
6343
  (next) => {
6297
6344
  if (!isControlled) {
6298
6345
  setInternalValue(next);
@@ -6324,9 +6371,9 @@ var RadioGroup2 = React23.forwardRef(
6324
6371
  }
6325
6372
  );
6326
6373
  RadioGroup2.displayName = "RadioGroup";
6327
- var RadioGroupItem = React23.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6328
- const radioGroup = React23.useContext(RadioGroupContext);
6329
- const generatedId = React23.useId();
6374
+ var RadioGroupItem = React12.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6375
+ const radioGroup = React12.useContext(RadioGroupContext);
6376
+ const generatedId = React12.useId();
6330
6377
  const radioId = id || generatedId;
6331
6378
  const isChecked = radioGroup.value === value;
6332
6379
  const handleChange = (e) => {
@@ -6379,7 +6426,7 @@ var RadioGroupItem = React23.forwardRef(({ className, variant, size, indicator,
6379
6426
  ] });
6380
6427
  });
6381
6428
  RadioGroupItem.displayName = "RadioGroupItem";
6382
- var RadioLabel = React23.forwardRef(
6429
+ var RadioLabel = React12.forwardRef(
6383
6430
  ({ className, htmlFor, children, disabled = false, ...props }, ref) => {
6384
6431
  return /* @__PURE__ */ jsx(
6385
6432
  "label",
@@ -6398,13 +6445,13 @@ var RadioLabel = React23.forwardRef(
6398
6445
  }
6399
6446
  );
6400
6447
  RadioLabel.displayName = "RadioLabel";
6401
- var RadioItemWithLabel = React23.forwardRef(({
6448
+ var RadioItemWithLabel = React12.forwardRef(({
6402
6449
  id,
6403
6450
  label,
6404
6451
  labelClassName,
6405
6452
  ...radioProps
6406
6453
  }, ref) => {
6407
- const generatedId = React23.useId();
6454
+ const generatedId = React12.useId();
6408
6455
  const radioId = id || generatedId;
6409
6456
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
6410
6457
  /* @__PURE__ */ jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
@@ -6481,21 +6528,28 @@ function RichTextEditor({
6481
6528
  )
6482
6529
  ] });
6483
6530
  }
6484
- var ScrollArea = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6531
+ var ScrollArea = React12.forwardRef(({ className, children, focusable = true, ...props }, ref) => /* @__PURE__ */ jsxs(
6485
6532
  ScrollAreaPrimitive.Root,
6486
6533
  {
6487
6534
  ref,
6488
6535
  className: cn("relative overflow-hidden", className),
6489
6536
  ...props,
6490
6537
  children: [
6491
- /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
6538
+ /* @__PURE__ */ jsx(
6539
+ ScrollAreaPrimitive.Viewport,
6540
+ {
6541
+ tabIndex: focusable ? 0 : void 0,
6542
+ className: "h-full w-full rounded-[inherit]",
6543
+ children
6544
+ }
6545
+ ),
6492
6546
  /* @__PURE__ */ jsx(ScrollBar, {}),
6493
6547
  /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
6494
6548
  ]
6495
6549
  }
6496
6550
  ));
6497
6551
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
6498
- var ScrollBar = React23.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6552
+ var ScrollBar = React12.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
6499
6553
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6500
6554
  {
6501
6555
  ref,
@@ -6549,7 +6603,7 @@ var defaultTransition = {
6549
6603
  ease: [0.25, 0.46, 0.45, 0.94]
6550
6604
  // Custom cubic-bezier for smooth motion
6551
6605
  };
6552
- var ScrollReveal = React23.forwardRef(
6606
+ var ScrollReveal = React12.forwardRef(
6553
6607
  ({
6554
6608
  children,
6555
6609
  direction = "up",
@@ -6570,17 +6624,17 @@ var ScrollReveal = React23.forwardRef(
6570
6624
  viewport
6571
6625
  }, ref) => {
6572
6626
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6573
- const animationVariants = React23.useMemo(() => {
6627
+ const animationVariants = React12.useMemo(() => {
6574
6628
  if (variants)
6575
6629
  return variants;
6576
6630
  return createDefaultVariants(direction, distance);
6577
6631
  }, [direction, distance, variants]);
6578
- const transition = React23.useMemo(() => ({
6632
+ const transition = React12.useMemo(() => ({
6579
6633
  ...defaultTransition,
6580
6634
  duration,
6581
6635
  delay: delay + stagger
6582
6636
  }), [duration, delay, stagger]);
6583
- const viewportConfig = React23.useMemo(() => ({
6637
+ const viewportConfig = React12.useMemo(() => ({
6584
6638
  once: shouldTriggerOnce,
6585
6639
  amount: threshold,
6586
6640
  ...viewport
@@ -6615,7 +6669,7 @@ var ScrollReveal = React23.forwardRef(
6615
6669
  }
6616
6670
  );
6617
6671
  ScrollReveal.displayName = "ScrollReveal";
6618
- var ScrollRevealContainer = React23.forwardRef(
6672
+ var ScrollRevealContainer = React12.forwardRef(
6619
6673
  ({
6620
6674
  children,
6621
6675
  stagger = 0.1,
@@ -6628,7 +6682,7 @@ var ScrollRevealContainer = React23.forwardRef(
6628
6682
  viewport
6629
6683
  }, ref) => {
6630
6684
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6631
- const viewportConfig = React23.useMemo(() => ({
6685
+ const viewportConfig = React12.useMemo(() => ({
6632
6686
  once: shouldTriggerOnce,
6633
6687
  amount: threshold,
6634
6688
  ...viewport
@@ -6659,7 +6713,7 @@ var ScrollRevealContainer = React23.forwardRef(
6659
6713
  }
6660
6714
  );
6661
6715
  ScrollRevealContainer.displayName = "ScrollRevealContainer";
6662
- var ScrollRevealItem = React23.forwardRef(
6716
+ var ScrollRevealItem = React12.forwardRef(
6663
6717
  ({
6664
6718
  children,
6665
6719
  direction = "up",
@@ -6670,12 +6724,12 @@ var ScrollRevealItem = React23.forwardRef(
6670
6724
  style,
6671
6725
  id
6672
6726
  }, ref) => {
6673
- const animationVariants = React23.useMemo(() => {
6727
+ const animationVariants = React12.useMemo(() => {
6674
6728
  if (variants)
6675
6729
  return variants;
6676
6730
  return createDefaultVariants(direction, distance);
6677
6731
  }, [direction, distance, variants]);
6678
- const transition = React23.useMemo(() => ({
6732
+ const transition = React12.useMemo(() => ({
6679
6733
  ...defaultTransition,
6680
6734
  duration
6681
6735
  }), [duration]);
@@ -6791,7 +6845,7 @@ var separatorVariants = cva(
6791
6845
  }
6792
6846
  }
6793
6847
  );
6794
- var Separator3 = React23.forwardRef(
6848
+ var Separator3 = React12.forwardRef(
6795
6849
  ({
6796
6850
  className,
6797
6851
  orientation = "horizontal",
@@ -6823,18 +6877,20 @@ var toggleVariants = cva(
6823
6877
  outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
6824
6878
  },
6825
6879
  size: {
6826
- default: "h-10 px-3",
6880
+ md: "h-10 px-3",
6827
6881
  sm: "h-9 px-2.5",
6828
- lg: "h-11 px-5"
6882
+ lg: "h-11 px-5",
6883
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
6884
+ default: "h-10 px-3"
6829
6885
  }
6830
6886
  },
6831
6887
  defaultVariants: {
6832
6888
  variant: "default",
6833
- size: "default"
6889
+ size: "md"
6834
6890
  }
6835
6891
  }
6836
6892
  );
6837
- var Toggle = React23.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6893
+ var Toggle = React12.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
6838
6894
  TogglePrimitive.Root,
6839
6895
  {
6840
6896
  ref,
@@ -6870,7 +6926,7 @@ var tooltipVariants = cva(
6870
6926
  );
6871
6927
  var Tooltip = TooltipPrimitive.Root;
6872
6928
  var TooltipTrigger = TooltipPrimitive.Trigger;
6873
- var TooltipArrow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6929
+ var TooltipArrow = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6874
6930
  TooltipPrimitive.Arrow,
6875
6931
  {
6876
6932
  ref,
@@ -6879,7 +6935,7 @@ var TooltipArrow = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
6879
6935
  }
6880
6936
  ));
6881
6937
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
6882
- var TooltipContent = React23.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6938
+ var TooltipContent = React12.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
6883
6939
  TooltipPrimitive.Content,
6884
6940
  {
6885
6941
  ref,
@@ -6893,7 +6949,7 @@ var TooltipContent = React23.forwardRef(({ className, variant, size, showArrow =
6893
6949
  }
6894
6950
  ));
6895
6951
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
6896
- var SimpleTooltip = React23.forwardRef(
6952
+ var SimpleTooltip = React12.forwardRef(
6897
6953
  ({
6898
6954
  children,
6899
6955
  content,
@@ -6981,7 +7037,7 @@ var ColorPicker2 = ({ onColorSelect }) => {
6981
7037
  color
6982
7038
  )) });
6983
7039
  };
6984
- var SimpleEditor = React23__default.forwardRef(
7040
+ var SimpleEditor = React12__default.forwardRef(
6985
7041
  ({
6986
7042
  value = "",
6987
7043
  onChange,
@@ -6998,8 +7054,8 @@ var SimpleEditor = React23__default.forwardRef(
6998
7054
  const [isPreview, setIsPreview] = useState(false);
6999
7055
  const [sourceContent, setSourceContent] = useState(value);
7000
7056
  useState(null);
7001
- const editorRef = React23__default.useRef(null);
7002
- const sourceRef = React23__default.useRef(null);
7057
+ const editorRef = React12__default.useRef(null);
7058
+ const sourceRef = React12__default.useRef(null);
7003
7059
  const [formatState, setFormatState] = useState({
7004
7060
  bold: false,
7005
7061
  italic: false,
@@ -7133,12 +7189,12 @@ var SimpleEditor = React23__default.forwardRef(
7133
7189
  }
7134
7190
  }
7135
7191
  }, [executeCommand, updateContent]);
7136
- React23__default.useEffect(() => {
7192
+ React12__default.useEffect(() => {
7137
7193
  if (editorRef.current && content && content !== editorRef.current.innerHTML) {
7138
7194
  editorRef.current.innerHTML = content;
7139
7195
  }
7140
7196
  }, [content]);
7141
- React23__default.useEffect(() => {
7197
+ React12__default.useEffect(() => {
7142
7198
  if (value !== void 0 && value !== content) {
7143
7199
  setContent(value);
7144
7200
  setSourceContent(value);
@@ -7525,9 +7581,11 @@ var skeletonVariants = cva(
7525
7581
  accent: "bg-accent"
7526
7582
  },
7527
7583
  size: {
7528
- default: "",
7584
+ md: "",
7529
7585
  sm: "scale-90",
7530
- lg: "scale-110"
7586
+ lg: "scale-110",
7587
+ /** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
7588
+ default: ""
7531
7589
  },
7532
7590
  shape: {
7533
7591
  rect: "rounded-md",
@@ -7542,13 +7600,13 @@ var skeletonVariants = cva(
7542
7600
  },
7543
7601
  defaultVariants: {
7544
7602
  variant: "default",
7545
- size: "default",
7603
+ size: "md",
7546
7604
  shape: "rect",
7547
7605
  animation: "pulse"
7548
7606
  }
7549
7607
  }
7550
7608
  );
7551
- var Skeleton = React23.forwardRef(
7609
+ var Skeleton = React12.forwardRef(
7552
7610
  ({
7553
7611
  className,
7554
7612
  variant,
@@ -7614,6 +7672,7 @@ var Skeleton = React23.forwardRef(
7614
7672
  SkeletonElement,
7615
7673
  {
7616
7674
  ref,
7675
+ "aria-hidden": "true",
7617
7676
  className: cn(
7618
7677
  "moonui-theme",
7619
7678
  skeletonVariants({ variant, size, shape, animation }),
@@ -7632,7 +7691,7 @@ var Skeleton = React23.forwardRef(
7632
7691
  }
7633
7692
  );
7634
7693
  Skeleton.displayName = "Skeleton";
7635
- var SkeletonText = React23.forwardRef(
7694
+ var SkeletonText = React12.forwardRef(
7636
7695
  ({
7637
7696
  className,
7638
7697
  lines = 3,
@@ -7673,7 +7732,7 @@ var SkeletonText = React23.forwardRef(
7673
7732
  }
7674
7733
  );
7675
7734
  SkeletonText.displayName = "SkeletonText";
7676
- var SkeletonAvatar = React23.forwardRef(
7735
+ var SkeletonAvatar = React12.forwardRef(
7677
7736
  ({
7678
7737
  className,
7679
7738
  size = "2.5rem",
@@ -7699,7 +7758,7 @@ var SkeletonAvatar = React23.forwardRef(
7699
7758
  }
7700
7759
  );
7701
7760
  SkeletonAvatar.displayName = "SkeletonAvatar";
7702
- var SkeletonCard = React23.forwardRef(
7761
+ var SkeletonCard = React12.forwardRef(
7703
7762
  ({
7704
7763
  className,
7705
7764
  showHeader = true,
@@ -7773,11 +7832,11 @@ var SkeletonCard = React23.forwardRef(
7773
7832
  }
7774
7833
  );
7775
7834
  SkeletonCard.displayName = "SkeletonCard";
7776
- var SwipeableCard = React23.forwardRef(
7835
+ var SwipeableCard = React12.forwardRef(
7777
7836
  ({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
7778
- const [startX, setStartX] = React23.useState(0);
7779
- const [currentX, setCurrentX] = React23.useState(0);
7780
- const [isSwiping, setIsSwiping] = React23.useState(false);
7837
+ const [startX, setStartX] = React12.useState(0);
7838
+ const [currentX, setCurrentX] = React12.useState(0);
7839
+ const [isSwiping, setIsSwiping] = React12.useState(false);
7781
7840
  const handleTouchStart = (e) => {
7782
7841
  if (disabled)
7783
7842
  return;
@@ -7872,7 +7931,7 @@ var switchThumbVariants = cva(
7872
7931
  }
7873
7932
  }
7874
7933
  );
7875
- var Switch = React23.forwardRef(({
7934
+ var Switch = React12.forwardRef(({
7876
7935
  className,
7877
7936
  size,
7878
7937
  variant,
@@ -7883,7 +7942,7 @@ var Switch = React23.forwardRef(({
7883
7942
  "aria-describedby": ariaDescribedBy,
7884
7943
  ...props
7885
7944
  }, ref) => {
7886
- const reactId = React23.useId();
7945
+ const reactId = React12.useId();
7887
7946
  const descriptionId = description ? `${reactId}-description` : void 0;
7888
7947
  const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
7889
7948
  return /* @__PURE__ */ jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
@@ -7911,7 +7970,7 @@ var Switch = React23.forwardRef(({
7911
7970
  ] });
7912
7971
  });
7913
7972
  Switch.displayName = SwitchPrimitives.Root.displayName;
7914
- var TagsInput = React23.forwardRef(
7973
+ var TagsInput = React12.forwardRef(
7915
7974
  ({
7916
7975
  value = [],
7917
7976
  onChange,
@@ -7924,12 +7983,12 @@ var TagsInput = React23.forwardRef(
7924
7983
  disabled,
7925
7984
  ...props
7926
7985
  }, ref) => {
7927
- const [inputValue, setInputValue] = React23.useState("");
7928
- const [error, setError] = React23.useState("");
7929
- const innerInputRef = React23.useRef(null);
7930
- React23.useImperativeHandle(ref, () => innerInputRef.current);
7931
- const tagButtonRefs = React23.useRef([]);
7932
- const errorId = React23.useId();
7986
+ const [inputValue, setInputValue] = React12.useState("");
7987
+ const [error, setError] = React12.useState("");
7988
+ const innerInputRef = React12.useRef(null);
7989
+ React12.useImperativeHandle(ref, () => innerInputRef.current);
7990
+ const tagButtonRefs = React12.useRef([]);
7991
+ const errorId = React12.useId();
7933
7992
  const focusTag = (index) => {
7934
7993
  if (value.length === 0)
7935
7994
  return;
@@ -8106,7 +8165,7 @@ var textareaVariants = cva(
8106
8165
  }
8107
8166
  }
8108
8167
  );
8109
- var Textarea = React23.forwardRef(
8168
+ var Textarea = React12.forwardRef(
8110
8169
  ({
8111
8170
  className,
8112
8171
  wrapperClassName,
@@ -8126,12 +8185,12 @@ var Textarea = React23.forwardRef(
8126
8185
  onChange,
8127
8186
  ...props
8128
8187
  }, ref) => {
8129
- const reactId = React23.useId();
8188
+ const reactId = React12.useId();
8130
8189
  const fieldId = props.id || reactId;
8131
- const textareaRef = React23.useRef(null);
8132
- const [internalValue, setInternalValue] = React23.useState(value || defaultValue || "");
8133
- React23.useImperativeHandle(ref, () => textareaRef.current);
8134
- const adjustHeight = React23.useCallback(() => {
8190
+ const textareaRef = React12.useRef(null);
8191
+ const [internalValue, setInternalValue] = React12.useState(value || defaultValue || "");
8192
+ React12.useImperativeHandle(ref, () => textareaRef.current);
8193
+ const adjustHeight = React12.useCallback(() => {
8135
8194
  const textarea = textareaRef.current;
8136
8195
  if (!textarea || !autoResize)
8137
8196
  return;
@@ -8145,10 +8204,10 @@ var Textarea = React23.forwardRef(
8145
8204
  textarea.style.overflowY = "hidden";
8146
8205
  }
8147
8206
  }, [autoResize, maxHeight]);
8148
- React23.useEffect(() => {
8207
+ React12.useEffect(() => {
8149
8208
  adjustHeight();
8150
8209
  }, [internalValue, adjustHeight]);
8151
- React23.useEffect(() => {
8210
+ React12.useEffect(() => {
8152
8211
  if (value !== void 0) {
8153
8212
  setInternalValue(value);
8154
8213
  }
@@ -8214,7 +8273,7 @@ var Textarea = React23.forwardRef(
8214
8273
  );
8215
8274
  Textarea.displayName = "Textarea";
8216
8275
  var ToastProvider = ToastPrimitives.Provider;
8217
- var ToastViewport = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8276
+ var ToastViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8218
8277
  ToastPrimitives.Viewport,
8219
8278
  {
8220
8279
  ref,
@@ -8243,7 +8302,7 @@ var toastVariants = cva(
8243
8302
  }
8244
8303
  }
8245
8304
  );
8246
- var Toast = React23.forwardRef(({ className, variant, ...props }, ref) => {
8305
+ var Toast = React12.forwardRef(({ className, variant, ...props }, ref) => {
8247
8306
  return /* @__PURE__ */ jsx(
8248
8307
  ToastPrimitives.Root,
8249
8308
  {
@@ -8254,7 +8313,7 @@ var Toast = React23.forwardRef(({ className, variant, ...props }, ref) => {
8254
8313
  );
8255
8314
  });
8256
8315
  Toast.displayName = ToastPrimitives.Root.displayName;
8257
- var ToastAction = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8316
+ var ToastAction = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8258
8317
  ToastPrimitives.Action,
8259
8318
  {
8260
8319
  ref,
@@ -8266,7 +8325,7 @@ var ToastAction = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
8266
8325
  }
8267
8326
  ));
8268
8327
  ToastAction.displayName = ToastPrimitives.Action.displayName;
8269
- var ToastClose = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
8328
+ var ToastClose = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
8270
8329
  ToastPrimitives.Close,
8271
8330
  {
8272
8331
  ref,
@@ -8283,7 +8342,7 @@ var ToastClose = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
8283
8342
  }
8284
8343
  ));
8285
8344
  ToastClose.displayName = ToastPrimitives.Close.displayName;
8286
- var ToastTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8345
+ var ToastTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8287
8346
  ToastPrimitives.Title,
8288
8347
  {
8289
8348
  ref,
@@ -8292,7 +8351,7 @@ var ToastTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE
8292
8351
  }
8293
8352
  ));
8294
8353
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
8295
- var ToastDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8354
+ var ToastDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8296
8355
  ToastPrimitives.Description,
8297
8356
  {
8298
8357
  ref,
@@ -8400,8 +8459,8 @@ function toast({ ...props }) {
8400
8459
  };
8401
8460
  }
8402
8461
  function useToast() {
8403
- const [state, setState] = React23.useState(memoryState);
8404
- React23.useEffect(() => {
8462
+ const [state, setState] = React12.useState(memoryState);
8463
+ React12.useEffect(() => {
8405
8464
  listeners.push(setState);
8406
8465
  return () => {
8407
8466
  const index = listeners.indexOf(setState);
@@ -8454,7 +8513,7 @@ var kbdVariants = cva(
8454
8513
  }
8455
8514
  }
8456
8515
  );
8457
- var Kbd = React23.forwardRef(
8516
+ var Kbd = React12.forwardRef(
8458
8517
  ({ className, size, children, ...props }, ref) => {
8459
8518
  return /* @__PURE__ */ jsx(
8460
8519
  "kbd",
@@ -8491,7 +8550,7 @@ var iconSizeMap = {
8491
8550
  md: "h-5 w-5",
8492
8551
  lg: "h-6 w-6"
8493
8552
  };
8494
- var Rating = React23.forwardRef(
8553
+ var Rating = React12.forwardRef(
8495
8554
  ({
8496
8555
  className,
8497
8556
  value,
@@ -8509,11 +8568,11 @@ var Rating = React23.forwardRef(
8509
8568
  const iconSizeClass = iconSizeMap[resolvedSize];
8510
8569
  const step = precision === "half" ? 0.5 : 1;
8511
8570
  const isControlled = value !== void 0;
8512
- const [internalValue, setInternalValue] = React23.useState(defaultValue ?? 0);
8571
+ const [internalValue, setInternalValue] = React12.useState(defaultValue ?? 0);
8513
8572
  const currentValue = isControlled ? value ?? 0 : internalValue;
8514
- const [hoverValue, setHoverValue] = React23.useState(null);
8573
+ const [hoverValue, setHoverValue] = React12.useState(null);
8515
8574
  const displayValue = hoverValue !== null ? hoverValue : currentValue;
8516
- const commit = React23.useCallback(
8575
+ const commit = React12.useCallback(
8517
8576
  (next) => {
8518
8577
  if (readOnly)
8519
8578
  return;
@@ -8523,7 +8582,7 @@ var Rating = React23.forwardRef(
8523
8582
  },
8524
8583
  [readOnly, isControlled, onValueChange]
8525
8584
  );
8526
- const handleKeyDown = React23.useCallback(
8585
+ const handleKeyDown = React12.useCallback(
8527
8586
  (event) => {
8528
8587
  if (readOnly)
8529
8588
  return;
@@ -8552,9 +8611,9 @@ var Rating = React23.forwardRef(
8552
8611
  [readOnly, max, currentValue, step, commit]
8553
8612
  );
8554
8613
  const renderIcon = (filled) => {
8555
- if (React23.isValidElement(icon)) {
8614
+ if (React12.isValidElement(icon)) {
8556
8615
  const element = icon;
8557
- return React23.cloneElement(element, {
8616
+ return React12.cloneElement(element, {
8558
8617
  className: cn(
8559
8618
  iconSizeClass,
8560
8619
  "shrink-0",
@@ -8688,7 +8747,7 @@ var dotSizeMap = {
8688
8747
  lg: "h-2 w-2",
8689
8748
  xl: "h-2.5 w-2.5"
8690
8749
  };
8691
- var Spinner = React23.forwardRef(
8750
+ var Spinner = React12.forwardRef(
8692
8751
  ({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
8693
8752
  return /* @__PURE__ */ jsxs(
8694
8753
  "div",
@@ -8767,15 +8826,15 @@ var buttonGroupVariants = cva(
8767
8826
  }
8768
8827
  }
8769
8828
  );
8770
- var ButtonGroup = React23.forwardRef(
8829
+ var ButtonGroup = React12.forwardRef(
8771
8830
  ({ className, orientation, attached, size, variant, children, ...props }, ref) => {
8772
8831
  const shouldPropagate = size !== void 0 || variant !== void 0;
8773
- const enhancedChildren = shouldPropagate ? React23.Children.map(children, (child) => {
8774
- if (!React23.isValidElement(child) || child.type !== Button) {
8832
+ const enhancedChildren = shouldPropagate ? React12.Children.map(children, (child) => {
8833
+ if (!React12.isValidElement(child) || child.type !== Button) {
8775
8834
  return child;
8776
8835
  }
8777
8836
  const childProps = child.props;
8778
- return React23.cloneElement(child, {
8837
+ return React12.cloneElement(child, {
8779
8838
  size: childProps.size ?? size,
8780
8839
  variant: childProps.variant ?? variant
8781
8840
  });
@@ -8793,11 +8852,14 @@ var ButtonGroup = React23.forwardRef(
8793
8852
  }
8794
8853
  );
8795
8854
  ButtonGroup.displayName = "ButtonGroup";
8796
- var ToggleGroupContext = React23.createContext({
8797
- size: "default",
8855
+ var ToggleGroupContext = React12.createContext({
8856
+ // #319: kanonik skalada `default` bir basamak ADI değil; `toggleVariants` artık `md`
8857
+ // kullanıyor (aynı CSS: h-10 px-3). Context varsayılanı da ona hizalandı — aksi hâlde
8858
+ // context, deprecated alias'ı item'lara yayardı.
8859
+ size: "md",
8798
8860
  variant: "default"
8799
8861
  });
8800
- var ToggleGroup = React23.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8862
+ var ToggleGroup = React12.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
8801
8863
  ToggleGroupPrimitive.Root,
8802
8864
  {
8803
8865
  ref,
@@ -8814,8 +8876,8 @@ var ToggleGroup = React23.forwardRef(({ className, variant, size, children, ...p
8814
8876
  }
8815
8877
  ));
8816
8878
  ToggleGroup.displayName = "ToggleGroup";
8817
- var ToggleGroupItem = React23.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8818
- const context = React23.useContext(ToggleGroupContext);
8879
+ var ToggleGroupItem = React12.forwardRef(({ className, children, variant, size, ...props }, ref) => {
8880
+ const context = React12.useContext(ToggleGroupContext);
8819
8881
  return /* @__PURE__ */ jsx(
8820
8882
  ToggleGroupPrimitive.Item,
8821
8883
  {