@moontra/moonui 2.1.5 → 2.1.7

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 (53) hide show
  1. package/dist/index.js +8251 -2872
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +8100 -2653
  4. package/dist/index.mjs.map +1 -1
  5. package/package.json +1 -1
  6. package/src/components/ui/accordion.tsx +8 -11
  7. package/src/components/ui/alert.tsx +10 -13
  8. package/src/components/ui/analyze-components.txt +4 -0
  9. package/src/components/ui/aspect-ratio.tsx +6 -9
  10. package/src/components/ui/avatar.tsx +18 -21
  11. package/src/components/ui/badge.tsx +5 -8
  12. package/src/components/ui/breadcrumb.tsx +29 -31
  13. package/src/components/ui/button.tsx +11 -15
  14. package/src/components/ui/calendar.tsx +6 -9
  15. package/src/components/ui/card.tsx +19 -22
  16. package/src/components/ui/checkbox.tsx +12 -15
  17. package/src/components/ui/collapsible.tsx +12 -14
  18. package/src/components/ui/color-picker.tsx +2 -2
  19. package/src/components/ui/command.tsx +33 -35
  20. package/src/components/ui/component-analysis-report.md +118 -0
  21. package/src/components/ui/data-table.tsx +2 -2
  22. package/src/components/ui/date-picker.tsx +9 -9
  23. package/src/components/ui/dialog.tsx +29 -31
  24. package/src/components/ui/draggable-list.tsx +81 -0
  25. package/src/components/ui/dropdown-menu.tsx +42 -44
  26. package/src/components/ui/file-upload.tsx +3 -3
  27. package/src/components/ui/gesture-drawer.tsx +146 -0
  28. package/src/components/ui/index.ts +43 -9
  29. package/src/components/ui/input.tsx +6 -9
  30. package/src/components/ui/label.tsx +5 -8
  31. package/src/components/ui/moon-logo.tsx +1 -1
  32. package/src/components/ui/pagination.tsx +17 -19
  33. package/src/components/ui/popover.tsx +16 -18
  34. package/src/components/ui/progress.tsx +6 -9
  35. package/src/components/ui/radio-group.tsx +11 -14
  36. package/src/components/ui/rich-text-editor/index.tsx +71 -0
  37. package/src/components/ui/select.tsx +30 -32
  38. package/src/components/ui/separator.tsx +6 -9
  39. package/src/components/ui/simple-editor.tsx +4 -4
  40. package/src/components/ui/skeleton.tsx +13 -16
  41. package/src/components/ui/slider.tsx +5 -8
  42. package/src/components/ui/swipeable-card.tsx +69 -0
  43. package/src/components/ui/switch.tsx +4 -7
  44. package/src/components/ui/table.tsx +29 -31
  45. package/src/components/ui/tabs.tsx +13 -16
  46. package/src/components/ui/textarea.tsx +4 -7
  47. package/src/components/ui/toast.tsx +18 -20
  48. package/src/components/ui/toggle.tsx +5 -8
  49. package/src/components/ui/tooltip.tsx +16 -18
  50. package/src/index.tsx +13 -7
  51. package/src/lib/utils.ts +2 -65
  52. package/src/components/ui/locked-component.tsx +0 -215
  53. package/src/use-pro-access.ts +0 -141
@@ -14,7 +14,7 @@ import { cn } from "../../lib/utils";
14
14
  * Form elemanları ve seçim listeleri için kullanılır.
15
15
  */
16
16
 
