@create-lft-app/cli 1.0.14 → 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 +13 -146
- package/dist/bin/cli.js.map +1 -1
- package/dist/src/index.js +11 -144
- 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 -249
- 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,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
|
-
}
|