@moontra/moonui-pro 2.1.4 → 2.2.1

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.
Files changed (40) hide show
  1. package/dist/index.mjs +522 -522
  2. package/package.json +1 -1
  3. package/src/components/advanced-forms/index.tsx +3 -3
  4. package/src/components/calendar/index.tsx +1 -1
  5. package/src/components/dashboard/index.tsx +1 -1
  6. package/src/components/file-upload/index.tsx +1 -1
  7. package/src/components/github-stars/index.tsx +1 -1
  8. package/src/components/health-check/index.tsx +1 -1
  9. package/src/components/kanban/index.tsx +1 -1
  10. package/src/components/optimized-image/index.tsx +1 -1
  11. package/src/components/performance-debugger/index.tsx +1 -1
  12. package/src/components/performance-monitor/index.tsx +1 -1
  13. package/src/components/rich-text-editor/index.tsx +1 -1
  14. package/src/components/timeline/index.tsx +1 -1
  15. package/src/components/ui/animated-button.tsx +1 -1
  16. package/src/components/ui/avatar.tsx +10 -7
  17. package/src/components/ui/badge.tsx +10 -7
  18. package/src/components/ui/button.tsx +15 -11
  19. package/src/components/ui/card.tsx +19 -16
  20. package/src/components/ui/checkbox.tsx +8 -5
  21. package/src/components/ui/color-picker.tsx +6 -4
  22. package/src/components/ui/dialog.tsx +23 -21
  23. package/src/components/ui/dropdown-menu.tsx +36 -34
  24. package/src/components/ui/hover-card-3d.tsx +1 -1
  25. package/src/components/ui/input.tsx +9 -6
  26. package/src/components/ui/label.tsx +7 -4
  27. package/src/components/ui/magnetic-button.tsx +1 -1
  28. package/src/components/ui/popover.tsx +11 -9
  29. package/src/components/ui/progress.tsx +5 -2
  30. package/src/components/ui/select.tsx +23 -21
  31. package/src/components/ui/separator.tsx +8 -5
  32. package/src/components/ui/skeleton.tsx +1 -1
  33. package/src/components/ui/slider.tsx +8 -5
  34. package/src/components/ui/spotlight-card.tsx +1 -1
  35. package/src/components/ui/switch.tsx +6 -3
  36. package/src/components/ui/tabs.tsx +12 -9
  37. package/src/components/ui/textarea.tsx +7 -4
  38. package/src/components/ui/toast.tsx +9 -7
  39. package/src/components/ui/tooltip.tsx +13 -11
  40. package/src/use-performance-optimizer.ts +11 -1
@@ -6,19 +6,19 @@ import { Check, ChevronRight, Circle } from "lucide-react"
6
6
 
7
7
  import { cn } from "../../lib/utils"
8
8
 
9
- const DropdownMenu = DropdownMenuPrimitive.Root
9
+ const MoonUIDropdownMenuPro = DropdownMenuPrimitive.Root
10
10
 
11
- const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger
11
+ const MoonUIDropdownMenuTriggerPro = DropdownMenuPrimitive.Trigger
12
12
 
13
- const DropdownMenuGroup = DropdownMenuPrimitive.Group
13
+ const MoonUIDropdownMenuGroupPro = DropdownMenuPrimitive.Group
14
14
 
15
- const DropdownMenuPortal = DropdownMenuPrimitive.Portal
15
+ const MoonUIDropdownMenuPortalPro = DropdownMenuPrimitive.Portal
16
16
 
17
- const DropdownMenuSub = DropdownMenuPrimitive.Sub
17
+ const MoonUIDropdownMenuSubPro = DropdownMenuPrimitive.Sub
18
18
 
19
- const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup
19
+ const MoonUIDropdownMenuRadioGroupPro = DropdownMenuPrimitive.RadioGroup
20
20
 
