@moontra/moonui 6.8.0 → 6.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/index.global.js +1 -6
- package/dist/index.d.mts +44 -35
- package/dist/index.d.ts +44 -35
- package/dist/index.global.js +52 -365
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +421 -359
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +385 -323
- 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__/carousel.test.tsx +37 -0
- package/src/components/ui/__tests__/checkbox.test.tsx +3 -3
- package/src/components/ui/__tests__/collapsible.test.tsx +5 -5
- package/src/components/ui/__tests__/dialog.test.tsx +2 -2
- package/src/components/ui/__tests__/progress.test.tsx +4 -4
- package/src/components/ui/__tests__/quality-group-de.test.tsx +159 -0
- package/src/components/ui/__tests__/radio-group.test.tsx +4 -4
- package/src/components/ui/__tests__/size-scale-convention.test.ts +189 -0
- package/src/components/ui/__tests__/slider.test.tsx +4 -4
- package/src/components/ui/alert.tsx +5 -3
- package/src/components/ui/avatar.tsx +3 -2
- package/src/components/ui/breadcrumb.tsx +4 -2
- package/src/components/ui/card.tsx +4 -2
- package/src/components/ui/carousel.tsx +24 -0
- package/src/components/ui/checkbox.tsx +5 -3
- package/src/components/ui/collapsible.tsx +10 -6
- package/src/components/ui/color-picker.tsx +11 -5
- package/src/components/ui/command.tsx +29 -2
- package/src/components/ui/date-picker.tsx +4 -2
- package/src/components/ui/dialog.tsx +7 -5
- package/src/components/ui/popover-pro.tsx +5 -3
- package/src/components/ui/popover.tsx +4 -2
- package/src/components/ui/progress.tsx +6 -4
- package/src/components/ui/radio-group.tsx +5 -3
- package/src/components/ui/scroll-area.tsx +23 -3
- package/src/components/ui/skeleton.tsx +20 -3
- package/src/components/ui/slider.tsx +10 -6
- package/src/components/ui/table.tsx +4 -2
- package/src/components/ui/toggle-group.tsx +4 -1
- package/src/components/ui/toggle.tsx +4 -2
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');
|
|
@@ -53,7 +53,7 @@ function _interopNamespace(e) {
|
|
|
53
53
|
return Object.freeze(n);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var React12__namespace = /*#__PURE__*/_interopNamespace(React12);
|
|
57
57
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
58
58
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
59
59
|
var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
|
|
@@ -84,14 +84,14 @@ function readableText(node) {
|
|
|
84
84
|
if (Array.isArray(node)) {
|
|
85
85
|
return node.map(readableText).filter(Boolean).join(" ").trim();
|
|
86
86
|
}
|
|
87
|
-
if (
|
|
87
|
+
if (React12__namespace.isValidElement(node)) {
|
|
88
88
|
const props = node.props;
|
|
89
89
|
return readableText(props.children);
|
|
90
90
|
}
|
|
91
91
|
return "";
|
|
92
92
|
}
|
|
93
93
|
var Accordion = AccordionPrimitive__namespace.Root;
|
|
94
|
-
var AccordionItem =
|
|
94
|
+
var AccordionItem = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
95
95
|
AccordionPrimitive__namespace.Item,
|
|
96
96
|
{
|
|
97
97
|
ref,
|
|
@@ -100,7 +100,7 @@ var AccordionItem = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
100
100
|
}
|
|
101
101
|
));
|
|
102
102
|
AccordionItem.displayName = "AccordionItem";
|
|
103
|
-
var AccordionTrigger =
|
|
103
|
+
var AccordionTrigger = React12__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
104
104
|
AccordionPrimitive__namespace.Trigger,
|
|
105
105
|
{
|
|
106
106
|
ref,
|
|
@@ -118,7 +118,7 @@ var AccordionTrigger = React23__namespace.forwardRef(({ className, children, ...
|
|
|
118
118
|
}
|
|
119
119
|
) }));
|
|
120
120
|
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
121
|
-
var AccordionContent =
|
|
121
|
+
var AccordionContent = React12__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
122
122
|
AccordionPrimitive__namespace.Content,
|
|
123
123
|
{
|
|
124
124
|
ref,
|
|
@@ -149,8 +149,10 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
149
149
|
},
|
|
150
150
|
size: {
|
|
151
151
|
sm: "py-2 text-xs",
|
|
152
|
-
|
|
153
|
-
lg: "py-4 text-base"
|
|
152
|
+
md: "py-3 text-sm",
|
|
153
|
+
lg: "py-4 text-base",
|
|
154
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
155
|
+
default: "py-3 text-sm"
|
|
154
156
|
},
|
|
155
157
|
radius: {
|
|
156
158
|
none: "rounded-none",
|
|
@@ -165,13 +167,13 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
165
167
|
},
|
|
166
168
|
defaultVariants: {
|
|
167
169
|
variant: "default",
|
|
168
|
-
size: "
|
|
170
|
+
size: "md",
|
|
169
171
|
radius: "default",
|
|
170
172
|
withClose: false
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
175
|
);
|
|
174
|
-
var Alert =
|
|
176
|
+
var Alert = React12__namespace.forwardRef(
|
|
175
177
|
({
|
|
176
178
|
className,
|
|
177
179
|
variant = "default",
|
|
@@ -183,7 +185,7 @@ var Alert = React23__namespace.forwardRef(
|
|
|
183
185
|
children,
|
|
184
186
|
...props
|
|
185
187
|
}, ref) => {
|
|
186
|
-
const Icon2 =
|
|
188
|
+
const Icon2 = React12__namespace.useMemo(() => {
|
|
187
189
|
switch (variant) {
|
|
188
190
|
case "success":
|
|
189
191
|
return lucideReact.Check;
|
|
@@ -231,7 +233,7 @@ var Alert = React23__namespace.forwardRef(
|
|
|
231
233
|
}
|
|
232
234
|
);
|
|
233
235
|
Alert.displayName = "Alert";
|
|
234
|
-
var AlertTitle =
|
|
236
|
+
var AlertTitle = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
235
237
|
"h5",
|
|
236
238
|
{
|
|
237
239
|
ref,
|
|
@@ -244,7 +246,7 @@ var AlertTitle = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
244
246
|
}
|
|
245
247
|
));
|
|
246
248
|
AlertTitle.displayName = "AlertTitle";
|
|
247
|
-
var AlertDescription =
|
|
249
|
+
var AlertDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
248
250
|
"div",
|
|
249
251
|
{
|
|
250
252
|
ref,
|
|
@@ -286,7 +288,7 @@ var aspectRatioVariants = classVarianceAuthority.cva(
|
|
|
286
288
|
}
|
|
287
289
|
}
|
|
288
290
|
);
|
|
289
|
-
var AspectRatio =
|
|
291
|
+
var AspectRatio = React12__namespace.forwardRef(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
290
292
|
"div",
|
|
291
293
|
{
|
|
292
294
|
ref,
|
|
@@ -306,13 +308,14 @@ var avatarVariants = classVarianceAuthority.cva(
|
|
|
306
308
|
{
|
|
307
309
|
variants: {
|
|
308
310
|
size: {
|
|
309
|
-
default: "h-10 w-10",
|
|
310
311
|
xs: "h-6 w-6",
|
|
311
312
|
sm: "h-8 w-8",
|
|
312
313
|
md: "h-10 w-10",
|
|
313
314
|
lg: "h-12 w-12",
|
|
314
315
|
xl: "h-16 w-16",
|
|
315
|
-
"2xl": "h-20 w-20"
|
|
316
|
+
"2xl": "h-20 w-20",
|
|
317
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
318
|
+
default: "h-10 w-10"
|
|
316
319
|
},
|
|
317
320
|
radius: {
|
|
318
321
|
default: "rounded-full",
|
|
@@ -329,13 +332,13 @@ var avatarVariants = classVarianceAuthority.cva(
|
|
|
329
332
|
}
|
|
330
333
|
},
|
|
331
334
|
defaultVariants: {
|
|
332
|
-
size: "
|
|
335
|
+
size: "md",
|
|
333
336
|
radius: "default",
|
|
334
337
|
variant: "default"
|
|
335
338
|
}
|
|
336
339
|
}
|
|
337
340
|
);
|
|
338
|
-
var Avatar =
|
|
341
|
+
var Avatar = React12__namespace.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
339
342
|
AvatarPrimitive__namespace.Root,
|
|
340
343
|
{
|
|
341
344
|
ref,
|
|
@@ -344,7 +347,7 @@ var Avatar = React23__namespace.forwardRef(({ className, size, radius, variant,
|
|
|
344
347
|
}
|
|
345
348
|
));
|
|
346
349
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
347
|
-
var AvatarImage =
|
|
350
|
+
var AvatarImage = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
348
351
|
AvatarPrimitive__namespace.Image,
|
|
349
352
|
{
|
|
350
353
|
ref,
|
|
@@ -353,7 +356,7 @@ var AvatarImage = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
353
356
|
}
|
|
354
357
|
));
|
|
355
358
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
356
|
-
var AvatarFallback =
|
|
359
|
+
var AvatarFallback = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
357
360
|
AvatarPrimitive__namespace.Fallback,
|
|
358
361
|
{
|
|
359
362
|
ref,
|
|
@@ -365,9 +368,9 @@ var AvatarFallback = React23__namespace.forwardRef(({ className, ...props }, ref
|
|
|
365
368
|
}
|
|
366
369
|
));
|
|
367
370
|
AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
|
|
368
|
-
var AvatarGroup =
|
|
371
|
+
var AvatarGroup = React12__namespace.forwardRef(
|
|
369
372
|
({ className, max, children, overlapOffset = -8, ...props }, ref) => {
|
|
370
|
-
const childrenArray =
|
|
373
|
+
const childrenArray = React12__namespace.Children.toArray(children);
|
|
371
374
|
const visibleAvatars = max ? childrenArray.slice(0, max) : childrenArray;
|
|
372
375
|
const remainingCount = max ? Math.max(0, childrenArray.length - max) : 0;
|
|
373
376
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -498,7 +501,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
498
501
|
}
|
|
499
502
|
}
|
|
500
503
|
);
|
|
501
|
-
var Badge =
|
|
504
|
+
var Badge = React12__namespace.forwardRef(({
|
|
502
505
|
className,
|
|
503
506
|
variant,
|
|
504
507
|
size,
|
|
@@ -595,19 +598,21 @@ var breadcrumbVariants = classVarianceAuthority.cva(
|
|
|
595
598
|
ghost: "text-foreground/60 transition-colors"
|
|
596
599
|
},
|
|
597
600
|
size: {
|
|
598
|
-
|
|
601
|
+
md: "text-sm",
|
|
599
602
|
sm: "text-xs",
|
|
600
|
-
lg: "text-base"
|
|
603
|
+
lg: "text-base",
|
|
604
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
605
|
+
default: "text-sm"
|
|
601
606
|
}
|
|
602
607
|
},
|
|
603
608
|
defaultVariants: {
|
|
604
609
|
variant: "default",
|
|
605
|
-
size: "
|
|
610
|
+
size: "md"
|
|
606
611
|
}
|
|
607
612
|
}
|
|
608
613
|
);
|
|
609
|
-
var BreadcrumbSeparatorContext =
|
|
610
|
-
var Breadcrumb =
|
|
614
|
+
var BreadcrumbSeparatorContext = React12__namespace.createContext(void 0);
|
|
615
|
+
var Breadcrumb = React12__namespace.forwardRef(
|
|
611
616
|
// #309: `separator` ve `showHomeIcon` ESKİDEN destructure EDİLMİYORDU → `{...props}` ile
|
|
612
617
|
// `<nav>`'a öznitelik olarak basılıyor, React uyarı veriyordu. İkisi de artık ayrılıyor.
|
|
613
618
|
({ className, variant, size, separator, showHomeIcon: _showHomeIcon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparatorContext.Provider, { value: separator, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -621,9 +626,9 @@ var Breadcrumb = React23__namespace.forwardRef(
|
|
|
621
626
|
) })
|
|
622
627
|
);
|
|
623
628
|
Breadcrumb.displayName = "Breadcrumb";
|
|
624
|
-
var BreadcrumbList =
|
|
629
|
+
var BreadcrumbList = React12__namespace.forwardRef(
|
|
625
630
|
({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
|
|
626
|
-
const childrenArray =
|
|
631
|
+
const childrenArray = React12__namespace.Children.toArray(props.children).filter(Boolean);
|
|
627
632
|
const childCount = childrenArray.length;
|
|
628
633
|
if (collapsed && childCount > collapsedWidth) {
|
|
629
634
|
const firstItem = childrenArray[0];
|
|
@@ -659,7 +664,7 @@ var BreadcrumbList = React23__namespace.forwardRef(
|
|
|
659
664
|
}
|
|
660
665
|
);
|
|
661
666
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
662
|
-
var BreadcrumbItem =
|
|
667
|
+
var BreadcrumbItem = React12__namespace.forwardRef(
|
|
663
668
|
({ className, isCurrent, href, asChild = false, children, ...props }, ref) => {
|
|
664
669
|
const Comp = asChild ? reactSlot.Slot : href ? "a" : "span";
|
|
665
670
|
const itemProps = !asChild && href ? { href } : {};
|
|
@@ -692,7 +697,7 @@ var BreadcrumbSeparator = ({
|
|
|
692
697
|
icon,
|
|
693
698
|
...props
|
|
694
699
|
}) => {
|
|
695
|
-
const rootSeparator =
|
|
700
|
+
const rootSeparator = React12__namespace.useContext(BreadcrumbSeparatorContext);
|
|
696
701
|
return (
|
|
697
702
|
// Ayraç tümüyle dekoratiftir → `aria-hidden` burada DOĞRU (ellipsis'in aksine içinde
|
|
698
703
|
// ekran-okuyucuya ait metin yok).
|
|
@@ -735,7 +740,7 @@ var BreadcrumbEllipsis = ({
|
|
|
735
740
|
)
|
|
736
741
|
);
|
|
737
742
|
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
738
|
-
var BreadcrumbLink =
|
|
743
|
+
var BreadcrumbLink = React12__namespace.forwardRef(
|
|
739
744
|
({ className, href, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
740
745
|
"a",
|
|
741
746
|
{
|
|
@@ -750,7 +755,7 @@ var BreadcrumbLink = React23__namespace.forwardRef(
|
|
|
750
755
|
)
|
|
751
756
|
);
|
|
752
757
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
753
|
-
var BreadcrumbPage =
|
|
758
|
+
var BreadcrumbPage = React12__namespace.forwardRef(
|
|
754
759
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
755
760
|
"span",
|
|
756
761
|
{
|
|
@@ -913,7 +918,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
913
918
|
}
|
|
914
919
|
}
|
|
915
920
|
);
|
|
916
|
-
var Button =
|
|
921
|
+
var Button = React12__namespace.forwardRef(
|
|
917
922
|
({
|
|
918
923
|
className,
|
|
919
924
|
variant,
|
|
@@ -1104,10 +1109,12 @@ var cardVariants = classVarianceAuthority.cva(
|
|
|
1104
1109
|
glass: "border border-white/20 bg-white/10 backdrop-blur-md dark:border-gray-700/30 dark:bg-gray-800/10"
|
|
1105
1110
|
},
|
|
1106
1111
|
size: {
|
|
1107
|
-
|
|
1112
|
+
md: "",
|
|
1108
1113
|
sm: "",
|
|
1109
1114
|
lg: "",
|
|
1110
|
-
xl: ""
|
|
1115
|
+
xl: "",
|
|
1116
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
1117
|
+
default: ""
|
|
1111
1118
|
},
|
|
1112
1119
|
radius: {
|
|
1113
1120
|
default: "rounded-lg",
|
|
@@ -1123,12 +1130,12 @@ var cardVariants = classVarianceAuthority.cva(
|
|
|
1123
1130
|
},
|
|
1124
1131
|
defaultVariants: {
|
|
1125
1132
|
variant: "default",
|
|
1126
|
-
size: "
|
|
1133
|
+
size: "md",
|
|
1127
1134
|
radius: "default"
|
|
1128
1135
|
}
|
|
1129
1136
|
}
|
|
1130
1137
|
);
|
|
1131
|
-
var Card =
|
|
1138
|
+
var Card = React12__namespace.forwardRef(
|
|
1132
1139
|
({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
|
|
1133
1140
|
if (interactive && microInteraction !== "none") {
|
|
1134
1141
|
const interactionProps = {
|
|
@@ -1156,7 +1163,7 @@ var Card = React23__namespace.forwardRef(
|
|
|
1156
1163
|
}
|
|
1157
1164
|
);
|
|
1158
1165
|
Card.displayName = "Card";
|
|
1159
|
-
var CardHeader =
|
|
1166
|
+
var CardHeader = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1160
1167
|
"div",
|
|
1161
1168
|
{
|
|
1162
1169
|
ref,
|
|
@@ -1165,7 +1172,7 @@ var CardHeader = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1165
1172
|
}
|
|
1166
1173
|
));
|
|
1167
1174
|
CardHeader.displayName = "CardHeader";
|
|
1168
|
-
var CardTitle =
|
|
1175
|
+
var CardTitle = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1169
1176
|
"h3",
|
|
1170
1177
|
{
|
|
1171
1178
|
ref,
|
|
@@ -1174,7 +1181,7 @@ var CardTitle = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1174
1181
|
}
|
|
1175
1182
|
));
|
|
1176
1183
|
CardTitle.displayName = "CardTitle";
|
|
1177
|
-
var CardDescription =
|
|
1184
|
+
var CardDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1178
1185
|
"p",
|
|
1179
1186
|
{
|
|
1180
1187
|
ref,
|
|
@@ -1183,9 +1190,9 @@ var CardDescription = React23__namespace.forwardRef(({ className, ...props }, re
|
|
|
1183
1190
|
}
|
|
1184
1191
|
));
|
|
1185
1192
|
CardDescription.displayName = "CardDescription";
|
|
1186
|
-
var CardContent =
|
|
1193
|
+
var CardContent = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
|
|
1187
1194
|
CardContent.displayName = "CardContent";
|
|
1188
|
-
var CardFooter =
|
|
1195
|
+
var CardFooter = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1189
1196
|
"div",
|
|
1190
1197
|
{
|
|
1191
1198
|
ref,
|
|
@@ -1206,7 +1213,7 @@ function Calendar({
|
|
|
1206
1213
|
defaultMonth,
|
|
1207
1214
|
...props
|
|
1208
1215
|
}) {
|
|
1209
|
-
const [currentMonth, setCurrentMonth] =
|
|
1216
|
+
const [currentMonth, setCurrentMonth] = React12__namespace.useState(
|
|
1210
1217
|
defaultMonth || selected && selected || /* @__PURE__ */ new Date()
|
|
1211
1218
|
);
|
|
1212
1219
|
const weekDays = [
|
|
@@ -1420,9 +1427,9 @@ var formatCardNumber = (value, cardType) => {
|
|
|
1420
1427
|
}
|
|
1421
1428
|
return formatted;
|
|
1422
1429
|
};
|
|
1423
|
-
var CardNumberInput =
|
|
1430
|
+
var CardNumberInput = React12__namespace.forwardRef(
|
|
1424
1431
|
({ className, value = "", onChange, showIcon = true, size, ...props }, ref) => {
|
|
1425
|
-
const [cardType, setCardType] =
|
|
1432
|
+
const [cardType, setCardType] = React12__namespace.useState("unknown");
|
|
1426
1433
|
const handleChange = (e) => {
|
|
1427
1434
|
const rawValue = e.target.value.replace(/\D/g, "");
|
|
1428
1435
|
const detectedType = getCardType(rawValue);
|
|
@@ -1453,7 +1460,7 @@ var CardNumberInput = React23__namespace.forwardRef(
|
|
|
1453
1460
|
}
|
|
1454
1461
|
);
|
|
1455
1462
|
CardNumberInput.displayName = "CardNumberInput";
|
|
1456
|
-
var CardExpiryInput =
|
|
1463
|
+
var CardExpiryInput = React12__namespace.forwardRef(
|
|
1457
1464
|
({ className, value = "", onChange, size, ...props }, ref) => {
|
|
1458
1465
|
const handleChange = (e) => {
|
|
1459
1466
|
let rawValue = e.target.value.replace(/\D/g, "");
|
|
@@ -1491,7 +1498,7 @@ var CardExpiryInput = React23__namespace.forwardRef(
|
|
|
1491
1498
|
}
|
|
1492
1499
|
);
|
|
1493
1500
|
CardExpiryInput.displayName = "CardExpiryInput";
|
|
1494
|
-
var CardCVCInput =
|
|
1501
|
+
var CardCVCInput = React12__namespace.forwardRef(
|
|
1495
1502
|
({ className, value = "", onChange, cardType = "unknown", size, ...props }, ref) => {
|
|
1496
1503
|
const maxLength = cardType === "amex" ? 4 : 3;
|
|
1497
1504
|
const handleChange = (e) => {
|
|
@@ -1516,7 +1523,7 @@ var CardCVCInput = React23__namespace.forwardRef(
|
|
|
1516
1523
|
}
|
|
1517
1524
|
);
|
|
1518
1525
|
CardCVCInput.displayName = "CardCVCInput";
|
|
1519
|
-
var CardZipInput =
|
|
1526
|
+
var CardZipInput = React12__namespace.forwardRef(
|
|
1520
1527
|
({ className, value = "", onChange, format: format4 = "US", size, ...props }, ref) => {
|
|
1521
1528
|
const handleChange = (e) => {
|
|
1522
1529
|
let rawValue = e.target.value;
|
|
@@ -1567,15 +1574,15 @@ var CardZipInput = React23__namespace.forwardRef(
|
|
|
1567
1574
|
}
|
|
1568
1575
|
);
|
|
1569
1576
|
CardZipInput.displayName = "CardZipInput";
|
|
1570
|
-
var CarouselContext =
|
|
1577
|
+
var CarouselContext = React12__namespace.createContext(null);
|
|
1571
1578
|
function useCarousel() {
|
|
1572
|
-
const context =
|
|
1579
|
+
const context = React12__namespace.useContext(CarouselContext);
|
|
1573
1580
|
if (!context) {
|
|
1574
1581
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1575
1582
|
}
|
|
1576
1583
|
return context;
|
|
1577
1584
|
}
|
|
1578
|
-
var Carousel =
|
|
1585
|
+
var Carousel = React12__namespace.forwardRef(
|
|
1579
1586
|
({
|
|
1580
1587
|
orientation = "horizontal",
|
|
1581
1588
|
opts,
|
|
@@ -1593,21 +1600,28 @@ var Carousel = React23__namespace.forwardRef(
|
|
|
1593
1600
|
},
|
|
1594
1601
|
plugins
|
|
1595
1602
|
);
|
|
1596
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1597
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1598
|
-
const
|
|
1603
|
+
const [canScrollPrev, setCanScrollPrev] = React12__namespace.useState(false);
|
|
1604
|
+
const [canScrollNext, setCanScrollNext] = React12__namespace.useState(false);
|
|
1605
|
+
const [slideState, setSlideState] = React12__namespace.useState(
|
|
1606
|
+
{ current: 0, total: 0 }
|
|
1607
|
+
);
|
|
1608
|
+
const onSelect = React12__namespace.useCallback((emblaApi) => {
|
|
1599
1609
|
if (!emblaApi)
|
|
1600
1610
|
return;
|
|
1601
1611
|
setCanScrollPrev(emblaApi.canScrollPrev());
|
|
1602
1612
|
setCanScrollNext(emblaApi.canScrollNext());
|
|
1613
|
+
setSlideState({
|
|
1614
|
+
current: emblaApi.selectedScrollSnap() + 1,
|
|
1615
|
+
total: emblaApi.scrollSnapList().length
|
|
1616
|
+
});
|
|
1603
1617
|
}, []);
|
|
1604
|
-
const scrollPrev =
|
|
1618
|
+
const scrollPrev = React12__namespace.useCallback(() => {
|
|
1605
1619
|
api?.scrollPrev();
|
|
1606
1620
|
}, [api]);
|
|
1607
|
-
const scrollNext =
|
|
1621
|
+
const scrollNext = React12__namespace.useCallback(() => {
|
|
1608
1622
|
api?.scrollNext();
|
|
1609
1623
|
}, [api]);
|
|
1610
|
-
const handleKeyDown =
|
|
1624
|
+
const handleKeyDown = React12__namespace.useCallback(
|
|
1611
1625
|
(event) => {
|
|
1612
1626
|
const prevKey = resolvedOrientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
1613
1627
|
const nextKey = resolvedOrientation === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
@@ -1621,12 +1635,12 @@ var Carousel = React23__namespace.forwardRef(
|
|
|
1621
1635
|
},
|
|
1622
1636
|
[resolvedOrientation, scrollPrev, scrollNext]
|
|
1623
1637
|
);
|
|
1624
|
-
|
|
1638
|
+
React12__namespace.useEffect(() => {
|
|
1625
1639
|
if (!api || !setApi)
|
|
1626
1640
|
return;
|
|
1627
1641
|
setApi(api);
|
|
1628
1642
|
}, [api, setApi]);
|
|
1629
|
-
|
|
1643
|
+
React12__namespace.useEffect(() => {
|
|
1630
1644
|
if (!api)
|
|
1631
1645
|
return;
|
|
1632
1646
|
onSelect(api);
|
|
@@ -1650,7 +1664,7 @@ var Carousel = React23__namespace.forwardRef(
|
|
|
1650
1664
|
canScrollNext,
|
|
1651
1665
|
orientation: resolvedOrientation
|
|
1652
1666
|
},
|
|
1653
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
1667
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1654
1668
|
"div",
|
|
1655
1669
|
{
|
|
1656
1670
|
ref,
|
|
@@ -1659,7 +1673,10 @@ var Carousel = React23__namespace.forwardRef(
|
|
|
1659
1673
|
role: "region",
|
|
1660
1674
|
"aria-roledescription": "carousel",
|
|
1661
1675
|
...props,
|
|
1662
|
-
children
|
|
1676
|
+
children: [
|
|
1677
|
+
children,
|
|
1678
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { "aria-live": "polite", "aria-atomic": "true", className: "sr-only", children: slideState.total > 0 ? `Slide ${slideState.current} of ${slideState.total}` : "" })
|
|
1679
|
+
]
|
|
1663
1680
|
}
|
|
1664
1681
|
)
|
|
1665
1682
|
}
|
|
@@ -1678,7 +1695,7 @@ var carouselContentVariants = classVarianceAuthority.cva("flex", {
|
|
|
1678
1695
|
orientation: "horizontal"
|
|
1679
1696
|
}
|
|
1680
1697
|
});
|
|
1681
|
-
var CarouselContent =
|
|
1698
|
+
var CarouselContent = React12__namespace.forwardRef(
|
|
1682
1699
|
({ className, ...props }, ref) => {
|
|
1683
1700
|
const { carouselRef, orientation } = useCarousel();
|
|
1684
1701
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1703,7 +1720,7 @@ var carouselItemVariants = classVarianceAuthority.cva("min-w-0 shrink-0 grow-0 b
|
|
|
1703
1720
|
orientation: "horizontal"
|
|
1704
1721
|
}
|
|
1705
1722
|
});
|
|
1706
|
-
var CarouselItem =
|
|
1723
|
+
var CarouselItem = React12__namespace.forwardRef(
|
|
1707
1724
|
({ className, ...props }, ref) => {
|
|
1708
1725
|
const { orientation } = useCarousel();
|
|
1709
1726
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1719,7 +1736,7 @@ var CarouselItem = React23__namespace.forwardRef(
|
|
|
1719
1736
|
}
|
|
1720
1737
|
);
|
|
1721
1738
|
CarouselItem.displayName = "CarouselItem";
|
|
1722
|
-
var CarouselPrevious =
|
|
1739
|
+
var CarouselPrevious = React12__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
|
|
1723
1740
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1724
1741
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1725
1742
|
Button,
|
|
@@ -1744,7 +1761,7 @@ var CarouselPrevious = React23__namespace.forwardRef(({ className, variant = "ou
|
|
|
1744
1761
|
);
|
|
1745
1762
|
});
|
|
1746
1763
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1747
|
-
var CarouselNext =
|
|
1764
|
+
var CarouselNext = React12__namespace.forwardRef(({ className, variant = "outline", size = "icon-sm", ...props }, ref) => {
|
|
1748
1765
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1749
1766
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1750
1767
|
Button,
|
|
@@ -1781,9 +1798,11 @@ var checkboxVariants = classVarianceAuthority.cva(
|
|
|
1781
1798
|
},
|
|
1782
1799
|
size: {
|
|
1783
1800
|
sm: "h-3.5 w-3.5",
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1801
|
+
md: "h-4 w-4",
|
|
1802
|
+
lg: "h-5 w-5",
|
|
1803
|
+
xl: "h-6 w-6",
|
|
1804
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
1805
|
+
default: "h-4 w-4"
|
|
1787
1806
|
},
|
|
1788
1807
|
radius: {
|
|
1789
1808
|
none: "rounded-none",
|
|
@@ -1801,13 +1820,13 @@ var checkboxVariants = classVarianceAuthority.cva(
|
|
|
1801
1820
|
},
|
|
1802
1821
|
defaultVariants: {
|
|
1803
1822
|
variant: "default",
|
|
1804
|
-
size: "
|
|
1823
|
+
size: "md",
|
|
1805
1824
|
radius: "default",
|
|
1806
1825
|
animation: "default"
|
|
1807
1826
|
}
|
|
1808
1827
|
}
|
|
1809
1828
|
);
|
|
1810
|
-
var Checkbox =
|
|
1829
|
+
var Checkbox = React12__namespace.forwardRef(({
|
|
1811
1830
|
className,
|
|
1812
1831
|
variant,
|
|
1813
1832
|
size,
|
|
@@ -1840,7 +1859,7 @@ var Checkbox = React23__namespace.forwardRef(({
|
|
|
1840
1859
|
);
|
|
1841
1860
|
});
|
|
1842
1861
|
Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
|
|
1843
|
-
var CheckboxGroup =
|
|
1862
|
+
var CheckboxGroup = React12__namespace.forwardRef(
|
|
1844
1863
|
({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
|
|
1845
1864
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1846
1865
|
"div",
|
|
@@ -1860,7 +1879,7 @@ var CheckboxGroup = React23__namespace.forwardRef(
|
|
|
1860
1879
|
}
|
|
1861
1880
|
);
|
|
1862
1881
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
1863
|
-
var CheckboxLabel =
|
|
1882
|
+
var CheckboxLabel = React12__namespace.forwardRef(
|
|
1864
1883
|
({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
|
|
1865
1884
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1866
1885
|
"label",
|
|
@@ -1880,14 +1899,14 @@ var CheckboxLabel = React23__namespace.forwardRef(
|
|
|
1880
1899
|
}
|
|
1881
1900
|
);
|
|
1882
1901
|
CheckboxLabel.displayName = "CheckboxLabel";
|
|
1883
|
-
var CheckboxWithLabel =
|
|
1902
|
+
var CheckboxWithLabel = React12__namespace.forwardRef(({
|
|
1884
1903
|
id,
|
|
1885
1904
|
label,
|
|
1886
1905
|
labelPosition = "end",
|
|
1887
1906
|
labelClassName,
|
|
1888
1907
|
...checkboxProps
|
|
1889
1908
|
}, ref) => {
|
|
1890
|
-
const generatedId =
|
|
1909
|
+
const generatedId = React12__namespace.useId();
|
|
1891
1910
|
const checkboxId = id || generatedId;
|
|
1892
1911
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
|
|
1893
1912
|
labelPosition === "start" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1926,18 +1945,20 @@ var collapsibleTriggerVariants = classVarianceAuthority.cva(
|
|
|
1926
1945
|
},
|
|
1927
1946
|
size: {
|
|
1928
1947
|
sm: "text-xs py-2 px-3",
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1948
|
+
md: "text-sm py-3 px-4",
|
|
1949
|
+
lg: "text-base py-4 px-4",
|
|
1950
|
+
xl: "text-lg py-5 px-5",
|
|
1951
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
1952
|
+
default: "text-sm py-3 px-4"
|
|
1932
1953
|
}
|
|
1933
1954
|
},
|
|
1934
1955
|
defaultVariants: {
|
|
1935
1956
|
variant: "default",
|
|
1936
|
-
size: "
|
|
1957
|
+
size: "md"
|
|
1937
1958
|
}
|
|
1938
1959
|
}
|
|
1939
1960
|
);
|
|
1940
|
-
var CollapsibleTrigger =
|
|
1961
|
+
var CollapsibleTrigger = React12__namespace.forwardRef(({ className, children, variant, size, asChild, ...props }, ref) => {
|
|
1941
1962
|
if (asChild) {
|
|
1942
1963
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1943
1964
|
CollapsiblePrimitive__namespace.Trigger,
|
|
@@ -1975,18 +1996,20 @@ var collapsibleContentVariants = classVarianceAuthority.cva(
|
|
|
1975
1996
|
},
|
|
1976
1997
|
size: {
|
|
1977
1998
|
sm: "text-xs",
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1999
|
+
md: "text-sm",
|
|
2000
|
+
lg: "text-base",
|
|
2001
|
+
xl: "text-lg",
|
|
2002
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
2003
|
+
default: "text-sm"
|
|
1981
2004
|
}
|
|
1982
2005
|
},
|
|
1983
2006
|
defaultVariants: {
|
|
1984
2007
|
variant: "default",
|
|
1985
|
-
size: "
|
|
2008
|
+
size: "md"
|
|
1986
2009
|
}
|
|
1987
2010
|
}
|
|
1988
2011
|
);
|
|
1989
|
-
var CollapsibleContent =
|
|
2012
|
+
var CollapsibleContent = React12__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1990
2013
|
CollapsiblePrimitive__namespace.Content,
|
|
1991
2014
|
{
|
|
1992
2015
|
ref,
|
|
@@ -2069,7 +2092,7 @@ var inputVariants = classVarianceAuthority.cva(
|
|
|
2069
2092
|
}
|
|
2070
2093
|
}
|
|
2071
2094
|
);
|
|
2072
|
-
var Input =
|
|
2095
|
+
var Input = React12__namespace.forwardRef(
|
|
2073
2096
|
({
|
|
2074
2097
|
className,
|
|
2075
2098
|
wrapperClassName,
|
|
@@ -2096,10 +2119,10 @@ var Input = React23__namespace.forwardRef(
|
|
|
2096
2119
|
placeholder,
|
|
2097
2120
|
...props
|
|
2098
2121
|
}, ref) => {
|
|
2099
|
-
const reactId =
|
|
2122
|
+
const reactId = React12__namespace.useId();
|
|
2100
2123
|
const fieldId = props.id || reactId;
|
|
2101
|
-
const [isFocused, setIsFocused] =
|
|
2102
|
-
const [internalValue, setInternalValue] =
|
|
2124
|
+
const [isFocused, setIsFocused] = React12__namespace.useState(false);
|
|
2125
|
+
const [internalValue, setInternalValue] = React12__namespace.useState(value || defaultValue || "");
|
|
2103
2126
|
const hasValue = internalValue !== "" && internalValue !== null && internalValue !== void 0;
|
|
2104
2127
|
const isLabelActive = isFocused || hasValue;
|
|
2105
2128
|
const handleFocus = (e) => {
|
|
@@ -2114,7 +2137,7 @@ var Input = React23__namespace.forwardRef(
|
|
|
2114
2137
|
setInternalValue(e.target.value);
|
|
2115
2138
|
onChange?.(e);
|
|
2116
2139
|
};
|
|
2117
|
-
|
|
2140
|
+
React12__namespace.useEffect(() => {
|
|
2118
2141
|
if (value !== void 0) {
|
|
2119
2142
|
setInternalValue(value);
|
|
2120
2143
|
}
|
|
@@ -2198,7 +2221,7 @@ Input.displayName = "Input";
|
|
|
2198
2221
|
var labelVariants = classVarianceAuthority.cva(
|
|
2199
2222
|
"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"
|
|
2200
2223
|
);
|
|
2201
|
-
var Label =
|
|
2224
|
+
var Label = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2202
2225
|
LabelPrimitive__namespace.Root,
|
|
2203
2226
|
{
|
|
2204
2227
|
ref,
|
|
@@ -2219,8 +2242,10 @@ var popoverContentVariants = classVarianceAuthority.cva(
|
|
|
2219
2242
|
},
|
|
2220
2243
|
size: {
|
|
2221
2244
|
sm: "w-48 p-3",
|
|
2222
|
-
|
|
2223
|
-
lg: "w-96 p-5"
|
|
2245
|
+
md: "w-72 p-4",
|
|
2246
|
+
lg: "w-96 p-5",
|
|
2247
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
2248
|
+
default: "w-72 p-4"
|
|
2224
2249
|
},
|
|
2225
2250
|
side: {
|
|
2226
2251
|
top: "data-[side=top]:slide-in-from-bottom-2",
|
|
@@ -2250,7 +2275,7 @@ var popoverContentVariants = classVarianceAuthority.cva(
|
|
|
2250
2275
|
},
|
|
2251
2276
|
defaultVariants: {
|
|
2252
2277
|
variant: "default",
|
|
2253
|
-
size: "
|
|
2278
|
+
size: "md",
|
|
2254
2279
|
radius: "default",
|
|
2255
2280
|
shadow: "default"
|
|
2256
2281
|
}
|
|
@@ -2259,7 +2284,7 @@ var popoverContentVariants = classVarianceAuthority.cva(
|
|
|
2259
2284
|
var Popover = PopoverPrimitive__namespace.Root;
|
|
2260
2285
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
2261
2286
|
var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
|
|
2262
|
-
var PopoverContent =
|
|
2287
|
+
var PopoverContent = React12__namespace.forwardRef(({
|
|
2263
2288
|
className,
|
|
2264
2289
|
variant,
|
|
2265
2290
|
size,
|
|
@@ -2333,8 +2358,8 @@ var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
2333
2358
|
}
|
|
2334
2359
|
);
|
|
2335
2360
|
PopoverFooter.displayName = "PopoverFooter";
|
|
2336
|
-
var TabsOrientationContext =
|
|
2337
|
-
var Tabs =
|
|
2361
|
+
var TabsOrientationContext = React12__namespace.createContext("horizontal");
|
|
2362
|
+
var Tabs = React12__namespace.forwardRef(({ vertical = false, orientation, className, ...props }, ref) => {
|
|
2338
2363
|
const resolvedOrientation = orientation ?? (vertical ? "vertical" : "horizontal");
|
|
2339
2364
|
return /* @__PURE__ */ jsxRuntime.jsx(TabsOrientationContext.Provider, { value: resolvedOrientation, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2340
2365
|
TabsPrimitive__namespace.Root,
|
|
@@ -2378,8 +2403,8 @@ var tabsListVariants = classVarianceAuthority.cva(
|
|
|
2378
2403
|
}
|
|
2379
2404
|
}
|
|
2380
2405
|
);
|
|
2381
|
-
var TabsList =
|
|
2382
|
-
const contextOrientation =
|
|
2406
|
+
var TabsList = React12__namespace.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
|
|
2407
|
+
const contextOrientation = React12__namespace.useContext(TabsOrientationContext);
|
|
2383
2408
|
const resolvedOrientation = orientation ?? contextOrientation;
|
|
2384
2409
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2385
2410
|
TabsPrimitive__namespace.List,
|
|
@@ -2423,7 +2448,7 @@ var tabsTriggerVariants = classVarianceAuthority.cva(
|
|
|
2423
2448
|
}
|
|
2424
2449
|
}
|
|
2425
2450
|
);
|
|
2426
|
-
var TabsTrigger =
|
|
2451
|
+
var TabsTrigger = React12__namespace.forwardRef(({
|
|
2427
2452
|
className,
|
|
2428
2453
|
variant,
|
|
2429
2454
|
size,
|
|
@@ -2436,7 +2461,7 @@ var TabsTrigger = React23__namespace.forwardRef(({
|
|
|
2436
2461
|
children,
|
|
2437
2462
|
...props
|
|
2438
2463
|
}, ref) => {
|
|
2439
|
-
const contextOrientation =
|
|
2464
|
+
const contextOrientation = React12__namespace.useContext(TabsOrientationContext);
|
|
2440
2465
|
const resolvedOrientation = orientation ?? contextOrientation;
|
|
2441
2466
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2442
2467
|
TabsPrimitive__namespace.Trigger,
|
|
@@ -2459,7 +2484,7 @@ var TabsTrigger = React23__namespace.forwardRef(({
|
|
|
2459
2484
|
);
|
|
2460
2485
|
});
|
|
2461
2486
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
2462
|
-
var TabsContent =
|
|
2487
|
+
var TabsContent = React12__namespace.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2463
2488
|
TabsPrimitive__namespace.Content,
|
|
2464
2489
|
{
|
|
2465
2490
|
ref,
|
|
@@ -2479,13 +2504,15 @@ var sliderVariants = classVarianceAuthority.cva(
|
|
|
2479
2504
|
variants: {
|
|
2480
2505
|
size: {
|
|
2481
2506
|
sm: "h-5",
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2507
|
+
md: "h-6",
|
|
2508
|
+
lg: "h-8",
|
|
2509
|
+
xl: "h-10",
|
|
2510
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
2511
|
+
default: "h-6"
|
|
2485
2512
|
}
|
|
2486
2513
|
},
|
|
2487
2514
|
defaultVariants: {
|
|
2488
|
-
size: "
|
|
2515
|
+
size: "md"
|
|
2489
2516
|
}
|
|
2490
2517
|
}
|
|
2491
2518
|
);
|
|
@@ -2542,18 +2569,20 @@ var sliderThumbVariants = classVarianceAuthority.cva(
|
|
|
2542
2569
|
},
|
|
2543
2570
|
size: {
|
|
2544
2571
|
sm: "h-3 w-3",
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2572
|
+
md: "h-4 w-4",
|
|
2573
|
+
lg: "h-5 w-5",
|
|
2574
|
+
xl: "h-6 w-6",
|
|
2575
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
2576
|
+
default: "h-4 w-4"
|
|
2548
2577
|
}
|
|
2549
2578
|
},
|
|
2550
2579
|
defaultVariants: {
|
|
2551
2580
|
variant: "primary",
|
|
2552
|
-
size: "
|
|
2581
|
+
size: "md"
|
|
2553
2582
|
}
|
|
2554
2583
|
}
|
|
2555
2584
|
);
|
|
2556
|
-
var Slider =
|
|
2585
|
+
var Slider = React12__namespace.forwardRef(({
|
|
2557
2586
|
className,
|
|
2558
2587
|
size,
|
|
2559
2588
|
trackVariant,
|
|
@@ -2569,10 +2598,10 @@ var Slider = React23__namespace.forwardRef(({
|
|
|
2569
2598
|
disabled,
|
|
2570
2599
|
...props
|
|
2571
2600
|
}, ref) => {
|
|
2572
|
-
const [sliderValue, setSliderValue] =
|
|
2601
|
+
const [sliderValue, setSliderValue] = React12__namespace.useState(
|
|
2573
2602
|
value || defaultValue || [0]
|
|
2574
2603
|
);
|
|
2575
|
-
|
|
2604
|
+
React12__namespace.useEffect(() => {
|
|
2576
2605
|
if (value !== void 0) {
|
|
2577
2606
|
setSliderValue(value);
|
|
2578
2607
|
}
|
|
@@ -2587,7 +2616,7 @@ var Slider = React23__namespace.forwardRef(({
|
|
|
2587
2616
|
const calculateThumbPercent = (value2, min2, max2) => {
|
|
2588
2617
|
return (value2 - min2) / (max2 - min2) * 100;
|
|
2589
2618
|
};
|
|
2590
|
-
const trackRef =
|
|
2619
|
+
const trackRef = React12__namespace.useRef(null);
|
|
2591
2620
|
const min = props.min || 0;
|
|
2592
2621
|
const max = props.max || 100;
|
|
2593
2622
|
const step = props.step || 1;
|
|
@@ -2752,10 +2781,12 @@ var colorPickerVariants = classVarianceAuthority.cva(
|
|
|
2752
2781
|
{
|
|
2753
2782
|
variants: {
|
|
2754
2783
|
size: {
|
|
2755
|
-
|
|
2784
|
+
md: "h-10 w-10",
|
|
2756
2785
|
sm: "h-8 w-8",
|
|
2757
2786
|
lg: "h-12 w-12",
|
|
2758
|
-
xl: "h-16 w-16"
|
|
2787
|
+
xl: "h-16 w-16",
|
|
2788
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
2789
|
+
default: "h-10 w-10"
|
|
2759
2790
|
},
|
|
2760
2791
|
shape: {
|
|
2761
2792
|
square: "rounded-md",
|
|
@@ -2764,7 +2795,7 @@ var colorPickerVariants = classVarianceAuthority.cva(
|
|
|
2764
2795
|
}
|
|
2765
2796
|
},
|
|
2766
2797
|
defaultVariants: {
|
|
2767
|
-
size: "
|
|
2798
|
+
size: "md",
|
|
2768
2799
|
shape: "square"
|
|
2769
2800
|
}
|
|
2770
2801
|
}
|
|
@@ -2899,14 +2930,14 @@ function ColorPicker({
|
|
|
2899
2930
|
disabled,
|
|
2900
2931
|
...props
|
|
2901
2932
|
}) {
|
|
2902
|
-
const [open, setOpen] =
|
|
2903
|
-
const [color, setColor] =
|
|
2904
|
-
const [opacity, setOpacity] =
|
|
2905
|
-
const [copied, setCopied] =
|
|
2906
|
-
const [inputValue, setInputValue] =
|
|
2907
|
-
const hsl =
|
|
2908
|
-
const rgb =
|
|
2909
|
-
|
|
2933
|
+
const [open, setOpen] = React12__namespace.useState(false);
|
|
2934
|
+
const [color, setColor] = React12__namespace.useState(value);
|
|
2935
|
+
const [opacity, setOpacity] = React12__namespace.useState(100);
|
|
2936
|
+
const [copied, setCopied] = React12__namespace.useState(false);
|
|
2937
|
+
const [inputValue, setInputValue] = React12__namespace.useState(value);
|
|
2938
|
+
const hsl = React12__namespace.useMemo(() => hexToHsl(color) || { h: 0, s: 0, l: 0 }, [color]);
|
|
2939
|
+
const rgb = React12__namespace.useMemo(() => hexToRgb(color) || { r: 0, g: 0, b: 0 }, [color]);
|
|
2940
|
+
React12__namespace.useEffect(() => {
|
|
2910
2941
|
setColor(value);
|
|
2911
2942
|
setInputValue(value);
|
|
2912
2943
|
}, [value]);
|
|
@@ -3271,12 +3302,15 @@ function SimpleColorPicker({
|
|
|
3271
3302
|
onChange,
|
|
3272
3303
|
colors = defaultPresets.slice(0, 10),
|
|
3273
3304
|
className,
|
|
3274
|
-
|
|
3305
|
+
// #319: varsayılan kanonik ada çekildi (aynı CSS: h-8 w-8)
|
|
3306
|
+
size = "md"
|
|
3275
3307
|
}) {
|
|
3276
3308
|
const sizeClasses = {
|
|
3277
3309
|
sm: "h-6 w-6",
|
|
3278
|
-
|
|
3279
|
-
lg: "h-10 w-10"
|
|
3310
|
+
md: "h-8 w-8",
|
|
3311
|
+
lg: "h-10 w-10",
|
|
3312
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
3313
|
+
default: "h-8 w-8"
|
|
3280
3314
|
};
|
|
3281
3315
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("moonui-theme", "flex flex-wrap gap-2", className), children: colors.map((color) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3282
3316
|
"button",
|
|
@@ -3301,7 +3335,7 @@ function GradientPicker({
|
|
|
3301
3335
|
onChange,
|
|
3302
3336
|
className
|
|
3303
3337
|
}) {
|
|
3304
|
-
const [gradient, setGradient] =
|
|
3338
|
+
const [gradient, setGradient] = React12__namespace.useState(value);
|
|
3305
3339
|
const handleChange = (field, newValue) => {
|
|
3306
3340
|
const newGradient = { ...gradient, [field]: newValue };
|
|
3307
3341
|
setGradient(newGradient);
|
|
@@ -3387,7 +3421,7 @@ var overlayVariants = classVarianceAuthority.cva(
|
|
|
3387
3421
|
}
|
|
3388
3422
|
}
|
|
3389
3423
|
);
|
|
3390
|
-
var DialogOverlay =
|
|
3424
|
+
var DialogOverlay = React12__namespace.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3391
3425
|
DialogPrimitive__namespace.Overlay,
|
|
3392
3426
|
{
|
|
3393
3427
|
ref,
|
|
@@ -3410,11 +3444,13 @@ var dialogContentVariants = classVarianceAuthority.cva(
|
|
|
3410
3444
|
size: {
|
|
3411
3445
|
xs: "max-w-xs p-4",
|
|
3412
3446
|
sm: "max-w-sm p-5",
|
|
3413
|
-
|
|
3447
|
+
lg: "max-w-lg p-6",
|
|
3414
3448
|
md: "max-w-md p-6",
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
full: "max-w-[95vw] max-h-[95vh] p-6"
|
|
3449
|
+
xl: "max-w-2xl p-7",
|
|
3450
|
+
"2xl": "max-w-4xl p-8",
|
|
3451
|
+
full: "max-w-[95vw] max-h-[95vh] p-6",
|
|
3452
|
+
/** @deprecated `lg` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
3453
|
+
default: "max-w-lg p-6"
|
|
3418
3454
|
},
|
|
3419
3455
|
radius: {
|
|
3420
3456
|
none: "rounded-none",
|
|
@@ -3439,14 +3475,14 @@ var dialogContentVariants = classVarianceAuthority.cva(
|
|
|
3439
3475
|
},
|
|
3440
3476
|
defaultVariants: {
|
|
3441
3477
|
variant: "default",
|
|
3442
|
-
size: "
|
|
3478
|
+
size: "lg",
|
|
3443
3479
|
radius: "default",
|
|
3444
3480
|
animation: "default",
|
|
3445
3481
|
position: "default"
|
|
3446
3482
|
}
|
|
3447
3483
|
}
|
|
3448
3484
|
);
|
|
3449
|
-
var DialogContent =
|
|
3485
|
+
var DialogContent = React12__namespace.forwardRef(
|
|
3450
3486
|
({
|
|
3451
3487
|
className,
|
|
3452
3488
|
children,
|
|
@@ -3559,7 +3595,7 @@ var DialogFooter = ({
|
|
|
3559
3595
|
}
|
|
3560
3596
|
);
|
|
3561
3597
|
DialogFooter.displayName = "DialogFooter";
|
|
3562
|
-
var DialogTitle =
|
|
3598
|
+
var DialogTitle = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3563
3599
|
DialogPrimitive__namespace.Title,
|
|
3564
3600
|
{
|
|
3565
3601
|
ref,
|
|
@@ -3571,7 +3607,7 @@ var DialogTitle = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3571
3607
|
}
|
|
3572
3608
|
));
|
|
3573
3609
|
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
3574
|
-
var DialogDescription =
|
|
3610
|
+
var DialogDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3575
3611
|
DialogPrimitive__namespace.Description,
|
|
3576
3612
|
{
|
|
3577
3613
|
ref,
|
|
@@ -3583,7 +3619,7 @@ var DialogDescription = React23__namespace.forwardRef(({ className, ...props },
|
|
|
3583
3619
|
}
|
|
3584
3620
|
));
|
|
3585
3621
|
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
3586
|
-
var DialogForm =
|
|
3622
|
+
var DialogForm = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3587
3623
|
"form",
|
|
3588
3624
|
{
|
|
3589
3625
|
ref,
|
|
@@ -3603,17 +3639,19 @@ var commandVariants = classVarianceAuthority.cva(
|
|
|
3603
3639
|
},
|
|
3604
3640
|
size: {
|
|
3605
3641
|
sm: "min-h-[200px]",
|
|
3606
|
-
|
|
3607
|
-
lg: "min-h-[400px]"
|
|
3642
|
+
md: "min-h-[300px]",
|
|
3643
|
+
lg: "min-h-[400px]",
|
|
3644
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
3645
|
+
default: "min-h-[300px]"
|
|
3608
3646
|
}
|
|
3609
3647
|
},
|
|
3610
3648
|
defaultVariants: {
|
|
3611
3649
|
variant: "default",
|
|
3612
|
-
size: "
|
|
3650
|
+
size: "md"
|
|
3613
3651
|
}
|
|
3614
3652
|
}
|
|
3615
3653
|
);
|
|
3616
|
-
var Command =
|
|
3654
|
+
var Command = React12__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3617
3655
|
cmdk.Command,
|
|
3618
3656
|
{
|
|
3619
3657
|
ref,
|
|
@@ -3635,7 +3673,7 @@ var CommandDialog = ({
|
|
|
3635
3673
|
), children })
|
|
3636
3674
|
] }) });
|
|
3637
3675
|
};
|
|
3638
|
-
var CommandInput =
|
|
3676
|
+
var CommandInput = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
3639
3677
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
3640
3678
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3641
3679
|
cmdk.Command.Input,
|
|
@@ -3650,7 +3688,7 @@ var CommandInput = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3650
3688
|
)
|
|
3651
3689
|
] }));
|
|
3652
3690
|
CommandInput.displayName = "CommandInput";
|
|
3653
|
-
var CommandList =
|
|
3691
|
+
var CommandList = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3654
3692
|
cmdk.Command.List,
|
|
3655
3693
|
{
|
|
3656
3694
|
ref,
|
|
@@ -3659,7 +3697,7 @@ var CommandList = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3659
3697
|
}
|
|
3660
3698
|
));
|
|
3661
3699
|
CommandList.displayName = "CommandList";
|
|
3662
|
-
var CommandEmpty =
|
|
3700
|
+
var CommandEmpty = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3663
3701
|
cmdk.Command.Empty,
|
|
3664
3702
|
{
|
|
3665
3703
|
ref,
|
|
@@ -3668,7 +3706,7 @@ var CommandEmpty = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3668
3706
|
}
|
|
3669
3707
|
));
|
|
3670
3708
|
CommandEmpty.displayName = "CommandEmpty";
|
|
3671
|
-
var CommandGroup =
|
|
3709
|
+
var CommandGroup = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3672
3710
|
cmdk.Command.Group,
|
|
3673
3711
|
{
|
|
3674
3712
|
ref,
|
|
@@ -3680,16 +3718,17 @@ var CommandGroup = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3680
3718
|
}
|
|
3681
3719
|
));
|
|
3682
3720
|
CommandGroup.displayName = "CommandGroup";
|
|
3683
|
-
var CommandSeparator =
|
|
3721
|
+
var CommandSeparator = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3684
3722
|
cmdk.Command.Separator,
|
|
3685
3723
|
{
|
|
3686
3724
|
ref,
|
|
3725
|
+
"aria-hidden": "true",
|
|
3687
3726
|
className: cn("moonui-theme", "-mx-1 h-px bg-border", className),
|
|
3688
3727
|
...props
|
|
3689
3728
|
}
|
|
3690
3729
|
));
|
|
3691
3730
|
CommandSeparator.displayName = "CommandSeparator";
|
|
3692
|
-
var CommandItem =
|
|
3731
|
+
var CommandItem = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3693
3732
|
cmdk.Command.Item,
|
|
3694
3733
|
{
|
|
3695
3734
|
ref,
|
|
@@ -3717,7 +3756,7 @@ var CommandShortcut = ({
|
|
|
3717
3756
|
);
|
|
3718
3757
|
};
|
|
3719
3758
|
CommandShortcut.displayName = "CommandShortcut";
|
|
3720
|
-
var TableSortContext =
|
|
3759
|
+
var TableSortContext = React12__namespace.createContext(null);
|
|
3721
3760
|
function nextSortDirection(current) {
|
|
3722
3761
|
if (current === "asc")
|
|
3723
3762
|
return "desc";
|
|
@@ -3738,17 +3777,19 @@ var tableVariants = classVarianceAuthority.cva(
|
|
|
3738
3777
|
},
|
|
3739
3778
|
size: {
|
|
3740
3779
|
sm: "text-xs",
|
|
3741
|
-
|
|
3742
|
-
lg: "text-base"
|
|
3780
|
+
md: "text-sm",
|
|
3781
|
+
lg: "text-base",
|
|
3782
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
3783
|
+
default: "text-sm"
|
|
3743
3784
|
}
|
|
3744
3785
|
},
|
|
3745
3786
|
defaultVariants: {
|
|
3746
3787
|
variant: "default",
|
|
3747
|
-
size: "
|
|
3788
|
+
size: "md"
|
|
3748
3789
|
}
|
|
3749
3790
|
}
|
|
3750
3791
|
);
|
|
3751
|
-
var Table =
|
|
3792
|
+
var Table = React12__namespace.forwardRef(({
|
|
3752
3793
|
className,
|
|
3753
3794
|
variant,
|
|
3754
3795
|
size,
|
|
@@ -3771,15 +3812,15 @@ var Table = React23__namespace.forwardRef(({
|
|
|
3771
3812
|
...props
|
|
3772
3813
|
}, ref) => {
|
|
3773
3814
|
const striped = variant === "striped";
|
|
3774
|
-
const sortContextValue =
|
|
3815
|
+
const sortContextValue = React12__namespace.useMemo(
|
|
3775
3816
|
() => ({ sortColumn, sortDirection, onSortChange }),
|
|
3776
3817
|
[sortColumn, sortDirection, onSortChange]
|
|
3777
3818
|
);
|
|
3778
|
-
const childrenWithProps =
|
|
3779
|
-
if (
|
|
3819
|
+
const childrenWithProps = React12__namespace.Children.map(props.children, (child) => {
|
|
3820
|
+
if (React12__namespace.isValidElement(child)) {
|
|
3780
3821
|
if (child.type === "tbody") {
|
|
3781
3822
|
const tbodyProps = child.props;
|
|
3782
|
-
return
|
|
3823
|
+
return React12__namespace.cloneElement(child, {
|
|
3783
3824
|
className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
|
|
3784
3825
|
});
|
|
3785
3826
|
}
|
|
@@ -3804,10 +3845,10 @@ var Table = React23__namespace.forwardRef(({
|
|
|
3804
3845
|
] });
|
|
3805
3846
|
});
|
|
3806
3847
|
Table.displayName = "Table";
|
|
3807
|
-
var TableHeader =
|
|
3848
|
+
var TableHeader = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("moonui-theme", "[&_tr]:border-b", className), ...props }));
|
|
3808
3849
|
TableHeader.displayName = "TableHeader";
|
|
3809
|
-
var TableBody =
|
|
3810
|
-
const hasChildren =
|
|
3850
|
+
var TableBody = React12__namespace.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
|
|
3851
|
+
const hasChildren = React12__namespace.Children.count(children) > 0;
|
|
3811
3852
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3812
3853
|
"tbody",
|
|
3813
3854
|
{
|
|
@@ -3819,7 +3860,7 @@ var TableBody = React23__namespace.forwardRef(({ className, emptyContent, emptyM
|
|
|
3819
3860
|
);
|
|
3820
3861
|
});
|
|
3821
3862
|
TableBody.displayName = "TableBody";
|
|
3822
|
-
var TableFooter =
|
|
3863
|
+
var TableFooter = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3823
3864
|
"tfoot",
|
|
3824
3865
|
{
|
|
3825
3866
|
ref,
|
|
@@ -3828,7 +3869,7 @@ var TableFooter = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3828
3869
|
}
|
|
3829
3870
|
));
|
|
3830
3871
|
TableFooter.displayName = "TableFooter";
|
|
3831
|
-
var TableRow =
|
|
3872
|
+
var TableRow = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3832
3873
|
"tr",
|
|
3833
3874
|
{
|
|
3834
3875
|
ref,
|
|
@@ -3840,12 +3881,12 @@ var TableRow = React23__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
3840
3881
|
}
|
|
3841
3882
|
));
|
|
3842
3883
|
TableRow.displayName = "TableRow";
|
|
3843
|
-
var TableHead =
|
|
3884
|
+
var TableHead = React12__namespace.forwardRef(
|
|
3844
3885
|
({ className, sortable, sorted, onSort, columnId, align = "left", children, ...props }, ref) => {
|
|
3845
|
-
const sortCtx =
|
|
3886
|
+
const sortCtx = React12__namespace.useContext(TableSortContext);
|
|
3846
3887
|
const ctxSorted = columnId && sortCtx && sortCtx.sortColumn === columnId ? sortCtx.sortDirection ?? null : null;
|
|
3847
3888
|
const effectiveSorted = sorted !== void 0 ? sorted : ctxSorted;
|
|
3848
|
-
const handleSort =
|
|
3889
|
+
const handleSort = React12__namespace.useCallback(() => {
|
|
3849
3890
|
if (onSort) {
|
|
3850
3891
|
onSort();
|
|
3851
3892
|
return;
|
|
@@ -3956,7 +3997,7 @@ var TableHead = React23__namespace.forwardRef(
|
|
|
3956
3997
|
}
|
|
3957
3998
|
);
|
|
3958
3999
|
TableHead.displayName = "TableHead";
|
|
3959
|
-
var TableCell =
|
|
4000
|
+
var TableCell = React12__namespace.forwardRef(({ className, align = "left", ...props }, ref) => {
|
|
3960
4001
|
const alignmentClass = {
|
|
3961
4002
|
left: "text-left",
|
|
3962
4003
|
center: "text-center",
|
|
@@ -3972,7 +4013,7 @@ var TableCell = React23__namespace.forwardRef(({ className, align = "left", ...p
|
|
|
3972
4013
|
);
|
|
3973
4014
|
});
|
|
3974
4015
|
TableCell.displayName = "TableCell";
|
|
3975
|
-
var TableCaption =
|
|
4016
|
+
var TableCaption = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3976
4017
|
"caption",
|
|
3977
4018
|
{
|
|
3978
4019
|
ref,
|
|
@@ -3992,8 +4033,8 @@ function DataTableBasic({
|
|
|
3992
4033
|
emptyMessage = "No results found.",
|
|
3993
4034
|
className
|
|
3994
4035
|
}) {
|
|
3995
|
-
const [sorting, setSorting] =
|
|
3996
|
-
const [globalFilter, setGlobalFilter] =
|
|
4036
|
+
const [sorting, setSorting] = React12__namespace.useState([]);
|
|
4037
|
+
const [globalFilter, setGlobalFilter] = React12__namespace.useState("");
|
|
3997
4038
|
const table = reactTable.useReactTable({
|
|
3998
4039
|
data,
|
|
3999
4040
|
columns,
|
|
@@ -4137,10 +4178,12 @@ var datePickerVariants = classVarianceAuthority.cva(
|
|
|
4137
4178
|
ghost: "hover:bg-accent hover:text-accent-foreground"
|
|
4138
4179
|
},
|
|
4139
4180
|
size: {
|
|
4140
|
-
|
|
4181
|
+
md: "h-10 px-4 py-2",
|
|
4141
4182
|
sm: "h-8 px-3 text-sm",
|
|
4142
4183
|
lg: "h-12 px-6 text-base",
|
|
4143
|
-
icon: "h-10 w-10"
|
|
4184
|
+
icon: "h-10 w-10",
|
|
4185
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
4186
|
+
default: "h-10 px-4 py-2"
|
|
4144
4187
|
},
|
|
4145
4188
|
state: {
|
|
4146
4189
|
default: "",
|
|
@@ -4151,12 +4194,12 @@ var datePickerVariants = classVarianceAuthority.cva(
|
|
|
4151
4194
|
},
|
|
4152
4195
|
defaultVariants: {
|
|
4153
4196
|
variant: "default",
|
|
4154
|
-
size: "
|
|
4197
|
+
size: "md",
|
|
4155
4198
|
state: "default"
|
|
4156
4199
|
}
|
|
4157
4200
|
}
|
|
4158
4201
|
);
|
|
4159
|
-
var DatePicker =
|
|
4202
|
+
var DatePicker = React12__namespace.forwardRef(function DatePicker2({
|
|
4160
4203
|
className,
|
|
4161
4204
|
variant,
|
|
4162
4205
|
size,
|
|
@@ -4179,9 +4222,9 @@ var DatePicker = React23__namespace.forwardRef(function DatePicker2({
|
|
|
4179
4222
|
disabled,
|
|
4180
4223
|
...props
|
|
4181
4224
|
}, ref) {
|
|
4182
|
-
const [open, setOpen] =
|
|
4183
|
-
const [internalDate, setInternalDate] =
|
|
4184
|
-
|
|
4225
|
+
const [open, setOpen] = React12__namespace.useState(false);
|
|
4226
|
+
const [internalDate, setInternalDate] = React12__namespace.useState(value);
|
|
4227
|
+
React12__namespace.useEffect(() => {
|
|
4185
4228
|
setInternalDate(value);
|
|
4186
4229
|
}, [value]);
|
|
4187
4230
|
const handleSelect = (date) => {
|
|
@@ -4329,7 +4372,7 @@ var DatePicker = React23__namespace.forwardRef(function DatePicker2({
|
|
|
4329
4372
|
] }) });
|
|
4330
4373
|
});
|
|
4331
4374
|
DatePicker.displayName = "DatePicker";
|
|
4332
|
-
var DateRangePicker =
|
|
4375
|
+
var DateRangePicker = React12__namespace.forwardRef(function DateRangePicker2({
|
|
4333
4376
|
className,
|
|
4334
4377
|
value,
|
|
4335
4378
|
onChange,
|
|
@@ -4338,9 +4381,9 @@ var DateRangePicker = React23__namespace.forwardRef(function DateRangePicker2({
|
|
|
4338
4381
|
separator = " - ",
|
|
4339
4382
|
...props
|
|
4340
4383
|
}, ref) {
|
|
4341
|
-
const [open, setOpen] =
|
|
4342
|
-
const [internalRange, setInternalRange] =
|
|
4343
|
-
|
|
4384
|
+
const [open, setOpen] = React12__namespace.useState(false);
|
|
4385
|
+
const [internalRange, setInternalRange] = React12__namespace.useState(value);
|
|
4386
|
+
React12__namespace.useEffect(() => {
|
|
4344
4387
|
setInternalRange(value);
|
|
4345
4388
|
}, [value]);
|
|
4346
4389
|
const handleSelect = (range) => {
|
|
@@ -4350,7 +4393,7 @@ var DateRangePicker = React23__namespace.forwardRef(function DateRangePicker2({
|
|
|
4350
4393
|
setOpen(false);
|
|
4351
4394
|
}
|
|
4352
4395
|
};
|
|
4353
|
-
const displayValue =
|
|
4396
|
+
const displayValue = React12__namespace.useMemo(() => {
|
|
4354
4397
|
if (!internalRange?.from)
|
|
4355
4398
|
return null;
|
|
4356
4399
|
if (!internalRange?.to) {
|
|
@@ -4398,7 +4441,7 @@ var DateRangePicker = React23__namespace.forwardRef(function DateRangePicker2({
|
|
|
4398
4441
|
] });
|
|
4399
4442
|
});
|
|
4400
4443
|
DateRangePicker.displayName = "DateRangePicker";
|
|
4401
|
-
var DateTimePicker =
|
|
4444
|
+
var DateTimePicker = React12__namespace.forwardRef(function DateTimePicker2({
|
|
4402
4445
|
value,
|
|
4403
4446
|
onChange,
|
|
4404
4447
|
// Saat ayrı bir <select> ile gösterildiği için buton yalnızca TARİHİ yazar;
|
|
@@ -4410,8 +4453,8 @@ var DateTimePicker = React23__namespace.forwardRef(function DateTimePicker2({
|
|
|
4410
4453
|
timeInterval = 15,
|
|
4411
4454
|
...props
|
|
4412
4455
|
}, ref) {
|
|
4413
|
-
const [date, setDate] =
|
|
4414
|
-
const [time, setTime] =
|
|
4456
|
+
const [date, setDate] = React12__namespace.useState(value);
|
|
4457
|
+
const [time, setTime] = React12__namespace.useState(
|
|
4415
4458
|
value ? dateFns.format(value, timeFormat === "24" ? "HH:mm" : "hh:mm a") : "00:00"
|
|
4416
4459
|
);
|
|
4417
4460
|
const handleDateChange = (newDate) => {
|
|
@@ -4436,7 +4479,7 @@ var DateTimePicker = React23__namespace.forwardRef(function DateTimePicker2({
|
|
|
4436
4479
|
onChange?.(newDate);
|
|
4437
4480
|
}
|
|
4438
4481
|
};
|
|
4439
|
-
const timeOptions =
|
|
4482
|
+
const timeOptions = React12__namespace.useMemo(() => {
|
|
4440
4483
|
const options = [];
|
|
4441
4484
|
for (let h = 0; h < 24; h++) {
|
|
4442
4485
|
for (let m = 0; m < 60; m += timeInterval) {
|
|
@@ -4490,15 +4533,15 @@ var DateTimePicker = React23__namespace.forwardRef(function DateTimePicker2({
|
|
|
4490
4533
|
] });
|
|
4491
4534
|
});
|
|
4492
4535
|
DateTimePicker.displayName = "DateTimePicker";
|
|
4493
|
-
var MonthPicker =
|
|
4536
|
+
var MonthPicker = React12__namespace.forwardRef(function MonthPicker2({
|
|
4494
4537
|
value,
|
|
4495
4538
|
onChange,
|
|
4496
4539
|
placeholder = "Pick a month",
|
|
4497
4540
|
formatString = "MMMM yyyy",
|
|
4498
4541
|
...props
|
|
4499
4542
|
}, ref) {
|
|
4500
|
-
const [open, setOpen] =
|
|
4501
|
-
const [viewDate, setViewDate] =
|
|
4543
|
+
const [open, setOpen] = React12__namespace.useState(false);
|
|
4544
|
+
const [viewDate, setViewDate] = React12__namespace.useState(value || /* @__PURE__ */ new Date());
|
|
4502
4545
|
const months = [
|
|
4503
4546
|
"January",
|
|
4504
4547
|
"February",
|
|
@@ -4594,7 +4637,7 @@ function DraggableList({
|
|
|
4594
4637
|
className,
|
|
4595
4638
|
disabled = false
|
|
4596
4639
|
}) {
|
|
4597
|
-
const [draggedIndex, setDraggedIndex] =
|
|
4640
|
+
const [draggedIndex, setDraggedIndex] = React12__namespace.useState(null);
|
|
4598
4641
|
const handleDragStart = (e, index) => {
|
|
4599
4642
|
if (disabled)
|
|
4600
4643
|
return;
|
|
@@ -4646,7 +4689,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
4646
4689
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
4647
4690
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
4648
4691
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
4649
|
-
var DropdownMenuSubTrigger =
|
|
4692
|
+
var DropdownMenuSubTrigger = React12__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4650
4693
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
4651
4694
|
{
|
|
4652
4695
|
ref,
|
|
@@ -4663,7 +4706,7 @@ var DropdownMenuSubTrigger = React23__namespace.forwardRef(({ className, inset,
|
|
|
4663
4706
|
}
|
|
4664
4707
|
));
|
|
4665
4708
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
4666
|
-
var DropdownMenuSubContent =
|
|
4709
|
+
var DropdownMenuSubContent = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4667
4710
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
4668
4711
|
{
|
|
4669
4712
|
ref,
|
|
@@ -4675,7 +4718,7 @@ var DropdownMenuSubContent = React23__namespace.forwardRef(({ className, ...prop
|
|
|
4675
4718
|
}
|
|
4676
4719
|
));
|
|
4677
4720
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
4678
|
-
var DropdownMenuContent =
|
|
4721
|
+
var DropdownMenuContent = React12__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4679
4722
|
DropdownMenuPrimitive__namespace.Content,
|
|
4680
4723
|
{
|
|
4681
4724
|
ref,
|
|
@@ -4688,7 +4731,7 @@ var DropdownMenuContent = React23__namespace.forwardRef(({ className, sideOffset
|
|
|
4688
4731
|
}
|
|
4689
4732
|
) }));
|
|
4690
4733
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
4691
|
-
var DropdownMenuItem =
|
|
4734
|
+
var DropdownMenuItem = React12__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4692
4735
|
DropdownMenuPrimitive__namespace.Item,
|
|
4693
4736
|
{
|
|
4694
4737
|
ref,
|
|
@@ -4701,7 +4744,7 @@ var DropdownMenuItem = React23__namespace.forwardRef(({ className, inset, ...pro
|
|
|
4701
4744
|
}
|
|
4702
4745
|
));
|
|
4703
4746
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
4704
|
-
var DropdownMenuCheckboxItem =
|
|
4747
|
+
var DropdownMenuCheckboxItem = React12__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4705
4748
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
4706
4749
|
{
|
|
4707
4750
|
ref,
|
|
@@ -4718,7 +4761,7 @@ var DropdownMenuCheckboxItem = React23__namespace.forwardRef(({ className, child
|
|
|
4718
4761
|
}
|
|
4719
4762
|
));
|
|
4720
4763
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
4721
|
-
var DropdownMenuRadioItem =
|
|
4764
|
+
var DropdownMenuRadioItem = React12__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4722
4765
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
4723
4766
|
{
|
|
4724
4767
|
ref,
|
|
@@ -4734,7 +4777,7 @@ var DropdownMenuRadioItem = React23__namespace.forwardRef(({ className, children
|
|
|
4734
4777
|
}
|
|
4735
4778
|
));
|
|
4736
4779
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
4737
|
-
var DropdownMenuLabel =
|
|
4780
|
+
var DropdownMenuLabel = React12__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4738
4781
|
DropdownMenuPrimitive__namespace.Label,
|
|
4739
4782
|
{
|
|
4740
4783
|
ref,
|
|
@@ -4747,7 +4790,7 @@ var DropdownMenuLabel = React23__namespace.forwardRef(({ className, inset, ...pr
|
|
|
4747
4790
|
}
|
|
4748
4791
|
));
|
|
4749
4792
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
4750
|
-
var DropdownMenuSeparator =
|
|
4793
|
+
var DropdownMenuSeparator = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4751
4794
|
DropdownMenuPrimitive__namespace.Separator,
|
|
4752
4795
|
{
|
|
4753
4796
|
ref,
|
|
@@ -4784,10 +4827,12 @@ var progressVariants = classVarianceAuthority.cva(
|
|
|
4784
4827
|
size: {
|
|
4785
4828
|
xs: "h-1",
|
|
4786
4829
|
sm: "h-1.5",
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4830
|
+
md: "h-2",
|
|
4831
|
+
lg: "h-2.5",
|
|
4832
|
+
xl: "h-3",
|
|
4833
|
+
"2xl": "h-4",
|
|
4834
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
4835
|
+
default: "h-2"
|
|
4791
4836
|
},
|
|
4792
4837
|
radius: {
|
|
4793
4838
|
none: "rounded-none",
|
|
@@ -4805,7 +4850,7 @@ var progressVariants = classVarianceAuthority.cva(
|
|
|
4805
4850
|
},
|
|
4806
4851
|
defaultVariants: {
|
|
4807
4852
|
variant: "default",
|
|
4808
|
-
size: "
|
|
4853
|
+
size: "md",
|
|
4809
4854
|
radius: "full",
|
|
4810
4855
|
animation: "default"
|
|
4811
4856
|
}
|
|
@@ -4836,7 +4881,7 @@ var progressIndicatorVariants = classVarianceAuthority.cva(
|
|
|
4836
4881
|
}
|
|
4837
4882
|
}
|
|
4838
4883
|
);
|
|
4839
|
-
var Progress =
|
|
4884
|
+
var Progress = React12__namespace.forwardRef(({
|
|
4840
4885
|
className,
|
|
4841
4886
|
value = 0,
|
|
4842
4887
|
variant,
|
|
@@ -4966,7 +5011,7 @@ var FileItem = ({
|
|
|
4966
5011
|
}
|
|
4967
5012
|
);
|
|
4968
5013
|
};
|
|
4969
|
-
var FileUpload =
|
|
5014
|
+
var FileUpload = React12__namespace.default.forwardRef(
|
|
4970
5015
|
({
|
|
4971
5016
|
accept = "*",
|
|
4972
5017
|
multiple = true,
|
|
@@ -4980,9 +5025,9 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
4980
5025
|
children,
|
|
4981
5026
|
...props
|
|
4982
5027
|
}, ref) => {
|
|
4983
|
-
const [uploadedFiles, setUploadedFiles] =
|
|
4984
|
-
const [isDragOver, setIsDragOver] =
|
|
4985
|
-
const [error, setError] =
|
|
5028
|
+
const [uploadedFiles, setUploadedFiles] = React12.useState([]);
|
|
5029
|
+
const [isDragOver, setIsDragOver] = React12.useState(false);
|
|
5030
|
+
const [error, setError] = React12.useState(null);
|
|
4986
5031
|
const validateFile = (file) => {
|
|
4987
5032
|
if (file.size > maxSize) {
|
|
4988
5033
|
return `File size exceeds ${formatFileSize(maxSize)}`;
|
|
@@ -4998,7 +5043,7 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
4998
5043
|
}
|
|
4999
5044
|
return null;
|
|
5000
5045
|
};
|
|
5001
|
-
const processFiles =
|
|
5046
|
+
const processFiles = React12.useCallback(async (files) => {
|
|
5002
5047
|
const fileArray = Array.from(files);
|
|
5003
5048
|
setError(null);
|
|
5004
5049
|
if (uploadedFiles.length + fileArray.length > maxFiles) {
|
|
@@ -5061,7 +5106,7 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
5061
5106
|
}
|
|
5062
5107
|
}
|
|
5063
5108
|
}, [uploadedFiles.length, maxFiles, maxSize, accept, onUpload]);
|
|
5064
|
-
const handleDrop =
|
|
5109
|
+
const handleDrop = React12.useCallback((e) => {
|
|
5065
5110
|
e.preventDefault();
|
|
5066
5111
|
setIsDragOver(false);
|
|
5067
5112
|
if (disabled)
|
|
@@ -5071,24 +5116,24 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
5071
5116
|
processFiles(files);
|
|
5072
5117
|
}
|
|
5073
5118
|
}, [processFiles, disabled]);
|
|
5074
|
-
const handleDragOver =
|
|
5119
|
+
const handleDragOver = React12.useCallback((e) => {
|
|
5075
5120
|
e.preventDefault();
|
|
5076
5121
|
if (!disabled) {
|
|
5077
5122
|
setIsDragOver(true);
|
|
5078
5123
|
}
|
|
5079
5124
|
}, [disabled]);
|
|
5080
|
-
const handleDragLeave =
|
|
5125
|
+
const handleDragLeave = React12.useCallback((e) => {
|
|
5081
5126
|
e.preventDefault();
|
|
5082
5127
|
setIsDragOver(false);
|
|
5083
5128
|
}, []);
|
|
5084
|
-
const handleFileSelect =
|
|
5129
|
+
const handleFileSelect = React12.useCallback((e) => {
|
|
5085
5130
|
const files = e.target.files;
|
|
5086
5131
|
if (files && files.length > 0) {
|
|
5087
5132
|
processFiles(files);
|
|
5088
5133
|
}
|
|
5089
5134
|
e.target.value = "";
|
|
5090
5135
|
}, [processFiles]);
|
|
5091
|
-
const removeFile =
|
|
5136
|
+
const removeFile = React12.useCallback((fileId) => {
|
|
5092
5137
|
setUploadedFiles((prev) => {
|
|
5093
5138
|
const fileToRemove = prev.find((f) => f.id === fileId);
|
|
5094
5139
|
if (fileToRemove?.preview) {
|
|
@@ -5189,7 +5234,7 @@ var FileUpload = React23__namespace.default.forwardRef(
|
|
|
5189
5234
|
}
|
|
5190
5235
|
);
|
|
5191
5236
|
FileUpload.displayName = "FileUpload";
|
|
5192
|
-
var GestureDrawer =
|
|
5237
|
+
var GestureDrawer = React12__namespace.default.forwardRef(
|
|
5193
5238
|
({
|
|
5194
5239
|
children,
|
|
5195
5240
|
isOpen,
|
|
@@ -5311,9 +5356,9 @@ function GitHubStars({
|
|
|
5311
5356
|
showWatchers = false,
|
|
5312
5357
|
repoUrl = "https://github.com/moonui/moonui"
|
|
5313
5358
|
}) {
|
|
5314
|
-
const [stats, setStats] =
|
|
5315
|
-
const [isLoading, setIsLoading] =
|
|
5316
|
-
|
|
5359
|
+
const [stats, setStats] = React12.useState(null);
|
|
5360
|
+
const [isLoading, setIsLoading] = React12.useState(true);
|
|
5361
|
+
React12.useEffect(() => {
|
|
5317
5362
|
const fetchStats = async () => {
|
|
5318
5363
|
try {
|
|
5319
5364
|
const response = await fetch("/api/github-stars");
|
|
@@ -5412,9 +5457,9 @@ function GitHubStarButton({
|
|
|
5412
5457
|
size = "md",
|
|
5413
5458
|
repoUrl = "https://github.com/moonui/moonui"
|
|
5414
5459
|
}) {
|
|
5415
|
-
const [stars, setStars] =
|
|
5416
|
-
const [isLoading, setIsLoading] =
|
|
5417
|
-
|
|
5460
|
+
const [stars, setStars] = React12.useState(null);
|
|
5461
|
+
const [isLoading, setIsLoading] = React12.useState(true);
|
|
5462
|
+
React12.useEffect(() => {
|
|
5418
5463
|
const fetchStats = async () => {
|
|
5419
5464
|
try {
|
|
5420
5465
|
const response = await fetch("/api/github-stars");
|
|
@@ -5460,7 +5505,7 @@ function GitHubStarButton({
|
|
|
5460
5505
|
}
|
|
5461
5506
|
);
|
|
5462
5507
|
}
|
|
5463
|
-
var InputOTP =
|
|
5508
|
+
var InputOTP = React12__namespace.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5464
5509
|
inputOtp.OTPInput,
|
|
5465
5510
|
{
|
|
5466
5511
|
ref,
|
|
@@ -5475,7 +5520,7 @@ var InputOTP = React23__namespace.forwardRef(({ className, containerClassName, .
|
|
|
5475
5520
|
}
|
|
5476
5521
|
));
|
|
5477
5522
|
InputOTP.displayName = "InputOTP";
|
|
5478
|
-
var InputOTPGroup =
|
|
5523
|
+
var InputOTPGroup = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
5479
5524
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
5480
5525
|
var inputOTPSlotVariants = classVarianceAuthority.cva(
|
|
5481
5526
|
[
|
|
@@ -5497,9 +5542,9 @@ var inputOTPSlotVariants = classVarianceAuthority.cva(
|
|
|
5497
5542
|
}
|
|
5498
5543
|
}
|
|
5499
5544
|
);
|
|
5500
|
-
var InputOTPSlot =
|
|
5545
|
+
var InputOTPSlot = React12__namespace.forwardRef(
|
|
5501
5546
|
({ index, className, ...props }, ref) => {
|
|
5502
|
-
const inputOTPContext =
|
|
5547
|
+
const inputOTPContext = React12__namespace.useContext(inputOtp.OTPInputContext);
|
|
5503
5548
|
const slot = inputOTPContext?.slots?.[index];
|
|
5504
5549
|
const char = slot?.char;
|
|
5505
5550
|
const hasFakeCaret = slot?.hasFakeCaret;
|
|
@@ -5521,7 +5566,7 @@ var InputOTPSlot = React23__namespace.forwardRef(
|
|
|
5521
5566
|
}
|
|
5522
5567
|
);
|
|
5523
5568
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
5524
|
-
var InputOTPSeparator =
|
|
5569
|
+
var InputOTPSeparator = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5525
5570
|
"div",
|
|
5526
5571
|
{
|
|
5527
5572
|
ref,
|
|
@@ -5539,8 +5584,8 @@ function LockedComponent({
|
|
|
5539
5584
|
showPreview = true,
|
|
5540
5585
|
previewDuration = 2e3
|
|
5541
5586
|
}) {
|
|
5542
|
-
const [isPreviewActive, setIsPreviewActive] =
|
|
5543
|
-
const [previewTimeout, setPreviewTimeout] =
|
|
5587
|
+
const [isPreviewActive, setIsPreviewActive] = React12.useState(false);
|
|
5588
|
+
const [previewTimeout, setPreviewTimeout] = React12.useState(null);
|
|
5544
5589
|
const handleMouseEnter = () => {
|
|
5545
5590
|
if (!showPreview)
|
|
5546
5591
|
return;
|
|
@@ -5637,13 +5682,13 @@ function ProComponentWrapper({
|
|
|
5637
5682
|
fallback,
|
|
5638
5683
|
requireCLI = true
|
|
5639
5684
|
}) {
|
|
5640
|
-
const [authState, setAuthState] =
|
|
5685
|
+
const [authState, setAuthState] = React12.useState({
|
|
5641
5686
|
isAuthenticated: false,
|
|
5642
5687
|
deviceValid: false,
|
|
5643
5688
|
hasProAccess: false,
|
|
5644
5689
|
loading: true
|
|
5645
5690
|
});
|
|
5646
|
-
|
|
5691
|
+
React12.useEffect(() => {
|
|
5647
5692
|
const isDevelopment2 = () => {
|
|
5648
5693
|
const checks = {
|
|
5649
5694
|
nodeEnv: process.env.NODE_ENV === "development",
|
|
@@ -5820,7 +5865,7 @@ function MoonLogo({
|
|
|
5820
5865
|
showText = true,
|
|
5821
5866
|
...props
|
|
5822
5867
|
}) {
|
|
5823
|
-
const logoId =
|
|
5868
|
+
const logoId = React12__namespace.useId();
|
|
5824
5869
|
const gradientId = `moon-gradient-${logoId}`;
|
|
5825
5870
|
const maskId = `moon-mask-${logoId}`;
|
|
5826
5871
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-2", className), children: [
|
|
@@ -5892,7 +5937,7 @@ function MoonLogoAnimated({
|
|
|
5892
5937
|
}
|
|
5893
5938
|
);
|
|
5894
5939
|
}
|
|
5895
|
-
var Pagination =
|
|
5940
|
+
var Pagination = React12__namespace.forwardRef(
|
|
5896
5941
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5897
5942
|
"nav",
|
|
5898
5943
|
{
|
|
@@ -5905,7 +5950,7 @@ var Pagination = React23__namespace.forwardRef(
|
|
|
5905
5950
|
)
|
|
5906
5951
|
);
|
|
5907
5952
|
Pagination.displayName = "Pagination";
|
|
5908
|
-
var PaginationContent =
|
|
5953
|
+
var PaginationContent = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5909
5954
|
"ul",
|
|
5910
5955
|
{
|
|
5911
5956
|
ref,
|
|
@@ -5914,9 +5959,9 @@ var PaginationContent = React23__namespace.forwardRef(({ className, ...props },
|
|
|
5914
5959
|
}
|
|
5915
5960
|
));
|
|
5916
5961
|
PaginationContent.displayName = "PaginationContent";
|
|
5917
|
-
var PaginationItem =
|
|
5962
|
+
var PaginationItem = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: cn("moonui-theme", "", className), ...props }));
|
|
5918
5963
|
PaginationItem.displayName = "PaginationItem";
|
|
5919
|
-
var PaginationLink =
|
|
5964
|
+
var PaginationLink = React12__namespace.forwardRef(
|
|
5920
5965
|
({ className, isActive, size = "icon", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5921
5966
|
"a",
|
|
5922
5967
|
{
|
|
@@ -5935,7 +5980,7 @@ var PaginationLink = React23__namespace.forwardRef(
|
|
|
5935
5980
|
);
|
|
5936
5981
|
PaginationLink.displayName = "PaginationLink";
|
|
5937
5982
|
var paginationLabelClass = "hidden sm:inline";
|
|
5938
|
-
var PaginationPrevious =
|
|
5983
|
+
var PaginationPrevious = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5939
5984
|
PaginationLink,
|
|
5940
5985
|
{
|
|
5941
5986
|
ref,
|
|
@@ -5950,7 +5995,7 @@ var PaginationPrevious = React23__namespace.forwardRef(({ className, ...props },
|
|
|
5950
5995
|
}
|
|
5951
5996
|
));
|
|
5952
5997
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
5953
|
-
var PaginationNext =
|
|
5998
|
+
var PaginationNext = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5954
5999
|
PaginationLink,
|
|
5955
6000
|
{
|
|
5956
6001
|
ref,
|
|
@@ -5965,7 +6010,7 @@ var PaginationNext = React23__namespace.forwardRef(({ className, ...props }, ref
|
|
|
5965
6010
|
}
|
|
5966
6011
|
));
|
|
5967
6012
|
PaginationNext.displayName = "PaginationNext";
|
|
5968
|
-
var PaginationEllipsis =
|
|
6013
|
+
var PaginationEllipsis = React12__namespace.forwardRef(({ className, ...props }, ref) => (
|
|
5969
6014
|
// #315: `aria-hidden` ESKİDEN BU ELEMANDAYDI → içindeki `sr-only` "More pages" metni
|
|
5970
6015
|
// erişilebilirlik ağacından düşüyor, hiç duyurulmuyordu. Gizleme artık yalnız dekoratif
|
|
5971
6016
|
// ikonda. (breadcrumb.tsx'te birebir aynı çakışma vardı — aynı PR'da düzeltildi.)
|
|
@@ -6019,7 +6064,7 @@ var selectTriggerVariants = classVarianceAuthority.cva(
|
|
|
6019
6064
|
}
|
|
6020
6065
|
}
|
|
6021
6066
|
);
|
|
6022
|
-
var SelectTrigger =
|
|
6067
|
+
var SelectTrigger = React12__namespace.forwardRef(({ className, children, variant, size, error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6023
6068
|
SelectPrimitive__namespace.Trigger,
|
|
6024
6069
|
{
|
|
6025
6070
|
ref,
|
|
@@ -6050,7 +6095,7 @@ var SelectTrigger = React23__namespace.forwardRef(({ className, children, varian
|
|
|
6050
6095
|
}
|
|
6051
6096
|
));
|
|
6052
6097
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
6053
|
-
var SelectScrollUpButton =
|
|
6098
|
+
var SelectScrollUpButton = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6054
6099
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
6055
6100
|
{
|
|
6056
6101
|
ref,
|
|
@@ -6063,7 +6108,7 @@ var SelectScrollUpButton = React23__namespace.forwardRef(({ className, ...props
|
|
|
6063
6108
|
}
|
|
6064
6109
|
));
|
|
6065
6110
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
6066
|
-
var SelectScrollDownButton =
|
|
6111
|
+
var SelectScrollDownButton = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6067
6112
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
6068
6113
|
{
|
|
6069
6114
|
ref,
|
|
@@ -6076,7 +6121,7 @@ var SelectScrollDownButton = React23__namespace.forwardRef(({ className, ...prop
|
|
|
6076
6121
|
}
|
|
6077
6122
|
));
|
|
6078
6123
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
6079
|
-
var SelectContent =
|
|
6124
|
+
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(
|
|
6080
6125
|
SelectPrimitive__namespace.Content,
|
|
6081
6126
|
{
|
|
6082
6127
|
ref,
|
|
@@ -6117,7 +6162,7 @@ var SelectContent = React23__namespace.forwardRef(({ className, children, positi
|
|
|
6117
6162
|
}
|
|
6118
6163
|
) }));
|
|
6119
6164
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
6120
|
-
var SelectLabel =
|
|
6165
|
+
var SelectLabel = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6121
6166
|
SelectPrimitive__namespace.Label,
|
|
6122
6167
|
{
|
|
6123
6168
|
ref,
|
|
@@ -6126,7 +6171,7 @@ var SelectLabel = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
6126
6171
|
}
|
|
6127
6172
|
));
|
|
6128
6173
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
6129
|
-
var SelectItem =
|
|
6174
|
+
var SelectItem = React12__namespace.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6130
6175
|
SelectPrimitive__namespace.Item,
|
|
6131
6176
|
{
|
|
6132
6177
|
ref,
|
|
@@ -6156,7 +6201,7 @@ var SelectItem = React23__namespace.forwardRef(({ className, children, variant =
|
|
|
6156
6201
|
}
|
|
6157
6202
|
));
|
|
6158
6203
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
6159
|
-
var SelectSeparator =
|
|
6204
|
+
var SelectSeparator = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6160
6205
|
SelectPrimitive__namespace.Separator,
|
|
6161
6206
|
{
|
|
6162
6207
|
ref,
|
|
@@ -6238,7 +6283,7 @@ var getMaxLength = (countryCode) => {
|
|
|
6238
6283
|
return 15;
|
|
6239
6284
|
}
|
|
6240
6285
|
};
|
|
6241
|
-
var PhoneInput =
|
|
6286
|
+
var PhoneInput = React12__namespace.forwardRef(
|
|
6242
6287
|
({
|
|
6243
6288
|
className,
|
|
6244
6289
|
value = "",
|
|
@@ -6250,8 +6295,8 @@ var PhoneInput = React23__namespace.forwardRef(
|
|
|
6250
6295
|
size,
|
|
6251
6296
|
...props
|
|
6252
6297
|
}, ref) => {
|
|
6253
|
-
const [countryCode, setCountryCode] =
|
|
6254
|
-
const [phoneNumber, setPhoneNumber] =
|
|
6298
|
+
const [countryCode, setCountryCode] = React12__namespace.useState(defaultCountry);
|
|
6299
|
+
const [phoneNumber, setPhoneNumber] = React12__namespace.useState(value);
|
|
6255
6300
|
const selectedCountry = countries.find((c) => c.code === countryCode) || countries[0];
|
|
6256
6301
|
const handlePhoneChange = (e) => {
|
|
6257
6302
|
const rawValue = e.target.value.replace(/\D/g, "");
|
|
@@ -6311,26 +6356,28 @@ var radioGroupItemVariants = classVarianceAuthority.cva(
|
|
|
6311
6356
|
},
|
|
6312
6357
|
size: {
|
|
6313
6358
|
sm: "h-3.5 w-3.5",
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6359
|
+
md: "h-4 w-4",
|
|
6360
|
+
lg: "h-5 w-5",
|
|
6361
|
+
xl: "h-6 w-6",
|
|
6362
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
6363
|
+
default: "h-4 w-4"
|
|
6317
6364
|
}
|
|
6318
6365
|
},
|
|
6319
6366
|
defaultVariants: {
|
|
6320
6367
|
variant: "default",
|
|
6321
|
-
size: "
|
|
6368
|
+
size: "md"
|
|
6322
6369
|
}
|
|
6323
6370
|
}
|
|
6324
6371
|
);
|
|
6325
|
-
var RadioGroupContext =
|
|
6326
|
-
var RadioGroup2 =
|
|
6372
|
+
var RadioGroupContext = React12__namespace.createContext({});
|
|
6373
|
+
var RadioGroup2 = React12__namespace.forwardRef(
|
|
6327
6374
|
({ className, value, defaultValue, onValueChange, disabled, name, ...props }, ref) => {
|
|
6328
|
-
const [internalValue, setInternalValue] =
|
|
6375
|
+
const [internalValue, setInternalValue] = React12__namespace.useState(
|
|
6329
6376
|
defaultValue
|
|
6330
6377
|
);
|
|
6331
6378
|
const isControlled = value !== void 0;
|
|
6332
6379
|
const currentValue = isControlled ? value : internalValue;
|
|
6333
|
-
const handleValueChange =
|
|
6380
|
+
const handleValueChange = React12__namespace.useCallback(
|
|
6334
6381
|
(next) => {
|
|
6335
6382
|
if (!isControlled) {
|
|
6336
6383
|
setInternalValue(next);
|
|
@@ -6362,9 +6409,9 @@ var RadioGroup2 = React23__namespace.forwardRef(
|
|
|
6362
6409
|
}
|
|
6363
6410
|
);
|
|
6364
6411
|
RadioGroup2.displayName = "RadioGroup";
|
|
6365
|
-
var RadioGroupItem =
|
|
6366
|
-
const radioGroup =
|
|
6367
|
-
const generatedId =
|
|
6412
|
+
var RadioGroupItem = React12__namespace.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
|
|
6413
|
+
const radioGroup = React12__namespace.useContext(RadioGroupContext);
|
|
6414
|
+
const generatedId = React12__namespace.useId();
|
|
6368
6415
|
const radioId = id || generatedId;
|
|
6369
6416
|
const isChecked = radioGroup.value === value;
|
|
6370
6417
|
const handleChange = (e) => {
|
|
@@ -6417,7 +6464,7 @@ var RadioGroupItem = React23__namespace.forwardRef(({ className, variant, size,
|
|
|
6417
6464
|
] });
|
|
6418
6465
|
});
|
|
6419
6466
|
RadioGroupItem.displayName = "RadioGroupItem";
|
|
6420
|
-
var RadioLabel =
|
|
6467
|
+
var RadioLabel = React12__namespace.forwardRef(
|
|
6421
6468
|
({ className, htmlFor, children, disabled = false, ...props }, ref) => {
|
|
6422
6469
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6423
6470
|
"label",
|
|
@@ -6436,13 +6483,13 @@ var RadioLabel = React23__namespace.forwardRef(
|
|
|
6436
6483
|
}
|
|
6437
6484
|
);
|
|
6438
6485
|
RadioLabel.displayName = "RadioLabel";
|
|
6439
|
-
var RadioItemWithLabel =
|
|
6486
|
+
var RadioItemWithLabel = React12__namespace.forwardRef(({
|
|
6440
6487
|
id,
|
|
6441
6488
|
label,
|
|
6442
6489
|
labelClassName,
|
|
6443
6490
|
...radioProps
|
|
6444
6491
|
}, ref) => {
|
|
6445
|
-
const generatedId =
|
|
6492
|
+
const generatedId = React12__namespace.useId();
|
|
6446
6493
|
const radioId = id || generatedId;
|
|
6447
6494
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
|
|
6448
6495
|
/* @__PURE__ */ jsxRuntime.jsx(RadioGroupItem, { ref, id: radioId, ...radioProps }),
|
|
@@ -6519,21 +6566,28 @@ function RichTextEditor({
|
|
|
6519
6566
|
)
|
|
6520
6567
|
] });
|
|
6521
6568
|
}
|
|
6522
|
-
var ScrollArea =
|
|
6569
|
+
var ScrollArea = React12__namespace.forwardRef(({ className, children, focusable = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6523
6570
|
ScrollAreaPrimitive__namespace.Root,
|
|
6524
6571
|
{
|
|
6525
6572
|
ref,
|
|
6526
6573
|
className: cn("relative overflow-hidden", className),
|
|
6527
6574
|
...props,
|
|
6528
6575
|
children: [
|
|
6529
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6576
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6577
|
+
ScrollAreaPrimitive__namespace.Viewport,
|
|
6578
|
+
{
|
|
6579
|
+
tabIndex: focusable ? 0 : void 0,
|
|
6580
|
+
className: "h-full w-full rounded-[inherit]",
|
|
6581
|
+
children
|
|
6582
|
+
}
|
|
6583
|
+
),
|
|
6530
6584
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
|
|
6531
6585
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
|
|
6532
6586
|
]
|
|
6533
6587
|
}
|
|
6534
6588
|
));
|
|
6535
6589
|
ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
|
|
6536
|
-
var ScrollBar =
|
|
6590
|
+
var ScrollBar = React12__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6537
6591
|
ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
|
|
6538
6592
|
{
|
|
6539
6593
|
ref,
|
|
@@ -6587,7 +6641,7 @@ var defaultTransition = {
|
|
|
6587
6641
|
ease: [0.25, 0.46, 0.45, 0.94]
|
|
6588
6642
|
// Custom cubic-bezier for smooth motion
|
|
6589
6643
|
};
|
|
6590
|
-
var ScrollReveal =
|
|
6644
|
+
var ScrollReveal = React12__namespace.forwardRef(
|
|
6591
6645
|
({
|
|
6592
6646
|
children,
|
|
6593
6647
|
direction = "up",
|
|
@@ -6608,17 +6662,17 @@ var ScrollReveal = React23__namespace.forwardRef(
|
|
|
6608
6662
|
viewport
|
|
6609
6663
|
}, ref) => {
|
|
6610
6664
|
const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
|
|
6611
|
-
const animationVariants =
|
|
6665
|
+
const animationVariants = React12__namespace.useMemo(() => {
|
|
6612
6666
|
if (variants)
|
|
6613
6667
|
return variants;
|
|
6614
6668
|
return createDefaultVariants(direction, distance);
|
|
6615
6669
|
}, [direction, distance, variants]);
|
|
6616
|
-
const transition =
|
|
6670
|
+
const transition = React12__namespace.useMemo(() => ({
|
|
6617
6671
|
...defaultTransition,
|
|
6618
6672
|
duration,
|
|
6619
6673
|
delay: delay + stagger
|
|
6620
6674
|
}), [duration, delay, stagger]);
|
|
6621
|
-
const viewportConfig =
|
|
6675
|
+
const viewportConfig = React12__namespace.useMemo(() => ({
|
|
6622
6676
|
once: shouldTriggerOnce,
|
|
6623
6677
|
amount: threshold,
|
|
6624
6678
|
...viewport
|
|
@@ -6653,7 +6707,7 @@ var ScrollReveal = React23__namespace.forwardRef(
|
|
|
6653
6707
|
}
|
|
6654
6708
|
);
|
|
6655
6709
|
ScrollReveal.displayName = "ScrollReveal";
|
|
6656
|
-
var ScrollRevealContainer =
|
|
6710
|
+
var ScrollRevealContainer = React12__namespace.forwardRef(
|
|
6657
6711
|
({
|
|
6658
6712
|
children,
|
|
6659
6713
|
stagger = 0.1,
|
|
@@ -6666,7 +6720,7 @@ var ScrollRevealContainer = React23__namespace.forwardRef(
|
|
|
6666
6720
|
viewport
|
|
6667
6721
|
}, ref) => {
|
|
6668
6722
|
const shouldTriggerOnce = triggerOnce !== void 0 ? triggerOnce : once;
|
|
6669
|
-
const viewportConfig =
|
|
6723
|
+
const viewportConfig = React12__namespace.useMemo(() => ({
|
|
6670
6724
|
once: shouldTriggerOnce,
|
|
6671
6725
|
amount: threshold,
|
|
6672
6726
|
...viewport
|
|
@@ -6697,7 +6751,7 @@ var ScrollRevealContainer = React23__namespace.forwardRef(
|
|
|
6697
6751
|
}
|
|
6698
6752
|
);
|
|
6699
6753
|
ScrollRevealContainer.displayName = "ScrollRevealContainer";
|
|
6700
|
-
var ScrollRevealItem =
|
|
6754
|
+
var ScrollRevealItem = React12__namespace.forwardRef(
|
|
6701
6755
|
({
|
|
6702
6756
|
children,
|
|
6703
6757
|
direction = "up",
|
|
@@ -6708,12 +6762,12 @@ var ScrollRevealItem = React23__namespace.forwardRef(
|
|
|
6708
6762
|
style,
|
|
6709
6763
|
id
|
|
6710
6764
|
}, ref) => {
|
|
6711
|
-
const animationVariants =
|
|
6765
|
+
const animationVariants = React12__namespace.useMemo(() => {
|
|
6712
6766
|
if (variants)
|
|
6713
6767
|
return variants;
|
|
6714
6768
|
return createDefaultVariants(direction, distance);
|
|
6715
6769
|
}, [direction, distance, variants]);
|
|
6716
|
-
const transition =
|
|
6770
|
+
const transition = React12__namespace.useMemo(() => ({
|
|
6717
6771
|
...defaultTransition,
|
|
6718
6772
|
duration
|
|
6719
6773
|
}), [duration]);
|
|
@@ -6829,7 +6883,7 @@ var separatorVariants = classVarianceAuthority.cva(
|
|
|
6829
6883
|
}
|
|
6830
6884
|
}
|
|
6831
6885
|
);
|
|
6832
|
-
var Separator3 =
|
|
6886
|
+
var Separator3 = React12__namespace.forwardRef(
|
|
6833
6887
|
({
|
|
6834
6888
|
className,
|
|
6835
6889
|
orientation = "horizontal",
|
|
@@ -6861,18 +6915,20 @@ var toggleVariants = classVarianceAuthority.cva(
|
|
|
6861
6915
|
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
6862
6916
|
},
|
|
6863
6917
|
size: {
|
|
6864
|
-
|
|
6918
|
+
md: "h-10 px-3",
|
|
6865
6919
|
sm: "h-9 px-2.5",
|
|
6866
|
-
lg: "h-11 px-5"
|
|
6920
|
+
lg: "h-11 px-5",
|
|
6921
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
6922
|
+
default: "h-10 px-3"
|
|
6867
6923
|
}
|
|
6868
6924
|
},
|
|
6869
6925
|
defaultVariants: {
|
|
6870
6926
|
variant: "default",
|
|
6871
|
-
size: "
|
|
6927
|
+
size: "md"
|
|
6872
6928
|
}
|
|
6873
6929
|
}
|
|
6874
6930
|
);
|
|
6875
|
-
var Toggle =
|
|
6931
|
+
var Toggle = React12__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6876
6932
|
TogglePrimitive__namespace.Root,
|
|
6877
6933
|
{
|
|
6878
6934
|
ref,
|
|
@@ -6908,7 +6964,7 @@ var tooltipVariants = classVarianceAuthority.cva(
|
|
|
6908
6964
|
);
|
|
6909
6965
|
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
6910
6966
|
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
6911
|
-
var TooltipArrow =
|
|
6967
|
+
var TooltipArrow = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6912
6968
|
TooltipPrimitive__namespace.Arrow,
|
|
6913
6969
|
{
|
|
6914
6970
|
ref,
|
|
@@ -6917,7 +6973,7 @@ var TooltipArrow = React23__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
6917
6973
|
}
|
|
6918
6974
|
));
|
|
6919
6975
|
TooltipArrow.displayName = TooltipPrimitive__namespace.Arrow.displayName;
|
|
6920
|
-
var TooltipContent =
|
|
6976
|
+
var TooltipContent = React12__namespace.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6921
6977
|
TooltipPrimitive__namespace.Content,
|
|
6922
6978
|
{
|
|
6923
6979
|
ref,
|
|
@@ -6931,7 +6987,7 @@ var TooltipContent = React23__namespace.forwardRef(({ className, variant, size,
|
|
|
6931
6987
|
}
|
|
6932
6988
|
));
|
|
6933
6989
|
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
6934
|
-
var SimpleTooltip =
|
|
6990
|
+
var SimpleTooltip = React12__namespace.forwardRef(
|
|
6935
6991
|
({
|
|
6936
6992
|
children,
|
|
6937
6993
|
content,
|
|
@@ -7019,7 +7075,7 @@ var ColorPicker2 = ({ onColorSelect }) => {
|
|
|
7019
7075
|
color
|
|
7020
7076
|
)) });
|
|
7021
7077
|
};
|
|
7022
|
-
var SimpleEditor =
|
|
7078
|
+
var SimpleEditor = React12__namespace.default.forwardRef(
|
|
7023
7079
|
({
|
|
7024
7080
|
value = "",
|
|
7025
7081
|
onChange,
|
|
@@ -7032,13 +7088,13 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7032
7088
|
showPreview = true,
|
|
7033
7089
|
...props
|
|
7034
7090
|
}, ref) => {
|
|
7035
|
-
const [content, setContent] =
|
|
7036
|
-
const [isPreview, setIsPreview] =
|
|
7037
|
-
const [sourceContent, setSourceContent] =
|
|
7038
|
-
|
|
7039
|
-
const editorRef =
|
|
7040
|
-
const sourceRef =
|
|
7041
|
-
const [formatState, setFormatState] =
|
|
7091
|
+
const [content, setContent] = React12.useState(value);
|
|
7092
|
+
const [isPreview, setIsPreview] = React12.useState(false);
|
|
7093
|
+
const [sourceContent, setSourceContent] = React12.useState(value);
|
|
7094
|
+
React12.useState(null);
|
|
7095
|
+
const editorRef = React12__namespace.default.useRef(null);
|
|
7096
|
+
const sourceRef = React12__namespace.default.useRef(null);
|
|
7097
|
+
const [formatState, setFormatState] = React12.useState({
|
|
7042
7098
|
bold: false,
|
|
7043
7099
|
italic: false,
|
|
7044
7100
|
underline: false,
|
|
@@ -7052,18 +7108,18 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7052
7108
|
quote: false,
|
|
7053
7109
|
code: false
|
|
7054
7110
|
});
|
|
7055
|
-
const updateContent =
|
|
7111
|
+
const updateContent = React12.useCallback((newContent) => {
|
|
7056
7112
|
setContent(newContent);
|
|
7057
7113
|
onChange?.(newContent);
|
|
7058
7114
|
}, [onChange]);
|
|
7059
|
-
const saveSelection =
|
|
7115
|
+
const saveSelection = React12.useCallback(() => {
|
|
7060
7116
|
const selection2 = window.getSelection();
|
|
7061
7117
|
if (selection2 && selection2.rangeCount > 0) {
|
|
7062
7118
|
return selection2.getRangeAt(0);
|
|
7063
7119
|
}
|
|
7064
7120
|
return null;
|
|
7065
7121
|
}, []);
|
|
7066
|
-
|
|
7122
|
+
React12.useCallback((range) => {
|
|
7067
7123
|
if (!range)
|
|
7068
7124
|
return;
|
|
7069
7125
|
const selection2 = window.getSelection();
|
|
@@ -7072,7 +7128,7 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7072
7128
|
selection2.addRange(range);
|
|
7073
7129
|
}
|
|
7074
7130
|
}, []);
|
|
7075
|
-
const executeCommand =
|
|
7131
|
+
const executeCommand = React12.useCallback((command, value2) => {
|
|
7076
7132
|
if (disabled)
|
|
7077
7133
|
return;
|
|
7078
7134
|
if (editorRef.current) {
|
|
@@ -7105,11 +7161,11 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7105
7161
|
editorRef.current.focus();
|
|
7106
7162
|
}
|
|
7107
7163
|
}, [disabled, saveSelection, updateContent]);
|
|
7108
|
-
const handleInput =
|
|
7164
|
+
const handleInput = React12.useCallback((e) => {
|
|
7109
7165
|
const newContent = e.currentTarget.innerHTML;
|
|
7110
7166
|
updateContent(newContent);
|
|
7111
7167
|
}, [updateContent]);
|
|
7112
|
-
const handleKeyDown =
|
|
7168
|
+
const handleKeyDown = React12.useCallback((e) => {
|
|
7113
7169
|
if (e.ctrlKey || e.metaKey) {
|
|
7114
7170
|
switch (e.key) {
|
|
7115
7171
|
case "b":
|
|
@@ -7139,22 +7195,22 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7139
7195
|
executeCommand("insertHTML", " ");
|
|
7140
7196
|
}
|
|
7141
7197
|
}, [executeCommand]);
|
|
7142
|
-
const insertLink =
|
|
7198
|
+
const insertLink = React12.useCallback(() => {
|
|
7143
7199
|
const url = prompt("Enter URL:");
|
|
7144
7200
|
if (url) {
|
|
7145
7201
|
executeCommand("createLink", url);
|
|
7146
7202
|
}
|
|
7147
7203
|
}, [executeCommand]);
|
|
7148
|
-
const insertImage =
|
|
7204
|
+
const insertImage = React12.useCallback(() => {
|
|
7149
7205
|
const url = prompt("Enter image URL:");
|
|
7150
7206
|
if (url) {
|
|
7151
7207
|
executeCommand("insertImage", url);
|
|
7152
7208
|
}
|
|
7153
7209
|
}, [executeCommand]);
|
|
7154
|
-
const formatHeading =
|
|
7210
|
+
const formatHeading = React12.useCallback((level) => {
|
|
7155
7211
|
executeCommand("formatBlock", `<h${level}>`);
|
|
7156
7212
|
}, [executeCommand]);
|
|
7157
|
-
const setTextColor =
|
|
7213
|
+
const setTextColor = React12.useCallback((color) => {
|
|
7158
7214
|
const selection2 = window.getSelection();
|
|
7159
7215
|
if (selection2 && selection2.rangeCount > 0) {
|
|
7160
7216
|
const range = selection2.getRangeAt(0);
|
|
@@ -7171,12 +7227,12 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7171
7227
|
}
|
|
7172
7228
|
}
|
|
7173
7229
|
}, [executeCommand, updateContent]);
|
|
7174
|
-
|
|
7230
|
+
React12__namespace.default.useEffect(() => {
|
|
7175
7231
|
if (editorRef.current && content && content !== editorRef.current.innerHTML) {
|
|
7176
7232
|
editorRef.current.innerHTML = content;
|
|
7177
7233
|
}
|
|
7178
7234
|
}, [content]);
|
|
7179
|
-
|
|
7235
|
+
React12__namespace.default.useEffect(() => {
|
|
7180
7236
|
if (value !== void 0 && value !== content) {
|
|
7181
7237
|
setContent(value);
|
|
7182
7238
|
setSourceContent(value);
|
|
@@ -7538,8 +7594,8 @@ var SimpleEditor = React23__namespace.default.forwardRef(
|
|
|
7538
7594
|
);
|
|
7539
7595
|
SimpleEditor.displayName = "SimpleEditor";
|
|
7540
7596
|
var CharacterCount = ({ content }) => {
|
|
7541
|
-
const [count, setCount] =
|
|
7542
|
-
|
|
7597
|
+
const [count, setCount] = React12.useState(0);
|
|
7598
|
+
React12.useEffect(() => {
|
|
7543
7599
|
const getPlainText = (html) => {
|
|
7544
7600
|
const div = document.createElement("div");
|
|
7545
7601
|
div.innerHTML = html;
|
|
@@ -7563,9 +7619,11 @@ var skeletonVariants = classVarianceAuthority.cva(
|
|
|
7563
7619
|
accent: "bg-accent"
|
|
7564
7620
|
},
|
|
7565
7621
|
size: {
|
|
7566
|
-
|
|
7622
|
+
md: "",
|
|
7567
7623
|
sm: "scale-90",
|
|
7568
|
-
lg: "scale-110"
|
|
7624
|
+
lg: "scale-110",
|
|
7625
|
+
/** @deprecated `md` kullanın — #319 kanonik skala; aynı çıktıyı üretir. */
|
|
7626
|
+
default: ""
|
|
7569
7627
|
},
|
|
7570
7628
|
shape: {
|
|
7571
7629
|
rect: "rounded-md",
|
|
@@ -7580,13 +7638,13 @@ var skeletonVariants = classVarianceAuthority.cva(
|
|
|
7580
7638
|
},
|
|
7581
7639
|
defaultVariants: {
|
|
7582
7640
|
variant: "default",
|
|
7583
|
-
size: "
|
|
7641
|
+
size: "md",
|
|
7584
7642
|
shape: "rect",
|
|
7585
7643
|
animation: "pulse"
|
|
7586
7644
|
}
|
|
7587
7645
|
}
|
|
7588
7646
|
);
|
|
7589
|
-
var Skeleton =
|
|
7647
|
+
var Skeleton = React12__namespace.forwardRef(
|
|
7590
7648
|
({
|
|
7591
7649
|
className,
|
|
7592
7650
|
variant,
|
|
@@ -7652,6 +7710,7 @@ var Skeleton = React23__namespace.forwardRef(
|
|
|
7652
7710
|
SkeletonElement,
|
|
7653
7711
|
{
|
|
7654
7712
|
ref,
|
|
7713
|
+
"aria-hidden": "true",
|
|
7655
7714
|
className: cn(
|
|
7656
7715
|
"moonui-theme",
|
|
7657
7716
|
skeletonVariants({ variant, size, shape, animation }),
|
|
@@ -7670,7 +7729,7 @@ var Skeleton = React23__namespace.forwardRef(
|
|
|
7670
7729
|
}
|
|
7671
7730
|
);
|
|
7672
7731
|
Skeleton.displayName = "Skeleton";
|
|
7673
|
-
var SkeletonText =
|
|
7732
|
+
var SkeletonText = React12__namespace.forwardRef(
|
|
7674
7733
|
({
|
|
7675
7734
|
className,
|
|
7676
7735
|
lines = 3,
|
|
@@ -7711,7 +7770,7 @@ var SkeletonText = React23__namespace.forwardRef(
|
|
|
7711
7770
|
}
|
|
7712
7771
|
);
|
|
7713
7772
|
SkeletonText.displayName = "SkeletonText";
|
|
7714
|
-
var SkeletonAvatar =
|
|
7773
|
+
var SkeletonAvatar = React12__namespace.forwardRef(
|
|
7715
7774
|
({
|
|
7716
7775
|
className,
|
|
7717
7776
|
size = "2.5rem",
|
|
@@ -7737,7 +7796,7 @@ var SkeletonAvatar = React23__namespace.forwardRef(
|
|
|
7737
7796
|
}
|
|
7738
7797
|
);
|
|
7739
7798
|
SkeletonAvatar.displayName = "SkeletonAvatar";
|
|
7740
|
-
var SkeletonCard =
|
|
7799
|
+
var SkeletonCard = React12__namespace.forwardRef(
|
|
7741
7800
|
({
|
|
7742
7801
|
className,
|
|
7743
7802
|
showHeader = true,
|
|
@@ -7811,11 +7870,11 @@ var SkeletonCard = React23__namespace.forwardRef(
|
|
|
7811
7870
|
}
|
|
7812
7871
|
);
|
|
7813
7872
|
SkeletonCard.displayName = "SkeletonCard";
|
|
7814
|
-
var SwipeableCard =
|
|
7873
|
+
var SwipeableCard = React12__namespace.forwardRef(
|
|
7815
7874
|
({ className, children, onSwipeLeft, onSwipeRight, threshold = 100, disabled = false, ...props }, ref) => {
|
|
7816
|
-
const [startX, setStartX] =
|
|
7817
|
-
const [currentX, setCurrentX] =
|
|
7818
|
-
const [isSwiping, setIsSwiping] =
|
|
7875
|
+
const [startX, setStartX] = React12__namespace.useState(0);
|
|
7876
|
+
const [currentX, setCurrentX] = React12__namespace.useState(0);
|
|
7877
|
+
const [isSwiping, setIsSwiping] = React12__namespace.useState(false);
|
|
7819
7878
|
const handleTouchStart = (e) => {
|
|
7820
7879
|
if (disabled)
|
|
7821
7880
|
return;
|
|
@@ -7910,7 +7969,7 @@ var switchThumbVariants = classVarianceAuthority.cva(
|
|
|
7910
7969
|
}
|
|
7911
7970
|
}
|
|
7912
7971
|
);
|
|
7913
|
-
var Switch =
|
|
7972
|
+
var Switch = React12__namespace.forwardRef(({
|
|
7914
7973
|
className,
|
|
7915
7974
|
size,
|
|
7916
7975
|
variant,
|
|
@@ -7921,7 +7980,7 @@ var Switch = React23__namespace.forwardRef(({
|
|
|
7921
7980
|
"aria-describedby": ariaDescribedBy,
|
|
7922
7981
|
...props
|
|
7923
7982
|
}, ref) => {
|
|
7924
|
-
const reactId =
|
|
7983
|
+
const reactId = React12__namespace.useId();
|
|
7925
7984
|
const descriptionId = description ? `${reactId}-description` : void 0;
|
|
7926
7985
|
const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ") || void 0;
|
|
7927
7986
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "moonui-theme inline-flex items-center gap-2", children: [
|
|
@@ -7949,7 +8008,7 @@ var Switch = React23__namespace.forwardRef(({
|
|
|
7949
8008
|
] });
|
|
7950
8009
|
});
|
|
7951
8010
|
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
7952
|
-
var TagsInput =
|
|
8011
|
+
var TagsInput = React12__namespace.forwardRef(
|
|
7953
8012
|
({
|
|
7954
8013
|
value = [],
|
|
7955
8014
|
onChange,
|
|
@@ -7962,12 +8021,12 @@ var TagsInput = React23__namespace.forwardRef(
|
|
|
7962
8021
|
disabled,
|
|
7963
8022
|
...props
|
|
7964
8023
|
}, ref) => {
|
|
7965
|
-
const [inputValue, setInputValue] =
|
|
7966
|
-
const [error, setError] =
|
|
7967
|
-
const innerInputRef =
|
|
7968
|
-
|
|
7969
|
-
const tagButtonRefs =
|
|
7970
|
-
const errorId =
|
|
8024
|
+
const [inputValue, setInputValue] = React12__namespace.useState("");
|
|
8025
|
+
const [error, setError] = React12__namespace.useState("");
|
|
8026
|
+
const innerInputRef = React12__namespace.useRef(null);
|
|
8027
|
+
React12__namespace.useImperativeHandle(ref, () => innerInputRef.current);
|
|
8028
|
+
const tagButtonRefs = React12__namespace.useRef([]);
|
|
8029
|
+
const errorId = React12__namespace.useId();
|
|
7971
8030
|
const focusTag = (index) => {
|
|
7972
8031
|
if (value.length === 0)
|
|
7973
8032
|
return;
|
|
@@ -8144,7 +8203,7 @@ var textareaVariants = classVarianceAuthority.cva(
|
|
|
8144
8203
|
}
|
|
8145
8204
|
}
|
|
8146
8205
|
);
|
|
8147
|
-
var Textarea =
|
|
8206
|
+
var Textarea = React12__namespace.forwardRef(
|
|
8148
8207
|
({
|
|
8149
8208
|
className,
|
|
8150
8209
|
wrapperClassName,
|
|
@@ -8164,12 +8223,12 @@ var Textarea = React23__namespace.forwardRef(
|
|
|
8164
8223
|
onChange,
|
|
8165
8224
|
...props
|
|
8166
8225
|
}, ref) => {
|
|
8167
|
-
const reactId =
|
|
8226
|
+
const reactId = React12__namespace.useId();
|
|
8168
8227
|
const fieldId = props.id || reactId;
|
|
8169
|
-
const textareaRef =
|
|
8170
|
-
const [internalValue, setInternalValue] =
|
|
8171
|
-
|
|
8172
|
-
const adjustHeight =
|
|
8228
|
+
const textareaRef = React12__namespace.useRef(null);
|
|
8229
|
+
const [internalValue, setInternalValue] = React12__namespace.useState(value || defaultValue || "");
|
|
8230
|
+
React12__namespace.useImperativeHandle(ref, () => textareaRef.current);
|
|
8231
|
+
const adjustHeight = React12__namespace.useCallback(() => {
|
|
8173
8232
|
const textarea = textareaRef.current;
|
|
8174
8233
|
if (!textarea || !autoResize)
|
|
8175
8234
|
return;
|
|
@@ -8183,10 +8242,10 @@ var Textarea = React23__namespace.forwardRef(
|
|
|
8183
8242
|
textarea.style.overflowY = "hidden";
|
|
8184
8243
|
}
|
|
8185
8244
|
}, [autoResize, maxHeight]);
|
|
8186
|
-
|
|
8245
|
+
React12__namespace.useEffect(() => {
|
|
8187
8246
|
adjustHeight();
|
|
8188
8247
|
}, [internalValue, adjustHeight]);
|
|
8189
|
-
|
|
8248
|
+
React12__namespace.useEffect(() => {
|
|
8190
8249
|
if (value !== void 0) {
|
|
8191
8250
|
setInternalValue(value);
|
|
8192
8251
|
}
|
|
@@ -8252,7 +8311,7 @@ var Textarea = React23__namespace.forwardRef(
|
|
|
8252
8311
|
);
|
|
8253
8312
|
Textarea.displayName = "Textarea";
|
|
8254
8313
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
8255
|
-
var ToastViewport =
|
|
8314
|
+
var ToastViewport = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8256
8315
|
ToastPrimitives__namespace.Viewport,
|
|
8257
8316
|
{
|
|
8258
8317
|
ref,
|
|
@@ -8281,7 +8340,7 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
8281
8340
|
}
|
|
8282
8341
|
}
|
|
8283
8342
|
);
|
|
8284
|
-
var Toast =
|
|
8343
|
+
var Toast = React12__namespace.forwardRef(({ className, variant, ...props }, ref) => {
|
|
8285
8344
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8286
8345
|
ToastPrimitives__namespace.Root,
|
|
8287
8346
|
{
|
|
@@ -8292,7 +8351,7 @@ var Toast = React23__namespace.forwardRef(({ className, variant, ...props }, ref
|
|
|
8292
8351
|
);
|
|
8293
8352
|
});
|
|
8294
8353
|
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
8295
|
-
var ToastAction =
|
|
8354
|
+
var ToastAction = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8296
8355
|
ToastPrimitives__namespace.Action,
|
|
8297
8356
|
{
|
|
8298
8357
|
ref,
|
|
@@ -8304,7 +8363,7 @@ var ToastAction = React23__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
8304
8363
|
}
|
|
8305
8364
|
));
|
|
8306
8365
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
8307
|
-
var ToastClose =
|
|
8366
|
+
var ToastClose = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8308
8367
|
ToastPrimitives__namespace.Close,
|
|
8309
8368
|
{
|
|
8310
8369
|
ref,
|
|
@@ -8321,7 +8380,7 @@ var ToastClose = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
8321
8380
|
}
|
|
8322
8381
|
));
|
|
8323
8382
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
8324
|
-
var ToastTitle =
|
|
8383
|
+
var ToastTitle = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8325
8384
|
ToastPrimitives__namespace.Title,
|
|
8326
8385
|
{
|
|
8327
8386
|
ref,
|
|
@@ -8330,7 +8389,7 @@ var ToastTitle = React23__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
8330
8389
|
}
|
|
8331
8390
|
));
|
|
8332
8391
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
8333
|
-
var ToastDescription =
|
|
8392
|
+
var ToastDescription = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8334
8393
|
ToastPrimitives__namespace.Description,
|
|
8335
8394
|
{
|
|
8336
8395
|
ref,
|
|
@@ -8438,8 +8497,8 @@ function toast({ ...props }) {
|
|
|
8438
8497
|
};
|
|
8439
8498
|
}
|
|
8440
8499
|
function useToast() {
|
|
8441
|
-
const [state, setState] =
|
|
8442
|
-
|
|
8500
|
+
const [state, setState] = React12__namespace.useState(memoryState);
|
|
8501
|
+
React12__namespace.useEffect(() => {
|
|
8443
8502
|
listeners.push(setState);
|
|
8444
8503
|
return () => {
|
|
8445
8504
|
const index = listeners.indexOf(setState);
|
|
@@ -8492,7 +8551,7 @@ var kbdVariants = classVarianceAuthority.cva(
|
|
|
8492
8551
|
}
|
|
8493
8552
|
}
|
|
8494
8553
|
);
|
|
8495
|
-
var Kbd =
|
|
8554
|
+
var Kbd = React12__namespace.forwardRef(
|
|
8496
8555
|
({ className, size, children, ...props }, ref) => {
|
|
8497
8556
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8498
8557
|
"kbd",
|
|
@@ -8529,7 +8588,7 @@ var iconSizeMap = {
|
|
|
8529
8588
|
md: "h-5 w-5",
|
|
8530
8589
|
lg: "h-6 w-6"
|
|
8531
8590
|
};
|
|
8532
|
-
var Rating =
|
|
8591
|
+
var Rating = React12__namespace.forwardRef(
|
|
8533
8592
|
({
|
|
8534
8593
|
className,
|
|
8535
8594
|
value,
|
|
@@ -8547,11 +8606,11 @@ var Rating = React23__namespace.forwardRef(
|
|
|
8547
8606
|
const iconSizeClass = iconSizeMap[resolvedSize];
|
|
8548
8607
|
const step = precision === "half" ? 0.5 : 1;
|
|
8549
8608
|
const isControlled = value !== void 0;
|
|
8550
|
-
const [internalValue, setInternalValue] =
|
|
8609
|
+
const [internalValue, setInternalValue] = React12__namespace.useState(defaultValue ?? 0);
|
|
8551
8610
|
const currentValue = isControlled ? value ?? 0 : internalValue;
|
|
8552
|
-
const [hoverValue, setHoverValue] =
|
|
8611
|
+
const [hoverValue, setHoverValue] = React12__namespace.useState(null);
|
|
8553
8612
|
const displayValue = hoverValue !== null ? hoverValue : currentValue;
|
|
8554
|
-
const commit =
|
|
8613
|
+
const commit = React12__namespace.useCallback(
|
|
8555
8614
|
(next) => {
|
|
8556
8615
|
if (readOnly)
|
|
8557
8616
|
return;
|
|
@@ -8561,7 +8620,7 @@ var Rating = React23__namespace.forwardRef(
|
|
|
8561
8620
|
},
|
|
8562
8621
|
[readOnly, isControlled, onValueChange]
|
|
8563
8622
|
);
|
|
8564
|
-
const handleKeyDown =
|
|
8623
|
+
const handleKeyDown = React12__namespace.useCallback(
|
|
8565
8624
|
(event) => {
|
|
8566
8625
|
if (readOnly)
|
|
8567
8626
|
return;
|
|
@@ -8590,9 +8649,9 @@ var Rating = React23__namespace.forwardRef(
|
|
|
8590
8649
|
[readOnly, max, currentValue, step, commit]
|
|
8591
8650
|
);
|
|
8592
8651
|
const renderIcon = (filled) => {
|
|
8593
|
-
if (
|
|
8652
|
+
if (React12__namespace.isValidElement(icon)) {
|
|
8594
8653
|
const element = icon;
|
|
8595
|
-
return
|
|
8654
|
+
return React12__namespace.cloneElement(element, {
|
|
8596
8655
|
className: cn(
|
|
8597
8656
|
iconSizeClass,
|
|
8598
8657
|
"shrink-0",
|
|
@@ -8726,7 +8785,7 @@ var dotSizeMap = {
|
|
|
8726
8785
|
lg: "h-2 w-2",
|
|
8727
8786
|
xl: "h-2.5 w-2.5"
|
|
8728
8787
|
};
|
|
8729
|
-
var Spinner =
|
|
8788
|
+
var Spinner = React12__namespace.forwardRef(
|
|
8730
8789
|
({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
|
|
8731
8790
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8732
8791
|
"div",
|
|
@@ -8805,15 +8864,15 @@ var buttonGroupVariants = classVarianceAuthority.cva(
|
|
|
8805
8864
|
}
|
|
8806
8865
|
}
|
|
8807
8866
|
);
|
|
8808
|
-
var ButtonGroup =
|
|
8867
|
+
var ButtonGroup = React12__namespace.forwardRef(
|
|
8809
8868
|
({ className, orientation, attached, size, variant, children, ...props }, ref) => {
|
|
8810
8869
|
const shouldPropagate = size !== void 0 || variant !== void 0;
|
|
8811
|
-
const enhancedChildren = shouldPropagate ?
|
|
8812
|
-
if (!
|
|
8870
|
+
const enhancedChildren = shouldPropagate ? React12__namespace.Children.map(children, (child) => {
|
|
8871
|
+
if (!React12__namespace.isValidElement(child) || child.type !== Button) {
|
|
8813
8872
|
return child;
|
|
8814
8873
|
}
|
|
8815
8874
|
const childProps = child.props;
|
|
8816
|
-
return
|
|
8875
|
+
return React12__namespace.cloneElement(child, {
|
|
8817
8876
|
size: childProps.size ?? size,
|
|
8818
8877
|
variant: childProps.variant ?? variant
|
|
8819
8878
|
});
|
|
@@ -8831,11 +8890,14 @@ var ButtonGroup = React23__namespace.forwardRef(
|
|
|
8831
8890
|
}
|
|
8832
8891
|
);
|
|
8833
8892
|
ButtonGroup.displayName = "ButtonGroup";
|
|
8834
|
-
var ToggleGroupContext =
|
|
8835
|
-
|
|
8893
|
+
var ToggleGroupContext = React12__namespace.createContext({
|
|
8894
|
+
// #319: kanonik skalada `default` bir basamak ADI değil; `toggleVariants` artık `md`
|
|
8895
|
+
// kullanıyor (aynı CSS: h-10 px-3). Context varsayılanı da ona hizalandı — aksi hâlde
|
|
8896
|
+
// context, deprecated alias'ı item'lara yayardı.
|
|
8897
|
+
size: "md",
|
|
8836
8898
|
variant: "default"
|
|
8837
8899
|
});
|
|
8838
|
-
var ToggleGroup =
|
|
8900
|
+
var ToggleGroup = React12__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8839
8901
|
ToggleGroupPrimitive__namespace.Root,
|
|
8840
8902
|
{
|
|
8841
8903
|
ref,
|
|
@@ -8852,8 +8914,8 @@ var ToggleGroup = React23__namespace.forwardRef(({ className, variant, size, chi
|
|
|
8852
8914
|
}
|
|
8853
8915
|
));
|
|
8854
8916
|
ToggleGroup.displayName = "ToggleGroup";
|
|
8855
|
-
var ToggleGroupItem =
|
|
8856
|
-
const context =
|
|
8917
|
+
var ToggleGroupItem = React12__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
8918
|
+
const context = React12__namespace.useContext(ToggleGroupContext);
|
|
8857
8919
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8858
8920
|
ToggleGroupPrimitive__namespace.Item,
|
|
8859
8921
|
{
|