@moontra/moonui 2.1.3 → 2.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "Premium React component library with modern design and customization",
5
5
  "author": "MoonUI",
6
6
  "license": "MIT",
@@ -45,15 +45,15 @@ export interface MoonUIAvatarProps
45
45
 
46
46
  const MoonUIAvatar = React.forwardRef<
47
47
  React.ElementRef<typeof AvatarPrimitive.Root>,
48
- AvatarProps
48
+ MoonUIAvatarProps
49
49
  >(({ className, size, radius, variant, ...props }, ref) => (
50
50
  <AvatarPrimitive.Root
51
51
  ref={ref}
52
- className={cn(avatarVariants({ size, radius, variant }), className)}
52
+ className={cn(moonUIAvatarVariants({ size, radius, variant }), className)}
53
53
  {...props}
54
54
  />
55
55
  ));
56
- Avatar.displayName = AvatarPrimitive.Root.displayName;
56
+ MoonUIAvatar.displayName = AvatarPrimitive.Root.displayName;
57
57
 
58
58
  const MoonUIAvatarImage = React.forwardRef<
59
59
  React.ElementRef<typeof AvatarPrimitive.Image>,
@@ -65,7 +65,7 @@ const MoonUIAvatarImage = React.forwardRef<
65
65
  {...props}
66
66
  />
67
67
  ));
68
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
68
+ MoonUIAvatarImage.displayName = AvatarPrimitive.Image.displayName;
69
69
 
70
70
  const MoonUIAvatarFallback = React.forwardRef<
71
71
  React.ElementRef<typeof AvatarPrimitive.Fallback>,
@@ -80,7 +80,7 @@ const MoonUIAvatarFallback = React.forwardRef<
80
80
  {...props}
81
81
  />
82
82
  ));
83
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
83
+ MoonUIAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
84
84
 
85
85
  // Avatar Group Component for displaying multiple avatars
86
86
  interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -89,7 +89,7 @@ interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
89
89
  overlapOffset?: number;
90
90
  }
91
91
 
92
- const AvatarGroup = React.forwardRef<HTMLDivElement, AvatarGroupProps>(
92
+ const MoonUIAvatarGroup = React.forwardRef<HTMLDivElement, AvatarGroupProps>(
93
93
  ({ className, limit, avatars, overlapOffset = -8, ...props }, ref) => {
94
94
  const visibleAvatars = limit ? avatars.slice(0, limit) : avatars;
95
95
  const remainingCount = limit ? Math.max(0, avatars.length - limit) : 0;
@@ -118,11 +118,11 @@ const AvatarGroup = React.forwardRef<HTMLDivElement, AvatarGroupProps>(
118
118
  className="relative z-0"
119
119
  style={{ marginLeft: `${overlapOffset}px` }}
120
120
  >
121
- <Avatar variant="border">
122
- <AvatarFallback>
121
+ <MoonUIAvatar variant="border">
122
+ <MoonUIAvatarFallback>
123
123
  +{remainingCount}
124
- </AvatarFallback>
125
- </Avatar>
124
+ </MoonUIAvatarFallback>
125
+ </MoonUIAvatar>
126
126
  </div>
127
127
  )}
128
128
  </div>
@@ -130,9 +130,9 @@ const AvatarGroup = React.forwardRef<HTMLDivElement, AvatarGroupProps>(
130
130
  );
131
131
  }
132
132
  );
133
- AvatarGroup.displayName = "AvatarGroup";
133
+ MoonUIAvatarGroup.displayName = "AvatarGroup";
134
134
 
135
- export { MoonUIAvatar, MoonUIAvatarImage, MoonUIAvatarFallback, AvatarGroup };
135
+ export { MoonUIAvatar, MoonUIAvatarImage, MoonUIAvatarFallback, MoonUIAvatarGroup };
136
136
 
137
137
  // Backward compatibility exports
138
- export { MoonUIAvatar as Avatar, MoonUIAvatarImage as AvatarImage, MoonUIAvatarFallback as AvatarFallback };
138
+ export { MoonUIAvatar as Avatar, MoonUIAvatarImage as AvatarImage, MoonUIAvatarFallback as AvatarFallback, MoonUIAvatarGroup as AvatarGroup };
@@ -120,7 +120,7 @@ export interface MoonUIBadgeProps
120
120
  * @param props.leftIcon - Badge'in solunda görüntülenecek ikon
121
121
  * @param props.rightIcon - Badge'in sağında görüntülenecek ikon