21
- const DropdownMenuSubTrigger = React.forwardRef<
21
+ const MoonUIDropdownMenuSubTriggerPro = React.forwardRef<
22
22
  React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
23
23
  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
24
24
  inset?: boolean
@@ -40,7 +40,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
40
40
  DropdownMenuSubTrigger.displayName =
41
41
  DropdownMenuPrimitive.SubTrigger.displayName
42
42
 
43
- const DropdownMenuSubContent = React.forwardRef<
43
+ const MoonUIDropdownMenuSubContentPro = React.forwardRef<
44
44
  React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
45
45
  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
46
46
  >(({ className, ...props }, ref) => (
@@ -56,7 +56,7 @@ const DropdownMenuSubContent = React.forwardRef<
56
56
  DropdownMenuSubContent.displayName =
57
57
  DropdownMenuPrimitive.SubContent.displayName
58
58
 
59
- const DropdownMenuContent = React.forwardRef<
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) => (
@@ -74,7 +74,7 @@ const DropdownMenuContent = React.forwardRef<
74
74
  ))
75
75
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName
76
76
 
77
- const DropdownMenuItem = React.forwardRef<
77
+ const MoonUIDropdownMenuItemPro = React.forwardRef<
78
78
  React.ElementRef<typeof DropdownMenuPrimitive.Item>,
79
79
  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
80
80
  inset?: boolean
@@ -92,7 +92,7 @@ const DropdownMenuItem = React.forwardRef<
92
92
  ))
93
93
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
94
94
 
95
- const DropdownMenuCheckboxItem = React.forwardRef<
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) => (
@@ -116,7 +116,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
116
116
  DropdownMenuCheckboxItem.displayName =
117
117
  DropdownMenuPrimitive.CheckboxItem.displayName
118
118
 
119
- const DropdownMenuRadioItem = React.forwardRef<
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) => (
@@ -138,7 +138,7 @@ const DropdownMenuRadioItem = React.forwardRef<
138
138
  ))
139
139
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName
140
140
 
141
- const DropdownMenuLabel = React.forwardRef<
141
+ const MoonUIDropdownMenuLabelPro = React.forwardRef<
142
142
  React.ElementRef<typeof DropdownMenuPrimitive.Label>,
143
143
  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
144
144
  inset?: boolean
@@ -156,7 +156,7 @@ const DropdownMenuLabel = React.forwardRef<
156
156
  ))
157
157
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName
158
158
 
159
- const DropdownMenuSeparator = React.forwardRef<
159
+ const MoonUIDropdownMenuSeparatorPro = React.forwardRef<
160
160
  React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
161
161
  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
162
162
  >(({ className, ...props }, ref) => (
@@ -168,7 +168,7 @@ const DropdownMenuSeparator = React.forwardRef<
168
168
  ))
169
169
  DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName
170
170
 
