@moontra/moonui 6.7.0 → 6.9.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/hooks/index.global.js +1 -6
- package/dist/hooks/index.global.js.map +1 -1
- package/dist/index.d.mts +33 -25
- package/dist/index.d.ts +33 -25
- package/dist/index.global.js +18 -18
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +441 -388
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +403 -353
- package/dist/index.mjs.map +1 -1
- package/dist/lib/theme.global.js +1 -14
- package/dist/lib/theme.global.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/__tests__/a11y-group-c.test.tsx +266 -0
- package/src/components/ui/__tests__/breadcrumb.test.tsx +24 -9
- package/src/components/ui/__tests__/carousel.test.tsx +37 -0
- package/src/components/ui/__tests__/quality-group-de.test.tsx +159 -0
- package/src/components/ui/breadcrumb.tsx +85 -27
- package/src/components/ui/carousel.tsx +24 -0
- package/src/components/ui/command.tsx +25 -0
- package/src/components/ui/pagination.tsx +64 -44
- package/src/components/ui/scroll-area.tsx +23 -3
- package/src/components/ui/skeleton.tsx +16 -1
- package/src/components/ui/tabs.tsx +66 -16
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React12 = require('react');
|
|
6
6
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
7
7
|
var lucideReact = require('lucide-react');
|
|
8
8
|
var clsx = require('clsx');
|
|
@@ -10,6 +10,7 @@ var tailwindMerge = require('tailwind-merge');
|
|
|
10
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
11
11
|
var classVarianceAuthority = require('class-variance-authority');
|
|
12
12
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
13
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
13
14
|
var framerMotion = require('framer-motion');
|
|
14
15
|
var dateFns = require('date-fns');
|
|
15
16
|
var useEmblaCarousel = require('embla-carousel-react');
|
|
@@ -52,7 +53,7 @@ function _interopNamespace(e) {
|
|
|
52
53
|
return Object.freeze(n);
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
var
|
|
56
|
+
var React12__namespace = /*#__PURE__*/_interopNamespace(React12);
|
|
56
57
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
57
58
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
58
59
|
var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
|
|
@@ -83,14 +84,14 @@ function readableText(node) {
|
|
|
83
84
|
if (Array.isArray(node)) {
|
|
84
85
|
return node.map(readableText).filter(Boolean).join(" ").trim();
|
|
85
86
|
}
|
|
86
|
-
if (
|
|
87
|
+
if (React12__namespace.isValidElement(node)) {
|
|
87
88
|
const props = node.props;
|
|
88
89
|
return readableText(props.children);
|
|
89
90
|
}
|
|
90
91
|
return "";
|
|
91
92
|
}
|
|
92
93
|
var Accordion = AccordionPrimitive__namespace.Root;
|
|
93
|
-
var AccordionItem =
|
|
94
|
+
var AccordionItem = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
94
95
|
AccordionPrimitive__namespace.Item,
|
|
95
96
|
{
|
|
96
97
|
ref,
|
|
@@ -99,7 +100,7 @@ var AccordionItem = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
99
100
|
}
|
|
100
101
|
));
|
|
101
102
|
AccordionItem.displayName = "AccordionItem";
|
|
102
|
-
var AccordionTrigger =
|
|
103
|
+
var AccordionTrigger = React12__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
103
104
|
AccordionPrimitive__namespace.Trigger,
|
|
104
105
|
{
|
|
105
106
|
ref,
|
|
@@ -117,7 +118,7 @@ var AccordionTrigger = React23__namespace.forwardRef(({ className, children, ...
|
|
|
117
118
|
}
|
|
118
119
|
) }));
|
|
119
120
|
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
120
|
-
var AccordionContent =
|
|
121
|
+
var AccordionContent = React12__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
121
122
|
AccordionPrimitive__namespace.Content,
|
|
122
123
|
{
|
|
123
124
|
ref,
|
|
@@ -170,7 +171,7 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
173
|
);
|
|
173
|
-
var Alert =
|
|
174
|
+
var Alert = React12__namespace.forwardRef(
|
|
174
175
|
({
|
|
175
176
|
className,
|
|
176
177
|
variant = "default",
|
|
@@ -182,7 +183,7 @@ var Alert = React23__namespace.forwardRef(
|
|
|
182
183
|
children,
|
|
183
184
|
...props
|
|
184
185
|
}, ref) => {
|
|
185
|
-
const Icon2 =
|
|
186
|
+
const Icon2 = React12__namespace.useMemo(() => {
|
|
186
187
|
switch (variant) {
|
|
187
188
|
case "success":
|
|
188
189
|
return lucideReact.Check;
|
|
@@ -230,7 +231,7 @@ var Alert = React23__namespace.forwardRef(
|
|
|
230
231
|
}
|
|
231
232
|
);
|
|
232
233
|
Alert.displayName = "Alert";
|
|
233
|
-
var AlertTitle =
|
|
234
|
+
var AlertTitle = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
234
235
|
"h5",
|
|
235
236
|
{
|
|
236
237
|
ref,
|
|
@@ -243,7 +244,7 @@ var AlertTitle = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
243
244
|
}
|
|
244
245
|
));
|
|
245
246
|
AlertTitle.displayName = "AlertTitle";
|
|
246
|
-
var AlertDescription =
|
|
247
|
+
var AlertDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
247
248
|
"div",
|
|
248
249
|
{
|
|
249
250
|
ref,
|
|
@@ -285,7 +286,7 @@ var aspectRatioVariants = classVarianceAuthority.cva(
|
|
|
285
286
|
}
|
|
286
287
|
}
|
|
287
288
|
);
|
|
288
|
-
var AspectRatio =
|
|
289
|
+
var AspectRatio = React12__namespace.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
289
290
|
"div",
|
|
290
291
|
{
|
|
291
292
|
ref,
|
|
@@ -334,7 +335,7 @@ var avatarVariants = classVarianceAuthority.cva(
|
|
|
334
335
|
}
|
|
335
336
|
}
|
|
336
337
|
);
|
|
337
|
-
var Avatar =
|
|
338
|
+
var Avatar = React12__namespace.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
338
339
|
AvatarPrimitive__namespace.Root,
|
|
339
340
|
{
|
|
340
341
|
ref,
|
|
@@ -343,7 +344,7 @@ var Avatar = React23__namespace.forwardRef(({ className, size, radius, variant,
|
|
|
343
344
|
}
|
|
344
345
|
));
|
|
345
346
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
346
|
-
var AvatarImage =
|
|
347
|
+
var AvatarImage = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
347
348
|
AvatarPrimitive__namespace.Image,
|
|
348
349
|
{
|
|
349
350
|
ref,
|
|
@@ -352,7 +353,7 @@ var AvatarImage = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
352
353
|
}
|
|
353
354
|
));
|
|
354
355
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
355
|
-
var AvatarFallback =
|
|
356
|
+
var AvatarFallback = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
356
357
|
AvatarPrimitive__namespace.Fallback,
|
|
357
358
|
{
|
|
358
359
|
ref,
|
|
@@ -364,9 +365,9 @@ var AvatarFallback = React23__namespace.forwardRef(({ className, ...props }, ref
|
|
|
364
365
|
}
|
|
365
366
|
));
|
|
366
367
|
AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
|
|
367
|
-
var AvatarGroup =
|
|
368
|
+
var AvatarGroup = React12__namespace.forwardRef(
|
|
368
369
|
({ className, max, children, overlapOffset = -8, ...props }, ref) => {
|
|
369
|
-
const childrenArray =
|
|
370
|
+
const childrenArray = React12__namespace.Children.toArray(children);
|
|
370
371
|
const visibleAvatars = max ? childrenArray.slice(0, max) : childrenArray;
|
|
371
372
|
const remainingCount = max ? Math.max(0, childrenArray.length - max) : 0;
|
|
372
373
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -497,7 +498,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
497
498
|
}
|
|
498
499
|
}
|
|
499
500
|
);
|
|
500
|
-
var Badge =
|
|
501
|
+
var Badge = React12__namespace.forwardRef(({
|
|
501
502
|
className,
|
|
502
503
|
variant,
|
|
503
504
|
size,
|
|
@@ -605,8 +606,11 @@ var breadcrumbVariants = classVarianceAuthority.cva(
|
|
|
605
606
|
}
|
|
606
607
|
}
|
|
607
608
|
);
|
|
608
|
-
var
|
|
609
|
-
|
|
609
|
+
var BreadcrumbSeparatorContext = React12__namespace.createContext(void 0);
|
|
610
|
+
var Breadcrumb = React12__namespace.forwardRef(
|
|
611
|
+
// #309: `separator` ve `showHomeIcon` ESKİDEN destructure EDİLMİYORDU → `{...props}` ile
|
|
612
|
+
// `<nav>`'a öznitelik olarak basılıyor, React uyarı veriyordu. İkisi de artık ayrılıyor.
|
|
613
|
+
({ className, variant, size, separator, showHomeIcon: _showHomeIcon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparatorContext.Provider, { value: separator, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
610
614
|
"nav",
|
|
611
615
|
{
|
|
612
616
|
ref,
|
|
@@ -614,12 +618,12 @@ var Breadcrumb = React23__namespace.forwardRef(
|
|
|
614
618
|
"aria-label": "breadcrumb",
|
|
615
619
|
...props
|
|
616
620
|
}
|
|
617
|
-
)
|
|
621
|
+
) })
|
|
618
622
|
);
|
|
619
623
|
Breadcrumb.displayName = "Breadcrumb";
|
|
620
|
-
var BreadcrumbList =
|
|
624
|
+
var BreadcrumbList = React12__namespace.forwardRef(
|
|
621
625
|
({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
|
|
622
|
-
const childrenArray =
|
|
626
|
+
const childrenArray = React12__namespace.Children.toArray(props.children).filter(Boolean);
|
|
623
627
|
const childCount = childrenArray.length;
|
|
624
628
|
if (collapsed && childCount > collapsedWidth) {
|
|
625
629
|
const firstItem = childrenArray[0];
|
|
@@ -655,26 +659,26 @@ var BreadcrumbList = React23__namespace.forwardRef(
|
|
|
655
659
|
}
|
|
656
660
|
);
|
|
657
661
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
658
|
-
var BreadcrumbItem =
|
|
659
|
-
({ className, isCurrent, href, asChild = false, ...props }, ref) => {
|
|
660
|
-
const Comp = asChild ?
|
|
661
|
-
const itemProps = asChild
|
|
662
|
+
var BreadcrumbItem = React12__namespace.forwardRef(
|
|
663
|
+
({ className, isCurrent, href, asChild = false, children, ...props }, ref) => {
|
|
664
|
+
const Comp = asChild ? reactSlot.Slot : href ? "a" : "span";
|
|
665
|
+
const itemProps = !asChild && href ? { href } : {};
|
|
662
666
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
663
667
|
"li",
|
|
664
668
|
{
|
|
665
669
|
ref,
|
|
666
670
|
className: cn("moonui-theme", "inline-flex items-center gap-1.5", className),
|
|
667
|
-
"aria-current": isCurrent ? "page" : void 0,
|
|
668
671
|
...props,
|
|
669
672
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
670
673
|
Comp,
|
|
671
674
|
{
|
|
675
|
+
"aria-current": isCurrent ? "page" : void 0,
|
|
672
676
|
className: cn(
|
|
673
677
|
"transition-colors duration-200 hover:text-foreground",
|
|
674
678
|
isCurrent ? "font-medium text-foreground" : "text-muted-foreground hover:text-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30"
|
|
675
679
|
),
|
|
676
680
|
...itemProps,
|
|
677
|
-
children
|
|
681
|
+
children
|
|
678
682
|
}
|
|
679
683
|
)
|
|
680
684
|
}
|
|
@@ -685,36 +689,53 @@ BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
|
685
689
|
var BreadcrumbSeparator = ({
|
|
686
690
|
children,
|
|
687
691
|
className,
|
|
692
|
+
icon,
|
|
688
693
|
...props
|
|
689
|
-
}) =>
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
694
|
+
}) => {
|
|
695
|
+
const rootSeparator = React12__namespace.useContext(BreadcrumbSeparatorContext);
|
|
696
|
+
return (
|
|
697
|
+
// Ayraç tümüyle dekoratiftir → `aria-hidden` burada DOĞRU (ellipsis'in aksine içinde
|
|
698
|
+
// ekran-okuyucuya ait metin yok).
|
|
699
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
700
|
+
"span",
|
|
701
|
+
{
|
|
702
|
+
role: "presentation",
|
|
703
|
+
"aria-hidden": "true",
|
|
704
|
+
className: cn("moonui-theme", "text-muted-foreground opacity-70", className),
|
|
705
|
+
...props,
|
|
706
|
+
children: children || icon || rootSeparator || /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-3.5 w-3.5" })
|
|
707
|
+
}
|
|
708
|
+
)
|
|
709
|
+
);
|
|
710
|
+
};
|
|
699
711
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
700
712
|
var BreadcrumbEllipsis = ({
|
|
701
713
|
className,
|
|
714
|
+
icon,
|
|
702
715
|
...props
|
|
703
|
-
}) =>
|
|
704
|
-
"
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
716
|
+
}) => (
|
|
717
|
+
// #309: `aria-hidden="true"` ESKİDEN BU ELEMANDAYDI → alt ağacın tamamı, içindeki
|
|
718
|
+
// `sr-only` "More pages" metni DAHİL, erişilebilirlik ağacından düşüyordu; yani metin
|
|
719
|
+
// hiçbir zaman duyurulmuyordu (eleman kendi amacını geçersiz kılıyordu). Gizleme artık
|
|
720
|
+
// yalnız dekoratif ikonda.
|
|
721
|
+
//
|
|
722
|
+
// `role="presentation"` KASITLI olarak korundu: span'in zaten örtük rolü yok, dolayısıyla
|
|
723
|
+
// zararsız ve alt ağacı GİZLEMEZ (aria-hidden'ın aksine) — kusur yalnız aria-hidden'dı.
|
|
724
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
725
|
+
"span",
|
|
726
|
+
{
|
|
727
|
+
role: "presentation",
|
|
728
|
+
className: cn("moonui-theme", "flex items-center text-muted-foreground hover:text-foreground/80 transition-colors duration-200", className),
|
|
729
|
+
...props,
|
|
730
|
+
children: [
|
|
731
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "flex items-center", children: icon || /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "h-4 w-4" }) }),
|
|
732
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
|
|
733
|
+
]
|
|
734
|
+
}
|
|
735
|
+
)
|
|
715
736
|
);
|
|
716
737
|
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
717
|
-
var BreadcrumbLink =
|
|
738
|
+
var BreadcrumbLink = React12__namespace.forwardRef(
|
|
718
739
|
({ className, href, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
719
740
|
"a",
|
|
720
741
|
{
|
|
@@ -729,7 +750,7 @@ var BreadcrumbLink = React23__namespace.forwardRef(
|
|
|
729
750
|
)
|
|
730
751
|
);
|
|
731
752
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
732
|
-
var BreadcrumbPage =
|
|
753
|
+
var BreadcrumbPage = React12__namespace.forwardRef(
|
|
733
754
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
734
755
|
"span",
|
|
735
756
|
{
|
|
@@ -892,7 +913,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
892
913
|
}
|
|
893
914
|
}
|
|
894
915
|
);
|
|
895
|
-
var Button =
|
|
916
|
+
var Button = React12__namespace.forwardRef(
|
|
896
917
|
({
|
|
897
918
|
className,
|
|
898
919
|
variant,
|
|
@@ -1107,7 +1128,7 @@ var cardVariants = classVarianceAuthority.cva(
|
|
|
1107
1128
|
}
|
|
1108
1129
|
}
|
|
1109
1130
|
);
|
|
1110
|
-
var Card =
|
|
1131
|
+
var Card = React12__namespace.forwardRef(
|
|
1111
1132
|
({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
|
|
1112
1133
|
if (interactive && microInteraction !== "none") {
|
|
1113
1134
|
const interactionProps = {
|
|
@@ -1135,7 +1156,7 @@ var Card = React23__namespace.forwardRef(
|
|
|
1135
1156
|
}
|
|
1136
1157
|
);
|
|
1137
1158
|
Card.displayName = "Card";
|
|
1138
|
-
var CardHeader =
|
|
1159
|
+
var CardHeader = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1139
1160
|
"div",
|
|
1140
1161
|
{
|
|
1141
1162
|
ref,
|
|
@@ -1144,7 +1165,7 @@ var CardHeader = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1144
1165
|
}
|
|
1145
1166
|
));
|
|
1146
1167
|
CardHeader.displayName = "CardHeader";
|
|
1147
|
-
var CardTitle =
|
|
1168
|
+
var CardTitle = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1148
1169
|
"h3",
|
|
1149
1170
|
{
|
|
1150
1171
|
ref,
|
|
@@ -1153,7 +1174,7 @@ var CardTitle = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1153
1174
|
}
|
|
1154
1175
|
));
|
|
1155
1176
|
CardTitle.displayName = "CardTitle";
|
|
1156
|
-
var CardDescription =
|
|
1177
|
+
var CardDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1157
1178
|
"p",
|
|
1158
1179
|
{
|
|
1159
1180
|
ref,
|
|
@@ -1162,9 +1183,9 @@ var CardDescription = React23__namespace.forwardRef(({ className, ...props }, re
|
|
|
1162
1183
|
}
|
|
1163
1184
|
));
|
|
1164
1185
|
CardDescription.displayName = "CardDescription";
|
|
1165
|
-
var CardContent =
|
|
1186
|
+
var CardContent = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
|
|
1166
1187
|
CardContent.displayName = "CardContent";
|
|
1167
|
-
var CardFooter =
|
|
1188
|
+
var CardFooter = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1168
1189
|
"div",
|
|
1169
1190
|
{
|
|
1170
1191
|
ref,
|
|
@@ -1185,7 +1206,7 @@ function Calendar({
|
|
|
1185
1206
|
defaultMonth,
|
|
1186
1207
|
...props
|
|
1187
1208
|
}) {
|
|
1188
|
-
const [currentMonth, setCurrentMonth] =
|
|
1209
|
+
const [currentMonth, setCurrentMonth] = React12__namespace.useState(
|
|
1189
1210
|
defaultMonth || selected && selected || /* @__PURE__ */ new Date()
|
|
1190
1211
|
);
|
|
1191
1212
|
const weekDays = [
|
|
@@ -1399,9 +1420,9 @@ var formatCardNumber = (value, cardType) => {
|
|
|
1399
1420
|
}
|
|
1400
1421
|
return formatted;
|
|
1401
1422
|
};
|
|
1402
|
-
var CardNumberInput =
|
|
1423
|
+
var CardNumberInput = React12__namespace.forwardRef(
|
|
1403
1424
|
({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
|
|
1404
|
-
const [cardType, setCardType] =
|
|
1425
|
+
const [cardType, setCardType] = React12__namespace.useState("unknown");
|
|
1405
1426
|
const handleChange = (e) => {
|
|
1406
1427
|
const rawValue = e.target.value.replace(/\D/g, "");
|
|
1407
1428
|
const detectedType = getCardType(rawValue);
|
|
@@ -1432,7 +1453,7 @@ var CardNumberInput = React23__namespace.forwardRef(
|
|
|
1432
1453
|
}
|
|
1433
1454
|
);
|
|
1434
1455
|
CardNumberInput.displayName = "CardNumberInput";
|
|
1435
|
-
var CardExpiryInput =
|
|
1456
|
+
var CardExpiryInput = React12__namespace.forwardRef(
|
|
1436
1457
|
({ className, value = "", onChange, size, ...props }, ref) => {
|
|
1437
1458
|
const handleChange = (e) => {
|
|
1438
1459
|
let rawValue = e.target.value.replace(/\D/g, "");
|
|
@@ -1470,7 +1491,7 @@ var CardExpiryInput = React23__namespace.forwardRef(
|
|
|
1470
1491
|
}
|
|
1471
1492
|
);
|
|
1472
1493
|
CardExpiryInput.displayName = "CardExpiryInput";
|
|
1473
|
-
var CardCVCInput =
|
|
1494
|
+
var CardCVCInput = React12__namespace.forwardRef(
|
|
1474
1495
|
({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
|
|
1475
1496
|
const maxLength = cardType === "amex" ? 4 : 3;
|
|
1476
1497
|
const handleChange = (e) => {
|
|
@@ -1495,7 +1516,7 @@ var CardCVCInput = React23__namespace.forwardRef(
|
|
|
1495
1516
|
}
|
|
1496
1517
|
);
|
|
1497
1518
|
CardCVCInput.displayName = "CardCVCInput";
|
|
1498
|
-
var CardZipInput =
|
|
1519
|
+
var CardZipInput = React12__namespace.forwardRef(
|
|
1499
1520
|
({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
|
|
1500
1521
|
const handleChange = (e) => {
|
|
1501
1522
|
let rawValue = e.target.value;
|
|
@@ -1546,15 +1567,15 @@ var CardZipInput = React23__namespace.forwardRef(
|
|
|
1546
1567
|
}
|
|
1547
1568
|
);
|
|
1548
1569
|
CardZipInput.displayName = "CardZipInput";
|
|
1549
|
-
var CarouselContext =
|
|
1570
|
+
var CarouselContext = React12__namespace.createContext(null);
|
|
1550
1571
|
function useCarousel() {
|
|
1551
|
-
const context =
|
|
1572
|
+
const context = React12__namespace.useContext(CarouselContext);
|
|
1552
1573
|
if (!context) {
|
|
1553
1574
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1554
1575
|
}
|
|
1555
1576
|
return context;
|
|
1556
1577
|
}
|
|
1557
|
-
var Carousel =
|
|
1578
|
+
var Carousel = React12__namespace.forwardRef(
|
|
1558
1579
|
({
|
|
1559
1580
|
orientation = "horizontal",
|
|
1560
1581
|
opts,
|
|
@@ -1572,21 +1593,28 @@ var Carousel = React23__namespace.forwardRef(
|
|
|
1572
1593
|
},
|
|
1573
1594
|
plugins
|
|
1574
1595
|
);
|
|
1575
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1576
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1577
|
-
const
|
|
1596
|
+
const [canScrollPrev, setCanScrollPrev] = React12__namespace.useState(false);
|
|
1597
|
+
const [canScrollNext, setCanScrollNext] = React12__namespace.useState(false);
|
|
1598
|
+
const [slideState, setSlideState] = React12__namespace.useState(
|
|
1599
|
+
{ current: 0, total: 0 }
|
|
1600
|
+
);
|
|
1601
|
+
const onSelect = React12__namespace.useCallback((emblaApi) => {
|
|
1578
1602
|
if (!emblaApi)
|
|
1579
1603
|
return;
|
|
1580
1604
|
setCanScrollPrev(emblaApi.canScrollPrev());
|
|
1581
1605
|
setCanScrollNext(emblaApi.canScrollNext());
|
|
1606
|
+
setSlideState({
|
|
1607
|
+
current: emblaApi.selectedScrollSnap() + 1,
|
|
1608
|
+
total: emblaApi.scrollSnapList().length
|
|
1609
|
+
});
|
|
1582
1610
|
}, []);
|
|
1583
|
-
const scrollPrev =
|
|
1611
|
+
const scrollPrev = React12__namespace.useCallback(() => {
|
|
1584
1612
|
api?.scrollPrev();
|
|
1585
1613
|
}, [api]);
|
|
1586
|
-
const scrollNext =
|
|
1614
|
+
const scrollNext = React12__namespace.useCallback(() => {
|
|
1587
1615
|
api?.scrollNext();
|
|
1588
1616
|
}, [api]);
|
|
1589
|
-
const handleKeyDown =
|
|
1617
|
+
const handleKeyDown = React12__namespace.useCallback(
|
|
1590
1618
|
(event) => {
|
|
1591
1619
|
const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
1592
1620
|
const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
@@ -1600,12 +1628,12 @@ var Carousel = React23__namespace.forwardRef(
|
|
|
1600
1628
|
},
|
|
1601
1629
|
[resolvedOrientation, scrollPrev, scrollNext]
|
|
1602
1630
|
);
|
|
1603
|
-
|
|
1631
|
+
React12__namespace.useEffect(() => {
|
|
1604
1632
|
if (!api || !setApi)
|
|
1605
1633
|
return;
|
|
1606
1634
|
setApi(api);
|
|
1607
1635
|
}, [api, setApi]);
|
|
1608
|
-
|
|
1636
|
+
React12__namespace.useEffect(() => {
|
|
1609
1637
|
if (!api)
|
|
1610
1638
|
return;
|
|
1611
1639
|
onSelect(api);
|
|
@@ -1629,7 +1657,7 @@ var Carousel = React23__namespace.forwardRef(
|
|
|
1629
1657
|
canScrollNext,
|
|
1630
1658
|
orientation: resolvedOrientation
|
|
1631
1659
|
},
|
|
1632
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
1660
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1633
1661
|
"div",
|
|
1634
1662
|
{
|
|
1635
1663
|
ref,
|
|
@@ -1638,7 +1666,10 @@ var Carousel = React23__namespace.forwardRef(
|
|
|
1638
1666
|
role: "region",
|
|
1639
1667
|
"aria-roledescription": "carousel",
|
|
1640
1668
|
...props,
|
|
1641
|
-
children
|
|
1669
|
+
children: [
|
|
1670
|
+
children,
|
|
1671
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { "aria-live": "polite", "aria-atomic": "true", className: "sr-only", children: slideState.total > 0 ? `Slide ${slideState.current} of ${slideState.total}` : "" })
|
|
1672
|
+
]
|
|
1642
1673
|
}
|
|
1643
1674
|
)
|
|
1644
1675
|
}
|
|
@@ -1657,7 +1688,7 @@ var carouselContentVariants = classVarianceAuthority.cva("flex", {
|
|
|
1657
1688
|
orientation: "horizontal"
|
|
1658
1689
|
}
|
|
1659
1690
|
});
|
|
1660
|
-
var CarouselContent =
|
|
1691
|
+
var CarouselContent = React12__namespace.forwardRef(
|
|
1661
1692
|
({ className, ...props }, ref) => {
|
|
1662
1693
|
const { carouselRef, orientation } = useCarousel();
|
|
1663
1694
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1682,7 +1713,7 @@ var carouselItemVariants = classVarianceAuthority.cva("min-w-0 shrink-0 grow-0 b
|
|
|
1682
1713
|
orientation: "horizontal"
|
|
1683
1714
|
}
|
|
1684
1715
|
});
|
|
1685
|
-
var CarouselItem =
|
|
1716
|
+
var CarouselItem = React12__namespace.forwardRef(
|
|
1686
1717
|
({ className, ...props }, ref) => {
|
|
1687
1718
|
const { orientation } = useCarousel();
|
|
1688
1719
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1698,7 +1729,7 @@ var CarouselItem = React23__namespace.forwardRef(
|
|
|
1698
1729
|
}
|
|
1699
1730
|
);
|
|
1700
1731
|
CarouselItem.displayName = "CarouselItem";
|
|
1701
|
-
var CarouselPrevious =
|
|
1732
|
+
var CarouselPrevious = React12__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
|
|
1702
1733
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1703
1734
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1704
1735
|
Button,
|
|
@@ -1723,7 +1754,7 @@ var CarouselPrevious = React23__namespace.forwardRef(({ className, variant = "ou
|
|
|
1723
1754
|
);
|
|
1724
1755
|
});
|
|
1725
1756
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1726
|
-
var CarouselNext =
|
|
1757
|
+
var CarouselNext = React12__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
|
|
1727
1758
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1728
1759
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1729
1760
|
Button,
|
|
@@ -1786,7 +1817,7 @@ var checkboxVariants = classVarianceAuthority.cva(
|
|
|
1786
1817
|
}
|
|
1787
1818
|
}
|
|
1788
1819
|
);
|
|
1789
|
-
var Checkbox =
|
|
1820
|
+
var Checkbox = React12__namespace.forwardRef(({
|
|
1790
1821
|
className,
|
|
1791
1822
|
variant,
|
|
1792
1823
|
size,
|
|
@@ -1819,7 +1850,7 @@ var Checkbox = React23__namespace.forwardRef(({
|
|
|
1819
1850
|
);
|
|
1820
1851
|
});
|
|
1821
1852
|
Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
|
|
1822
|
-
var CheckboxGroup =
|
|
1853
|
+
var CheckboxGroup = React12__namespace.forwardRef(
|
|
1823
1854
|
({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
|
|
1824
1855
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1825
1856
|
"div",
|
|
@@ -1839,7 +1870,7 @@ var CheckboxGroup = React23__namespace.forwardRef(
|
|
|
1839
1870
|
}
|
|
1840
1871
|
);
|
|
1841
1872
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
1842
|
-
var CheckboxLabel =
|
|
1873
|
+
var CheckboxLabel = React12__namespace.forwardRef(
|
|
1843
1874
|
({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
|
|
1844
1875
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1845
1876
|
"label",
|
|
@@ -1859,14 +1890,14 @@ var CheckboxLabel = React23__namespace.forwardRef(
|
|
|
1859
1890
|
}
|
|
1860
1891
|
);
|
|
1861
1892
|
CheckboxLabel.displayName = "CheckboxLabel";
|
|
1862
|
-
var CheckboxWithLabel =
|
|
1893
|
+
var CheckboxWithLabel = React12__namespace.forwardRef(({
|
|
1863
1894
|
id,
|
|
1864
1895
|
label,
|
|
1865
1896
|
labelPosition = "end",
|
|
1866
1897
|
labelClassName,
|
|
1867
1898
|
...checkboxProps
|
|
1868
1899
|
}, ref) => {
|
|
1869
|
-
const generatedId =
|
|
1900
|
+
const generatedId = React12__namespace.useId();
|
|
1870
1901
|
const checkboxId = id || generatedId;
|
|
1871
1902
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
|
|
1872
1903
|
labelPosition === "start" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1916,7 +1947,7 @@ var collapsibleTriggerVariants = classVarianceAuthority.cva(
|
|
|
1916
1947
|
}
|
|
1917
1948
|
}
|
|
1918
1949
|
);
|
|
1919
|
-
var CollapsibleTrigger =
|
|
1950
|
+
var CollapsibleTrigger = React12__namespace.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
|
|
1920
1951
|
if (asChild) {
|
|
1921
1952
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1922
1953
|
CollapsiblePrimitive__namespace.Trigger,
|
|
@@ -1965,7 +1996,7 @@ var collapsibleContentVariants = classVarianceAuthority.cva(
|
|
|
1965
1996
|
}
|
|
1966
1997
|
}
|
|
1967
1998
|
);
|
|
1968
|
-
var CollapsibleContent =
|
|
1999
|
+
var CollapsibleContent = React12__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1969
2000
|
CollapsiblePrimitive__namespace.Content,
|
|
1970
2001
|
{
|
|
1971
2002
|
ref,
|
|
@@ -2048,7 +2079,7 @@ var inputVariants = classVarianceAuthority.cva(
|
|
|
2048
2079
|
}
|
|
2049
2080
|
}
|
|
2050
2081
|
);
|
|
2051
|
-
var Input =
|
|
2082
|
+
var Input = React12__namespace.forwardRef(
|
|
2052
2083
|
({
|
|
2053
2084
|
className,
|
|
2054
2085
|
wrapperClassName,
|
|
@@ -2075,10 +2106,10 @@ var Input = React23__namespace.forwardRef(
|
|
|
2075
2106
|
placeholder,
|
|
2076
2107
|
...props
|
|
2077
2108
|
}, ref) => {
|
|
2078
|
-
const reactId =
|
|
2109
|
+
const reactId = React12__namespace.useId();
|
|
2079
2110
|
const fieldId = props.id || reactId;
|
|
2080
|
-
const [isFocused, setIsFocused] =
|
|
2081
|
-
const [internalValue, setInternalValue] =
|
|
2111
|
+
const [isFocused, setIsFocused] = React12__namespace.useState(false);
|
|
2112
|
+
const [internalValue, setInternalValue] = React12__namespace.useState(value || defaultValue || "");
|
|
2082
2113
|
const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
|
|
2083
2114
|
const isLabelActive = isFocused || hasValue;
|
|
2084
2115
|
const handleFocus = (e) => {
|
|
@@ -2093,7 +2124,7 @@ var Input = React23__namespace.forwardRef(
|
|
|
2093
2124
|
setInternalValue(e.target.value);
|
|
2094
2125
|
onChange?.(e);
|
|
2095
2126
|
};
|
|
2096
|
-
|
|
2127
|
+
React12__namespace.useEffect(() => {
|
|
2097
2128
|
if (value !== void 0) {
|
|
2098
2129
|
setInternalValue(value);
|
|
2099
2130
|
}
|
|
@@ -2177,7 +2208,7 @@ Input.displayName = "Input";
|
|
|
2177
2208
|
var labelVariants = classVarianceAuthority.cva(
|
|
2178
2209
|
"text-sm font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:peer-disabled:opacity-60 transition-colors duration-200"
|
|
2179
2210
|
);
|
|
2180
|
-
var Label =
|
|
2211
|
+
var Label = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2181
2212
|
LabelPrimitive__namespace.Root,
|
|
2182
2213
|
{
|
|
2183
2214
|
ref,
|
|
@@ -2238,7 +2269,7 @@ var popoverContentVariants = classVarianceAuthority.cva(
|
|
|
2238
2269
|
var Popover = PopoverPrimitive__namespace.Root;
|
|
2239
2270
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
2240
2271
|
var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
|
|
2241
|
-
var PopoverContent =
|
|
2272
|
+
var PopoverContent = React12__namespace.forwardRef(({
|
|
2242
2273
|
className,
|
|
2243
2274
|
variant,
|
|
2244
2275
|
size,
|
|
@@ -2312,15 +2343,19 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
2312
2343
|
}
|
|
2313
2344
|
);
|
|
2314
2345
|
PopoverFooter.displayName = "PopoverFooter";
|
|
2315
|
-
var
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2346
|
+
var TabsOrientationContext = React12__namespace.createContext("horizontal");
|
|
2347
|
+
var Tabs = React12__namespace.forwardRef(({ vertical = false, orientation, className, ...props }, ref) => {
|
|
2348
|
+
const resolvedOrientation = orientation ?? (vertical ? "vertical" : "horizontal");
|
|
2349
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TabsOrientationContext.Provider, { value: resolvedOrientation, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2350
|
+
TabsPrimitive__namespace.Root,
|
|
2351
|
+
{
|
|
2352
|
+
ref,
|
|
2353
|
+
className: cn("moonui-theme", className),
|
|
2354
|
+
orientation: resolvedOrientation,
|
|
2355
|
+
...props
|
|
2356
|
+
}
|
|
2357
|
+
) });
|
|
2358
|
+
});
|
|
2324
2359
|
Tabs.displayName = TabsPrimitive__namespace.Root.displayName;
|
|
2325
2360
|
var tabsListVariants = classVarianceAuthority.cva(
|
|
2326
2361
|
"flex items-center justify-start transition-all duration-200",
|
|
@@ -2353,12 +2388,14 @@ var tabsListVariants = classVarianceAuthority.cva(
|
|
|
2353
2388
|
}
|
|
2354
2389
|
}
|
|
2355
2390
|
);
|
|
2356
|
-
var TabsList =
|
|
2391
|
+
var TabsList = React12__namespace.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
|
|
2392
|
+
const contextOrientation = React12__namespace.useContext(TabsOrientationContext);
|
|
2393
|
+
const resolvedOrientation = orientation ?? contextOrientation;
|
|
2357
2394
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2358
2395
|
TabsPrimitive__namespace.List,
|
|
2359
2396
|
{
|
|
2360
2397
|
ref,
|
|
2361
|
-
className: cn("moonui-theme", tabsListVariants({ variant, orientation, fullWidth, scrollable, className })),
|
|
2398
|
+
className: cn("moonui-theme", tabsListVariants({ variant, orientation: resolvedOrientation, fullWidth, scrollable, className })),
|
|
2362
2399
|
...props
|
|
2363
2400
|
}
|
|
2364
2401
|
);
|
|
@@ -2396,7 +2433,7 @@ var tabsTriggerVariants = classVarianceAuthority.cva(
|
|
|
2396
2433
|
}
|
|
2397
2434
|
}
|
|
2398
2435
|
);
|
|
2399
|
-
var TabsTrigger =
|
|
2436
|
+
var TabsTrigger = React12__namespace.forwardRef(({
|
|
2400
2437
|
className,
|
|
2401
2438
|
variant,
|
|
2402
2439
|
size,
|
|
@@ -2408,27 +2445,31 @@ var TabsTrigger = React23__namespace.forwardRef(({
|
|
|
2408
2445
|
fullWidth,
|
|
2409
2446
|
children,
|
|
2410
2447
|
...props
|
|
2411
|
-
}, ref) =>
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
)
|
|
2448
|
+
}, ref) => {
|
|
2449
|
+
const contextOrientation = React12__namespace.useContext(TabsOrientationContext);
|
|
2450
|
+
const resolvedOrientation = orientation ?? contextOrientation;
|
|
2451
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2452
|
+
TabsPrimitive__namespace.Trigger,
|
|
2453
|
+
{
|
|
2454
|
+
ref,
|
|
2455
|
+
className: cn(
|
|
2456
|
+
"moonui-theme",
|
|
2457
|
+
tabsTriggerVariants({ variant, size, orientation: resolvedOrientation, fullWidth }),
|
|
2458
|
+
fadeTabs && "data-[state=inactive]:opacity-60",
|
|
2459
|
+
className
|
|
2460
|
+
),
|
|
2461
|
+
...props,
|
|
2462
|
+
children: [
|
|
2463
|
+
icon && iconPosition === "left" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mr-2", children: icon }),
|
|
2464
|
+
children,
|
|
2465
|
+
icon && iconPosition === "right" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2", children: icon }),
|
|
2466
|
+
badge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2", children: badge })
|
|
2467
|
+
]
|
|
2468
|
+
}
|
|
2469
|
+
);
|
|
2470
|
+
});
|
|
2430
2471
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
2431
|
-
var TabsContent =
|
|
2472
|
+
var TabsContent = React12__namespace.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2432
2473
|
TabsPrimitive__namespace.Content,
|
|
2433
2474
|
{
|
|
2434
2475
|
ref,
|
|
@@ -2522,7 +2563,7 @@ var sliderThumbVariants = classVarianceAuthority.cva(
|
|
|
2522
2563
|
}
|
|
2523
2564
|
}
|
|
2524
2565
|
);
|
|
2525
|
-
var Slider =
|
|
2566
|
+
var Slider = React12__namespace.forwardRef(({
|
|
2526
2567
|
className,
|
|
2527
2568
|
size,
|
|
2528
2569
|
trackVariant,
|
|
@@ -2538,10 +2579,10 @@ var Slider = React23__namespace.forwardRef(({
|
|
|
2538
2579
|
disabled,
|
|
2539
2580
|
...props
|
|
2540
2581
|
}, ref) => {
|
|
2541
|
-
const [sliderValue, setSliderValue] =
|
|
2582
|
+
const [sliderValue, setSliderValue] = React12__namespace.useState(
|
|
2542
2583
|
value || defaultValue || [0]
|
|
2543
2584
|
);
|
|
2544
|
-
|
|
2585
|
+
React12__namespace.useEffect(() => {
|
|
2545
2586
|
if (value !== void 0) {
|
|
2546
2587
|
setSliderValue(value);
|
|
2547
2588
|
}
|
|
@@ -2556,7 +2597,7 @@ var Slider = React23__namespace.forwardRef(({
|
|
|
2556
2597
|
const calculateThumbPercent = (value2, min2, max2) => {
|
|
2557
2598
|
return (value2 - min2) / (max2 - min2) * 100;
|
|
2558
2599
|
};
|
|
2559
|
-
const trackRef =
|
|
2600
|
+
const trackRef = React12__namespace.useRef(null);
|
|
2560
2601
|
const min = props.min || 0;
|
|
2561
2602
|
const max = props.max || 100;
|
|
2562
2603
|
const step = props.step || 1;
|
|
@@ -2868,14 +2909,14 @@ function ColorPicker({
|
|
|
2868
2909
|
disabled,
|
|
2869
2910
|
...props
|
|
2870
2911
|
}) {
|
|
2871
|
-
const [open, setOpen] =
|
|
2872
|
-
const [color, setColor] =
|
|
2873
|
-
const [opacity, setOpacity] =
|
|
2874
|
-
const [copied, setCopied] =
|
|
2875
|
-
const [inputValue, setInputValue] =
|
|
2876
|
-
const hsl =
|
|
2877
|
-
const rgb =
|
|
2878
|
-
|
|
2912
|
+
const [open, setOpen] = React12__namespace.useState(false);
|
|
2913
|
+
const [color, setColor] = React12__namespace.useState(value);
|
|
2914
|
+
const [opacity, setOpacity] = React12__namespace.useState(100);
|
|
2915
|
+
const [copied, setCopied] = React12__namespace.useState(false);
|
|
2916
|
+
const [inputValue, setInputValue] = React12__namespace.useState(value);
|
|
2917
|
+
const hsl = React12__namespace.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
|
|
2918
|
+
const rgb = React12__namespace.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
|
|
2919
|
+
React12__namespace.useEffect(() => {
|
|
2879
2920
|
setColor(value);
|
|
2880
2921
|
setInputValue(value);
|
|
2881
2922
|
}, [value]);
|
|
@@ -3270,7 +3311,7 @@ function GradientPicker({
|
|
|
3270
3311
|
onChange,
|
|
3271
3312
|
className
|
|
3272
3313
|
}) {
|
|
3273
|
-
const [gradient, setGradient] =
|
|
3314
|
+
const [gradient, setGradient] = React12__namespace.useState(value);
|
|
3274
3315
|
const handleChange = (field, newValue) => {
|
|
3275
3316
|
const newGradient = { ...gradient, [field]: newValue };
|
|
3276
3317
|
setGradient(newGradient);
|
|
@@ -3356,7 +3397,7 @@ var overlayVariants = classVarianceAuthority.cva(
|
|
|
3356
3397
|
}
|
|
3357
3398
|
}
|
|
3358
3399
|
);
|
|
3359
|
-
var DialogOverlay =
|
|
3400
|
+
var DialogOverlay = React12__namespace.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3360
3401
|
DialogPrimitive__namespace.Overlay,
|
|
3361
3402
|
{
|
|
3362
3403
|
ref,
|
|
@@ -3415,7 +3456,7 @@ var dialogContentVariants = classVarianceAuthority.cva(
|
|
|
3415
3456
|
}
|
|
3416
3457
|
}
|
|
3417
3458
|
);
|
|
3418
|
-
var DialogContent =
|
|
3459
|
+
var DialogContent = React12__namespace.forwardRef(
|
|
3419
3460
|
({
|
|
3420
3461
|
className,
|
|
3421
3462
|
children,
|
|
@@ -3528,7 +3569,7 @@ var DialogFooter = ({
|
|
|
3528
3569
|
}
|
|
3529
3570
|
);
|
|
3530
3571
|
DialogFooter.displayName = "DialogFooter";
|
|
3531
|
-
var DialogTitle =
|
|
3572
|
+
var DialogTitle = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3532
3573
|
DialogPrimitive__namespace.Title,
|
|
3533
3574
|
{
|
|
3534
3575
|
ref,
|
|
@@ -3540,7 +3581,7 @@ var DialogTitle = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3540
3581
|
}
|
|
3541
3582
|
));
|
|
3542
3583
|
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
3543
|
-
var DialogDescription =
|
|
3584
|
+
var DialogDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3544
3585
|
DialogPrimitive__namespace.Description,
|
|
3545
3586
|
{
|
|
3546
3587
|
ref,
|
|
@@ -3552,7 +3593,7 @@ var DialogDescription = React23__namespace.forwardRef(({ className, ...props },
|
|
|
3552
3593
|
}
|
|
3553
3594
|
));
|
|
3554
3595
|
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
3555
|
-
var DialogForm =
|
|
3596
|
+
var DialogForm = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3556
3597
|
"form",
|
|
3557
3598
|
{
|
|
3558
3599
|
ref,
|
|
@@ -3582,7 +3623,7 @@ var commandVariants = classVarianceAuthority.cva(
|
|
|
3582
3623
|
}
|
|
3583
3624
|
}
|
|
3584
3625
|
);
|
|
3585
|
-
var Command =
|
|
3626
|
+
var Command = React12__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3586
3627
|
cmdk.Command,
|
|
3587
3628
|
{
|
|
3588
3629
|
ref,
|
|
@@ -3604,7 +3645,7 @@ var CommandDialog = ({
|
|
|
3604
3645
|
), children })
|
|
3605
3646
|
] }) });
|
|
3606
3647
|
};
|
|
3607
|
-
var CommandInput =
|
|
3648
|
+
var CommandInput = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
3608
3649
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
3609
3650
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3610
3651
|
cmdk.Command.Input,
|
|
@@ -3619,7 +3660,7 @@ var CommandInput = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3619
3660
|
)
|
|
3620
3661
|
] }));
|
|
3621
3662
|
CommandInput.displayName = "CommandInput";
|
|
3622
|
-
var CommandList =
|
|
3663
|
+
var CommandList = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3623
3664
|
cmdk.Command.List,
|
|
3624
3665
|
{
|
|
3625
3666
|
ref,
|
|
@@ -3628,7 +3669,7 @@ var CommandList = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3628
3669
|
}
|
|
3629
3670
|
));
|
|
3630
3671
|
CommandList.displayName = "CommandList";
|
|
3631
|
-
var CommandEmpty =
|
|
3672
|
+
var CommandEmpty = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3632
3673
|
cmdk.Command.Empty,
|
|
3633
3674
|
{
|
|
3634
3675
|
ref,
|
|
@@ -3637,7 +3678,7 @@ var CommandEmpty = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3637
3678
|
}
|
|
3638
3679
|
));
|
|
3639
3680
|
CommandEmpty.displayName = "CommandEmpty";
|
|
3640
|
-
var CommandGroup =
|
|
3681
|
+
var CommandGroup = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3641
3682
|
cmdk.Command.Group,
|
|
3642
3683
|
{
|
|
3643
3684
|
ref,
|
|
@@ -3649,16 +3690,17 @@ var CommandGroup = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3649
3690
|
}
|
|
3650
3691
|
));
|
|
3651
3692
|
CommandGroup.displayName = "CommandGroup";
|
|
3652
|
-
var CommandSeparator =
|
|
3693
|
+
var CommandSeparator = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3653
3694
|
cmdk.Command.Separator,
|
|
3654
3695
|
{
|
|
3655
3696
|
ref,
|
|
3697
|
+
"aria-hidden": "true",
|
|
3656
3698
|
className: cn("moonui-theme", "-mx-1 h-px bg-border", className),
|
|
3657
3699
|
...props
|
|
3658
3700
|
}
|
|
3659
3701
|
));
|
|
3660
3702
|
CommandSeparator.displayName = "CommandSeparator";
|
|
3661
|
-
var CommandItem =
|
|
3703
|
+
var CommandItem = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3662
3704
|
cmdk.Command.Item,
|
|
3663
3705
|
{
|
|
3664
3706
|
ref,
|
|
@@ -3686,7 +3728,7 @@ var CommandShortcut = ({
|
|
|
3686
3728
|
);
|
|
3687
3729
|
};
|
|
3688
3730
|
CommandShortcut.displayName = "CommandShortcut";
|
|
3689
|
-
var TableSortContext =
|
|
3731
|
+
var TableSortContext = React12__namespace.createContext(null);
|
|
3690
3732
|
function nextSortDirection(current) {
|
|
3691
3733
|
if (current === "asc")
|
|
3692
3734
|
return "desc";
|
|
@@ -3717,7 +3759,7 @@ var tableVariants = classVarianceAuthority.cva(
|
|
|
3717
3759
|
}
|
|
3718
3760
|
}
|
|
3719
3761
|
);
|
|
3720
|
-
var Table =
|
|
3762
|
+
var Table = React12__namespace.forwardRef(({
|
|
3721
3763
|
className,
|
|
3722
3764
|
variant,
|
|
3723
3765
|
size,
|
|
@@ -3740,15 +3782,15 @@ var Table = React23__namespace.forwardRef(({
|
|
|
3740
3782
|
...props
|
|
3741
3783
|
}, ref) => {
|
|
3742
3784
|
const striped = variant === "striped";
|
|
3743
|
-
const sortContextValue =
|
|
3785
|
+
const sortContextValue = React12__namespace.useMemo(
|
|
3744
3786
|
() => ({ sortColumn, sortDirection, onSortChange }),
|
|
3745
3787
|
[sortColumn, sortDirection, onSortChange]
|
|
3746
3788
|
);
|
|
3747
|
-
const childrenWithProps =
|
|
3748
|
-
if (
|
|
3789
|
+
const childrenWithProps = React12__namespace.Children.map(props.children, (child) => {
|
|
3790
|
+
if (React12__namespace.isValidElement(child)) {
|
|
3749
3791
|
if (child.type === "tbody") {
|
|
3750
3792
|
const tbodyProps = child.props;
|
|
3751
|
-
return
|
|
3793
|
+
return React12__namespace.cloneElement(child, {
|
|
3752
3794
|
className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
|
|
3753
3795
|
});
|
|
3754
3796
|
}
|
|
@@ -3773,10 +3815,10 @@ var Table = React23__namespace.forwardRef(({
|
|
|
3773
3815
|
] });
|
|
3774
3816
|
});
|
|
3775
3817
|
Table.displayName = "Table";
|
|
3776
|
-
var TableHeader =
|
|
3818
|
+
var TableHeader = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
|
|
3777
3819
|
TableHeader.displayName = "TableHeader";
|
|
3778
|
-
var TableBody =
|
|
3779
|
-
const hasChildren =
|
|
3820
|
+
var TableBody = React12__namespace.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
|
|
3821
|
+
const hasChildren = React12__namespace.Children.count(children) > 0;
|
|
3780
3822
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3781
3823
|
"tbody",
|
|
3782
3824
|
{
|
|
@@ -3788,7 +3830,7 @@ var TableBody = React23__namespace.forwardRef(({ className, emptyContent, emptyM
|
|
|
3788
3830
|
);
|
|
3789
3831
|
});
|
|
3790
3832
|
TableBody.displayName = "TableBody";
|
|
3791
|
-
var TableFooter =
|
|
3833
|
+
var TableFooter = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3792
3834
|
"tfoot",
|
|
3793
3835
|
{
|
|
3794
3836
|
ref,
|
|
@@ -3797,7 +3839,7 @@ var TableFooter = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3797
3839
|
}
|
|
3798
3840
|
));
|
|
3799
3841
|
TableFooter.displayName = "TableFooter";
|
|
3800
|
-
var TableRow =
|
|
3842
|
+
var TableRow = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3801
3843
|
"tr",
|
|
3802
3844
|
{
|
|
3803
3845
|
ref,
|
|
@@ -3809,12 +3851,12 @@ var TableRow = React23__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
3809
3851
|
}
|
|
3810
3852
|
));
|
|
3811
3853
|
TableRow.displayName = "TableRow";
|
|
3812
|
-
var TableHead =
|
|
3854
|
+
var TableHead = React12__namespace.forwardRef(
|
|
3813
3855
|
({ className, sortable, sorted, onSort, columnId, align = "left", children, ...props }, ref) => {
|
|
3814
|
-
const sortCtx =
|
|
3856
|
+
const sortCtx = React12__namespace.useContext(TableSortContext);
|
|
3815
3857
|
const ctxSorted = columnId && sortCtx && sortCtx.sortColumn === columnId ? sortCtx.sortDirection ?? null : null;
|
|
3816
3858
|
const effectiveSorted = sorted !== void 0 ? sorted : ctxSorted;
|
|
3817
|
-
const handleSort =
|
|
3859
|
+
const handleSort = React12__namespace.useCallback(() => {
|
|
3818
3860
|
if (onSort) {
|
|
3819
3861
|
onSort();
|
|
3820
3862
|
return;
|
|
@@ -3925,7 +3967,7 @@ var TableHead = React23__namespace.forwardRef(
|
|
|
3925
3967
|
}
|
|
3926
3968
|
);
|
|
3927
3969
|
TableHead.displayName = "TableHead";
|
|
3928
|
-
var TableCell =
|
|
3970
|
+
var TableCell = React12__namespace.forwardRef(({ className, align = "left", ...props }, ref) => {
|
|
3929
3971
|
const alignmentClass = {
|
|
3930
3972
|
left: "text-left",
|
|
3931
3973
|
center: "text-center",
|
|
@@ -3941,7 +3983,7 @@ var TableCell = React23__namespace.forwardRef(({ className, align = "left", ...p
|
|
|
3941
3983
|
);
|
|
3942
3984
|
});
|
|
3943
3985
|
TableCell.displayName = "TableCell";
|
|
3944
|
-
var TableCaption =
|
|
3986
|
+
var TableCaption = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3945
3987
|
"caption",
|
|
3946
3988
|
{
|
|
3947
3989
|
ref,
|
|
@@ -3961,8 +4003,8 @@ function DataTableBasic({
|
|
|
3961
4003
|
emptyMessage = "No results found.",
|
|
3962
4004
|
className
|
|
3963
4005
|
}) {
|
|
3964
|
-
const [sorting, setSorting] =
|
|
3965
|
-
const [globalFilter, setGlobalFilter] =
|
|
4006
|
+
const [sorting, setSorting] = React12__namespace.useState([]);
|
|
4007
|
+
const [globalFilter, setGlobalFilter] = React12__namespace.useState("");
|
|
3966
4008
|
const table = reactTable.useReactTable({
|
|
3967
4009
|
data,
|
|
3968
4010
|
columns,
|
|
@@ -4125,7 +4167,7 @@ var datePickerVariants = classVarianceAuthority.cva(
|
|
|
4125
4167
|
}
|
|
4126
4168
|
}
|
|
4127
4169
|
);
|
|
4128
|
-
var DatePicker =
|
|
4170
|
+
var DatePicker = React12__namespace.forwardRef(function DatePicker2({
|
|
4129
4171
|
className,
|
|
4130
4172
|
variant,
|
|
4131
4173
|
size,
|
|
@@ -4148,9 +4190,9 @@ var DatePicker = React23__namespace.forwardRef(function DatePicker2({
|
|
|
4148
4190
|
disabled,
|
|
4149
4191
|
...props
|
|
4150
4192
|
}, ref) {
|
|
4151
|
-
const [open, setOpen] =
|
|
4152
|
-
const [internalDate, setInternalDate] =
|
|
4153
|
-
|
|
4193
|
+
const [open, setOpen] = React12__namespace.useState(false);
|
|
4194
|
+
const [internalDate, setInternalDate] = React12__namespace.useState(value);
|
|
4195
|
+
React12__namespace.useEffect(() => {
|
|
4154
4196
|
setInternalDate(value);
|
|
4155
4197
|
}, [value]);
|
|
4156
4198
|
const handleSelect = (date) => {
|
|
@@ -4298,7 +4340,7 @@ var DatePicker = React23__namespace.forwardRef(function DatePicker2({
|
|
|
4298
4340
|
] }) });
|
|
4299
4341
|
});
|
|
4300
4342
|
DatePicker.displayName = "DatePicker";
|
|
4301
|
-
var DateRangePicker =
|
|
4343
|
+
var DateRangePicker = React12__namespace.forwardRef(function DateRangePicker2({
|
|
4302
4344
|
className,
|
|
4303
4345
|
value,
|
|
4304
4346
|
onChange,
|
|
@@ -4307,9 +4349,9 @@ var DateRangePicker = React23__namespace.forwardRef(function DateRangePicker2({
|
|
|
4307
4349
|
separator = " - ",
|
|
4308
4350
|
...props
|
|
4309
4351
|
}, ref) {
|
|
4310
|
-
const [open, setOpen] =
|
|
4311
|
-
const [internalRange, setInternalRange] =
|
|
4312
|
-
|
|
4352
|
+
const [open, setOpen] = React12__namespace.useState(false);
|
|
4353
|
+
const [internalRange, setInternalRange] = React12__namespace.useState(value);
|
|
4354
|
+
React12__namespace.useEffect(() => {
|
|
4313
4355
|
setInternalRange(value);
|
|
4314
4356
|
}, [value]);
|
|
4315
4357
|
const handleSelect = (range) => {
|
|
@@ -4319,7 +4361,7 @@ var DateRangePicker = React23__namespace.forwardRef(function DateRangePicker2({
|
|
|
4319
4361
|
setOpen(false);
|
|
4320
4362
|
}
|
|
4321
4363
|
};
|
|
4322
|
-
const displayValue =
|
|
4364
|
+
const displayValue = React12__namespace.useMemo(() => {
|
|
4323
4365
|
if (!internalRange?.from)
|
|
4324
4366
|
return null;
|
|
4325
4367
|
if (!internalRange?.to) {
|
|
@@ -4367,7 +4409,7 @@ var DateRangePicker = React23__namespace.forwardRef(function DateRangePicker2({
|
|
|
4367
4409
|
] });
|
|
4368
4410
|
});
|
|
4369
4411
|
DateRangePicker.displayName = "DateRangePicker";
|
|
4370
|
-
var DateTimePicker =
|
|
4412
|
+
var DateTimePicker = React12__namespace.forwardRef(function DateTimePicker2({
|
|
4371
4413
|
value,
|
|
4372
4414
|
onChange,
|
|
4373
4415
|
// Saat ayrı bir <select> ile gösterildiği için buton yalnızca TARİHİ yazar;
|
|
@@ -4379,8 +4421,8 @@ var DateTimePicker = React23__namespace.forwardRef(function DateTimePicker2({
|
|
|
4379
4421
|
timeInterval = 15,
|
|
4380
4422
|
...props
|
|
4381
4423
|
}, ref) {
|
|
4382
|
-
const [date, setDate] =
|
|
4383
|
-
const [time, setTime] =
|
|
4424
|
+
const [date, setDate] = React12__namespace.useState(value);
|
|
4425
|
+
const [time, setTime] = React12__namespace.useState(
|
|
4384
4426
|
value ? dateFns.format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
|
|
4385
4427
|
);
|
|
4386
4428
|
const handleDateChange = (newDate) => {
|
|
@@ -4405,7 +4447,7 @@ var DateTimePicker = React23__namespace.forwardRef(function DateTimePicker2({
|
|
|
4405
4447
|
onChange?.(newDate);
|
|
4406
4448
|
}
|
|
4407
4449
|
};
|
|
4408
|
-
const timeOptions =
|
|
4450
|
+
const timeOptions = React12__namespace.useMemo(() => {
|
|
4409
4451
|
const options = [];
|
|
4410
4452
|
for (let h = 0; h < 24; h++) {
|
|
4411
4453
|
for (let m = 0; m < 60; m += timeInterval) {
|
|
@@ -4459,15 +4501,15 @@ var DateTimePicker = React23__namespace.forwardRef(function DateTimePicker2({
|
|
|
4459
4501
|
] });
|
|
4460
4502
|
});
|
|
4461
4503
|
DateTimePicker.displayName = "DateTimePicker";
|
|
4462
|
-
var MonthPicker =
|
|
4504
|
+
var MonthPicker = React12__namespace.forwardRef(function MonthPicker2({
|
|
4463
4505
|
value,
|
|
4464
4506
|
onChange,
|
|
4465
4507
|
placeholder = "Pick a month",
|
|
4466
4508
|
formatString = "MMMM yyyy",
|
|
4467
4509
|
...props
|
|
4468
4510
|
}, ref) {
|
|
4469
|
-
const [open, setOpen] =
|
|
4470
|
-
const [viewDate, setViewDate] =
|
|
4511
|
+
const [open, setOpen] = React12__namespace.useState(false);
|
|
4512
|
+
const [viewDate, setViewDate] = React12__namespace.useState(value || /* @__PURE__ */ new Date());
|
|
4471
4513
|
const months = [
|
|
4472
4514
|
"January",
|
|
4473
4515
|
"February",
|
|
@@ -4563,7 +4605,7 @@ function DraggableList({
|
|
|
4563
4605
|
className,
|
|
4564
4606
|
disabled = false
|
|
4565
4607
|
}) {
|
|
4566
|
-
const [draggedIndex, setDraggedIndex] =
|
|
4608
|
+
const [draggedIndex, setDraggedIndex] = React12__namespace.useState(null);
|
|
4567
4609
|
const handleDragStart = (e, index) => {
|
|
4568
4610
|
if (disabled)
|
|
4569
4611
|
return;
|
|
@@ -4615,7 +4657,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
4615
4657
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
4616
4658
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
4617
4659
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
4618
|
-
var DropdownMenuSubTrigger =
|
|
4660
|
+
var DropdownMenuSubTrigger = React12__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4619
4661
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
4620
4662
|
{
|
|
4621
4663
|
ref,
|
|
@@ -4632,7 +4674,7 @@ var DropdownMenuSubTrigger = React23__namespace.forwardRef(({ className, inset,
|
|
|
4632
4674
|
}
|
|
4633
4675
|
));
|
|
4634
4676
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
4635
|
-
var DropdownMenuSubContent =
|
|
4677
|
+
var DropdownMenuSubContent = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4636
4678
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
4637
4679
|
{
|
|
4638
4680
|
ref,
|
|
@@ -4644,7 +4686,7 @@ var DropdownMenuSubContent = React23__namespace.forwardRef(({ className, ...prop
|
|
|
4644
4686
|
}
|
|
4645
4687
|
));
|
|
4646
4688
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
4647
|
-
var DropdownMenuContent =
|
|
4689
|
+
var DropdownMenuContent = React12__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4648
4690
|
DropdownMenuPrimitive__namespace.Content,
|
|
4649
4691
|
{
|
|
4650
4692
|
ref,
|
|
@@ -4657,7 +4699,7 @@ var DropdownMenuContent = React23__namespace.forwardRef(({ className, sideOffset
|
|
|
4657
4699
|
}
|
|
4658
4700
|
) }));
|
|
4659
4701
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
4660
|
-
var DropdownMenuItem =
|
|
4702
|
+
var DropdownMenuItem = React12__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4661
4703
|
DropdownMenuPrimitive__namespace.Item,
|
|
4662
4704
|
{
|
|
4663
4705
|
ref,
|
|
@@ -4670,7 +4712,7 @@ var DropdownMenuItem = React23__namespace.forwardRef(({ className, inset, ...pro
|
|
|
4670
4712
|
}
|
|
4671
4713
|
));
|
|
4672
4714
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
4673
|
-
var DropdownMenuCheckboxItem =
|
|
4715
|
+
var DropdownMenuCheckboxItem = React12__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4674
4716
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
4675
4717
|
{
|
|
4676
4718
|
ref,
|
|
@@ -4687,7 +4729,7 @@ var DropdownMenuCheckboxItem = React23__namespace.forwardRef(({ className, child
|
|
|
4687
4729
|
}
|
|
4688
4730
|
));
|
|
4689
4731
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
4690
|
-
var DropdownMenuRadioItem =
|
|
4732
|
+
var DropdownMenuRadioItem = React12__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4691
4733
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
4692
4734
|
{
|
|
4693
4735
|
ref,
|
|
@@ -4703,7 +4745,7 @@ var DropdownMenuRadioItem = React23__namespace.forwardRef(({ className, children
|
|
|
4703
4745
|
}
|
|
4704
4746
|
));
|
|
4705
4747
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
4706
|
-
var DropdownMenuLabel =
|
|
4748
|
+
var DropdownMenuLabel = React12__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4707
4749
|
DropdownMenuPrimitive__namespace.Label,
|
|
4708
4750
|
{
|
|
4709
4751
|
ref,
|
|
@@ -4716,7 +4758,7 @@ var DropdownMenuLabel = React23__namespace.forwardRef(({ className, inset, ...pr
|
|
|
4716
4758
|
}
|
|
4717
4759
|
));
|
|
4718
4760
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
4719
|
-
var DropdownMenuSeparator =
|
|
4761
|
+
var DropdownMenuSeparator = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4720
4762
|
DropdownMenuPrimitive__namespace.Separator,
|
|
4721
4763
|
{
|
|
4722
4764
|
ref,
|
|
@@ -4805,7 +4847,7 @@ var progressIndicatorVariants = classVarianceAuthority.cva(
|
|
|
4805
4847
|
}
|
|
4806
4848
|
}
|
|
4807
4849
|
);
|
|
4808
|
-
var Progress =
|
|
4850
|
+
var Progress = React12__namespace.forwardRef(({
|
|
4809
4851
|
className,
|
|
4810
4852
|
value = 0,
|
|
4811
4853
|
variant,
|
|
@@ -4935,7 +4977,7 @@ var FileItem = ({
|
|
|
4935
4977
|
}
|
|
4936
4978
|
);
|
|
4937
4979
|
};
|
|
4938
|
-
var FileUpload =
|
|
4980
|
+
var FileUpload = React12__namespace.default.forwardRef(
|
|
4939
4981
|
({
|
|
4940
4982
|
accept = "*",
|
|
4941
4983
|
multiple = true,
|
|
@@ -4949,9 +4991,9 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
4949
4991
|
children,
|
|
4950
4992
|
...props
|
|
4951
4993
|
}, ref) => {
|
|
4952
|
-
const [uploadedFiles, setUploadedFiles] =
|
|
4953
|
-
const [isDragOver, setIsDragOver] =
|
|
4954
|
-
const [error, setError] =
|
|
4994
|
+
const [uploadedFiles, setUploadedFiles] = React12.useState([]);
|
|
4995
|
+
const [isDragOver, setIsDragOver] = React12.useState(false);
|
|
4996
|
+
const [error, setError] = React12.useState(null);
|
|
4955
4997
|
const validateFile = (file) => {
|
|
4956
4998
|
if (file.size > maxSize) {
|
|
4957
4999
|
return `File size exceeds ${formatFileSize(maxSize)}`;
|
|
@@ -4967,7 +5009,7 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
4967
5009
|
}
|
|
4968
5010
|
return null;
|
|
4969
5011
|
};
|
|
4970
|
-
const processFiles =
|
|
5012
|
+
const processFiles = React12.useCallback(async (files) => {
|
|
4971
5013
|
const fileArray = Array.from(files);
|
|
4972
5014
|
setError(null);
|
|
4973
5015
|
if (uploadedFiles.length + fileArray.length > maxFiles) {
|
|
@@ -5030,7 +5072,7 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
5030
5072
|
}
|
|
5031
5073
|
}
|
|
5032
5074
|
}, [uploadedFiles.length, maxFiles, maxSize, accept, onUpload]);
|
|
5033
|
-
const handleDrop =
|
|
5075
|
+
const handleDrop = React12.useCallback((e) => {
|
|
5034
5076
|
e.preventDefault();
|
|
5035
5077
|
setIsDragOver(false);
|
|
5036
5078
|
if (disabled)
|
|
@@ -5040,24 +5082,24 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
5040
5082
|
processFiles(files);
|
|
5041
5083
|
}
|
|
5042
5084
|
}, [processFiles, disabled]);
|
|
5043
|
-
const handleDragOver =
|
|
5085
|
+
const handleDragOver = React12.useCallback((e) => {
|
|
5044
5086
|
e.preventDefault();
|
|
5045
5087
|
if (!disabled) {
|
|
5046
5088
|
setIsDragOver(true);
|
|
5047
5089
|
}
|
|
5048
5090
|
}, [disabled]);
|
|
5049
|
-
const handleDragLeave =
|
|
5091
|
+
const handleDragLeave = React12.useCallback((e) => {
|
|
5050
5092
|
e.preventDefault();
|
|
5051
5093
|
setIsDragOver(false);
|
|
5052
5094
|
}, []);
|
|
5053
|
-
const handleFileSelect =
|
|
5095
|
+
const handleFileSelect = React12.useCallback((e) => {
|
|
5054
5096
|
const files = e.target.files;
|
|
5055
5097
|
if (files && files.length > 0) {
|
|
5056
5098
|
processFiles(files);
|
|
5057
5099
|
}
|
|
5058
5100
|
e.target.value = "";
|
|
5059
5101
|
}, [processFiles]);
|
|
5060
|
-
const removeFile =
|
|
5102
|
+
const removeFile = React12.useCallback((fileId) => {
|
|
5061
5103
|
setUploadedFiles((prev) => {
|
|
5062
5104
|
const fileToRemove = prev.find((f) => f.id === fileId);
|
|
5063
5105
|
if (fileToRemove?.preview) {
|
|
@@ -5158,7 +5200,7 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
5158
5200
|
}
|
|
5159
5201
|
);
|
|
5160
5202
|
FileUpload.displayName = "FileUpload";
|
|
5161
|
-
var GestureDrawer =
|
|
5203
|
+
var GestureDrawer = React12__namespace.default.forwardRef(
|
|
5162
5204
|
({
|
|
5163
5205
|
children,
|
|
5164
5206
|
isOpen,
|
|
@@ -5280,9 +5322,9 @@ function GitHubStars({
|
|
|
5280
5322
|
showWatchers = false,
|
|
5281
5323
|
repoUrl = "https://github.com/moonui/moonui"
|
|
5282
5324
|
}) {
|
|
5283
|
-
const [stats, setStats] =
|
|
5284
|
-
const [isLoading, setIsLoading] =
|
|
5285
|
-
|
|
5325
|
+
const [stats, setStats] = React12.useState(null);
|
|
5326
|
+
const [isLoading, setIsLoading] = React12.useState(true);
|
|
5327
|
+
React12.useEffect(() => {
|
|
5286
5328
|
const fetchStats = async () => {
|
|
5287
5329
|
try {
|
|
5288
5330
|
const response = await fetch("/api/github-stars");
|
|
@@ -5381,9 +5423,9 @@ function GitHubStarButton({
|
|
|
5381
5423
|
size = "md",
|
|
5382
5424
|
repoUrl = "https://github.com/moonui/moonui"
|
|
5383
5425
|
}) {
|
|
5384
|
-
const [stars, setStars] =
|
|
5385
|
-
const [isLoading, setIsLoading] =
|
|
5386
|
-
|
|
5426
|
+
const [stars, setStars] = React12.useState(null);
|
|
5427
|
+
const [isLoading, setIsLoading] = React12.useState(true);
|
|
5428
|
+
React12.useEffect(() => {
|
|
5387
5429
|
const fetchStats = async () => {
|
|
5388
5430
|
try {
|
|
5389
5431
|
const response = await fetch("/api/github-stars");
|
|
@@ -5429,7 +5471,7 @@ function GitHubStarButton({
|
|
|
5429
5471
|
}
|
|
5430
5472
|
);
|
|
5431
5473
|
}
|
|
5432
|
-
var InputOTP =
|
|
5474
|
+
var InputOTP = React12__namespace.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5433
5475
|
inputOtp.OTPInput,
|
|
5434
5476
|
{
|
|
5435
5477
|
ref,
|
|
@@ -5444,7 +5486,7 @@ var InputOTP = React23__namespace.forwardRef(({ className, containerClassName, .
|
|
|
5444
5486
|
}
|
|
5445
5487
|
));
|
|
5446
5488
|
InputOTP.displayName = "InputOTP";
|
|
5447
|
-
var InputOTPGroup =
|
|
5489
|
+
var InputOTPGroup = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
5448
5490
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
5449
5491
|
var inputOTPSlotVariants = classVarianceAuthority.cva(
|
|
5450
5492
|
[
|
|
@@ -5466,9 +5508,9 @@ var inputOTPSlotVariants = classVarianceAuthority.cva(
|
|
|
5466
5508
|
}
|
|
5467
5509
|
}
|
|
5468
5510
|
);
|
|
5469
|
-
var InputOTPSlot =
|
|
5511
|
+
var InputOTPSlot = React12__namespace.forwardRef(
|
|
5470
5512
|
({ index, className, ...props }, ref) => {
|
|
5471
|
-
const inputOTPContext =
|
|
5513
|
+
const inputOTPContext = React12__namespace.useContext(inputOtp.OTPInputContext);
|
|
5472
5514
|
const slot = inputOTPContext?.slots?.[index];
|
|
5473
5515
|
const char = slot?.char;
|
|
5474
5516
|
const hasFakeCaret = slot?.hasFakeCaret;
|
|
@@ -5490,7 +5532,7 @@ var InputOTPSlot = React23__namespace.forwardRef(
|
|
|
5490
5532
|
}
|
|
5491
5533
|
);
|
|
5492
5534
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
5493
|
-
var InputOTPSeparator =
|
|
5535
|
+
var InputOTPSeparator = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5494
5536
|
"div",
|
|
5495
5537
|
{
|
|
5496
5538
|
ref,
|
|
@@ -5508,8 +5550,8 @@ function LockedComponent({
|
|
|
5508
5550
|
showPreview = true,
|
|
5509
5551
|
previewDuration = 2e3
|
|
5510
5552
|
}) {
|
|
5511
|
-
const [isPreviewActive, setIsPreviewActive] =
|
|
5512
|
-
const [previewTimeout, setPreviewTimeout] =
|
|
5553
|
+
const [isPreviewActive, setIsPreviewActive] = React12.useState(false);
|
|
5554
|
+
const [previewTimeout, setPreviewTimeout] = React12.useState(null);
|
|
5513
5555
|
const handleMouseEnter = () => {
|
|
5514
5556
|
if (!showPreview)
|
|
5515
5557
|
return;
|
|
@@ -5606,13 +5648,13 @@ function ProComponentWrapper({
|
|
|
5606
5648
|
fallback,
|
|
5607
5649
|
requireCLI = true
|
|
5608
5650
|
}) {
|
|
5609
|
-
const [authState, setAuthState] =
|
|
5651
|
+
const [authState, setAuthState] = React12.useState({
|
|
5610
5652
|
isAuthenticated: false,
|
|
5611
5653
|
deviceValid: false,
|
|
5612
5654
|
hasProAccess: false,
|
|
5613
5655
|
loading: true
|
|
5614
5656
|
});
|
|
5615
|
-
|
|
5657
|
+
React12.useEffect(() => {
|
|
5616
5658
|
const isDevelopment2 = () => {
|
|
5617
5659
|
const checks = {
|
|
5618
5660
|
nodeEnv: process.env.NODE_ENV === "development",
|
|
@@ -5789,7 +5831,7 @@ function MoonLogo({
|
|
|
5789
5831
|
showText = true,
|
|
5790
5832
|
...props
|
|
5791
5833
|
}) {
|
|
5792
|
-
const logoId =
|
|
5834
|
+
const logoId = React12__namespace.useId();
|
|
5793
5835
|
const gradientId = `moon-gradient-${logoId}`;
|
|
5794
5836
|
const maskId = `moon-mask-${logoId}`;
|
|
5795
5837
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-2", className), children: [
|
|
@@ -5861,17 +5903,20 @@ function MoonLogoAnimated({
|
|
|
5861
5903
|
}
|
|
5862
5904
|
);
|
|
5863
5905
|
}
|
|
5864
|
-
var Pagination =
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5906
|
+
var Pagination = React12__namespace.forwardRef(
|
|
5907
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5908
|
+
"nav",
|
|
5909
|
+
{
|
|
5910
|
+
ref,
|
|
5911
|
+
role: "navigation",
|
|
5912
|
+
"aria-label": "pagination",
|
|
5913
|
+
className: cn("moonui-theme", "mx-auto flex w-full justify-center", className),
|
|
5914
|
+
...props
|
|
5915
|
+
}
|
|
5916
|
+
)
|
|
5872
5917
|
);
|
|
5873
5918
|
Pagination.displayName = "Pagination";
|
|
5874
|
-
var PaginationContent =
|
|
5919
|
+
var PaginationContent = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5875
5920
|
"ul",
|
|
5876
5921
|
{
|
|
5877
5922
|
ref,
|
|
@@ -5880,77 +5925,74 @@ var PaginationContent = React23__namespace.forwardRef(({ className, ...props },
|
|
|
5880
5925
|
}
|
|
5881
5926
|
));
|
|
5882
5927
|
PaginationContent.displayName = "PaginationContent";
|
|
5883
|
-
var PaginationItem =
|
|
5928
|
+
var PaginationItem = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
|
|
5884
5929
|
PaginationItem.displayName = "PaginationItem";
|
|
5885
|
-
var PaginationLink = (
|
|
5886
|
-
className,
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
...props
|
|
5902
|
-
}
|
|
5930
|
+
var PaginationLink = React12__namespace.forwardRef(
|
|
5931
|
+
({ className, isActive, size = "icon", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5932
|
+
"a",
|
|
5933
|
+
{
|
|
5934
|
+
ref,
|
|
5935
|
+
"aria-current": isActive ? "page" : void 0,
|
|
5936
|
+
className: cn(
|
|
5937
|
+
buttonVariants({
|
|
5938
|
+
variant: isActive ? "outline" : "ghost",
|
|
5939
|
+
size
|
|
5940
|
+
}),
|
|
5941
|
+
className
|
|
5942
|
+
),
|
|
5943
|
+
...props
|
|
5944
|
+
}
|
|
5945
|
+
)
|
|
5903
5946
|
);
|
|
5904
5947
|
PaginationLink.displayName = "PaginationLink";
|
|
5905
|
-
var
|
|
5906
|
-
|
|
5907
|
-
...props
|
|
5908
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5948
|
+
var paginationLabelClass = "hidden sm:inline";
|
|
5949
|
+
var PaginationPrevious = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5909
5950
|
PaginationLink,
|
|
5910
5951
|
{
|
|
5952
|
+
ref,
|
|
5911
5953
|
"aria-label": "Go to previous page",
|
|
5912
5954
|
size: "md",
|
|
5913
5955
|
className: cn("moonui-theme", "gap-1 pl-2.5", className),
|
|
5914
5956
|
...props,
|
|
5915
5957
|
children: [
|
|
5916
5958
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" }),
|
|
5917
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Previous" })
|
|
5959
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: paginationLabelClass, children: "Previous" })
|
|
5918
5960
|
]
|
|
5919
5961
|
}
|
|
5920
|
-
);
|
|
5962
|
+
));
|
|
5921
5963
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
5922
|
-
var PaginationNext = ({
|
|
5923
|
-
className,
|
|
5924
|
-
...props
|
|
5925
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5964
|
+
var PaginationNext = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5926
5965
|
PaginationLink,
|
|
5927
5966
|
{
|
|
5967
|
+
ref,
|
|
5928
5968
|
"aria-label": "Go to next page",
|
|
5929
5969
|
size: "md",
|
|
5930
5970
|
className: cn("moonui-theme", "gap-1 pr-2.5", className),
|
|
5931
5971
|
...props,
|
|
5932
5972
|
children: [
|
|
5933
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Next" }),
|
|
5973
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: paginationLabelClass, children: "Next" }),
|
|
5934
5974
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" })
|
|
5935
5975
|
]
|
|
5936
5976
|
}
|
|
5937
|
-
);
|
|
5977
|
+
));
|
|
5938
5978
|
PaginationNext.displayName = "PaginationNext";
|
|
5939
|
-
var PaginationEllipsis = ({
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5979
|
+
var PaginationEllipsis = React12__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
5980
|
+
// #315: `aria-hidden` ESKİDEN BU ELEMANDAYDI → içindeki `sr-only` "More pages" metni
|
|
5981
|
+
// erişilebilirlik ağacından düşüyor, hiç duyurulmuyordu. Gizleme artık yalnız dekoratif
|
|
5982
|
+
// ikonda. (breadcrumb.tsx'te birebir aynı çakışma vardı — aynı PR'da düzeltildi.)
|
|
5983
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5984
|
+
"span",
|
|
5985
|
+
{
|
|
5986
|
+
ref,
|
|
5987
|
+
className: cn("moonui-theme", "flex h-9 w-9 items-center justify-center", className),
|
|
5988
|
+
...props,
|
|
5989
|
+
children: [
|
|
5990
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "h-4 w-4" }) }),
|
|
5991
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
|
|
5992
|
+
]
|
|
5993
|
+
}
|
|
5994
|
+
)
|
|
5995
|
+
));
|
|
5954
5996
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
5955
5997
|
var Select = SelectPrimitive__namespace.Root;
|
|
5956
5998
|
Select.displayName = "Select";
|
|
@@ -5988,7 +6030,7 @@ var selectTriggerVariants = classVarianceAuthority.cva(
|
|
|
5988
6030
|
}
|
|
5989
6031
|
}
|
|
5990
6032
|
);
|
|
5991
|
-
var SelectTrigger =
|
|
6033
|
+
var SelectTrigger = React12__namespace.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5992
6034
|
SelectPrimitive__namespace.Trigger,
|
|
5993
6035
|
{
|
|
5994
6036
|
ref,
|
|
@@ -6019,7 +6061,7 @@ var SelectTrigger = React23__namespace.forwardRef(({ className, children, varian
|
|
|
6019
6061
|
}
|
|
6020
6062
|
));
|
|
6021
6063
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
6022
|
-
var SelectScrollUpButton =
|
|
6064
|
+
var SelectScrollUpButton = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6023
6065
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
6024
6066
|
{
|
|
6025
6067
|
ref,
|
|
@@ -6032,7 +6074,7 @@ var SelectScrollUpButton = React23__namespace.forwardRef(({ className, ...props
|
|
|
6032
6074
|
}
|
|
6033
6075
|
));
|
|
6034
6076
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
6035
|
-
var SelectScrollDownButton =
|
|
6077
|
+
var SelectScrollDownButton = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6036
6078
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
6037
6079
|
{
|
|
6038
6080
|
ref,
|
|
@@ -6045,7 +6087,7 @@ var SelectScrollDownButton = React23__namespace.forwardRef(({ className, ...prop
|
|
|
6045
6087
|
}
|
|
6046
6088
|
));
|
|
6047
6089
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
6048
|
-
var SelectContent =
|
|
6090
|
+
var SelectContent = React12__namespace.forwardRef(({ className, children, position = "popper", side = "bottom", sideOffset = 4, align = "start", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6049
6091
|
SelectPrimitive__namespace.Content,
|
|
6050
6092
|
{
|
|
6051
6093
|
ref,
|
|
@@ -6086,7 +6128,7 @@ var SelectContent = React23__namespace.forwardRef(({ className, children, positi
|
|
|
6086
6128
|
}
|
|
6087
6129
|
) }));
|
|
6088
6130
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
6089
|
-
var SelectLabel =
|
|
6131
|
+
var SelectLabel = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6090
6132
|
SelectPrimitive__namespace.Label,
|
|
6091
6133
|
{
|
|
6092
6134
|
ref,
|
|
@@ -6095,7 +6137,7 @@ var SelectLabel = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
6095
6137
|
}
|
|
6096
6138
|
));
|
|
6097
6139
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
6098
|
-
var SelectItem =
|
|
6140
|
+
var SelectItem = React12__namespace.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6099
6141
|
SelectPrimitive__namespace.Item,
|
|
6100
6142
|
{
|
|
6101
6143
|
ref,
|
|
@@ -6125,7 +6167,7 @@ var SelectItem = React23__namespace.forwardRef(({ className, children, variant =
|
|
|
6125
6167
|
}
|
|
6126
6168
|
));
|
|
6127
6169
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
6128
|
-
var SelectSeparator =
|
|
6170
|
+
var SelectSeparator = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6129
6171
|
SelectPrimitive__namespace.Separator,
|
|
6130
6172
|
{
|
|
6131
6173
|
ref,
|
|
@@ -6207,7 +6249,7 @@ var getMaxLength = (countryCode) => {
|
|
|
6207
6249
|
return 15;
|
|
6208
6250
|
}
|
|
6209
6251
|
};
|
|
6210
|
-
var PhoneInput =
|
|
6252
|
+
var PhoneInput = React12__namespace.forwardRef(
|
|
6211
6253
|
({
|
|
6212
6254
|
className,
|
|
6213
6255
|
value = "",
|
|
@@ -6219,8 +6261,8 @@ var PhoneInput = React23__namespace.forwardRef(
|
|
|
6219
6261
|
size,
|
|
6220
6262
|
...props
|
|
6221
6263
|
}, ref) => {
|
|
6222
|
-
const [countryCode, setCountryCode] =
|
|
6223
|
-
const [phoneNumber, setPhoneNumber] =
|
|
6264
|
+
const [countryCode, setCountryCode] = React12__namespace.useState(defaultCountry);
|
|
6265
|
+
const [phoneNumber, setPhoneNumber] = React12__namespace.useState(value);
|
|
6224
6266
|
const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
|
|
6225
6267
|
const handlePhoneChange = (e) => {
|
|
6226
6268
|
const rawValue = e.target.value.replace(/\D/g, "");
|
|
@@ -6291,15 +6333,15 @@ var radioGroupItemVariants = classVarianceAuthority.cva(
|
|
|
6291
6333
|
}
|
|
6292
6334
|
}
|
|
6293
6335
|
);
|
|
6294
|
-
var RadioGroupContext =
|
|
6295
|
-
var RadioGroup2 =
|
|
6336
|
+
var RadioGroupContext = React12__namespace.createContext({});
|
|
6337
|
+
var RadioGroup2 = React12__namespace.forwardRef(
|
|
6296
6338
|
({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
|
|
6297
|
-
const [internalValue, setInternalValue] =
|
|
6339
|
+
const [internalValue, setInternalValue] = React12__namespace.useState(
|
|
6298
6340
|
defaultValue
|
|
6299
6341
|
);
|
|
6300
6342
|
const isControlled = value !== void 0;
|
|
6301
6343
|
const currentValue = isControlled ? value : internalValue;
|
|
6302
|
-
const handleValueChange =
|
|
6344
|
+
const handleValueChange = React12__namespace.useCallback(
|
|
6303
6345
|
(next) => {
|
|
6304
6346
|
if (!isControlled) {
|
|
6305
6347
|
setInternalValue(next);
|
|
@@ -6331,9 +6373,9 @@ var RadioGroup2 = React23__namespace.forwardRef(
|
|
|
6331
6373
|
}
|
|
6332
6374
|
);
|
|
6333
6375
|
RadioGroup2.displayName = "RadioGroup";
|
|
6334
|
-
var RadioGroupItem =
|
|
6335
|
-
const radioGroup =
|
|
6336
|
-
const generatedId =
|
|
6376
|
+
var RadioGroupItem = React12__namespace.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
|
|
6377
|
+
const radioGroup = React12__namespace.useContext(RadioGroupContext);
|
|
6378
|
+
const generatedId = React12__namespace.useId();
|
|
6337
6379
|
const radioId = id || generatedId;
|
|
6338
6380
|
const isChecked = radioGroup.value === value;
|
|
6339
6381
|
const handleChange = (e) => {
|
|
@@ -6386,7 +6428,7 @@ var RadioGroupItem = React23__namespace.forwardRef(({ className, variant, size,
|
|
|
6386
6428
|
] });
|
|
6387
6429
|
});
|
|
6388
6430
|
RadioGroupItem.displayName = "RadioGroupItem";
|
|
6389
|
-
var RadioLabel =
|
|
6431
|
+
var RadioLabel = React12__namespace.forwardRef(
|
|
6390
6432
|
({ className, htmlFor, children, disabled = false, ...props }, ref) => {
|
|
6391
6433
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6392
6434
|
"label",
|
|
@@ -6405,13 +6447,13 @@ var RadioLabel = React23__namespace.forwardRef(
|
|
|
6405
6447
|
}
|
|
6406
6448
|
);
|
|
6407
6449
|
RadioLabel.displayName = "RadioLabel";
|
|
6408
|
-
var RadioItemWithLabel =
|
|
6450
|
+
var RadioItemWithLabel = React12__namespace.forwardRef(({
|
|
6409
6451
|
id,
|
|
6410
6452
|
label,
|
|
6411
6453
|
labelClassName,
|
|
6412
6454
|
...radioProps
|
|
6413
6455
|
}, ref) => {
|
|
6414
|
-
const generatedId =
|
|
6456
|
+
const generatedId = React12__namespace.useId();
|
|
6415
6457
|
const radioId = id || generatedId;
|
|
6416
6458
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
|
|
6417
6459
|
/* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
|
|
@@ -6488,21 +6530,28 @@ function RichTextEditor({
|
|
|
6488
6530
|
)
|
|
6489
6531
|
] });
|
|
6490
6532
|
}
|
|
6491
|
-
var ScrollArea =
|
|
6533
|
+
var ScrollArea = React12__namespace.forwardRef(({ className, children, focusable = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6492
6534
|
ScrollAreaPrimitive__namespace.Root,
|
|
6493
6535
|
{
|
|
6494
6536
|
ref,
|
|
6495
6537
|
className: cn("relative overflow-hidden", className),
|
|
6496
6538
|
...props,
|
|
6497
6539
|
children: [
|
|
6498
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6540
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6541
|
+
ScrollAreaPrimitive__namespace.Viewport,
|
|
6542
|
+
{
|
|
6543
|
+
tabIndex: focusable ? 0 : void 0,
|
|
6544
|
+
className: "h-full w-full rounded-[inherit]",
|
|
6545
|
+
children
|
|
6546
|
+
}
|
|
6547
|
+
),
|
|
6499
6548
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
|
|
6500
6549
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
|
|
6501
6550
|
]
|
|
6502
6551
|
}
|
|
6503
6552
|
));
|
|
6504
6553
|
ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
|
|
6505
|
-
var ScrollBar =
|
|
6554
|
+
var ScrollBar = React12__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6506
6555
|
ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
|
|
6507
6556
|
{
|
|
6508
6557
|
ref,
|
|
@@ -6556,7 +6605,7 @@ var defaultTransition = {
|
|
|
6556
6605
|
ease: [0.25, 0.46, 0.45, 0.94]
|
|
6557
6606
|
// Custom cubic-bezier for smooth motion
|
|
6558
6607
|
};
|
|
6559
|
-
var ScrollReveal =
|
|
6608
|
+
var ScrollReveal = React12__namespace.forwardRef(
|
|
6560
6609
|
({
|
|
6561
6610
|
children,
|
|
6562
6611
|
direction = "up",
|
|
@@ -6577,17 +6626,17 @@ var ScrollReveal = React23__namespace.forwardRef(
|
|
|
6577
6626
|
viewport
|
|
6578
6627
|
}, ref) => {
|
|
6579
6628
|
const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
|
|
6580
|
-
const animationVariants =
|
|
6629
|
+
const animationVariants = React12__namespace.useMemo(() => {
|
|
6581
6630
|
if (variants)
|
|
6582
6631
|
return variants;
|
|
6583
6632
|
return createDefaultVariants(direction, distance);
|
|
6584
6633
|
}, [direction, distance, variants]);
|
|
6585
|
-
const transition =
|
|
6634
|
+
const transition = React12__namespace.useMemo(() => ({
|
|
6586
6635
|
...defaultTransition,
|
|
6587
6636
|
duration,
|
|
6588
6637
|
delay: delay + stagger
|
|
6589
6638
|
}), [duration, delay, stagger]);
|
|
6590
|
-
const viewportConfig =
|
|
6639
|
+
const viewportConfig = React12__namespace.useMemo(() => ({
|
|
6591
6640
|
once: shouldTriggerOnce,
|
|
6592
6641
|
amount: threshold,
|
|
6593
6642
|
...viewport
|
|
@@ -6622,7 +6671,7 @@ var ScrollReveal = React23__namespace.forwardRef(
|
|
|
6622
6671
|
}
|
|
6623
6672
|
);
|
|
6624
6673
|
ScrollReveal.displayName = "ScrollReveal";
|
|
6625
|
-
var ScrollRevealContainer =
|
|
6674
|
+
var ScrollRevealContainer = React12__namespace.forwardRef(
|
|
6626
6675
|
({
|
|
6627
6676
|
children,
|
|
6628
6677
|
stagger = 0.1,
|
|
@@ -6635,7 +6684,7 @@ var ScrollRevealContainer = React23__namespace.forwardRef(
|
|
|
6635
6684
|
viewport
|
|
6636
6685
|
}, ref) => {
|
|
6637
6686
|
const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
|
|
6638
|
-
const viewportConfig =
|
|
6687
|
+
const viewportConfig = React12__namespace.useMemo(() => ({
|
|
6639
6688
|
once: shouldTriggerOnce,
|
|
6640
6689
|
amount: threshold,
|
|
6641
6690
|
...viewport
|
|
@@ -6666,7 +6715,7 @@ var ScrollRevealContainer = React23__namespace.forwardRef(
|
|
|
6666
6715
|
}
|
|
6667
6716
|
);
|
|
6668
6717
|
ScrollRevealContainer.displayName = "ScrollRevealContainer";
|
|
6669
|
-
var ScrollRevealItem =
|
|
6718
|
+
var ScrollRevealItem = React12__namespace.forwardRef(
|
|
6670
6719
|
({
|
|
6671
6720
|
children,
|
|
6672
6721
|
direction = "up",
|
|
@@ -6677,12 +6726,12 @@ var ScrollRevealItem = React23__namespace.forwardRef(
|
|
|
6677
6726
|
style,
|
|
6678
6727
|
id
|
|
6679
6728
|
}, ref) => {
|
|
6680
|
-
const animationVariants =
|
|
6729
|
+
const animationVariants = React12__namespace.useMemo(() => {
|
|
6681
6730
|
if (variants)
|
|
6682
6731
|
return variants;
|
|
6683
6732
|
return createDefaultVariants(direction, distance);
|
|
6684
6733
|
}, [direction, distance, variants]);
|
|
6685
|
-
const transition =
|
|
6734
|
+
const transition = React12__namespace.useMemo(() => ({
|
|
6686
6735
|
...defaultTransition,
|
|
6687
6736
|
duration
|
|
6688
6737
|
}), [duration]);
|
|
@@ -6798,7 +6847,7 @@ var separatorVariants = classVarianceAuthority.cva(
|
|
|
6798
6847
|
}
|
|
6799
6848
|
}
|
|
6800
6849
|
);
|
|
6801
|
-
var Separator3 =
|
|
6850
|
+
var Separator3 = React12__namespace.forwardRef(
|
|
6802
6851
|
({
|
|
6803
6852
|
className,
|
|
6804
6853
|
orientation = "horizontal",
|
|
@@ -6841,7 +6890,7 @@ var toggleVariants = classVarianceAuthority.cva(
|
|
|
6841
6890
|
}
|
|
6842
6891
|
}
|
|
6843
6892
|
);
|
|
6844
|
-
var Toggle =
|
|
6893
|
+
var Toggle = React12__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6845
6894
|
TogglePrimitive__namespace.Root,
|
|
6846
6895
|
{
|
|
6847
6896
|
ref,
|
|
@@ -6877,7 +6926,7 @@ var tooltipVariants = classVarianceAuthority.cva(
|
|
|
6877
6926
|
);
|
|
6878
6927
|
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
6879
6928
|
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
6880
|
-
var TooltipArrow =
|
|
6929
|
+
var TooltipArrow = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6881
6930
|
TooltipPrimitive__namespace.Arrow,
|
|
6882
6931
|
{
|
|
6883
6932
|
ref,
|
|
@@ -6886,7 +6935,7 @@ var TooltipArrow = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
6886
6935
|
}
|
|
6887
6936
|
));
|
|
6888
6937
|
TooltipArrow.displayName = TooltipPrimitive__namespace.Arrow.displayName;
|
|
6889
|
-
var TooltipContent =
|
|
6938
|
+
var TooltipContent = React12__namespace.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6890
6939
|
TooltipPrimitive__namespace.Content,
|
|
6891
6940
|
{
|
|
6892
6941
|
ref,
|
|
@@ -6900,7 +6949,7 @@ var TooltipContent = React23__namespace.forwardRef(({ className, variant, size,
|
|
|
6900
6949
|
}
|
|
6901
6950
|
));
|
|
6902
6951
|
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
6903
|
-
var SimpleTooltip =
|
|
6952
|
+
var SimpleTooltip = React12__namespace.forwardRef(
|
|
6904
6953
|
({
|
|
6905
6954
|
children,
|
|
6906
6955
|
content,
|
|
@@ -6988,7 +7037,7 @@ var ColorPicker2 = ({ onColorSelect }) => {
|
|
|
6988
7037
|
color
|
|
6989
7038
|
)) });
|
|
6990
7039
|
};
|
|
6991
|
-
var SimpleEditor =
|
|
7040
|
+
var SimpleEditor = React12__namespace.default.forwardRef(
|
|
6992
7041
|
({
|
|
6993
7042
|
value = "",
|
|
6994
7043
|
onChange,
|
|
@@ -7001,13 +7050,13 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7001
7050
|
showPreview = true,
|
|
7002
7051
|
...props
|
|
7003
7052
|
}, ref) => {
|
|
7004
|
-
const [content, setContent] =
|
|
7005
|
-
const [isPreview, setIsPreview] =
|
|
7006
|
-
const [sourceContent, setSourceContent] =
|
|
7007
|
-
|
|
7008
|
-
const editorRef =
|
|
7009
|
-
const sourceRef =
|
|
7010
|
-
const [formatState, setFormatState] =
|
|
7053
|
+
const [content, setContent] = React12.useState(value);
|
|
7054
|
+
const [isPreview, setIsPreview] = React12.useState(false);
|
|
7055
|
+
const [sourceContent, setSourceContent] = React12.useState(value);
|
|
7056
|
+
React12.useState(null);
|
|
7057
|
+
const editorRef = React12__namespace.default.useRef(null);
|
|
7058
|
+
const sourceRef = React12__namespace.default.useRef(null);
|
|
7059
|
+
const [formatState, setFormatState] = React12.useState({
|
|
7011
7060
|
bold: false,
|
|
7012
7061
|
italic: false,
|
|
7013
7062
|
underline: false,
|
|
@@ -7021,18 +7070,18 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7021
7070
|
quote: false,
|
|
7022
7071
|
code: false
|
|
7023
7072
|
});
|
|
7024
|
-
const updateContent =
|
|
7073
|
+
const updateContent = React12.useCallback((newContent) => {
|
|
7025
7074
|
setContent(newContent);
|
|
7026
7075
|
onChange?.(newContent);
|
|
7027
7076
|
}, [onChange]);
|
|
7028
|
-
const saveSelection =
|
|
7077
|
+
const saveSelection = React12.useCallback(() => {
|
|
7029
7078
|
const selection2 = window.getSelection();
|
|
7030
7079
|
if (selection2 && selection2.rangeCount > 0) {
|
|
7031
7080
|
return selection2.getRangeAt(0);
|
|
7032
7081
|
}
|
|
7033
7082
|
return null;
|
|
7034
7083
|
}, []);
|
|
7035
|
-
|
|
7084
|
+
React12.useCallback((range) => {
|
|
7036
7085
|
if (!range)
|
|
7037
7086
|
return;
|
|
7038
7087
|
const selection2 = window.getSelection();
|
|
@@ -7041,7 +7090,7 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7041
7090
|
selection2.addRange(range);
|
|
7042
7091
|
}
|
|
7043
7092
|
}, []);
|
|
7044
|
-
const executeCommand =
|
|
7093
|
+
const executeCommand = React12.useCallback((command, value2) => {
|
|
7045
7094
|
if (disabled)
|
|
7046
7095
|
return;
|
|
7047
7096
|
if (editorRef.current) {
|
|
@@ -7074,11 +7123,11 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7074
7123
|
editorRef.current.focus();
|
|
7075
7124
|
}
|
|
7076
7125
|
}, [disabled, saveSelection, updateContent]);
|
|
7077
|
-
const handleInput =
|
|
7126
|
+
const handleInput = React12.useCallback((e) => {
|
|
7078
7127
|
const newContent = e.currentTarget.innerHTML;
|
|
7079
7128
|
updateContent(newContent);
|
|
7080
7129
|
}, [updateContent]);
|
|
7081
|
-
const handleKeyDown =
|
|
7130
|
+
const handleKeyDown = React12.useCallback((e) => {
|
|
7082
7131
|
if (e.ctrlKey || e.metaKey) {
|
|
7083
7132
|
switch (e.key) {
|
|
7084
7133
|
case "b":
|
|
@@ -7108,22 +7157,22 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7108
7157
|
executeCommand("insertHTML", " ");
|
|
7109
7158
|
}
|
|
7110
7159
|
}, [executeCommand]);
|
|
7111
|
-
const insertLink =
|
|
7160
|
+
const insertLink = React12.useCallback(() => {
|
|
7112
7161
|
const url = prompt("Enter URL:");
|
|
7113
7162
|
if (url) {
|
|
7114
7163
|
executeCommand("createLink", url);
|
|
7115
7164
|
}
|
|
7116
7165
|
}, [executeCommand]);
|
|
7117
|
-
const insertImage =
|
|
7166
|
+
const insertImage = React12.useCallback(() => {
|
|
7118
7167
|
const url = prompt("Enter image URL:");
|
|
7119
7168
|
if (url) {
|
|
7120
7169
|
executeCommand("insertImage", url);
|
|
7121
7170
|
}
|
|
7122
7171
|
}, [executeCommand]);
|
|
7123
|
-
const formatHeading =
|
|
7172
|
+
const formatHeading = React12.useCallback((level) => {
|
|
7124
7173
|
executeCommand("formatBlock", `<h${level}>`);
|
|
7125
7174
|
}, [executeCommand]);
|
|
7126
|
-
const setTextColor =
|
|
7175
|
+
const setTextColor = React12.useCallback((color) => {
|
|
7127
7176
|
const selection2 = window.getSelection();
|
|
7128
7177
|
if (selection2 && selection2.rangeCount > 0) {
|
|
7129
7178
|
const range = selection2.getRangeAt(0);
|
|
@@ -7140,12 +7189,12 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7140
7189
|
}
|
|
7141
7190
|
}
|
|
7142
7191
|
}, [executeCommand, updateContent]);
|
|
7143
|
-
|
|
7192
|
+
React12__namespace.default.useEffect(() => {
|
|
7144
7193
|
if (editorRef.current && content && content !== editorRef.current.innerHTML) {
|
|
7145
7194
|
editorRef.current.innerHTML = content;
|
|
7146
7195
|
}
|
|
7147
7196
|
}, [content]);
|
|
7148
|
-
|
|
7197
|
+
React12__namespace.default.useEffect(() => {
|
|
7149
7198
|
if (value !== void 0 && value !== content) {
|
|
7150
7199
|
setContent(value);
|
|
7151
7200
|
setSourceContent(value);
|
|
@@ -7507,8 +7556,8 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7507
7556
|
);
|
|
7508
7557
|
SimpleEditor.displayName = "SimpleEditor";
|
|
7509
7558
|
var CharacterCount = ({ content }) => {
|
|
7510
|
-
const [count, setCount] =
|
|
7511
|
-
|
|
7559
|
+
const [count, setCount] = React12.useState(0);
|
|
7560
|
+
React12.useEffect(() => {
|
|
7512
7561
|
const getPlainText = (html) => {
|
|
7513
7562
|
const div = document.createElement("div");
|
|
7514
7563
|
div.innerHTML = html;
|
|
@@ -7555,7 +7604,7 @@ var skeletonVariants = classVarianceAuthority.cva(
|
|
|
7555
7604
|
}
|
|
7556
7605
|
}
|
|
7557
7606
|
);
|
|
7558
|
-
var Skeleton =
|
|
7607
|
+
var Skeleton = React12__namespace.forwardRef(
|
|
7559
7608
|
({
|
|
7560
7609
|
className,
|
|
7561
7610
|
variant,
|
|
@@ -7621,6 +7670,7 @@ var Skeleton = React23__namespace.forwardRef(
|
|
|
7621
7670
|
SkeletonElement,
|
|
7622
7671
|
{
|
|
7623
7672
|
ref,
|
|
7673
|
+
"aria-hidden": "true",
|
|
7624
7674
|
className: cn(
|
|
7625
7675
|
"moonui-theme",
|
|
7626
7676
|
skeletonVariants({ variant, size, shape, animation }),
|
|
@@ -7639,7 +7689,7 @@ var Skeleton = React23__namespace.forwardRef(
|
|
|
7639
7689
|
}
|
|
7640
7690
|
);
|
|
7641
7691
|
Skeleton.displayName = "Skeleton";
|
|
7642
|
-
var SkeletonText =
|
|
7692
|
+
var SkeletonText = React12__namespace.forwardRef(
|
|
7643
7693
|
({
|
|
7644
7694
|
className,
|
|
7645
7695
|
lines = 3,
|
|
@@ -7680,7 +7730,7 @@ var SkeletonText = React23__namespace.forwardRef(
|
|
|
7680
7730
|
}
|
|
7681
7731
|
);
|
|
7682
7732
|
SkeletonText.displayName = "SkeletonText";
|
|
7683
|
-
var SkeletonAvatar =
|
|
7733
|
+
var SkeletonAvatar = React12__namespace.forwardRef(
|
|
7684
7734
|
({
|
|
7685
7735
|
className,
|
|
7686
7736
|
size = "2.5rem",
|
|
@@ -7706,7 +7756,7 @@ var SkeletonAvatar = React23__namespace.forwardRef(
|
|
|
7706
7756
|
}
|
|
7707
7757
|
);
|
|
7708
7758
|
SkeletonAvatar.displayName = "SkeletonAvatar";
|
|
7709
|
-
var SkeletonCard =
|
|
7759
|
+
var SkeletonCard = React12__namespace.forwardRef(
|
|
7710
7760
|
({
|
|
7711
7761
|
className,
|
|
7712
7762
|
showHeader = true,
|
|
@@ -7780,11 +7830,11 @@ var SkeletonCard = React23__namespace.forwardRef(
|
|
|
7780
7830
|
}
|
|
7781
7831
|
);
|
|
7782
7832
|
SkeletonCard.displayName = "SkeletonCard";
|
|
7783
|
-
var SwipeableCard =
|
|
7833
|
+
var SwipeableCard = React12__namespace.forwardRef(
|
|
7784
7834
|
({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
|
|
7785
|
-
const [startX, setStartX] =
|
|
7786
|
-
const [currentX, setCurrentX] =
|
|
7787
|
-
const [isSwiping, setIsSwiping] =
|
|
7835
|
+
const [startX, setStartX] = React12__namespace.useState(0);
|
|
7836
|
+
const [currentX, setCurrentX] = React12__namespace.useState(0);
|
|
7837
|
+
const [isSwiping, setIsSwiping] = React12__namespace.useState(false);
|
|
7788
7838
|
const handleTouchStart = (e) => {
|
|
7789
7839
|
if (disabled)
|
|
7790
7840
|
return;
|
|
@@ -7879,7 +7929,7 @@ var switchThumbVariants = classVarianceAuthority.cva(
|
|
|
7879
7929
|
}
|
|
7880
7930
|
}
|
|
7881
7931
|
);
|
|
7882
|
-
var Switch =
|
|
7932
|
+
var Switch = React12__namespace.forwardRef(({
|
|
7883
7933
|
className,
|
|
7884
7934
|
size,
|
|
7885
7935
|
variant,
|
|
@@ -7890,7 +7940,7 @@ var Switch = React23__namespace.forwardRef(({
|
|
|
7890
7940
|
"aria-describedby": ariaDescribedBy,
|
|
7891
7941
|
...props
|
|
7892
7942
|
}, ref) => {
|
|
7893
|
-
const reactId =
|
|
7943
|
+
const reactId = React12__namespace.useId();
|
|
7894
7944
|
const descriptionId = description ? `${reactId}-description` : void 0;
|
|
7895
7945
|
const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
|
|
7896
7946
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
|
|
@@ -7918,7 +7968,7 @@ var Switch = React23__namespace.forwardRef(({
|
|
|
7918
7968
|
] });
|
|
7919
7969
|
});
|
|
7920
7970
|
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
7921
|
-
var TagsInput =
|
|
7971
|
+
var TagsInput = React12__namespace.forwardRef(
|
|
7922
7972
|
({
|
|
7923
7973
|
value = [],
|
|
7924
7974
|
onChange,
|
|
@@ -7931,12 +7981,12 @@ var TagsInput = React23__namespace.forwardRef(
|
|
|
7931
7981
|
disabled,
|
|
7932
7982
|
...props
|
|
7933
7983
|
}, ref) => {
|
|
7934
|
-
const [inputValue, setInputValue] =
|
|
7935
|
-
const [error, setError] =
|
|
7936
|
-
const innerInputRef =
|
|
7937
|
-
|
|
7938
|
-
const tagButtonRefs =
|
|
7939
|
-
const errorId =
|
|
7984
|
+
const [inputValue, setInputValue] = React12__namespace.useState("");
|
|
7985
|
+
const [error, setError] = React12__namespace.useState("");
|
|
7986
|
+
const innerInputRef = React12__namespace.useRef(null);
|
|
7987
|
+
React12__namespace.useImperativeHandle(ref, () => innerInputRef.current);
|
|
7988
|
+
const tagButtonRefs = React12__namespace.useRef([]);
|
|
7989
|
+
const errorId = React12__namespace.useId();
|
|
7940
7990
|
const focusTag = (index) => {
|
|
7941
7991
|
if (value.length === 0)
|
|
7942
7992
|
return;
|
|
@@ -8113,7 +8163,7 @@ var textareaVariants = classVarianceAuthority.cva(
|
|
|
8113
8163
|
}
|
|
8114
8164
|
}
|
|
8115
8165
|
);
|
|
8116
|
-
var Textarea =
|
|
8166
|
+
var Textarea = React12__namespace.forwardRef(
|
|
8117
8167
|
({
|
|
8118
8168
|
className,
|
|
8119
8169
|
wrapperClassName,
|
|
@@ -8133,12 +8183,12 @@ var Textarea = React23__namespace.forwardRef(
|
|
|
8133
8183
|
onChange,
|
|
8134
8184
|
...props
|
|
8135
8185
|
}, ref) => {
|
|
8136
|
-
const reactId =
|
|
8186
|
+
const reactId = React12__namespace.useId();
|
|
8137
8187
|
const fieldId = props.id || reactId;
|
|
8138
|
-
const textareaRef =
|
|
8139
|
-
const [internalValue, setInternalValue] =
|
|
8140
|
-
|
|
8141
|
-
const adjustHeight =
|
|
8188
|
+
const textareaRef = React12__namespace.useRef(null);
|
|
8189
|
+
const [internalValue, setInternalValue] = React12__namespace.useState(value || defaultValue || "");
|
|
8190
|
+
React12__namespace.useImperativeHandle(ref, () => textareaRef.current);
|
|
8191
|
+
const adjustHeight = React12__namespace.useCallback(() => {
|
|
8142
8192
|
const textarea = textareaRef.current;
|
|
8143
8193
|
if (!textarea || !autoResize)
|
|
8144
8194
|
return;
|
|
@@ -8152,10 +8202,10 @@ var Textarea = React23__namespace.forwardRef(
|
|
|
8152
8202
|
textarea.style.overflowY = "hidden";
|
|
8153
8203
|
}
|
|
8154
8204
|
}, [autoResize, maxHeight]);
|
|
8155
|
-
|
|
8205
|
+
React12__namespace.useEffect(() => {
|
|
8156
8206
|
adjustHeight();
|
|
8157
8207
|
}, [internalValue, adjustHeight]);
|
|
8158
|
-
|
|
8208
|
+
React12__namespace.useEffect(() => {
|
|
8159
8209
|
if (value !== void 0) {
|
|
8160
8210
|
setInternalValue(value);
|
|
8161
8211
|
}
|
|
@@ -8221,7 +8271,7 @@ var Textarea = React23__namespace.forwardRef(
|
|
|
8221
8271
|
);
|
|
8222
8272
|
Textarea.displayName = "Textarea";
|
|
8223
8273
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
8224
|
-
var ToastViewport =
|
|
8274
|
+
var ToastViewport = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8225
8275
|
ToastPrimitives__namespace.Viewport,
|
|
8226
8276
|
{
|
|
8227
8277
|
ref,
|
|
@@ -8250,7 +8300,7 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
8250
8300
|
}
|
|
8251
8301
|
}
|
|
8252
8302
|
);
|
|
8253
|
-
var Toast =
|
|
8303
|
+
var Toast = React12__namespace.forwardRef(({ className, variant, ...props }, ref) => {
|
|
8254
8304
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8255
8305
|
ToastPrimitives__namespace.Root,
|
|
8256
8306
|
{
|
|
@@ -8261,7 +8311,7 @@ var Toast = React23__namespace.forwardRef(({ className, variant, ...props }, ref
|
|
|
8261
8311
|
);
|
|
8262
8312
|
});
|
|
8263
8313
|
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
8264
|
-
var ToastAction =
|
|
8314
|
+
var ToastAction = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8265
8315
|
ToastPrimitives__namespace.Action,
|
|
8266
8316
|
{
|
|
8267
8317
|
ref,
|
|
@@ -8273,7 +8323,7 @@ var ToastAction = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
8273
8323
|
}
|
|
8274
8324
|
));
|
|
8275
8325
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
8276
|
-
var ToastClose =
|
|
8326
|
+
var ToastClose = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8277
8327
|
ToastPrimitives__namespace.Close,
|
|
8278
8328
|
{
|
|
8279
8329
|
ref,
|
|
@@ -8290,7 +8340,7 @@ var ToastClose = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
8290
8340
|
}
|
|
8291
8341
|
));
|
|
8292
8342
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
8293
|
-
var ToastTitle =
|
|
8343
|
+
var ToastTitle = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8294
8344
|
ToastPrimitives__namespace.Title,
|
|
8295
8345
|
{
|
|
8296
8346
|
ref,
|
|
@@ -8299,7 +8349,7 @@ var ToastTitle = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
8299
8349
|
}
|
|
8300
8350
|
));
|
|
8301
8351
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
8302
|
-
var ToastDescription =
|
|
8352
|
+
var ToastDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8303
8353
|
ToastPrimitives__namespace.Description,
|
|
8304
8354
|
{
|
|
8305
8355
|
ref,
|
|
@@ -8407,8 +8457,8 @@ function toast({ ...props }) {
|
|
|
8407
8457
|
};
|
|
8408
8458
|
}
|
|
8409
8459
|
function useToast() {
|
|
8410
|
-
const [state, setState] =
|
|
8411
|
-
|
|
8460
|
+
const [state, setState] = React12__namespace.useState(memoryState);
|
|
8461
|
+
React12__namespace.useEffect(() => {
|
|
8412
8462
|
listeners.push(setState);
|
|
8413
8463
|
return () => {
|
|
8414
8464
|
const index = listeners.indexOf(setState);
|
|
@@ -8461,7 +8511,7 @@ var kbdVariants = classVarianceAuthority.cva(
|
|
|
8461
8511
|
}
|
|
8462
8512
|
}
|
|
8463
8513
|
);
|
|
8464
|
-
var Kbd =
|
|
8514
|
+
var Kbd = React12__namespace.forwardRef(
|
|
8465
8515
|
({ className, size, children, ...props }, ref) => {
|
|
8466
8516
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8467
8517
|
"kbd",
|
|
@@ -8498,7 +8548,7 @@ var iconSizeMap = {
|
|
|
8498
8548
|
md: "h-5 w-5",
|
|
8499
8549
|
lg: "h-6 w-6"
|
|
8500
8550
|
};
|
|
8501
|
-
var Rating =
|
|
8551
|
+
var Rating = React12__namespace.forwardRef(
|
|
8502
8552
|
({
|
|
8503
8553
|
className,
|
|
8504
8554
|
value,
|
|
@@ -8516,11 +8566,11 @@ var Rating = React23__namespace.forwardRef(
|
|
|
8516
8566
|
const iconSizeClass = iconSizeMap[resolvedSize];
|
|
8517
8567
|
const step = precision === "half" ? 0.5 : 1;
|
|
8518
8568
|
const isControlled = value !== void 0;
|
|
8519
|
-
const [internalValue, setInternalValue] =
|
|
8569
|
+
const [internalValue, setInternalValue] = React12__namespace.useState(defaultValue ?? 0);
|
|
8520
8570
|
const currentValue = isControlled ? value ?? 0 : internalValue;
|
|
8521
|
-
const [hoverValue, setHoverValue] =
|
|
8571
|
+
const [hoverValue, setHoverValue] = React12__namespace.useState(null);
|
|
8522
8572
|
const displayValue = hoverValue !== null ? hoverValue : currentValue;
|
|
8523
|
-
const commit =
|
|
8573
|
+
const commit = React12__namespace.useCallback(
|
|
8524
8574
|
(next) => {
|
|
8525
8575
|
if (readOnly)
|
|
8526
8576
|
return;
|
|
@@ -8530,7 +8580,7 @@ var Rating = React23__namespace.forwardRef(
|
|
|
8530
8580
|
},
|
|
8531
8581
|
[readOnly, isControlled, onValueChange]
|
|
8532
8582
|
);
|
|
8533
|
-
const handleKeyDown =
|
|
8583
|
+
const handleKeyDown = React12__namespace.useCallback(
|
|
8534
8584
|
(event) => {
|
|
8535
8585
|
if (readOnly)
|
|
8536
8586
|
return;
|
|
@@ -8559,9 +8609,9 @@ var Rating = React23__namespace.forwardRef(
|
|
|
8559
8609
|
[readOnly, max, currentValue, step, commit]
|
|
8560
8610
|
);
|
|
8561
8611
|
const renderIcon = (filled) => {
|
|
8562
|
-
if (
|
|
8612
|
+
if (React12__namespace.isValidElement(icon)) {
|
|
8563
8613
|
const element = icon;
|
|
8564
|
-
return
|
|
8614
|
+
return React12__namespace.cloneElement(element, {
|
|
8565
8615
|
className: cn(
|
|
8566
8616
|
iconSizeClass,
|
|
8567
8617
|
"shrink-0",
|
|
@@ -8695,7 +8745,7 @@ var dotSizeMap = {
|
|
|
8695
8745
|
lg: "h-2 w-2",
|
|
8696
8746
|
xl: "h-2.5 w-2.5"
|
|
8697
8747
|
};
|
|
8698
|
-
var Spinner =
|
|
8748
|
+
var Spinner = React12__namespace.forwardRef(
|
|
8699
8749
|
({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
|
|
8700
8750
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8701
8751
|
"div",
|
|
@@ -8774,15 +8824,15 @@ var buttonGroupVariants = classVarianceAuthority.cva(
|
|
|
8774
8824
|
}
|
|
8775
8825
|
}
|
|
8776
8826
|
);
|
|
8777
|
-
var ButtonGroup =
|
|
8827
|
+
var ButtonGroup = React12__namespace.forwardRef(
|
|
8778
8828
|
({ className, orientation, attached, size, variant, children, ...props }, ref) => {
|
|
8779
8829
|
const shouldPropagate = size !== void 0 || variant !== void 0;
|
|
8780
|
-
const enhancedChildren = shouldPropagate ?
|
|
8781
|
-
if (!
|
|
8830
|
+
const enhancedChildren = shouldPropagate ? React12__namespace.Children.map(children, (child) => {
|
|
8831
|
+
if (!React12__namespace.isValidElement(child) || child.type !== Button) {
|
|
8782
8832
|
return child;
|
|
8783
8833
|
}
|
|
8784
8834
|
const childProps = child.props;
|
|
8785
|
-
return
|
|
8835
|
+
return React12__namespace.cloneElement(child, {
|
|
8786
8836
|
size: childProps.size ?? size,
|
|
8787
8837
|
variant: childProps.variant ?? variant
|
|
8788
8838
|
});
|
|
@@ -8800,11 +8850,11 @@ var ButtonGroup = React23__namespace.forwardRef(
|
|
|
8800
8850
|
}
|
|
8801
8851
|
);
|
|
8802
8852
|
ButtonGroup.displayName = "ButtonGroup";
|
|
8803
|
-
var ToggleGroupContext =
|
|
8853
|
+
var ToggleGroupContext = React12__namespace.createContext({
|
|
8804
8854
|
size: "default",
|
|
8805
8855
|
variant: "default"
|
|
8806
8856
|
});
|
|
8807
|
-
var ToggleGroup =
|
|
8857
|
+
var ToggleGroup = React12__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8808
8858
|
ToggleGroupPrimitive__namespace.Root,
|
|
8809
8859
|
{
|
|
8810
8860
|
ref,
|
|
@@ -8821,8 +8871,8 @@ var ToggleGroup = React23__namespace.forwardRef(({ className, variant, size, chi
|
|
|
8821
8871
|
}
|
|
8822
8872
|
));
|
|
8823
8873
|
ToggleGroup.displayName = "ToggleGroup";
|
|
8824
|
-
var ToggleGroupItem =
|
|
8825
|
-
const context =
|
|
8874
|
+
var ToggleGroupItem = React12__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
8875
|
+
const context = React12__namespace.useContext(ToggleGroupContext);
|
|
8826
8876
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8827
8877
|
ToggleGroupPrimitive__namespace.Item,
|
|
8828
8878
|
{
|
|
@@ -9230,6 +9280,7 @@ exports.TooltipProvider = TooltipProvider;
|
|
|
9230
9280
|
exports.TooltipTrigger = TooltipTrigger;
|
|
9231
9281
|
exports.aspectRatioVariants = aspectRatioVariants;
|
|
9232
9282
|
exports.badgeVariants = badgeVariants;
|
|
9283
|
+
exports.breadcrumbVariants = breadcrumbVariants;
|
|
9233
9284
|
exports.buttonGroupVariants = buttonGroupVariants;
|
|
9234
9285
|
exports.buttonVariants = buttonVariants;
|
|
9235
9286
|
exports.carouselContentVariants = carouselContentVariants;
|
|
@@ -9260,6 +9311,8 @@ exports.separatorVariants = separatorVariants;
|
|
|
9260
9311
|
exports.skeletonVariants = skeletonVariants;
|
|
9261
9312
|
exports.spinnerVariants = spinnerVariants;
|
|
9262
9313
|
exports.switchVariants = switchVariants;
|
|
9314
|
+
exports.tabsListVariants = tabsListVariants;
|
|
9315
|
+
exports.tabsTriggerVariants = tabsTriggerVariants;
|
|
9263
9316
|
exports.toast = toast;
|
|
9264
9317
|
exports.toggleVariants = toggleVariants;
|
|
9265
9318
|
exports.tooltipVariants = tooltipVariants;
|