@arch-cadre/ui 0.0.61 → 0.0.63
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/components/.gitkeep +0 -0
- package/dist/components/accordion.d.ts +4 -4
- package/dist/components/accordion.mjs +58 -0
- package/dist/components/alert-dialog.d.ts +11 -11
- package/dist/components/alert-dialog.mjs +144 -0
- package/dist/components/alert.d.ts +4 -4
- package/dist/components/alert.mjs +62 -0
- package/dist/components/aspect-ratio.d.ts +1 -1
- package/dist/components/aspect-ratio.mjs +9 -0
- package/dist/components/avatar.d.ts +3 -3
- package/dist/components/avatar.mjs +50 -0
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.mjs +37 -0
- package/dist/components/breadcrumb.d.ts +7 -7
- package/dist/components/breadcrumb.mjs +105 -0
- package/dist/components/button-group.d.ts +4 -4
- package/dist/components/button-group.mjs +76 -0
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.mjs +51 -0
- package/dist/components/calendar.d.ts +2 -2
- package/dist/components/calendar.mjs +191 -0
- package/dist/components/card.d.ts +7 -7
- package/dist/components/card.mjs +90 -0
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.mjs +30 -0
- package/dist/components/collapsible.d.ts +3 -3
- package/dist/components/collapsible.mjs +31 -0
- package/dist/components/command.d.ts +9 -9
- package/dist/components/command.mjs +169 -0
- package/dist/components/context-menu.d.ts +15 -15
- package/dist/components/context-menu.mjs +218 -0
- package/dist/components/dialog.d.ts +10 -10
- package/dist/components/dialog.mjs +130 -0
- package/dist/components/drawer.d.ts +10 -10
- package/dist/components/drawer.mjs +124 -0
- package/dist/components/dropdown-menu.d.ts +15 -15
- package/dist/components/dropdown-menu.mjs +226 -0
- package/dist/components/empty.d.ts +7 -7
- package/dist/components/empty.mjs +102 -0
- package/dist/components/field.d.ts +11 -11
- package/dist/components/field.mjs +228 -0
- package/dist/components/form.d.ts +6 -6
- package/dist/components/form.mjs +123 -0
- package/dist/components/hover-card.d.ts +3 -3
- package/dist/components/hover-card.mjs +35 -0
- package/dist/components/input-group.d.ts +8 -8
- package/dist/components/input-group.mjs +155 -0
- package/dist/components/input-otp.d.ts +4 -4
- package/dist/components/input-otp.mjs +59 -0
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.mjs +19 -0
- package/dist/components/item.d.ts +13 -13
- package/dist/components/item.mjs +187 -0
- package/dist/components/kbd.d.ts +2 -2
- package/dist/components/kbd.mjs +28 -0
- package/dist/components/label.d.ts +1 -1
- package/dist/components/label.mjs +21 -0
- package/dist/components/language-switcher.d.ts +2 -1
- package/dist/components/language-switcher.mjs +30 -0
- package/dist/components/menubar.d.ts +16 -16
- package/dist/components/menubar.mjs +246 -0
- package/dist/components/navigation-menu.d.ts +9 -9
- package/dist/components/navigation-menu.mjs +166 -0
- package/dist/components/pagination.d.ts +7 -7
- package/dist/components/pagination.mjs +116 -0
- package/dist/components/popover.d.ts +4 -4
- package/dist/components/popover.mjs +40 -0
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.mjs +30 -0
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.mjs +43 -0
- package/dist/components/scroll-area.d.ts +2 -2
- package/dist/components/scroll-area.mjs +59 -0
- package/dist/components/select.d.ts +10 -10
- package/dist/components/select.mjs +173 -0
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.mjs +25 -0
- package/dist/components/sheet.d.ts +8 -8
- package/dist/components/sheet.mjs +119 -0
- package/dist/components/sidebar.d.ts +24 -24
- package/dist/components/sidebar.mjs +635 -0
- package/dist/components/skeleton.d.ts +1 -1
- package/dist/components/skeleton.mjs +13 -0
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/slider.mjs +59 -0
- package/dist/components/sonner.d.ts +2 -1
- package/dist/components/sonner.mjs +36 -0
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.mjs +15 -0
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.mjs +30 -0
- package/dist/components/table.d.ts +8 -8
- package/dist/components/table.mjs +115 -0
- package/dist/components/tabs.d.ts +4 -4
- package/dist/components/tabs.mjs +63 -0
- package/dist/components/textarea.d.ts +1 -1
- package/dist/components/textarea.mjs +16 -0
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.mjs +65 -0
- package/dist/components/toggle.d.ts +2 -2
- package/dist/components/toggle.mjs +41 -0
- package/dist/components/tooltip.d.ts +4 -4
- package/dist/components/tooltip.mjs +49 -0
- package/dist/hooks/.gitkeep +0 -0
- package/dist/hooks/use-mobile.mjs +17 -0
- package/dist/hooks/use-user.mjs +12 -0
- package/dist/index.mjs +15 -0
- package/dist/lib/{utils.js → utils.mjs} +1 -1
- package/dist/logo.d.ts +2 -2
- package/dist/logo.mjs +32 -0
- package/dist/postcss.config.mjs +2 -1
- package/dist/providers/auth-provider.d.ts +1 -1
- package/dist/providers/auth-provider.mjs +37 -0
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.mjs +33 -0
- package/dist/shared/access-denied.d.ts +2 -1
- package/dist/shared/access-denied.mjs +12 -0
- package/dist/shared/loader.d.ts +4 -4
- package/dist/shared/loader.mjs +98 -0
- package/dist/shared/page-loader.d.ts +2 -1
- package/dist/shared/page-loader.mjs +6 -0
- package/dist/shared/scroll-fade-effect.d.ts +1 -1
- package/dist/shared/scroll-fade-effect.mjs +20 -0
- package/dist/styles/globals.css +1 -0
- package/package.json +13 -13
- package/dist/components/accordion.js +0 -18
- package/dist/components/alert-dialog.js +0 -39
- package/dist/components/alert.js +0 -24
- package/dist/components/aspect-ratio.js +0 -7
- package/dist/components/avatar.js +0 -14
- package/dist/components/badge.js +0 -22
- package/dist/components/breadcrumb.js +0 -30
- package/dist/components/button-group.js +0 -28
- package/dist/components/button.js +0 -33
- package/dist/components/calendar.js +0 -76
- package/dist/components/card.js +0 -24
- package/dist/components/checkbox.js +0 -9
- package/dist/components/collapsible.js +0 -13
- package/dist/components/command.js +0 -34
- package/dist/components/context-menu.js +0 -51
- package/dist/components/dialog.js +0 -36
- package/dist/components/drawer.js +0 -35
- package/dist/components/dropdown-menu.js +0 -51
- package/dist/components/empty.js +0 -33
- package/dist/components/field.js +0 -78
- package/dist/components/form.js +0 -59
- package/dist/components/hover-card.js +0 -14
- package/dist/components/input-group.js +0 -63
- package/dist/components/input-otp.js +0 -21
- package/dist/components/input.js +0 -6
- package/dist/components/item.js +0 -66
- package/dist/components/kbd.js +0 -9
- package/dist/components/label.js +0 -8
- package/dist/components/language-switcher.js +0 -20
- package/dist/components/menubar.js +0 -54
- package/dist/components/navigation-menu.js +0 -31
- package/dist/components/pagination.js +0 -31
- package/dist/components/popover.js +0 -17
- package/dist/components/progress.js +0 -8
- package/dist/components/radio-group.js +0 -12
- package/dist/components/scroll-area.js +0 -13
- package/dist/components/select.js +0 -38
- package/dist/components/separator.js +0 -8
- package/dist/components/sheet.js +0 -40
- package/dist/components/sidebar.js +0 -213
- package/dist/components/skeleton.js +0 -6
- package/dist/components/slider.js +0 -14
- package/dist/components/sonner.js +0 -21
- package/dist/components/spinner.js +0 -7
- package/dist/components/switch.js +0 -8
- package/dist/components/table.js +0 -28
- package/dist/components/tabs.js +0 -17
- package/dist/components/textarea.js +0 -6
- package/dist/components/toggle-group.js +0 -22
- package/dist/components/toggle.js +0 -26
- package/dist/components/tooltip.js +0 -17
- package/dist/hooks/use-mobile.js +0 -15
- package/dist/hooks/use-user.js +0 -25
- package/dist/index.js +0 -15
- package/dist/logo.js +0 -28
- package/dist/providers/auth-provider.js +0 -27
- package/dist/providers/index.js +0 -23
- package/dist/shared/access-denied.js +0 -6
- package/dist/shared/loader.js +0 -41
- package/dist/shared/page-loader.js +0 -6
- package/dist/shared/scroll-fade-effect.js +0 -5
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
3
|
+
import { SearchIcon } from "lucide-react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { cn } from "../lib/utils.mjs";
|
|
6
|
+
import {
|
|
7
|
+
Dialog,
|
|
8
|
+
DialogContent,
|
|
9
|
+
DialogDescription,
|
|
10
|
+
DialogHeader,
|
|
11
|
+
DialogTitle
|
|
12
|
+
} from "./dialog.mjs";
|
|
13
|
+
function Command({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ React.createElement(
|
|
18
|
+
CommandPrimitive,
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "command",
|
|
21
|
+
className: cn(
|
|
22
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function CommandDialog({
|
|
30
|
+
title = "Command Palette",
|
|
31
|
+
description = "Search for a command to run...",
|
|
32
|
+
children,
|
|
33
|
+
className,
|
|
34
|
+
showCloseButton = true,
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ React.createElement(Dialog, { ...props }, /* @__PURE__ */ React.createElement(DialogHeader, { className: "sr-only" }, /* @__PURE__ */ React.createElement(DialogTitle, null, title), /* @__PURE__ */ React.createElement(DialogDescription, null, description)), /* @__PURE__ */ React.createElement(
|
|
38
|
+
DialogContent,
|
|
39
|
+
{
|
|
40
|
+
className: cn("overflow-hidden p-0", className),
|
|
41
|
+
showCloseButton
|
|
42
|
+
},
|
|
43
|
+
/* @__PURE__ */ React.createElement(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[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" }, children)
|
|
44
|
+
));
|
|
45
|
+
}
|
|
46
|
+
function CommandInput({
|
|
47
|
+
className,
|
|
48
|
+
...props
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ React.createElement(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "command-input-wrapper",
|
|
54
|
+
className: "flex h-9 items-center gap-2 border-b px-3"
|
|
55
|
+
},
|
|
56
|
+
/* @__PURE__ */ React.createElement(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
57
|
+
/* @__PURE__ */ React.createElement(
|
|
58
|
+
CommandPrimitive.Input,
|
|
59
|
+
{
|
|
60
|
+
"data-slot": "command-input",
|
|
61
|
+
className: cn(
|
|
62
|
+
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
...props
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function CommandList({
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}) {
|
|
74
|
+
return /* @__PURE__ */ React.createElement(
|
|
75
|
+
CommandPrimitive.List,
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "command-list",
|
|
78
|
+
className: cn(
|
|
79
|
+
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
80
|
+
className
|
|
81
|
+
),
|
|
82
|
+
...props
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
function CommandEmpty({
|
|
87
|
+
...props
|
|
88
|
+
}) {
|
|
89
|
+
return /* @__PURE__ */ React.createElement(
|
|
90
|
+
CommandPrimitive.Empty,
|
|
91
|
+
{
|
|
92
|
+
"data-slot": "command-empty",
|
|
93
|
+
className: "py-6 text-center text-sm",
|
|
94
|
+
...props
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
function CommandGroup({
|
|
99
|
+
className,
|
|
100
|
+
...props
|
|
101
|
+
}) {
|
|
102
|
+
return /* @__PURE__ */ React.createElement(
|
|
103
|
+
CommandPrimitive.Group,
|
|
104
|
+
{
|
|
105
|
+
"data-slot": "command-group",
|
|
106
|
+
className: cn(
|
|
107
|
+
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
108
|
+
className
|
|
109
|
+
),
|
|
110
|
+
...props
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
function CommandSeparator({
|
|
115
|
+
className,
|
|
116
|
+
...props
|
|
117
|
+
}) {
|
|
118
|
+
return /* @__PURE__ */ React.createElement(
|
|
119
|
+
CommandPrimitive.Separator,
|
|
120
|
+
{
|
|
121
|
+
"data-slot": "command-separator",
|
|
122
|
+
className: cn("bg-border -mx-1 h-px", className),
|
|
123
|
+
...props
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
function CommandItem({
|
|
128
|
+
className,
|
|
129
|
+
...props
|
|
130
|
+
}) {
|
|
131
|
+
return /* @__PURE__ */ React.createElement(
|
|
132
|
+
CommandPrimitive.Item,
|
|
133
|
+
{
|
|
134
|
+
"data-slot": "command-item",
|
|
135
|
+
className: cn(
|
|
136
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
137
|
+
className
|
|
138
|
+
),
|
|
139
|
+
...props
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
function CommandShortcut({
|
|
144
|
+
className,
|
|
145
|
+
...props
|
|
146
|
+
}) {
|
|
147
|
+
return /* @__PURE__ */ React.createElement(
|
|
148
|
+
"span",
|
|
149
|
+
{
|
|
150
|
+
"data-slot": "command-shortcut",
|
|
151
|
+
className: cn(
|
|
152
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
153
|
+
className
|
|
154
|
+
),
|
|
155
|
+
...props
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
Command,
|
|
161
|
+
CommandDialog,
|
|
162
|
+
CommandInput,
|
|
163
|
+
CommandList,
|
|
164
|
+
CommandEmpty,
|
|
165
|
+
CommandGroup,
|
|
166
|
+
CommandItem,
|
|
167
|
+
CommandShortcut,
|
|
168
|
+
CommandSeparator
|
|
169
|
+
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>):
|
|
4
|
-
declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>):
|
|
5
|
-
declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>):
|
|
6
|
-
declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>):
|
|
7
|
-
declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>):
|
|
8
|
-
declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>):
|
|
3
|
+
declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): React.JSX.Element;
|
|
6
|
+
declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): React.JSX.Element;
|
|
7
|
+
declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): React.JSX.Element;
|
|
8
|
+
declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): React.JSX.Element;
|
|
9
9
|
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
10
10
|
inset?: boolean;
|
|
11
|
-
}):
|
|
12
|
-
declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>):
|
|
13
|
-
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>):
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): React.JSX.Element;
|
|
13
|
+
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): React.JSX.Element;
|
|
14
14
|
declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
15
15
|
inset?: boolean;
|
|
16
16
|
variant?: "default" | "destructive";
|
|
17
|
-
}):
|
|
18
|
-
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>):
|
|
19
|
-
declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>):
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): React.JSX.Element;
|
|
19
|
+
declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): React.JSX.Element;
|
|
20
20
|
declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
21
21
|
inset?: boolean;
|
|
22
|
-
}):
|
|
23
|
-
declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>):
|
|
24
|
-
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">):
|
|
22
|
+
}): React.JSX.Element;
|
|
23
|
+
declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): React.JSX.Element;
|
|
24
|
+
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
25
25
|
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
3
|
+
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { cn } from "../lib/utils.mjs";
|
|
6
|
+
function ContextMenu({
|
|
7
|
+
...props
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ React.createElement(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
|
10
|
+
}
|
|
11
|
+
function ContextMenuTrigger({
|
|
12
|
+
...props
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ React.createElement(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
15
|
+
}
|
|
16
|
+
function ContextMenuGroup({
|
|
17
|
+
...props
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ React.createElement(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
|
|
20
|
+
}
|
|
21
|
+
function ContextMenuPortal({
|
|
22
|
+
...props
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ React.createElement(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
|
|
25
|
+
}
|
|
26
|
+
function ContextMenuSub({
|
|
27
|
+
...props
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ React.createElement(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
30
|
+
}
|
|
31
|
+
function ContextMenuRadioGroup({
|
|
32
|
+
...props
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ React.createElement(
|
|
35
|
+
ContextMenuPrimitive.RadioGroup,
|
|
36
|
+
{
|
|
37
|
+
"data-slot": "context-menu-radio-group",
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function ContextMenuSubTrigger({
|
|
43
|
+
className,
|
|
44
|
+
inset,
|
|
45
|
+
children,
|
|
46
|
+
...props
|
|
47
|
+
}) {
|
|
48
|
+
return /* @__PURE__ */ React.createElement(
|
|
49
|
+
ContextMenuPrimitive.SubTrigger,
|
|
50
|
+
{
|
|
51
|
+
"data-slot": "context-menu-sub-trigger",
|
|
52
|
+
"data-inset": inset,
|
|
53
|
+
className: cn(
|
|
54
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
55
|
+
className
|
|
56
|
+
),
|
|
57
|
+
...props
|
|
58
|
+
},
|
|
59
|
+
children,
|
|
60
|
+
/* @__PURE__ */ React.createElement(ChevronRightIcon, { className: "ml-auto" })
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
function ContextMenuSubContent({
|
|
64
|
+
className,
|
|
65
|
+
...props
|
|
66
|
+
}) {
|
|
67
|
+
return /* @__PURE__ */ React.createElement(
|
|
68
|
+
ContextMenuPrimitive.SubContent,
|
|
69
|
+
{
|
|
70
|
+
"data-slot": "context-menu-sub-content",
|
|
71
|
+
className: cn(
|
|
72
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
73
|
+
className
|
|
74
|
+
),
|
|
75
|
+
...props
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function ContextMenuContent({
|
|
80
|
+
className,
|
|
81
|
+
...props
|
|
82
|
+
}) {
|
|
83
|
+
return /* @__PURE__ */ React.createElement(ContextMenuPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
|
|
84
|
+
ContextMenuPrimitive.Content,
|
|
85
|
+
{
|
|
86
|
+
"data-slot": "context-menu-content",
|
|
87
|
+
className: cn(
|
|
88
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
89
|
+
className
|
|
90
|
+
),
|
|
91
|
+
...props
|
|
92
|
+
}
|
|
93
|
+
));
|
|
94
|
+
}
|
|
95
|
+
function ContextMenuItem({
|
|
96
|
+
className,
|
|
97
|
+
inset,
|
|
98
|
+
variant = "default",
|
|
99
|
+
...props
|
|
100
|
+
}) {
|
|
101
|
+
return /* @__PURE__ */ React.createElement(
|
|
102
|
+
ContextMenuPrimitive.Item,
|
|
103
|
+
{
|
|
104
|
+
"data-slot": "context-menu-item",
|
|
105
|
+
"data-inset": inset,
|
|
106
|
+
"data-variant": variant,
|
|
107
|
+
className: cn(
|
|
108
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
109
|
+
className
|
|
110
|
+
),
|
|
111
|
+
...props
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
function ContextMenuCheckboxItem({
|
|
116
|
+
className,
|
|
117
|
+
children,
|
|
118
|
+
checked,
|
|
119
|
+
...props
|
|
120
|
+
}) {
|
|
121
|
+
return /* @__PURE__ */ React.createElement(
|
|
122
|
+
ContextMenuPrimitive.CheckboxItem,
|
|
123
|
+
{
|
|
124
|
+
"data-slot": "context-menu-checkbox-item",
|
|
125
|
+
className: cn(
|
|
126
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
127
|
+
className
|
|
128
|
+
),
|
|
129
|
+
checked,
|
|
130
|
+
...props
|
|
131
|
+
},
|
|
132
|
+
/* @__PURE__ */ React.createElement("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(ContextMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(CheckIcon, { className: "size-4" }))),
|
|
133
|
+
children
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
function ContextMenuRadioItem({
|
|
137
|
+
className,
|
|
138
|
+
children,
|
|
139
|
+
...props
|
|
140
|
+
}) {
|
|
141
|
+
return /* @__PURE__ */ React.createElement(
|
|
142
|
+
ContextMenuPrimitive.RadioItem,
|
|
143
|
+
{
|
|
144
|
+
"data-slot": "context-menu-radio-item",
|
|
145
|
+
className: cn(
|
|
146
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
147
|
+
className
|
|
148
|
+
),
|
|
149
|
+
...props
|
|
150
|
+
},
|
|
151
|
+
/* @__PURE__ */ React.createElement("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(ContextMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(CircleIcon, { className: "size-2 fill-current" }))),
|
|
152
|
+
children
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
function ContextMenuLabel({
|
|
156
|
+
className,
|
|
157
|
+
inset,
|
|
158
|
+
...props
|
|
159
|
+
}) {
|
|
160
|
+
return /* @__PURE__ */ React.createElement(
|
|
161
|
+
ContextMenuPrimitive.Label,
|
|
162
|
+
{
|
|
163
|
+
"data-slot": "context-menu-label",
|
|
164
|
+
"data-inset": inset,
|
|
165
|
+
className: cn(
|
|
166
|
+
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
167
|
+
className
|
|
168
|
+
),
|
|
169
|
+
...props
|
|
170
|
+
}
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
function ContextMenuSeparator({
|
|
174
|
+
className,
|
|
175
|
+
...props
|
|
176
|
+
}) {
|
|
177
|
+
return /* @__PURE__ */ React.createElement(
|
|
178
|
+
ContextMenuPrimitive.Separator,
|
|
179
|
+
{
|
|
180
|
+
"data-slot": "context-menu-separator",
|
|
181
|
+
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
182
|
+
...props
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
function ContextMenuShortcut({
|
|
187
|
+
className,
|
|
188
|
+
...props
|
|
189
|
+
}) {
|
|
190
|
+
return /* @__PURE__ */ React.createElement(
|
|
191
|
+
"span",
|
|
192
|
+
{
|
|
193
|
+
"data-slot": "context-menu-shortcut",
|
|
194
|
+
className: cn(
|
|
195
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
196
|
+
className
|
|
197
|
+
),
|
|
198
|
+
...props
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
export {
|
|
203
|
+
ContextMenu,
|
|
204
|
+
ContextMenuTrigger,
|
|
205
|
+
ContextMenuContent,
|
|
206
|
+
ContextMenuItem,
|
|
207
|
+
ContextMenuCheckboxItem,
|
|
208
|
+
ContextMenuRadioItem,
|
|
209
|
+
ContextMenuLabel,
|
|
210
|
+
ContextMenuSeparator,
|
|
211
|
+
ContextMenuShortcut,
|
|
212
|
+
ContextMenuGroup,
|
|
213
|
+
ContextMenuPortal,
|
|
214
|
+
ContextMenuSub,
|
|
215
|
+
ContextMenuSubContent,
|
|
216
|
+
ContextMenuSubTrigger,
|
|
217
|
+
ContextMenuRadioGroup
|
|
218
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>):
|
|
4
|
-
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>):
|
|
5
|
-
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>):
|
|
6
|
-
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>):
|
|
7
|
-
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>):
|
|
3
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
|
|
6
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
|
|
7
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
|
|
8
8
|
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
9
|
showCloseButton?: boolean;
|
|
10
|
-
}):
|
|
11
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
12
|
-
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
13
|
-
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>):
|
|
14
|
-
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>):
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
12
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
13
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
|
|
14
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
|
|
15
15
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { XIcon } from "lucide-react";
|
|
3
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { cn } from "../lib/utils.mjs";
|
|
6
|
+
function Dialog({
|
|
7
|
+
...props
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
10
|
+
}
|
|
11
|
+
function DialogTrigger({
|
|
12
|
+
...props
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
15
|
+
}
|
|
16
|
+
function DialogPortal({
|
|
17
|
+
...props
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
20
|
+
}
|
|
21
|
+
function DialogClose({
|
|
22
|
+
...props
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
25
|
+
}
|
|
26
|
+
function DialogOverlay({
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ React.createElement(
|
|
31
|
+
DialogPrimitive.Overlay,
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "dialog-overlay",
|
|
34
|
+
className: cn(
|
|
35
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
36
|
+
className
|
|
37
|
+
),
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function DialogContent({
|
|
43
|
+
className,
|
|
44
|
+
children,
|
|
45
|
+
showCloseButton = true,
|
|
46
|
+
...props
|
|
47
|
+
}) {
|
|
48
|
+
return /* @__PURE__ */ React.createElement(DialogPortal, { "data-slot": "dialog-portal" }, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
|
|
49
|
+
DialogPrimitive.Content,
|
|
50
|
+
{
|
|
51
|
+
"data-slot": "dialog-content",
|
|
52
|
+
className: cn(
|
|
53
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",
|
|
54
|
+
className
|
|
55
|
+
),
|
|
56
|
+
...props
|
|
57
|
+
},
|
|
58
|
+
children,
|
|
59
|
+
showCloseButton && /* @__PURE__ */ React.createElement(
|
|
60
|
+
DialogPrimitive.Close,
|
|
61
|
+
{
|
|
62
|
+
"data-slot": "dialog-close",
|
|
63
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
|
|
64
|
+
},
|
|
65
|
+
/* @__PURE__ */ React.createElement(XIcon, null),
|
|
66
|
+
/* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close")
|
|
67
|
+
)
|
|
68
|
+
));
|
|
69
|
+
}
|
|
70
|
+
function DialogHeader({ className, ...props }) {
|
|
71
|
+
return /* @__PURE__ */ React.createElement(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
"data-slot": "dialog-header",
|
|
75
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
76
|
+
...props
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function DialogFooter({ className, ...props }) {
|
|
81
|
+
return /* @__PURE__ */ React.createElement(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "dialog-footer",
|
|
85
|
+
className: cn(
|
|
86
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
87
|
+
className
|
|
88
|
+
),
|
|
89
|
+
...props
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function DialogTitle({
|
|
94
|
+
className,
|
|
95
|
+
...props
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ React.createElement(
|
|
98
|
+
DialogPrimitive.Title,
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "dialog-title",
|
|
101
|
+
className: cn("text-lg leading-none font-semibold", className),
|
|
102
|
+
...props
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
function DialogDescription({
|
|
107
|
+
className,
|
|
108
|
+
...props
|
|
109
|
+
}) {
|
|
110
|
+
return /* @__PURE__ */ React.createElement(
|
|
111
|
+
DialogPrimitive.Description,
|
|
112
|
+
{
|
|
113
|
+
"data-slot": "dialog-description",
|
|
114
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
115
|
+
...props
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
Dialog,
|
|
121
|
+
DialogClose,
|
|
122
|
+
DialogContent,
|
|
123
|
+
DialogDescription,
|
|
124
|
+
DialogFooter,
|
|
125
|
+
DialogHeader,
|
|
126
|
+
DialogOverlay,
|
|
127
|
+
DialogPortal,
|
|
128
|
+
DialogTitle,
|
|
129
|
+
DialogTrigger
|
|
130
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
3
|
-
declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>):
|
|
4
|
-
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>):
|
|
5
|
-
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>):
|
|
6
|
-
declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>):
|
|
7
|
-
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>):
|
|
8
|
-
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>):
|
|
9
|
-
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
10
|
-
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
11
|
-
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>):
|
|
12
|
-
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>):
|
|
3
|
+
declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
|
|
6
|
+
declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): React.JSX.Element;
|
|
7
|
+
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): React.JSX.Element;
|
|
8
|
+
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>): React.JSX.Element;
|
|
9
|
+
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
10
|
+
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
+
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): React.JSX.Element;
|
|
12
|
+
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): React.JSX.Element;
|
|
13
13
|
export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
|