@moontra/moonui-pro 2.2.2 → 2.2.4
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 +41089 -39395
- package/package.json +1 -2
- package/src/components/index.ts +4 -2
- package/src/components/internal/index.ts +78 -0
- package/src/components/ui/accordion.tsx +73 -0
- package/src/components/ui/alert.tsx +142 -0
- package/src/components/ui/aspect-ratio.tsx +81 -0
- package/src/components/ui/breadcrumb.tsx +221 -0
- package/src/components/ui/checkbox.tsx +2 -2
- package/src/components/ui/collapsible.tsx +135 -0
- package/src/components/ui/command.tsx +225 -0
- package/src/components/ui/dropdown-menu.tsx +18 -2
- package/src/components/ui/index.ts +157 -35
- package/src/components/ui/label.tsx +2 -2
- package/src/components/ui/pagination.tsx +122 -0
- package/src/components/ui/radio-group.tsx +261 -0
- package/src/components/ui/table.tsx +334 -0
- package/src/components/ui/toggle.tsx +56 -0
- package/src/utils/cn.ts +2 -65
- package/dist/index.d.ts +0 -850
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"
|
|
5
|
+
import { cva, type VariantProps } from "class-variance-authority"
|
|
6
|
+
import { ChevronDown } from "lucide-react"
|
|
7
|
+
|
|
8
|
+
import { cn } from "../../lib/utils"
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Collapsible (Daraltılabilir) Bileşeni
|
|
12
|
+
*
|
|
13
|
+
* İçeriği genişletilip daraltılabilen hafif bir bileşendir.
|
|
14
|
+
* Tema sistemiyle tam entegre, erişilebilir ve özelleştirilebilir.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const MoonUICollapsiblePro = CollapsiblePrimitive.Root
|
|
18
|
+
|
|
19
|
+
const MoonUIcollapsibleTriggerVariantsPro = cva(
|
|
20
|
+
"flex w-full items-center justify-between transition-all",
|
|
21
|
+
{
|
|
22
|
+
variants: {
|
|
23
|
+
variant: {
|
|
24
|
+
default: "text-foreground hover:text-primary",
|
|
25
|
+
ghost: "text-foreground hover:bg-accent/10 rounded",
|
|
26
|
+
outline: "text-foreground border border-border rounded-t-md hover:bg-accent/5",
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
sm: "text-xs py-2 px-3",
|
|
30
|
+
default: "text-sm py-3 px-4",
|
|
31
|
+
md: "text-base py-4 px-4",
|
|
32
|
+
lg: "text-lg py-5 px-5",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
variant: "default",
|
|
37
|
+
size: "default",
|
|
38
|
+
},
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
interface CollapsibleTriggerProps
|
|
43
|
+
extends React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Trigger>,
|
|
44
|
+
VariantProps<typeof MoonUIcollapsibleTriggerVariantsPro> {}
|
|
45
|
+
|
|
46
|
+
const MoonUICollapsibleTriggerPro = React.forwardRef<
|
|
47
|
+
React.ElementRef<typeof CollapsiblePrimitive.Trigger>,
|
|
48
|
+
CollapsibleTriggerProps
|
|
49
|
+
>(({ className, children, variant, size, asChild, ...props }, ref) => {
|
|
50
|
+
// asChild kullanıldığında otomatik ikon eklemeyi atla
|
|
51
|
+
if (asChild) {
|
|
52
|
+
return (
|
|
53
|
+
<CollapsiblePrimitive.Trigger
|
|
54
|
+
ref={ref}
|
|
55
|
+
className={cn(MoonUIcollapsibleTriggerVariantsPro({ variant, size }), className)}
|
|
56
|
+
asChild={asChild}
|
|
57
|
+
{...props}
|
|
58
|
+
>
|
|
59
|
+
{children}
|
|
60
|
+
</CollapsiblePrimitive.Trigger>
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<CollapsiblePrimitive.Trigger
|
|
66
|
+
ref={ref}
|
|
67
|
+
className={cn(MoonUIcollapsibleTriggerVariantsPro({ variant, size }), className)}
|
|
68
|
+
{...props}
|
|
69
|
+
>
|
|
70
|
+
{children}
|
|
71
|
+
<ChevronDown className="h-4 w-4 shrink-0 ml-auto transition-transform duration-200 [&[data-state=open]]:rotate-180" />
|
|
72
|
+
</CollapsiblePrimitive.Trigger>
|
|
73
|
+
)
|
|
74
|
+
})
|
|
75
|
+
MoonUICollapsibleTriggerPro.displayName = CollapsiblePrimitive.Trigger.displayName
|
|
76
|
+
|
|
77
|
+
const MoonUIcollapsibleContentVariantsPro = cva(
|
|
78
|
+
"overflow-hidden transition-all data-[state=closed]:animate-collapse-up data-[state=open]:animate-collapse-down",
|
|
79
|
+
{
|
|
80
|
+
variants: {
|
|
81
|
+
variant: {
|
|
82
|
+
default: "text-muted-foreground",
|
|
83
|
+
ghost: "text-muted-foreground rounded-b",
|
|
84
|
+
outline: "text-muted-foreground border border-t-0 border-border rounded-b-md",
|
|
85
|
+
},
|
|
86
|
+
size: {
|
|
87
|
+
sm: "text-xs",
|
|
88
|
+
default: "text-sm",
|
|
89
|
+
md: "text-base",
|
|
90
|
+
lg: "text-lg",
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
defaultVariants: {
|
|
94
|
+
variant: "default",
|
|
95
|
+
size: "default",
|
|
96
|
+
},
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
interface CollapsibleContentProps
|
|
101
|
+
extends React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Content>,
|
|
102
|
+
VariantProps<typeof MoonUIcollapsibleContentVariantsPro> {}
|
|
103
|
+
|
|
104
|
+
const MoonUICollapsibleContentPro = React.forwardRef<
|
|
105
|
+
React.ElementRef<typeof CollapsiblePrimitive.Content>,
|
|
106
|
+
CollapsibleContentProps
|
|
107
|
+
>(({ className, children, variant, size, ...props }, ref) => (
|
|
108
|
+
<CollapsiblePrimitive.Content
|
|
109
|
+
ref={ref}
|
|
110
|
+
className={cn(MoonUIcollapsibleContentVariantsPro({ variant, size }), className)}
|
|
111
|
+
{...props}
|
|
112
|
+
>
|
|
113
|
+
<div className="p-4">{children}</div>
|
|
114
|
+
</CollapsiblePrimitive.Content>
|
|
115
|
+
))
|
|
116
|
+
MoonUICollapsibleContentPro.displayName = CollapsiblePrimitive.Content.displayName
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
// Internal aliases for Pro component usage
|
|
120
|
+
export const CollapsibleInternal = MoonUICollapsiblePro
|
|
121
|
+
export const collapsibleTriggerVariantsInternal = MoonUIcollapsibleTriggerVariantsPro
|
|
122
|
+
export const CollapsibleTriggerInternal = MoonUICollapsibleTriggerPro
|
|
123
|
+
export const collapsibleContentVariantsInternal = MoonUIcollapsibleContentVariantsPro
|
|
124
|
+
export const CollapsibleContentInternal = MoonUICollapsibleContentPro
|
|
125
|
+
|
|
126
|
+
// Pro exports
|
|
127
|
+
export { MoonUICollapsiblePro, MoonUIcollapsibleTriggerVariantsPro, MoonUICollapsibleTriggerPro, MoonUIcollapsibleContentVariantsPro, MoonUICollapsibleContentPro }
|
|
128
|
+
|
|
129
|
+
// Clean exports (without MoonUI prefix for easier usage)
|
|
130
|
+
export { MoonUICollapsiblePro as Collapsible, MoonUIcollapsibleTriggerVariantsPro as collapsibleTriggerVariants, MoonUICollapsibleTriggerPro as CollapsibleTrigger, MoonUIcollapsibleContentVariantsPro as collapsibleContentVariants, MoonUICollapsibleContentPro as CollapsibleContent }
|
|
131
|
+
|
|
132
|
+
export type {
|
|
133
|
+
CollapsibleTriggerProps,
|
|
134
|
+
CollapsibleContentProps
|
|
135
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import { Search } from "lucide-react"
|
|
5
|
+
import { Command as CommandPrimitive } from "cmdk"
|
|
6
|
+
import { cva, type VariantProps } from "class-variance-authority"
|
|
7
|
+
|
|
8
|
+
import { cn } from "../../lib/utils"
|
|
9
|
+
import { Dialog, DialogContent, DialogTitle } from "./dialog"
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Command (Komut Paleti) Bileşeni
|
|
13
|
+
*
|
|
14
|
+
* Gerçek command palette işlevselliği ile klavye navigasyonu, arama ve filtreleme.
|
|
15
|
+
* cmdk kütüphanesi üzerine inşa edilmiş, tam özellikli command interface.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const MoonUIcommandVariantsPro = cva(
|
|
19
|
+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
20
|
+
{
|
|
21
|
+
variants: {
|
|
22
|
+
variant: {
|
|
23
|
+
default: "bg-popover text-popover-foreground",
|
|
24
|
+
glass: "bg-background/80 text-foreground backdrop-blur-sm",
|
|
25
|
+
bordered: "bg-popover text-popover-foreground border border-border",
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
sm: "min-h-[200px]",
|
|
29
|
+
default: "min-h-[300px]",
|
|
30
|
+
lg: "min-h-[400px]",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
variant: "default",
|
|
35
|
+
size: "default",
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
// Command bileşeni - cmdk primitive wrapper
|
|
41
|
+
interface CommandProps
|
|
42
|
+
extends React.ComponentProps<typeof CommandPrimitive>,
|
|
43
|
+
VariantProps<typeof MoonUIcommandVariantsPro> {}
|
|
44
|
+
|
|
45
|
+
const MoonUICommandPro = React.forwardRef<
|
|
46
|
+
React.ElementRef<typeof CommandPrimitive>,
|
|
47
|
+
CommandProps
|
|
48
|
+
>(({ className, variant, size, ...props }, ref) => (
|
|
49
|
+
<CommandPrimitive
|
|
50
|
+
ref={ref}
|
|
51
|
+
className={cn(MoonUIcommandVariantsPro({ variant, size }), className)}
|
|
52
|
+
{...props}
|
|
53
|
+
/>
|
|
54
|
+
))
|
|
55
|
+
MoonUICommandPro.displayName = CommandPrimitive.displayName
|
|
56
|
+
|
|
57
|
+
// CommandDialog bileşeni
|
|
58
|
+
interface CommandDialogProps extends React.ComponentProps<typeof Dialog> {
|
|
59
|
+
commandClassName?: string
|
|
60
|
+
children?: React.ReactNode
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const MoonUICommandDialogPro = ({
|
|
64
|
+
children,
|
|
65
|
+
commandClassName,
|
|
66
|
+
...props
|
|
67
|
+
}: CommandDialogProps) => {
|
|
68
|
+
return (
|
|
69
|
+
<Dialog {...props}>
|
|
70
|
+
<DialogContent className="overflow-hidden p-0 shadow-lg" hideCloseButton>
|
|
71
|
+
<DialogTitle className="sr-only">Command Menu</DialogTitle>
|
|
72
|
+
<Command className={cn(
|
|
73
|
+
"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
74
|
+
commandClassName
|
|
75
|
+
)}>
|
|
76
|
+
{children}
|
|
77
|
+
</Command>
|
|
78
|
+
</DialogContent>
|
|
79
|
+
</Dialog>
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// CommandInput bileşeni
|
|
84
|
+
interface CommandInputProps
|
|
85
|
+
extends React.ComponentProps<typeof CommandPrimitive.Input> {}
|
|
86
|
+
|
|
87
|
+
const MoonUICommandInputPro = React.forwardRef<
|
|
88
|
+
React.ElementRef<typeof CommandPrimitive.Input>,
|
|
89
|
+
CommandInputProps
|
|
90
|
+
>(({ className, ...props }, ref) => (
|
|
91
|
+
<div className="flex items-center border-b px-3" cmdk-input-wrapper="">
|
|
92
|
+
<Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
|
|
93
|
+
<CommandPrimitive.Input
|
|
94
|
+
ref={ref}
|
|
95
|
+
className={cn(
|
|
96
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
97
|
+
className
|
|
98
|
+
)}
|
|
99
|
+
{...props}
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
))
|
|
103
|
+
MoonUICommandInputPro.displayName = CommandPrimitive.Input.displayName
|
|
104
|
+
|
|
105
|
+
// CommandList bileşeni
|
|
106
|
+
interface CommandListProps
|
|
107
|
+
extends React.ComponentProps<typeof CommandPrimitive.List> {}
|
|
108
|
+
|
|
109
|
+
const MoonUICommandListPro = React.forwardRef<
|
|
110
|
+
React.ElementRef<typeof CommandPrimitive.List>,
|
|
111
|
+
CommandListProps
|
|
112
|
+
>(({ className, ...props }, ref) => (
|
|
113
|
+
<CommandPrimitive.List
|
|
114
|
+
ref={ref}
|
|
115
|
+
className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
|
|
116
|
+
{...props}
|
|
117
|
+
/>
|
|
118
|
+
))
|
|
119
|
+
MoonUICommandListPro.displayName = CommandPrimitive.List.displayName
|
|
120
|
+
|
|
121
|
+
// CommandEmpty bileşeni
|
|
122
|
+
interface CommandEmptyProps
|
|
123
|
+
extends React.ComponentProps<typeof CommandPrimitive.Empty> {}
|
|
124
|
+
|
|
125
|
+
const MoonUICommandEmptyPro = React.forwardRef<
|
|
126
|
+
React.ElementRef<typeof CommandPrimitive.Empty>,
|
|
127
|
+
CommandEmptyProps
|
|
128
|
+
>(({ className, ...props }, ref) => (
|
|
129
|
+
<CommandPrimitive.Empty
|
|
130
|
+
ref={ref}
|
|
131
|
+
className={cn("py-6 text-center text-sm text-muted-foreground", className)}
|
|
132
|
+
{...props}
|
|
133
|
+
/>
|
|
134
|
+
))
|
|
135
|
+
MoonUICommandEmptyPro.displayName = CommandPrimitive.Empty.displayName
|
|
136
|
+
|
|
137
|
+
// CommandGroup bileşeni
|
|
138
|
+
interface CommandGroupProps
|
|
139
|
+
extends React.ComponentProps<typeof CommandPrimitive.Group> {}
|
|
140
|
+
|
|
141
|
+
const MoonUICommandGroupPro = React.forwardRef<
|
|
142
|
+
React.ElementRef<typeof CommandPrimitive.Group>,
|
|
143
|
+
CommandGroupProps
|
|
144
|
+
>(({ className, ...props }, ref) => (
|
|
145
|
+
<CommandPrimitive.Group
|
|
146
|
+
ref={ref}
|
|
147
|
+
className={cn(
|
|
148
|
+
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
149
|
+
className
|
|
150
|
+
)}
|
|
151
|
+
{...props}
|
|
152
|
+
/>
|
|
153
|
+
))
|
|
154
|
+
MoonUICommandGroupPro.displayName = CommandPrimitive.Group.displayName
|
|
155
|
+
|
|
156
|
+
// CommandSeparator bileşeni
|
|
157
|
+
interface CommandSeparatorProps
|
|
158
|
+
extends React.ComponentProps<typeof CommandPrimitive.Separator> {}
|
|
159
|
+
|
|
160
|
+
const MoonUICommandSeparatorPro = React.forwardRef<
|
|
161
|
+
React.ElementRef<typeof CommandPrimitive.Separator>,
|
|
162
|
+
CommandSeparatorProps
|
|
163
|
+
>(({ className, ...props }, ref) => (
|
|
164
|
+
<CommandPrimitive.Separator
|
|
165
|
+
ref={ref}
|
|
166
|
+
className={cn("-mx-1 h-px bg-border", className)}
|
|
167
|
+
{...props}
|
|
168
|
+
/>
|
|
169
|
+
))
|
|
170
|
+
MoonUICommandSeparatorPro.displayName = CommandPrimitive.Separator.displayName
|
|
171
|
+
|
|
172
|
+
// CommandItem bileşeni
|
|
173
|
+
interface CommandItemProps
|
|
174
|
+
extends React.ComponentProps<typeof CommandPrimitive.Item> {}
|
|
175
|
+
|
|
176
|
+
const MoonUICommandItemPro = React.forwardRef<
|
|
177
|
+
React.ElementRef<typeof CommandPrimitive.Item>,
|
|
178
|
+
CommandItemProps
|
|
179
|
+
>(({ className, ...props }, ref) => (
|
|
180
|
+
<CommandPrimitive.Item
|
|
181
|
+
ref={ref}
|
|
182
|
+
className={cn(
|
|
183
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
|
|
184
|
+
className
|
|
185
|
+
)}
|
|
186
|
+
{...props}
|
|
187
|
+
/>
|
|
188
|
+
))
|
|
189
|
+
MoonUICommandItemPro.displayName = CommandPrimitive.Item.displayName
|
|
190
|
+
|
|
191
|
+
// CommandShortcut bileşeni - utility component
|
|
192
|
+
const MoonUICommandShortcutPro = ({
|
|
193
|
+
className,
|
|
194
|
+
...props
|
|
195
|
+
}: React.HTMLAttributes<HTMLSpanElement>) => {
|
|
196
|
+
return (
|
|
197
|
+
<span
|
|
198
|
+
className={cn(
|
|
199
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
200
|
+
className
|
|
201
|
+
)}
|
|
202
|
+
{...props}
|
|
203
|
+
/>
|
|
204
|
+
)
|
|
205
|
+
}
|
|
206
|
+
MoonUICommandShortcutPro.displayName = "CommandShortcutPro"
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
// Internal aliases for Pro component usage
|
|
210
|
+
export const commandVariantsInternal = MoonUIcommandVariantsPro
|
|
211
|
+
export const CommandInternal = MoonUICommandPro
|
|
212
|
+
export const CommandDialogInternal = MoonUICommandDialogPro
|
|
213
|
+
export const CommandInputInternal = MoonUICommandInputPro
|
|
214
|
+
export const CommandListInternal = MoonUICommandListPro
|
|
215
|
+
export const CommandEmptyInternal = MoonUICommandEmptyPro
|
|
216
|
+
export const CommandGroupInternal = MoonUICommandGroupPro
|
|
217
|
+
export const CommandSeparatorInternal = MoonUICommandSeparatorPro
|
|
218
|
+
export const CommandItemInternal = MoonUICommandItemPro
|
|
219
|
+
export const CommandShortcutInternal = MoonUICommandShortcutPro
|
|
220
|
+
|
|
221
|
+
// Pro exports
|
|
222
|
+
export { MoonUIcommandVariantsPro, MoonUICommandPro, MoonUICommandDialogPro, MoonUICommandInputPro, MoonUICommandListPro, MoonUICommandEmptyPro, MoonUICommandGroupPro, MoonUICommandSeparatorPro, MoonUICommandItemPro, MoonUICommandShortcutPro }
|
|
223
|
+
|
|
224
|
+
// Clean exports (without MoonUI prefix for easier usage)
|
|
225
|
+
export { MoonUIcommandVariantsPro as commandVariants, MoonUICommandPro as Command, MoonUICommandDialogPro as CommandDialog, MoonUICommandInputPro as CommandInput, MoonUICommandListPro as CommandList, MoonUICommandEmptyPro as CommandEmpty, MoonUICommandGroupPro as CommandGroup, MoonUICommandSeparatorPro as CommandSeparator, MoonUICommandItemPro as CommandItem, MoonUICommandShortcutPro as CommandShortcut }
|
|
@@ -198,5 +198,21 @@ export { MoonUIDropdownMenuPro,
|
|
|
198
198
|
MoonUIDropdownMenuRadioGroupPro,
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
-
//
|
|
202
|
-
export {
|
|
201
|
+
// Clean exports (only dropdown-menu specific)
|
|
202
|
+
export {
|
|
203
|
+
MoonUIDropdownMenuPro as DropdownMenu,
|
|
204
|
+
MoonUIDropdownMenuTriggerPro as DropdownMenuTrigger,
|
|
205
|
+
MoonUIDropdownMenuContentPro as DropdownMenuContent,
|
|
206
|
+
MoonUIDropdownMenuItemPro as DropdownMenuItem,
|
|
207
|
+
MoonUIDropdownMenuCheckboxItemPro as DropdownMenuCheckboxItem,
|
|
208
|
+
MoonUIDropdownMenuRadioItemPro as DropdownMenuRadioItem,
|
|
209
|
+
MoonUIDropdownMenuLabelPro as DropdownMenuLabel,
|
|
210
|
+
MoonUIDropdownMenuSeparatorPro as DropdownMenuSeparator,
|
|
211
|
+
MoonUIDropdownMenuShortcutPro as DropdownMenuShortcut,
|
|
212
|
+
MoonUIDropdownMenuGroupPro as DropdownMenuGroup,
|
|
213
|
+
MoonUIDropdownMenuPortalPro as DropdownMenuPortal,
|
|
214
|
+
MoonUIDropdownMenuSubPro as DropdownMenuSub,
|
|
215
|
+
MoonUIDropdownMenuSubContentPro as DropdownMenuSubContent,
|
|
216
|
+
MoonUIDropdownMenuSubTriggerPro as DropdownMenuSubTrigger,
|
|
217
|
+
MoonUIDropdownMenuRadioGroupPro as DropdownMenuRadioGroup
|
|
218
|
+
}
|
|
@@ -1,35 +1,157 @@
|
|
|
1
|
-
// Core UI Components
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
// Core UI Components - Only MoonUI*Pro exports to avoid conflicts
|
|
2
|
+
export {
|
|
3
|
+
MoonUIAccordionPro, MoonUIAccordionItemPro, MoonUIAccordionTriggerPro, MoonUIAccordionContentPro,
|
|
4
|
+
Accordion, AccordionItem, AccordionTrigger, AccordionContent
|
|
5
|
+
} from './accordion';
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
MoonUIalertVariantsPro, MoonUIAlertPro, MoonUIAlertTitlePro, MoonUIAlertDescriptionPro,
|
|
9
|
+
alertVariants, Alert, AlertTitle, AlertDescription
|
|
10
|
+
} from './alert';
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
MoonUIaspectRatioVariantsPro, MoonUIAspectRatioPro,
|
|
14
|
+
aspectRatioVariants, AspectRatio
|
|
15
|
+
} from './aspect-ratio';
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
MoonUIAvatarPro, MoonUIAvatarImagePro, MoonUIAvatarFallbackPro,
|
|
19
|
+
Avatar, AvatarImage, AvatarFallback
|
|
20
|
+
} from './avatar';
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
MoonUIBadgePro, moonUIBadgeVariantsPro,
|
|
24
|
+
Badge, badgeVariants
|
|
25
|
+
} from './badge';
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
MoonUIbreadcrumbVariantsPro, MoonUIBreadcrumbPro, MoonUIBreadcrumbListPro, MoonUIBreadcrumbItemPro, MoonUIBreadcrumbSeparatorPro, MoonUIBreadcrumbEllipsisPro, MoonUIBreadcrumbLinkPro, MoonUIBreadcrumbPagePro,
|
|
29
|
+
breadcrumbVariants, Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbEllipsis, BreadcrumbLink, BreadcrumbPage
|
|
30
|
+
} from './breadcrumb';
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
MoonUIButtonPro, moonUIButtonProVariants,
|
|
34
|
+
Button, buttonVariants
|
|
35
|
+
} from './button';
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
MoonUICardPro, MoonUICardHeaderPro, MoonUICardFooterPro, MoonUICardTitlePro, MoonUICardDescriptionPro, MoonUICardContentPro,
|
|
39
|
+
Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent
|
|
40
|
+
} from './card';
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
MoonUICheckboxPro,
|
|
44
|
+
Checkbox
|
|
45
|
+
} from './checkbox';
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
MoonUICollapsiblePro, MoonUIcollapsibleTriggerVariantsPro, MoonUICollapsibleTriggerPro, MoonUIcollapsibleContentVariantsPro, MoonUICollapsibleContentPro,
|
|
49
|
+
Collapsible, collapsibleTriggerVariants, CollapsibleTrigger, collapsibleContentVariants, CollapsibleContent
|
|
50
|
+
} from './collapsible';
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
MoonUIColorPickerPro,
|
|
54
|
+
ColorPicker
|
|
55
|
+
} from './color-picker';
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
MoonUIcommandVariantsPro, MoonUICommandPro, MoonUICommandDialogPro, MoonUICommandInputPro, MoonUICommandListPro, MoonUICommandEmptyPro, MoonUICommandGroupPro, MoonUICommandItemPro, MoonUICommandShortcutPro, MoonUICommandSeparatorPro,
|
|
59
|
+
commandVariants, Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator
|
|
60
|
+
} from './command';
|
|
61
|
+
|
|
62
|
+
export {
|
|
63
|
+
MoonUIDialogPro, MoonUIDialogContentPro, MoonUIDialogHeaderPro, MoonUIDialogFooterPro, MoonUIDialogTitlePro, MoonUIDialogDescriptionPro, MoonUIDialogTriggerPro, MoonUIDialogClosePro,
|
|
64
|
+
Dialog, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogTrigger, DialogClose
|
|
65
|
+
} from './dialog';
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
MoonUIDropdownMenuPro, MoonUIDropdownMenuTriggerPro, MoonUIDropdownMenuContentPro, MoonUIDropdownMenuItemPro, MoonUIDropdownMenuCheckboxItemPro, MoonUIDropdownMenuRadioItemPro, MoonUIDropdownMenuLabelPro, MoonUIDropdownMenuSeparatorPro, MoonUIDropdownMenuShortcutPro, MoonUIDropdownMenuGroupPro, MoonUIDropdownMenuPortalPro, MoonUIDropdownMenuSubPro, MoonUIDropdownMenuSubContentPro, MoonUIDropdownMenuSubTriggerPro, MoonUIDropdownMenuRadioGroupPro,
|
|
69
|
+
DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup
|
|
70
|
+
} from './dropdown-menu';
|
|
71
|
+
|
|
72
|
+
export {
|
|
73
|
+
MoonUIInputPro,
|
|
74
|
+
Input
|
|
75
|
+
} from './input';
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
MoonUILabelPro,
|
|
79
|
+
Label
|
|
80
|
+
} from './label';
|
|
81
|
+
|
|
82
|
+
export {
|
|
83
|
+
MoonUIPaginationPro, MoonUIPaginationContentPro, MoonUIPaginationEllipsisPro, MoonUIPaginationItemPro, MoonUIPaginationLinkPro, MoonUIPaginationNextPro, MoonUIPaginationPreviousPro,
|
|
84
|
+
Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious
|
|
85
|
+
} from './pagination';
|
|
86
|
+
|
|
87
|
+
export {
|
|
88
|
+
MoonUIPopoverPro, MoonUIPopoverTriggerPro, MoonUIPopoverContentPro,
|
|
89
|
+
Popover, PopoverTrigger, PopoverContent
|
|
90
|
+
} from './popover';
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
MoonUIProgressPro,
|
|
94
|
+
Progress
|
|
95
|
+
} from './progress';
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
MoonUIradioGroupItemVariantsPro, MoonUIRadioGroupContextPro, MoonUIRadioGroupPro, MoonUIRadioGroupItemPro, MoonUIRadioLabelPro, MoonUIRadioItemWithLabelPro,
|
|
99
|
+
radioGroupItemVariants, RadioGroupContext, RadioGroup, RadioGroupItem, RadioLabel, RadioItemWithLabel
|
|
100
|
+
} from './radio-group';
|
|
101
|
+
|
|
102
|
+
export {
|
|
103
|
+
MoonUISelectPro, MoonUISelectTriggerPro, MoonUISelectContentPro, MoonUISelectItemPro, MoonUISelectValuePro, MoonUISelectGroupPro, MoonUISelectLabelPro, MoonUISelectSeparatorPro,
|
|
104
|
+
Select, SelectTrigger, SelectContent, SelectItem, SelectValue, SelectGroup, SelectLabel, SelectSeparator
|
|
105
|
+
} from './select';
|
|
106
|
+
|
|
107
|
+
export {
|
|
108
|
+
MoonUISeparatorPro, moonUISeparatorVariantsPro,
|
|
109
|
+
Separator, separatorVariants
|
|
110
|
+
} from './separator';
|
|
111
|
+
|
|
112
|
+
export {
|
|
113
|
+
MoonUISkeleton,
|
|
114
|
+
Skeleton
|
|
115
|
+
} from './skeleton';
|
|
116
|
+
|
|
117
|
+
export {
|
|
118
|
+
MoonUISliderPro,
|
|
119
|
+
Slider
|
|
120
|
+
} from './slider';
|
|
121
|
+
|
|
122
|
+
export {
|
|
123
|
+
MoonUISwitchPro,
|
|
124
|
+
Switch
|
|
125
|
+
} from './switch';
|
|
126
|
+
|
|
127
|
+
export {
|
|
128
|
+
MoonUItableVariantsPro, MoonUITablePro, MoonUITableHeaderPro, MoonUITableBodyPro, MoonUITableFooterPro, MoonUITableHeadPro, MoonUITableRowPro, MoonUITableCellPro, MoonUITableCaptionPro,
|
|
129
|
+
tableVariants, Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption
|
|
130
|
+
} from './table';
|
|
131
|
+
|
|
132
|
+
export {
|
|
133
|
+
MoonUITabsPro, MoonUITabsListPro, MoonUITabsTriggerPro, MoonUITabsContentPro,
|
|
134
|
+
Tabs, TabsList, TabsTrigger, TabsContent
|
|
135
|
+
} from './tabs';
|
|
136
|
+
|
|
137
|
+
export {
|
|
138
|
+
MoonUITextareaPro,
|
|
139
|
+
Textarea
|
|
140
|
+
} from './textarea';
|
|
141
|
+
|
|
142
|
+
export {
|
|
143
|
+
MoonUIToastPro,
|
|
144
|
+
Toast
|
|
145
|
+
} from './toast';
|
|
146
|
+
|
|
147
|
+
export {
|
|
148
|
+
MoonUItoggleVariantsPro, MoonUITogglePro,
|
|
149
|
+
toggleVariants, Toggle
|
|
150
|
+
} from './toggle';
|
|
151
|
+
|
|
152
|
+
export {
|
|
153
|
+
MoonUITooltipPro, MoonUITooltipTriggerPro, MoonUITooltipContentPro, MoonUITooltipProviderPro,
|
|
154
|
+
Tooltip, TooltipTrigger, TooltipContent, TooltipProvider
|
|
155
|
+
} from './tooltip';
|
|
156
|
+
|
|
157
|
+
// Note: Micro-interaction components are exported from their individual directories
|
|
@@ -17,11 +17,11 @@ const MoonUILabelPro = React.forwardRef<
|
|
|
17
17
|
>(({ className, ...props }, ref) => (
|
|
18
18
|
<LabelPrimitive.Root
|
|
19
19
|
ref={ref}
|
|
20
|
-
className={cn(
|
|
20
|
+
className={cn(moonUILabelVariantsPro(), className)}
|
|
21
21
|
{...props}
|
|
22
22
|
/>
|
|
23
23
|
))
|
|
24
|
-
|
|
24
|
+
MoonUILabelPro.displayName = LabelPrimitive.Root.displayName
|
|
25
25
|
|
|
26
26
|
export { MoonUILabelPro };
|
|
27
27
|
|