122
122
  */
123
- function Badge({
123
+ function MoonUIBadge({
124
124
  className,
125
125
  variant,
126
126
  size,
@@ -114,7 +114,7 @@ const MoonUICheckbox = React.forwardRef<
114
114
  </CheckboxPrimitive.Root>
115
115
  );
116
116
  });
117
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
117
+ MoonUICheckbox.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 CheckboxGroup = React.forwardRef<HTMLDivElement, CheckboxGroupProps>(
135
+ const MoonUICheckboxGroup = 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 CheckboxGroup = React.forwardRef<HTMLDivElement, CheckboxGroupProps>(
151
151
  );
152
152
  }
153
153
  );
154
- CheckboxGroup.displayName = "CheckboxGroup";
154
+ MoonUICheckboxGroup.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 CheckboxLabel = React.forwardRef<HTMLLabelElement, CheckboxLabelProps>(
176
+ const MoonUICheckboxLabel = 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 CheckboxLabel = React.forwardRef<HTMLLabelElement, CheckboxLabelProps>(
192
192
  );
193
193
  }
194
194
  );
195
- CheckboxLabel.displayName = "CheckboxLabel";
195
+ MoonUICheckboxLabel.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 CheckboxWithLabel = React.forwardRef<
213
+ const MoonUICheckboxWithLabel = React.forwardRef<
214
214
  React.ElementRef<typeof CheckboxPrimitive.Root>,
215
215
  CheckboxWithLabelProps
216
216
  >(({
@@ -251,7 +251,7 @@ const CheckboxWithLabel = React.forwardRef<
251
251
  </div>
252
252
  );
253
253
  });
254
- CheckboxWithLabel.displayName = "CheckboxWithLabel";
254
+ MoonUICheckboxWithLabel.displayName = "CheckboxWithLabel";
255
255
 
256
256
  export { MoonUICheckbox, CheckboxGroup, CheckboxLabel, CheckboxWithLabel };
257
257
 
@@ -72,7 +72,7 @@ const MoonUICollapsibleTrigger = React.forwardRef<
72
72
  </CollapsiblePrimitive.Trigger>
73
73
  )
74
74
  })
75
- CollapsibleTrigger.displayName = CollapsiblePrimitive.Trigger.displayName
75
+ MoonUICollapsibleTrigger.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",
@@ -113,7 +113,7 @@ const MoonUICollapsibleContent = React.forwardRef<
113
113
  <div className="p-4">{children}</div>
114
114
  </CollapsiblePrimitive.Content>
115
115
  ))
116
- CollapsibleContent.displayName = CollapsiblePrimitive.Content.displayName
116
+ MoonUICollapsibleContent.displayName = CollapsiblePrimitive.Content.displayName
117
117
 
118
118
  export { MoonUICollapsible,
119
119
  MoonUICollapsibleTrigger,
@@ -52,7 +52,7 @@ const MoonUICommand = React.forwardRef<
52
52
  {...props}
53
53
  />
54
54
  ))
55
- Command.displayName = CommandPrimitive.displayName
55
+ MoonUICommand.displayName = CommandPrimitive.displayName
56
56
 
57
57
  // CommandDialog bileşeni
58
58
  interface CommandDialogProps extends React.ComponentProps<typeof Dialog> {
@@ -100,7 +100,7 @@ const MoonUICommandInput = React.forwardRef<
100
100
  />
101
101
  </div>
102
102
  ))
103
- CommandInput.displayName = CommandPrimitive.Input.displayName
103
+ MoonUICommandInput.displayName = CommandPrimitive.Input.displayName
104
104
 
105
105
  // CommandList bileşeni
106
106
  interface MoonUICommandListProps
@@ -116,7 +116,7 @@ const MoonUICommandList = React.forwardRef<
116
116
  {...props}
117
117
  />
118
118
  ))
119
- CommandList.displayName = CommandPrimitive.List.displayName
119
+ MoonUICommandList.displayName = CommandPrimitive.List.displayName
120
120
 
121
121
  // CommandEmpty bileşeni
122
122
  interface MoonUICommandEmptyProps
@@ -132,7 +132,7 @@ const MoonUICommandEmpty = React.forwardRef<
132
132
  {...props}
133
133
  />
134
134
  ))
135
- CommandEmpty.displayName = CommandPrimitive.Empty.displayName
135
+ MoonUICommandEmpty.displayName = CommandPrimitive.Empty.displayName
136
136
 
