@moontra/moonui 3.0.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  'use strict';
4
4
 
5
- var React20 = require('react');
5
+ var React10 = require('react');
6
6
  var AccordionPrimitive = require('@radix-ui/react-accordion');
7
7
  var lucideReact = require('lucide-react');
8
8
  var clsx = require('clsx');
@@ -12,6 +12,7 @@ var classVarianceAuthority = require('class-variance-authority');
12
12
  var AvatarPrimitive = require('@radix-ui/react-avatar');
13
13
  var framerMotion = require('framer-motion');
14
14
  var dateFns = require('date-fns');
15
+ var useEmblaCarousel = require('embla-carousel-react');
15
16
  var CheckboxPrimitive = require('@radix-ui/react-checkbox');
16
17
  var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
17
18
  var LabelPrimitive = require('@radix-ui/react-label');
@@ -21,6 +22,7 @@ var cmdk = require('cmdk');
21
22
  var DialogPrimitive = require('@radix-ui/react-dialog');
22
23
  var reactTable = require('@tanstack/react-table');
23
24
  var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
25
+ var inputOtp = require('input-otp');
24
26
  var SelectPrimitive = require('@radix-ui/react-select');
25
27
  var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
26
28
  var SeparatorPrimitive = require('@radix-ui/react-separator');
@@ -29,6 +31,8 @@ var TooltipPrimitive = require('@radix-ui/react-tooltip');
29
31
  var SwitchPrimitives = require('@radix-ui/react-switch');
30
32
  var ToastPrimitives = require('@radix-ui/react-toast');
31
33
 
34
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
35
+
32
36
  function _interopNamespace(e) {
33
37
  if (e && e.__esModule) return e;
34
38
  var n = Object.create(null);
@@ -47,9 +51,10 @@ function _interopNamespace(e) {
47
51
  return Object.freeze(n);
48
52
  }
49
53
 
50
- var React20__namespace = /*#__PURE__*/_interopNamespace(React20);
54
+ var React10__namespace = /*#__PURE__*/_interopNamespace(React10);
51
55
  var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
52
56
  var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
57
+ var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
53
58
  var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
54
59
  var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespace(CollapsiblePrimitive);
55
60
  var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
@@ -69,7 +74,7 @@ function cn(...inputs) {
69
74
  return tailwindMerge.twMerge(clsx.clsx(inputs));
70
75
  }
71
76
  var Accordion = AccordionPrimitive__namespace.Root;
72
- var AccordionItem = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
77
+ var AccordionItem = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
73
78
  AccordionPrimitive__namespace.Item,
74
79
  {
75
80
  ref,
@@ -78,7 +83,7 @@ var AccordionItem = React20__namespace.forwardRef(({ className, ...props }, ref)
78
83
  }
79
84
  ));
80
85
  AccordionItem.displayName = "AccordionItem";
81
- var AccordionTrigger = React20__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
86
+ var AccordionTrigger = React10__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
82
87
  AccordionPrimitive__namespace.Trigger,
83
88
  {
84
89
  ref,
@@ -96,7 +101,7 @@ var AccordionTrigger = React20__namespace.forwardRef(({ className, children, ...
96
101
  }
97
102
  ) }));
98
103
  AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
99
- var AccordionContent = React20__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
104
+ var AccordionContent = React10__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
100
105
  AccordionPrimitive__namespace.Content,
101
106
  {
102
107
  ref,
@@ -146,7 +151,7 @@ var alertVariants = classVarianceAuthority.cva(
146
151
  }
147
152
  }
148
153
  );
