@moontra/moonui 3.4.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +17 -5
- package/dist/index.d.ts +17 -5
- package/dist/index.global.js +365 -52
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +407 -334
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +371 -299
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/__tests__/alert.test.tsx +5 -5
- package/src/components/ui/__tests__/avatar.test.tsx +12 -12
- package/src/components/ui/__tests__/badge.test.tsx +17 -1
- package/src/components/ui/__tests__/select.test.tsx +24 -2
- package/src/components/ui/__tests__/switch.test.tsx +36 -3
- package/src/components/ui/alert.tsx +5 -2
- package/src/components/ui/avatar.tsx +18 -6
- package/src/components/ui/badge.tsx +18 -11
- package/src/components/ui/index.ts +6 -0
- package/src/components/ui/select.tsx +59 -23
- package/src/components/ui/switch.tsx +108 -51
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
3
|
+
import * as React11 from 'react';
|
|
4
|
+
import React11__default, { useState, useCallback, useEffect } from 'react';
|
|
5
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
6
6
|
import { ChevronDown, Info, AlertCircle, AlertTriangle, Check, X, MoreHorizontal, Loader2, CreditCard, ArrowLeft, ArrowRight, Minus, Search, ChevronRight, Circle, Upload, Dot, ChevronUp, Phone, Bold, Italic, Underline, Strikethrough, AlignLeft, AlignCenter, AlignRight, AlignJustify, List, ListOrdered, Quote, Code, Link, Image, Palette, Undo, Redo, Edit, Eye, ChevronLeft, Copy, ArrowDown, ArrowUp, ArrowUpDown, Calendar as Calendar$1, Clock, CheckCircle, Star, GitFork, ExternalLink, Crown, Lock, Zap, Video, Music, FileText, File } from 'lucide-react';
|
|
7
7
|
export { Palette, Pipette } from 'lucide-react';
|
|
@@ -38,7 +38,7 @@ function cn(...inputs) {
|
|
|
38
38
|
return twMerge(clsx(inputs));
|
|
39
39
|
}
|
|
40
40
|
var Accordion = AccordionPrimitive.Root;
|
|
41
|
-
var AccordionItem =
|
|
41
|
+
var AccordionItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
42
42
|
AccordionPrimitive.Item,
|
|
43
43
|
{
|
|
44
44
|
ref,
|
|
@@ -47,7 +47,7 @@ var AccordionItem = React10.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
47
47
|
}
|
|
48
48
|
));
|
|
49
49
|
AccordionItem.displayName = "AccordionItem";
|
|
50
|
-
var AccordionTrigger =
|
|
50
|
+
var AccordionTrigger = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
51
51
|
AccordionPrimitive.Trigger,
|
|
52
52
|
{
|
|
53
53
|
ref,
|
|
@@ -65,7 +65,7 @@ var AccordionTrigger = React10.forwardRef(({ className, children, ...props }, re
|
|
|
65
65
|
}
|
|
66
66
|
) }));
|
|
67
67
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
68
|
-
var AccordionContent =
|
|
68
|
+
var AccordionContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
69
69
|
AccordionPrimitive.Content,
|
|
70
70
|
{
|
|
71
71
|
ref,
|
|
@@ -89,7 +89,10 @@ var alertVariants = cva(
|
|
|
89
89
|
success: "bg-success/10 text-success border-success/30",
|
|
90
90
|
warning: "bg-warning/10 text-warning border-warning/30",
|
|
91
91
|
error: "bg-destructive/10 text-destructive border-destructive/30",
|
|
92
|
-
info
|
|
92
|
+
// `--info` token'ı (tokens.css) blue-500 ile birebir aynı değeri
|
|
93
|
+
// taşır → görsel değişiklik yok, ancak varyant artık temaya ve
|
|
94
|
+
// karanlık moda duyarlı. Kardeş varyantlarla simetrik.
|
|
95
|
+
info: "bg-info/10 text-info border-info/30"
|
|
93
96
|
},
|
|
94
97
|
size: {
|
|
95
98
|
sm: "py-2 text-xs",
|
|
@@ -115,7 +118,7 @@ var alertVariants = cva(
|
|
|
115
118
|
}
|
|
116
119
|
}
|
|
117
120
|
);
|
|
118
|
-
var Alert =
|
|
121
|
+
var Alert = React11.forwardRef(
|
|
119
122
|
({
|
|
120
123
|
className,
|
|
121
124
|
variant = "default",
|
|
@@ -127,7 +130,7 @@ var Alert = React10.forwardRef(
|
|
|
127
130
|
children,
|
|
128
131
|
...props
|
|
129
132
|
}, ref) => {
|
|
130
|
-
const Icon2 =
|
|
133
|
+
const Icon2 = React11.useMemo(() => {
|
|
131
134
|
switch (variant) {
|
|
132
135
|
case "success":
|
|
133
136
|
return Check;
|
|
@@ -165,7 +168,7 @@ var Alert = React10.forwardRef(
|
|
|
165
168
|
{
|
|
166
169
|
onClick: onClose,
|
|
167
170
|
className: "absolute right-3 top-3 inline-flex h-6 w-6 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100",
|
|
168
|
-
"aria-label": "
|
|
171
|
+
"aria-label": "Close alert",
|
|
169
172
|
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
170
173
|
}
|
|
171
174
|
)
|
|
@@ -175,7 +178,7 @@ var Alert = React10.forwardRef(
|
|
|
175
178
|
}
|
|
176
179
|
);
|
|
177
180
|
Alert.displayName = "Alert";
|
|
178
|
-
var AlertTitle =
|
|
181
|
+
var AlertTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
179
182
|
"h5",
|
|
180
183
|
{
|
|
181
184
|
ref,
|
|
@@ -188,7 +191,7 @@ var AlertTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
188
191
|
}
|
|
189
192
|
));
|
|
190
193
|
AlertTitle.displayName = "AlertTitle";
|
|
191
|
-
var AlertDescription =
|
|
194
|
+
var AlertDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
192
195
|
"div",
|
|
193
196
|
{
|
|
194
197
|
ref,
|
|
@@ -224,7 +227,7 @@ var aspectRatioVariants = cva(
|
|
|
224
227
|
}
|
|
225
228
|
}
|
|
226
229
|
);
|
|
227
|
-
var AspectRatio =
|
|
230
|
+
var AspectRatio = React11.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
228
231
|
"div",
|
|
229
232
|
{
|
|
230
233
|
ref,
|
|
@@ -273,7 +276,7 @@ var avatarVariants = cva(
|
|
|
273
276
|
}
|
|
274
277
|
}
|
|
275
278
|
);
|
|
276
|
-
var Avatar =
|
|
279
|
+
var Avatar = React11.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
277
280
|
AvatarPrimitive.Root,
|
|
278
281
|
{
|
|
279
282
|
ref,
|
|
@@ -282,7 +285,7 @@ var Avatar = React10.forwardRef(({ className, size, radius, variant, ...props },
|
|
|
282
285
|
}
|
|
283
286
|
));
|
|
284
287
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
285
|
-
var AvatarImage =
|
|
288
|
+
var AvatarImage = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
286
289
|
AvatarPrimitive.Image,
|
|
287
290
|
{
|
|
288
291
|
ref,
|
|
@@ -291,7 +294,7 @@ var AvatarImage = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
291
294
|
}
|
|
292
295
|
));
|
|
293
296
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
294
|
-
var AvatarFallback =
|
|
297
|
+
var AvatarFallback = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
295
298
|
AvatarPrimitive.Fallback,
|
|
296
299
|
{
|
|
297
300
|
ref,
|
|
@@ -303,10 +306,11 @@ var AvatarFallback = React10.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
303
306
|
}
|
|
304
307
|
));
|
|
305
308
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
306
|
-
var AvatarGroup =
|
|
307
|
-
({ className,
|
|
308
|
-
const
|
|
309
|
-
const
|
|
309
|
+
var AvatarGroup = React11.forwardRef(
|
|
310
|
+
({ className, max, children, overlapOffset = -8, ...props }, ref) => {
|
|
311
|
+
const childrenArray = React11.Children.toArray(children);
|
|
312
|
+
const visibleAvatars = max ? childrenArray.slice(0, max) : childrenArray;
|
|
313
|
+
const remainingCount = max ? Math.max(0, childrenArray.length - max) : 0;
|
|
310
314
|
return /* @__PURE__ */ jsx(
|
|
311
315
|
"div",
|
|
312
316
|
{
|
|
@@ -355,11 +359,15 @@ var badgeVariants = cva(
|
|
|
355
359
|
{
|
|
356
360
|
variants: {
|
|
357
361
|
variant: {
|
|
362
|
+
// KIRICI (issue #261): önceden ham `gray-900`/`white` kullanılıyordu;
|
|
363
|
+
// aynı varyant pro pakette token'lıydı → free ve pro `primary` için
|
|
364
|
+
// farklı renk üretiyordu. Artık token'a bağlı (tema/karanlık moda duyarlı).
|
|
365
|
+
// `primary` VARSAYILAN varyant olduğu için görünür bir renk değişimidir.
|
|
358
366
|
primary: [
|
|
359
|
-
"border-transparent bg-
|
|
360
|
-
"hover:bg-
|
|
361
|
-
"focus-visible:ring-
|
|
362
|
-
"dark:bg-
|
|
367
|
+
"border-transparent bg-primary text-primary-foreground",
|
|
368
|
+
"hover:bg-primary/90",
|
|
369
|
+
"focus-visible:ring-primary/30 dark:focus-visible:ring-primary/40",
|
|
370
|
+
"dark:bg-primary/90 dark:shadow-inner dark:shadow-primary/10"
|
|
363
371
|
],
|
|
364
372
|
secondary: [
|
|
365
373
|
"border-transparent bg-secondary text-secondary-foreground",
|
|
@@ -431,7 +439,7 @@ var badgeVariants = cva(
|
|
|
431
439
|
}
|
|
432
440
|
}
|
|
433
441
|
);
|
|
434
|
-
|
|
442
|
+
var Badge = React11.forwardRef(({
|
|
435
443
|
className,
|
|
436
444
|
variant,
|
|
437
445
|
size,
|
|
@@ -445,7 +453,7 @@ function Badge({
|
|
|
445
453
|
noAutoSpacing,
|
|
446
454
|
children,
|
|
447
455
|
...props
|
|
448
|
-
}) {
|
|
456
|
+
}, ref) => {
|
|
449
457
|
let autoLeftIcon = leftIcon;
|
|
450
458
|
let autoChildren = children;
|
|
451
459
|
if (variant === "pro") {
|
|
@@ -463,6 +471,7 @@ function Badge({
|
|
|
463
471
|
return /* @__PURE__ */ jsxs(
|
|
464
472
|
"div",
|
|
465
473
|
{
|
|
474
|
+
ref,
|
|
466
475
|
className: cn(
|
|
467
476
|
"moonui-theme",
|
|
468
477
|
badgeVariants({ variant, size, radius }),
|
|
@@ -514,7 +523,8 @@ function Badge({
|
|
|
514
523
|
]
|
|
515
524
|
}
|
|
516
525
|
);
|
|
517
|
-
}
|
|
526
|
+
});
|
|
527
|
+
Badge.displayName = "Badge";
|
|
518
528
|
var breadcrumbVariants = cva(
|
|
519
529
|
"flex items-center gap-1.5 text-sm",
|
|
520
530
|
{
|
|
@@ -536,7 +546,7 @@ var breadcrumbVariants = cva(
|
|
|
536
546
|
}
|
|
537
547
|
}
|
|
538
548
|
);
|
|
539
|
-
var Breadcrumb =
|
|
549
|
+
var Breadcrumb = React11.forwardRef(
|
|
540
550
|
({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
541
551
|
"nav",
|
|
542
552
|
{
|
|
@@ -548,9 +558,9 @@ var Breadcrumb = React10.forwardRef(
|
|
|
548
558
|
)
|
|
549
559
|
);
|
|
550
560
|
Breadcrumb.displayName = "Breadcrumb";
|
|
551
|
-
var BreadcrumbList =
|
|
561
|
+
var BreadcrumbList = React11.forwardRef(
|
|
552
562
|
({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
|
|
553
|
-
const childrenArray =
|
|
563
|
+
const childrenArray = React11.Children.toArray(props.children).filter(Boolean);
|
|
554
564
|
const childCount = childrenArray.length;
|
|
555
565
|
if (collapsed && childCount > collapsedWidth) {
|
|
556
566
|
const firstItem = childrenArray[0];
|
|
@@ -586,9 +596,9 @@ var BreadcrumbList = React10.forwardRef(
|
|
|
586
596
|
}
|
|
587
597
|
);
|
|
588
598
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
589
|
-
var BreadcrumbItem =
|
|
599
|
+
var BreadcrumbItem = React11.forwardRef(
|
|
590
600
|
({ className, isCurrent, href, asChild = false, ...props }, ref) => {
|
|
591
|
-
const Comp = asChild ?
|
|
601
|
+
const Comp = asChild ? React11.Fragment : href ? "a" : "span";
|
|
592
602
|
const itemProps = asChild ? {} : href ? { href } : {};
|
|
593
603
|
return /* @__PURE__ */ jsx(
|
|
594
604
|
"li",
|
|
@@ -645,7 +655,7 @@ var BreadcrumbEllipsis = ({
|
|
|
645
655
|
}
|
|
646
656
|
);
|
|
647
657
|
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
648
|
-
var BreadcrumbLink =
|
|
658
|
+
var BreadcrumbLink = React11.forwardRef(
|
|
649
659
|
({ className, href, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
650
660
|
"a",
|
|
651
661
|
{
|
|
@@ -660,7 +670,7 @@ var BreadcrumbLink = React10.forwardRef(
|
|
|
660
670
|
)
|
|
661
671
|
);
|
|
662
672
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
663
|
-
var BreadcrumbPage =
|
|
673
|
+
var BreadcrumbPage = React11.forwardRef(
|
|
664
674
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
665
675
|
"span",
|
|
666
676
|
{
|
|
@@ -823,7 +833,7 @@ var buttonVariants = cva(
|
|
|
823
833
|
}
|
|
824
834
|
}
|
|
825
835
|
);
|
|
826
|
-
var Button =
|
|
836
|
+
var Button = React11.forwardRef(
|
|
827
837
|
({
|
|
828
838
|
className,
|
|
829
839
|
variant,
|
|
@@ -1037,7 +1047,7 @@ var cardVariants = cva(
|
|
|
1037
1047
|
}
|
|
1038
1048
|
}
|
|
1039
1049
|
);
|
|
1040
|
-
var Card =
|
|
1050
|
+
var Card = React11.forwardRef(
|
|
1041
1051
|
({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
|
|
1042
1052
|
if (interactive && microInteraction !== "none") {
|
|
1043
1053
|
const interactionProps = {
|
|
@@ -1065,7 +1075,7 @@ var Card = React10.forwardRef(
|
|
|
1065
1075
|
}
|
|
1066
1076
|
);
|
|
1067
1077
|
Card.displayName = "Card";
|
|
1068
|
-
var CardHeader =
|
|
1078
|
+
var CardHeader = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1069
1079
|
"div",
|
|
1070
1080
|
{
|
|
1071
1081
|
ref,
|
|
@@ -1074,7 +1084,7 @@ var CardHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1074
1084
|
}
|
|
1075
1085
|
));
|
|
1076
1086
|
CardHeader.displayName = "CardHeader";
|
|
1077
|
-
var CardTitle =
|
|
1087
|
+
var CardTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1078
1088
|
"h3",
|
|
1079
1089
|
{
|
|
1080
1090
|
ref,
|
|
@@ -1083,7 +1093,7 @@ var CardTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1083
1093
|
}
|
|
1084
1094
|
));
|
|
1085
1095
|
CardTitle.displayName = "CardTitle";
|
|
1086
|
-
var CardDescription =
|
|
1096
|
+
var CardDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1087
1097
|
"p",
|
|
1088
1098
|
{
|
|
1089
1099
|
ref,
|
|
@@ -1092,9 +1102,9 @@ var CardDescription = React10.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1092
1102
|
}
|
|
1093
1103
|
));
|
|
1094
1104
|
CardDescription.displayName = "CardDescription";
|
|
1095
|
-
var CardContent =
|
|
1105
|
+
var CardContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
|
|
1096
1106
|
CardContent.displayName = "CardContent";
|
|
1097
|
-
var CardFooter =
|
|
1107
|
+
var CardFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1098
1108
|
"div",
|
|
1099
1109
|
{
|
|
1100
1110
|
ref,
|
|
@@ -1115,7 +1125,7 @@ function Calendar({
|
|
|
1115
1125
|
defaultMonth,
|
|
1116
1126
|
...props
|
|
1117
1127
|
}) {
|
|
1118
|
-
const [currentMonth, setCurrentMonth] =
|
|
1128
|
+
const [currentMonth, setCurrentMonth] = React11.useState(
|
|
1119
1129
|
defaultMonth || selected && selected || /* @__PURE__ */ new Date()
|
|
1120
1130
|
);
|
|
1121
1131
|
const weekDays = [
|
|
@@ -1329,9 +1339,9 @@ var formatCardNumber = (value, cardType) => {
|
|
|
1329
1339
|
}
|
|
1330
1340
|
return formatted;
|
|
1331
1341
|
};
|
|
1332
|
-
var CardNumberInput =
|
|
1342
|
+
var CardNumberInput = React11.forwardRef(
|
|
1333
1343
|
({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
|
|
1334
|
-
const [cardType, setCardType] =
|
|
1344
|
+
const [cardType, setCardType] = React11.useState("unknown");
|
|
1335
1345
|
const handleChange = (e) => {
|
|
1336
1346
|
const rawValue = e.target.value.replace(/\D/g, "");
|
|
1337
1347
|
const detectedType = getCardType(rawValue);
|
|
@@ -1362,7 +1372,7 @@ var CardNumberInput = React10.forwardRef(
|
|
|
1362
1372
|
}
|
|
1363
1373
|
);
|
|
1364
1374
|
CardNumberInput.displayName = "CardNumberInput";
|
|
1365
|
-
var CardExpiryInput =
|
|
1375
|
+
var CardExpiryInput = React11.forwardRef(
|
|
1366
1376
|
({ className, value = "", onChange, size, ...props }, ref) => {
|
|
1367
1377
|
const handleChange = (e) => {
|
|
1368
1378
|
let rawValue = e.target.value.replace(/\D/g, "");
|
|
@@ -1400,7 +1410,7 @@ var CardExpiryInput = React10.forwardRef(
|
|
|
1400
1410
|
}
|
|
1401
1411
|
);
|
|
1402
1412
|
CardExpiryInput.displayName = "CardExpiryInput";
|
|
1403
|
-
var CardCVCInput =
|
|
1413
|
+
var CardCVCInput = React11.forwardRef(
|
|
1404
1414
|
({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
|
|
1405
1415
|
const maxLength = cardType === "amex" ? 4 : 3;
|
|
1406
1416
|
const handleChange = (e) => {
|
|
@@ -1425,7 +1435,7 @@ var CardCVCInput = React10.forwardRef(
|
|
|
1425
1435
|
}
|
|
1426
1436
|
);
|
|
1427
1437
|
CardCVCInput.displayName = "CardCVCInput";
|
|
1428
|
-
var CardZipInput =
|
|
1438
|
+
var CardZipInput = React11.forwardRef(
|
|
1429
1439
|
({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
|
|
1430
1440
|
const handleChange = (e) => {
|
|
1431
1441
|
let rawValue = e.target.value;
|
|
@@ -1476,15 +1486,15 @@ var CardZipInput = React10.forwardRef(
|
|
|
1476
1486
|
}
|
|
1477
1487
|
);
|
|
1478
1488
|
CardZipInput.displayName = "CardZipInput";
|
|
1479
|
-
var CarouselContext =
|
|
1489
|
+
var CarouselContext = React11.createContext(null);
|
|
1480
1490
|
function useCarousel() {
|
|
1481
|
-
const context =
|
|
1491
|
+
const context = React11.useContext(CarouselContext);
|
|
1482
1492
|
if (!context) {
|
|
1483
1493
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1484
1494
|
}
|
|
1485
1495
|
return context;
|
|
1486
1496
|
}
|
|
1487
|
-
var Carousel =
|
|
1497
|
+
var Carousel = React11.forwardRef(
|
|
1488
1498
|
({
|
|
1489
1499
|
orientation = "horizontal",
|
|
1490
1500
|
opts,
|
|
@@ -1502,21 +1512,21 @@ var Carousel = React10.forwardRef(
|
|
|
1502
1512
|
},
|
|
1503
1513
|
plugins
|
|
1504
1514
|
);
|
|
1505
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1506
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1507
|
-
const onSelect =
|
|
1515
|
+
const [canScrollPrev, setCanScrollPrev] = React11.useState(false);
|
|
1516
|
+
const [canScrollNext, setCanScrollNext] = React11.useState(false);
|
|
1517
|
+
const onSelect = React11.useCallback((emblaApi) => {
|
|
1508
1518
|
if (!emblaApi)
|
|
1509
1519
|
return;
|
|
1510
1520
|
setCanScrollPrev(emblaApi.canScrollPrev());
|
|
1511
1521
|
setCanScrollNext(emblaApi.canScrollNext());
|
|
1512
1522
|
}, []);
|
|
1513
|
-
const scrollPrev =
|
|
1523
|
+
const scrollPrev = React11.useCallback(() => {
|
|
1514
1524
|
api?.scrollPrev();
|
|
1515
1525
|
}, [api]);
|
|
1516
|
-
const scrollNext =
|
|
1526
|
+
const scrollNext = React11.useCallback(() => {
|
|
1517
1527
|
api?.scrollNext();
|
|
1518
1528
|
}, [api]);
|
|
1519
|
-
const handleKeyDown =
|
|
1529
|
+
const handleKeyDown = React11.useCallback(
|
|
1520
1530
|
(event) => {
|
|
1521
1531
|
const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
1522
1532
|
const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
@@ -1530,12 +1540,12 @@ var Carousel = React10.forwardRef(
|
|
|
1530
1540
|
},
|
|
1531
1541
|
[resolvedOrientation, scrollPrev, scrollNext]
|
|
1532
1542
|
);
|
|
1533
|
-
|
|
1543
|
+
React11.useEffect(() => {
|
|
1534
1544
|
if (!api || !setApi)
|
|
1535
1545
|
return;
|
|
1536
1546
|
setApi(api);
|
|
1537
1547
|
}, [api, setApi]);
|
|
1538
|
-
|
|
1548
|
+
React11.useEffect(() => {
|
|
1539
1549
|
if (!api)
|
|
1540
1550
|
return;
|
|
1541
1551
|
onSelect(api);
|
|
@@ -1587,7 +1597,7 @@ var carouselContentVariants = cva("flex", {
|
|
|
1587
1597
|
orientation: "horizontal"
|
|
1588
1598
|
}
|
|
1589
1599
|
});
|
|
1590
|
-
var CarouselContent =
|
|
1600
|
+
var CarouselContent = React11.forwardRef(
|
|
1591
1601
|
({ className, ...props }, ref) => {
|
|
1592
1602
|
const { carouselRef, orientation } = useCarousel();
|
|
1593
1603
|
return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
@@ -1612,7 +1622,7 @@ var carouselItemVariants = cva("min-w-0 shrink-0 grow-0 basis-full", {
|
|
|
1612
1622
|
orientation: "horizontal"
|
|
1613
1623
|
}
|
|
1614
1624
|
});
|
|
1615
|
-
var CarouselItem =
|
|
1625
|
+
var CarouselItem = React11.forwardRef(
|
|
1616
1626
|
({ className, ...props }, ref) => {
|
|
1617
1627
|
const { orientation } = useCarousel();
|
|
1618
1628
|
return /* @__PURE__ */ jsx(
|
|
@@ -1628,7 +1638,7 @@ var CarouselItem = React10.forwardRef(
|
|
|
1628
1638
|
}
|
|
1629
1639
|
);
|
|
1630
1640
|
CarouselItem.displayName = "CarouselItem";
|
|
1631
|
-
var CarouselPrevious =
|
|
1641
|
+
var CarouselPrevious = React11.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
|
|
1632
1642
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1633
1643
|
return /* @__PURE__ */ jsxs(
|
|
1634
1644
|
Button,
|
|
@@ -1653,7 +1663,7 @@ var CarouselPrevious = React10.forwardRef(({ className, variant = "outline", siz
|
|
|
1653
1663
|
);
|
|
1654
1664
|
});
|
|
1655
1665
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1656
|
-
var CarouselNext =
|
|
1666
|
+
var CarouselNext = React11.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
|
|
1657
1667
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1658
1668
|
return /* @__PURE__ */ jsxs(
|
|
1659
1669
|
Button,
|
|
@@ -1716,7 +1726,7 @@ var checkboxVariants = cva(
|
|
|
1716
1726
|
}
|
|
1717
1727
|
}
|
|
1718
1728
|
);
|
|
1719
|
-
var Checkbox =
|
|
1729
|
+
var Checkbox = React11.forwardRef(({
|
|
1720
1730
|
className,
|
|
1721
1731
|
variant,
|
|
1722
1732
|
size,
|
|
@@ -1749,7 +1759,7 @@ var Checkbox = React10.forwardRef(({
|
|
|
1749
1759
|
);
|
|
1750
1760
|
});
|
|
1751
1761
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1752
|
-
var CheckboxGroup =
|
|
1762
|
+
var CheckboxGroup = React11.forwardRef(
|
|
1753
1763
|
({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
|
|
1754
1764
|
return /* @__PURE__ */ jsx(
|
|
1755
1765
|
"div",
|
|
@@ -1769,7 +1779,7 @@ var CheckboxGroup = React10.forwardRef(
|
|
|
1769
1779
|
}
|
|
1770
1780
|
);
|
|
1771
1781
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
1772
|
-
var CheckboxLabel =
|
|
1782
|
+
var CheckboxLabel = React11.forwardRef(
|
|
1773
1783
|
({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
|
|
1774
1784
|
return /* @__PURE__ */ jsx(
|
|
1775
1785
|
"label",
|
|
@@ -1789,14 +1799,14 @@ var CheckboxLabel = React10.forwardRef(
|
|
|
1789
1799
|
}
|
|
1790
1800
|
);
|
|
1791
1801
|
CheckboxLabel.displayName = "CheckboxLabel";
|
|
1792
|
-
var CheckboxWithLabel =
|
|
1802
|
+
var CheckboxWithLabel = React11.forwardRef(({
|
|
1793
1803
|
id,
|
|
1794
1804
|
label,
|
|
1795
1805
|
labelPosition = "end",
|
|
1796
1806
|
labelClassName,
|
|
1797
1807
|
...checkboxProps
|
|
1798
1808
|
}, ref) => {
|
|
1799
|
-
const generatedId =
|
|
1809
|
+
const generatedId = React11.useId();
|
|
1800
1810
|
const checkboxId = id || generatedId;
|
|
1801
1811
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
1802
1812
|
labelPosition === "start" && /* @__PURE__ */ jsx(
|
|
@@ -1846,7 +1856,7 @@ var collapsibleTriggerVariants = cva(
|
|
|
1846
1856
|
}
|
|
1847
1857
|
}
|
|
1848
1858
|
);
|
|
1849
|
-
var CollapsibleTrigger =
|
|
1859
|
+
var CollapsibleTrigger = React11.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
|
|
1850
1860
|
if (asChild) {
|
|
1851
1861
|
return /* @__PURE__ */ jsx(
|
|
1852
1862
|
CollapsiblePrimitive.Trigger,
|
|
@@ -1895,7 +1905,7 @@ var collapsibleContentVariants = cva(
|
|
|
1895
1905
|
}
|
|
1896
1906
|
}
|
|
1897
1907
|
);
|
|
1898
|
-
var CollapsibleContent =
|
|
1908
|
+
var CollapsibleContent = React11.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1899
1909
|
CollapsiblePrimitive.Content,
|
|
1900
1910
|
{
|
|
1901
1911
|
ref,
|
|
@@ -1978,7 +1988,7 @@ var inputVariants = cva(
|
|
|
1978
1988
|
}
|
|
1979
1989
|
}
|
|
1980
1990
|
);
|
|
1981
|
-
var Input =
|
|
1991
|
+
var Input = React11.forwardRef(
|
|
1982
1992
|
({
|
|
1983
1993
|
className,
|
|
1984
1994
|
wrapperClassName,
|
|
@@ -2005,8 +2015,8 @@ var Input = React10.forwardRef(
|
|
|
2005
2015
|
placeholder,
|
|
2006
2016
|
...props
|
|
2007
2017
|
}, ref) => {
|
|
2008
|
-
const [isFocused, setIsFocused] =
|
|
2009
|
-
const [internalValue, setInternalValue] =
|
|
2018
|
+
const [isFocused, setIsFocused] = React11.useState(false);
|
|
2019
|
+
const [internalValue, setInternalValue] = React11.useState(value || defaultValue || "");
|
|
2010
2020
|
const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
|
|
2011
2021
|
const isLabelActive = isFocused || hasValue;
|
|
2012
2022
|
const handleFocus = (e) => {
|
|
@@ -2021,7 +2031,7 @@ var Input = React10.forwardRef(
|
|
|
2021
2031
|
setInternalValue(e.target.value);
|
|
2022
2032
|
onChange?.(e);
|
|
2023
2033
|
};
|
|
2024
|
-
|
|
2034
|
+
React11.useEffect(() => {
|
|
2025
2035
|
if (value !== void 0) {
|
|
2026
2036
|
setInternalValue(value);
|
|
2027
2037
|
}
|
|
@@ -2105,7 +2115,7 @@ Input.displayName = "Input";
|
|
|
2105
2115
|
var labelVariants = cva(
|
|
2106
2116
|
"text-sm font-medium leading-none text-gray-900 dark:text-gray-200 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:peer-disabled:opacity-60 transition-colors duration-200"
|
|
2107
2117
|
);
|
|
2108
|
-
var Label =
|
|
2118
|
+
var Label = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2109
2119
|
LabelPrimitive.Root,
|
|
2110
2120
|
{
|
|
2111
2121
|
ref,
|
|
@@ -2166,7 +2176,7 @@ var popoverContentVariants = cva(
|
|
|
2166
2176
|
var Popover = PopoverPrimitive.Root;
|
|
2167
2177
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2168
2178
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
2169
|
-
var PopoverContent =
|
|
2179
|
+
var PopoverContent = React11.forwardRef(({
|
|
2170
2180
|
className,
|
|
2171
2181
|
variant,
|
|
2172
2182
|
size,
|
|
@@ -2234,7 +2244,7 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
2234
2244
|
}
|
|
2235
2245
|
);
|
|
2236
2246
|
PopoverFooter.displayName = "PopoverFooter";
|
|
2237
|
-
var Tabs =
|
|
2247
|
+
var Tabs = React11.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2238
2248
|
TabsPrimitive.Root,
|
|
2239
2249
|
{
|
|
2240
2250
|
ref,
|
|
@@ -2275,7 +2285,7 @@ var tabsListVariants = cva(
|
|
|
2275
2285
|
}
|
|
2276
2286
|
}
|
|
2277
2287
|
);
|
|
2278
|
-
var TabsList =
|
|
2288
|
+
var TabsList = React11.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
|
|
2279
2289
|
return /* @__PURE__ */ jsx(
|
|
2280
2290
|
TabsPrimitive.List,
|
|
2281
2291
|
{
|
|
@@ -2318,7 +2328,7 @@ var tabsTriggerVariants = cva(
|
|
|
2318
2328
|
}
|
|
2319
2329
|
}
|
|
2320
2330
|
);
|
|
2321
|
-
var TabsTrigger =
|
|
2331
|
+
var TabsTrigger = React11.forwardRef(({
|
|
2322
2332
|
className,
|
|
2323
2333
|
variant,
|
|
2324
2334
|
size,
|
|
@@ -2350,7 +2360,7 @@ var TabsTrigger = React10.forwardRef(({
|
|
|
2350
2360
|
}
|
|
2351
2361
|
));
|
|
2352
2362
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
2353
|
-
var TabsContent =
|
|
2363
|
+
var TabsContent = React11.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2354
2364
|
TabsPrimitive.Content,
|
|
2355
2365
|
{
|
|
2356
2366
|
ref,
|
|
@@ -2444,7 +2454,7 @@ var sliderThumbVariants = cva(
|
|
|
2444
2454
|
}
|
|
2445
2455
|
}
|
|
2446
2456
|
);
|
|
2447
|
-
var Slider =
|
|
2457
|
+
var Slider = React11.forwardRef(({
|
|
2448
2458
|
className,
|
|
2449
2459
|
size,
|
|
2450
2460
|
trackVariant,
|
|
@@ -2460,10 +2470,10 @@ var Slider = React10.forwardRef(({
|
|
|
2460
2470
|
disabled,
|
|
2461
2471
|
...props
|
|
2462
2472
|
}, ref) => {
|
|
2463
|
-
const [sliderValue, setSliderValue] =
|
|
2473
|
+
const [sliderValue, setSliderValue] = React11.useState(
|
|
2464
2474
|
value || defaultValue || [0]
|
|
2465
2475
|
);
|
|
2466
|
-
|
|
2476
|
+
React11.useEffect(() => {
|
|
2467
2477
|
if (value !== void 0) {
|
|
2468
2478
|
setSliderValue(value);
|
|
2469
2479
|
}
|
|
@@ -2478,7 +2488,7 @@ var Slider = React10.forwardRef(({
|
|
|
2478
2488
|
const calculateThumbPercent = (value2, min2, max2) => {
|
|
2479
2489
|
return (value2 - min2) / (max2 - min2) * 100;
|
|
2480
2490
|
};
|
|
2481
|
-
const trackRef =
|
|
2491
|
+
const trackRef = React11.useRef(null);
|
|
2482
2492
|
const min = props.min || 0;
|
|
2483
2493
|
const max = props.max || 100;
|
|
2484
2494
|
const step = props.step || 1;
|
|
@@ -2790,14 +2800,14 @@ function ColorPicker({
|
|
|
2790
2800
|
disabled,
|
|
2791
2801
|
...props
|
|
2792
2802
|
}) {
|
|
2793
|
-
const [open, setOpen] =
|
|
2794
|
-
const [color, setColor] =
|
|
2795
|
-
const [opacity, setOpacity] =
|
|
2796
|
-
const [copied, setCopied] =
|
|
2797
|
-
const [inputValue, setInputValue] =
|
|
2798
|
-
const hsl =
|
|
2799
|
-
const rgb =
|
|
2800
|
-
|
|
2803
|
+
const [open, setOpen] = React11.useState(false);
|
|
2804
|
+
const [color, setColor] = React11.useState(value);
|
|
2805
|
+
const [opacity, setOpacity] = React11.useState(100);
|
|
2806
|
+
const [copied, setCopied] = React11.useState(false);
|
|
2807
|
+
const [inputValue, setInputValue] = React11.useState(value);
|
|
2808
|
+
const hsl = React11.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
|
|
2809
|
+
const rgb = React11.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
|
|
2810
|
+
React11.useEffect(() => {
|
|
2801
2811
|
setColor(value);
|
|
2802
2812
|
setInputValue(value);
|
|
2803
2813
|
}, [value]);
|
|
@@ -3192,7 +3202,7 @@ function GradientPicker({
|
|
|
3192
3202
|
onChange,
|
|
3193
3203
|
className
|
|
3194
3204
|
}) {
|
|
3195
|
-
const [gradient, setGradient] =
|
|
3205
|
+
const [gradient, setGradient] = React11.useState(value);
|
|
3196
3206
|
const handleChange = (field, newValue) => {
|
|
3197
3207
|
const newGradient = { ...gradient, [field]: newValue };
|
|
3198
3208
|
setGradient(newGradient);
|
|
@@ -3278,7 +3288,7 @@ var overlayVariants = cva(
|
|
|
3278
3288
|
}
|
|
3279
3289
|
}
|
|
3280
3290
|
);
|
|
3281
|
-
var DialogOverlay =
|
|
3291
|
+
var DialogOverlay = React11.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3282
3292
|
DialogPrimitive.Overlay,
|
|
3283
3293
|
{
|
|
3284
3294
|
ref,
|
|
@@ -3337,7 +3347,7 @@ var dialogContentVariants = cva(
|
|
|
3337
3347
|
}
|
|
3338
3348
|
}
|
|
3339
3349
|
);
|
|
3340
|
-
var DialogContent =
|
|
3350
|
+
var DialogContent = React11.forwardRef(
|
|
3341
3351
|
({
|
|
3342
3352
|
className,
|
|
3343
3353
|
children,
|
|
@@ -3450,7 +3460,7 @@ var DialogFooter = ({
|
|
|
3450
3460
|
}
|
|
3451
3461
|
);
|
|
3452
3462
|
DialogFooter.displayName = "DialogFooter";
|
|
3453
|
-
var DialogTitle =
|
|
3463
|
+
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3454
3464
|
DialogPrimitive.Title,
|
|
3455
3465
|
{
|
|
3456
3466
|
ref,
|
|
@@ -3462,7 +3472,7 @@ var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3462
3472
|
}
|
|
3463
3473
|
));
|
|
3464
3474
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
3465
|
-
var DialogDescription =
|
|
3475
|
+
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3466
3476
|
DialogPrimitive.Description,
|
|
3467
3477
|
{
|
|
3468
3478
|
ref,
|
|
@@ -3474,7 +3484,7 @@ var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3474
3484
|
}
|
|
3475
3485
|
));
|
|
3476
3486
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
3477
|
-
var DialogForm =
|
|
3487
|
+
var DialogForm = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3478
3488
|
"form",
|
|
3479
3489
|
{
|
|
3480
3490
|
ref,
|
|
@@ -3504,7 +3514,7 @@ var commandVariants = cva(
|
|
|
3504
3514
|
}
|
|
3505
3515
|
}
|
|
3506
3516
|
);
|
|
3507
|
-
var Command =
|
|
3517
|
+
var Command = React11.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3508
3518
|
Command$1,
|
|
3509
3519
|
{
|
|
3510
3520
|
ref,
|
|
@@ -3526,7 +3536,7 @@ var CommandDialog = ({
|
|
|
3526
3536
|
), children })
|
|
3527
3537
|
] }) });
|
|
3528
3538
|
};
|
|
3529
|
-
var CommandInput =
|
|
3539
|
+
var CommandInput = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
3530
3540
|
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
3531
3541
|
/* @__PURE__ */ jsx(
|
|
3532
3542
|
Command$1.Input,
|
|
@@ -3541,7 +3551,7 @@ var CommandInput = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3541
3551
|
)
|
|
3542
3552
|
] }));
|
|
3543
3553
|
CommandInput.displayName = Command$1.Input.displayName;
|
|
3544
|
-
var CommandList =
|
|
3554
|
+
var CommandList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3545
3555
|
Command$1.List,
|
|
3546
3556
|
{
|
|
3547
3557
|
ref,
|
|
@@ -3550,7 +3560,7 @@ var CommandList = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3550
3560
|
}
|
|
3551
3561
|
));
|
|
3552
3562
|
CommandList.displayName = Command$1.List.displayName;
|
|
3553
|
-
var CommandEmpty =
|
|
3563
|
+
var CommandEmpty = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3554
3564
|
Command$1.Empty,
|
|
3555
3565
|
{
|
|
3556
3566
|
ref,
|
|
@@ -3559,7 +3569,7 @@ var CommandEmpty = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3559
3569
|
}
|
|
3560
3570
|
));
|
|
3561
3571
|
CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
3562
|
-
var CommandGroup =
|
|
3572
|
+
var CommandGroup = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3563
3573
|
Command$1.Group,
|
|
3564
3574
|
{
|
|
3565
3575
|
ref,
|
|
@@ -3571,7 +3581,7 @@ var CommandGroup = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3571
3581
|
}
|
|
3572
3582
|
));
|
|
3573
3583
|
CommandGroup.displayName = Command$1.Group.displayName;
|
|
3574
|
-
var CommandSeparator =
|
|
3584
|
+
var CommandSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3575
3585
|
Command$1.Separator,
|
|
3576
3586
|
{
|
|
3577
3587
|
ref,
|
|
@@ -3580,7 +3590,7 @@ var CommandSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3580
3590
|
}
|
|
3581
3591
|
));
|
|
3582
3592
|
CommandSeparator.displayName = Command$1.Separator.displayName;
|
|
3583
|
-
var CommandItem =
|
|
3593
|
+
var CommandItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3584
3594
|
Command$1.Item,
|
|
3585
3595
|
{
|
|
3586
3596
|
ref,
|
|
@@ -3631,7 +3641,7 @@ var tableVariants = cva(
|
|
|
3631
3641
|
}
|
|
3632
3642
|
}
|
|
3633
3643
|
);
|
|
3634
|
-
var Table =
|
|
3644
|
+
var Table = React11.forwardRef(({
|
|
3635
3645
|
className,
|
|
3636
3646
|
variant,
|
|
3637
3647
|
size,
|
|
@@ -3648,11 +3658,11 @@ var Table = React10.forwardRef(({
|
|
|
3648
3658
|
...props
|
|
3649
3659
|
}, ref) => {
|
|
3650
3660
|
const striped = variant === "striped";
|
|
3651
|
-
const childrenWithProps =
|
|
3652
|
-
if (
|
|
3661
|
+
const childrenWithProps = React11.Children.map(props.children, (child) => {
|
|
3662
|
+
if (React11.isValidElement(child)) {
|
|
3653
3663
|
if (child.type === "tbody") {
|
|
3654
3664
|
const tbodyProps = child.props;
|
|
3655
|
-
return
|
|
3665
|
+
return React11.cloneElement(child, {
|
|
3656
3666
|
className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
|
|
3657
3667
|
});
|
|
3658
3668
|
}
|
|
@@ -3677,10 +3687,10 @@ var Table = React10.forwardRef(({
|
|
|
3677
3687
|
] });
|
|
3678
3688
|
});
|
|
3679
3689
|
Table.displayName = "Table";
|
|
3680
|
-
var TableHeader =
|
|
3690
|
+
var TableHeader = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
|
|
3681
3691
|
TableHeader.displayName = "TableHeader";
|
|
3682
|
-
var TableBody =
|
|
3683
|
-
const hasChildren =
|
|
3692
|
+
var TableBody = React11.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
|
|
3693
|
+
const hasChildren = React11.Children.count(children) > 0;
|
|
3684
3694
|
return /* @__PURE__ */ jsx(
|
|
3685
3695
|
"tbody",
|
|
3686
3696
|
{
|
|
@@ -3692,7 +3702,7 @@ var TableBody = React10.forwardRef(({ className, emptyContent, emptyMessage = "N
|
|
|
3692
3702
|
);
|
|
3693
3703
|
});
|
|
3694
3704
|
TableBody.displayName = "TableBody";
|
|
3695
|
-
var TableFooter =
|
|
3705
|
+
var TableFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3696
3706
|
"tfoot",
|
|
3697
3707
|
{
|
|
3698
3708
|
ref,
|
|
@@ -3701,7 +3711,7 @@ var TableFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3701
3711
|
}
|
|
3702
3712
|
));
|
|
3703
3713
|
TableFooter.displayName = "TableFooter";
|
|
3704
|
-
var TableRow =
|
|
3714
|
+
var TableRow = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3705
3715
|
"tr",
|
|
3706
3716
|
{
|
|
3707
3717
|
ref,
|
|
@@ -3713,7 +3723,7 @@ var TableRow = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3713
3723
|
}
|
|
3714
3724
|
));
|
|
3715
3725
|
TableRow.displayName = "TableRow";
|
|
3716
|
-
var TableHead =
|
|
3726
|
+
var TableHead = React11.forwardRef(
|
|
3717
3727
|
({ className, sortable, sorted, onSort, align = "left", children, ...props }, ref) => {
|
|
3718
3728
|
const renderSortIcon = () => {
|
|
3719
3729
|
if (!sortable)
|
|
@@ -3801,7 +3811,7 @@ var TableHead = React10.forwardRef(
|
|
|
3801
3811
|
}
|
|
3802
3812
|
);
|
|
3803
3813
|
TableHead.displayName = "TableHead";
|
|
3804
|
-
var TableCell =
|
|
3814
|
+
var TableCell = React11.forwardRef(({ className, align = "left", ...props }, ref) => {
|
|
3805
3815
|
const alignmentClass = {
|
|
3806
3816
|
left: "text-left",
|
|
3807
3817
|
center: "text-center",
|
|
@@ -3817,7 +3827,7 @@ var TableCell = React10.forwardRef(({ className, align = "left", ...props }, ref
|
|
|
3817
3827
|
);
|
|
3818
3828
|
});
|
|
3819
3829
|
TableCell.displayName = "TableCell";
|
|
3820
|
-
var TableCaption =
|
|
3830
|
+
var TableCaption = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3821
3831
|
"caption",
|
|
3822
3832
|
{
|
|
3823
3833
|
ref,
|
|
@@ -3837,8 +3847,8 @@ function DataTableBasic({
|
|
|
3837
3847
|
emptyMessage = "No results found.",
|
|
3838
3848
|
className
|
|
3839
3849
|
}) {
|
|
3840
|
-
const [sorting, setSorting] =
|
|
3841
|
-
const [globalFilter, setGlobalFilter] =
|
|
3850
|
+
const [sorting, setSorting] = React11.useState([]);
|
|
3851
|
+
const [globalFilter, setGlobalFilter] = React11.useState("");
|
|
3842
3852
|
const table = useReactTable({
|
|
3843
3853
|
data,
|
|
3844
3854
|
columns,
|
|
@@ -4024,9 +4034,9 @@ function DatePicker({
|
|
|
4024
4034
|
disabled,
|
|
4025
4035
|
...props
|
|
4026
4036
|
}) {
|
|
4027
|
-
const [open, setOpen] =
|
|
4028
|
-
const [internalDate, setInternalDate] =
|
|
4029
|
-
|
|
4037
|
+
const [open, setOpen] = React11.useState(false);
|
|
4038
|
+
const [internalDate, setInternalDate] = React11.useState(value);
|
|
4039
|
+
React11.useEffect(() => {
|
|
4030
4040
|
setInternalDate(value);
|
|
4031
4041
|
}, [value]);
|
|
4032
4042
|
const handleSelect = (date) => {
|
|
@@ -4182,9 +4192,9 @@ function DateRangePicker({
|
|
|
4182
4192
|
separator = " - ",
|
|
4183
4193
|
...props
|
|
4184
4194
|
}) {
|
|
4185
|
-
const [open, setOpen] =
|
|
4186
|
-
const [internalRange, setInternalRange] =
|
|
4187
|
-
|
|
4195
|
+
const [open, setOpen] = React11.useState(false);
|
|
4196
|
+
const [internalRange, setInternalRange] = React11.useState(value);
|
|
4197
|
+
React11.useEffect(() => {
|
|
4188
4198
|
setInternalRange(value);
|
|
4189
4199
|
}, [value]);
|
|
4190
4200
|
const handleSelect = (range) => {
|
|
@@ -4194,7 +4204,7 @@ function DateRangePicker({
|
|
|
4194
4204
|
setOpen(false);
|
|
4195
4205
|
}
|
|
4196
4206
|
};
|
|
4197
|
-
const displayValue =
|
|
4207
|
+
const displayValue = React11.useMemo(() => {
|
|
4198
4208
|
if (!internalRange?.from)
|
|
4199
4209
|
return null;
|
|
4200
4210
|
if (!internalRange?.to) {
|
|
@@ -4249,8 +4259,8 @@ function DateTimePicker({
|
|
|
4249
4259
|
timeInterval = 15,
|
|
4250
4260
|
...props
|
|
4251
4261
|
}) {
|
|
4252
|
-
const [date, setDate] =
|
|
4253
|
-
const [time, setTime] =
|
|
4262
|
+
const [date, setDate] = React11.useState(value);
|
|
4263
|
+
const [time, setTime] = React11.useState(
|
|
4254
4264
|
value ? format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
|
|
4255
4265
|
);
|
|
4256
4266
|
const handleDateChange = (newDate) => {
|
|
@@ -4275,7 +4285,7 @@ function DateTimePicker({
|
|
|
4275
4285
|
onChange?.(newDate);
|
|
4276
4286
|
}
|
|
4277
4287
|
};
|
|
4278
|
-
const timeOptions =
|
|
4288
|
+
const timeOptions = React11.useMemo(() => {
|
|
4279
4289
|
const options = [];
|
|
4280
4290
|
for (let h = 0; h < 24; h++) {
|
|
4281
4291
|
for (let m = 0; m < 60; m += timeInterval) {
|
|
@@ -4335,8 +4345,8 @@ function MonthPicker({
|
|
|
4335
4345
|
formatString = "MMMM yyyy",
|
|
4336
4346
|
...props
|
|
4337
4347
|
}) {
|
|
4338
|
-
const [open, setOpen] =
|
|
4339
|
-
const [viewDate, setViewDate] =
|
|
4348
|
+
const [open, setOpen] = React11.useState(false);
|
|
4349
|
+
const [viewDate, setViewDate] = React11.useState(value || /* @__PURE__ */ new Date());
|
|
4340
4350
|
const months = [
|
|
4341
4351
|
"January",
|
|
4342
4352
|
"February",
|
|
@@ -4428,7 +4438,7 @@ function DraggableList({
|
|
|
4428
4438
|
className,
|
|
4429
4439
|
disabled = false
|
|
4430
4440
|
}) {
|
|
4431
|
-
const [draggedIndex, setDraggedIndex] =
|
|
4441
|
+
const [draggedIndex, setDraggedIndex] = React11.useState(null);
|
|
4432
4442
|
const handleDragStart = (e, index) => {
|
|
4433
4443
|
if (disabled)
|
|
4434
4444
|
return;
|
|
@@ -4480,7 +4490,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
4480
4490
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
4481
4491
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
4482
4492
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
4483
|
-
var DropdownMenuSubTrigger =
|
|
4493
|
+
var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4484
4494
|
DropdownMenuPrimitive.SubTrigger,
|
|
4485
4495
|
{
|
|
4486
4496
|
ref,
|
|
@@ -4497,7 +4507,7 @@ var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, .
|
|
|
4497
4507
|
}
|
|
4498
4508
|
));
|
|
4499
4509
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
4500
|
-
var DropdownMenuSubContent =
|
|
4510
|
+
var DropdownMenuSubContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4501
4511
|
DropdownMenuPrimitive.SubContent,
|
|
4502
4512
|
{
|
|
4503
4513
|
ref,
|
|
@@ -4509,7 +4519,7 @@ var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) =
|
|
|
4509
4519
|
}
|
|
4510
4520
|
));
|
|
4511
4521
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
4512
|
-
var DropdownMenuContent =
|
|
4522
|
+
var DropdownMenuContent = React11.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
4513
4523
|
DropdownMenuPrimitive.Content,
|
|
4514
4524
|
{
|
|
4515
4525
|
ref,
|
|
@@ -4522,7 +4532,7 @@ var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
4522
4532
|
}
|
|
4523
4533
|
) }));
|
|
4524
4534
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
4525
|
-
var DropdownMenuItem =
|
|
4535
|
+
var DropdownMenuItem = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4526
4536
|
DropdownMenuPrimitive.Item,
|
|
4527
4537
|
{
|
|
4528
4538
|
ref,
|
|
@@ -4535,7 +4545,7 @@ var DropdownMenuItem = React10.forwardRef(({ className, inset, ...props }, ref)
|
|
|
4535
4545
|
}
|
|
4536
4546
|
));
|
|
4537
4547
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
4538
|
-
var DropdownMenuCheckboxItem =
|
|
4548
|
+
var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4539
4549
|
DropdownMenuPrimitive.CheckboxItem,
|
|
4540
4550
|
{
|
|
4541
4551
|
ref,
|
|
@@ -4552,7 +4562,7 @@ var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checke
|
|
|
4552
4562
|
}
|
|
4553
4563
|
));
|
|
4554
4564
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
4555
|
-
var DropdownMenuRadioItem =
|
|
4565
|
+
var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4556
4566
|
DropdownMenuPrimitive.RadioItem,
|
|
4557
4567
|
{
|
|
4558
4568
|
ref,
|
|
@@ -4568,7 +4578,7 @@ var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props
|
|
|
4568
4578
|
}
|
|
4569
4579
|
));
|
|
4570
4580
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
4571
|
-
var DropdownMenuLabel =
|
|
4581
|
+
var DropdownMenuLabel = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4572
4582
|
DropdownMenuPrimitive.Label,
|
|
4573
4583
|
{
|
|
4574
4584
|
ref,
|
|
@@ -4581,7 +4591,7 @@ var DropdownMenuLabel = React10.forwardRef(({ className, inset, ...props }, ref)
|
|
|
4581
4591
|
}
|
|
4582
4592
|
));
|
|
4583
4593
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
4584
|
-
var DropdownMenuSeparator =
|
|
4594
|
+
var DropdownMenuSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4585
4595
|
DropdownMenuPrimitive.Separator,
|
|
4586
4596
|
{
|
|
4587
4597
|
ref,
|
|
@@ -4670,7 +4680,7 @@ var progressIndicatorVariants = cva(
|
|
|
4670
4680
|
}
|
|
4671
4681
|
}
|
|
4672
4682
|
);
|
|
4673
|
-
var Progress =
|
|
4683
|
+
var Progress = React11.forwardRef(({
|
|
4674
4684
|
className,
|
|
4675
4685
|
value = 0,
|
|
4676
4686
|
variant,
|
|
@@ -4799,7 +4809,7 @@ var FileItem = ({
|
|
|
4799
4809
|
}
|
|
4800
4810
|
);
|
|
4801
4811
|
};
|
|
4802
|
-
var FileUpload =
|
|
4812
|
+
var FileUpload = React11__default.forwardRef(
|
|
4803
4813
|
({
|
|
4804
4814
|
accept = "*",
|
|
4805
4815
|
multiple = true,
|
|
@@ -5021,7 +5031,7 @@ var FileUpload = React10__default.forwardRef(
|
|
|
5021
5031
|
}
|
|
5022
5032
|
);
|
|
5023
5033
|
FileUpload.displayName = "FileUpload";
|
|
5024
|
-
var GestureDrawer =
|
|
5034
|
+
var GestureDrawer = React11__default.forwardRef(
|
|
5025
5035
|
({
|
|
5026
5036
|
children,
|
|
5027
5037
|
isOpen,
|
|
@@ -5292,7 +5302,7 @@ function GitHubStarButton({
|
|
|
5292
5302
|
}
|
|
5293
5303
|
);
|
|
5294
5304
|
}
|
|
5295
|
-
var InputOTP =
|
|
5305
|
+
var InputOTP = React11.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5296
5306
|
OTPInput,
|
|
5297
5307
|
{
|
|
5298
5308
|
ref,
|
|
@@ -5306,7 +5316,7 @@ var InputOTP = React10.forwardRef(({ className, containerClassName, ...props },
|
|
|
5306
5316
|
}
|
|
5307
5317
|
));
|
|
5308
5318
|
InputOTP.displayName = "InputOTP";
|
|
5309
|
-
var InputOTPGroup =
|
|
5319
|
+
var InputOTPGroup = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
5310
5320
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
5311
5321
|
var inputOTPSlotVariants = cva(
|
|
5312
5322
|
[
|
|
@@ -5328,9 +5338,9 @@ var inputOTPSlotVariants = cva(
|
|
|
5328
5338
|
}
|
|
5329
5339
|
}
|
|
5330
5340
|
);
|
|
5331
|
-
var InputOTPSlot =
|
|
5341
|
+
var InputOTPSlot = React11.forwardRef(
|
|
5332
5342
|
({ index, className, ...props }, ref) => {
|
|
5333
|
-
const inputOTPContext =
|
|
5343
|
+
const inputOTPContext = React11.useContext(OTPInputContext);
|
|
5334
5344
|
const slot = inputOTPContext?.slots?.[index];
|
|
5335
5345
|
const char = slot?.char;
|
|
5336
5346
|
const hasFakeCaret = slot?.hasFakeCaret;
|
|
@@ -5352,7 +5362,7 @@ var InputOTPSlot = React10.forwardRef(
|
|
|
5352
5362
|
}
|
|
5353
5363
|
);
|
|
5354
5364
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
5355
|
-
var InputOTPSeparator =
|
|
5365
|
+
var InputOTPSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5356
5366
|
"div",
|
|
5357
5367
|
{
|
|
5358
5368
|
ref,
|
|
@@ -5651,7 +5661,7 @@ function MoonLogo({
|
|
|
5651
5661
|
showText = true,
|
|
5652
5662
|
...props
|
|
5653
5663
|
}) {
|
|
5654
|
-
const logoId =
|
|
5664
|
+
const logoId = React11.useId();
|
|
5655
5665
|
const gradientId = `moon-gradient-${logoId}`;
|
|
5656
5666
|
const maskId = `moon-mask-${logoId}`;
|
|
5657
5667
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", className), children: [
|
|
@@ -5733,7 +5743,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
5733
5743
|
}
|
|
5734
5744
|
);
|
|
5735
5745
|
Pagination.displayName = "Pagination";
|
|
5736
|
-
var PaginationContent =
|
|
5746
|
+
var PaginationContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5737
5747
|
"ul",
|
|
5738
5748
|
{
|
|
5739
5749
|
ref,
|
|
@@ -5742,7 +5752,7 @@ var PaginationContent = React10.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5742
5752
|
}
|
|
5743
5753
|
));
|
|
5744
5754
|
PaginationContent.displayName = "PaginationContent";
|
|
5745
|
-
var PaginationItem =
|
|
5755
|
+
var PaginationItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
|
|
5746
5756
|
PaginationItem.displayName = "PaginationItem";
|
|
5747
5757
|
var PaginationLink = ({
|
|
5748
5758
|
className,
|
|
@@ -5818,41 +5828,62 @@ var Select = SelectPrimitive.Root;
|
|
|
5818
5828
|
Select.displayName = "Select";
|
|
5819
5829
|
var SelectGroup = SelectPrimitive.Group;
|
|
5820
5830
|
var SelectValue = SelectPrimitive.Value;
|
|
5821
|
-
var
|
|
5831
|
+
var selectTriggerVariants = cva(
|
|
5832
|
+
[
|
|
5833
|
+
"flex w-full items-center justify-between gap-1 rounded-md transition-all duration-200",
|
|
5834
|
+
"disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
5835
|
+
"focus-visible:outline-none text-foreground"
|
|
5836
|
+
],
|
|
5837
|
+
{
|
|
5838
|
+
variants: {
|
|
5839
|
+
variant: {
|
|
5840
|
+
standard: "border border-input bg-background hover:border-ring focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:border-primary",
|
|
5841
|
+
outline: "border border-input bg-transparent hover:border-ring focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:border-primary",
|
|
5842
|
+
ghost: "border-none bg-muted hover:bg-muted/80 focus-visible:ring-2 focus-visible:ring-primary/30",
|
|
5843
|
+
underline: "border-t-0 border-l-0 border-r-0 border-b border-input rounded-none px-0 bg-transparent hover:border-ring focus-visible:ring-0 focus-visible:border-b-2 focus-visible:border-primary"
|
|
5844
|
+
},
|
|
5845
|
+
size: {
|
|
5846
|
+
sm: "h-8 text-xs px-2",
|
|
5847
|
+
md: "h-10 text-sm px-3",
|
|
5848
|
+
lg: "h-12 text-base px-4"
|
|
5849
|
+
},
|
|
5850
|
+
state: {
|
|
5851
|
+
none: "",
|
|
5852
|
+
error: "border-error focus-visible:ring-error/30 focus-visible:border-error",
|
|
5853
|
+
success: "border-success focus-visible:ring-success/30 focus-visible:border-success"
|
|
5854
|
+
}
|
|
5855
|
+
},
|
|
5856
|
+
defaultVariants: {
|
|
5857
|
+
variant: "standard",
|
|
5858
|
+
size: "md",
|
|
5859
|
+
state: "none"
|
|
5860
|
+
}
|
|
5861
|
+
}
|
|
5862
|
+
);
|
|
5863
|
+
var SelectTrigger = React11.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5822
5864
|
SelectPrimitive.Trigger,
|
|
5823
5865
|
{
|
|
5824
5866
|
ref,
|
|
5825
5867
|
className: cn(
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
error && "border-error focus-visible:ring-error/30 focus-visible:border-error",
|
|
5832
|
-
/* Success state */
|
|
5833
|
-
success && "border-success focus-visible:ring-success/30 focus-visible:border-success",
|
|
5834
|
-
/* Size variants */
|
|
5835
|
-
size === "sm" && "h-8 text-xs px-2",
|
|
5836
|
-
size === "md" && "h-10 text-sm px-3",
|
|
5837
|
-
size === "lg" && "h-12 text-base px-4",
|
|
5838
|
-
/* Visual variants */
|
|
5839
|
-
variant === "standard" && "border border-gray-300 dark:border-gray-700 bg-background dark:bg-gray-800/80 dark:shadow-inner dark:shadow-gray-950/10 dark:text-gray-200 hover:border-gray-400 dark:hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80",
|
|
5840
|
-
variant === "outline" && "border border-gray-300 dark:border-gray-700 bg-transparent dark:text-gray-200 hover:border-gray-400 dark:hover:border-gray-600 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80",
|
|
5841
|
-
variant === "ghost" && "border-none bg-gray-100 dark:bg-gray-800 dark:shadow-inner dark:shadow-gray-950/10 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-gray-700 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20",
|
|
5842
|
-
variant === "underline" && "border-t-0 border-l-0 border-r-0 border-b border-gray-300 dark:border-gray-600 rounded-none px-0 dark:text-gray-200 dark:bg-transparent hover:border-gray-400 dark:hover:border-gray-500 focus-visible:ring-0 focus-visible:border-b-2 focus-visible:border-primary dark:focus-visible:border-primary/80",
|
|
5868
|
+
selectTriggerVariants({
|
|
5869
|
+
variant,
|
|
5870
|
+
size,
|
|
5871
|
+
state: error ? "error" : success ? "success" : "none"
|
|
5872
|
+
}),
|
|
5843
5873
|
className
|
|
5844
5874
|
),
|
|
5845
5875
|
...props,
|
|
5846
5876
|
disabled: props.disabled || loading,
|
|
5877
|
+
"aria-invalid": error ? true : void 0,
|
|
5847
5878
|
"data-error": error ? true : void 0,
|
|
5848
5879
|
"data-success": success ? true : void 0,
|
|
5849
5880
|
"data-loading": loading ? true : void 0,
|
|
5850
5881
|
children: [
|
|
5851
5882
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center flex-1 gap-2", children: [
|
|
5852
|
-
leftIcon && /* @__PURE__ */ jsx("span", { className: "flex items-center justify-center text-
|
|
5883
|
+
leftIcon && /* @__PURE__ */ jsx("span", { className: "flex items-center justify-center text-muted-foreground", children: leftIcon }),
|
|
5853
5884
|
loading ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5854
|
-
/* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground
|
|
5855
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground
|
|
5885
|
+
/* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground" }),
|
|
5886
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Loading..." })
|
|
5856
5887
|
] }) : children
|
|
5857
5888
|
] }),
|
|
5858
5889
|
!loading && /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: rightIcon ? /* @__PURE__ */ jsx("span", { className: "opacity-60", children: rightIcon }) : /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-60 transition-transform duration-200 ease-out group-data-[state=open]:rotate-180" }) })
|
|
@@ -5860,7 +5891,7 @@ var SelectTrigger = React10.forwardRef(({ className, children, variant = "standa
|
|
|
5860
5891
|
}
|
|
5861
5892
|
));
|
|
5862
5893
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
5863
|
-
var SelectScrollUpButton =
|
|
5894
|
+
var SelectScrollUpButton = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5864
5895
|
SelectPrimitive.ScrollUpButton,
|
|
5865
5896
|
{
|
|
5866
5897
|
ref,
|
|
@@ -5873,7 +5904,7 @@ var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) =>
|
|
|
5873
5904
|
}
|
|
5874
5905
|
));
|
|
5875
5906
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
5876
|
-
var SelectScrollDownButton =
|
|
5907
|
+
var SelectScrollDownButton = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5877
5908
|
SelectPrimitive.ScrollDownButton,
|
|
5878
5909
|
{
|
|
5879
5910
|
ref,
|
|
@@ -5886,7 +5917,7 @@ var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) =
|
|
|
5886
5917
|
}
|
|
5887
5918
|
));
|
|
5888
5919
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
5889
|
-
var SelectContent =
|
|
5920
|
+
var SelectContent = React11.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
5890
5921
|
SelectPrimitive.Content,
|
|
5891
5922
|
{
|
|
5892
5923
|
ref,
|
|
@@ -5927,7 +5958,7 @@ var SelectContent = React10.forwardRef(({ className, children, position = "poppe
|
|
|
5927
5958
|
}
|
|
5928
5959
|
) }));
|
|
5929
5960
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
5930
|
-
var SelectLabel =
|
|
5961
|
+
var SelectLabel = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5931
5962
|
SelectPrimitive.Label,
|
|
5932
5963
|
{
|
|
5933
5964
|
ref,
|
|
@@ -5936,7 +5967,7 @@ var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
5936
5967
|
}
|
|
5937
5968
|
));
|
|
5938
5969
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
5939
|
-
var SelectItem =
|
|
5970
|
+
var SelectItem = React11.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5940
5971
|
SelectPrimitive.Item,
|
|
5941
5972
|
{
|
|
5942
5973
|
ref,
|
|
@@ -5966,7 +5997,7 @@ var SelectItem = React10.forwardRef(({ className, children, variant = "default",
|
|
|
5966
5997
|
}
|
|
5967
5998
|
));
|
|
5968
5999
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
5969
|
-
var SelectSeparator =
|
|
6000
|
+
var SelectSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5970
6001
|
SelectPrimitive.Separator,
|
|
5971
6002
|
{
|
|
5972
6003
|
ref,
|
|
@@ -6048,7 +6079,7 @@ var getMaxLength = (countryCode) => {
|
|
|
6048
6079
|
return 15;
|
|
6049
6080
|
}
|
|
6050
6081
|
};
|
|
6051
|
-
var PhoneInput =
|
|
6082
|
+
var PhoneInput = React11.forwardRef(
|
|
6052
6083
|
({
|
|
6053
6084
|
className,
|
|
6054
6085
|
value = "",
|
|
@@ -6060,8 +6091,8 @@ var PhoneInput = React10.forwardRef(
|
|
|
6060
6091
|
size,
|
|
6061
6092
|
...props
|
|
6062
6093
|
}, ref) => {
|
|
6063
|
-
const [countryCode, setCountryCode] =
|
|
6064
|
-
const [phoneNumber, setPhoneNumber] =
|
|
6094
|
+
const [countryCode, setCountryCode] = React11.useState(defaultCountry);
|
|
6095
|
+
const [phoneNumber, setPhoneNumber] = React11.useState(value);
|
|
6065
6096
|
const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
|
|
6066
6097
|
const handlePhoneChange = (e) => {
|
|
6067
6098
|
const rawValue = e.target.value.replace(/\D/g, "");
|
|
@@ -6132,15 +6163,15 @@ var radioGroupItemVariants = cva(
|
|
|
6132
6163
|
}
|
|
6133
6164
|
}
|
|
6134
6165
|
);
|
|
6135
|
-
var RadioGroupContext =
|
|
6136
|
-
var RadioGroup2 =
|
|
6166
|
+
var RadioGroupContext = React11.createContext({});
|
|
6167
|
+
var RadioGroup2 = React11.forwardRef(
|
|
6137
6168
|
({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
|
|
6138
|
-
const [internalValue, setInternalValue] =
|
|
6169
|
+
const [internalValue, setInternalValue] = React11.useState(
|
|
6139
6170
|
defaultValue
|
|
6140
6171
|
);
|
|
6141
6172
|
const isControlled = value !== void 0;
|
|
6142
6173
|
const currentValue = isControlled ? value : internalValue;
|
|
6143
|
-
const handleValueChange =
|
|
6174
|
+
const handleValueChange = React11.useCallback(
|
|
6144
6175
|
(next) => {
|
|
6145
6176
|
if (!isControlled) {
|
|
6146
6177
|
setInternalValue(next);
|
|
@@ -6172,9 +6203,9 @@ var RadioGroup2 = React10.forwardRef(
|
|
|
6172
6203
|
}
|
|
6173
6204
|
);
|
|
6174
6205
|
RadioGroup2.displayName = "RadioGroup";
|
|
6175
|
-
var RadioGroupItem =
|
|
6176
|
-
const radioGroup =
|
|
6177
|
-
const generatedId =
|
|
6206
|
+
var RadioGroupItem = React11.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
|
|
6207
|
+
const radioGroup = React11.useContext(RadioGroupContext);
|
|
6208
|
+
const generatedId = React11.useId();
|
|
6178
6209
|
const radioId = id || generatedId;
|
|
6179
6210
|
const isChecked = radioGroup.value === value;
|
|
6180
6211
|
const handleChange = (e) => {
|
|
@@ -6227,7 +6258,7 @@ var RadioGroupItem = React10.forwardRef(({ className, variant, size, indicator,
|
|
|
6227
6258
|
] });
|
|
6228
6259
|
});
|
|
6229
6260
|
RadioGroupItem.displayName = "RadioGroupItem";
|
|
6230
|
-
var RadioLabel =
|
|
6261
|
+
var RadioLabel = React11.forwardRef(
|
|
6231
6262
|
({ className, htmlFor, children, disabled = false, ...props }, ref) => {
|
|
6232
6263
|
return /* @__PURE__ */ jsx(
|
|
6233
6264
|
"label",
|
|
@@ -6246,13 +6277,13 @@ var RadioLabel = React10.forwardRef(
|
|
|
6246
6277
|
}
|
|
6247
6278
|
);
|
|
6248
6279
|
RadioLabel.displayName = "RadioLabel";
|
|
6249
|
-
var RadioItemWithLabel =
|
|
6280
|
+
var RadioItemWithLabel = React11.forwardRef(({
|
|
6250
6281
|
id,
|
|
6251
6282
|
label,
|
|
6252
6283
|
labelClassName,
|
|
6253
6284
|
...radioProps
|
|
6254
6285
|
}, ref) => {
|
|
6255
|
-
const generatedId =
|
|
6286
|
+
const generatedId = React11.useId();
|
|
6256
6287
|
const radioId = id || generatedId;
|
|
6257
6288
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
6258
6289
|
/* @__PURE__ */ jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
|
|
@@ -6329,7 +6360,7 @@ function RichTextEditor({
|
|
|
6329
6360
|
)
|
|
6330
6361
|
] });
|
|
6331
6362
|
}
|
|
6332
|
-
var ScrollArea =
|
|
6363
|
+
var ScrollArea = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
6333
6364
|
ScrollAreaPrimitive.Root,
|
|
6334
6365
|
{
|
|
6335
6366
|
ref,
|
|
@@ -6343,7 +6374,7 @@ var ScrollArea = React10.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
6343
6374
|
}
|
|
6344
6375
|
));
|
|
6345
6376
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
6346
|
-
var ScrollBar =
|
|
6377
|
+
var ScrollBar = React11.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6347
6378
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
6348
6379
|
{
|
|
6349
6380
|
ref,
|
|
@@ -6397,7 +6428,7 @@ var defaultTransition = {
|
|
|
6397
6428
|
ease: [0.25, 0.46, 0.45, 0.94]
|
|
6398
6429
|
// Custom cubic-bezier for smooth motion
|
|
6399
6430
|
};
|
|
6400
|
-
var ScrollReveal =
|
|
6431
|
+
var ScrollReveal = React11.forwardRef(
|
|
6401
6432
|
({
|
|
6402
6433
|
children,
|
|
6403
6434
|
direction = "up",
|
|
@@ -6418,17 +6449,17 @@ var ScrollReveal = React10.forwardRef(
|
|
|
6418
6449
|
viewport
|
|
6419
6450
|
}, ref) => {
|
|
6420
6451
|
const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
|
|
6421
|
-
const animationVariants =
|
|
6452
|
+
const animationVariants = React11.useMemo(() => {
|
|
6422
6453
|
if (variants)
|
|
6423
6454
|
return variants;
|
|
6424
6455
|
return createDefaultVariants(direction, distance);
|
|
6425
6456
|
}, [direction, distance, variants]);
|
|
6426
|
-
const transition =
|
|
6457
|
+
const transition = React11.useMemo(() => ({
|
|
6427
6458
|
...defaultTransition,
|
|
6428
6459
|
duration,
|
|
6429
6460
|
delay: delay + stagger
|
|
6430
6461
|
}), [duration, delay, stagger]);
|
|
6431
|
-
const viewportConfig =
|
|
6462
|
+
const viewportConfig = React11.useMemo(() => ({
|
|
6432
6463
|
once: shouldTriggerOnce,
|
|
6433
6464
|
amount: threshold,
|
|
6434
6465
|
...viewport
|
|
@@ -6463,7 +6494,7 @@ var ScrollReveal = React10.forwardRef(
|
|
|
6463
6494
|
}
|
|
6464
6495
|
);
|
|
6465
6496
|
ScrollReveal.displayName = "ScrollReveal";
|
|
6466
|
-
var ScrollRevealContainer =
|
|
6497
|
+
var ScrollRevealContainer = React11.forwardRef(
|
|
6467
6498
|
({
|
|
6468
6499
|
children,
|
|
6469
6500
|
stagger = 0.1,
|
|
@@ -6476,7 +6507,7 @@ var ScrollRevealContainer = React10.forwardRef(
|
|
|
6476
6507
|
viewport
|
|
6477
6508
|
}, ref) => {
|
|
6478
6509
|
const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
|
|
6479
|
-
const viewportConfig =
|
|
6510
|
+
const viewportConfig = React11.useMemo(() => ({
|
|
6480
6511
|
once: shouldTriggerOnce,
|
|
6481
6512
|
amount: threshold,
|
|
6482
6513
|
...viewport
|
|
@@ -6507,7 +6538,7 @@ var ScrollRevealContainer = React10.forwardRef(
|
|
|
6507
6538
|
}
|
|
6508
6539
|
);
|
|
6509
6540
|
ScrollRevealContainer.displayName = "ScrollRevealContainer";
|
|
6510
|
-
var ScrollRevealItem =
|
|
6541
|
+
var ScrollRevealItem = React11.forwardRef(
|
|
6511
6542
|
({
|
|
6512
6543
|
children,
|
|
6513
6544
|
direction = "up",
|
|
@@ -6518,12 +6549,12 @@ var ScrollRevealItem = React10.forwardRef(
|
|
|
6518
6549
|
style,
|
|
6519
6550
|
id
|
|
6520
6551
|
}, ref) => {
|
|
6521
|
-
const animationVariants =
|
|
6552
|
+
const animationVariants = React11.useMemo(() => {
|
|
6522
6553
|
if (variants)
|
|
6523
6554
|
return variants;
|
|
6524
6555
|
return createDefaultVariants(direction, distance);
|
|
6525
6556
|
}, [direction, distance, variants]);
|
|
6526
|
-
const transition =
|
|
6557
|
+
const transition = React11.useMemo(() => ({
|
|
6527
6558
|
...defaultTransition,
|
|
6528
6559
|
duration
|
|
6529
6560
|
}), [duration]);
|
|
@@ -6639,7 +6670,7 @@ var separatorVariants = cva(
|
|
|
6639
6670
|
}
|
|
6640
6671
|
}
|
|
6641
6672
|
);
|
|
6642
|
-
var Separator3 =
|
|
6673
|
+
var Separator3 = React11.forwardRef(
|
|
6643
6674
|
({
|
|
6644
6675
|
className,
|
|
6645
6676
|
orientation = "horizontal",
|
|
@@ -6682,7 +6713,7 @@ var toggleVariants = cva(
|
|
|
6682
6713
|
}
|
|
6683
6714
|
}
|
|
6684
6715
|
);
|
|
6685
|
-
var Toggle =
|
|
6716
|
+
var Toggle = React11.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6686
6717
|
TogglePrimitive.Root,
|
|
6687
6718
|
{
|
|
6688
6719
|
ref,
|
|
@@ -6718,7 +6749,7 @@ var tooltipVariants = cva(
|
|
|
6718
6749
|
);
|
|
6719
6750
|
var Tooltip = TooltipPrimitive.Root;
|
|
6720
6751
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
6721
|
-
var TooltipArrow =
|
|
6752
|
+
var TooltipArrow = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6722
6753
|
TooltipPrimitive.Arrow,
|
|
6723
6754
|
{
|
|
6724
6755
|
ref,
|
|
@@ -6727,7 +6758,7 @@ var TooltipArrow = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
6727
6758
|
}
|
|
6728
6759
|
));
|
|
6729
6760
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
6730
|
-
var TooltipContent =
|
|
6761
|
+
var TooltipContent = React11.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
6731
6762
|
TooltipPrimitive.Content,
|
|
6732
6763
|
{
|
|
6733
6764
|
ref,
|
|
@@ -6741,7 +6772,7 @@ var TooltipContent = React10.forwardRef(({ className, variant, size, showArrow =
|
|
|
6741
6772
|
}
|
|
6742
6773
|
));
|
|
6743
6774
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
6744
|
-
var SimpleTooltip =
|
|
6775
|
+
var SimpleTooltip = React11.forwardRef(
|
|
6745
6776
|
({
|
|
6746
6777
|
children,
|
|
6747
6778
|
content,
|
|
@@ -6826,7 +6857,7 @@ var ColorPicker2 = ({ onColorSelect }) => {
|
|
|
6826
6857
|
color
|
|
6827
6858
|
)) });
|
|
6828
6859
|
};
|
|
6829
|
-
var SimpleEditor =
|
|
6860
|
+
var SimpleEditor = React11__default.forwardRef(
|
|
6830
6861
|
({
|
|
6831
6862
|
value = "",
|
|
6832
6863
|
onChange,
|
|
@@ -6843,8 +6874,8 @@ var SimpleEditor = React10__default.forwardRef(
|
|
|
6843
6874
|
const [isPreview, setIsPreview] = useState(false);
|
|
6844
6875
|
const [sourceContent, setSourceContent] = useState(value);
|
|
6845
6876
|
useState(null);
|
|
6846
|
-
const editorRef =
|
|
6847
|
-
const sourceRef =
|
|
6877
|
+
const editorRef = React11__default.useRef(null);
|
|
6878
|
+
const sourceRef = React11__default.useRef(null);
|
|
6848
6879
|
const [formatState, setFormatState] = useState({
|
|
6849
6880
|
bold: false,
|
|
6850
6881
|
italic: false,
|
|
@@ -6978,12 +7009,12 @@ var SimpleEditor = React10__default.forwardRef(
|
|
|
6978
7009
|
}
|
|
6979
7010
|
}
|
|
6980
7011
|
}, [executeCommand, updateContent]);
|
|
6981
|
-
|
|
7012
|
+
React11__default.useEffect(() => {
|
|
6982
7013
|
if (editorRef.current && content && content !== editorRef.current.innerHTML) {
|
|
6983
7014
|
editorRef.current.innerHTML = content;
|
|
6984
7015
|
}
|
|
6985
7016
|
}, [content]);
|
|
6986
|
-
|
|
7017
|
+
React11__default.useEffect(() => {
|
|
6987
7018
|
if (value !== void 0 && value !== content) {
|
|
6988
7019
|
setContent(value);
|
|
6989
7020
|
setSourceContent(value);
|
|
@@ -7388,7 +7419,7 @@ var skeletonVariants = cva(
|
|
|
7388
7419
|
}
|
|
7389
7420
|
}
|
|
7390
7421
|
);
|
|
7391
|
-
var Skeleton =
|
|
7422
|
+
var Skeleton = React11.forwardRef(
|
|
7392
7423
|
({
|
|
7393
7424
|
className,
|
|
7394
7425
|
variant,
|
|
@@ -7472,7 +7503,7 @@ var Skeleton = React10.forwardRef(
|
|
|
7472
7503
|
}
|
|
7473
7504
|
);
|
|
7474
7505
|
Skeleton.displayName = "Skeleton";
|
|
7475
|
-
var SkeletonText =
|
|
7506
|
+
var SkeletonText = React11.forwardRef(
|
|
7476
7507
|
({
|
|
7477
7508
|
className,
|
|
7478
7509
|
lines = 3,
|
|
@@ -7513,7 +7544,7 @@ var SkeletonText = React10.forwardRef(
|
|
|
7513
7544
|
}
|
|
7514
7545
|
);
|
|
7515
7546
|
SkeletonText.displayName = "SkeletonText";
|
|
7516
|
-
var SkeletonAvatar =
|
|
7547
|
+
var SkeletonAvatar = React11.forwardRef(
|
|
7517
7548
|
({
|
|
7518
7549
|
className,
|
|
7519
7550
|
size = "2.5rem",
|
|
@@ -7539,7 +7570,7 @@ var SkeletonAvatar = React10.forwardRef(
|
|
|
7539
7570
|
}
|
|
7540
7571
|
);
|
|
7541
7572
|
SkeletonAvatar.displayName = "SkeletonAvatar";
|
|
7542
|
-
var SkeletonCard =
|
|
7573
|
+
var SkeletonCard = React11.forwardRef(
|
|
7543
7574
|
({
|
|
7544
7575
|
className,
|
|
7545
7576
|
showHeader = true,
|
|
@@ -7613,11 +7644,11 @@ var SkeletonCard = React10.forwardRef(
|
|
|
7613
7644
|
}
|
|
7614
7645
|
);
|
|
7615
7646
|
SkeletonCard.displayName = "SkeletonCard";
|
|
7616
|
-
var SwipeableCard =
|
|
7647
|
+
var SwipeableCard = React11.forwardRef(
|
|
7617
7648
|
({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
|
|
7618
|
-
const [startX, setStartX] =
|
|
7619
|
-
const [currentX, setCurrentX] =
|
|
7620
|
-
const [isSwiping, setIsSwiping] =
|
|
7649
|
+
const [startX, setStartX] = React11.useState(0);
|
|
7650
|
+
const [currentX, setCurrentX] = React11.useState(0);
|
|
7651
|
+
const [isSwiping, setIsSwiping] = React11.useState(false);
|
|
7621
7652
|
const handleTouchStart = (e) => {
|
|
7622
7653
|
if (disabled)
|
|
7623
7654
|
return;
|
|
@@ -7663,54 +7694,95 @@ var SwipeableCard = React10.forwardRef(
|
|
|
7663
7694
|
}
|
|
7664
7695
|
);
|
|
7665
7696
|
SwipeableCard.displayName = "SwipeableCard";
|
|
7666
|
-
var
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
"
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
className: cn(
|
|
7698
|
-
"pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform",
|
|
7699
|
-
// Boyuta göre thumb boyutları
|
|
7700
|
-
size === "sm" && "h-3 w-3 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",
|
|
7701
|
-
size === "md" && "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
|
|
7702
|
-
size === "lg" && "h-6 w-6 data-[state=checked]:translate-x-7 data-[state=unchecked]:translate-x-0"
|
|
7703
|
-
)
|
|
7704
|
-
}
|
|
7705
|
-
)
|
|
7706
|
-
]
|
|
7697
|
+
var switchVariants = cva(
|
|
7698
|
+
[
|
|
7699
|
+
"peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full",
|
|
7700
|
+
"border-2 border-transparent transition-colors",
|
|
7701
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
7702
|
+
"focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7703
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
7704
|
+
// Kapalı durum token'a bağlı; `--input` karanlık modda kendi değerini taşır.
|
|
7705
|
+
// (Önceden ayrıca `dark:data-[state=unchecked]:bg-gray-700/70` hardcode'u
|
|
7706
|
+
// vardı ve token'ı eziyordu — kaldırıldı.)
|
|
7707
|
+
"data-[state=unchecked]:bg-input",
|
|
7708
|
+
"dark:focus-visible:ring-primary/40"
|
|
7709
|
+
],
|
|
7710
|
+
{
|
|
7711
|
+
variants: {
|
|
7712
|
+
size: {
|
|
7713
|
+
sm: "h-4 w-8",
|
|
7714
|
+
md: "h-6 w-11",
|
|
7715
|
+
lg: "h-7 w-14"
|
|
7716
|
+
},
|
|
7717
|
+
variant: {
|
|
7718
|
+
primary: "data-[state=checked]:bg-primary",
|
|
7719
|
+
success: "data-[state=checked]:bg-success",
|
|
7720
|
+
warning: "data-[state=checked]:bg-warning",
|
|
7721
|
+
destructive: "data-[state=checked]:bg-error",
|
|
7722
|
+
secondary: "data-[state=checked]:bg-accent"
|
|
7723
|
+
}
|
|
7724
|
+
},
|
|
7725
|
+
defaultVariants: {
|
|
7726
|
+
size: "md",
|
|
7727
|
+
variant: "primary"
|
|
7707
7728
|
}
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7729
|
+
}
|
|
7730
|
+
);
|
|
7731
|
+
var switchThumbVariants = cva(
|
|
7732
|
+
"pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform",
|
|
7733
|
+
{
|
|
7734
|
+
variants: {
|
|
7735
|
+
size: {
|
|
7736
|
+
sm: "h-3 w-3 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",
|
|
7737
|
+
md: "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
|
|
7738
|
+
lg: "h-6 w-6 data-[state=checked]:translate-x-7 data-[state=unchecked]:translate-x-0"
|
|
7739
|
+
}
|
|
7740
|
+
},
|
|
7741
|
+
defaultVariants: {
|
|
7742
|
+
size: "md"
|
|
7743
|
+
}
|
|
7744
|
+
}
|
|
7745
|
+
);
|
|
7746
|
+
var Switch = React11.forwardRef(({
|
|
7747
|
+
className,
|
|
7748
|
+
size,
|
|
7749
|
+
variant,
|
|
7750
|
+
loading,
|
|
7751
|
+
leftIcon,
|
|
7752
|
+
rightIcon,
|
|
7753
|
+
description,
|
|
7754
|
+
"aria-describedby": ariaDescribedBy,
|
|
7755
|
+
...props
|
|
7756
|
+
}, ref) => {
|
|
7757
|
+
const reactId = React11.useId();
|
|
7758
|
+
const descriptionId = description ? `${reactId}-description` : void 0;
|
|
7759
|
+
const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
|
|
7760
|
+
return /* @__PURE__ */ jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
|
|
7761
|
+
leftIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: leftIcon }),
|
|
7762
|
+
/* @__PURE__ */ jsxs(
|
|
7763
|
+
SwitchPrimitives.Root,
|
|
7764
|
+
{
|
|
7765
|
+
className: cn(
|
|
7766
|
+
switchVariants({ size, variant }),
|
|
7767
|
+
loading && "opacity-80 cursor-wait",
|
|
7768
|
+
className
|
|
7769
|
+
),
|
|
7770
|
+
disabled: loading || props.disabled,
|
|
7771
|
+
"aria-describedby": describedBy,
|
|
7772
|
+
...props,
|
|
7773
|
+
ref,
|
|
7774
|
+
children: [
|
|
7775
|
+
loading ? /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "h-3 w-3 animate-spin rounded-full border-2 border-muted border-t-primary" }) }) : null,
|
|
7776
|
+
/* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
7777
|
+
]
|
|
7778
|
+
}
|
|
7779
|
+
),
|
|
7780
|
+
rightIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: rightIcon }),
|
|
7781
|
+
description && /* @__PURE__ */ jsx("span", { id: descriptionId, className: "text-sm text-muted-foreground", children: description })
|
|
7782
|
+
] });
|
|
7783
|
+
});
|
|
7712
7784
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
7713
|
-
var TagsInput =
|
|
7785
|
+
var TagsInput = React11.forwardRef(
|
|
7714
7786
|
({
|
|
7715
7787
|
value = [],
|
|
7716
7788
|
onChange,
|
|
@@ -7723,8 +7795,8 @@ var TagsInput = React10.forwardRef(
|
|
|
7723
7795
|
disabled,
|
|
7724
7796
|
...props
|
|
7725
7797
|
}, ref) => {
|
|
7726
|
-
const [inputValue, setInputValue] =
|
|
7727
|
-
const [error, setError] =
|
|
7798
|
+
const [inputValue, setInputValue] = React11.useState("");
|
|
7799
|
+
const [error, setError] = React11.useState("");
|
|
7728
7800
|
const handleKeyDown = (e) => {
|
|
7729
7801
|
if (e.key === "Enter" || e.key === delimiter) {
|
|
7730
7802
|
e.preventDefault();
|
|
@@ -7855,7 +7927,7 @@ var textareaVariants = cva(
|
|
|
7855
7927
|
}
|
|
7856
7928
|
}
|
|
7857
7929
|
);
|
|
7858
|
-
var Textarea =
|
|
7930
|
+
var Textarea = React11.forwardRef(
|
|
7859
7931
|
({
|
|
7860
7932
|
className,
|
|
7861
7933
|
wrapperClassName,
|
|
@@ -7875,10 +7947,10 @@ var Textarea = React10.forwardRef(
|
|
|
7875
7947
|
onChange,
|
|
7876
7948
|
...props
|
|
7877
7949
|
}, ref) => {
|
|
7878
|
-
const textareaRef =
|
|
7879
|
-
const [internalValue, setInternalValue] =
|
|
7880
|
-
|
|
7881
|
-
const adjustHeight =
|
|
7950
|
+
const textareaRef = React11.useRef(null);
|
|
7951
|
+
const [internalValue, setInternalValue] = React11.useState(value || defaultValue || "");
|
|
7952
|
+
React11.useImperativeHandle(ref, () => textareaRef.current);
|
|
7953
|
+
const adjustHeight = React11.useCallback(() => {
|
|
7882
7954
|
const textarea = textareaRef.current;
|
|
7883
7955
|
if (!textarea || !autoResize)
|
|
7884
7956
|
return;
|
|
@@ -7892,10 +7964,10 @@ var Textarea = React10.forwardRef(
|
|
|
7892
7964
|
textarea.style.overflowY = "hidden";
|
|
7893
7965
|
}
|
|
7894
7966
|
}, [autoResize, maxHeight]);
|
|
7895
|
-
|
|
7967
|
+
React11.useEffect(() => {
|
|
7896
7968
|
adjustHeight();
|
|
7897
7969
|
}, [internalValue, adjustHeight]);
|
|
7898
|
-
|
|
7970
|
+
React11.useEffect(() => {
|
|
7899
7971
|
if (value !== void 0) {
|
|
7900
7972
|
setInternalValue(value);
|
|
7901
7973
|
}
|
|
@@ -7961,7 +8033,7 @@ var Textarea = React10.forwardRef(
|
|
|
7961
8033
|
);
|
|
7962
8034
|
Textarea.displayName = "Textarea";
|
|
7963
8035
|
var ToastProvider = ToastPrimitives.Provider;
|
|
7964
|
-
var ToastViewport =
|
|
8036
|
+
var ToastViewport = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7965
8037
|
ToastPrimitives.Viewport,
|
|
7966
8038
|
{
|
|
7967
8039
|
ref,
|
|
@@ -7990,7 +8062,7 @@ var toastVariants = cva(
|
|
|
7990
8062
|
}
|
|
7991
8063
|
}
|
|
7992
8064
|
);
|
|
7993
|
-
var Toast =
|
|
8065
|
+
var Toast = React11.forwardRef(({ className, variant, ...props }, ref) => {
|
|
7994
8066
|
return /* @__PURE__ */ jsx(
|
|
7995
8067
|
ToastPrimitives.Root,
|
|
7996
8068
|
{
|
|
@@ -8001,7 +8073,7 @@ var Toast = React10.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
8001
8073
|
);
|
|
8002
8074
|
});
|
|
8003
8075
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
8004
|
-
var ToastAction =
|
|
8076
|
+
var ToastAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8005
8077
|
ToastPrimitives.Action,
|
|
8006
8078
|
{
|
|
8007
8079
|
ref,
|
|
@@ -8013,7 +8085,7 @@ var ToastAction = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
8013
8085
|
}
|
|
8014
8086
|
));
|
|
8015
8087
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
8016
|
-
var ToastClose =
|
|
8088
|
+
var ToastClose = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8017
8089
|
ToastPrimitives.Close,
|
|
8018
8090
|
{
|
|
8019
8091
|
ref,
|
|
@@ -8027,7 +8099,7 @@ var ToastClose = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
8027
8099
|
}
|
|
8028
8100
|
));
|
|
8029
8101
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
8030
|
-
var ToastTitle =
|
|
8102
|
+
var ToastTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8031
8103
|
ToastPrimitives.Title,
|
|
8032
8104
|
{
|
|
8033
8105
|
ref,
|
|
@@ -8036,7 +8108,7 @@ var ToastTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
8036
8108
|
}
|
|
8037
8109
|
));
|
|
8038
8110
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
8039
|
-
var ToastDescription =
|
|
8111
|
+
var ToastDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8040
8112
|
ToastPrimitives.Description,
|
|
8041
8113
|
{
|
|
8042
8114
|
ref,
|
|
@@ -8144,8 +8216,8 @@ function toast({ ...props }) {
|
|
|
8144
8216
|
};
|
|
8145
8217
|
}
|
|
8146
8218
|
function useToast() {
|
|
8147
|
-
const [state, setState] =
|
|
8148
|
-
|
|
8219
|
+
const [state, setState] = React11.useState(memoryState);
|
|
8220
|
+
React11.useEffect(() => {
|
|
8149
8221
|
listeners.push(setState);
|
|
8150
8222
|
return () => {
|
|
8151
8223
|
const index = listeners.indexOf(setState);
|
|
@@ -8198,7 +8270,7 @@ var kbdVariants = cva(
|
|
|
8198
8270
|
}
|
|
8199
8271
|
}
|
|
8200
8272
|
);
|
|
8201
|
-
var Kbd =
|
|
8273
|
+
var Kbd = React11.forwardRef(
|
|
8202
8274
|
({ className, size, children, ...props }, ref) => {
|
|
8203
8275
|
return /* @__PURE__ */ jsx(
|
|
8204
8276
|
"kbd",
|
|
@@ -8235,7 +8307,7 @@ var iconSizeMap = {
|
|
|
8235
8307
|
md: "h-5 w-5",
|
|
8236
8308
|
lg: "h-6 w-6"
|
|
8237
8309
|
};
|
|
8238
|
-
var Rating =
|
|
8310
|
+
var Rating = React11.forwardRef(
|
|
8239
8311
|
({
|
|
8240
8312
|
className,
|
|
8241
8313
|
value,
|
|
@@ -8253,11 +8325,11 @@ var Rating = React10.forwardRef(
|
|
|
8253
8325
|
const iconSizeClass = iconSizeMap[resolvedSize];
|
|
8254
8326
|
const step = precision === "half" ? 0.5 : 1;
|
|
8255
8327
|
const isControlled = value !== void 0;
|
|
8256
|
-
const [internalValue, setInternalValue] =
|
|
8328
|
+
const [internalValue, setInternalValue] = React11.useState(defaultValue ?? 0);
|
|
8257
8329
|
const currentValue = isControlled ? value ?? 0 : internalValue;
|
|
8258
|
-
const [hoverValue, setHoverValue] =
|
|
8330
|
+
const [hoverValue, setHoverValue] = React11.useState(null);
|
|
8259
8331
|
const displayValue = hoverValue !== null ? hoverValue : currentValue;
|
|
8260
|
-
const commit =
|
|
8332
|
+
const commit = React11.useCallback(
|
|
8261
8333
|
(next) => {
|
|
8262
8334
|
if (readOnly)
|
|
8263
8335
|
return;
|
|
@@ -8267,7 +8339,7 @@ var Rating = React10.forwardRef(
|
|
|
8267
8339
|
},
|
|
8268
8340
|
[readOnly, isControlled, onValueChange]
|
|
8269
8341
|
);
|
|
8270
|
-
const handleKeyDown =
|
|
8342
|
+
const handleKeyDown = React11.useCallback(
|
|
8271
8343
|
(event) => {
|
|
8272
8344
|
if (readOnly)
|
|
8273
8345
|
return;
|
|
@@ -8296,9 +8368,9 @@ var Rating = React10.forwardRef(
|
|
|
8296
8368
|
[readOnly, max, currentValue, step, commit]
|
|
8297
8369
|
);
|
|
8298
8370
|
const renderIcon = (filled) => {
|
|
8299
|
-
if (
|
|
8371
|
+
if (React11.isValidElement(icon)) {
|
|
8300
8372
|
const element = icon;
|
|
8301
|
-
return
|
|
8373
|
+
return React11.cloneElement(element, {
|
|
8302
8374
|
className: cn(
|
|
8303
8375
|
iconSizeClass,
|
|
8304
8376
|
"shrink-0",
|
|
@@ -8432,7 +8504,7 @@ var dotSizeMap = {
|
|
|
8432
8504
|
lg: "h-2 w-2",
|
|
8433
8505
|
xl: "h-2.5 w-2.5"
|
|
8434
8506
|
};
|
|
8435
|
-
var Spinner =
|
|
8507
|
+
var Spinner = React11.forwardRef(
|
|
8436
8508
|
({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
|
|
8437
8509
|
return /* @__PURE__ */ jsxs(
|
|
8438
8510
|
"div",
|
|
@@ -8511,15 +8583,15 @@ var buttonGroupVariants = cva(
|
|
|
8511
8583
|
}
|
|
8512
8584
|
}
|
|
8513
8585
|
);
|
|
8514
|
-
var ButtonGroup =
|
|
8586
|
+
var ButtonGroup = React11.forwardRef(
|
|
8515
8587
|
({ className, orientation, attached, size, variant, children, ...props }, ref) => {
|
|
8516
8588
|
const shouldPropagate = size !== void 0 || variant !== void 0;
|
|
8517
|
-
const enhancedChildren = shouldPropagate ?
|
|
8518
|
-
if (!
|
|
8589
|
+
const enhancedChildren = shouldPropagate ? React11.Children.map(children, (child) => {
|
|
8590
|
+
if (!React11.isValidElement(child) || child.type !== Button) {
|
|
8519
8591
|
return child;
|
|
8520
8592
|
}
|
|
8521
8593
|
const childProps = child.props;
|
|
8522
|
-
return
|
|
8594
|
+
return React11.cloneElement(child, {
|
|
8523
8595
|
size: childProps.size ?? size,
|
|
8524
8596
|
variant: childProps.variant ?? variant
|
|
8525
8597
|
});
|
|
@@ -8537,11 +8609,11 @@ var ButtonGroup = React10.forwardRef(
|
|
|
8537
8609
|
}
|
|
8538
8610
|
);
|
|
8539
8611
|
ButtonGroup.displayName = "ButtonGroup";
|
|
8540
|
-
var ToggleGroupContext =
|
|
8612
|
+
var ToggleGroupContext = React11.createContext({
|
|
8541
8613
|
size: "default",
|
|
8542
8614
|
variant: "default"
|
|
8543
8615
|
});
|
|
8544
|
-
var ToggleGroup =
|
|
8616
|
+
var ToggleGroup = React11.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8545
8617
|
ToggleGroupPrimitive.Root,
|
|
8546
8618
|
{
|
|
8547
8619
|
ref,
|
|
@@ -8558,8 +8630,8 @@ var ToggleGroup = React10.forwardRef(({ className, variant, size, children, ...p
|
|
|
8558
8630
|
}
|
|
8559
8631
|
));
|
|
8560
8632
|
ToggleGroup.displayName = "ToggleGroup";
|
|
8561
|
-
var ToggleGroupItem =
|
|
8562
|
-
const context =
|
|
8633
|
+
var ToggleGroupItem = React11.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
8634
|
+
const context = React11.useContext(ToggleGroupContext);
|
|
8563
8635
|
return /* @__PURE__ */ jsx(
|
|
8564
8636
|
ToggleGroupPrimitive.Item,
|
|
8565
8637
|
{
|
|
@@ -8578,6 +8650,6 @@ var ToggleGroupItem = React10.forwardRef(({ className, children, variant, size,
|
|
|
8578
8650
|
});
|
|
8579
8651
|
ToggleGroupItem.displayName = "ToggleGroupItem";
|
|
8580
8652
|
|
|
8581
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, Card, CardCVCInput, CardContent, CardDescription, CardExpiryInput, CardFooter, CardHeader, CardNumberInput, CardTitle, CardZipInput, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogForm, DialogHeader, DialogTitle, DialogTrigger, DraggableList, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileUpload, FreeBadge, GestureDrawer, GitHubStarButton, GitHubStars, GradientPicker, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, Label, LockedComponent, MonthPicker, MoonLogo, MoonLogoAnimated, MoonLogoIcon, Accordion as MoonUIAccordion, AccordionContent as MoonUIAccordionContent, AccordionItem as MoonUIAccordionItem, AccordionTrigger as MoonUIAccordionTrigger, Alert as MoonUIAlert, AlertDescription as MoonUIAlertDescription, AlertTitle as MoonUIAlertTitle, AspectRatio as MoonUIAspectRatio, Avatar as MoonUIAvatar, AvatarFallback as MoonUIAvatarFallback, AvatarGroup as MoonUIAvatarGroup, AvatarImage as MoonUIAvatarImage, Badge as MoonUIBadge, Breadcrumb as MoonUIBreadcrumb, BreadcrumbEllipsis as MoonUIBreadcrumbEllipsis, BreadcrumbItem as MoonUIBreadcrumbItem, BreadcrumbLink as MoonUIBreadcrumbLink, BreadcrumbList as MoonUIBreadcrumbList, BreadcrumbPage as MoonUIBreadcrumbPage, BreadcrumbSeparator as MoonUIBreadcrumbSeparator, Button as MoonUIButton, ButtonGroup as MoonUIButtonGroup, Calendar as MoonUICalendar, Card as MoonUICard, CardCVCInput as MoonUICardCVCInput, CardContent as MoonUICardContent, CardDescription as MoonUICardDescription, CardExpiryInput as MoonUICardExpiryInput, CardFooter as MoonUICardFooter, CardHeader as MoonUICardHeader, CardNumberInput as MoonUICardNumberInput, CardTitle as MoonUICardTitle, CardZipInput as MoonUICardZipInput, Carousel as MoonUICarousel, CarouselContent as MoonUICarouselContent, CarouselItem as MoonUICarouselItem, CarouselNext as MoonUICarouselNext, CarouselPrevious as MoonUICarouselPrevious, Checkbox as MoonUICheckbox, CheckboxGroup as MoonUICheckboxGroup, CheckboxLabel as MoonUICheckboxLabel, CheckboxWithLabel as MoonUICheckboxWithLabel, Collapsible as MoonUICollapsible, CollapsibleContent as MoonUICollapsibleContent, CollapsibleTrigger as MoonUICollapsibleTrigger, ColorPicker as MoonUIColorPicker, Command as MoonUICommand, CommandDialog as MoonUICommandDialog, CommandEmpty as MoonUICommandEmpty, CommandGroup as MoonUICommandGroup, CommandInput as MoonUICommandInput, CommandItem as MoonUICommandItem, CommandList as MoonUICommandList, CommandSeparator as MoonUICommandSeparator, CommandShortcut as MoonUICommandShortcut, DataTableBasic as MoonUIDataTableBasic, DatePicker as MoonUIDatePicker, DateRangePicker as MoonUIDateRangePicker, DateTimePicker as MoonUIDateTimePicker, Dialog as MoonUIDialog, DialogClose as MoonUIDialogClose, DialogContent as MoonUIDialogContent, DialogDescription as MoonUIDialogDescription, DialogFooter as MoonUIDialogFooter, DialogHeader as MoonUIDialogHeader, DialogTitle as MoonUIDialogTitle, DialogTrigger as MoonUIDialogTrigger, DraggableList as MoonUIDraggableList, DropdownMenu as MoonUIDropdownMenu, DropdownMenuCheckboxItem as MoonUIDropdownMenuCheckboxItem, DropdownMenuContent as MoonUIDropdownMenuContent, DropdownMenuGroup as MoonUIDropdownMenuGroup, DropdownMenuItem as MoonUIDropdownMenuItem, DropdownMenuLabel as MoonUIDropdownMenuLabel, DropdownMenuPortal as MoonUIDropdownMenuPortal, DropdownMenuRadioGroup as MoonUIDropdownMenuRadioGroup, DropdownMenuRadioItem as MoonUIDropdownMenuRadioItem, DropdownMenuSeparator as MoonUIDropdownMenuSeparator, DropdownMenuShortcut as MoonUIDropdownMenuShortcut, DropdownMenuSub as MoonUIDropdownMenuSub, DropdownMenuSubContent as MoonUIDropdownMenuSubContent, DropdownMenuSubTrigger as MoonUIDropdownMenuSubTrigger, DropdownMenuTrigger as MoonUIDropdownMenuTrigger, FileUpload as MoonUIFileUpload, FreeBadge as MoonUIFreeBadge, GestureDrawer as MoonUIGestureDrawer, GitHubStars as MoonUIGitHubStars, GradientPicker as MoonUIGradientPicker, Input as MoonUIInput, InputOTP as MoonUIInputOTP, InputOTPGroup as MoonUIInputOTPGroup, InputOTPSeparator as MoonUIInputOTPSeparator, InputOTPSlot as MoonUIInputOTPSlot, Kbd as MoonUIKbd, Label as MoonUILabel, LockedComponent as MoonUILockedComponent, MonthPicker as MoonUIMonthPicker, MoonLogo as MoonUIMoonLogo, Pagination as MoonUIPagination, PaginationContent as MoonUIPaginationContent, PaginationEllipsis as MoonUIPaginationEllipsis, PaginationItem as MoonUIPaginationItem, PaginationLink as MoonUIPaginationLink, PaginationNext as MoonUIPaginationNext, PaginationPrevious as MoonUIPaginationPrevious, PhoneInput as MoonUIPhoneInput, Popover as MoonUIPopover, PopoverContent as MoonUIPopoverContent, PopoverTrigger as MoonUIPopoverTrigger, ProBadge as MoonUIProBadge, ProComponentWrapper as MoonUIProComponentWrapper, Progress as MoonUIProgress, RadioGroup2 as MoonUIRadioGroup, RadioGroupItem as MoonUIRadioGroupItem, RadioItemWithLabel as MoonUIRadioItemWithLabel, RadioLabel as MoonUIRadioLabel, Rating as MoonUIRating, RichTextEditor as MoonUIRichTextEditor, ScrollArea as MoonUIScrollArea, ScrollBar as MoonUIScrollBar, ScrollReveal as MoonUIScrollReveal, ScrollRevealContainer as MoonUIScrollRevealContainer, ScrollRevealItem as MoonUIScrollRevealItem, Select as MoonUISelect, SelectContent as MoonUISelectContent, SelectGroup as MoonUISelectGroup, SelectItem as MoonUISelectItem, SelectLabel as MoonUISelectLabel, SelectScrollDownButton as MoonUISelectScrollDownButton, SelectScrollUpButton as MoonUISelectScrollUpButton, SelectSeparator as MoonUISelectSeparator, SelectTrigger as MoonUISelectTrigger, SelectValue as MoonUISelectValue, Separator3 as MoonUISeparator, SimpleColorPicker as MoonUISimpleColorPicker, SimpleEditor as MoonUISimpleEditor, Skeleton as MoonUISkeleton, SkeletonAvatar as MoonUISkeletonAvatar, SkeletonCard as MoonUISkeletonCard, SkeletonText as MoonUISkeletonText, Slider as MoonUISlider, Spinner as MoonUISpinner, SwipeableCard as MoonUISwipeableCard, Switch as MoonUISwitch, Table as MoonUITable, TableBody as MoonUITableBody, TableCaption as MoonUITableCaption, TableCell as MoonUITableCell, TableFooter as MoonUITableFooter, TableHead as MoonUITableHead, TableHeader as MoonUITableHeader, TableRow as MoonUITableRow, Tabs as MoonUITabs, TabsContent as MoonUITabsContent, TabsList as MoonUITabsList, TabsTrigger as MoonUITabsTrigger, TagsInput as MoonUITagsInput, Textarea as MoonUITextarea, Toast as MoonUIToast, ToastAction as MoonUIToastAction, ToastClose as MoonUIToastClose, ToastDescription as MoonUIToastDescription, ToastProvider as MoonUIToastProvider, ToastTitle as MoonUIToastTitle, ToastViewport as MoonUIToastViewport, Toaster as MoonUIToaster, Toggle as MoonUIToggle, ToggleGroup as MoonUIToggleGroup, ToggleGroupItem as MoonUIToggleGroupItem, Tooltip as MoonUITooltip, TooltipContent as MoonUITooltipContent, TooltipProvider as MoonUITooltipProvider, TooltipTrigger as MoonUITooltipTrigger, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PhoneInput, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverSeparator, PopoverTrigger, ProBadge, ProComponentWrapper, Progress, RadioGroup2 as RadioGroup, RadioGroupItem, RadioItemWithLabel, RadioLabel, Rating, RichTextEditor, ScrollArea, ScrollBar, ScrollReveal, ScrollRevealContainer, ScrollRevealItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, SimpleColorPicker, SimpleEditor, SimpleTooltip, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonText, Slider, Spinner, SwipeableCard, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagsInput, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, aspectRatioVariants, badgeVariants, buttonGroupVariants, buttonVariants, carouselContentVariants, carouselItemVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, inputOTPSlotVariants, kbdVariants, badgeVariants as moonUIBadgeVariants, buttonGroupVariants as moonUIButtonGroupVariants, buttonVariants as moonUIButtonVariants, carouselContentVariants as moonUICarouselContentVariants, carouselItemVariants as moonUICarouselItemVariants, createSortableHeader as moonUICreateSortableHeader, inputOTPSlotVariants as moonUIInputOTPSlotVariants, kbdVariants as moonUIKbdVariants, ratingVariants as moonUIRatingVariants, skeletonVariants as moonUISkeletonVariants, spinnerVariants as moonUISpinnerVariants, toggleVariants as moonUIToggleVariants, popoverContentVariants, progressVariants, ratingVariants, separatorVariants, skeletonVariants, spinnerVariants, toast, toggleVariants, tooltipVariants, useCarousel, useToast };
|
|
8653
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, Card, CardCVCInput, CardContent, CardDescription, CardExpiryInput, CardFooter, CardHeader, CardNumberInput, CardTitle, CardZipInput, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogForm, DialogHeader, DialogTitle, DialogTrigger, DraggableList, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileUpload, FreeBadge, GestureDrawer, GitHubStarButton, GitHubStars, GradientPicker, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, Label, LockedComponent, MonthPicker, MoonLogo, MoonLogoAnimated, MoonLogoIcon, Accordion as MoonUIAccordion, AccordionContent as MoonUIAccordionContent, AccordionItem as MoonUIAccordionItem, AccordionTrigger as MoonUIAccordionTrigger, Alert as MoonUIAlert, AlertDescription as MoonUIAlertDescription, AlertTitle as MoonUIAlertTitle, AspectRatio as MoonUIAspectRatio, Avatar as MoonUIAvatar, AvatarFallback as MoonUIAvatarFallback, AvatarGroup as MoonUIAvatarGroup, AvatarImage as MoonUIAvatarImage, Badge as MoonUIBadge, Breadcrumb as MoonUIBreadcrumb, BreadcrumbEllipsis as MoonUIBreadcrumbEllipsis, BreadcrumbItem as MoonUIBreadcrumbItem, BreadcrumbLink as MoonUIBreadcrumbLink, BreadcrumbList as MoonUIBreadcrumbList, BreadcrumbPage as MoonUIBreadcrumbPage, BreadcrumbSeparator as MoonUIBreadcrumbSeparator, Button as MoonUIButton, ButtonGroup as MoonUIButtonGroup, Calendar as MoonUICalendar, Card as MoonUICard, CardCVCInput as MoonUICardCVCInput, CardContent as MoonUICardContent, CardDescription as MoonUICardDescription, CardExpiryInput as MoonUICardExpiryInput, CardFooter as MoonUICardFooter, CardHeader as MoonUICardHeader, CardNumberInput as MoonUICardNumberInput, CardTitle as MoonUICardTitle, CardZipInput as MoonUICardZipInput, Carousel as MoonUICarousel, CarouselContent as MoonUICarouselContent, CarouselItem as MoonUICarouselItem, CarouselNext as MoonUICarouselNext, CarouselPrevious as MoonUICarouselPrevious, Checkbox as MoonUICheckbox, CheckboxGroup as MoonUICheckboxGroup, CheckboxLabel as MoonUICheckboxLabel, CheckboxWithLabel as MoonUICheckboxWithLabel, Collapsible as MoonUICollapsible, CollapsibleContent as MoonUICollapsibleContent, CollapsibleTrigger as MoonUICollapsibleTrigger, ColorPicker as MoonUIColorPicker, Command as MoonUICommand, CommandDialog as MoonUICommandDialog, CommandEmpty as MoonUICommandEmpty, CommandGroup as MoonUICommandGroup, CommandInput as MoonUICommandInput, CommandItem as MoonUICommandItem, CommandList as MoonUICommandList, CommandSeparator as MoonUICommandSeparator, CommandShortcut as MoonUICommandShortcut, DataTableBasic as MoonUIDataTableBasic, DatePicker as MoonUIDatePicker, DateRangePicker as MoonUIDateRangePicker, DateTimePicker as MoonUIDateTimePicker, Dialog as MoonUIDialog, DialogClose as MoonUIDialogClose, DialogContent as MoonUIDialogContent, DialogDescription as MoonUIDialogDescription, DialogFooter as MoonUIDialogFooter, DialogHeader as MoonUIDialogHeader, DialogTitle as MoonUIDialogTitle, DialogTrigger as MoonUIDialogTrigger, DraggableList as MoonUIDraggableList, DropdownMenu as MoonUIDropdownMenu, DropdownMenuCheckboxItem as MoonUIDropdownMenuCheckboxItem, DropdownMenuContent as MoonUIDropdownMenuContent, DropdownMenuGroup as MoonUIDropdownMenuGroup, DropdownMenuItem as MoonUIDropdownMenuItem, DropdownMenuLabel as MoonUIDropdownMenuLabel, DropdownMenuPortal as MoonUIDropdownMenuPortal, DropdownMenuRadioGroup as MoonUIDropdownMenuRadioGroup, DropdownMenuRadioItem as MoonUIDropdownMenuRadioItem, DropdownMenuSeparator as MoonUIDropdownMenuSeparator, DropdownMenuShortcut as MoonUIDropdownMenuShortcut, DropdownMenuSub as MoonUIDropdownMenuSub, DropdownMenuSubContent as MoonUIDropdownMenuSubContent, DropdownMenuSubTrigger as MoonUIDropdownMenuSubTrigger, DropdownMenuTrigger as MoonUIDropdownMenuTrigger, FileUpload as MoonUIFileUpload, FreeBadge as MoonUIFreeBadge, GestureDrawer as MoonUIGestureDrawer, GitHubStars as MoonUIGitHubStars, GradientPicker as MoonUIGradientPicker, Input as MoonUIInput, InputOTP as MoonUIInputOTP, InputOTPGroup as MoonUIInputOTPGroup, InputOTPSeparator as MoonUIInputOTPSeparator, InputOTPSlot as MoonUIInputOTPSlot, Kbd as MoonUIKbd, Label as MoonUILabel, LockedComponent as MoonUILockedComponent, MonthPicker as MoonUIMonthPicker, MoonLogo as MoonUIMoonLogo, Pagination as MoonUIPagination, PaginationContent as MoonUIPaginationContent, PaginationEllipsis as MoonUIPaginationEllipsis, PaginationItem as MoonUIPaginationItem, PaginationLink as MoonUIPaginationLink, PaginationNext as MoonUIPaginationNext, PaginationPrevious as MoonUIPaginationPrevious, PhoneInput as MoonUIPhoneInput, Popover as MoonUIPopover, PopoverContent as MoonUIPopoverContent, PopoverTrigger as MoonUIPopoverTrigger, ProBadge as MoonUIProBadge, ProComponentWrapper as MoonUIProComponentWrapper, Progress as MoonUIProgress, RadioGroup2 as MoonUIRadioGroup, RadioGroupItem as MoonUIRadioGroupItem, RadioItemWithLabel as MoonUIRadioItemWithLabel, RadioLabel as MoonUIRadioLabel, Rating as MoonUIRating, RichTextEditor as MoonUIRichTextEditor, ScrollArea as MoonUIScrollArea, ScrollBar as MoonUIScrollBar, ScrollReveal as MoonUIScrollReveal, ScrollRevealContainer as MoonUIScrollRevealContainer, ScrollRevealItem as MoonUIScrollRevealItem, Select as MoonUISelect, SelectContent as MoonUISelectContent, SelectGroup as MoonUISelectGroup, SelectItem as MoonUISelectItem, SelectLabel as MoonUISelectLabel, SelectScrollDownButton as MoonUISelectScrollDownButton, SelectScrollUpButton as MoonUISelectScrollUpButton, SelectSeparator as MoonUISelectSeparator, SelectTrigger as MoonUISelectTrigger, SelectValue as MoonUISelectValue, Separator3 as MoonUISeparator, SimpleColorPicker as MoonUISimpleColorPicker, SimpleEditor as MoonUISimpleEditor, Skeleton as MoonUISkeleton, SkeletonAvatar as MoonUISkeletonAvatar, SkeletonCard as MoonUISkeletonCard, SkeletonText as MoonUISkeletonText, Slider as MoonUISlider, Spinner as MoonUISpinner, SwipeableCard as MoonUISwipeableCard, Switch as MoonUISwitch, Table as MoonUITable, TableBody as MoonUITableBody, TableCaption as MoonUITableCaption, TableCell as MoonUITableCell, TableFooter as MoonUITableFooter, TableHead as MoonUITableHead, TableHeader as MoonUITableHeader, TableRow as MoonUITableRow, Tabs as MoonUITabs, TabsContent as MoonUITabsContent, TabsList as MoonUITabsList, TabsTrigger as MoonUITabsTrigger, TagsInput as MoonUITagsInput, Textarea as MoonUITextarea, Toast as MoonUIToast, ToastAction as MoonUIToastAction, ToastClose as MoonUIToastClose, ToastDescription as MoonUIToastDescription, ToastProvider as MoonUIToastProvider, ToastTitle as MoonUIToastTitle, ToastViewport as MoonUIToastViewport, Toaster as MoonUIToaster, Toggle as MoonUIToggle, ToggleGroup as MoonUIToggleGroup, ToggleGroupItem as MoonUIToggleGroupItem, Tooltip as MoonUITooltip, TooltipContent as MoonUITooltipContent, TooltipProvider as MoonUITooltipProvider, TooltipTrigger as MoonUITooltipTrigger, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PhoneInput, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverSeparator, PopoverTrigger, ProBadge, ProComponentWrapper, Progress, RadioGroup2 as RadioGroup, RadioGroupItem, RadioItemWithLabel, RadioLabel, Rating, RichTextEditor, ScrollArea, ScrollBar, ScrollReveal, ScrollRevealContainer, ScrollRevealItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, SimpleColorPicker, SimpleEditor, SimpleTooltip, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonText, Slider, Spinner, SwipeableCard, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagsInput, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, aspectRatioVariants, badgeVariants, buttonGroupVariants, buttonVariants, carouselContentVariants, carouselItemVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, inputOTPSlotVariants, kbdVariants, badgeVariants as moonUIBadgeVariants, buttonGroupVariants as moonUIButtonGroupVariants, buttonVariants as moonUIButtonVariants, carouselContentVariants as moonUICarouselContentVariants, carouselItemVariants as moonUICarouselItemVariants, createSortableHeader as moonUICreateSortableHeader, inputOTPSlotVariants as moonUIInputOTPSlotVariants, kbdVariants as moonUIKbdVariants, ratingVariants as moonUIRatingVariants, skeletonVariants as moonUISkeletonVariants, spinnerVariants as moonUISpinnerVariants, toggleVariants as moonUIToggleVariants, popoverContentVariants, progressVariants, ratingVariants, separatorVariants, skeletonVariants, spinnerVariants, switchVariants, toast, toggleVariants, tooltipVariants, useCarousel, useToast };
|
|
8582
8654
|
//# sourceMappingURL=out.js.map
|
|
8583
8655
|
//# sourceMappingURL=index.mjs.map
|