171
- const DropdownMenuShortcut = ({
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
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut"
183
-
184
- export {
185
- DropdownMenu,
186
- DropdownMenuTrigger,
187
- DropdownMenuContent,
188
- DropdownMenuItem,
189
- DropdownMenuCheckboxItem,
190
- DropdownMenuRadioItem,
191
- DropdownMenuLabel,
192
- DropdownMenuSeparator,
193
- DropdownMenuShortcut,
194
- DropdownMenuGroup,
195
- DropdownMenuPortal,
196
- DropdownMenuSub,
197
- DropdownMenuSubContent,
198
- DropdownMenuSubTrigger,
199
- DropdownMenuRadioGroup,
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 "@/lib/utils";
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 inputVariants = cva(
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 InputProps
88
+ export interface MoonUIInputProProps
89
89
  extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">,
90
- Omit<VariantProps<typeof inputVariants>, "isDisabled" | "hasLeftIcon" | "hasRightIcon" | "hasRightButton"> {
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 Input = React.forwardRef<HTMLInputElement, InputProps>(
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
- Input.displayName = "Input";
217
+ MoonUIInputPro.displayName = "MoonUIInputPro";
218
218
 
219
- export { Input };
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 labelVariants = cva(
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 Label = React.forwardRef<
13
+ const MoonUILabelPro = React.forwardRef<
14
14
  React.ElementRef<typeof LabelPrimitive.Root>,
15
15
  React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
16
- VariantProps<typeof labelVariants>
16
+ VariantProps<typeof moonUILabelVariantsPro>
17
17
  >(({ className, ...props }, ref) => (
18
18
  <LabelPrimitive.Root
19
19
  ref={ref}
@@ -23,4 +23,7 @@ const Label = React.forwardRef<
23
23
  ))
24
24
  Label.displayName = LabelPrimitive.Root.displayName
25
25
 
26
- export { Label }
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 "@/lib/utils";
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 Popover = PopoverPrimitive.Root;
67
- const PopoverTrigger = PopoverPrimitive.Trigger;
66
+ const MoonUIPopoverPro = PopoverPrimitive.Root;
67
+ const MoonUIPopoverTriggerPro = PopoverPrimitive.Trigger;
68
68
  const PopoverAnchor = PopoverPrimitive.Anchor;
69
69
 
70
- export interface PopoverContentProps
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 PopoverContent = React.forwardRef<
87
+ const MoonUIPopoverContentPro = React.forwardRef<
88
88
  React.ElementRef<typeof PopoverPrimitive.Content>,
89
89
  PopoverContentProps
90
90
  >(({
@@ -170,14 +170,16 @@ const PopoverFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElem
170
170
  );
171
171
  PopoverFooter.displayName = "PopoverFooter";
172
172
 
173
- export {
174
- Popover,
175
- PopoverTrigger,
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 Progress = React.forwardRef<
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) => (
@@ -24,4 +24,7 @@ const Progress = React.forwardRef<
24
24
  ))
25
25
  Progress.displayName = ProgressPrimitive.Root.displayName
26
26
 
27
- export { Progress }
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 Select = SelectPrimitive.Root
18
- Select.displayName = "Select"
17
+ const MoonUISelectPro = SelectPrimitive.Root
18
+ MoonUISelectPro.displayName = "MoonUISelectPro"
19
19
 
20
- const SelectGroup = SelectPrimitive.Group
20
+ const MoonUISelectGroupPro = SelectPrimitive.Group
21
21
 
22
- const SelectValue = SelectPrimitive.Value
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 SelectTriggerProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {
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 SelectTrigger = React.forwardRef<
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) => (
@@ -140,7 +140,7 @@ const SelectScrollDownButton = React.forwardRef<
140
140
  SelectScrollDownButton.displayName =
141
141
  SelectPrimitive.ScrollDownButton.displayName
142
142
 
143
- const SelectContent = React.forwardRef<
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) => (
@@ -179,7 +179,7 @@ const SelectContent = React.forwardRef<
179
179
  ))
180
180
  SelectContent.displayName = SelectPrimitive.Content.displayName
181
181
 
182
- const SelectLabel = React.forwardRef<
182
+ const MoonUISelectLabelPro = React.forwardRef<
183
183
  React.ElementRef<typeof SelectPrimitive.Label>,
184
184
  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
185
185
  >(({ className, ...props }, ref) => (
@@ -194,7 +194,7 @@ SelectLabel.displayName = SelectPrimitive.Label.displayName
194
194
  type SelectItemVariant = "default" | "subtle" | "destructive" | "success" | "warning";
195
195
  type SelectItemSize = "sm" | "md" | "lg";
196
196
 
197
- interface SelectItemProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
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 SelectItem = React.forwardRef<
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) => (
@@ -247,7 +247,7 @@ const SelectItem = React.forwardRef<
247
247
  ))
248
248
  SelectItem.displayName = SelectPrimitive.Item.displayName
249
249
 
250
- const SelectSeparator = React.forwardRef<
250
+ const MoonUISelectSeparatorPro = React.forwardRef<
251
251
  React.ElementRef<typeof SelectPrimitive.Separator>,
252
252
  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
253
253
  >(({ className, ...props }, ref) => (
@@ -259,15 +259,17 @@ const SelectSeparator = React.forwardRef<
259
259
  ))
260
260
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName
261
261
 
262
- export {
263
- Select,
264
- SelectGroup,
265
- SelectValue,
266
- SelectTrigger,
267
- SelectContent,
268
- SelectLabel,
269
- SelectItem,
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 }
@@ -6,7 +6,7 @@ import { cva, type VariantProps } from "class-variance-authority"
6
6
 
7
7
  import { cn } from "../../lib/utils"
8
8
 
9
- const separatorVariants = cva(
9
+ const moonUISeparatorVariantsPro = cva(
10
10
  "shrink-0 bg-border",
11
11
  {
12
12
  variants: {
@@ -104,11 +104,11 @@ const separatorVariants = cva(
104
104
  }
105
105
  )
106
106
 
107
- export interface SeparatorProps
107
+ export interface MoonUISeparatorProProps
108
108
  extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>,
109
- VariantProps<typeof separatorVariants> {}
109
+ VariantProps<typeof moonUISeparatorVariantsPro> {}
110
110
 
111
- const Separator = React.forwardRef<
111
+ const MoonUISeparatorPro = React.forwardRef<
112
112
  React.ElementRef<typeof SeparatorPrimitive.Root>,
113
113
  SeparatorProps
114
114
  >(
@@ -137,4 +137,7 @@ const Separator = React.forwardRef<
137
137
  )
138
138
  Separator.displayName = SeparatorPrimitive.Root.displayName
139
139
 
140
- export { Separator, separatorVariants }
140
+ export { MoonUISeparatorPro, moonUISeparatorVariantsPro };
141
+
142
+ // Backward compatibility exports
143
+ export { MoonUISeparatorPro as Separator, moonUISeparatorVariantsPro as separatorVariants }
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { cn } from "../../lib/utils"
4
4
 
5
- interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {}
5
+ interface MoonUISkeletonProProps extends React.HTMLAttributes<HTMLDivElement> {}
6
6
 
7
7
  export function Skeleton({
8
8
  className,
@@ -12,7 +12,7 @@ import { cn } from "../../lib/utils"
12
12
  * Used for value ranges like volume, brightness, price ranges.
13
13
  */
14
14
 
15
- const sliderVariants = cva(
15
+ const moonUISliderVariantsPro = cva(
16
16
  "relative flex w-full touch-none select-none items-center",
17
17
  {
18
18
  variants: {
@@ -153,7 +153,7 @@ type SliderBaseProps = {
153
153
  /**
154
154
  * Slider size
155
155
  */
156
- size?: VariantProps<typeof sliderVariants>["size"];
156
+ size?: VariantProps<typeof moonUISliderVariantsPro>["size"];
157
157
  /**
158
158
  * Disabled state
159
159
  */
@@ -163,7 +163,7 @@ type SliderBaseProps = {
163
163
  // Merge HTML properties without defaultValue conflicts
164
164
  type SliderProps = SliderBaseProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue'>
165
165
 
166
- const Slider = React.forwardRef<
166
+ const MoonUISliderPro = React.forwardRef<
167
167
  HTMLDivElement,
168
168
  SliderProps
169
169
  >(({
@@ -346,6 +346,9 @@ const Slider = React.forwardRef<
346
346
  )
347
347
  })
348
348
 
349
- Slider.displayName = "Slider"
349
+ MoonUISliderPro.displayName = "MoonUISliderPro"
350
350
 
351
- export { Slider }
351
+ export { MoonUISliderPro };
352
+
353
+ // Backward compatibility exports
354
+ export { MoonUISliderPro as Slider }
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as React from "react";
4
4
  import { motion, useMotionValue, useSpring } from "framer-motion";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "../../lib/utils";
6
6
 
7
7
  export interface SpotlightCardProps extends React.HTMLAttributes<HTMLDivElement> {
8
8
  children: React.ReactNode;
@@ -8,7 +8,7 @@ import { cn } from "../../lib/utils"
8
8
  type SwitchSize = "sm" | "md" | "lg";
9
9
  type SwitchVariant = "primary" | "success" | "warning" | "danger" | "secondary";
10
10
 
11
- export interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
11
+ export interface MoonUISwitchProProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
12
12
  /** Switch boyutu */
13
13
  size?: SwitchSize;
14
14
  /** Switch renk varyantı */
@@ -23,7 +23,7 @@ export interface SwitchProps extends React.ComponentPropsWithoutRef<typeof Switc
23
23
  description?: string;
24
24
  }
25
25
 
26
- const Switch = React.forwardRef<
26
+ const MoonUISwitchPro = React.forwardRef<
27
27
  React.ElementRef<typeof SwitchPrimitives.Root>,
28
28
  SwitchProps
29
29
  >(({ className, size = "md", variant = "primary", loading, leftIcon, rightIcon, description, ...props }, ref) => (
@@ -79,5 +79,8 @@ const Switch = React.forwardRef<
79
79
  ))
80
80
  Switch.displayName = SwitchPrimitives.Root.displayName
81
81
 
82
- export { Switch }
82
+ export { MoonUISwitchPro };
83
+
84
+ // Backward compatibility exports
85
+ export { MoonUISwitchPro as Switch }
83
86
  export type { SwitchSize, SwitchVariant }
@@ -7,12 +7,12 @@ import { cn } from "../../lib/utils";
7
7
  /* -------------------------------------------------------------------------------------------------
8
8
  * Tabs Root
9
9
  * -----------------------------------------------------------------------------------------------*/
10
- interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
10
+ interface MoonUITabsProProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
11
11
  /** Mobil görünümde dikey düzen için */
12
12
  vertical?: boolean;
13
13
  }
14
14
 
15
- const Tabs = React.forwardRef<
15
+ const MoonUITabsPro = React.forwardRef<
16
16
  React.ElementRef<typeof TabsPrimitive.Root>,
17
17
  TabsProps
18
18
  >(({ vertical = false, ...props }, ref) => (
@@ -55,14 +55,14 @@ const tabsListVariants = cva(
55
55
  }
56
56
  );
57
57
 
58
- interface TabsListProps
58
+ interface MoonUITabsListProProps
59
59
  extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>,
60
60
  VariantProps<typeof tabsListVariants> {
61
61
  /** Dikey düzende göster */
62
62
  orientation?: "horizontal" | "vertical";
63
63
  }
64
64
 
65
- const TabsList = React.forwardRef<
65
+ const MoonUITabsListPro = React.forwardRef<
66
66
  React.ElementRef<typeof TabsPrimitive.List>,
67
67
  TabsListProps
68
68
  >(({ className, variant, orientation, fullWidth, ...props }, ref) => (
@@ -111,7 +111,7 @@ const tabsTriggerVariants = cva(
111
111
  }
112
112
  );
113
113
 
114
- interface TabsTriggerProps
114
+ interface MoonUITabsTriggerProProps
115
115
  extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>,
116
116
  VariantProps<typeof tabsTriggerVariants> {
117
117
  /** İkon konumu */
@@ -126,7 +126,7 @@ interface TabsTriggerProps
126
126
  orientation?: "horizontal" | "vertical";
127
127
  }
128
128
 
129
- const TabsTrigger = React.forwardRef<
129
+ const MoonUITabsTriggerPro = React.forwardRef<
130
130
  React.ElementRef<typeof TabsPrimitive.Trigger>,
131
131
  TabsTriggerProps
132
132
  >(({
@@ -169,13 +169,13 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
169
169
  /* -------------------------------------------------------------------------------------------------
170
170
  * TabsContent
171
171
  * -----------------------------------------------------------------------------------------------*/
172
- interface TabsContentProps
172
+ interface MoonUITabsContentProProps
173
173
  extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content> {
174
174
  /** İçerik animasyonu */
175
175
  animated?: boolean;
176
176
  }
177
177
 
178
- const TabsContent = React.forwardRef<
178
+ const MoonUITabsContentPro = React.forwardRef<
179
179
  React.ElementRef<typeof TabsPrimitive.Content>,
180
180
  TabsContentProps
181
181
  >(({ className, animated = false, ...props }, ref) => (
@@ -192,4 +192,7 @@ const TabsContent = React.forwardRef<
192
192
 
193
193
  TabsContent.displayName = TabsPrimitive.Content.displayName;
194
194
 
195
- export { Tabs, TabsList, TabsTrigger, TabsContent };
195
+ export { MoonUITabsPro, MoonUITabsListPro, MoonUITabsTriggerPro, MoonUITabsContentPro };
196
+
197
+ // Backward compatibility exports
198
+ export { MoonUITabsPro as Tabs, MoonUITabsListPro as TabsList, MoonUITabsTriggerPro as TabsTrigger, MoonUITabsContentPro as TabsContent };
@@ -3,10 +3,10 @@
3
3
  import React from "react"
4
4
  import { cn } from "../../lib/utils"
5
5
 
6
- export interface TextareaProps
6
+ export interface MoonUITextareaProProps
7
7
  extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
8
8
 
9
- const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
9
+ const MoonUITextareaPro = React.forwardRef<HTMLTextAreaElement, MoonUITextareaProProps>(
10
10
  ({ className, ...props }, ref) => {
11
11
  return (
12
12
  <textarea
@@ -20,6 +20,9 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
20
20
  )
21
21
  }
22
22
  )
23
- Textarea.displayName = "Textarea"
23
+ MoonUITextareaPro.displayName = "MoonUITextareaPro"
24
24
 
25
- export { Textarea }
25
+ export { MoonUITextareaPro };
26
+
27
+ // Backward compatibility exports
28
+ export { MoonUITextareaPro as Textarea }
@@ -23,7 +23,7 @@ const ToastViewport = React.forwardRef<
23
23
  ));
24
24
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
25
25
 
26
- const toastVariants = cva(
26
+ const moonUIToastVariantsPro = cva(
27
27
  "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-8 shadow-sm transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
28
28
  {
29
29
  variants: {
@@ -46,11 +46,11 @@ const toastVariants = cva(
46
46
  );
47
47
 
48
48
  type ToastProps = React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &
49
- VariantProps<typeof toastVariants>;
49
+ VariantProps<typeof moonUIToastVariantsPro>;
50
50
 
51
51
  type ToastActionElement = React.ReactElement<typeof ToastAction>;
52
52
 
53
- const Toast = React.forwardRef<
53
+ const MoonUIToastPro = React.forwardRef<
54
54
  React.ElementRef<typeof ToastPrimitives.Root>,
55
55
  ToastProps
56
56
  >(({ className, variant, ...props }, ref) => {
@@ -297,12 +297,11 @@ function Toaster() {
297
297
  );
298
298
  }
299
299
 
300
- export {
301
- type ToastProps,
300
+ export { type ToastProps,
302
301
  type ToastActionElement,
303
302
  ToastProvider,
304
303
  ToastViewport,
305
- Toast,
304
+ MoonUIToastPro,
306
305
  ToastTitle,
307
306
  ToastDescription,
308
307
  ToastAction,
@@ -310,4 +309,7 @@ export {
310
309
  Toaster,
311
310
  toast,
312
311
  useToast,
313
- };
312
+ };
313
+
314
+ // Backward compatibility exports
315
+ export { MoonUIToastPro as Toast };