149
- var Alert = React20__namespace.forwardRef(
154
+ var Alert = React10__namespace.forwardRef(
150
155
  ({
151
156
  className,
152
157
  variant = "default",
@@ -158,7 +163,7 @@ var Alert = React20__namespace.forwardRef(
158
163
  children,
159
164
  ...props
160
165
  }, ref) => {
161
- const Icon2 = React20__namespace.useMemo(() => {
166
+ const Icon2 = React10__namespace.useMemo(() => {
162
167
  switch (variant) {
163
168
  case "success":
164
169
  return lucideReact.Check;
@@ -206,7 +211,7 @@ var Alert = React20__namespace.forwardRef(
206
211
  }
207
212
  );
208
213
  Alert.displayName = "Alert";
209
- var AlertTitle = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
214
+ var AlertTitle = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
210
215
  "h5",
211
216
  {
212
217
  ref,
@@ -219,7 +224,7 @@ var AlertTitle = React20__namespace.forwardRef(({ className, ...props }, ref) =>
219
224
  }
220
225
  ));
221
226
  AlertTitle.displayName = "AlertTitle";
222
- var AlertDescription = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
227
+ var AlertDescription = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
223
228
  "div",
224
229
  {
225
230
  ref,
@@ -255,7 +260,7 @@ var aspectRatioVariants = classVarianceAuthority.cva(
255
260
  }
256
261
  }
257
262
  );
258
- var AspectRatio = React20__namespace.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
263
+ var AspectRatio = React10__namespace.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
259
264
  "div",
260
265
  {
261
266
  ref,
@@ -304,7 +309,7 @@ var avatarVariants = classVarianceAuthority.cva(
304
309
  }
305
310
  }
306
311
  );
307
- var Avatar = React20__namespace.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
312
+ var Avatar = React10__namespace.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
308
313
  AvatarPrimitive__namespace.Root,
309
314
  {
310
315
  ref,
@@ -313,7 +318,7 @@ var Avatar = React20__namespace.forwardRef(({ className, size, radius, variant,
313
318
  }
314
319
  ));
315
320
  Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
316
- var AvatarImage = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
321
+ var AvatarImage = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
317
322
  AvatarPrimitive__namespace.Image,
318
323
  {
319
324
  ref,
@@ -322,7 +327,7 @@ var AvatarImage = React20__namespace.forwardRef(({ className, ...props }, ref) =
322
327
  }
323
328
  ));
324
329
  AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
325
- var AvatarFallback = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
330
+ var AvatarFallback = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
326
331
  AvatarPrimitive__namespace.Fallback,
327
332
  {
328
333
  ref,
@@ -334,7 +339,7 @@ var AvatarFallback = React20__namespace.forwardRef(({ className, ...props }, ref
334
339
  }
335
340
  ));
336
341
  AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
337
- var AvatarGroup = React20__namespace.forwardRef(
342
+ var AvatarGroup = React10__namespace.forwardRef(
338
343
  ({ className, limit, avatars, overlapOffset = -8, ...props }, ref) => {
339
344
  const visibleAvatars = limit ? avatars.slice(0, limit) : avatars;
340
345
  const remainingCount = limit ? Math.max(0, avatars.length - limit) : 0;
@@ -567,7 +572,7 @@ var breadcrumbVariants = classVarianceAuthority.cva(
567
572
  }
568
573
  }
569
574
  );
570
- var Breadcrumb = React20__namespace.forwardRef(
575
+ var Breadcrumb = React10__namespace.forwardRef(
571
576
  ({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
572
577
  "nav",
573
578
  {
@@ -579,9 +584,9 @@ var Breadcrumb = React20__namespace.forwardRef(
579
584
  )
580
585
  );
581
586
  Breadcrumb.displayName = "Breadcrumb";
582
- var BreadcrumbList = React20__namespace.forwardRef(
587
+ var BreadcrumbList = React10__namespace.forwardRef(
583
588
  ({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
584
- const childrenArray = React20__namespace.Children.toArray(props.children).filter(Boolean);
589
+ const childrenArray = React10__namespace.Children.toArray(props.children).filter(Boolean);
585
590
  const childCount = childrenArray.length;
586
591
  if (collapsed && childCount > collapsedWidth) {
587
592
  const firstItem = childrenArray[0];
@@ -617,9 +622,9 @@ var BreadcrumbList = React20__namespace.forwardRef(
617
622
  }
618
623
  );
619
624
  BreadcrumbList.displayName = "BreadcrumbList";
620
- var BreadcrumbItem = React20__namespace.forwardRef(
625
+ var BreadcrumbItem = React10__namespace.forwardRef(
621
626
  ({ className, isCurrent, href, asChild = false, ...props }, ref) => {
622
- const Comp = asChild ? React20__namespace.Fragment : href ? "a" : "span";
627
+ const Comp = asChild ? React10__namespace.Fragment : href ? "a" : "span";
623
628
  const itemProps = asChild ? {} : href ? { href } : {};
624
629
  return /* @__PURE__ */ jsxRuntime.jsx(
625
630
  "li",
@@ -676,7 +681,7 @@ var BreadcrumbEllipsis = ({
676
681
  }
677
682
  );
678
683
  BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
679
- var BreadcrumbLink = React20__namespace.forwardRef(
684
+ var BreadcrumbLink = React10__namespace.forwardRef(
680
685
  ({ className, href, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
681
686
  "a",
682
687
  {
@@ -691,7 +696,7 @@ var BreadcrumbLink = React20__namespace.forwardRef(
691
696
  )
692
697
  );
693
698
  BreadcrumbLink.displayName = "BreadcrumbLink";
694
- var BreadcrumbPage = React20__namespace.forwardRef(
699
+ var BreadcrumbPage = React10__namespace.forwardRef(
695
700
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
696
701
  "span",
697
702
  {
@@ -854,7 +859,7 @@ var buttonVariants = classVarianceAuthority.cva(
854
859
  }
855
860
  }
856
861
  );
857
- var Button = React20__namespace.forwardRef(
862
+ var Button = React10__namespace.forwardRef(
858
863
  ({
859
864
  className,
860
865
  variant,
@@ -972,7 +977,26 @@ var springAnimations = {
972
977
  type: "spring",
973
978
  stiffness: 260,
974
979
  damping: 20
975
- }};
980
+ },
981
+ // Bouncy spring for playful interactions
982
+ bouncy: {
983
+ type: "spring",
984
+ stiffness: 300,
985
+ damping: 15
986
+ },
987
+ // Stiff spring for quick responses
988
+ stiff: {
989
+ type: "spring",
990
+ stiffness: 400,
991
+ damping: 25
992
+ },
993
+ // Gentle spring for subtle movements
994
+ gentle: {
995
+ type: "spring",
996
+ stiffness: 150,
997
+ damping: 15
998
+ }
999
+ };
976
1000
  var hoverAnimations = {
977
1001
  lift: {
978
1002
  y: -2,
@@ -985,12 +1009,22 @@ var hoverAnimations = {
985
1009
  glow: {
986
1010
  boxShadow: "0 0 20px rgba(var(--primary), 0.3)",
987
1011
  transition: springAnimations.smooth
988
- }};
1012
+ },
1013
+ rotate: {
1014
+ rotate: 2,
1015
+ transition: springAnimations.bouncy
1016
+ }
1017
+ };
989
1018
  var tapAnimations = {
990
1019
  scale: {
991
1020
  scale: 0.95,
992
1021
  transition: { duration: 0.1 }
993
- }};
1022
+ },
1023
+ depress: {
1024
+ y: 1,
1025
+ transition: { duration: 0.1 }
1026
+ }
1027
+ };
994
1028
  var skeletonAnimation = {
995
1029
  initial: { opacity: 0.5 },
996
1030
  animate: {
@@ -1039,7 +1073,7 @@ var cardVariants = classVarianceAuthority.cva(
1039
1073
  }
1040
1074
  }
1041
1075
  );
1042
- var Card = React20__namespace.forwardRef(
1076
+ var Card = React10__namespace.forwardRef(
1043
1077
  ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
1044
1078
  if (interactive && microInteraction !== "none") {
1045
1079
  const interactionProps = {
@@ -1067,7 +1101,7 @@ var Card = React20__namespace.forwardRef(
1067
1101
  }
1068
1102
  );
1069
1103
  Card.displayName = "Card";
1070
- var CardHeader = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1104
+ var CardHeader = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1071
1105
  "div",
1072
1106
  {
1073
1107
  ref,
@@ -1076,7 +1110,7 @@ var CardHeader = React20__namespace.forwardRef(({ className, ...props }, ref) =>
1076
1110
  }
1077
1111
  ));
1078
1112
  CardHeader.displayName = "CardHeader";
1079
- var CardTitle = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1113
+ var CardTitle = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1080
1114
  "h3",
1081
1115
  {
1082
1116
  ref,
@@ -1085,7 +1119,7 @@ var CardTitle = React20__namespace.forwardRef(({ className, ...props }, ref) =>
1085
1119
  }
1086
1120
  ));
1087
1121
  CardTitle.displayName = "CardTitle";
1088
- var CardDescription = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1122
+ var CardDescription = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1089
1123
  "p",
1090
1124
  {
1091
1125
  ref,
@@ -1094,9 +1128,9 @@ var CardDescription = React20__namespace.forwardRef(({ className, ...props }, re
1094
1128
  }
1095
1129
  ));
1096
1130
  CardDescription.displayName = "CardDescription";
1097
- var CardContent = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1131
+ var CardContent = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
1098
1132
  CardContent.displayName = "CardContent";
1099
- var CardFooter = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1133
+ var CardFooter = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1100
1134
  "div",
1101
1135
  {
1102
1136
  ref,
@@ -1117,7 +1151,7 @@ function Calendar({
1117
1151
  defaultMonth,
1118
1152
  ...props
1119
1153
  }) {
1120
- const [currentMonth, setCurrentMonth] = React20__namespace.useState(
1154
+ const [currentMonth, setCurrentMonth] = React10__namespace.useState(
1121
1155
  defaultMonth || selected && selected || /* @__PURE__ */ new Date()
1122
1156
  );
1123
1157
  const weekDays = [
@@ -1136,7 +1170,8 @@ function Calendar({
1136
1170
  setCurrentMonth(dateFns.addMonths(currentMonth, 1));
1137
1171
  };
1138
1172
  const handleDateClick = (date) => {
1139
- if (disabled?.(date)) return;
1173
+ if (disabled?.(date))
1174
+ return;
1140
1175
  if (mode === "single") {
1141
1176
  onSelect?.(date);
1142
1177
  } else if (mode === "range") {
@@ -1153,7 +1188,8 @@ function Calendar({
1153
1188
  }
1154
1189
  };
1155
1190
  const isDateSelected = (date) => {
1156
- if (!selected) return false;
1191
+ if (!selected)
1192
+ return false;
1157
1193
  if (mode === "single") {
1158
1194
  return dateFns.isSameDay(date, selected);
1159
1195
  } else if (mode === "range") {
@@ -1166,19 +1202,23 @@ function Calendar({
1166
1202
  return false;
1167
1203
  };
1168
1204
  const isRangeStart = (date) => {
1169
- if (mode !== "range" || !selected) return false;
1205
+ if (mode !== "range" || !selected)
1206
+ return false;
1170
1207
  const range = selected;
1171
1208
  return range.from ? dateFns.isSameDay(date, range.from) : false;
1172
1209
  };
1173
1210
  const isRangeEnd = (date) => {
1174
- if (mode !== "range" || !selected) return false;
1211
+ if (mode !== "range" || !selected)
1212
+ return false;
1175
1213
  const range = selected;
1176
1214
  return range.to ? dateFns.isSameDay(date, range.to) : false;
1177
1215
  };
1178
1216
  const isRangeMiddle = (date) => {
1179
- if (mode !== "range" || !selected) return false;
1217
+ if (mode !== "range" || !selected)
1218
+ return false;
1180
1219
  const range = selected;
1181
- if (!range.from || !range.to) return false;
1220
+ if (!range.from || !range.to)
1221
+ return false;
1182
1222
  return date > range.from && date < range.to;
1183
1223
  };
1184
1224
  const getDaysInMonth = () => {
@@ -1305,7 +1345,8 @@ var getCardType = (number) => {
1305
1345
  jcb: /^35/
1306
1346
  };
1307
1347
  for (const [type, pattern] of Object.entries(patterns)) {
1308
- if (pattern.test(number)) return type;
1348
+ if (pattern.test(number))
1349
+ return type;
1309
1350
  }
1310
1351
  return "unknown";
1311
1352
  };
@@ -1315,16 +1356,18 @@ var formatCardNumber = (value, cardType) => {
1315
1356
  let formatted = "";
1316
1357
  let position = 0;
1317
1358
  for (const group of groups) {
1318
- if (position >= cleaned.length) break;
1319
- if (formatted) formatted += " ";
1359
+ if (position >= cleaned.length)
1360
+ break;
1361
+ if (formatted)
1362
+ formatted += " ";
1320
1363
  formatted += cleaned.slice(position, position + group);
1321
1364
  position += group;
1322
1365
  }
1323
1366
  return formatted;
1324
1367
  };
1325
- var CardNumberInput = React20__namespace.forwardRef(
1368
+ var CardNumberInput = React10__namespace.forwardRef(
1326
1369
  ({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
1327
- const [cardType, setCardType] = React20__namespace.useState("unknown");
1370
+ const [cardType, setCardType] = React10__namespace.useState("unknown");
1328
1371
  const handleChange = (e) => {
1329
1372
  const rawValue = e.target.value.replace(/\D/g, "");
1330
1373
  const detectedType = getCardType(rawValue);
@@ -1355,7 +1398,7 @@ var CardNumberInput = React20__namespace.forwardRef(
1355
1398
  }
1356
1399
  );
1357
1400
  CardNumberInput.displayName = "CardNumberInput";
1358
- var CardExpiryInput = React20__namespace.forwardRef(
1401
+ var CardExpiryInput = React10__namespace.forwardRef(
1359
1402
  ({ className, value = "", onChange, size, ...props }, ref) => {
1360
1403
  const handleChange = (e) => {
1361
1404
  let rawValue = e.target.value.replace(/\D/g, "");
@@ -1393,7 +1436,7 @@ var CardExpiryInput = React20__namespace.forwardRef(
1393
1436
  }
1394
1437
  );
1395
1438
  CardExpiryInput.displayName = "CardExpiryInput";
1396
- var CardCVCInput = React20__namespace.forwardRef(
1439
+ var CardCVCInput = React10__namespace.forwardRef(
1397
1440
  ({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
1398
1441
  const maxLength = cardType === "amex" ? 4 : 3;
1399
1442
  const handleChange = (e) => {
@@ -1418,7 +1461,7 @@ var CardCVCInput = React20__namespace.forwardRef(
1418
1461
  }
1419
1462
  );
1420
1463
  CardCVCInput.displayName = "CardCVCInput";
1421
- var CardZipInput = React20__namespace.forwardRef(
1464
+ var CardZipInput = React10__namespace.forwardRef(
1422
1465
  ({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
1423
1466
  const handleChange = (e) => {
1424
1467
  let rawValue = e.target.value;
@@ -1469,6 +1512,208 @@ var CardZipInput = React20__namespace.forwardRef(
1469
1512
  }
1470
1513
  );
1471
1514
  CardZipInput.displayName = "CardZipInput";
1515
+ var CarouselContext = React10__namespace.createContext(null);
1516
+ function useCarousel() {
1517
+ const context = React10__namespace.useContext(CarouselContext);
1518
+ if (!context) {
1519
+ throw new Error("useCarousel must be used within a <Carousel />");
1520
+ }
1521
+ return context;
1522
+ }
1523
+ var Carousel = React10__namespace.forwardRef(
1524
+ ({
1525
+ orientation = "horizontal",
1526
+ opts,
1527
+ setApi,
1528
+ plugins,
1529
+ className,
1530
+ children,
1531
+ ...props
1532
+ }, ref) => {
1533
+ const resolvedOrientation = orientation || (opts?.axis === "y" ? "vertical" : "horizontal");
1534
+ const [carouselRef, api] = useEmblaCarousel__default.default(
1535
+ {
1536
+ ...opts,
1537
+ axis: resolvedOrientation === "horizontal" ? "x" : "y"
1538
+ },
1539
+ plugins
1540
+ );
1541
+ const [canScrollPrev, setCanScrollPrev] = React10__namespace.useState(false);
1542
+ const [canScrollNext, setCanScrollNext] = React10__namespace.useState(false);
1543
+ const onSelect = React10__namespace.useCallback((emblaApi) => {
1544
+ if (!emblaApi)
1545
+ return;
1546
+ setCanScrollPrev(emblaApi.canScrollPrev());
1547
+ setCanScrollNext(emblaApi.canScrollNext());
1548
+ }, []);
1549
+ const scrollPrev = React10__namespace.useCallback(() => {
1550
+ api?.scrollPrev();
1551
+ }, [api]);
1552
+ const scrollNext = React10__namespace.useCallback(() => {
1553
+ api?.scrollNext();
1554
+ }, [api]);
1555
+ const handleKeyDown = React10__namespace.useCallback(
1556
+ (event) => {
1557
+ const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
1558
+ const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
1559
+ if (event.key === prevKey) {
1560
+ event.preventDefault();
1561
+ scrollPrev();
1562
+ } else if (event.key === nextKey) {
1563
+ event.preventDefault();
1564
+ scrollNext();
1565
+ }
1566
+ },
1567
+ [resolvedOrientation, scrollPrev, scrollNext]
1568
+ );
1569
+ React10__namespace.useEffect(() => {
1570
+ if (!api || !setApi)
1571
+ return;
1572
+ setApi(api);
1573
+ }, [api, setApi]);
1574
+ React10__namespace.useEffect(() => {
1575
+ if (!api)
1576
+ return;
1577
+ onSelect(api);
1578
+ api.on("reInit", onSelect);
1579
+ api.on("select", onSelect);
1580
+ return () => {
1581
+ api.off("reInit", onSelect);
1582
+ api.off("select", onSelect);
1583
+ };
1584
+ }, [api, onSelect]);
1585
+ return /* @__PURE__ */ jsxRuntime.jsx(
1586
+ CarouselContext.Provider,
1587
+ {
1588
+ value: {
1589
+ carouselRef,
1590
+ api,
1591
+ opts,
1592
+ scrollPrev,
1593
+ scrollNext,
1594
+ canScrollPrev,
1595
+ canScrollNext,
1596
+ orientation: resolvedOrientation
1597
+ },
1598
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1599
+ "div",
1600
+ {
1601
+ ref,
1602
+ onKeyDownCapture: handleKeyDown,
1603
+ className: cn("moonui-theme", "relative", className),
1604
+ role: "region",
1605
+ "aria-roledescription": "carousel",
1606
+ ...props,
1607
+ children
1608
+ }
1609
+ )
1610
+ }
1611
+ );
1612
+ }
1613
+ );
1614
+ Carousel.displayName = "Carousel";
1615
+ var carouselContentVariants = classVarianceAuthority.cva("flex", {
1616
+ variants: {
1617
+ orientation: {
1618
+ horizontal: "-ml-4",
1619
+ vertical: "-mt-4 flex-col"
1620
+ }
1621
+ },
1622
+ defaultVariants: {
1623
+ orientation: "horizontal"
1624
+ }
1625
+ });
1626
+ var CarouselContent = React10__namespace.forwardRef(
1627
+ ({ className, ...props }, ref) => {
1628
+ const { carouselRef, orientation } = useCarousel();
1629
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
1630
+ "div",
1631
+ {
1632
+ ref,
1633
+ className: cn(carouselContentVariants({ orientation }), className),
1634
+ ...props
1635
+ }
1636
+ ) });
1637
+ }
1638
+ );
1639
+ CarouselContent.displayName = "CarouselContent";
1640
+ var carouselItemVariants = classVarianceAuthority.cva("min-w-0 shrink-0 grow-0 basis-full", {
1641
+ variants: {
1642
+ orientation: {
1643
+ horizontal: "pl-4",
1644
+ vertical: "pt-4"
1645
+ }
1646
+ },
1647
+ defaultVariants: {
1648
+ orientation: "horizontal"
1649
+ }
1650
+ });
1651
+ var CarouselItem = React10__namespace.forwardRef(
1652
+ ({ className, ...props }, ref) => {
1653
+ const { orientation } = useCarousel();
1654
+ return /* @__PURE__ */ jsxRuntime.jsx(
1655
+ "div",
1656
+ {
1657
+ ref,
1658
+ role: "group",
1659
+ "aria-roledescription": "slide",
1660
+ className: cn(carouselItemVariants({ orientation }), className),
1661
+ ...props
1662
+ }
1663
+ );
1664
+ }
1665
+ );
1666
+ CarouselItem.displayName = "CarouselItem";
1667
+ var CarouselPrevious = React10__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1668
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
1669
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1670
+ Button,
1671
+ {
1672
+ ref,
1673
+ variant,
1674
+ size,
1675
+ rounded: "full",
1676
+ className: cn(
1677
+ "absolute",
1678
+ orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
1679
+ className
1680
+ ),
1681
+ disabled: !canScrollPrev,
1682
+ onClick: scrollPrev,
1683
+ ...props,
1684
+ children: [
1685
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "h-4 w-4", "aria-hidden": "true" }),
1686
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
1687
+ ]
1688
+ }
1689
+ );
1690
+ });
1691
+ CarouselPrevious.displayName = "CarouselPrevious";
1692
+ var CarouselNext = React10__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
1693
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
1694
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1695
+ Button,
1696
+ {
1697
+ ref,
1698
+ variant,
1699
+ size,
1700
+ rounded: "full",
1701
+ className: cn(
1702
+ "absolute",
1703
+ orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
1704
+ className
1705
+ ),
1706
+ disabled: !canScrollNext,
1707
+ onClick: scrollNext,
1708
+ ...props,
1709
+ children: [
1710
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { className: "h-4 w-4", "aria-hidden": "true" }),
1711
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
1712
+ ]
1713
+ }
1714
+ );
1715
+ });
1716
+ CarouselNext.displayName = "CarouselNext";
1472
1717
  var checkboxVariants = classVarianceAuthority.cva(
1473
1718
  "peer shrink-0 border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary-foreground",
1474
1719
  {
@@ -1507,7 +1752,7 @@ var checkboxVariants = classVarianceAuthority.cva(
1507
1752
  }
1508
1753
  }
1509
1754
  );
1510
- var Checkbox = React20__namespace.forwardRef(({
1755
+ var Checkbox = React10__namespace.forwardRef(({
1511
1756
  className,
1512
1757
  variant,
1513
1758
  size,
@@ -1518,8 +1763,8 @@ var Checkbox = React20__namespace.forwardRef(({
1518
1763
  checked,
1519
1764
  ...props
1520
1765
  }, ref) => {
1521
- const [isIndeterminate, setIsIndeterminate] = React20__namespace.useState(indeterminate);
1522
- React20__namespace.useEffect(() => {
1766
+ const [isIndeterminate, setIsIndeterminate] = React10__namespace.useState(indeterminate);
1767
+ React10__namespace.useEffect(() => {
1523
1768
  setIsIndeterminate(indeterminate);
1524
1769
  }, [indeterminate]);
1525
1770
  const effectiveChecked = isIndeterminate ? false : checked;
@@ -1544,7 +1789,7 @@ var Checkbox = React20__namespace.forwardRef(({
1544
1789
  );
1545
1790
  });
1546
1791
  Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
1547
- var CheckboxGroup = React20__namespace.forwardRef(
1792
+ var CheckboxGroup = React10__namespace.forwardRef(
1548
1793
  ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
1549
1794
  return /* @__PURE__ */ jsxRuntime.jsx(
1550
1795
  "div",
@@ -1564,7 +1809,7 @@ var CheckboxGroup = React20__namespace.forwardRef(
1564
1809
  }
1565
1810
  );
1566
1811
  CheckboxGroup.displayName = "CheckboxGroup";
1567
- var CheckboxLabel = React20__namespace.forwardRef(
1812
+ var CheckboxLabel = React10__namespace.forwardRef(
1568
1813
  ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
1569
1814
  return /* @__PURE__ */ jsxRuntime.jsx(
1570
1815
  "label",
@@ -1584,14 +1829,14 @@ var CheckboxLabel = React20__namespace.forwardRef(
1584
1829
  }
1585
1830
  );
1586
1831
  CheckboxLabel.displayName = "CheckboxLabel";
1587
- var CheckboxWithLabel = React20__namespace.forwardRef(({
1832
+ var CheckboxWithLabel = React10__namespace.forwardRef(({
1588
1833
  id,
1589
1834
  label,
1590
1835
  labelPosition = "end",
1591
1836
  labelClassName,
1592
1837
  ...checkboxProps
1593
1838
  }, ref) => {
1594
- const generatedId = React20__namespace.useId();
1839
+ const generatedId = React10__namespace.useId();
1595
1840
  const checkboxId = id || generatedId;
1596
1841
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
1597
1842
  labelPosition === "start" && /* @__PURE__ */ jsxRuntime.jsx(
@@ -1641,7 +1886,7 @@ var collapsibleTriggerVariants = classVarianceAuthority.cva(
1641
1886
  }
1642
1887
  }
1643
1888
  );
1644
- var CollapsibleTrigger = React20__namespace.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1889
+ var CollapsibleTrigger = React10__namespace.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
1645
1890
  if (asChild) {
1646
1891
  return /* @__PURE__ */ jsxRuntime.jsx(
1647
1892
  CollapsiblePrimitive__namespace.Trigger,
@@ -1690,7 +1935,7 @@ var collapsibleContentVariants = classVarianceAuthority.cva(
1690
1935
  }
1691
1936
  }
1692
1937
  );
1693
- var CollapsibleContent = React20__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1938
+ var CollapsibleContent = React10__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1694
1939
  CollapsiblePrimitive__namespace.Content,
1695
1940
  {
1696
1941
  ref,
@@ -1773,7 +2018,7 @@ var inputVariants = classVarianceAuthority.cva(
1773
2018
  }
1774
2019
  }
1775
2020
  );
1776
- var Input = React20__namespace.forwardRef(
2021
+ var Input = React10__namespace.forwardRef(
1777
2022
  ({
1778
2023
  className,
1779
2024
  wrapperClassName,
@@ -1800,8 +2045,8 @@ var Input = React20__namespace.forwardRef(
1800
2045
  placeholder,
1801
2046
  ...props
1802
2047
  }, ref) => {
1803
- const [isFocused, setIsFocused] = React20__namespace.useState(false);
1804
- const [internalValue, setInternalValue] = React20__namespace.useState(value || defaultValue || "");
2048
+ const [isFocused, setIsFocused] = React10__namespace.useState(false);
2049
+ const [internalValue, setInternalValue] = React10__namespace.useState(value || defaultValue || "");
1805
2050
  const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
1806
2051
  const isLabelActive = isFocused || hasValue;
1807
2052
  const handleFocus = (e) => {
@@ -1816,7 +2061,7 @@ var Input = React20__namespace.forwardRef(
1816
2061
  setInternalValue(e.target.value);
1817
2062
  onChange?.(e);
1818
2063
  };
1819
- React20__namespace.useEffect(() => {
2064
+ React10__namespace.useEffect(() => {
1820
2065
  if (value !== void 0) {
1821
2066
  setInternalValue(value);
1822
2067
  }
@@ -1900,7 +2145,7 @@ Input.displayName = "Input";
1900
2145
  var labelVariants = classVarianceAuthority.cva(
1901
2146
  "text-sm font-medium leading-none text-gray-900 dark:text-gray-200 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:peer-disabled:opacity-60 transition-colors duration-200"
1902
2147
  );
1903
- var Label = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2148
+ var Label = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1904
2149
  LabelPrimitive__namespace.Root,
1905
2150
  {
1906
2151
  ref,
@@ -1961,7 +2206,7 @@ var popoverContentVariants = classVarianceAuthority.cva(
1961
2206
  var Popover = PopoverPrimitive__namespace.Root;
1962
2207
  var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
1963
2208
  var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
1964
- var PopoverContent = React20__namespace.forwardRef(({
2209
+ var PopoverContent = React10__namespace.forwardRef(({
1965
2210
  className,
1966
2211
  variant,
1967
2212
  size,
@@ -2029,7 +2274,7 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
2029
2274
  }
2030
2275
  );
2031
2276
  PopoverFooter.displayName = "PopoverFooter";
2032
- var Tabs = React20__namespace.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2277
+ var Tabs = React10__namespace.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2033
2278
  TabsPrimitive__namespace.Root,
2034
2279
  {
2035
2280
  ref,
@@ -2070,7 +2315,7 @@ var tabsListVariants = classVarianceAuthority.cva(
2070
2315
  }
2071
2316
  }
2072
2317
  );
2073
- var TabsList = React20__namespace.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2318
+ var TabsList = React10__namespace.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
2074
2319
  return /* @__PURE__ */ jsxRuntime.jsx(
2075
2320
  TabsPrimitive__namespace.List,
2076
2321
  {
@@ -2113,7 +2358,7 @@ var tabsTriggerVariants = classVarianceAuthority.cva(
2113
2358
  }
2114
2359
  }
2115
2360
  );
2116
- var TabsTrigger = React20__namespace.forwardRef(({
2361
+ var TabsTrigger = React10__namespace.forwardRef(({
2117
2362
  className,
2118
2363
  variant,
2119
2364
  size,
@@ -2145,7 +2390,7 @@ var TabsTrigger = React20__namespace.forwardRef(({
2145
2390
  }
2146
2391
  ));
2147
2392
  TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
2148
- var TabsContent = React20__namespace.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2393
+ var TabsContent = React10__namespace.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2149
2394
  TabsPrimitive__namespace.Content,
2150
2395
  {
2151
2396
  ref,
@@ -2239,7 +2484,7 @@ var sliderThumbVariants = classVarianceAuthority.cva(
2239
2484
  }
2240
2485
  }
2241
2486
  );
2242
- var Slider = React20__namespace.forwardRef(({
2487
+ var Slider = React10__namespace.forwardRef(({
2243
2488
  className,
2244
2489
  size,
2245
2490
  trackVariant,
@@ -2255,10 +2500,10 @@ var Slider = React20__namespace.forwardRef(({
2255
2500
  disabled,
2256
2501
  ...props
2257
2502
  }, ref) => {
2258
- const [sliderValue, setSliderValue] = React20__namespace.useState(
2503
+ const [sliderValue, setSliderValue] = React10__namespace.useState(
2259
2504
  value || defaultValue || [0]
2260
2505
  );
2261
- React20__namespace.useEffect(() => {
2506
+ React10__namespace.useEffect(() => {
2262
2507
  if (value !== void 0) {
2263
2508
  setSliderValue(value);
2264
2509
  }
@@ -2273,7 +2518,7 @@ var Slider = React20__namespace.forwardRef(({
2273
2518
  const calculateThumbPercent = (value2, min2, max2) => {
2274
2519
  return (value2 - min2) / (max2 - min2) * 100;
2275
2520
  };
2276
- const trackRef = React20__namespace.useRef(null);
2521
+ const trackRef = React10__namespace.useRef(null);
2277
2522
  const min = props.min || 0;
2278
2523
  const max = props.max || 100;
2279
2524
  const step = props.step || 1;
@@ -2291,9 +2536,11 @@ var Slider = React20__namespace.forwardRef(({
2291
2536
  }
2292
2537
  };
2293
2538
  const handleTrackClick = (event) => {
2294
- if (disabled) return;
2539
+ if (disabled)
2540
+ return;
2295
2541
  const track = trackRef.current;
2296
- if (!track) return;
2542
+ if (!track)
2543
+ return;
2297
2544
  const rect = track.getBoundingClientRect();
2298
2545
  const percent = (event.clientX - rect.left) / rect.width;
2299
2546
  const rawValue = min + percent * (max - min);
@@ -2304,11 +2551,13 @@ var Slider = React20__namespace.forwardRef(({
2304
2551
  handleValueChange(newValues);
2305
2552
  };
2306
2553
  const handleThumbMouseDown = (index) => (event) => {
2307
- if (disabled) return;
2554
+ if (disabled)
2555
+ return;
2308
2556
  event.preventDefault();
2309
2557
  const handleMouseMove = (moveEvent) => {
2310
2558
  const track = trackRef.current;
2311
- if (!track) return;
2559
+ if (!track)
2560
+ return;
2312
2561
  const rect = track.getBoundingClientRect();
2313
2562
  const percent = (moveEvent.clientX - rect.left) / rect.width;
2314
2563
  const rawValue = min + percent * (max - min);
@@ -2425,7 +2674,8 @@ function rgbToHex(r, g, b) {
2425
2674
  }
2426
2675
  function hexToHsl(hex) {
2427
2676
  const rgb = hexToRgb(hex);
2428
- if (!rgb) return null;
2677
+ if (!rgb)
2678
+ return null;
2429
2679
  const r = rgb.r / 255;
2430
2680
  const g = rgb.g / 255;
2431
2681
  const b = rgb.b / 255;
@@ -2464,11 +2714,16 @@ function hslToHex(h, s, l) {
2464
2714
  r = g = b = l;
2465
2715
  } else {
2466
2716
  const hue2rgb = (p2, q2, t) => {
2467
- if (t < 0) t += 1;
2468
- if (t > 1) t -= 1;
2469
- if (t < 1 / 6) return p2 + (q2 - p2) * 6 * t;
2470
- if (t < 1 / 2) return q2;
2471
- if (t < 2 / 3) return p2 + (q2 - p2) * (2 / 3 - t) * 6;
2717
+ if (t < 0)
2718
+ t += 1;
2719
+ if (t > 1)
2720
+ t -= 1;
2721
+ if (t < 1 / 6)
2722
+ return p2 + (q2 - p2) * 6 * t;
2723
+ if (t < 1 / 2)
2724
+ return q2;
2725
+ if (t < 2 / 3)
2726
+ return p2 + (q2 - p2) * (2 / 3 - t) * 6;
2472
2727
  return p2;
2473
2728
  };
2474
2729
  const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
@@ -2536,14 +2791,14 @@ function ColorPicker({
2536
2791
  disabled,
2537
2792
  ...props
2538
2793
  }) {
2539
- const [open, setOpen] = React20__namespace.useState(false);
2540
- const [color, setColor] = React20__namespace.useState(value);
2541
- const [opacity, setOpacity] = React20__namespace.useState(100);
2542
- const [copied, setCopied] = React20__namespace.useState(false);
2543
- const [inputValue, setInputValue] = React20__namespace.useState(value);
2544
- const hsl = React20__namespace.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2545
- const rgb = React20__namespace.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2546
- React20__namespace.useEffect(() => {
2794
+ const [open, setOpen] = React10__namespace.useState(false);
2795
+ const [color, setColor] = React10__namespace.useState(value);
2796
+ const [opacity, setOpacity] = React10__namespace.useState(100);
2797
+ const [copied, setCopied] = React10__namespace.useState(false);
2798
+ const [inputValue, setInputValue] = React10__namespace.useState(value);
2799
+ const hsl = React10__namespace.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
2800
+ const rgb = React10__namespace.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
2801
+ React10__namespace.useEffect(() => {
2547
2802
  setColor(value);
2548
2803
  setInputValue(value);
2549
2804
  }, [value]);
@@ -2585,8 +2840,10 @@ function ColorPicker({
2585
2840
  }
2586
2841
  };
2587
2842
  const formatDisplay = () => {
2588
- if (format4 === "rgb") return `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`;
2589
- if (format4 === "hsl") return `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;
2843
+ if (format4 === "rgb")
2844
+ return `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`;
2845
+ if (format4 === "hsl")
2846
+ return `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;
2590
2847
  return color;
2591
2848
  };
2592
2849
  return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
@@ -2928,7 +3185,7 @@ function GradientPicker({
2928
3185
  onChange,
2929
3186
  className
2930
3187
  }) {
2931
- const [gradient, setGradient] = React20__namespace.useState(value);
3188
+ const [gradient, setGradient] = React10__namespace.useState(value);
2932
3189
  const handleChange = (field, newValue) => {
2933
3190
  const newGradient = { ...gradient, [field]: newValue };
2934
3191
  setGradient(newGradient);
@@ -3014,7 +3271,7 @@ var overlayVariants = classVarianceAuthority.cva(
3014
3271
  }
3015
3272
  }
3016
3273
  );
3017
- var DialogOverlay = React20__namespace.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3274
+ var DialogOverlay = React10__namespace.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3018
3275
  DialogPrimitive__namespace.Overlay,
3019
3276
  {
3020
3277
  ref,
@@ -3073,7 +3330,7 @@ var dialogContentVariants = classVarianceAuthority.cva(
3073
3330
  }
3074
3331
  }
3075
3332
  );
3076
- var DialogContent = React20__namespace.forwardRef(
3333
+ var DialogContent = React10__namespace.forwardRef(
3077
3334
  ({
3078
3335
  className,
3079
3336
  children,
@@ -3186,7 +3443,7 @@ var DialogFooter = ({
3186
3443
  }
3187
3444
  );
3188
3445
  DialogFooter.displayName = "DialogFooter";
3189
- var DialogTitle = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3446
+ var DialogTitle = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3190
3447
  DialogPrimitive__namespace.Title,
3191
3448
  {
3192
3449
  ref,
@@ -3198,7 +3455,7 @@ var DialogTitle = React20__namespace.forwardRef(({ className, ...props }, ref) =
3198
3455
  }
3199
3456
  ));
3200
3457
  DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
3201
- var DialogDescription = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3458
+ var DialogDescription = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3202
3459
  DialogPrimitive__namespace.Description,
3203
3460
  {
3204
3461
  ref,
@@ -3210,7 +3467,7 @@ var DialogDescription = React20__namespace.forwardRef(({ className, ...props },
3210
3467
  }
3211
3468
  ));
3212
3469
  DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
3213
- var DialogForm = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3470
+ var DialogForm = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3214
3471
  "form",
3215
3472
  {
3216
3473
  ref,
@@ -3240,7 +3497,7 @@ var commandVariants = classVarianceAuthority.cva(
3240
3497
  }
3241
3498
  }
3242
3499
  );
3243
- var Command = React20__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3500
+ var Command = React10__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3244
3501
  cmdk.Command,
3245
3502
  {
3246
3503
  ref,
@@ -3262,7 +3519,7 @@ var CommandDialog = ({
3262
3519
  ), children })
3263
3520
  ] }) });
3264
3521
  };
3265
- var CommandInput = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3522
+ var CommandInput = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
3266
3523
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
3267
3524
  /* @__PURE__ */ jsxRuntime.jsx(
3268
3525
  cmdk.Command.Input,
@@ -3277,7 +3534,7 @@ var CommandInput = React20__namespace.forwardRef(({ className, ...props }, ref)
3277
3534
  )
3278
3535
  ] }));
3279
3536
  CommandInput.displayName = cmdk.Command.Input.displayName;
3280
- var CommandList = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3537
+ var CommandList = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3281
3538
  cmdk.Command.List,
3282
3539
  {
3283
3540
  ref,
@@ -3286,7 +3543,7 @@ var CommandList = React20__namespace.forwardRef(({ className, ...props }, ref) =
3286
3543
  }
3287
3544
  ));
3288
3545
  CommandList.displayName = cmdk.Command.List.displayName;
3289
- var CommandEmpty = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3546
+ var CommandEmpty = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3290
3547
  cmdk.Command.Empty,
3291
3548
  {
3292
3549
  ref,
@@ -3295,7 +3552,7 @@ var CommandEmpty = React20__namespace.forwardRef(({ className, ...props }, ref)
3295
3552
  }
3296
3553
  ));
3297
3554
  CommandEmpty.displayName = cmdk.Command.Empty.displayName;
3298
- var CommandGroup = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3555
+ var CommandGroup = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3299
3556
  cmdk.Command.Group,
3300
3557
  {
3301
3558
  ref,
@@ -3307,7 +3564,7 @@ var CommandGroup = React20__namespace.forwardRef(({ className, ...props }, ref)
3307
3564
  }
3308
3565
  ));
3309
3566
  CommandGroup.displayName = cmdk.Command.Group.displayName;
3310
- var CommandSeparator = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3567
+ var CommandSeparator = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3311
3568
  cmdk.Command.Separator,
3312
3569
  {
3313
3570
  ref,
@@ -3316,7 +3573,7 @@ var CommandSeparator = React20__namespace.forwardRef(({ className, ...props }, r
3316
3573
  }
3317
3574
  ));
3318
3575
  CommandSeparator.displayName = cmdk.Command.Separator.displayName;
3319
- var CommandItem = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3576
+ var CommandItem = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3320
3577
  cmdk.Command.Item,
3321
3578
  {
3322
3579
  ref,
@@ -3367,7 +3624,7 @@ var tableVariants = classVarianceAuthority.cva(
3367
3624
  }
3368
3625
  }
3369
3626
  );
3370
- var Table = React20__namespace.forwardRef(({
3627
+ var Table = React10__namespace.forwardRef(({
3371
3628
  className,
3372
3629
  variant,
3373
3630
  size,
@@ -3384,11 +3641,11 @@ var Table = React20__namespace.forwardRef(({
3384
3641
  ...props
3385
3642
  }, ref) => {
3386
3643
  const striped = variant === "striped";
3387
- const childrenWithProps = React20__namespace.Children.map(props.children, (child) => {
3388
- if (React20__namespace.isValidElement(child)) {
3644
+ const childrenWithProps = React10__namespace.Children.map(props.children, (child) => {
3645
+ if (React10__namespace.isValidElement(child)) {
3389
3646
  if (child.type === "tbody") {
3390
3647
  const tbodyProps = child.props;
3391
- return React20__namespace.cloneElement(child, {
3648
+ return React10__namespace.cloneElement(child, {
3392
3649
  className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
3393
3650
  });
3394
3651
  }
@@ -3413,10 +3670,10 @@ var Table = React20__namespace.forwardRef(({
3413
3670
  ] });
3414
3671
  });
3415
3672
  Table.displayName = "Table";
3416
- var TableHeader = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3673
+ var TableHeader = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
3417
3674
  TableHeader.displayName = "TableHeader";
3418
- var TableBody = React20__namespace.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3419
- const hasChildren = React20__namespace.Children.count(children) > 0;
3675
+ var TableBody = React10__namespace.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
3676
+ const hasChildren = React10__namespace.Children.count(children) > 0;
3420
3677
  return /* @__PURE__ */ jsxRuntime.jsx(
3421
3678
  "tbody",
3422
3679
  {
@@ -3428,7 +3685,7 @@ var TableBody = React20__namespace.forwardRef(({ className, emptyContent, emptyM
3428
3685
  );
3429
3686
  });
3430
3687
  TableBody.displayName = "TableBody";
3431
- var TableFooter = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3688
+ var TableFooter = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3432
3689
  "tfoot",
3433
3690
  {
3434
3691
  ref,
@@ -3437,7 +3694,7 @@ var TableFooter = React20__namespace.forwardRef(({ className, ...props }, ref) =
3437
3694
  }
3438
3695
  ));
3439
3696
  TableFooter.displayName = "TableFooter";
3440
- var TableRow = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3697
+ var TableRow = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3441
3698
  "tr",
3442
3699
  {
3443
3700
  ref,
@@ -3449,10 +3706,11 @@ var TableRow = React20__namespace.forwardRef(({ className, ...props }, ref) => /
3449
3706
  }
3450
3707
  ));
3451
3708
  TableRow.displayName = "TableRow";
3452
- var TableHead = React20__namespace.forwardRef(
3709
+ var TableHead = React10__namespace.forwardRef(
3453
3710
  ({ className, sortable, sorted, onSort, align = "left", children, ...props }, ref) => {
3454
3711
  const renderSortIcon = () => {
3455
- if (!sortable) return null;
3712
+ if (!sortable)
3713
+ return null;
3456
3714
  if (sorted === "asc") {
3457
3715
  return /* @__PURE__ */ jsxRuntime.jsx(
3458
3716
  "svg",
@@ -3536,7 +3794,7 @@ var TableHead = React20__namespace.forwardRef(
3536
3794
  }
3537
3795
  );
3538
3796
  TableHead.displayName = "TableHead";
3539
- var TableCell = React20__namespace.forwardRef(({ className, align = "left", ...props }, ref) => {
3797
+ var TableCell = React10__namespace.forwardRef(({ className, align = "left", ...props }, ref) => {
3540
3798
  const alignmentClass = {
3541
3799
  left: "text-left",
3542
3800
  center: "text-center",
@@ -3552,7 +3810,7 @@ var TableCell = React20__namespace.forwardRef(({ className, align = "left", ...p
3552
3810
  );
3553
3811
  });
3554
3812
  TableCell.displayName = "TableCell";
3555
- var TableCaption = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3813
+ var TableCaption = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3556
3814
  "caption",
3557
3815
  {
3558
3816
  ref,
@@ -3572,8 +3830,8 @@ function DataTableBasic({
3572
3830
  emptyMessage = "No results found.",
3573
3831
  className
3574
3832
  }) {
3575
- const [sorting, setSorting] = React20__namespace.useState([]);
3576
- const [globalFilter, setGlobalFilter] = React20__namespace.useState("");
3833
+ const [sorting, setSorting] = React10__namespace.useState([]);
3834
+ const [globalFilter, setGlobalFilter] = React10__namespace.useState("");
3577
3835
  const table = reactTable.useReactTable({
3578
3836
  data,
3579
3837
  columns,
@@ -3759,9 +4017,9 @@ function DatePicker({
3759
4017
  disabled,
3760
4018
  ...props
3761
4019
  }) {
3762
- const [open, setOpen] = React20__namespace.useState(false);
3763
- const [internalDate, setInternalDate] = React20__namespace.useState(value);
3764
- React20__namespace.useEffect(() => {
4020
+ const [open, setOpen] = React10__namespace.useState(false);
4021
+ const [internalDate, setInternalDate] = React10__namespace.useState(value);
4022
+ React10__namespace.useEffect(() => {
3765
4023
  setInternalDate(value);
3766
4024
  }, [value]);
3767
4025
  const handleSelect = (date) => {
@@ -3781,10 +4039,14 @@ function DatePicker({
3781
4039
  handleSelect(today);
3782
4040
  };
3783
4041
  const isDateDisabled = (date) => {
3784
- if (minDate && date < minDate) return true;
3785
- if (maxDate && date > maxDate) return true;
3786
- if (disabledDates?.some((d) => d.toDateString() === date.toDateString())) return true;
3787
- if (disabledDaysOfWeek?.includes(date.getDay())) return true;
4042
+ if (minDate && date < minDate)
4043
+ return true;
4044
+ if (maxDate && date > maxDate)
4045
+ return true;
4046
+ if (disabledDates?.some((d) => d.toDateString() === date.toDateString()))
4047
+ return true;
4048
+ if (disabledDaysOfWeek?.includes(date.getDay()))
4049
+ return true;
3788
4050
  return false;
3789
4051
  };
3790
4052
  const displayValue = internalDate && dateFns.isValid(internalDate) ? dateFns.format(internalDate, formatString) : null;
@@ -3913,9 +4175,9 @@ function DateRangePicker({
3913
4175
  separator = " - ",
3914
4176
  ...props
3915
4177
  }) {
3916
- const [open, setOpen] = React20__namespace.useState(false);
3917
- const [internalRange, setInternalRange] = React20__namespace.useState(value);
3918
- React20__namespace.useEffect(() => {
4178
+ const [open, setOpen] = React10__namespace.useState(false);
4179
+ const [internalRange, setInternalRange] = React10__namespace.useState(value);
4180
+ React10__namespace.useEffect(() => {
3919
4181
  setInternalRange(value);
3920
4182
  }, [value]);
3921
4183
  const handleSelect = (range) => {
@@ -3925,8 +4187,9 @@ function DateRangePicker({
3925
4187
  setOpen(false);
3926
4188
  }
3927
4189
  };
3928
- const displayValue = React20__namespace.useMemo(() => {
3929
- if (!internalRange?.from) return null;
4190
+ const displayValue = React10__namespace.useMemo(() => {
4191
+ if (!internalRange?.from)
4192
+ return null;
3930
4193
  if (!internalRange?.to) {
3931
4194
  return dateFns.format(internalRange.from, formatString);
3932
4195
  }
@@ -3979,8 +4242,8 @@ function DateTimePicker({
3979
4242
  timeInterval = 15,
3980
4243
  ...props
3981
4244
  }) {
3982
- const [date, setDate] = React20__namespace.useState(value);
3983
- const [time, setTime] = React20__namespace.useState(
4245
+ const [date, setDate] = React10__namespace.useState(value);
4246
+ const [time, setTime] = React10__namespace.useState(
3984
4247
  value ? dateFns.format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
3985
4248
  );
3986
4249
  const handleDateChange = (newDate) => {
@@ -4005,7 +4268,7 @@ function DateTimePicker({
4005
4268
  onChange?.(newDate);
4006
4269
  }
4007
4270
  };
4008
- const timeOptions = React20__namespace.useMemo(() => {
4271
+ const timeOptions = React10__namespace.useMemo(() => {
4009
4272
  const options = [];
4010
4273
  for (let h = 0; h < 24; h++) {
4011
4274
  for (let m = 0; m < 60; m += timeInterval) {
@@ -4065,8 +4328,8 @@ function MonthPicker({
4065
4328
  formatString = "MMMM yyyy",
4066
4329
  ...props
4067
4330
  }) {
4068
- const [open, setOpen] = React20__namespace.useState(false);
4069
- const [viewDate, setViewDate] = React20__namespace.useState(value || /* @__PURE__ */ new Date());
4331
+ const [open, setOpen] = React10__namespace.useState(false);
4332
+ const [viewDate, setViewDate] = React10__namespace.useState(value || /* @__PURE__ */ new Date());
4070
4333
  const months = [
4071
4334
  "January",
4072
4335
  "February",
@@ -4158,9 +4421,10 @@ function DraggableList({
4158
4421
  className,
4159
4422
  disabled = false
4160
4423
  }) {
4161
- const [draggedIndex, setDraggedIndex] = React20__namespace.useState(null);
4424
+ const [draggedIndex, setDraggedIndex] = React10__namespace.useState(null);
4162
4425
  const handleDragStart = (e, index) => {
4163
- if (disabled) return;
4426
+ if (disabled)
4427
+ return;
4164
4428
  setDraggedIndex(index);
4165
4429
  e.dataTransfer.effectAllowed = "move";
4166
4430
  };
@@ -4209,7 +4473,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
4209
4473
  var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
4210
4474
  var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
4211
4475
  var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
4212
- var DropdownMenuSubTrigger = React20__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4476
+ var DropdownMenuSubTrigger = React10__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4213
4477
  DropdownMenuPrimitive__namespace.SubTrigger,
4214
4478
  {
4215
4479
  ref,
@@ -4226,7 +4490,7 @@ var DropdownMenuSubTrigger = React20__namespace.forwardRef(({ className, inset,
4226
4490
  }
4227
4491
  ));
4228
4492
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
4229
- var DropdownMenuSubContent = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4493
+ var DropdownMenuSubContent = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4230
4494
  DropdownMenuPrimitive__namespace.SubContent,
4231
4495
  {
4232
4496
  ref,
@@ -4238,7 +4502,7 @@ var DropdownMenuSubContent = React20__namespace.forwardRef(({ className, ...prop
4238
4502
  }
4239
4503
  ));
4240
4504
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
4241
- var DropdownMenuContent = React20__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
4505
+ var DropdownMenuContent = React10__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
4242
4506
  DropdownMenuPrimitive__namespace.Content,
4243
4507
  {
4244
4508
  ref,
@@ -4251,7 +4515,7 @@ var DropdownMenuContent = React20__namespace.forwardRef(({ className, sideOffset
4251
4515
  }
4252
4516
  ) }));
4253
4517
  DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
4254
- var DropdownMenuItem = React20__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4518
+ var DropdownMenuItem = React10__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4255
4519
  DropdownMenuPrimitive__namespace.Item,
4256
4520
  {
4257
4521
  ref,
@@ -4264,7 +4528,7 @@ var DropdownMenuItem = React20__namespace.forwardRef(({ className, inset, ...pro
4264
4528
  }
4265
4529
  ));
4266
4530
  DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
4267
- var DropdownMenuCheckboxItem = React20__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4531
+ var DropdownMenuCheckboxItem = React10__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4268
4532
  DropdownMenuPrimitive__namespace.CheckboxItem,
4269
4533
  {
4270
4534
  ref,
@@ -4281,7 +4545,7 @@ var DropdownMenuCheckboxItem = React20__namespace.forwardRef(({ className, child
4281
4545
  }
4282
4546
  ));
4283
4547
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
4284
- var DropdownMenuRadioItem = React20__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4548
+ var DropdownMenuRadioItem = React10__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
4285
4549
  DropdownMenuPrimitive__namespace.RadioItem,
4286
4550
  {
4287
4551
  ref,
@@ -4297,7 +4561,7 @@ var DropdownMenuRadioItem = React20__namespace.forwardRef(({ className, children
4297
4561
  }
4298
4562
  ));
4299
4563
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
4300
- var DropdownMenuLabel = React20__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4564
+ var DropdownMenuLabel = React10__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4301
4565
  DropdownMenuPrimitive__namespace.Label,
4302
4566
  {
4303
4567
  ref,
@@ -4310,7 +4574,7 @@ var DropdownMenuLabel = React20__namespace.forwardRef(({ className, inset, ...pr
4310
4574
  }
4311
4575
  ));
4312
4576
  DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
4313
- var DropdownMenuSeparator = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4577
+ var DropdownMenuSeparator = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4314
4578
  DropdownMenuPrimitive__namespace.Separator,
4315
4579
  {
4316
4580
  ref,
@@ -4399,7 +4663,7 @@ var progressIndicatorVariants = classVarianceAuthority.cva(
4399
4663
  }
4400
4664
  }
4401
4665
  );
4402
- var Progress = React20__namespace.forwardRef(({
4666
+ var Progress = React10__namespace.forwardRef(({
4403
4667
  className,
4404
4668
  value = 0,
4405
4669
  variant,
@@ -4454,14 +4718,19 @@ var Progress = React20__namespace.forwardRef(({
4454
4718
  });
4455
4719
  Progress.displayName = "Progress";
4456
4720
  var getFileIcon = (type) => {
4457
- if (type.startsWith("image/")) return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Image, { className: "h-4 w-4" });
4458
- if (type.startsWith("video/")) return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Video, { className: "h-4 w-4" });
4459
- if (type.startsWith("audio/")) return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Music, { className: "h-4 w-4" });
4460
- if (type.includes("text") || type.includes("document")) return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "h-4 w-4" });
4721
+ if (type.startsWith("image/"))
4722
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Image, { className: "h-4 w-4" });
4723
+ if (type.startsWith("video/"))
4724
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Video, { className: "h-4 w-4" });
4725
+ if (type.startsWith("audio/"))
4726
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Music, { className: "h-4 w-4" });
4727
+ if (type.includes("text") || type.includes("document"))
4728
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "h-4 w-4" });
4461
4729
  return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.File, { className: "h-4 w-4" });
4462
4730
  };
4463
4731
  var formatFileSize = (bytes) => {
4464
- if (bytes === 0) return "0 Bytes";
4732
+ if (bytes === 0)
4733
+ return "0 Bytes";
4465
4734
  const k = 1024;
4466
4735
  const sizes = ["Bytes", "KB", "MB", "GB"];
4467
4736
  const i = Math.floor(Math.log(bytes) / Math.log(k));
@@ -4523,7 +4792,7 @@ var FileItem = ({
4523
4792
  }
4524
4793
  );
4525
4794
  };
4526
- var FileUpload = React20__namespace.default.forwardRef(
4795
+ var FileUpload = React10__namespace.default.forwardRef(
4527
4796
  ({
4528
4797
  accept = "*",
4529
4798
  multiple = true,
@@ -4537,9 +4806,9 @@ var FileUpload = React20__namespace.default.forwardRef(
4537
4806
  children,
4538
4807
  ...props
4539
4808
  }, ref) => {
4540
- const [uploadedFiles, setUploadedFiles] = React20.useState([]);
4541
- const [isDragOver, setIsDragOver] = React20.useState(false);
4542
- const [error, setError] = React20.useState(null);
4809
+ const [uploadedFiles, setUploadedFiles] = React10.useState([]);
4810
+ const [isDragOver, setIsDragOver] = React10.useState(false);
4811
+ const [error, setError] = React10.useState(null);
4543
4812
  const validateFile = (file) => {
4544
4813
  if (file.size > maxSize) {
4545
4814
  return `File size exceeds ${formatFileSize(maxSize)}`;
@@ -4555,7 +4824,7 @@ var FileUpload = React20__namespace.default.forwardRef(
4555
4824
  }
4556
4825
  return null;
4557
4826
  };
4558
- const processFiles = React20.useCallback(async (files) => {
4827
+ const processFiles = React10.useCallback(async (files) => {
4559
4828
  const fileArray = Array.from(files);
4560
4829
  setError(null);
4561
4830
  if (uploadedFiles.length + fileArray.length > maxFiles) {
@@ -4618,33 +4887,34 @@ var FileUpload = React20__namespace.default.forwardRef(
4618
4887
  }
4619
4888
  }
4620
4889
  }, [uploadedFiles.length, maxFiles, maxSize, accept, onUpload]);
4621
- const handleDrop = React20.useCallback((e) => {
4890
+ const handleDrop = React10.useCallback((e) => {
4622
4891
  e.preventDefault();
4623
4892
  setIsDragOver(false);
4624
- if (disabled) return;
4893
+ if (disabled)
4894
+ return;
4625
4895
  const files = e.dataTransfer.files;
4626
4896
  if (files.length > 0) {
4627
4897
  processFiles(files);
4628
4898
  }
4629
4899
  }, [processFiles, disabled]);
4630
- const handleDragOver = React20.useCallback((e) => {
4900
+ const handleDragOver = React10.useCallback((e) => {
4631
4901
  e.preventDefault();
4632
4902
  if (!disabled) {
4633
4903
  setIsDragOver(true);
4634
4904
  }
4635
4905
  }, [disabled]);
4636
- const handleDragLeave = React20.useCallback((e) => {
4906
+ const handleDragLeave = React10.useCallback((e) => {
4637
4907
  e.preventDefault();
4638
4908
  setIsDragOver(false);
4639
4909
  }, []);
4640
- const handleFileSelect = React20.useCallback((e) => {
4910
+ const handleFileSelect = React10.useCallback((e) => {
4641
4911
  const files = e.target.files;
4642
4912
  if (files && files.length > 0) {
4643
4913
  processFiles(files);
4644
4914
  }
4645
4915
  e.target.value = "";
4646
4916
  }, [processFiles]);
4647
- const removeFile = React20.useCallback((fileId) => {
4917
+ const removeFile = React10.useCallback((fileId) => {
4648
4918
  setUploadedFiles((prev) => {
4649
4919
  const fileToRemove = prev.find((f) => f.id === fileId);
4650
4920
  if (fileToRemove?.preview) {
@@ -4744,7 +5014,7 @@ var FileUpload = React20__namespace.default.forwardRef(
4744
5014
  }
4745
5015
  );
4746
5016
  FileUpload.displayName = "FileUpload";
4747
- var GestureDrawer = React20__namespace.default.forwardRef(
5017
+ var GestureDrawer = React10__namespace.default.forwardRef(
4748
5018
  ({
4749
5019
  children,
4750
5020
  isOpen,
@@ -4762,7 +5032,8 @@ var GestureDrawer = React20__namespace.default.forwardRef(
4762
5032
  const motionValue = isVertical ? y : x;
4763
5033
  const opacity = framerMotion.useTransform(motionValue, [0, threshold], [1, 0.5]);
4764
5034
  const handleDragEnd = (event, info) => {
4765
- if (!enableSwipeToClose) return;
5035
+ if (!enableSwipeToClose)
5036
+ return;
4766
5037
  const offset = isVertical ? info.offset.y : info.offset.x;
4767
5038
  const velocity = isVertical ? info.velocity.y : info.velocity.x;
4768
5039
  let shouldClose = false;
@@ -4803,7 +5074,8 @@ var GestureDrawer = React20__namespace.default.forwardRef(
4803
5074
  const getAnimatePosition = () => {
4804
5075
  return isVertical ? { y: 0 } : { x: 0 };
4805
5076
  };
4806
- if (!isOpen) return null;
5077
+ if (!isOpen)
5078
+ return null;
4807
5079
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "fixed inset-0 z-50", children: [
4808
5080
  /* @__PURE__ */ jsxRuntime.jsx(
4809
5081
  framerMotion.motion.div,
@@ -4864,9 +5136,9 @@ function GitHubStars({
4864
5136
  showWatchers = false,
4865
5137
  repoUrl = "https://github.com/moonui/moonui"
4866
5138
  }) {
4867
- const [stats, setStats] = React20.useState(null);
4868
- const [isLoading, setIsLoading] = React20.useState(true);
4869
- React20.useEffect(() => {
5139
+ const [stats, setStats] = React10.useState(null);
5140
+ const [isLoading, setIsLoading] = React10.useState(true);
5141
+ React10.useEffect(() => {
4870
5142
  const fetchStats = async () => {
4871
5143
  try {
4872
5144
  const response = await fetch("/api/github-stars");
@@ -4965,9 +5237,9 @@ function GitHubStarButton({
4965
5237
  size = "md",
4966
5238
  repoUrl = "https://github.com/moonui/moonui"
4967
5239
  }) {
4968
- const [stars, setStars] = React20.useState(null);
4969
- const [isLoading, setIsLoading] = React20.useState(true);
4970
- React20.useEffect(() => {
5240
+ const [stars, setStars] = React10.useState(null);
5241
+ const [isLoading, setIsLoading] = React10.useState(true);
5242
+ React10.useEffect(() => {
4971
5243
  const fetchStats = async () => {
4972
5244
  try {
4973
5245
  const response = await fetch("/api/github-stars");
@@ -5013,6 +5285,77 @@ function GitHubStarButton({
5013
5285
  }
5014
5286
  );
5015
5287
  }
5288
+ var InputOTP = React10__namespace.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5289
+ inputOtp.OTPInput,
5290
+ {
5291
+ ref,
5292
+ containerClassName: cn(
5293
+ "moonui-theme",
5294
+ "flex items-center gap-2 has-[:disabled]:opacity-50",
5295
+ containerClassName
5296
+ ),
5297
+ className: cn("disabled:cursor-not-allowed", className),
5298
+ ...props
5299
+ }
5300
+ ));
5301
+ InputOTP.displayName = "InputOTP";
5302
+ var InputOTPGroup = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center", className), ...props }));
5303
+ InputOTPGroup.displayName = "InputOTPGroup";
5304
+ var inputOTPSlotVariants = classVarianceAuthority.cva(
5305
+ [
5306
+ "relative flex h-10 w-10 items-center justify-center",
5307
+ "border-y border-r border-input text-sm text-foreground",
5308
+ "transition-all duration-200",
5309
+ "first:rounded-l-md first:border-l last:rounded-r-md"
5310
+ ],
5311
+ {
5312
+ variants: {
5313
+ // Aktif slot vurgusu — token tabanlı ring stili
5314
+ isActive: {
5315
+ true: "z-10 ring-2 ring-ring ring-offset-background",
5316
+ false: ""
5317
+ }
5318
+ },
5319
+ defaultVariants: {
5320
+ isActive: false
5321
+ }
5322
+ }
5323
+ );
5324
+ var InputOTPSlot = React10__namespace.forwardRef(
5325
+ ({ index, className, ...props }, ref) => {
5326
+ const inputOTPContext = React10__namespace.useContext(inputOtp.OTPInputContext);
5327
+ const slot = inputOTPContext?.slots?.[index];
5328
+ const char = slot?.char;
5329
+ const hasFakeCaret = slot?.hasFakeCaret;
5330
+ const isActive = slot?.isActive;
5331
+ return /* @__PURE__ */ jsxRuntime.jsxs(
5332
+ "div",
5333
+ {
5334
+ ref,
5335
+ "data-active": isActive ? "" : void 0,
5336
+ className: cn(inputOTPSlotVariants({ isActive: !!isActive }), className),
5337
+ ...props,
5338
+ children: [
5339
+ char,
5340
+ hasFakeCaret && // Sahte imleç — gerçek input görünmez olduğu için aktif slotta yanıp söner
5341
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
5342
+ ]
5343
+ }
5344
+ );
5345
+ }
5346
+ );
5347
+ InputOTPSlot.displayName = "InputOTPSlot";
5348
+ var InputOTPSeparator = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5349
+ "div",
5350
+ {
5351
+ ref,
5352
+ role: "separator",
5353
+ className: cn("text-muted-foreground", className),
5354
+ ...props,
5355
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Dot, { "aria-hidden": "true" })
5356
+ }
5357
+ ));
5358
+ InputOTPSeparator.displayName = "InputOTPSeparator";
5016
5359
  function LockedComponent({
5017
5360
  children,
5018
5361
  componentName,
@@ -5020,10 +5363,11 @@ function LockedComponent({
5020
5363
  showPreview = true,
5021
5364
  previewDuration = 2e3
5022
5365
  }) {
5023
- const [isPreviewActive, setIsPreviewActive] = React20.useState(false);
5024
- const [previewTimeout, setPreviewTimeout] = React20.useState(null);
5366
+ const [isPreviewActive, setIsPreviewActive] = React10.useState(false);
5367
+ const [previewTimeout, setPreviewTimeout] = React10.useState(null);
5025
5368
  const handleMouseEnter = () => {
5026
- if (!showPreview) return;
5369
+ if (!showPreview)
5370
+ return;
5027
5371
  setIsPreviewActive(true);
5028
5372
  if (previewTimeout) {
5029
5373
  clearTimeout(previewTimeout);
@@ -5117,18 +5461,19 @@ function ProComponentWrapper({
5117
5461
  fallback,
5118
5462
  requireCLI = true
5119
5463
  }) {
5120
- const [authState, setAuthState] = React20.useState({
5464
+ const [authState, setAuthState] = React10.useState({
5121
5465
  isAuthenticated: false,
5122
5466
  deviceValid: false,
5123
5467
  hasProAccess: false,
5124
5468
  loading: true
5125
5469
  });
5126
- React20.useEffect(() => {
5470
+ React10.useEffect(() => {
5127
5471
  const isDevelopment2 = () => {
5128
5472
  const checks = {
5129
5473
  nodeEnv: process.env.NODE_ENV === "development",
5130
5474
  nextPublicEnv: process.env.NEXT_PUBLIC_VERCEL_ENV === "development",
5131
5475
  localhost: typeof window !== "undefined" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname.includes(".local")),
5476
+ port: typeof window !== "undefined" && (window.location.port === "3000" || window.location.port === "3001" || window.location.port === "8080"),
5132
5477
  vercelEnv: !process.env.VERCEL,
5133
5478
  ciEnv: !process.env.CI,
5134
5479
  deploymentEnv: !process.env.DEPLOYMENT_ENV
@@ -5209,7 +5554,9 @@ function ProComponentWrapper({
5209
5554
  const isDevelopment = () => {
5210
5555
  const checks = {
5211
5556
  nodeEnv: process.env.NODE_ENV === "development",
5212
- localhost: typeof window !== "undefined" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname.includes(".local"))};
5557
+ localhost: typeof window !== "undefined" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname.includes(".local")),
5558
+ port: typeof window !== "undefined" && (window.location.port === "3000" || window.location.port === "3001" || window.location.port === "8080")
5559
+ };
5213
5560
  if (process.env.VERCEL || process.env.NETLIFY || process.env.RENDER || process.env.RAILWAY_ENVIRONMENT || process.env.FLY_APP_NAME) {
5214
5561
  return false;
5215
5562
  }
@@ -5297,7 +5644,7 @@ function MoonLogo({
5297
5644
  showText = true,
5298
5645
  ...props
5299
5646
  }) {
5300
- const logoId = React20__namespace.useId();
5647
+ const logoId = React10__namespace.useId();
5301
5648
  const gradientId = `moon-gradient-${logoId}`;
5302
5649
  const maskId = `moon-mask-${logoId}`;
5303
5650
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-2", className), children: [
@@ -5379,7 +5726,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
5379
5726
  }
5380
5727
  );
5381
5728
  Pagination.displayName = "Pagination";
5382
- var PaginationContent = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5729
+ var PaginationContent = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5383
5730
  "ul",
5384
5731
  {
5385
5732
  ref,
@@ -5388,7 +5735,7 @@ var PaginationContent = React20__namespace.forwardRef(({ className, ...props },
5388
5735
  }
5389
5736
  ));
5390
5737
  PaginationContent.displayName = "PaginationContent";
5391
- var PaginationItem = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5738
+ var PaginationItem = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
5392
5739
  PaginationItem.displayName = "PaginationItem";
5393
5740
  var PaginationLink = ({
5394
5741
  className,
@@ -5464,7 +5811,7 @@ var Select = SelectPrimitive__namespace.Root;
5464
5811
  Select.displayName = "Select";
5465
5812
  var SelectGroup = SelectPrimitive__namespace.Group;
5466
5813
  var SelectValue = SelectPrimitive__namespace.Value;
5467
- var SelectTrigger = React20__namespace.forwardRef(({ className, children, variant = "standard", size = "md", error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5814
+ var SelectTrigger = React10__namespace.forwardRef(({ className, children, variant = "standard", size = "md", error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5468
5815
  SelectPrimitive__namespace.Trigger,
5469
5816
  {
5470
5817
  ref,
@@ -5506,7 +5853,7 @@ var SelectTrigger = React20__namespace.forwardRef(({ className, children, varian
5506
5853
  }
5507
5854
  ));
5508
5855
  SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
5509
- var SelectScrollUpButton = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5856
+ var SelectScrollUpButton = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5510
5857
  SelectPrimitive__namespace.ScrollUpButton,
5511
5858
  {
5512
5859
  ref,
@@ -5519,7 +5866,7 @@ var SelectScrollUpButton = React20__namespace.forwardRef(({ className, ...props
5519
5866
  }
5520
5867
  ));
5521
5868
  SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
5522
- var SelectScrollDownButton = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5869
+ var SelectScrollDownButton = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5523
5870
  SelectPrimitive__namespace.ScrollDownButton,
5524
5871
  {
5525
5872
  ref,
@@ -5532,7 +5879,7 @@ var SelectScrollDownButton = React20__namespace.forwardRef(({ className, ...prop
5532
5879
  }
5533
5880
  ));
5534
5881
  SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
5535
- var SelectContent = React20__namespace.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
5882
+ var SelectContent = React10__namespace.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
5536
5883
  SelectPrimitive__namespace.Content,
5537
5884
  {
5538
5885
  ref,
@@ -5573,7 +5920,7 @@ var SelectContent = React20__namespace.forwardRef(({ className, children, positi
5573
5920
  }
5574
5921
  ) }));
5575
5922
  SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
5576
- var SelectLabel = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5923
+ var SelectLabel = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5577
5924
  SelectPrimitive__namespace.Label,
5578
5925
  {
5579
5926
  ref,
@@ -5582,7 +5929,7 @@ var SelectLabel = React20__namespace.forwardRef(({ className, ...props }, ref) =
5582
5929
  }
5583
5930
  ));
5584
5931
  SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
5585
- var SelectItem = React20__namespace.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5932
+ var SelectItem = React10__namespace.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5586
5933
  SelectPrimitive__namespace.Item,
5587
5934
  {
5588
5935
  ref,
@@ -5612,7 +5959,7 @@ var SelectItem = React20__namespace.forwardRef(({ className, children, variant =
5612
5959
  }
5613
5960
  ));
5614
5961
  SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
5615
- var SelectSeparator = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5962
+ var SelectSeparator = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5616
5963
  SelectPrimitive__namespace.Separator,
5617
5964
  {
5618
5965
  ref,
@@ -5653,22 +6000,30 @@ var formatPhoneNumber = (value, countryCode) => {
5653
6000
  const cleaned = value.replace(/\D/g, "");
5654
6001
  switch (countryCode) {
5655
6002
  case "+1":
5656
- if (cleaned.length <= 3) return cleaned;
5657
- if (cleaned.length <= 6) return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3)}`;
6003
+ if (cleaned.length <= 3)
6004
+ return cleaned;
6005
+ if (cleaned.length <= 6)
6006
+ return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3)}`;
5658
6007
  return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)}-${cleaned.slice(6, 10)}`;
5659
6008
  case "+44":
5660
- if (cleaned.length <= 4) return cleaned;
5661
- if (cleaned.length <= 7) return `${cleaned.slice(0, 4)} ${cleaned.slice(4)}`;
6009
+ if (cleaned.length <= 4)
6010
+ return cleaned;
6011
+ if (cleaned.length <= 7)
6012
+ return `${cleaned.slice(0, 4)} ${cleaned.slice(4)}`;
5662
6013
  return `${cleaned.slice(0, 4)} ${cleaned.slice(4, 7)} ${cleaned.slice(7, 11)}`;
5663
6014
  case "+90":
5664
- if (cleaned.length <= 3) return cleaned;
5665
- if (cleaned.length <= 6) return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3)}`;
5666
- if (cleaned.length <= 9) return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)} ${cleaned.slice(6)}`;
6015
+ if (cleaned.length <= 3)
6016
+ return cleaned;
6017
+ if (cleaned.length <= 6)
6018
+ return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3)}`;
6019
+ if (cleaned.length <= 9)
6020
+ return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)} ${cleaned.slice(6)}`;
5667
6021
  return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)} ${cleaned.slice(6, 8)} ${cleaned.slice(8, 10)}`;
5668
6022
  default:
5669
6023
  let formatted = "";
5670
6024
  for (let i = 0; i < cleaned.length; i++) {
5671
- if (i > 0 && i % 3 === 0) formatted += " ";
6025
+ if (i > 0 && i % 3 === 0)
6026
+ formatted += " ";
5672
6027
  formatted += cleaned[i];
5673
6028
  }
5674
6029
  return formatted;
@@ -5678,18 +6033,15 @@ var getMaxLength = (countryCode) => {
5678
6033
  switch (countryCode) {
5679
6034
  case "+1":
5680
6035
  return 10;
5681
- // US/Canada
5682
6036
  case "+44":
5683
6037
  return 11;
5684
- // UK
5685
6038
  case "+90":
5686
6039
  return 10;
5687
- // Turkey
5688
6040
  default:
5689
6041
  return 15;
5690
6042
  }
5691
6043
  };
5692
- var PhoneInput = React20__namespace.forwardRef(
6044
+ var PhoneInput = React10__namespace.forwardRef(
5693
6045
  ({
5694
6046
  className,
5695
6047
  value = "",
@@ -5701,8 +6053,8 @@ var PhoneInput = React20__namespace.forwardRef(
5701
6053
  size,
5702
6054
  ...props
5703
6055
  }, ref) => {
5704
- const [countryCode, setCountryCode] = React20__namespace.useState(defaultCountry);
5705
- const [phoneNumber, setPhoneNumber] = React20__namespace.useState(value);
6056
+ const [countryCode, setCountryCode] = React10__namespace.useState(defaultCountry);
6057
+ const [phoneNumber, setPhoneNumber] = React10__namespace.useState(value);
5706
6058
  const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
5707
6059
  const handlePhoneChange = (e) => {
5708
6060
  const rawValue = e.target.value.replace(/\D/g, "");
@@ -5773,8 +6125,8 @@ var radioGroupItemVariants = classVarianceAuthority.cva(
5773
6125
  }
5774
6126
  }
5775
6127
  );
5776
- var RadioGroupContext = React20__namespace.createContext({});
5777
- var RadioGroup2 = React20__namespace.forwardRef(
6128
+ var RadioGroupContext = React10__namespace.createContext({});
6129
+ var RadioGroup2 = React10__namespace.forwardRef(
5778
6130
  ({ className, value, onValueChange, disabled, name, ...props }, ref) => {
5779
6131
  return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupContext.Provider, { value: { value, onValueChange, disabled, name }, children: /* @__PURE__ */ jsxRuntime.jsx(
5780
6132
  "div",
@@ -5788,9 +6140,9 @@ var RadioGroup2 = React20__namespace.forwardRef(
5788
6140
  }
5789
6141
  );
5790
6142
  RadioGroup2.displayName = "RadioGroup";
5791
- var RadioGroupItem = React20__namespace.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
5792
- const radioGroup = React20__namespace.useContext(RadioGroupContext);
5793
- const generatedId = React20__namespace.useId();
6143
+ var RadioGroupItem = React10__namespace.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
6144
+ const radioGroup = React10__namespace.useContext(RadioGroupContext);
6145
+ const generatedId = React10__namespace.useId();
5794
6146
  const radioId = id || generatedId;
5795
6147
  const isChecked = radioGroup.value === value;
5796
6148
  const handleChange = (e) => {
@@ -5838,7 +6190,7 @@ var RadioGroupItem = React20__namespace.forwardRef(({ className, variant, size,
5838
6190
  ] });
5839
6191
  });
5840
6192
  RadioGroupItem.displayName = "RadioGroupItem";
5841
- var RadioLabel = React20__namespace.forwardRef(
6193
+ var RadioLabel = React10__namespace.forwardRef(
5842
6194
  ({ className, htmlFor, children, disabled = false, ...props }, ref) => {
5843
6195
  return /* @__PURE__ */ jsxRuntime.jsx(
5844
6196
  "label",
@@ -5857,13 +6209,13 @@ var RadioLabel = React20__namespace.forwardRef(
5857
6209
  }
5858
6210
  );
5859
6211
  RadioLabel.displayName = "RadioLabel";
5860
- var RadioItemWithLabel = React20__namespace.forwardRef(({
6212
+ var RadioItemWithLabel = React10__namespace.forwardRef(({
5861
6213
  id,
5862
6214
  label,
5863
6215
  labelClassName,
5864
6216
  ...radioProps
5865
6217
  }, ref) => {
5866
- const generatedId = React20__namespace.useId();
6218
+ const generatedId = React10__namespace.useId();
5867
6219
  const radioId = id || generatedId;
5868
6220
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
5869
6221
  /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
@@ -5940,7 +6292,7 @@ function RichTextEditor({
5940
6292
  )
5941
6293
  ] });
5942
6294
  }
5943
- var ScrollArea = React20__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
6295
+ var ScrollArea = React10__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
5944
6296
  ScrollAreaPrimitive__namespace.Root,
5945
6297
  {
5946
6298
  ref,
@@ -5954,7 +6306,7 @@ var ScrollArea = React20__namespace.forwardRef(({ className, children, ...props
5954
6306
  }
5955
6307
  ));
5956
6308
  ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
5957
- var ScrollBar = React20__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6309
+ var ScrollBar = React10__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5958
6310
  ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
5959
6311
  {
5960
6312
  ref,
@@ -6008,7 +6360,7 @@ var defaultTransition = {
6008
6360
  ease: [0.25, 0.46, 0.45, 0.94]
6009
6361
  // Custom cubic-bezier for smooth motion
6010
6362
  };
6011
- var ScrollReveal = React20__namespace.forwardRef(
6363
+ var ScrollReveal = React10__namespace.forwardRef(
6012
6364
  ({
6013
6365
  children,
6014
6366
  direction = "up",
@@ -6029,16 +6381,17 @@ var ScrollReveal = React20__namespace.forwardRef(
6029
6381
  viewport
6030
6382
  }, ref) => {
6031
6383
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6032
- const animationVariants = React20__namespace.useMemo(() => {
6033
- if (variants) return variants;
6384
+ const animationVariants = React10__namespace.useMemo(() => {
6385
+ if (variants)
6386
+ return variants;
6034
6387
  return createDefaultVariants(direction, distance);
6035
6388
  }, [direction, distance, variants]);
6036
- const transition = React20__namespace.useMemo(() => ({
6389
+ const transition = React10__namespace.useMemo(() => ({
6037
6390
  ...defaultTransition,
6038
6391
  duration,
6039
6392
  delay: delay + stagger
6040
6393
  }), [duration, delay, stagger]);
6041
- const viewportConfig = React20__namespace.useMemo(() => ({
6394
+ const viewportConfig = React10__namespace.useMemo(() => ({
6042
6395
  once: shouldTriggerOnce,
6043
6396
  amount: threshold,
6044
6397
  ...viewport
@@ -6073,7 +6426,7 @@ var ScrollReveal = React20__namespace.forwardRef(
6073
6426
  }
6074
6427
  );
6075
6428
  ScrollReveal.displayName = "ScrollReveal";
6076
- var ScrollRevealContainer = React20__namespace.forwardRef(
6429
+ var ScrollRevealContainer = React10__namespace.forwardRef(
6077
6430
  ({
6078
6431
  children,
6079
6432
  stagger = 0.1,
@@ -6086,7 +6439,7 @@ var ScrollRevealContainer = React20__namespace.forwardRef(
6086
6439
  viewport
6087
6440
  }, ref) => {
6088
6441
  const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
6089
- const viewportConfig = React20__namespace.useMemo(() => ({
6442
+ const viewportConfig = React10__namespace.useMemo(() => ({
6090
6443
  once: shouldTriggerOnce,
6091
6444
  amount: threshold,
6092
6445
  ...viewport
@@ -6117,7 +6470,7 @@ var ScrollRevealContainer = React20__namespace.forwardRef(
6117
6470
  }
6118
6471
  );
6119
6472
  ScrollRevealContainer.displayName = "ScrollRevealContainer";
6120
- var ScrollRevealItem = React20__namespace.forwardRef(
6473
+ var ScrollRevealItem = React10__namespace.forwardRef(
6121
6474
  ({
6122
6475
  children,
6123
6476
  direction = "up",
@@ -6128,11 +6481,12 @@ var ScrollRevealItem = React20__namespace.forwardRef(
6128
6481
  style,
6129
6482
  id
6130
6483
  }, ref) => {
6131
- const animationVariants = React20__namespace.useMemo(() => {
6132
- if (variants) return variants;
6484
+ const animationVariants = React10__namespace.useMemo(() => {
6485
+ if (variants)
6486
+ return variants;
6133
6487
  return createDefaultVariants(direction, distance);
6134
6488
  }, [direction, distance, variants]);
6135
- const transition = React20__namespace.useMemo(() => ({
6489
+ const transition = React10__namespace.useMemo(() => ({
6136
6490
  ...defaultTransition,
6137
6491
  duration
6138
6492
  }), [duration]);
@@ -6248,7 +6602,7 @@ var separatorVariants = classVarianceAuthority.cva(
6248
6602
  }
6249
6603
  }
6250
6604
  );
6251
- var Separator3 = React20__namespace.forwardRef(
6605
+ var Separator3 = React10__namespace.forwardRef(
6252
6606
  ({
6253
6607
  className,
6254
6608
  orientation = "horizontal",
@@ -6291,7 +6645,7 @@ var toggleVariants = classVarianceAuthority.cva(
6291
6645
  }
6292
6646
  }
6293
6647
  );
6294
- var Toggle = React20__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6648
+ var Toggle = React10__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6295
6649
  TogglePrimitive__namespace.Root,
6296
6650
  {
6297
6651
  ref,
@@ -6327,7 +6681,7 @@ var tooltipVariants = classVarianceAuthority.cva(
6327
6681
  );
6328
6682
  var Tooltip = TooltipPrimitive__namespace.Root;
6329
6683
  var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
6330
- var TooltipArrow = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6684
+ var TooltipArrow = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6331
6685
  TooltipPrimitive__namespace.Arrow,
6332
6686
  {
6333
6687
  ref,
@@ -6336,7 +6690,7 @@ var TooltipArrow = React20__namespace.forwardRef(({ className, ...props }, ref)
6336
6690
  }
6337
6691
  ));
6338
6692
  TooltipArrow.displayName = TooltipPrimitive__namespace.Arrow.displayName;
6339
- var TooltipContent = React20__namespace.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
6693
+ var TooltipContent = React10__namespace.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
6340
6694
  TooltipPrimitive__namespace.Content,
6341
6695
  {
6342
6696
  ref,
@@ -6350,7 +6704,7 @@ var TooltipContent = React20__namespace.forwardRef(({ className, variant, size,
6350
6704
  }
6351
6705
  ));
6352
6706
  TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
6353
- var SimpleTooltip = React20__namespace.forwardRef(
6707
+ var SimpleTooltip = React10__namespace.forwardRef(
6354
6708
  ({
6355
6709
  children,
6356
6710
  content,
@@ -6435,7 +6789,7 @@ var ColorPicker2 = ({ onColorSelect }) => {
6435
6789
  color
6436
6790
  )) });
6437
6791
  };
6438
- var SimpleEditor = React20__namespace.default.forwardRef(
6792
+ var SimpleEditor = React10__namespace.default.forwardRef(
6439
6793
  ({
6440
6794
  value = "",
6441
6795
  onChange,
@@ -6448,13 +6802,13 @@ var SimpleEditor = React20__namespace.default.forwardRef(
6448
6802
  showPreview = true,
6449
6803
  ...props
6450
6804
  }, ref) => {
6451
- const [content, setContent] = React20.useState(value);
6452
- const [isPreview, setIsPreview] = React20.useState(false);
6453
- const [sourceContent, setSourceContent] = React20.useState(value);
6454
- const [selection, setSelection] = React20.useState(null);
6455
- const editorRef = React20__namespace.default.useRef(null);
6456
- const sourceRef = React20__namespace.default.useRef(null);
6457
- const [formatState, setFormatState] = React20.useState({
6805
+ const [content, setContent] = React10.useState(value);
6806
+ const [isPreview, setIsPreview] = React10.useState(false);
6807
+ const [sourceContent, setSourceContent] = React10.useState(value);
6808
+ React10.useState(null);
6809
+ const editorRef = React10__namespace.default.useRef(null);
6810
+ const sourceRef = React10__namespace.default.useRef(null);
6811
+ const [formatState, setFormatState] = React10.useState({
6458
6812
  bold: false,
6459
6813
  italic: false,
6460
6814
  underline: false,
@@ -6468,27 +6822,29 @@ var SimpleEditor = React20__namespace.default.forwardRef(
6468
6822
  quote: false,
6469
6823
  code: false
6470
6824
  });
6471
- const updateContent = React20.useCallback((newContent) => {
6825
+ const updateContent = React10.useCallback((newContent) => {
6472
6826
  setContent(newContent);
6473
6827
  onChange?.(newContent);
6474
6828
  }, [onChange]);
6475
- const saveSelection = React20.useCallback(() => {
6829
+ const saveSelection = React10.useCallback(() => {
6476
6830
  const selection2 = window.getSelection();
6477
6831
  if (selection2 && selection2.rangeCount > 0) {
6478
6832
  return selection2.getRangeAt(0);
6479
6833
  }
6480
6834
  return null;
6481
6835
  }, []);
6482
- React20.useCallback((range) => {
6483
- if (!range) return;
6836
+ React10.useCallback((range) => {
6837
+ if (!range)
6838
+ return;
6484
6839
  const selection2 = window.getSelection();
6485
6840
  if (selection2) {
6486
6841
  selection2.removeAllRanges();
6487
6842
  selection2.addRange(range);
6488
6843
  }
6489
6844
  }, []);
6490
- const executeCommand = React20.useCallback((command, value2) => {
6491
- if (disabled) return;
6845
+ const executeCommand = React10.useCallback((command, value2) => {
6846
+ if (disabled)
6847
+ return;
6492
6848
  if (editorRef.current) {
6493
6849
  editorRef.current.focus();
6494
6850
  }
@@ -6519,11 +6875,11 @@ var SimpleEditor = React20__namespace.default.forwardRef(
6519
6875
  editorRef.current.focus();
6520
6876
  }
6521
6877
  }, [disabled, saveSelection, updateContent]);
6522
- const handleInput = React20.useCallback((e) => {
6878
+ const handleInput = React10.useCallback((e) => {
6523
6879
  const newContent = e.currentTarget.innerHTML;
6524
6880
  updateContent(newContent);
6525
6881
  }, [updateContent]);
6526
- const handleKeyDown = React20.useCallback((e) => {
6882
+ const handleKeyDown = React10.useCallback((e) => {
6527
6883
  if (e.ctrlKey || e.metaKey) {
6528
6884
  switch (e.key) {
6529
6885
  case "b":
@@ -6553,22 +6909,22 @@ var SimpleEditor = React20__namespace.default.forwardRef(
6553
6909
  executeCommand("insertHTML", "&nbsp;&nbsp;&nbsp;&nbsp;");
6554
6910
  }
6555
6911
  }, [executeCommand]);
6556
- const insertLink = React20.useCallback(() => {
6912
+ const insertLink = React10.useCallback(() => {
6557
6913
  const url = prompt("Enter URL:");
6558
6914
  if (url) {
6559
6915
  executeCommand("createLink", url);
6560
6916
  }
6561
6917
  }, [executeCommand]);
6562
- const insertImage = React20.useCallback(() => {
6918
+ const insertImage = React10.useCallback(() => {
6563
6919
  const url = prompt("Enter image URL:");
6564
6920
  if (url) {
6565
6921
  executeCommand("insertImage", url);
6566
6922
  }
6567
6923
  }, [executeCommand]);
6568
- const formatHeading = React20.useCallback((level) => {
6924
+ const formatHeading = React10.useCallback((level) => {
6569
6925
  executeCommand("formatBlock", `<h${level}>`);
6570
6926
  }, [executeCommand]);
6571
- const setTextColor = React20.useCallback((color) => {
6927
+ const setTextColor = React10.useCallback((color) => {
6572
6928
  const selection2 = window.getSelection();
6573
6929
  if (selection2 && selection2.rangeCount > 0) {
6574
6930
  const range = selection2.getRangeAt(0);
@@ -6585,12 +6941,12 @@ var SimpleEditor = React20__namespace.default.forwardRef(
6585
6941
  }
6586
6942
  }
6587
6943
  }, [executeCommand, updateContent]);
6588
- React20__namespace.default.useEffect(() => {
6944
+ React10__namespace.default.useEffect(() => {
6589
6945
  if (editorRef.current && content && content !== editorRef.current.innerHTML) {
6590
6946
  editorRef.current.innerHTML = content;
6591
6947
  }
6592
6948
  }, [content]);
6593
- React20__namespace.default.useEffect(() => {
6949
+ React10__namespace.default.useEffect(() => {
6594
6950
  if (value !== void 0 && value !== content) {
6595
6951
  setContent(value);
6596
6952
  setSourceContent(value);
@@ -6947,8 +7303,8 @@ var SimpleEditor = React20__namespace.default.forwardRef(
6947
7303
  );
6948
7304
  SimpleEditor.displayName = "SimpleEditor";
6949
7305
  var CharacterCount = ({ content }) => {
6950
- const [count, setCount] = React20.useState(0);
6951
- React20.useEffect(() => {
7306
+ const [count, setCount] = React10.useState(0);
7307
+ React10.useEffect(() => {
6952
7308
  const getPlainText = (html) => {
6953
7309
  const div = document.createElement("div");
6954
7310
  div.innerHTML = html;
@@ -6995,7 +7351,7 @@ var skeletonVariants = classVarianceAuthority.cva(
6995
7351
  }
6996
7352
  }
6997
7353
  );
6998
- var Skeleton = React20__namespace.forwardRef(
7354
+ var Skeleton = React10__namespace.forwardRef(
6999
7355
  ({
7000
7356
  className,
7001
7357
  variant,
@@ -7079,7 +7435,7 @@ var Skeleton = React20__namespace.forwardRef(
7079
7435
  }
7080
7436
  );
7081
7437
  Skeleton.displayName = "Skeleton";
7082
- var SkeletonText = React20__namespace.forwardRef(
7438
+ var SkeletonText = React10__namespace.forwardRef(
7083
7439
  ({
7084
7440
  className,
7085
7441
  lines = 3,
@@ -7120,7 +7476,7 @@ var SkeletonText = React20__namespace.forwardRef(
7120
7476
  }
7121
7477
  );
7122
7478
  SkeletonText.displayName = "SkeletonText";
7123
- var SkeletonAvatar = React20__namespace.forwardRef(
7479
+ var SkeletonAvatar = React10__namespace.forwardRef(
7124
7480
  ({
7125
7481
  className,
7126
7482
  size = "2.5rem",
@@ -7146,7 +7502,7 @@ var SkeletonAvatar = React20__namespace.forwardRef(
7146
7502
  }
7147
7503
  );
7148
7504
  SkeletonAvatar.displayName = "SkeletonAvatar";
7149
- var SkeletonCard = React20__namespace.forwardRef(
7505
+ var SkeletonCard = React10__namespace.forwardRef(
7150
7506
  ({
7151
7507
  className,
7152
7508
  showHeader = true,
@@ -7220,22 +7576,25 @@ var SkeletonCard = React20__namespace.forwardRef(
7220
7576
  }
7221
7577
  );
7222
7578
  SkeletonCard.displayName = "SkeletonCard";
7223
- var SwipeableCard = React20__namespace.forwardRef(
7579
+ var SwipeableCard = React10__namespace.forwardRef(
7224
7580
  ({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
7225
- const [startX, setStartX] = React20__namespace.useState(0);
7226
- const [currentX, setCurrentX] = React20__namespace.useState(0);
7227
- const [isSwiping, setIsSwiping] = React20__namespace.useState(false);
7581
+ const [startX, setStartX] = React10__namespace.useState(0);
7582
+ const [currentX, setCurrentX] = React10__namespace.useState(0);
7583
+ const [isSwiping, setIsSwiping] = React10__namespace.useState(false);
7228
7584
  const handleTouchStart = (e) => {
7229
- if (disabled) return;
7585
+ if (disabled)
7586
+ return;
7230
7587
  setStartX(e.touches[0].clientX);
7231
7588
  setIsSwiping(true);
7232
7589
  };
7233
7590
  const handleTouchMove = (e) => {
7234
- if (disabled || !isSwiping) return;
7591
+ if (disabled || !isSwiping)
7592
+ return;
7235
7593
  setCurrentX(e.touches[0].clientX);
7236
7594
  };
7237
7595
  const handleTouchEnd = () => {
7238
- if (disabled || !isSwiping) return;
7596
+ if (disabled || !isSwiping)
7597
+ return;
7239
7598
  const deltaX = currentX - startX;
7240
7599
  if (Math.abs(deltaX) > threshold) {
7241
7600
  if (deltaX > 0 && onSwipeRight) {
@@ -7267,7 +7626,7 @@ var SwipeableCard = React20__namespace.forwardRef(
7267
7626
  }
7268
7627
  );
7269
7628
  SwipeableCard.displayName = "SwipeableCard";
7270
- var Switch = React20__namespace.forwardRef(({ className, size = "md", variant = "primary", loading, leftIcon, rightIcon, description, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
7629
+ var Switch = React10__namespace.forwardRef(({ className, size = "md", variant = "primary", loading, leftIcon, rightIcon, description, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
7271
7630
  leftIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: leftIcon }),
7272
7631
  /* @__PURE__ */ jsxRuntime.jsxs(
7273
7632
  SwitchPrimitives__namespace.Root,
@@ -7314,7 +7673,7 @@ var Switch = React20__namespace.forwardRef(({ className, size = "md", variant =
7314
7673
  description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: description })
7315
7674
  ] }));
7316
7675
  Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
7317
- var TagsInput = React20__namespace.forwardRef(
7676
+ var TagsInput = React10__namespace.forwardRef(
7318
7677
  ({
7319
7678
  value = [],
7320
7679
  onChange,
@@ -7327,8 +7686,8 @@ var TagsInput = React20__namespace.forwardRef(
7327
7686
  disabled,
7328
7687
  ...props
7329
7688
  }, ref) => {
7330
- const [inputValue, setInputValue] = React20__namespace.useState("");
7331
- const [error, setError] = React20__namespace.useState("");
7689
+ const [inputValue, setInputValue] = React10__namespace.useState("");
7690
+ const [error, setError] = React10__namespace.useState("");
7332
7691
  const handleKeyDown = (e) => {
7333
7692
  if (e.key === "Enter" || e.key === delimiter) {
7334
7693
  e.preventDefault();
@@ -7339,7 +7698,8 @@ var TagsInput = React20__namespace.forwardRef(
7339
7698
  };
7340
7699
  const addTag = () => {
7341
7700
  const tag = inputValue.trim();
7342
- if (!tag) return;
7701
+ if (!tag)
7702
+ return;
7343
7703
  if (!allowDuplicates && value.includes(tag)) {
7344
7704
  setError("This tag already exists");
7345
7705
  setTimeout(() => setError(""), 2e3);
@@ -7355,7 +7715,8 @@ var TagsInput = React20__namespace.forwardRef(
7355
7715
  setError("");
7356
7716
  };
7357
7717
  const removeTag = (index) => {
7358
- if (disabled) return;
7718
+ if (disabled)
7719
+ return;
7359
7720
  onChange(value.filter((_, i) => i !== index));
7360
7721
  };
7361
7722
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
@@ -7457,7 +7818,7 @@ var textareaVariants = classVarianceAuthority.cva(
7457
7818
  }
7458
7819
  }
7459
7820
  );
7460
- var Textarea = React20__namespace.forwardRef(
7821
+ var Textarea = React10__namespace.forwardRef(
7461
7822
  ({
7462
7823
  className,
7463
7824
  wrapperClassName,
@@ -7477,12 +7838,13 @@ var Textarea = React20__namespace.forwardRef(
7477
7838
  onChange,
7478
7839
  ...props
7479
7840
  }, ref) => {
7480
- const textareaRef = React20__namespace.useRef(null);
7481
- const [internalValue, setInternalValue] = React20__namespace.useState(value || defaultValue || "");
7482
- React20__namespace.useImperativeHandle(ref, () => textareaRef.current);
7483
- const adjustHeight = React20__namespace.useCallback(() => {
7841
+ const textareaRef = React10__namespace.useRef(null);
7842
+ const [internalValue, setInternalValue] = React10__namespace.useState(value || defaultValue || "");
7843
+ React10__namespace.useImperativeHandle(ref, () => textareaRef.current);
7844
+ const adjustHeight = React10__namespace.useCallback(() => {
7484
7845
  const textarea = textareaRef.current;
7485
- if (!textarea || !autoResize) return;
7846
+ if (!textarea || !autoResize)
7847
+ return;
7486
7848
  textarea.style.height = "auto";
7487
7849
  const newHeight = textarea.scrollHeight;
7488
7850
  if (maxHeight && newHeight > maxHeight) {
@@ -7493,10 +7855,10 @@ var Textarea = React20__namespace.forwardRef(
7493
7855
  textarea.style.overflowY = "hidden";
7494
7856
  }
7495
7857
  }, [autoResize, maxHeight]);
7496
- React20__namespace.useEffect(() => {
7858
+ React10__namespace.useEffect(() => {
7497
7859
  adjustHeight();
7498
7860
  }, [internalValue, adjustHeight]);
7499
- React20__namespace.useEffect(() => {
7861
+ React10__namespace.useEffect(() => {
7500
7862
  if (value !== void 0) {
7501
7863
  setInternalValue(value);
7502
7864
  }
@@ -7562,7 +7924,7 @@ var Textarea = React20__namespace.forwardRef(
7562
7924
  );
7563
7925
  Textarea.displayName = "Textarea";
7564
7926
  var ToastProvider = ToastPrimitives__namespace.Provider;
7565
- var ToastViewport = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7927
+ var ToastViewport = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7566
7928
  ToastPrimitives__namespace.Viewport,
7567
7929
  {
7568
7930
  ref,
@@ -7591,7 +7953,7 @@ var toastVariants = classVarianceAuthority.cva(
7591
7953
  }
7592
7954
  }
7593
7955
  );
7594
- var Toast = React20__namespace.forwardRef(({ className, variant, ...props }, ref) => {
7956
+ var Toast = React10__namespace.forwardRef(({ className, variant, ...props }, ref) => {
7595
7957
  return /* @__PURE__ */ jsxRuntime.jsx(
7596
7958
  ToastPrimitives__namespace.Root,
7597
7959
  {
@@ -7602,7 +7964,7 @@ var Toast = React20__namespace.forwardRef(({ className, variant, ...props }, ref
7602
7964
  );
7603
7965
  });
7604
7966
  Toast.displayName = ToastPrimitives__namespace.Root.displayName;
7605
- var ToastAction = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7967
+ var ToastAction = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7606
7968
  ToastPrimitives__namespace.Action,
7607
7969
  {
7608
7970
  ref,
@@ -7614,7 +7976,7 @@ var ToastAction = React20__namespace.forwardRef(({ className, ...props }, ref) =
7614
7976
  }
7615
7977
  ));
7616
7978
  ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
7617
- var ToastClose = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7979
+ var ToastClose = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7618
7980
  ToastPrimitives__namespace.Close,
7619
7981
  {
7620
7982
  ref,
@@ -7628,7 +7990,7 @@ var ToastClose = React20__namespace.forwardRef(({ className, ...props }, ref) =>
7628
7990
  }
7629
7991
  ));
7630
7992
  ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
7631
- var ToastTitle = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7993
+ var ToastTitle = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7632
7994
  ToastPrimitives__namespace.Title,
7633
7995
  {
7634
7996
  ref,
@@ -7637,7 +7999,7 @@ var ToastTitle = React20__namespace.forwardRef(({ className, ...props }, ref) =>
7637
7999
  }
7638
8000
  ));
7639
8001
  ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
7640
- var ToastDescription = React20__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
8002
+ var ToastDescription = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7641
8003
  ToastPrimitives__namespace.Description,
7642
8004
  {
7643
8005
  ref,
@@ -7733,7 +8095,8 @@ function toast({ ...props }) {
7733
8095
  id,
7734
8096
  open: true,
7735
8097
  onOpenChange: (open) => {
7736
- if (!open) dismiss();
8098
+ if (!open)
8099
+ dismiss();
7737
8100
  }
7738
8101
  }
7739
8102
  });
@@ -7744,8 +8107,8 @@ function toast({ ...props }) {
7744
8107
  };
7745
8108
  }
7746
8109
  function useToast() {
7747
- const [state, setState] = React20__namespace.useState(memoryState);
7748
- React20__namespace.useEffect(() => {
8110
+ const [state, setState] = React10__namespace.useState(memoryState);
8111
+ React10__namespace.useEffect(() => {
7749
8112
  listeners.push(setState);
7750
8113
  return () => {
7751
8114
  const index = listeners.indexOf(setState);
@@ -7776,19 +8139,320 @@ function Toaster() {
7776
8139
  /* @__PURE__ */ jsxRuntime.jsx(ToastViewport, {})
7777
8140
  ] });
7778
8141
  }
8142
+ var kbdVariants = classVarianceAuthority.cva(
8143
+ [
8144
+ // Temel klavye-tuşu görünümü — token tabanlı, hardcoded renk yok
8145
+ "inline-flex items-center justify-center rounded",
8146
+ "border border-border bg-muted",
8147
+ "px-1.5 font-mono font-medium text-muted-foreground",
8148
+ // Alt kenarda hafif kabartma (border token'ı ile — [#...] hex sınıfı DEĞİL)
8149
+ "shadow-[0_1px_0_1px_hsl(var(--border))]",
8150
+ "select-none whitespace-nowrap"
8151
+ ],
8152
+ {
8153
+ variants: {
8154
+ size: {
8155
+ sm: "h-5 min-w-5 text-[10px]",
8156
+ md: "h-6 min-w-6 text-xs"
8157
+ }
8158
+ },
8159
+ defaultVariants: {
8160
+ size: "md"
8161
+ }
8162
+ }
8163
+ );
8164
+ var Kbd = React10__namespace.forwardRef(
8165
+ ({ className, size, children, ...props }, ref) => {
8166
+ return /* @__PURE__ */ jsxRuntime.jsx(
8167
+ "kbd",
8168
+ {
8169
+ ref,
8170
+ className: cn("moonui-theme", kbdVariants({ size }), className),
8171
+ ...props,
8172
+ children
8173
+ }
8174
+ );
8175
+ }
8176
+ );
8177
+ Kbd.displayName = "Kbd";
8178
+ var ratingVariants = classVarianceAuthority.cva(
8179
+ [
8180
+ "moonui-theme inline-flex items-center rounded-md outline-none",
8181
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
8182
+ ],
8183
+ {
8184
+ variants: {
8185
+ size: {
8186
+ sm: "gap-0.5",
8187
+ md: "gap-1",
8188
+ lg: "gap-1.5"
8189
+ }
8190
+ },
8191
+ defaultVariants: {
8192
+ size: "md"
8193
+ }
8194
+ }
8195
+ );
8196
+ var iconSizeMap = {
8197
+ sm: "h-4 w-4",
8198
+ md: "h-5 w-5",
8199
+ lg: "h-6 w-6"
8200
+ };
8201
+ var Rating = React10__namespace.forwardRef(
8202
+ ({
8203
+ className,
8204
+ value,
8205
+ defaultValue,
8206
+ onValueChange,
8207
+ max = 5,
8208
+ readOnly = false,
8209
+ precision = "full",
8210
+ icon,
8211
+ size,
8212
+ "aria-label": ariaLabel = "Rating",
8213
+ ...props
8214
+ }, ref) => {
8215
+ const resolvedSize = size ?? "md";
8216
+ const iconSizeClass = iconSizeMap[resolvedSize];
8217
+ const step = precision === "half" ? 0.5 : 1;
8218
+ const isControlled = value !== void 0;
8219
+ const [internalValue, setInternalValue] = React10__namespace.useState(defaultValue ?? 0);
8220
+ const currentValue = isControlled ? value ?? 0 : internalValue;
8221
+ const [hoverValue, setHoverValue] = React10__namespace.useState(null);
8222
+ const displayValue = hoverValue !== null ? hoverValue : currentValue;
8223
+ const commit = React10__namespace.useCallback(
8224
+ (next) => {
8225
+ if (readOnly)
8226
+ return;
8227
+ if (!isControlled)
8228
+ setInternalValue(next);
8229
+ onValueChange?.(next);
8230
+ },
8231
+ [readOnly, isControlled, onValueChange]
8232
+ );
8233
+ const handleKeyDown = React10__namespace.useCallback(
8234
+ (event) => {
8235
+ if (readOnly)
8236
+ return;
8237
+ let next = null;
8238
+ switch (event.key) {
8239
+ case "ArrowRight":
8240
+ case "ArrowUp":
8241
+ next = Math.min(max, currentValue + step);
8242
+ break;
8243
+ case "ArrowLeft":
8244
+ case "ArrowDown":
8245
+ next = Math.max(step, currentValue - step);
8246
+ break;
8247
+ case "Home":
8248
+ next = step;
8249
+ break;
8250
+ case "End":
8251
+ next = max;
8252
+ break;
8253
+ default:
8254
+ return;
8255
+ }
8256
+ event.preventDefault();
8257
+ commit(next);
8258
+ },
8259
+ [readOnly, max, currentValue, step, commit]
8260
+ );
8261
+ const renderIcon = (filled) => {
8262
+ if (React10__namespace.isValidElement(icon)) {
8263
+ const element = icon;
8264
+ return React10__namespace.cloneElement(element, {
8265
+ className: cn(
8266
+ iconSizeClass,
8267
+ "shrink-0",
8268
+ filled && "fill-current",
8269
+ element.props?.className
8270
+ )
8271
+ });
8272
+ }
8273
+ return /* @__PURE__ */ jsxRuntime.jsx(
8274
+ lucideReact.Star,
8275
+ {
8276
+ className: cn(iconSizeClass, "shrink-0", filled && "fill-current"),
8277
+ "aria-hidden": "true"
8278
+ }
8279
+ );
8280
+ };
8281
+ const stars = Array.from({ length: max }, (_, index) => index + 1);
8282
+ return /* @__PURE__ */ jsxRuntime.jsx(
8283
+ "div",
8284
+ {
8285
+ ref,
8286
+ role: "radiogroup",
8287
+ "aria-label": ariaLabel,
8288
+ "aria-orientation": "horizontal",
8289
+ "aria-readonly": readOnly || void 0,
8290
+ tabIndex: readOnly ? void 0 : 0,
8291
+ onKeyDown: handleKeyDown,
8292
+ onMouseLeave: () => setHoverValue(null),
8293
+ className: cn(ratingVariants({ size }), className),
8294
+ ...props,
8295
+ children: stars.map((starValue) => {
8296
+ const fraction = Math.max(0, Math.min(1, displayValue - (starValue - 1)));
8297
+ const halfValue = starValue - 0.5;
8298
+ return /* @__PURE__ */ jsxRuntime.jsxs(
8299
+ "span",
8300
+ {
8301
+ "data-slot": "rating-star",
8302
+ className: cn(
8303
+ "relative inline-flex shrink-0",
8304
+ !readOnly && "cursor-pointer"
8305
+ ),
8306
+ children: [
8307
+ /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "inline-flex text-muted-foreground/30", children: renderIcon(false) }),
8308
+ /* @__PURE__ */ jsxRuntime.jsx(
8309
+ "span",
8310
+ {
8311
+ "aria-hidden": "true",
8312
+ className: "pointer-events-none absolute left-0 top-0 h-full overflow-hidden text-amber-400",
8313
+ style: { width: `${fraction * 100}%` },
8314
+ children: renderIcon(true)
8315
+ }
8316
+ ),
8317
+ !readOnly && precision === "half" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8318
+ /* @__PURE__ */ jsxRuntime.jsx(
8319
+ "button",
8320
+ {
8321
+ type: "button",
8322
+ role: "radio",
8323
+ "aria-checked": currentValue === halfValue,
8324
+ "aria-label": `${halfValue} stars`,
8325
+ tabIndex: -1,
8326
+ onClick: () => commit(halfValue),
8327
+ onMouseEnter: () => setHoverValue(halfValue),
8328
+ className: "absolute inset-y-0 left-0 z-10 w-1/2 cursor-pointer bg-transparent"
8329
+ }
8330
+ ),
8331
+ /* @__PURE__ */ jsxRuntime.jsx(
8332
+ "button",
8333
+ {
8334
+ type: "button",
8335
+ role: "radio",
8336
+ "aria-checked": currentValue === starValue,
8337
+ "aria-label": `${starValue} stars`,
8338
+ tabIndex: -1,
8339
+ onClick: () => commit(starValue),
8340
+ onMouseEnter: () => setHoverValue(starValue),
8341
+ className: "absolute inset-y-0 right-0 z-10 w-1/2 cursor-pointer bg-transparent"
8342
+ }
8343
+ )
8344
+ ] }),
8345
+ !readOnly && precision === "full" && /* @__PURE__ */ jsxRuntime.jsx(
8346
+ "button",
8347
+ {
8348
+ type: "button",
8349
+ role: "radio",
8350
+ "aria-checked": currentValue === starValue,
8351
+ "aria-label": `${starValue} ${starValue === 1 ? "star" : "stars"}`,
8352
+ tabIndex: -1,
8353
+ onClick: () => commit(starValue),
8354
+ onMouseEnter: () => setHoverValue(starValue),
8355
+ className: "absolute inset-0 z-10 cursor-pointer bg-transparent"
8356
+ }
8357
+ )
8358
+ ]
8359
+ },
8360
+ starValue
8361
+ );
8362
+ })
8363
+ }
8364
+ );
8365
+ }
8366
+ );
8367
+ Rating.displayName = "Rating";
8368
+ var spinnerVariants = classVarianceAuthority.cva(
8369
+ [
8370
+ "inline-block shrink-0 rounded-full",
8371
+ "border-current border-t-transparent",
8372
+ "animate-spin motion-reduce:animate-none"
8373
+ ],
8374
+ {
8375
+ variants: {
8376
+ size: {
8377
+ sm: "h-4 w-4 border-2",
8378
+ // 16px
8379
+ md: "h-6 w-6 border-2",
8380
+ // 24px
8381
+ lg: "h-8 w-8 border-[3px]",
8382
+ // 32px
8383
+ xl: "h-10 w-10 border-4"
8384
+ // 40px
8385
+ }
8386
+ },
8387
+ defaultVariants: {
8388
+ size: "md"
8389
+ }
8390
+ }
8391
+ );
8392
+ var dotSizeMap = {
8393
+ sm: "h-1 w-1",
8394
+ md: "h-1.5 w-1.5",
8395
+ lg: "h-2 w-2",
8396
+ xl: "h-2.5 w-2.5"
8397
+ };
8398
+ var Spinner = React10__namespace.forwardRef(
8399
+ ({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
8400
+ return /* @__PURE__ */ jsxRuntime.jsxs(
8401
+ "div",
8402
+ {
8403
+ ref,
8404
+ role: "status",
8405
+ "aria-live": "polite",
8406
+ className: cn(
8407
+ "moonui-theme inline-flex items-center justify-center",
8408
+ className
8409
+ ),
8410
+ ...props,
8411
+ children: [
8412
+ variant === "dots" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex items-center gap-1", "aria-hidden": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx(
8413
+ "span",
8414
+ {
8415
+ className: cn(
8416
+ "inline-block rounded-full bg-current",
8417
+ "animate-bounce motion-reduce:animate-none",
8418
+ dotSizeMap[size ?? "md"]
8419
+ ),
8420
+ style: { animationDelay: `${i * 0.15}s` }
8421
+ },
8422
+ i
8423
+ )) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(spinnerVariants({ size })), "aria-hidden": "true" }),
8424
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: label })
8425
+ ]
8426
+ }
8427
+ );
8428
+ }
8429
+ );
8430
+ Spinner.displayName = "Spinner";
7779
8431
 
7780
- Object.defineProperty(exports, "Palette", {
8432
+ Object.defineProperty(exports, 'Palette', {
7781
8433
  enumerable: true,
7782
8434
  get: function () { return lucideReact.Palette; }
7783
8435
  });
7784
- Object.defineProperty(exports, "Pipette", {
8436
+ Object.defineProperty(exports, 'Pipette', {
7785
8437
  enumerable: true,
7786
8438
  get: function () { return lucideReact.Pipette; }
7787
8439
  });
7788
- Object.defineProperty(exports, "format", {
8440
+ Object.defineProperty(exports, 'format', {
7789
8441
  enumerable: true,
7790
8442
  get: function () { return dateFns.format; }
7791
8443
  });
8444
+ Object.defineProperty(exports, 'REGEXP_ONLY_CHARS', {
8445
+ enumerable: true,
8446
+ get: function () { return inputOtp.REGEXP_ONLY_CHARS; }
8447
+ });
8448
+ Object.defineProperty(exports, 'REGEXP_ONLY_DIGITS', {
8449
+ enumerable: true,
8450
+ get: function () { return inputOtp.REGEXP_ONLY_DIGITS; }
8451
+ });
8452
+ Object.defineProperty(exports, 'REGEXP_ONLY_DIGITS_AND_CHARS', {
8453
+ enumerable: true,
8454
+ get: function () { return inputOtp.REGEXP_ONLY_DIGITS_AND_CHARS; }
8455
+ });
7792
8456
  exports.Accordion = Accordion;
7793
8457
  exports.AccordionContent = AccordionContent;
7794
8458
  exports.AccordionItem = AccordionItem;
@@ -7820,6 +8484,11 @@ exports.CardHeader = CardHeader;
7820
8484
  exports.CardNumberInput = CardNumberInput;
7821
8485
  exports.CardTitle = CardTitle;
7822
8486
  exports.CardZipInput = CardZipInput;
8487
+ exports.Carousel = Carousel;
8488
+ exports.CarouselContent = CarouselContent;
8489
+ exports.CarouselItem = CarouselItem;
8490
+ exports.CarouselNext = CarouselNext;
8491
+ exports.CarouselPrevious = CarouselPrevious;
7823
8492
  exports.Checkbox = Checkbox;
7824
8493
  exports.CheckboxGroup = CheckboxGroup;
7825
8494
  exports.CheckboxLabel = CheckboxLabel;
@@ -7872,6 +8541,11 @@ exports.GitHubStarButton = GitHubStarButton;
7872
8541
  exports.GitHubStars = GitHubStars;
7873
8542
  exports.GradientPicker = GradientPicker;
7874
8543
  exports.Input = Input;
8544
+ exports.InputOTP = InputOTP;
8545
+ exports.InputOTPGroup = InputOTPGroup;
8546
+ exports.InputOTPSeparator = InputOTPSeparator;
8547
+ exports.InputOTPSlot = InputOTPSlot;
8548
+ exports.Kbd = Kbd;
7875
8549
  exports.Label = Label;
7876
8550
  exports.LockedComponent = LockedComponent;
7877
8551
  exports.MonthPicker = MonthPicker;
@@ -7910,6 +8584,11 @@ exports.MoonUICardHeader = CardHeader;
7910
8584
  exports.MoonUICardNumberInput = CardNumberInput;
7911
8585
  exports.MoonUICardTitle = CardTitle;
7912
8586
  exports.MoonUICardZipInput = CardZipInput;
8587
+ exports.MoonUICarousel = Carousel;
8588
+ exports.MoonUICarouselContent = CarouselContent;
8589
+ exports.MoonUICarouselItem = CarouselItem;
8590
+ exports.MoonUICarouselNext = CarouselNext;
8591
+ exports.MoonUICarouselPrevious = CarouselPrevious;
7913
8592
  exports.MoonUICheckbox = Checkbox;
7914
8593
  exports.MoonUICheckboxGroup = CheckboxGroup;
7915
8594
  exports.MoonUICheckboxLabel = CheckboxLabel;
@@ -7961,6 +8640,11 @@ exports.MoonUIGestureDrawer = GestureDrawer;
7961
8640
  exports.MoonUIGitHubStars = GitHubStars;
7962
8641
  exports.MoonUIGradientPicker = GradientPicker;
7963
8642
  exports.MoonUIInput = Input;
8643
+ exports.MoonUIInputOTP = InputOTP;
8644
+ exports.MoonUIInputOTPGroup = InputOTPGroup;
8645
+ exports.MoonUIInputOTPSeparator = InputOTPSeparator;
8646
+ exports.MoonUIInputOTPSlot = InputOTPSlot;
8647
+ exports.MoonUIKbd = Kbd;
7964
8648
  exports.MoonUILabel = Label;
7965
8649
  exports.MoonUILockedComponent = LockedComponent;
7966
8650
  exports.MoonUIMonthPicker = MonthPicker;
@@ -7983,6 +8667,7 @@ exports.MoonUIRadioGroup = RadioGroup2;
7983
8667
  exports.MoonUIRadioGroupItem = RadioGroupItem;
7984
8668
  exports.MoonUIRadioItemWithLabel = RadioItemWithLabel;
7985
8669
  exports.MoonUIRadioLabel = RadioLabel;
8670
+ exports.MoonUIRating = Rating;
7986
8671
  exports.MoonUIRichTextEditor = RichTextEditor;
7987
8672
  exports.MoonUIScrollArea = ScrollArea;
7988
8673
  exports.MoonUIScrollBar = ScrollBar;
@@ -8007,6 +8692,7 @@ exports.MoonUISkeletonAvatar = SkeletonAvatar;
8007
8692
  exports.MoonUISkeletonCard = SkeletonCard;
8008
8693
  exports.MoonUISkeletonText = SkeletonText;
8009
8694
  exports.MoonUISlider = Slider;
8695
+ exports.MoonUISpinner = Spinner;
8010
8696
  exports.MoonUISwipeableCard = SwipeableCard;
8011
8697
  exports.MoonUISwitch = Switch;
8012
8698
  exports.MoonUITable = Table;
@@ -8059,6 +8745,7 @@ exports.RadioGroup = RadioGroup2;
8059
8745
  exports.RadioGroupItem = RadioGroupItem;
8060
8746
  exports.RadioItemWithLabel = RadioItemWithLabel;
8061
8747
  exports.RadioLabel = RadioLabel;
8748
+ exports.Rating = Rating;
8062
8749
  exports.RichTextEditor = RichTextEditor;
8063
8750
  exports.ScrollArea = ScrollArea;
8064
8751
  exports.ScrollBar = ScrollBar;
@@ -8084,6 +8771,7 @@ exports.SkeletonAvatar = SkeletonAvatar;
8084
8771
  exports.SkeletonCard = SkeletonCard;
8085
8772
  exports.SkeletonText = SkeletonText;
8086
8773
  exports.Slider = Slider;
8774
+ exports.Spinner = Spinner;
8087
8775
  exports.SwipeableCard = SwipeableCard;
8088
8776
  exports.Switch = Switch;
8089
8777
  exports.Table = Table;
@@ -8117,21 +8805,34 @@ exports.TooltipTrigger = TooltipTrigger;
8117
8805
  exports.aspectRatioVariants = aspectRatioVariants;
8118
8806
  exports.badgeVariants = badgeVariants;
8119
8807
  exports.buttonVariants = buttonVariants;
8808
+ exports.carouselContentVariants = carouselContentVariants;
8809
+ exports.carouselItemVariants = carouselItemVariants;
8120
8810
  exports.cn = cn;
8121
8811
  exports.collapsibleContentVariants = collapsibleContentVariants;
8122
8812
  exports.collapsibleTriggerVariants = collapsibleTriggerVariants;
8813
+ exports.inputOTPSlotVariants = inputOTPSlotVariants;
8814
+ exports.kbdVariants = kbdVariants;
8123
8815
  exports.moonUIBadgeVariants = badgeVariants;
8124
8816
  exports.moonUIButtonVariants = buttonVariants;
8817
+ exports.moonUICarouselContentVariants = carouselContentVariants;
8818
+ exports.moonUICarouselItemVariants = carouselItemVariants;
8125
8819
  exports.moonUICreateSortableHeader = createSortableHeader;
8820
+ exports.moonUIInputOTPSlotVariants = inputOTPSlotVariants;
8821
+ exports.moonUIKbdVariants = kbdVariants;
8822
+ exports.moonUIRatingVariants = ratingVariants;
8126
8823
  exports.moonUISkeletonVariants = skeletonVariants;
8824
+ exports.moonUISpinnerVariants = spinnerVariants;
8127
8825
  exports.moonUIToggleVariants = toggleVariants;
8128
8826
  exports.popoverContentVariants = popoverContentVariants;
8129
8827
  exports.progressVariants = progressVariants;
8828
+ exports.ratingVariants = ratingVariants;
8130
8829
  exports.separatorVariants = separatorVariants;
8131
8830
  exports.skeletonVariants = skeletonVariants;
8831
+ exports.spinnerVariants = spinnerVariants;
8132
8832
  exports.toast = toast;
8133
8833
  exports.toggleVariants = toggleVariants;
8134
8834
  exports.tooltipVariants = tooltipVariants;
8835
+ exports.useCarousel = useCarousel;
8135
8836
  exports.useToast = useToast;
8136
- //# sourceMappingURL=index.js.map
8837
+ //# sourceMappingURL=out.js.map
8137
8838
  //# sourceMappingURL=index.js.map