137
137
  // CommandGroup bileşeni
138
138
  interface MoonUICommandGroupProps
@@ -151,7 +151,7 @@ const MoonUICommandGroup = React.forwardRef<
151
151
  {...props}
152
152
  />
153
153
  ))
154
- CommandGroup.displayName = CommandPrimitive.Group.displayName
154
+ MoonUICommandGroup.displayName = CommandPrimitive.Group.displayName
155
155
 
156
156
  // CommandSeparator bileşeni
157
157
  interface MoonUICommandSeparatorProps
@@ -167,7 +167,7 @@ const MoonUICommandSeparator = React.forwardRef<
167
167
  {...props}
168
168
  />
169
169
  ))
170
- CommandSeparator.displayName = CommandPrimitive.Separator.displayName
170
+ MoonUICommandSeparator.displayName = CommandPrimitive.Separator.displayName
171
171
 
172
172
  // CommandItem bileşeni
173
173
  interface MoonUICommandItemProps
@@ -186,7 +186,7 @@ const MoonUICommandItem = React.forwardRef<
186
186
  {...props}
187
187
  />
188
188
  ))
189
- CommandItem.displayName = CommandPrimitive.Item.displayName
189
+ MoonUICommandItem.displayName = CommandPrimitive.Item.displayName
190
190
 
191
191
  // CommandShortcut bileşeni - utility component
192
192
  const MoonUICommandShortcut = ({
@@ -17,7 +17,7 @@ import { cn } from "../../lib/utils";
17
17
 
18
18
  const MoonUIDialog = DialogPrimitive.Root;
19
19
  const MoonUIDialogTrigger = DialogPrimitive.Trigger;
20
- const DialogPortal = DialogPrimitive.Portal;
20
+ const MoonUIDialogPortal = DialogPrimitive.Portal;
21
21
  const MoonUIDialogClose = DialogPrimitive.Close;
22
22
 
23
23
  const overlayVariants = cva(
@@ -47,7 +47,7 @@ interface DialogOverlayProps
47
47
  extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>,
48
48
  VariantProps<typeof overlayVariants> {}
49
49
 
50
- const DialogOverlay = React.forwardRef<
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
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
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",
@@ -243,7 +243,7 @@ const MoonUIDialogContent = React.forwardRef<
243
243
  );
244
244
  }
245
245
  );
246
- DialogContent.displayName = DialogPrimitive.Content.displayName;
246
+ MoonUIDialogContent.displayName = DialogPrimitive.Content.displayName;
247
247
 
248
248
  const MoonUIDialogHeader = ({
249
249
  className,
@@ -286,7 +286,7 @@ const MoonUIDialogTitle = React.forwardRef<
286
286
  {...props}
287
287
  />
288
288
  ));
289
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
289
+ MoonUIDialogTitle.displayName = DialogPrimitive.Title.displayName;
290
290
 
291
291
  const MoonUIDialogDescription = React.forwardRef<
292
292
  React.ElementRef<typeof DialogPrimitive.Description>,
@@ -301,13 +301,13 @@ const MoonUIDialogDescription = React.forwardRef<
301
301
  {...props}
302
302
  />
303
303
  ));
304
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
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 DialogForm = React.forwardRef<
310
+ const MoonUIDialogForm = React.forwardRef<
311
311
  HTMLFormElement,
312
312
  React.HTMLAttributes<HTMLFormElement>
313
313
  >(({ className, ...props }, ref) => (
@@ -317,7 +317,7 @@ const DialogForm = React.forwardRef<
317
317
  {...props}
318
318
  />
319
319
  ));
320
- DialogForm.displayName = "DialogForm";
320
+ MoonUIDialogForm.displayName = "DialogForm";
321
321
 
322
322
  export { MoonUIDialog,
323
323
  MoonUIDialogTrigger,
@@ -37,7 +37,7 @@ const MoonUIDropdownMenuSubTrigger = React.forwardRef<
37
37
  <ChevronRight className="ml-auto h-4 w-4" />
38
38
  </DropdownMenuPrimitive.SubTrigger>
39
39
  ))
40
- DropdownMenuSubTrigger.displayName =
40
+ MoonUIDropdownMenuSubTrigger.displayName =
41
41
  DropdownMenuPrimitive.SubTrigger.displayName
42
42
 
43
43
  const MoonUIDropdownMenuSubContent = React.forwardRef<
@@ -53,7 +53,7 @@ const MoonUIDropdownMenuSubContent = React.forwardRef<
53
53
  {...props}