17
- const moonUICheckboxVariants = cva(
17
+ const checkboxVariants = cva(
18
18
  "peer shrink-0 border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary-foreground",
19
19
  {
20
20
  variants: {
@@ -53,9 +53,9 @@ const moonUICheckboxVariants = cva(
53
53
  }
54
54
  );
55
55
 
56
- export interface MoonUICheckboxProps
56
+ export interface CheckboxProps
57
57
  extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,
58
- VariantProps<typeof moonUICheckboxVariants> {
58
+ VariantProps<typeof checkboxVariants> {
59
59
  /**
60
60
  * İndeterminate durumu - grup seçimlerinde bazı öğeler seçilmişse kullanılır
61
61
  */
@@ -66,7 +66,7 @@ export interface MoonUICheckboxProps
66
66
  icon?: React.ReactNode;
67
67
  }
68
68
 
69
- const MoonUICheckbox = React.forwardRef<
69
+ const Checkbox = React.forwardRef<
70
70
  React.ElementRef<typeof CheckboxPrimitive.Root>,
71
71
  CheckboxProps
72
72
  >(({
@@ -114,7 +114,7 @@ const MoonUICheckbox = React.forwardRef<
114
114
  </CheckboxPrimitive.Root>
115
115
  );
116
116
  });
117
- MoonUICheckbox.displayName = CheckboxPrimitive.Root.displayName;
117
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
118
118
 
119
119
  // CheckboxGroup bileşeni
120
120
  interface CheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -132,7 +132,7 @@ interface CheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
132
132
  children: React.ReactNode;
133
133
  }
134
134
 
135
- const MoonUICheckboxGroup = React.forwardRef<HTMLDivElement, CheckboxGroupProps>(
135
+ const CheckboxGroup = React.forwardRef<HTMLDivElement, CheckboxGroupProps>(
136
136
  ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
137
137
  return (
138
138
  <div
@@ -151,7 +151,7 @@ const MoonUICheckboxGroup = React.forwardRef<HTMLDivElement, CheckboxGroupProps>
151
151
  );
152
152
  }
153
153
  );
154
- MoonUICheckboxGroup.displayName = "CheckboxGroup";
154
+ CheckboxGroup.displayName = "CheckboxGroup";
155
155
 
156
156
  // CheckboxLabel bileşeni
157
157
  interface CheckboxLabelProps extends React.HTMLAttributes<HTMLLabelElement> {
@@ -173,7 +173,7 @@ interface CheckboxLabelProps extends React.HTMLAttributes<HTMLLabelElement> {
173
173
  disabled?: boolean;
174
174
  }
175
175
 
176
- const MoonUICheckboxLabel = React.forwardRef<HTMLLabelElement, CheckboxLabelProps>(
176
+ const CheckboxLabel = React.forwardRef<HTMLLabelElement, CheckboxLabelProps>(
177
177
  ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
178
178
  return (
179
179
  <label
@@ -192,7 +192,7 @@ const MoonUICheckboxLabel = React.forwardRef<HTMLLabelElement, CheckboxLabelProp
192
192
  );
193
193
  }
194
194
  );
195
- MoonUICheckboxLabel.displayName = "CheckboxLabel";
195
+ CheckboxLabel.displayName = "CheckboxLabel";
196
196
 
197
197
  // Checkbox ve Label içeren bileşen
198
198
  interface CheckboxWithLabelProps extends CheckboxProps {
@@ -210,7 +210,7 @@ interface CheckboxWithLabelProps extends CheckboxProps {
210
210
  labelClassName?: string;
211
211
  }
212
212
 
213
- const MoonUICheckboxWithLabel = React.forwardRef<
213
+ const CheckboxWithLabel = React.forwardRef<
214
214
  React.ElementRef<typeof CheckboxPrimitive.Root>,
215
215
  CheckboxWithLabelProps
216
216
  >(({
@@ -251,9 +251,6 @@ const MoonUICheckboxWithLabel = React.forwardRef<
251
251
  </div>
252
252
  );
253
253
  });
254
- MoonUICheckboxWithLabel.displayName = "CheckboxWithLabel";
254
+ CheckboxWithLabel.displayName = "CheckboxWithLabel";
255
255
 
256
- export { MoonUICheckbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel };
257
-
258
- // Backward compatibility exports
259
- export { MoonUICheckbox as Checkbox, MoonUILabel as Label };
256
+ export { Checkbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel };
@@ -14,7 +14,7 @@ import { cn } from "../../lib/utils"
14
14
  * Tema sistemiyle tam entegre, erişilebilir ve özelleştirilebilir.
15
15
  */
16
16
 
17
- const MoonUICollapsible = CollapsiblePrimitive.Root
17
+ const Collapsible = CollapsiblePrimitive.Root
18
18
 
19
19
  const collapsibleTriggerVariants = cva(
20
20
  "flex w-full items-center justify-between transition-all",
@@ -39,11 +39,11 @@ const collapsibleTriggerVariants = cva(
39
39
  }
40
40
  )
41
41
 
42
- interface MoonUICollapsibleTriggerProps
42
+ interface CollapsibleTriggerProps
43
43
  extends React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Trigger>,
44
44
  VariantProps<typeof collapsibleTriggerVariants> {}
45
45
 
46
- const MoonUICollapsibleTrigger = React.forwardRef<
46
+ const CollapsibleTrigger = React.forwardRef<
47
47
  React.ElementRef<typeof CollapsiblePrimitive.Trigger>,
48
48
  CollapsibleTriggerProps
49
49
  >(({ className, children, variant, size, asChild, ...props }, ref) => {
@@ -72,7 +72,7 @@ const MoonUICollapsibleTrigger = React.forwardRef<
72
72
  </CollapsiblePrimitive.Trigger>
73
73
  )
74
74
  })
75
- MoonUICollapsibleTrigger.displayName = CollapsiblePrimitive.Trigger.displayName
75
+ CollapsibleTrigger.displayName = CollapsiblePrimitive.Trigger.displayName
76
76
 
77
77
  const collapsibleContentVariants = cva(
78
78
  "overflow-hidden transition-all data-[state=closed]:animate-collapse-up data-[state=open]:animate-collapse-down",
@@ -97,11 +97,11 @@ const collapsibleContentVariants = cva(
97
97
  }
98
98
  )
99
99
 
100
- interface MoonUICollapsibleContentProps
100
+ interface CollapsibleContentProps
101
101
  extends React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Content>,
102
102
  VariantProps<typeof collapsibleContentVariants> {}
103
103
 
104
- const MoonUICollapsibleContent = React.forwardRef<
104
+ const CollapsibleContent = React.forwardRef<
105
105
  React.ElementRef<typeof CollapsiblePrimitive.Content>,
106
106
  CollapsibleContentProps
107
107
  >(({ className, children, variant, size, ...props }, ref) => (
@@ -113,17 +113,15 @@ const MoonUICollapsibleContent = React.forwardRef<
113
113
  <div className="p-4">{children}</div>
114
114
  </CollapsiblePrimitive.Content>
115
115
  ))
116
- MoonUICollapsibleContent.displayName = CollapsiblePrimitive.Content.displayName
116
+ CollapsibleContent.displayName = CollapsiblePrimitive.Content.displayName
117
117
 
118
- export { MoonUICollapsible,
119
- MoonUICollapsibleTrigger,
120
- MoonUICollapsibleContent,
118
+ export {
119
+ Collapsible,
120
+ CollapsibleTrigger,
121
+ CollapsibleContent,
121
122
  collapsibleTriggerVariants,
122
123
  collapsibleContentVariants,
123
- };
124
-
125
- // Backward compatibility exports
126
- export { MoonUICollapsible as Collapsible, MoonUICollapsibleTrigger as CollapsibleTrigger, MoonUICollapsibleContent as CollapsibleContent }
124
+ }
127
125
 
128
126
  export type {
129
127
  CollapsibleTriggerProps,
@@ -131,7 +131,7 @@ function hslToHex(h: number, s: number, l: number): string {
131
131
  );
132
132
  }
133
133
 
134
- export interface MoonUIColorPickerProps
134
+ export interface ColorPickerProps
135
135
  extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "value">,
136
136
  VariantProps<typeof colorPickerVariants> {
137
137
  /**
@@ -661,4 +661,4 @@ export function GradientPicker({
661
661
  }
662
662
 
663
663
  // Re-export icons used
664
- export { Palette, Pipette } from "lucide-react";
664
+ export { Palette, Pipette } from "lucide-react";
@@ -38,11 +38,11 @@ const commandVariants = cva(
38
38
  )
39
39
 
40
40
  // Command bileşeni - cmdk primitive wrapper
41
- interface MoonUICommandProps
41
+ interface CommandProps
42
42
  extends React.ComponentProps<typeof CommandPrimitive>,
43
43
  VariantProps<typeof commandVariants> {}
44
44
 
45
- const MoonUICommand = React.forwardRef<
45
+ const Command = React.forwardRef<
46
46
  React.ElementRef<typeof CommandPrimitive>,
47
47
  CommandProps
48
48
  >(({ className, variant, size, ...props }, ref) => (
@@ -52,7 +52,7 @@ const MoonUICommand = React.forwardRef<
52
52
  {...props}
53
53
  />
54
54
  ))
55
- MoonUICommand.displayName = CommandPrimitive.displayName
55
+ Command.displayName = CommandPrimitive.displayName
56
56
 
57
57
  // CommandDialog bileşeni
58
58
  interface CommandDialogProps extends React.ComponentProps<typeof Dialog> {
@@ -81,10 +81,10 @@ const CommandDialog = ({
81
81
  }
82
82
 
83
83
  // CommandInput bileşeni
84
- interface MoonUICommandInputProps
84
+ interface CommandInputProps
85
85
  extends React.ComponentProps<typeof CommandPrimitive.Input> {}
86
86
 
87
- const MoonUICommandInput = React.forwardRef<
87
+ const CommandInput = React.forwardRef<
88
88
  React.ElementRef<typeof CommandPrimitive.Input>,
89
89
  CommandInputProps
90
90
  >(({ className, ...props }, ref) => (
@@ -100,13 +100,13 @@ const MoonUICommandInput = React.forwardRef<
100
100
  />
101
101
  </div>
102
102
  ))
103
- MoonUICommandInput.displayName = CommandPrimitive.Input.displayName
103
+ CommandInput.displayName = CommandPrimitive.Input.displayName
104
104
 
105
105
  // CommandList bileşeni
106
- interface MoonUICommandListProps
106
+ interface CommandListProps
107
107
  extends React.ComponentProps<typeof CommandPrimitive.List> {}
108
108
 
109
- const MoonUICommandList = React.forwardRef<
109
+ const CommandList = React.forwardRef<
110
110
  React.ElementRef<typeof CommandPrimitive.List>,
111
111
  CommandListProps
112
112
  >(({ className, ...props }, ref) => (
@@ -116,13 +116,13 @@ const MoonUICommandList = React.forwardRef<
116
116
  {...props}
117
117
  />
118
118
  ))
119
- MoonUICommandList.displayName = CommandPrimitive.List.displayName
119
+ CommandList.displayName = CommandPrimitive.List.displayName
120
120
 
121
121
  // CommandEmpty bileşeni
122
- interface MoonUICommandEmptyProps
122
+ interface CommandEmptyProps
123
123
  extends React.ComponentProps<typeof CommandPrimitive.Empty> {}
124
124
 
125
- const MoonUICommandEmpty = React.forwardRef<
125
+ const CommandEmpty = React.forwardRef<
126
126
  React.ElementRef<typeof CommandPrimitive.Empty>,
127
127
  CommandEmptyProps
128
128
  >(({ className, ...props }, ref) => (
@@ -132,13 +132,13 @@ const MoonUICommandEmpty = React.forwardRef<
132
132
  {...props}
133
133
  />
134
134
  ))
135
- MoonUICommandEmpty.displayName = CommandPrimitive.Empty.displayName
135
+ CommandEmpty.displayName = CommandPrimitive.Empty.displayName
136
136
 
137
137
  // CommandGroup bileşeni
138
- interface MoonUICommandGroupProps
138
+ interface CommandGroupProps
139
139
  extends React.ComponentProps<typeof CommandPrimitive.Group> {}
140
140
 
141
- const MoonUICommandGroup = React.forwardRef<
141
+ const CommandGroup = React.forwardRef<
142
142
  React.ElementRef<typeof CommandPrimitive.Group>,
143
143
  CommandGroupProps
144
144
  >(({ className, ...props }, ref) => (
@@ -151,13 +151,13 @@ const MoonUICommandGroup = React.forwardRef<
151
151
  {...props}
152
152
  />
153
153
  ))
154
- MoonUICommandGroup.displayName = CommandPrimitive.Group.displayName
154
+ CommandGroup.displayName = CommandPrimitive.Group.displayName
155
155
 
156
156
  // CommandSeparator bileşeni
157
- interface MoonUICommandSeparatorProps
157
+ interface CommandSeparatorProps
158
158
  extends React.ComponentProps<typeof CommandPrimitive.Separator> {}
159
159
 
160
- const MoonUICommandSeparator = React.forwardRef<
160
+ const CommandSeparator = React.forwardRef<
161
161
  React.ElementRef<typeof CommandPrimitive.Separator>,
162
162
  CommandSeparatorProps
163
163
  >(({ className, ...props }, ref) => (
@@ -167,13 +167,13 @@ const MoonUICommandSeparator = React.forwardRef<
167
167
  {...props}
168
168
  />
169
169
  ))
170
- MoonUICommandSeparator.displayName = CommandPrimitive.Separator.displayName
170
+ CommandSeparator.displayName = CommandPrimitive.Separator.displayName
171
171
 
172
172
  // CommandItem bileşeni
173
- interface MoonUICommandItemProps
173
+ interface CommandItemProps
174
174
  extends React.ComponentProps<typeof CommandPrimitive.Item> {}
175
175
 
176
- const MoonUICommandItem = React.forwardRef<
176
+ const CommandItem = React.forwardRef<
177
177
  React.ElementRef<typeof CommandPrimitive.Item>,
178
178
  CommandItemProps
179
179
  >(({ className, ...props }, ref) => (
@@ -186,10 +186,10 @@ const MoonUICommandItem = React.forwardRef<
186
186
  {...props}
187
187
  />
188
188
  ))
189
- MoonUICommandItem.displayName = CommandPrimitive.Item.displayName
189
+ CommandItem.displayName = CommandPrimitive.Item.displayName
190
190
 
191
191
  // CommandShortcut bileşeni - utility component
192
- const MoonUICommandShortcut = ({
192
+ const CommandShortcut = ({
193
193
  className,
194
194
  ...props
195
195
  }: React.HTMLAttributes<HTMLSpanElement>) => {
@@ -203,18 +203,16 @@ const MoonUICommandShortcut = ({
203
203
  />
204
204
  )
205
205
  }
206
- MoonUICommandShortcut.displayName = "MoonUICommandShortcut"
206
+ CommandShortcut.displayName = "CommandShortcut"
207
207
 
208
- export { MoonUICommand,
208
+ export {
209
+ Command,
209
210
  CommandDialog,
210
- MoonUICommandInput,
211
- MoonUICommandList,
212
- MoonUICommandEmpty,
213
- MoonUICommandGroup,
214
- MoonUICommandItem,
215
- MoonUICommandShortcut,
216
- MoonUICommandSeparator,
217
- };
218
-
219
- // Backward compatibility exports
220
- export { MoonUICommand as Command, MoonUIDialog as Dialog, MoonUIInput as Input, MoonUISeparator as Separator, MoonUICommandInput as CommandInput, MoonUICommandEmpty as CommandEmpty, MoonUICommandGroup as CommandGroup, MoonUICommandItem as CommandItem, MoonUICommandList as CommandList, MoonUICommandSeparator as CommandSeparator, MoonUICommandShortcut as CommandShortcut }
211
+ CommandInput,
212
+ CommandList,
213
+ CommandEmpty,
214
+ CommandGroup,
215
+ CommandItem,
216
+ CommandShortcut,
217
+ CommandSeparator,
218
+ }
@@ -0,0 +1,118 @@
1
+ # MoonUI Component Analysis Report
2
+
3
+ ## Summary
4
+
5
+ Total components in `/src/components/ui/`: **55 files**
6
+
7
+ ### Component Categories
8
+
9
+ #### 🎯 Pro Components (24 components)
10
+ These are wrapper components that require the `@moontra/moonui-pro` package:
11
+
12
+ 1. **advanced-chart.tsx** - Advanced charting component (wrapper)
13
+ 2. **animated-button.tsx** - Button with animations (wrapper)
14
+ 3. **calendar.tsx** - Calendar component (wrapper)
15
+ 4. **dashboard.tsx** - Dashboard layout component (wrapper)
16
+ 5. **draggable-list.tsx** - Draggable list component (wrapper)
17
+ 6. **error-boundary.tsx** - Error boundary component (wrapper)
18
+ 7. **file-upload.tsx** - File upload component (wrapper)
19
+ 8. **floating-action-button.tsx** - FAB component (wrapper)
20
+ 9. **github-stars.tsx** - GitHub stars display (wrapper)
21
+ 10. **health-check.tsx** - Health check monitoring (wrapper)
22
+ 11. **hover-card-3d.tsx** - 3D hover effect card (wrapper)
23
+ 12. **kanban.tsx** - Kanban board component (wrapper)
24
+ 13. **lazy-component.tsx** - Lazy loading component (wrapper)
25
+ 14. **magnetic-button.tsx** - Magnetic effect button (wrapper)
26
+ 15. **memory-efficient-data.tsx** - Memory optimized data display (wrapper)
27
+ 16. **optimized-image.tsx** - Optimized image component (wrapper)
28
+ 17. **performance-debugger.tsx** - Performance debugging tool (wrapper)
29
+ 18. **performance-monitor.tsx** - Performance monitoring tool (wrapper)
30
+ 19. **pinch-zoom.tsx** - Pinch zoom component (wrapper)
31
+ 20. **rich-text-editor.tsx** - Rich text editor (wrapper)
32
+ 21. **spotlight-card.tsx** - Spotlight effect card (wrapper)
33
+ 22. **swipeable-card.tsx** - Swipeable card component (wrapper)
34
+ 23. **timeline.tsx** - Timeline component (wrapper)
35
+ 24. **virtual-list.tsx** - Virtual scrolling list (wrapper)
36
+
37
+ #### ✅ Free Components - Fully Implemented (23 components)
38
+ These components have complete implementations:
39
+
40
+ 1. **aspect-ratio.tsx** - Aspect ratio container
41
+ 2. **avatar.tsx** - Avatar component with variants
42
+ 3. **badge.tsx** - Badge component with variants
43
+ 4. **breadcrumb.tsx** - Breadcrumb navigation
44
+ 5. **button.tsx** - Button component with 12 variants (primary, secondary, outline, ghost, destructive, success, link, gradient, glow, soft, glass, neon)
45
+ 6. **card.tsx** - Card container components
46
+ 7. **checkbox.tsx** - Checkbox with variants
47
+ 8. **collapsible.tsx** - Collapsible content component
48
+ 9. **color-picker.tsx** - Color picker component
49
+ 10. **command.tsx** - Command palette component
50
+ 11. **date-picker.tsx** - Date picker with calendar
51
+ 12. **dialog.tsx** - Dialog/Modal component
52
+ 13. **gesture-drawer.tsx** - Gesture-enabled drawer
53
+ 14. **input.tsx** - Input field with variants
54
+ 15. **label.tsx** - Label component
55
+ 16. **pagination.tsx** - Pagination component
56
+ 17. **popover.tsx** - Popover component
57
+ 18. **radio-group.tsx** - Radio group component
58
+ 19. **select.tsx** - Select dropdown component
59
+ 20. **simple-editor.tsx** - Simple text editor
60
+ 21. **slider.tsx** - Slider component
61
+ 22. **switch.tsx** - Toggle switch component
62
+ 23. **table.tsx** - Table component with sorting
63
+ 24. **tabs.tsx** - Tabs component
64
+ 25. **toggle.tsx** - Toggle button component
65
+ 26. **tooltip.tsx** - Tooltip component
66
+
67
+ #### ❌ Empty/Placeholder Components (8 components)
68
+ These files exist but are empty or contain only comments:
69
+
70
+ 1. **accordion.tsx** - Empty file (21 bytes)
71
+ 2. **alert.tsx** - Empty file (21 bytes)
72
+ 3. **dropdown-menu.tsx** - Empty file (21 bytes)
73
+ 4. **progress.tsx** - Empty file (21 bytes)
74
+ 5. **separator.tsx** - Empty file (21 bytes)
75
+ 6. **skeleton.tsx** - Empty file (21 bytes)
76
+ 7. **textarea.tsx** - Empty file (21 bytes)
77
+ 8. **toast.tsx** - Empty file (21 bytes)
78
+
79
+ ## Component Status Summary
80
+
81
+ | Status | Count | Percentage |
82
+ |--------|-------|------------|
83
+ | ✅ Free (Implemented) | 23 | 42% |
84
+ | 🎯 Pro (Wrapper) | 24 | 44% |
85
+ | ❌ Empty/Placeholder | 8 | 14% |
86
+ | **Total** | **55** | **100%** |
87
+
88
+ ## Implementation Quality
89
+
90
+ ### Pro Component Wrappers
91
+ All pro component wrappers follow a consistent pattern:
92
+ - Proper TypeScript interfaces defined
93
+ - Try-catch block to import from `@moontra/moonui-pro`
94
+ - Fallback UI showing the component requires pro package
95
+ - Proper exports for component and types
96
+
97
+ ### Free Components
98
+ Free components show good implementation quality:
99
+ - Built on Radix UI primitives where applicable
100
+ - Use CVA (class-variance-authority) for variant management
101
+ - Proper TypeScript typing
102
+ - Forward ref pattern for DOM access
103
+ - Consistent styling with Tailwind CSS
104
+ - Dark mode support
105
+
106
+ ## Recommendations
107
+
108
+ 1. **Complete Empty Components**: The 8 empty components (accordion, alert, dropdown-menu, progress, separator, skeleton, textarea, toast) need to be implemented or removed.
109
+
110
+ 2. **Documentation**: All implemented components appear to be working correctly but would benefit from usage documentation.
111
+
112
+ 3. **Testing**: Consider adding tests for both free and pro components to ensure wrapper behavior works correctly.
113
+
114
+ 4. **Component Showcase**: The component showcase page should clearly distinguish between free and pro components for users.
115
+
116
+ ## Conclusion
117
+
118
+ The MoonUI component library has a good foundation with 47 active components (23 free + 24 pro). The pro component wrapper pattern is well-implemented and consistent. The main area needing attention is the 8 empty placeholder files that should either be implemented or removed to avoid confusion.
@@ -99,7 +99,7 @@ const dataTableVariants = cva(
99
99
  }
100
100
  );
101
101
 
102
- interface MoonUIDataTableProps<TData, TValue>
102
+ interface DataTableProps<TData, TValue>
103
103
  extends VariantProps<typeof dataTableVariants> {
104
104
  /**
105
105
  * The table columns definition
@@ -620,4 +620,4 @@ export function createFilterableColumn<TData, TValue>(
620
620
  }
621
621
 
622
622
  // Export utilities
623
- export { type ColumnDef } from "@tanstack/react-table";
623
+ export { type ColumnDef } from "@tanstack/react-table";
@@ -4,16 +4,16 @@ import * as React from "react";
4
4
  import { format, isValid } from "date-fns";
5
5
  import { Calendar as CalendarIcon, Clock } from "lucide-react";
6
6
  import { cn } from "../../lib/utils";
7
- import { MoonUIButton as Button } from "./button";
8
- import { MoonUICalendar as Calendar } from "./calendar";
7
+ import { Button } from "./button";
8
+ import { Calendar } from "./calendar";
9
9
  import {
10
- MoonUIPopover as Popover,
11
- MoonUIPopoverContent as PopoverContent,
12
- MoonUIPopoverTrigger as PopoverTrigger,
10
+ Popover,
11
+ PopoverContent,
12
+ PopoverTrigger,
13
13
  } from "./popover";
14
14
  import { cva, type VariantProps } from "class-variance-authority";
15
15
  import { motion, AnimatePresence } from "framer-motion";
16
- import { microInteractionVariants } from "../../lib/micro-interactions";
16
+ import { microInteractionVariants } from "@/lib/micro-interactions";
17
17
 
18
18
  /**
19
19
  * DatePicker Component
@@ -52,8 +52,8 @@ const datePickerVariants = cva(
52
52
  }
53
53
  );
54
54
 
55
- export interface MoonUIDatePickerProps
56
- extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange">,
55
+ export interface DatePickerProps
56
+ extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "value">,
57
57
  VariantProps<typeof datePickerVariants> {
58
58
  /**
59
59
  * Selected date value
@@ -597,7 +597,7 @@ export function MonthPicker({
597
597
  }
598
598
 
599
599
  // Re-export utilities
600
- export { format } from "date-fns";
600
+ export { format } from "date-fns";
601
601
 
602
602
  // Import ChevronLeft and ChevronRight for MonthPicker
603
603
  import { ChevronLeft, ChevronRight } from "lucide-react";
@@ -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 MoonUIDialog = DialogPrimitive.Root;
19
- const MoonUIDialogTrigger = DialogPrimitive.Trigger;
20
- const MoonUIDialogPortal = DialogPrimitive.Portal;
21
- const MoonUIDialogClose = DialogPrimitive.Close;
18
+ const Dialog = DialogPrimitive.Root;
19
+ const DialogTrigger = DialogPrimitive.Trigger;
20
+ const DialogPortal = DialogPrimitive.Portal;
21
+ const DialogClose = 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 MoonUIDialogOverlay = React.forwardRef<
50
+ const DialogOverlay = React.forwardRef<
51
51
  React.ElementRef<typeof DialogPrimitive.Overlay>,
52
52
  DialogOverlayProps
53
53
  >(({ className, variant, animation, ...props }, ref) => (
@@ -57,7 +57,7 @@ const MoonUIDialogOverlay = React.forwardRef<
57
57
  {...props}
58
58
  />
59
59
  ));
60
- MoonUIDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
60
+ DialogOverlay.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 MoonUIDialogContentProps
114
+ interface DialogContentProps
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 MoonUIDialogContentProps
134
134
  onClose?: () => void;
135
135
  }
136
136
 
137
- const MoonUIDialogContent = React.forwardRef<
137
+ const DialogContent = React.forwardRef<
138
138
  React.ElementRef<typeof DialogPrimitive.Content>,
139
139
  DialogContentProps
140
140
  >(
@@ -243,9 +243,9 @@ const MoonUIDialogContent = React.forwardRef<
243
243
  );
244
244
  }
245
245
  );
246
- MoonUIDialogContent.displayName = DialogPrimitive.Content.displayName;
246
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
247
247
 
248
- const MoonUIDialogHeader = ({
248
+ const DialogHeader = ({
249
249
  className,
250
250
  ...props
251
251
  }: React.HTMLAttributes<HTMLDivElement>) => (
@@ -257,9 +257,9 @@ const MoonUIDialogHeader = ({
257
257
  {...props}
258
258
  />
259
259
  );
260
- MoonUIDialogHeader.displayName = "MoonUIDialogHeader";
260
+ DialogHeader.displayName = "DialogHeader";
261
261
 
262
- const MoonUIDialogFooter = ({
262
+ const DialogFooter = ({
263
263
  className,
264
264
  ...props
265
265
  }: React.HTMLAttributes<HTMLDivElement>) => (
@@ -271,9 +271,9 @@ const MoonUIDialogFooter = ({
271
271
  {...props}
272
272
  />
273
273
  );
274
- MoonUIDialogFooter.displayName = "MoonUIDialogFooter";
274
+ DialogFooter.displayName = "DialogFooter";
275
275
 
276
- const MoonUIDialogTitle = React.forwardRef<
276
+ const DialogTitle = 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 MoonUIDialogTitle = React.forwardRef<
286
286
  {...props}
287
287
  />
288
288
  ));
289
- MoonUIDialogTitle.displayName = DialogPrimitive.Title.displayName;
289
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
290
290
 
291
- const MoonUIDialogDescription = React.forwardRef<
291
+ const DialogDescription = 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 MoonUIDialogDescription = React.forwardRef<
301
301
  {...props}
302
302
  />
303
303
  ));
304
- MoonUIDialogDescription.displayName = DialogPrimitive.Description.displayName;
304
+ DialogDescription.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 MoonUIDialogForm = React.forwardRef<
310
+ const DialogForm = React.forwardRef<
311
311
  HTMLFormElement,
312
312
  React.HTMLAttributes<HTMLFormElement>
313
313
  >(({ className, ...props }, ref) => (
@@ -317,18 +317,16 @@ const MoonUIDialogForm = React.forwardRef<
317
317
  {...props}
318
318
  />
319
319
  ));
320
- MoonUIDialogForm.displayName = "DialogForm";
320
+ DialogForm.displayName = "DialogForm";
321
321
 
322
- export { MoonUIDialog,
323
- MoonUIDialogTrigger,
324
- MoonUIDialogContent,
325
- MoonUIDialogHeader,
326
- MoonUIDialogFooter,
327
- MoonUIDialogTitle,
328
- MoonUIDialogDescription,
329
- MoonUIDialogClose,
322
+ export {
323
+ Dialog,
324
+ DialogTrigger,
325
+ DialogContent,
326
+ DialogHeader,
327
+ DialogFooter,
328
+ DialogTitle,
329
+ DialogDescription,
330
+ DialogClose,
330
331
  DialogForm,
331
- };
332
-
333
- // Backward compatibility exports
334
- export { MoonUIDialog as Dialog, MoonUIDialogContent as DialogContent, MoonUIDialogHeader as DialogHeader, MoonUIDialogFooter as DialogFooter, MoonUIDialogTitle as DialogTitle, MoonUIDialogDescription as DialogDescription, MoonUIDialogTrigger as DialogTrigger, MoonUIDialogClose as DialogClose };
332
+ };