@create-lft-app/cli 1.0.13 → 1.1.0
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/bin/cli.js +17 -156
- package/dist/bin/cli.js.map +1 -1
- package/dist/src/index.js +15 -154
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/app/auth/login/page.tsx +0 -153
- package/templates/app/dashboard/page.tsx +0 -102
- package/templates/app/globals.css +0 -68
- package/templates/app/layout.tsx +0 -40
- package/templates/app/page.tsx +0 -5
- package/templates/components/dashboard/widget.tsx +0 -113
- package/templates/components/layout/admin-midday-sidebar.tsx +0 -247
- package/templates/components/layout/admin-sidebar.tsx +0 -146
- package/templates/components/layout/header.tsx +0 -71
- package/templates/components/layout/main-content.tsx +0 -28
- package/templates/components/layout/midday-sidebar.tsx +0 -381
- package/templates/components/layout/nav-user.tsx +0 -108
- package/templates/components/layout/page-header.tsx +0 -95
- package/templates/components/layout/sidebar-context.tsx +0 -33
- package/templates/components/layout/sidebar.tsx +0 -194
- package/templates/components/layout/suspension-banner.tsx +0 -21
- package/templates/components/ui/accordion.tsx +0 -58
- package/templates/components/ui/alert-dialog.tsx +0 -165
- package/templates/components/ui/alert.tsx +0 -66
- package/templates/components/ui/avatar.tsx +0 -55
- package/templates/components/ui/badge.tsx +0 -50
- package/templates/components/ui/button.tsx +0 -89
- package/templates/components/ui/calendar.tsx +0 -220
- package/templates/components/ui/card.tsx +0 -89
- package/templates/components/ui/checkbox.tsx +0 -38
- package/templates/components/ui/collapsible.tsx +0 -33
- package/templates/components/ui/command.tsx +0 -196
- package/templates/components/ui/dialog.tsx +0 -153
- package/templates/components/ui/dropdown-menu.tsx +0 -280
- package/templates/components/ui/form.tsx +0 -171
- package/templates/components/ui/icons.tsx +0 -167
- package/templates/components/ui/input.tsx +0 -28
- package/templates/components/ui/label.tsx +0 -25
- package/templates/components/ui/popover.tsx +0 -59
- package/templates/components/ui/progress.tsx +0 -32
- package/templates/components/ui/radio-group.tsx +0 -45
- package/templates/components/ui/scroll-area.tsx +0 -63
- package/templates/components/ui/select.tsx +0 -208
- package/templates/components/ui/separator.tsx +0 -28
- package/templates/components/ui/sheet.tsx +0 -146
- package/templates/components/ui/sidebar.tsx +0 -726
- package/templates/components/ui/skeleton.tsx +0 -15
- package/templates/components/ui/slider.tsx +0 -58
- package/templates/components/ui/sonner.tsx +0 -47
- package/templates/components/ui/spinner.tsx +0 -27
- package/templates/components/ui/submit-button.tsx +0 -47
- package/templates/components/ui/switch.tsx +0 -31
- package/templates/components/ui/table.tsx +0 -120
- package/templates/components/ui/tabs.tsx +0 -75
- package/templates/components/ui/textarea.tsx +0 -26
- package/templates/components/ui/tooltip.tsx +0 -70
- package/templates/hooks/use-mobile.ts +0 -21
- package/templates/lib/supabase/client.ts +0 -8
- package/templates/lib/supabase/server.ts +0 -29
- package/templates/lib/utils.ts +0 -6
- package/templates/modules/auth/actions/auth-actions.ts +0 -12
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as SelectPrimitive from "@radix-ui/react-select"
|
|
5
|
-
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"
|
|
6
|
-
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
function Select({
|
|
10
|
-
...props
|
|
11
|
-
}: React.ComponentProps<typeof SelectPrimitive.Root>) {
|
|
12
|
-
return <SelectPrimitive.Root data-slot="select" {...props} />
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function SelectGroup({
|
|
16
|
-
...props
|
|
17
|
-
}: React.ComponentProps<typeof SelectPrimitive.Group>) {
|
|
18
|
-
return <SelectPrimitive.Group data-slot="select-group" {...props} />
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function SelectValue({
|
|
22
|
-
...props
|
|
23
|
-
}: React.ComponentProps<typeof SelectPrimitive.Value>) {
|
|
24
|
-
return <SelectPrimitive.Value data-slot="select-value" {...props} />
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function SelectTrigger({
|
|
28
|
-
className,
|
|
29
|
-
size = "default",
|
|
30
|
-
children,
|
|
31
|
-
...props
|
|
32
|
-
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
33
|
-
size?: "sm" | "default"
|
|
34
|
-
}) {
|
|
35
|
-
return (
|
|
36
|
-
<SelectPrimitive.Trigger
|
|
37
|
-
data-slot="select-trigger"
|
|
38
|
-
data-size={size}
|
|
39
|
-
className={cn(
|
|
40
|
-
"flex w-full items-center justify-between gap-2",
|
|
41
|
-
"rounded-md border border-input bg-transparent",
|
|
42
|
-
"px-3 py-2 text-sm",
|
|
43
|
-
"transition-colors duration-150",
|
|
44
|
-
"placeholder:text-muted-foreground",
|
|
45
|
-
"focus:outline-none focus:ring-1 focus:ring-ring",
|
|
46
|
-
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
47
|
-
"data-[size=default]:h-10 data-[size=sm]:h-8",
|
|
48
|
-
"[&>span]:line-clamp-1",
|
|
49
|
-
className
|
|
50
|
-
)}
|
|
51
|
-
{...props}
|
|
52
|
-
>
|
|
53
|
-
{children}
|
|
54
|
-
<SelectPrimitive.Icon asChild>
|
|
55
|
-
<ChevronDownIcon className="h-4 w-4 text-[#878787]" />
|
|
56
|
-
</SelectPrimitive.Icon>
|
|
57
|
-
</SelectPrimitive.Trigger>
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function SelectContent({
|
|
62
|
-
className,
|
|
63
|
-
children,
|
|
64
|
-
position = "popper",
|
|
65
|
-
...props
|
|
66
|
-
}: React.ComponentProps<typeof SelectPrimitive.Content>) {
|
|
67
|
-
return (
|
|
68
|
-
<SelectPrimitive.Portal>
|
|
69
|
-
<SelectPrimitive.Content
|
|
70
|
-
data-slot="select-content"
|
|
71
|
-
className={cn(
|
|
72
|
-
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden",
|
|
73
|
-
"rounded-md border border-border",
|
|
74
|
-
"bg-background dark:bg-[#1c1c1c]",
|
|
75
|
-
"text-popover-foreground",
|
|
76
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
77
|
-
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
78
|
-
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
79
|
-
"data-[side=bottom]:slide-in-from-top-2",
|
|
80
|
-
"data-[side=left]:slide-in-from-right-2",
|
|
81
|
-
"data-[side=right]:slide-in-from-left-2",
|
|
82
|
-
"data-[side=top]:slide-in-from-bottom-2",
|
|
83
|
-
position === "popper" &&
|
|
84
|
-
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
85
|
-
className
|
|
86
|
-
)}
|
|
87
|
-
position={position}
|
|
88
|
-
{...props}
|
|
89
|
-
>
|
|
90
|
-
<SelectScrollUpButton />
|
|
91
|
-
<SelectPrimitive.Viewport
|
|
92
|
-
className={cn(
|
|
93
|
-
"p-1",
|
|
94
|
-
position === "popper" &&
|
|
95
|
-
"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
96
|
-
)}
|
|
97
|
-
>
|
|
98
|
-
{children}
|
|
99
|
-
</SelectPrimitive.Viewport>
|
|
100
|
-
<SelectScrollDownButton />
|
|
101
|
-
</SelectPrimitive.Content>
|
|
102
|
-
</SelectPrimitive.Portal>
|
|
103
|
-
)
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function SelectLabel({
|
|
107
|
-
className,
|
|
108
|
-
...props
|
|
109
|
-
}: React.ComponentProps<typeof SelectPrimitive.Label>) {
|
|
110
|
-
return (
|
|
111
|
-
<SelectPrimitive.Label
|
|
112
|
-
data-slot="select-label"
|
|
113
|
-
className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}
|
|
114
|
-
{...props}
|
|
115
|
-
/>
|
|
116
|
-
)
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function SelectItem({
|
|
120
|
-
className,
|
|
121
|
-
children,
|
|
122
|
-
...props
|
|
123
|
-
}: React.ComponentProps<typeof SelectPrimitive.Item>) {
|
|
124
|
-
return (
|
|
125
|
-
<SelectPrimitive.Item
|
|
126
|
-
data-slot="select-item"
|
|
127
|
-
className={cn(
|
|
128
|
-
"relative flex w-full cursor-default select-none items-center",
|
|
129
|
-
"rounded-sm py-1.5 pl-2 pr-8",
|
|
130
|
-
"text-sm outline-none",
|
|
131
|
-
"transition-colors duration-150",
|
|
132
|
-
"focus:bg-[#f2f2f2] dark:focus:bg-[#2c2c2c]",
|
|
133
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
134
|
-
className
|
|
135
|
-
)}
|
|
136
|
-
{...props}
|
|
137
|
-
>
|
|
138
|
-
<span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
139
|
-
<SelectPrimitive.ItemIndicator>
|
|
140
|
-
<CheckIcon className="h-4 w-4" />
|
|
141
|
-
</SelectPrimitive.ItemIndicator>
|
|
142
|
-
</span>
|
|
143
|
-
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
144
|
-
</SelectPrimitive.Item>
|
|
145
|
-
)
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function SelectSeparator({
|
|
149
|
-
className,
|
|
150
|
-
...props
|
|
151
|
-
}: React.ComponentProps<typeof SelectPrimitive.Separator>) {
|
|
152
|
-
return (
|
|
153
|
-
<SelectPrimitive.Separator
|
|
154
|
-
data-slot="select-separator"
|
|
155
|
-
className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}
|
|
156
|
-
{...props}
|
|
157
|
-
/>
|
|
158
|
-
)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function SelectScrollUpButton({
|
|
162
|
-
className,
|
|
163
|
-
...props
|
|
164
|
-
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {
|
|
165
|
-
return (
|
|
166
|
-
<SelectPrimitive.ScrollUpButton
|
|
167
|
-
data-slot="select-scroll-up-button"
|
|
168
|
-
className={cn(
|
|
169
|
-
"flex cursor-default items-center justify-center py-1",
|
|
170
|
-
className
|
|
171
|
-
)}
|
|
172
|
-
{...props}
|
|
173
|
-
>
|
|
174
|
-
<ChevronUpIcon className="size-4" />
|
|
175
|
-
</SelectPrimitive.ScrollUpButton>
|
|
176
|
-
)
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
function SelectScrollDownButton({
|
|
180
|
-
className,
|
|
181
|
-
...props
|
|
182
|
-
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {
|
|
183
|
-
return (
|
|
184
|
-
<SelectPrimitive.ScrollDownButton
|
|
185
|
-
data-slot="select-scroll-down-button"
|
|
186
|
-
className={cn(
|
|
187
|
-
"flex cursor-default items-center justify-center py-1",
|
|
188
|
-
className
|
|
189
|
-
)}
|
|
190
|
-
{...props}
|
|
191
|
-
>
|
|
192
|
-
<ChevronDownIcon className="size-4" />
|
|
193
|
-
</SelectPrimitive.ScrollDownButton>
|
|
194
|
-
)
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export {
|
|
198
|
-
Select,
|
|
199
|
-
SelectContent,
|
|
200
|
-
SelectGroup,
|
|
201
|
-
SelectItem,
|
|
202
|
-
SelectLabel,
|
|
203
|
-
SelectScrollDownButton,
|
|
204
|
-
SelectScrollUpButton,
|
|
205
|
-
SelectSeparator,
|
|
206
|
-
SelectTrigger,
|
|
207
|
-
SelectValue,
|
|
208
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator"
|
|
5
|
-
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
function Separator({
|
|
9
|
-
className,
|
|
10
|
-
orientation = "horizontal",
|
|
11
|
-
decorative = true,
|
|
12
|
-
...props
|
|
13
|
-
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
|
|
14
|
-
return (
|
|
15
|
-
<SeparatorPrimitive.Root
|
|
16
|
-
data-slot="separator"
|
|
17
|
-
decorative={decorative}
|
|
18
|
-
orientation={orientation}
|
|
19
|
-
className={cn(
|
|
20
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
21
|
-
className
|
|
22
|
-
)}
|
|
23
|
-
{...props}
|
|
24
|
-
/>
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { Separator }
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as SheetPrimitive from "@radix-ui/react-dialog"
|
|
5
|
-
import { XIcon } from "lucide-react"
|
|
6
|
-
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
|
|
10
|
-
return <SheetPrimitive.Root data-slot="sheet" {...props} />
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function SheetTrigger({
|
|
14
|
-
...props
|
|
15
|
-
}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
|
|
16
|
-
return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function SheetClose({
|
|
20
|
-
...props
|
|
21
|
-
}: React.ComponentProps<typeof SheetPrimitive.Close>) {
|
|
22
|
-
return <SheetPrimitive.Close data-slot="sheet-close" {...props} />
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function SheetPortal({
|
|
26
|
-
...props
|
|
27
|
-
}: React.ComponentProps<typeof SheetPrimitive.Portal>) {
|
|
28
|
-
return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function SheetOverlay({
|
|
32
|
-
className,
|
|
33
|
-
...props
|
|
34
|
-
}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
|
|
35
|
-
return (
|
|
36
|
-
<SheetPrimitive.Overlay
|
|
37
|
-
data-slot="sheet-overlay"
|
|
38
|
-
className={cn(
|
|
39
|
-
"fixed inset-0 z-50",
|
|
40
|
-
"bg-[#f6f6f3]/60 dark:bg-[#0C0C0C]/80",
|
|
41
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
42
|
-
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
43
|
-
className
|
|
44
|
-
)}
|
|
45
|
-
{...props}
|
|
46
|
-
/>
|
|
47
|
-
)
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function SheetContent({
|
|
51
|
-
className,
|
|
52
|
-
children,
|
|
53
|
-
side = "right",
|
|
54
|
-
...props
|
|
55
|
-
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
56
|
-
side?: "top" | "right" | "bottom" | "left"
|
|
57
|
-
}) {
|
|
58
|
-
return (
|
|
59
|
-
<SheetPortal>
|
|
60
|
-
<SheetOverlay />
|
|
61
|
-
<SheetPrimitive.Content
|
|
62
|
-
data-slot="sheet-content"
|
|
63
|
-
className={cn(
|
|
64
|
-
"fixed z-50 gap-4 p-6",
|
|
65
|
-
"bg-[#FAFAF9] dark:bg-[#0C0C0C]",
|
|
66
|
-
"transition ease-in-out",
|
|
67
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
68
|
-
"data-[state=open]:duration-300 data-[state=closed]:duration-200",
|
|
69
|
-
side === "right" &&
|
|
70
|
-
"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-[520px] data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",
|
|
71
|
-
side === "left" &&
|
|
72
|
-
"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-[520px] data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",
|
|
73
|
-
side === "top" &&
|
|
74
|
-
"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
75
|
-
side === "bottom" &&
|
|
76
|
-
"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
77
|
-
className
|
|
78
|
-
)}
|
|
79
|
-
{...props}
|
|
80
|
-
>
|
|
81
|
-
{children}
|
|
82
|
-
<SheetPrimitive.Close className="absolute right-6 top-6 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none">
|
|
83
|
-
<XIcon className="h-4 w-4" />
|
|
84
|
-
<span className="sr-only">Close</span>
|
|
85
|
-
</SheetPrimitive.Close>
|
|
86
|
-
</SheetPrimitive.Content>
|
|
87
|
-
</SheetPortal>
|
|
88
|
-
)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|
92
|
-
return (
|
|
93
|
-
<div
|
|
94
|
-
data-slot="sheet-header"
|
|
95
|
-
className={cn("flex flex-col gap-1.5 p-4", className)}
|
|
96
|
-
{...props}
|
|
97
|
-
/>
|
|
98
|
-
)
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {
|
|
102
|
-
return (
|
|
103
|
-
<div
|
|
104
|
-
data-slot="sheet-footer"
|
|
105
|
-
className={cn("mt-auto flex flex-col gap-2 p-4", className)}
|
|
106
|
-
{...props}
|
|
107
|
-
/>
|
|
108
|
-
)
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function SheetTitle({
|
|
112
|
-
className,
|
|
113
|
-
...props
|
|
114
|
-
}: React.ComponentProps<typeof SheetPrimitive.Title>) {
|
|
115
|
-
return (
|
|
116
|
-
<SheetPrimitive.Title
|
|
117
|
-
data-slot="sheet-title"
|
|
118
|
-
className={cn("text-foreground font-semibold", className)}
|
|
119
|
-
{...props}
|
|
120
|
-
/>
|
|
121
|
-
)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function SheetDescription({
|
|
125
|
-
className,
|
|
126
|
-
...props
|
|
127
|
-
}: React.ComponentProps<typeof SheetPrimitive.Description>) {
|
|
128
|
-
return (
|
|
129
|
-
<SheetPrimitive.Description
|
|
130
|
-
data-slot="sheet-description"
|
|
131
|
-
className={cn("text-muted-foreground text-sm", className)}
|
|
132
|
-
{...props}
|
|
133
|
-
/>
|
|
134
|
-
)
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export {
|
|
138
|
-
Sheet,
|
|
139
|
-
SheetTrigger,
|
|
140
|
-
SheetClose,
|
|
141
|
-
SheetContent,
|
|
142
|
-
SheetHeader,
|
|
143
|
-
SheetFooter,
|
|
144
|
-
SheetTitle,
|
|
145
|
-
SheetDescription,
|
|
146
|
-
}
|