54
54
  />
55
55
  ))
56
- DropdownMenuSubContent.displayName =
56
+ MoonUIDropdownMenuSubContent.displayName =
57
57
  DropdownMenuPrimitive.SubContent.displayName
58
58
 
59
59
  const MoonUIDropdownMenuContent = React.forwardRef<
@@ -72,7 +72,7 @@ const MoonUIDropdownMenuContent = React.forwardRef<
72
72
  />
73
73
  </DropdownMenuPrimitive.Portal>
74
74
  ))
75
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName
75
+ MoonUIDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName
76
76
 
77
77
  const MoonUIDropdownMenuItem = React.forwardRef<
78
78
  React.ElementRef<typeof DropdownMenuPrimitive.Item>,
@@ -90,7 +90,7 @@ const MoonUIDropdownMenuItem = React.forwardRef<
90
90
  {...props}
91
91
  />
92
92
  ))
93
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
93
+ MoonUIDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
94
94
 
95
95
  const MoonUIDropdownMenuCheckboxItem = React.forwardRef<
96
96
  React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
@@ -113,7 +113,7 @@ const MoonUIDropdownMenuCheckboxItem = React.forwardRef<
113
113
  {children}
114
114
  </DropdownMenuPrimitive.CheckboxItem>
115
115
  ))
116
- DropdownMenuCheckboxItem.displayName =
116
+ MoonUIDropdownMenuCheckboxItem.displayName =
117
117
  DropdownMenuPrimitive.CheckboxItem.displayName
118
118
 
119
119
  const MoonUIDropdownMenuRadioItem = React.forwardRef<
@@ -136,7 +136,7 @@ const MoonUIDropdownMenuRadioItem = React.forwardRef<
136
136
  {children}
137
137
  </DropdownMenuPrimitive.RadioItem>
138
138
  ))
139
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName
139
+ MoonUIDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName
140
140
 
141
141
  const MoonUIDropdownMenuLabel = React.forwardRef<
142
142
  React.ElementRef<typeof DropdownMenuPrimitive.Label>,
@@ -154,7 +154,7 @@ const MoonUIDropdownMenuLabel = React.forwardRef<
154
154
  {...props}
155
155
  />
156
156
  ))
157
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName
157
+ MoonUIDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName
158
158
 
159
159
  const MoonUIDropdownMenuSeparator = React.forwardRef<
160
160
  React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
@@ -166,7 +166,7 @@ const MoonUIDropdownMenuSeparator = React.forwardRef<
166
166
  {...props}
167
167
  />
168
168
  ))
169
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName
169
+ MoonUIDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName
170
170
 
171
171
  const MoonUIDropdownMenuShortcut = ({
172
172
  className,
@@ -21,7 +21,7 @@ const MoonUILabel = React.forwardRef<
21
21
  {...props}
22
22
  />
23
23
  ))
24
- Label.displayName = LabelPrimitive.Root.displayName
24
+ MoonUILabel.displayName = LabelPrimitive.Root.displayName
25
25
 
26
26
  export { MoonUILabel };
27
27
 
@@ -13,7 +13,7 @@ const MoonUIPagination = ({ className, ...props }: React.ComponentProps<"nav">)
13
13
  )
14
14
  MoonUIPagination.displayName = "MoonUIPagination"
15
15
 
16
- const PaginationContent = React.forwardRef<
16
+ const MoonUIPaginationContent = React.forwardRef<
17
17
  HTMLUListElement,
18
18
  React.ComponentProps<"ul">
19
19
  >(({ className, ...props }, ref) => (
@@ -23,22 +23,22 @@ const PaginationContent = React.forwardRef<
23
23
  {...props}
24
24
  />
25
25
  ))
26
- PaginationContent.displayName = "PaginationContent"
26
+ MoonUIPaginationContent.displayName = "PaginationContent"
27
27
 
28
- const PaginationItem = React.forwardRef<
28
+ const MoonUIPaginationItem = React.forwardRef<
29
29
  HTMLLIElement,
30
30
  React.ComponentProps<"li">
31
31
  >(({ className, ...props }, ref) => (
32
32
  <li ref={ref} className={cn("", className)} {...props} />
33
33
  ))
34
- PaginationItem.displayName = "PaginationItem"
34
+ MoonUIPaginationItem.displayName = "PaginationItem"
35
35
 
36
36
  type PaginationLinkProps = {
37
37
  isActive?: boolean
38
38
  } & Pick<ButtonProps, "size"> &
