@moontra/moonui-pro 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +588 -589
- package/package.json +1 -1
- package/src/components/advanced-forms/index.tsx +3 -3
- package/src/components/calendar/index.tsx +1 -1
- package/src/components/dashboard/index.tsx +1 -1
- package/src/components/file-upload/index.tsx +1 -1
- package/src/components/github-stars/index.tsx +2 -2
- package/src/components/health-check/index.tsx +1 -1
- package/src/components/kanban/index.tsx +1 -1
- package/src/components/lazy-component/index.tsx +1 -1
- package/src/components/optimized-image/index.tsx +2 -2
- package/src/components/performance-debugger/index.tsx +1 -1
- package/src/components/performance-monitor/index.tsx +1 -1
- package/src/components/rich-text-editor/index.tsx +1 -1
- package/src/components/timeline/index.tsx +1 -1
- package/src/components/ui/animated-button.tsx +1 -1
- package/src/components/ui/avatar.tsx +15 -12
- package/src/components/ui/badge.tsx +10 -7
- package/src/components/ui/card.tsx +19 -16
- package/src/components/ui/checkbox.tsx +15 -12
- package/src/components/ui/color-picker.tsx +6 -4
- package/src/components/ui/dialog.tsx +31 -29
- package/src/components/ui/dropdown-menu.tsx +44 -42
- package/src/components/ui/hover-card-3d.tsx +1 -1
- package/src/components/ui/input.tsx +9 -6
- package/src/components/ui/label.tsx +8 -5
- package/src/components/ui/magnetic-button.tsx +1 -1
- package/src/components/ui/popover.tsx +18 -16
- package/src/components/ui/progress.tsx +6 -3
- package/src/components/ui/select.tsx +32 -30
- package/src/components/ui/separator.tsx +9 -6
- package/src/components/ui/skeleton.tsx +7 -4
- package/src/components/ui/slider.tsx +8 -5
- package/src/components/ui/spotlight-card.tsx +1 -1
- package/src/components/ui/switch.tsx +7 -4
- package/src/components/ui/tabs.tsx +16 -13
- package/src/components/ui/textarea.tsx +7 -4
- package/src/components/ui/toast.tsx +20 -18
- package/src/components/ui/tooltip.tsx +18 -16
- package/src/use-performance-optimizer.ts +11 -1
|
@@ -15,10 +15,10 @@ import { cn } from "../../lib/utils";
|
|
|
15
15
|
* Provides a premium appearance with dark and light mode compatibility and fluid animations.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
18
|
+
const MoonUIDialogPro = DialogPrimitive.Root;
|
|
19
|
+
const MoonUIDialogTriggerPro = DialogPrimitive.Trigger;
|
|
20
|
+
const MoonUIDialogPortal = DialogPrimitive.Portal;
|
|
21
|
+
const MoonUIDialogClosePro = DialogPrimitive.Close;
|
|
22
22
|
|
|
23
23
|
const overlayVariants = cva(
|
|
24
24
|
"fixed inset-0 z-50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -47,7 +47,7 @@ interface DialogOverlayProps
|
|
|
47
47
|
extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,
|
|
48
48
|
VariantProps<typeof overlayVariants> {}
|
|
49
49
|
|
|
50
|
-
const
|
|
50
|
+
const MoonUIDialogOverlay = React.forwardRef<
|
|
51
51
|
React.ElementRef<typeof DialogPrimitive.Overlay>,
|
|
52
52
|
DialogOverlayProps
|
|
53
53
|
>(({ className, variant, animation, ...props }, ref) => (
|
|
@@ -57,7 +57,7 @@ const DialogOverlay = React.forwardRef<
|
|
|
57
57
|
{...props}
|
|
58
58
|
/>
|
|
59
59
|
));
|
|
60
|
-
|
|
60
|
+
MoonUIDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
61
61
|
|
|
62
62
|
const dialogContentVariants = cva(
|
|
63
63
|
"fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background shadow-lg",
|
|
@@ -111,7 +111,7 @@ const dialogContentVariants = cva(
|
|
|
111
111
|
}
|
|
112
112
|
);
|
|
113
113
|
|
|
114
|
-
interface
|
|
114
|
+
interface MoonUIDialogContentProProps
|
|
115
115
|
extends Omit<React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, 'title'>,
|
|
116
116
|
VariantProps<typeof dialogContentVariants> {
|
|
117
117
|
/** X butonunu gizle */
|
|
@@ -134,7 +134,7 @@ interface DialogContentProps
|
|
|
134
134
|
onClose?: () => void;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
const
|
|
137
|
+
const MoonUIDialogContentPro = React.forwardRef<
|
|
138
138
|
React.ElementRef<typeof DialogPrimitive.Content>,
|
|
139
139
|
DialogContentProps
|
|
140
140
|
>(
|
|
@@ -243,9 +243,9 @@ const DialogContent = React.forwardRef<
|
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
);
|
|
246
|
-
|
|
246
|
+
MoonUIDialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
247
247
|
|
|
248
|
-
const
|
|
248
|
+
const MoonUIDialogHeaderPro = ({
|
|
249
249
|
className,
|
|
250
250
|
...props
|
|
251
251
|
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
@@ -257,9 +257,9 @@ const DialogHeader = ({
|
|
|
257
257
|
{...props}
|
|
258
258
|
/>
|
|
259
259
|
);
|
|
260
|
-
|
|
260
|
+
MoonUIDialogHeaderPro.displayName = "MoonUIDialogHeaderPro";
|
|
261
261
|
|
|
262
|
-
const
|
|
262
|
+
const MoonUIDialogFooterPro = ({
|
|
263
263
|
className,
|
|
264
264
|
...props
|
|
265
265
|
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
@@ -271,9 +271,9 @@ const DialogFooter = ({
|
|
|
271
271
|
{...props}
|
|
272
272
|
/>
|
|
273
273
|
);
|
|
274
|
-
|
|
274
|
+
MoonUIDialogFooterPro.displayName = "MoonUIDialogFooterPro";
|
|
275
275
|
|
|
276
|
-
const
|
|
276
|
+
const MoonUIDialogTitlePro = React.forwardRef<
|
|
277
277
|
React.ElementRef<typeof DialogPrimitive.Title>,
|
|
278
278
|
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
|
|
279
279
|
>(({ className, ...props }, ref) => (
|
|
@@ -286,9 +286,9 @@ const DialogTitle = React.forwardRef<
|
|
|
286
286
|
{...props}
|
|
287
287
|
/>
|
|
288
288
|
));
|
|
289
|
-
|
|
289
|
+
MoonUIDialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
290
290
|
|
|
291
|
-
const
|
|
291
|
+
const MoonUIDialogDescriptionPro = React.forwardRef<
|
|
292
292
|
React.ElementRef<typeof DialogPrimitive.Description>,
|
|
293
293
|
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
|
|
294
294
|
>(({ className, ...props }, ref) => (
|
|
@@ -301,13 +301,13 @@ const DialogDescription = React.forwardRef<
|
|
|
301
301
|
{...props}
|
|
302
302
|
/>
|
|
303
303
|
));
|
|
304
|
-
|
|
304
|
+
MoonUIDialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
305
305
|
|
|
306
306
|
/**
|
|
307
307
|
* Dialog-Form integration for use with form support
|
|
308
308
|
* Used to integrate form submission processes into the modal
|
|
309
309
|
*/
|
|
310
|
-
const
|
|
310
|
+
const MoonUIDialogForm = React.forwardRef<
|
|
311
311
|
HTMLFormElement,
|
|
312
312
|
React.HTMLAttributes<HTMLFormElement>
|
|
313
313
|
>(({ className, ...props }, ref) => (
|
|
@@ -317,16 +317,18 @@ const DialogForm = React.forwardRef<
|
|
|
317
317
|
{...props}
|
|
318
318
|
/>
|
|
319
319
|
));
|
|
320
|
-
|
|
320
|
+
MoonUIDialogForm.displayName = "DialogForm";
|
|
321
321
|
|
|
322
|
-
export {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
DialogClose,
|
|
322
|
+
export { MoonUIDialogPro,
|
|
323
|
+
MoonUIDialogTriggerPro,
|
|
324
|
+
MoonUIDialogContentPro,
|
|
325
|
+
MoonUIDialogHeaderPro,
|
|
326
|
+
MoonUIDialogFooterPro,
|
|
327
|
+
MoonUIDialogTitlePro,
|
|
328
|
+
MoonUIDialogDescriptionPro,
|
|
329
|
+
MoonUIDialogClosePro,
|
|
331
330
|
DialogForm,
|
|
332
|
-
};
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
// Backward compatibility exports
|
|
334
|
+
export { MoonUIDialogPro as Dialog, MoonUIDialogContentPro as DialogContent, MoonUIDialogHeaderPro as DialogHeader, MoonUIDialogFooterPro as DialogFooter, MoonUIDialogTitlePro as DialogTitle, MoonUIDialogDescriptionPro as DialogDescription, MoonUIDialogTriggerPro as DialogTrigger, MoonUIDialogClosePro as DialogClose };
|
|
@@ -6,19 +6,19 @@ import { Check, ChevronRight, Circle } from "lucide-react"
|
|
|
6
6
|
|
|
7
7
|
import { cn } from "../../lib/utils"
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const MoonUIDropdownMenuPro = DropdownMenuPrimitive.Root
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const MoonUIDropdownMenuTriggerPro = DropdownMenuPrimitive.Trigger
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const MoonUIDropdownMenuGroupPro = DropdownMenuPrimitive.Group
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
const MoonUIDropdownMenuPortalPro = DropdownMenuPrimitive.Portal
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const MoonUIDropdownMenuSubPro = DropdownMenuPrimitive.Sub
|
|
18
18
|
|
|
19
|
-
const
|
|
19
|
+
const MoonUIDropdownMenuRadioGroupPro = DropdownMenuPrimitive.RadioGroup
|
|
20
20
|
|
|
21
|
-
const
|
|
21
|
+
const MoonUIDropdownMenuSubTriggerPro = React.forwardRef<
|
|
22
22
|
React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
|
|
23
23
|
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
24
24
|
inset?: boolean
|
|
@@ -37,10 +37,10 @@ const DropdownMenuSubTrigger = React.forwardRef<
|
|
|
37
37
|
<ChevronRight className="ml-auto h-4 w-4" />
|
|
38
38
|
</DropdownMenuPrimitive.SubTrigger>
|
|
39
39
|
))
|
|
40
|
-
|
|
40
|
+
MoonUIDropdownMenuSubTrigger.displayName =
|
|
41
41
|
DropdownMenuPrimitive.SubTrigger.displayName
|
|
42
42
|
|
|
43
|
-
const
|
|
43
|
+
const MoonUIDropdownMenuSubContentPro = React.forwardRef<
|
|
44
44
|
React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
|
|
45
45
|
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
|
|
46
46
|
>(({ className, ...props }, ref) => (
|
|
@@ -53,10 +53,10 @@ const DropdownMenuSubContent = React.forwardRef<
|
|
|
53
53
|
{...props}
|
|
54
54
|
/>
|
|
55
55
|
))
|
|
56
|
-
|
|
56
|
+
MoonUIDropdownMenuSubContent.displayName =
|
|
57
57
|
DropdownMenuPrimitive.SubContent.displayName
|
|
58
58
|
|
|
59
|
-
const
|
|
59
|
+
const MoonUIDropdownMenuContentPro = React.forwardRef<
|
|
60
60
|
React.ElementRef<typeof DropdownMenuPrimitive.Content>,
|
|
61
61
|
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
|
|
62
62
|
>(({ className, sideOffset = 4, ...props }, ref) => (
|
|
@@ -72,9 +72,9 @@ const DropdownMenuContent = React.forwardRef<
|
|
|
72
72
|
/>
|
|
73
73
|
</DropdownMenuPrimitive.Portal>
|
|
74
74
|
))
|
|
75
|
-
|
|
75
|
+
MoonUIDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName
|
|
76
76
|
|
|
77
|
-
const
|
|
77
|
+
const MoonUIDropdownMenuItemPro = React.forwardRef<
|
|
78
78
|
React.ElementRef<typeof DropdownMenuPrimitive.Item>,
|
|
79
79
|
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
|
|
80
80
|
inset?: boolean
|
|
@@ -90,9 +90,9 @@ const DropdownMenuItem = React.forwardRef<
|
|
|
90
90
|
{...props}
|
|
91
91
|
/>
|
|
92
92
|
))
|
|
93
|
-
|
|
93
|
+
MoonUIDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
|
|
94
94
|
|
|
95
|
-
const
|
|
95
|
+
const MoonUIDropdownMenuCheckboxItemPro = React.forwardRef<
|
|
96
96
|
React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
|
|
97
97
|
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
|
|
98
98
|
>(({ className, children, checked, ...props }, ref) => (
|
|
@@ -113,10 +113,10 @@ const DropdownMenuCheckboxItem = React.forwardRef<
|
|
|
113
113
|
{children}
|
|
114
114
|
</DropdownMenuPrimitive.CheckboxItem>
|
|
115
115
|
))
|
|
116
|
-
|
|
116
|
+
MoonUIDropdownMenuCheckboxItem.displayName =
|
|
117
117
|
DropdownMenuPrimitive.CheckboxItem.displayName
|
|
118
118
|
|
|
119
|
-
const
|
|
119
|
+
const MoonUIDropdownMenuRadioItemPro = React.forwardRef<
|
|
120
120
|
React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
|
|
121
121
|
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
|
|
122
122
|
>(({ className, children, ...props }, ref) => (
|
|
@@ -136,9 +136,9 @@ const DropdownMenuRadioItem = React.forwardRef<
|
|
|
136
136
|
{children}
|
|
137
137
|
</DropdownMenuPrimitive.RadioItem>
|
|
138
138
|
))
|
|
139
|
-
|
|
139
|
+
MoonUIDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName
|
|
140
140
|
|
|
141
|
-
const
|
|
141
|
+
const MoonUIDropdownMenuLabelPro = React.forwardRef<
|
|
142
142
|
React.ElementRef<typeof DropdownMenuPrimitive.Label>,
|
|
143
143
|
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
|
|
144
144
|
inset?: boolean
|
|
@@ -154,9 +154,9 @@ const DropdownMenuLabel = React.forwardRef<
|
|
|
154
154
|
{...props}
|
|
155
155
|
/>
|
|
156
156
|
))
|
|
157
|
-
|
|
157
|
+
MoonUIDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName
|
|
158
158
|
|
|
159
|
-
const
|
|
159
|
+
const MoonUIDropdownMenuSeparatorPro = React.forwardRef<
|
|
160
160
|
React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
|
|
161
161
|
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
|
|
162
162
|
>(({ className, ...props }, ref) => (
|
|
@@ -166,9 +166,9 @@ const DropdownMenuSeparator = React.forwardRef<
|
|
|
166
166
|
{...props}
|
|
167
167
|
/>
|
|
168
168
|
))
|
|
169
|
-
|
|
169
|
+
MoonUIDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName
|
|
170
170
|
|
|
171
|
-
const
|
|
171
|
+
const MoonUIDropdownMenuShortcutPro = ({
|
|
172
172
|
className,
|
|
173
173
|
...props
|
|
174
174
|
}: React.HTMLAttributes<HTMLSpanElement>) => {
|
|
@@ -179,22 +179,24 @@ const DropdownMenuShortcut = ({
|
|
|
179
179
|
/>
|
|
180
180
|
)
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
export {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
182
|
+
MoonUIDropdownMenuShortcutPro.displayName = "MoonUIDropdownMenuShortcutPro"
|
|
183
|
+
|
|
184
|
+
export { MoonUIDropdownMenuPro,
|
|
185
|
+
MoonUIDropdownMenuTriggerPro,
|
|
186
|
+
MoonUIDropdownMenuContentPro,
|
|
187
|
+
MoonUIDropdownMenuItemPro,
|
|
188
|
+
MoonUIDropdownMenuCheckboxItemPro,
|
|
189
|
+
MoonUIDropdownMenuRadioItemPro,
|
|
190
|
+
MoonUIDropdownMenuLabelPro,
|
|
191
|
+
MoonUIDropdownMenuSeparatorPro,
|
|
192
|
+
MoonUIDropdownMenuShortcutPro,
|
|
193
|
+
MoonUIDropdownMenuGroupPro,
|
|
194
|
+
MoonUIDropdownMenuPortalPro,
|
|
195
|
+
MoonUIDropdownMenuSubPro,
|
|
196
|
+
MoonUIDropdownMenuSubContentPro,
|
|
197
|
+
MoonUIDropdownMenuSubTriggerPro,
|
|
198
|
+
MoonUIDropdownMenuRadioGroupPro,
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// Backward compatibility exports
|
|
202
|
+
export { MoonUICheckboxPro as Checkbox, MoonUIDropdownMenuPro as DropdownMenu, MoonUILabelPro as Label, MoonUIRadioGroupPro as RadioGroup, MoonUISeparatorPro as Separator, MoonUIDropdownMenuTriggerPro as DropdownMenuTrigger, MoonUIDropdownMenuContentPro as DropdownMenuContent, MoonUIDropdownMenuItemPro as DropdownMenuItem, MoonUIDropdownMenuCheckboxItemPro as DropdownMenuCheckboxItem, MoonUIDropdownMenuRadioItemPro as DropdownMenuRadioItem, MoonUIDropdownMenuLabelPro as DropdownMenuLabel, MoonUIDropdownMenuSeparatorPro as DropdownMenuSeparator, MoonUIDropdownMenuShortcutPro as DropdownMenuShortcut, MoonUIDropdownMenuGroupPro as DropdownMenuGroup, MoonUIDropdownMenuPortalPro as DropdownMenuPortal, MoonUIDropdownMenuSubPro as DropdownMenuSub, MoonUIDropdownMenuSubContentPro as DropdownMenuSubContent, MoonUIDropdownMenuSubTriggerPro as DropdownMenuSubTrigger, MoonUIDropdownMenuRadioGroupPro as DropdownMenuRadioGroup }
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { motion, useMotionValue, useSpring, useTransform } from "framer-motion";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
6
|
|
|
7
7
|
export interface HoverCard3DProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
8
|
children: React.ReactNode;
|
|
@@ -26,7 +26,7 @@ const inputWrapperVariants = cva(
|
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
|
|
29
|
-
const
|
|
29
|
+
const moonUIInputVariantsPro = cva(
|
|
30
30
|
[
|
|
31
31
|
"w-full bg-background transition-all duration-200",
|
|
32
32
|
"text-foreground placeholder:text-muted-foreground dark:placeholder:text-gray-500",
|
|
@@ -85,9 +85,9 @@ const inputVariants = cva(
|
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
87
|
|
|
88
|
-
export interface
|
|
88
|
+
export interface MoonUIInputProProps
|
|
89
89
|
extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">,
|
|
90
|
-
Omit<VariantProps<typeof
|
|
90
|
+
Omit<VariantProps<typeof moonUIInputVariantsPro>, "isDisabled" | "hasLeftIcon" | "hasRightIcon" | "hasRightButton"> {
|
|
91
91
|
/** Hata mesajı */
|
|
92
92
|
error?: string;
|
|
93
93
|
/** Başarı mesajı */
|
|
@@ -122,7 +122,7 @@ export interface InputProps
|
|
|
122
122
|
* @param props.rightButton - Sağ tarafta gösterilecek buton
|
|
123
123
|
* @param props.alwaysShowMessage - Mesajın her zaman görünür olması
|
|
124
124
|
*/
|
|
125
|
-
const
|
|
125
|
+
const MoonUIInputPro = React.forwardRef<HTMLInputElement, MoonUIInputProProps>(
|
|
126
126
|
({
|
|
127
127
|
className,
|
|
128
128
|
wrapperClassName,
|
|
@@ -214,6 +214,9 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
216
|
);
|
|
217
|
-
|
|
217
|
+
MoonUIInputPro.displayName = "MoonUIInputPro";
|
|
218
218
|
|
|
219
|
-
export {
|
|
219
|
+
export { MoonUIInputPro };
|
|
220
|
+
|
|
221
|
+
// Backward compatibility exports
|
|
222
|
+
export { MoonUIInputPro as Input };
|
|
@@ -6,14 +6,14 @@ import { cva, type VariantProps } from "class-variance-authority"
|
|
|
6
6
|
|
|
7
7
|
import { cn } from "../../lib/utils"
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const moonUILabelVariantsPro = cva(
|
|
10
10
|
"text-sm font-medium leading-none text-gray-900 dark:text-gray-200 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:peer-disabled:opacity-60 transition-colors duration-200"
|
|
11
11
|
)
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const MoonUILabelPro = React.forwardRef<
|
|
14
14
|
React.ElementRef<typeof LabelPrimitive.Root>,
|
|
15
15
|
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
|
|
16
|
-
VariantProps<typeof
|
|
16
|
+
VariantProps<typeof moonUILabelVariantsPro>
|
|
17
17
|
>(({ className, ...props }, ref) => (
|
|
18
18
|
<LabelPrimitive.Root
|
|
19
19
|
ref={ref}
|
|
@@ -21,6 +21,9 @@ const Label = React.forwardRef<
|
|
|
21
21
|
{...props}
|
|
22
22
|
/>
|
|
23
23
|
))
|
|
24
|
-
|
|
24
|
+
MoonUILabel.displayName = LabelPrimitive.Root.displayName
|
|
25
25
|
|
|
26
|
-
export {
|
|
26
|
+
export { MoonUILabelPro };
|
|
27
|
+
|
|
28
|
+
// Backward compatibility exports
|
|
29
|
+
export { MoonUILabelPro as Label }
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { motion, useMotionValue, useTransform, useSpring } from "framer-motion";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
6
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
7
7
|
|
|
8
8
|
const magneticButtonVariants = cva(
|
|
@@ -63,11 +63,11 @@ const popoverContentVariants = cva(
|
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
|
|
66
|
-
const
|
|
67
|
-
const
|
|
66
|
+
const MoonUIPopoverPro = PopoverPrimitive.Root;
|
|
67
|
+
const MoonUIPopoverTriggerPro = PopoverPrimitive.Trigger;
|
|
68
68
|
const PopoverAnchor = PopoverPrimitive.Anchor;
|
|
69
69
|
|
|
70
|
-
export interface
|
|
70
|
+
export interface MoonUIPopoverContentProProps
|
|
71
71
|
extends Omit<React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, 'side'>,
|
|
72
72
|
VariantProps<typeof popoverContentVariants> {
|
|
73
73
|
/**
|
|
@@ -84,7 +84,7 @@ export interface PopoverContentProps
|
|
|
84
84
|
overlayBackdrop?: boolean;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
const
|
|
87
|
+
const MoonUIPopoverContentPro = React.forwardRef<
|
|
88
88
|
React.ElementRef<typeof PopoverPrimitive.Content>,
|
|
89
89
|
PopoverContentProps
|
|
90
90
|
>(({
|
|
@@ -130,7 +130,7 @@ const PopoverContent = React.forwardRef<
|
|
|
130
130
|
/>
|
|
131
131
|
</>
|
|
132
132
|
));
|
|
133
|
-
|
|
133
|
+
MoonUIPopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* PopoverClose bileşeni
|
|
@@ -140,44 +140,46 @@ const PopoverClose = PopoverPrimitive.Close;
|
|
|
140
140
|
/**
|
|
141
141
|
* Popover için bölüm ayırıcı
|
|
142
142
|
*/
|
|
143
|
-
const
|
|
143
|
+
const MoonUIPopoverSeparator = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
144
144
|
<div
|
|
145
145
|
className={cn("my-2 h-px bg-border", className)}
|
|
146
146
|
{...props}
|
|
147
147
|
/>
|
|
148
148
|
);
|
|
149
|
-
|
|
149
|
+
MoonUIPopoverSeparator.displayName = "PopoverSeparator";
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* Popover başlık bileşeni
|
|
153
153
|
*/
|
|
154
|
-
const
|
|
154
|
+
const MoonUIPopoverHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
155
155
|
<div
|
|
156
156
|
className={cn("-mx-4 -mt-4 mb-3 px-4 pt-4 pb-3 border-b border-border", className)}
|
|
157
157
|
{...props}
|
|
158
158
|
/>
|
|
159
159
|
);
|
|
160
|
-
|
|
160
|
+
MoonUIPopoverHeader.displayName = "PopoverHeader";
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* Popover footer bileşeni
|
|
164
164
|
*/
|
|
165
|
-
const
|
|
165
|
+
const MoonUIPopoverFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
166
166
|
<div
|
|
167
167
|
className={cn("-mx-4 -mb-4 mt-3 px-4 pt-3 pb-4 border-t border-border", className)}
|
|
168
168
|
{...props}
|
|
169
169
|
/>
|
|
170
170
|
);
|
|
171
|
-
|
|
171
|
+
MoonUIPopoverFooter.displayName = "PopoverFooter";
|
|
172
172
|
|
|
173
|
-
export {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
PopoverContent,
|
|
173
|
+
export { MoonUIPopoverPro,
|
|
174
|
+
MoonUIPopoverTriggerPro,
|
|
175
|
+
MoonUIPopoverContentPro,
|
|
177
176
|
PopoverAnchor,
|
|
178
177
|
PopoverClose,
|
|
179
178
|
PopoverSeparator,
|
|
180
179
|
PopoverHeader,
|
|
181
180
|
PopoverFooter,
|
|
182
181
|
popoverContentVariants,
|
|
183
|
-
};
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
// Backward compatibility exports
|
|
185
|
+
export { MoonUIPopoverPro as Popover, MoonUISeparatorPro as Separator, MoonUIPopoverTriggerPro as PopoverTrigger, MoonUIPopoverContentPro as PopoverContent };
|
|
@@ -4,7 +4,7 @@ import * as React from "react"
|
|
|
4
4
|
import * as ProgressPrimitive from "@radix-ui/react-progress"
|
|
5
5
|
import { cn } from "../../lib/utils"
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const MoonUIProgressPro = React.forwardRef<
|
|
8
8
|
React.ElementRef<typeof ProgressPrimitive.Root>,
|
|
9
9
|
React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
|
|
10
10
|
>(({ className, value, ...props }, ref) => (
|
|
@@ -22,6 +22,9 @@ const Progress = React.forwardRef<
|
|
|
22
22
|
/>
|
|
23
23
|
</ProgressPrimitive.Root>
|
|
24
24
|
))
|
|
25
|
-
|
|
25
|
+
MoonUIProgress.displayName = ProgressPrimitive.Root.displayName
|
|
26
26
|
|
|
27
|
-
export {
|
|
27
|
+
export { MoonUIProgressPro };
|
|
28
|
+
|
|
29
|
+
// Backward compatibility exports
|
|
30
|
+
export { MoonUIProgressPro as Progress }
|
|
@@ -14,17 +14,17 @@ import { cn } from "../../lib/utils"
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
// Directly re-exporting the Root component
|
|
17
|
-
const
|
|
18
|
-
|
|
17
|
+
const MoonUISelectPro = SelectPrimitive.Root
|
|
18
|
+
MoonUISelectPro.displayName = "MoonUISelectPro"
|
|
19
19
|
|
|
20
|
-
const
|
|
20
|
+
const MoonUISelectGroupPro = SelectPrimitive.Group
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
const MoonUISelectValuePro = SelectPrimitive.Value
|
|
23
23
|
|
|
24
24
|
type SelectTriggerVariant = "standard" | "outline" | "ghost" | "underline";
|
|
25
25
|
type SelectTriggerSize = "sm" | "md" | "lg";
|
|
26
26
|
|
|
27
|
-
interface
|
|
27
|
+
interface MoonUISelectTriggerProProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {
|
|
28
28
|
/** Visual variant */
|
|
29
29
|
variant?: SelectTriggerVariant;
|
|
30
30
|
/** Size */
|
|
@@ -41,7 +41,7 @@ interface SelectTriggerProps extends React.ComponentPropsWithoutRef<typeof Selec
|
|
|
41
41
|
rightIcon?: React.ReactNode;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
const
|
|
44
|
+
const MoonUISelectTriggerPro = React.forwardRef<
|
|
45
45
|
React.ElementRef<typeof SelectPrimitive.Trigger>,
|
|
46
46
|
SelectTriggerProps
|
|
47
47
|
>(({ className, children, variant = "standard", size = "md", error, success, loading, leftIcon, rightIcon, ...props }, ref) => (
|
|
@@ -97,12 +97,12 @@ const SelectTrigger = React.forwardRef<
|
|
|
97
97
|
)}
|
|
98
98
|
</SelectPrimitive.Trigger>
|
|
99
99
|
))
|
|
100
|
-
|
|
100
|
+
MoonUISelectTrigger.displayName = SelectPrimitive.Trigger.displayName
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Scroll Up Button Component
|
|
104
104
|
*/
|
|
105
|
-
const
|
|
105
|
+
const MoonUISelectScrollUpButton = React.forwardRef<
|
|
106
106
|
React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
|
|
107
107
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
|
|
108
108
|
>(({ className, ...props }, ref) => (
|
|
@@ -117,12 +117,12 @@ const SelectScrollUpButton = React.forwardRef<
|
|
|
117
117
|
<ChevronUp className="h-4 w-4" />
|
|
118
118
|
</SelectPrimitive.ScrollUpButton>
|
|
119
119
|
))
|
|
120
|
-
|
|
120
|
+
MoonUISelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Scroll Down Button Component
|
|
124
124
|
*/
|
|
125
|
-
const
|
|
125
|
+
const MoonUISelectScrollDownButton = React.forwardRef<
|
|
126
126
|
React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
|
|
127
127
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
|
|
128
128
|
>(({ className, ...props }, ref) => (
|
|
@@ -137,10 +137,10 @@ const SelectScrollDownButton = React.forwardRef<
|
|
|
137
137
|
<ChevronDown className="h-4 w-4" />
|
|
138
138
|
</SelectPrimitive.ScrollDownButton>
|
|
139
139
|
))
|
|
140
|
-
|
|
140
|
+
MoonUISelectScrollDownButton.displayName =
|
|
141
141
|
SelectPrimitive.ScrollDownButton.displayName
|
|
142
142
|
|
|
143
|
-
const
|
|
143
|
+
const MoonUISelectContentPro = React.forwardRef<
|
|
144
144
|
React.ElementRef<typeof SelectPrimitive.Content>,
|
|
145
145
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
|
|
146
146
|
>(({ className, children, position = "item-aligned", ...props }, ref) => (
|
|
@@ -177,9 +177,9 @@ const SelectContent = React.forwardRef<
|
|
|
177
177
|
</SelectPrimitive.Content>
|
|
178
178
|
</SelectPrimitive.Portal>
|
|
179
179
|
))
|
|
180
|
-
|
|
180
|
+
MoonUISelectContent.displayName = SelectPrimitive.Content.displayName
|
|
181
181
|
|
|
182
|
-
const
|
|
182
|
+
const MoonUISelectLabelPro = React.forwardRef<
|
|
183
183
|
React.ElementRef<typeof SelectPrimitive.Label>,
|
|
184
184
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
|
|
185
185
|
>(({ className, ...props }, ref) => (
|
|
@@ -189,12 +189,12 @@ const SelectLabel = React.forwardRef<
|
|
|
189
189
|
{...props}
|
|
190
190
|
/>
|
|
191
191
|
))
|
|
192
|
-
|
|
192
|
+
MoonUISelectLabel.displayName = SelectPrimitive.Label.displayName
|
|
193
193
|
|
|
194
194
|
type SelectItemVariant = "default" | "subtle" | "destructive" | "success" | "warning";
|
|
195
195
|
type SelectItemSize = "sm" | "md" | "lg";
|
|
196
196
|
|
|
197
|
-
interface
|
|
197
|
+
interface MoonUISelectItemProProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
|
|
198
198
|
/** Visual variant */
|
|
199
199
|
variant?: SelectItemVariant;
|
|
200
200
|
/** Size */
|
|
@@ -205,7 +205,7 @@ interface SelectItemProps extends React.ComponentPropsWithoutRef<typeof SelectPr
|
|
|
205
205
|
customIndicator?: React.ReactNode;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
const
|
|
208
|
+
const MoonUISelectItemPro = React.forwardRef<
|
|
209
209
|
React.ElementRef<typeof SelectPrimitive.Item>,
|
|
210
210
|
SelectItemProps
|
|
211
211
|
>(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => (
|
|
@@ -245,9 +245,9 @@ const SelectItem = React.forwardRef<
|
|
|
245
245
|
)}
|
|
246
246
|
</SelectPrimitive.Item>
|
|
247
247
|
))
|
|
248
|
-
|
|
248
|
+
MoonUISelectItem.displayName = SelectPrimitive.Item.displayName
|
|
249
249
|
|
|
250
|
-
const
|
|
250
|
+
const MoonUISelectSeparatorPro = React.forwardRef<
|
|
251
251
|
React.ElementRef<typeof SelectPrimitive.Separator>,
|
|
252
252
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
|
|
253
253
|
>(({ className, ...props }, ref) => (
|
|
@@ -257,17 +257,19 @@ const SelectSeparator = React.forwardRef<
|
|
|
257
257
|
{...props}
|
|
258
258
|
/>
|
|
259
259
|
))
|
|
260
|
-
|
|
260
|
+
MoonUISelectSeparator.displayName = SelectPrimitive.Separator.displayName
|
|
261
261
|
|
|
262
|
-
export {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
SelectSeparator,
|
|
262
|
+
export { MoonUISelectPro,
|
|
263
|
+
MoonUISelectGroupPro,
|
|
264
|
+
MoonUISelectValuePro,
|
|
265
|
+
MoonUISelectTriggerPro,
|
|
266
|
+
MoonUISelectContentPro,
|
|
267
|
+
MoonUISelectLabelPro,
|
|
268
|
+
MoonUISelectItemPro,
|
|
269
|
+
MoonUISelectSeparatorPro,
|
|
271
270
|
SelectScrollUpButton,
|
|
272
271
|
SelectScrollDownButton,
|
|
273
|
-
}
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
// Backward compatibility exports
|
|
275
|
+
export { MoonUIButtonPro as Button, MoonUILabelPro as Label, MoonUISelectPro as Select, MoonUISeparatorPro as Separator, MoonUISelectTriggerPro as SelectTrigger, MoonUISelectContentPro as SelectContent, MoonUISelectItemPro as SelectItem, MoonUISelectValuePro as SelectValue, MoonUISelectGroupPro as SelectGroup, MoonUISelectLabelPro as SelectLabel, MoonUISelectSeparatorPro as SelectSeparator }
|