39
39
  React.ComponentProps<"a">
40
40
 
41
- const PaginationLink = ({
41
+ const MoonUIPaginationLink = ({
42
42
  className,
43
43
  isActive,
44
44
  size = "icon",
@@ -56,9 +56,9 @@ const PaginationLink = ({
56
56
  {...props}
57
57
  />
58
58
  )
59
- PaginationLink.displayName = "PaginationLink"
59
+ MoonUIPaginationLink.displayName = "PaginationLink"
60
60
 
61
- const PaginationPrevious = ({
61
+ const MoonUIPaginationPrevious = ({
62
62
  className,
63
63
  ...props
64
64
  }: React.ComponentProps<typeof PaginationLink>) => (
@@ -72,9 +72,9 @@ const PaginationPrevious = ({
72
72
  <span>Previous</span>
73
73
  </PaginationLink>
74
74
  )
75
- PaginationPrevious.displayName = "PaginationPrevious"
75
+ MoonUIPaginationPrevious.displayName = "PaginationPrevious"
76
76
 
77
- const PaginationNext = ({
77
+ const MoonUIPaginationNext = ({
78
78
  className,
79
79
  ...props
80
80
  }: React.ComponentProps<typeof PaginationLink>) => (
@@ -88,9 +88,9 @@ const PaginationNext = ({
88
88
  <ChevronRight className="h-4 w-4" />
89
89
  </PaginationLink>
90
90
  )
91
- PaginationNext.displayName = "PaginationNext"
91
+ MoonUIPaginationNext.displayName = "PaginationNext"
92
92
 
93
- const PaginationEllipsis = ({
93
+ const MoonUIPaginationEllipsis = ({
94
94
  className,
95
95
  ...props
96
96
  }: React.ComponentProps<"span">) => (
@@ -103,7 +103,7 @@ const PaginationEllipsis = ({
103
103
  <span className="sr-only">More pages</span>
104
104
  </span>
105
105
  )
106
- PaginationEllipsis.displayName = "PaginationEllipsis"
106
+ MoonUIPaginationEllipsis.displayName = "PaginationEllipsis"
107
107
 
108
108
  export { MoonUIPagination,
109
109
  PaginationContent,
@@ -130,7 +130,7 @@ const MoonUIPopoverContent = React.forwardRef<
130
130
  />
131
131
  </>
132
132
  ));
133
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
133
+ MoonUIPopoverContent.displayName = PopoverPrimitive.Content.displayName;
134
134
 
135
135
  /**
136
136
  * PopoverClose bileşeni
@@ -140,35 +140,35 @@ const PopoverClose = PopoverPrimitive.Close;
140
140
  /**
141
141
  * Popover için bölüm ayırıcı
142
142
  */
143
- const PopoverSeparator = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
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
- PopoverSeparator.displayName = "PopoverSeparator";
149
+ MoonUIPopoverSeparator.displayName = "PopoverSeparator";
150
150
 
151
151
  /**
152
152
  * Popover başlık bileşeni
153
153
  */
154
- const PopoverHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
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
- PopoverHeader.displayName = "PopoverHeader";
160
+ MoonUIPopoverHeader.displayName = "PopoverHeader";
161
161
 
162
162
  /**
163
163
  * Popover footer bileşeni
164
164
  */
165
- const PopoverFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
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
- PopoverFooter.displayName = "PopoverFooter";
171
+ MoonUIPopoverFooter.displayName = "PopoverFooter";
172
172
 
173
173
  export { MoonUIPopover,
174
174
  MoonUIPopoverTrigger,
@@ -173,7 +173,7 @@ interface RadioLabelProps extends React.HTMLAttributes<HTMLLabelElement> {
173
173
  disabled?: boolean;
174
174
  }
175
175
 
176
- const RadioLabel = React.forwardRef<HTMLLabelElement, RadioLabelProps>(
176
+ const MoonUIRadioLabel = React.forwardRef<HTMLLabelElement, RadioLabelProps>(
177
177
  ({ className, htmlFor, children, disabled = false, ...props }, ref) => {
178
178
  return (
179
179
  <label
@@ -191,7 +191,7 @@ const RadioLabel = React.forwardRef<HTMLLabelElement, RadioLabelProps>(
191
191
  );
192
192
  }
193
193
  );
194
- RadioLabel.displayName = "RadioLabel";
194
+ MoonUIRadioLabel.displayName = "RadioLabel";
195
195
 
196
196
  // Radio Item and Label combination
197
197
  interface RadioItemWithLabelProps extends RadioGroupItemProps {
@@ -213,7 +213,7 @@ interface RadioItemWithLabelProps extends RadioGroupItemProps {
213
213
  disabled?: boolean;
214
214
  }
215
215
 
216
- const RadioItemWithLabel = React.forwardRef<
216
+ const MoonUIRadioItemWithLabel = React.forwardRef<
217
217
  HTMLInputElement,
218
218
  RadioItemWithLabelProps
219
219
  >(({
@@ -238,7 +238,7 @@ const RadioItemWithLabel = React.forwardRef<
238
238
  </div>
239
239
  );
240
240
  });
241
- RadioItemWithLabel.displayName = "RadioItemWithLabel";
241
+ MoonUIRadioItemWithLabel.displayName = "RadioItemWithLabel";
242
242
 
243
243
  export { MoonUIRadioGroup, MoonUIRadioGroupItem, RadioLabel, RadioItemWithLabel };
244
244
 
@@ -97,12 +97,12 @@ const MoonUISelectTrigger = React.forwardRef<
97
97
  )}
98
98
  </SelectPrimitive.Trigger>
99
99
  ))
100
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
100
+ MoonUISelectTrigger.displayName = SelectPrimitive.Trigger.displayName
101
101
 
102
102
  /**
103
103
  * Scroll Up Button Component
104
104
  */
105
- const SelectScrollUpButton = React.forwardRef<
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
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
120
+ MoonUISelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
121
121
 
122
122
  /**
123
123
  * Scroll Down Button Component
124
124
  */
125
- const SelectScrollDownButton = React.forwardRef<
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,7 +137,7 @@ const SelectScrollDownButton = React.forwardRef<
137
137
  <ChevronDown className="h-4 w-4" />
138
138
  </SelectPrimitive.ScrollDownButton>
139
139
  ))
140
- SelectScrollDownButton.displayName =
140
+ MoonUISelectScrollDownButton.displayName =
141
141
  SelectPrimitive.ScrollDownButton.displayName
142
142
 
143
143
  const MoonUISelectContent = React.forwardRef<
@@ -177,7 +177,7 @@ const MoonUISelectContent = React.forwardRef<
177
177
  </SelectPrimitive.Content>
178
178
  </SelectPrimitive.Portal>
179
179
  ))
180
- SelectContent.displayName = SelectPrimitive.Content.displayName
180
+ MoonUISelectContent.displayName = SelectPrimitive.Content.displayName
181
181
 
182
182
  const MoonUISelectLabel = React.forwardRef<
183
183
  React.ElementRef<typeof SelectPrimitive.Label>,
@@ -189,7 +189,7 @@ const MoonUISelectLabel = React.forwardRef<
189
189
  {...props}
190
190
  />
191
191
  ))
192
- SelectLabel.displayName = SelectPrimitive.Label.displayName
192
+ MoonUISelectLabel.displayName = SelectPrimitive.Label.displayName
193
193
 
194
194
  type SelectItemVariant = "default" | "subtle" | "destructive" | "success" | "warning";
195
195
  type SelectItemSize = "sm" | "md" | "lg";
@@ -245,7 +245,7 @@ const MoonUISelectItem = React.forwardRef<
245
245
  )}
246
246
  </SelectPrimitive.Item>
247
247
  ))
248
- SelectItem.displayName = SelectPrimitive.Item.displayName
248
+ MoonUISelectItem.displayName = SelectPrimitive.Item.displayName
249
249
 
250
250
  const MoonUISelectSeparator = React.forwardRef<
251
251
  React.ElementRef<typeof SelectPrimitive.Separator>,
@@ -257,7 +257,7 @@ const MoonUISelectSeparator = React.forwardRef<
257
257
  {...props}
258
258
  />
259
259
  ))
260
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName
260
+ MoonUISelectSeparator.displayName = SelectPrimitive.Separator.displayName
261
261
 
262
262
  export { MoonUISelect,
263
263
  MoonUISelectGroup,
@@ -135,7 +135,7 @@ const MoonUISeparator = React.forwardRef<
135
135
  />
136
136
  )
137
137
  )
138
- Separator.displayName = SeparatorPrimitive.Root.displayName
138
+ MoonUISeparator.displayName = SeparatorPrimitive.Root.displayName
139
139
 
140
140
  export { MoonUISeparator, moonUISeparatorVariants };
141
141