@arolariu/components 0.0.11 → 0.0.13
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/cjs/components/ui/alert-dialog.js +1 -1
- package/dist/cjs/components/ui/carousel.js +1 -1
- package/dist/cjs/components/ui/menubar.js +1 -1
- package/dist/cjs/components/ui/pagination.js +1 -1
- package/dist/cjs/components/ui/popover.js +1 -1
- package/dist/cjs/components/ui/scroll-area.js +1 -1
- package/dist/cjs/components/ui/sidebar.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/components/ui/accordion.js +50 -8
- package/dist/es/components/ui/alert-dialog.js +118 -22
- package/dist/es/components/ui/alert.js +52 -14
- package/dist/es/components/ui/aspect-ratio.js +4 -2
- package/dist/es/components/ui/avatar.js +42 -6
- package/dist/es/components/ui/badge.js +28 -13
- package/dist/es/components/ui/breadcrumb.js +78 -10
- package/dist/es/components/ui/button.js +37 -21
- package/dist/es/components/ui/calendar.js +52 -29
- package/dist/es/components/ui/card.js +51 -6
- package/dist/es/components/ui/carousel.js +142 -32
- package/dist/es/components/ui/chart.js +169 -42
- package/dist/es/components/ui/checkbox.js +23 -2
- package/dist/es/components/ui/collapsible.js +24 -6
- package/dist/es/components/ui/command.js +136 -18
- package/dist/es/components/ui/context-menu.js +187 -30
- package/dist/es/components/ui/dialog.js +100 -18
- package/dist/es/components/ui/drawer.js +98 -18
- package/dist/es/components/ui/dropdown-menu.js +195 -30
- package/dist/es/components/ui/form.js +59 -8
- package/dist/es/components/ui/hover-card.js +30 -9
- package/dist/es/components/ui/input-otp.js +47 -6
- package/dist/es/components/ui/input.js +14 -1
- package/dist/es/components/ui/label.js +15 -2
- package/dist/es/components/ui/menubar.js +228 -47
- package/dist/es/components/ui/navigation-menu.js +146 -17
- package/dist/es/components/ui/pagination.js +96 -15
- package/dist/es/components/ui/popover.js +33 -10
- package/dist/es/components/ui/progress.js +24 -2
- package/dist/es/components/ui/radio-group.js +35 -4
- package/dist/es/components/ui/resizable.js +36 -6
- package/dist/es/components/ui/scroll-area.js +51 -4
- package/dist/es/components/ui/select.js +143 -22
- package/dist/es/components/ui/separator.js +19 -2
- package/dist/es/components/ui/sheet.js +99 -17
- package/dist/es/components/ui/sidebar.js +512 -112
- package/dist/es/components/ui/skeleton.js +8 -1
- package/dist/es/components/ui/slider.js +56 -4
- package/dist/es/components/ui/sonner.js +15 -7
- package/dist/es/components/ui/switch.js +24 -2
- package/dist/es/components/ui/table.js +87 -9
- package/dist/es/components/ui/tabs.js +54 -8
- package/dist/es/components/ui/textarea.js +11 -1
- package/dist/es/components/ui/toggle-group.js +48 -9
- package/dist/es/components/ui/toggle.js +31 -16
- package/dist/es/components/ui/tooltip.js +45 -11
- package/dist/types/index.d.ts +46 -46
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +12 -2
- package/dist/umd/arolariu-components.umd.js +0 -7
|
@@ -2,50 +2,207 @@ import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
|
2
2
|
import * as n from "@radix-ui/react-context-menu";
|
|
3
3
|
import { CheckIcon as u, CircleIcon as i, ChevronRightIcon as l } from "lucide-react";
|
|
4
4
|
import { cn as o } from "../../lib/utils.js";
|
|
5
|
-
function f({
|
|
6
|
-
|
|
5
|
+
function f({
|
|
6
|
+
...t
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ e(n.Root, { "data-slot": "context-menu", ...t });
|
|
7
9
|
}
|
|
8
|
-
function p({
|
|
9
|
-
|
|
10
|
+
function p({
|
|
11
|
+
...t
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e(n.Trigger, { "data-slot": "context-menu-trigger", ...t });
|
|
10
14
|
}
|
|
11
|
-
function g({
|
|
12
|
-
|
|
15
|
+
function g({
|
|
16
|
+
...t
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ e(n.Group, { "data-slot": "context-menu-group", ...t });
|
|
13
19
|
}
|
|
14
|
-
function b({
|
|
15
|
-
|
|
20
|
+
function b({
|
|
21
|
+
...t
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ e(n.Portal, { "data-slot": "context-menu-portal", ...t });
|
|
16
24
|
}
|
|
17
|
-
function v({
|
|
18
|
-
|
|
25
|
+
function v({
|
|
26
|
+
...t
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ e(n.Sub, { "data-slot": "context-menu-sub", ...t });
|
|
19
29
|
}
|
|
20
|
-
function h({
|
|
21
|
-
|
|
30
|
+
function h({
|
|
31
|
+
...t
|
|
32
|
+
}) {
|
|
33
|
+
return /* @__PURE__ */ e(
|
|
34
|
+
n.RadioGroup,
|
|
35
|
+
{
|
|
36
|
+
"data-slot": "context-menu-radio-group",
|
|
37
|
+
...t
|
|
38
|
+
}
|
|
39
|
+
);
|
|
22
40
|
}
|
|
23
|
-
function k({
|
|
24
|
-
|
|
41
|
+
function k({
|
|
42
|
+
className: t,
|
|
43
|
+
inset: a,
|
|
44
|
+
children: r,
|
|
45
|
+
...s
|
|
46
|
+
}) {
|
|
47
|
+
return /* @__PURE__ */ d(
|
|
48
|
+
n.SubTrigger,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "context-menu-sub-trigger",
|
|
51
|
+
"data-inset": a,
|
|
52
|
+
className: o(
|
|
53
|
+
"focus:bg-neutral-100 focus:text-neutral-900 data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-900 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 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-50",
|
|
54
|
+
t
|
|
55
|
+
),
|
|
56
|
+
...s,
|
|
57
|
+
children: [
|
|
58
|
+
r,
|
|
59
|
+
/* @__PURE__ */ e(l, { className: "ml-auto" })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
25
63
|
}
|
|
26
|
-
function C({
|
|
27
|
-
|
|
64
|
+
function C({
|
|
65
|
+
className: t,
|
|
66
|
+
...a
|
|
67
|
+
}) {
|
|
68
|
+
return /* @__PURE__ */ e(
|
|
69
|
+
n.SubContent,
|
|
70
|
+
{
|
|
71
|
+
"data-slot": "context-menu-sub-content",
|
|
72
|
+
className: o(
|
|
73
|
+
"bg-white text-neutral-950 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] overflow-hidden rounded-md border border-neutral-200 p-1 shadow-lg dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
|
|
74
|
+
t
|
|
75
|
+
),
|
|
76
|
+
...a
|
|
77
|
+
}
|
|
78
|
+
);
|
|
28
79
|
}
|
|
29
|
-
function z({
|
|
30
|
-
|
|
80
|
+
function z({
|
|
81
|
+
className: t,
|
|
82
|
+
...a
|
|
83
|
+
}) {
|
|
84
|
+
return /* @__PURE__ */ e(n.Portal, { children: /* @__PURE__ */ e(
|
|
85
|
+
n.Content,
|
|
86
|
+
{
|
|
87
|
+
"data-slot": "context-menu-content",
|
|
88
|
+
className: o(
|
|
89
|
+
"bg-white text-neutral-950 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] overflow-hidden rounded-md border border-neutral-200 p-1 shadow-md dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
|
|
90
|
+
t
|
|
91
|
+
),
|
|
92
|
+
...a
|
|
93
|
+
}
|
|
94
|
+
) });
|
|
31
95
|
}
|
|
32
|
-
function M({
|
|
33
|
-
|
|
96
|
+
function M({
|
|
97
|
+
className: t,
|
|
98
|
+
inset: a,
|
|
99
|
+
variant: r = "default",
|
|
100
|
+
...s
|
|
101
|
+
}) {
|
|
102
|
+
return /* @__PURE__ */ e(
|
|
103
|
+
n.Item,
|
|
104
|
+
{
|
|
105
|
+
"data-slot": "context-menu-item",
|
|
106
|
+
"data-inset": a,
|
|
107
|
+
"data-variant": r,
|
|
108
|
+
className: o(
|
|
109
|
+
"focus:bg-neutral-100 focus:text-neutral-900 data-[variant=destructive]:text-neutral-50 data-[variant=destructive]:focus:bg-red-500/10 dark:data-[variant=destructive]:focus:bg-red-500/40 data-[variant=destructive]:focus:text-neutral-50 data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-neutral-500 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 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[variant=destructive]:text-neutral-50 dark:data-[variant=destructive]:focus:bg-red-900/10 dark:dark:data-[variant=destructive]:focus:bg-red-900/40 dark:data-[variant=destructive]:focus:text-neutral-50 dark:[&_svg:not([class*='text-'])]:text-neutral-400",
|
|
110
|
+
t
|
|
111
|
+
),
|
|
112
|
+
...s
|
|
113
|
+
}
|
|
114
|
+
);
|
|
34
115
|
}
|
|
35
|
-
function N({
|
|
36
|
-
|
|
116
|
+
function N({
|
|
117
|
+
className: t,
|
|
118
|
+
children: a,
|
|
119
|
+
checked: r,
|
|
120
|
+
...s
|
|
121
|
+
}) {
|
|
122
|
+
return /* @__PURE__ */ d(
|
|
123
|
+
n.CheckboxItem,
|
|
124
|
+
{
|
|
125
|
+
"data-slot": "context-menu-checkbox-item",
|
|
126
|
+
className: o(
|
|
127
|
+
"focus:bg-neutral-100 focus:text-neutral-900 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 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
|
|
128
|
+
t
|
|
129
|
+
),
|
|
130
|
+
checked: r,
|
|
131
|
+
...s,
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(u, { className: "size-4" }) }) }),
|
|
134
|
+
a
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
);
|
|
37
138
|
}
|
|
38
|
-
function _({
|
|
39
|
-
|
|
139
|
+
function _({
|
|
140
|
+
className: t,
|
|
141
|
+
children: a,
|
|
142
|
+
...r
|
|
143
|
+
}) {
|
|
144
|
+
return /* @__PURE__ */ d(
|
|
145
|
+
n.RadioItem,
|
|
146
|
+
{
|
|
147
|
+
"data-slot": "context-menu-radio-item",
|
|
148
|
+
className: o(
|
|
149
|
+
"focus:bg-neutral-100 focus:text-neutral-900 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 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
|
|
150
|
+
t
|
|
151
|
+
),
|
|
152
|
+
...r,
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(i, { className: "size-2 fill-current" }) }) }),
|
|
155
|
+
a
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
);
|
|
40
159
|
}
|
|
41
|
-
function I({
|
|
42
|
-
|
|
160
|
+
function I({
|
|
161
|
+
className: t,
|
|
162
|
+
inset: a,
|
|
163
|
+
...r
|
|
164
|
+
}) {
|
|
165
|
+
return /* @__PURE__ */ e(
|
|
166
|
+
n.Label,
|
|
167
|
+
{
|
|
168
|
+
"data-slot": "context-menu-label",
|
|
169
|
+
"data-inset": a,
|
|
170
|
+
className: o(
|
|
171
|
+
"text-neutral-950 px-2 py-1.5 text-sm font-medium data-[inset]:pl-8 dark:text-neutral-50",
|
|
172
|
+
t
|
|
173
|
+
),
|
|
174
|
+
...r
|
|
175
|
+
}
|
|
176
|
+
);
|
|
43
177
|
}
|
|
44
|
-
function y({
|
|
45
|
-
|
|
178
|
+
function y({
|
|
179
|
+
className: t,
|
|
180
|
+
...a
|
|
181
|
+
}) {
|
|
182
|
+
return /* @__PURE__ */ e(
|
|
183
|
+
n.Separator,
|
|
184
|
+
{
|
|
185
|
+
"data-slot": "context-menu-separator",
|
|
186
|
+
className: o("bg-neutral-200 -mx-1 my-1 h-px dark:bg-neutral-800", t),
|
|
187
|
+
...a
|
|
188
|
+
}
|
|
189
|
+
);
|
|
46
190
|
}
|
|
47
|
-
function w({
|
|
48
|
-
|
|
191
|
+
function w({
|
|
192
|
+
className: t,
|
|
193
|
+
...a
|
|
194
|
+
}) {
|
|
195
|
+
return /* @__PURE__ */ e(
|
|
196
|
+
"span",
|
|
197
|
+
{
|
|
198
|
+
"data-slot": "context-menu-shortcut",
|
|
199
|
+
className: o(
|
|
200
|
+
"text-neutral-500 ml-auto text-xs tracking-widest dark:text-neutral-400",
|
|
201
|
+
t
|
|
202
|
+
),
|
|
203
|
+
...a
|
|
204
|
+
}
|
|
205
|
+
);
|
|
49
206
|
}
|
|
50
207
|
export {
|
|
51
208
|
f as ContextMenu,
|
|
@@ -2,35 +2,117 @@ import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "@radix-ui/react-dialog";
|
|
3
3
|
import { XIcon as i } from "lucide-react";
|
|
4
4
|
import { cn as n } from "../../lib/utils.js";
|
|
5
|
-
function f({
|
|
6
|
-
|
|
5
|
+
function f({
|
|
6
|
+
...t
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ a(o.Root, { "data-slot": "dialog", ...t });
|
|
7
9
|
}
|
|
8
|
-
function m({
|
|
9
|
-
|
|
10
|
+
function m({
|
|
11
|
+
...t
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ a(o.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
10
14
|
}
|
|
11
|
-
function s({
|
|
12
|
-
|
|
15
|
+
function s({
|
|
16
|
+
...t
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ a(o.Portal, { "data-slot": "dialog-portal", ...t });
|
|
13
19
|
}
|
|
14
|
-
function p({
|
|
15
|
-
|
|
20
|
+
function p({
|
|
21
|
+
...t
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ a(o.Close, { "data-slot": "dialog-close", ...t });
|
|
16
24
|
}
|
|
17
|
-
function d({
|
|
18
|
-
|
|
25
|
+
function d({
|
|
26
|
+
className: t,
|
|
27
|
+
...e
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ a(
|
|
30
|
+
o.Overlay,
|
|
31
|
+
{
|
|
32
|
+
"data-slot": "dialog-overlay",
|
|
33
|
+
className: n(
|
|
34
|
+
"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/80",
|
|
35
|
+
t
|
|
36
|
+
),
|
|
37
|
+
...e
|
|
38
|
+
}
|
|
39
|
+
);
|
|
19
40
|
}
|
|
20
|
-
function x({
|
|
21
|
-
|
|
41
|
+
function x({
|
|
42
|
+
className: t,
|
|
43
|
+
children: e,
|
|
44
|
+
...r
|
|
45
|
+
}) {
|
|
46
|
+
return /* @__PURE__ */ l(s, { "data-slot": "dialog-portal", children: [
|
|
47
|
+
/* @__PURE__ */ a(d, {}),
|
|
48
|
+
/* @__PURE__ */ l(
|
|
49
|
+
o.Content,
|
|
50
|
+
{
|
|
51
|
+
"data-slot": "dialog-content",
|
|
52
|
+
className: n(
|
|
53
|
+
"bg-white 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 border-neutral-200 p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-neutral-950 dark:border-neutral-800",
|
|
54
|
+
t
|
|
55
|
+
),
|
|
56
|
+
...r,
|
|
57
|
+
children: [
|
|
58
|
+
e,
|
|
59
|
+
/* @__PURE__ */ l(o.Close, { className: "ring-offset-white focus:ring-neutral-950 data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 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 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400", children: [
|
|
60
|
+
/* @__PURE__ */ a(i, {}),
|
|
61
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
62
|
+
] })
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] });
|
|
22
67
|
}
|
|
23
68
|
function v({ className: t, ...e }) {
|
|
24
|
-
return
|
|
69
|
+
return /* @__PURE__ */ a(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
"data-slot": "dialog-header",
|
|
73
|
+
className: n("flex flex-col gap-2 text-center sm:text-left", t),
|
|
74
|
+
...e
|
|
75
|
+
}
|
|
76
|
+
);
|
|
25
77
|
}
|
|
26
78
|
function D({ className: t, ...e }) {
|
|
27
|
-
return
|
|
79
|
+
return /* @__PURE__ */ a(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
"data-slot": "dialog-footer",
|
|
83
|
+
className: n(
|
|
84
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
85
|
+
t
|
|
86
|
+
),
|
|
87
|
+
...e
|
|
88
|
+
}
|
|
89
|
+
);
|
|
28
90
|
}
|
|
29
|
-
function b({
|
|
30
|
-
|
|
91
|
+
function b({
|
|
92
|
+
className: t,
|
|
93
|
+
...e
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ a(
|
|
96
|
+
o.Title,
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "dialog-title",
|
|
99
|
+
className: n("text-lg leading-none font-semibold", t),
|
|
100
|
+
...e
|
|
101
|
+
}
|
|
102
|
+
);
|
|
31
103
|
}
|
|
32
|
-
function h({
|
|
33
|
-
|
|
104
|
+
function h({
|
|
105
|
+
className: t,
|
|
106
|
+
...e
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ a(
|
|
109
|
+
o.Description,
|
|
110
|
+
{
|
|
111
|
+
"data-slot": "dialog-description",
|
|
112
|
+
className: n("text-neutral-500 text-sm dark:text-neutral-400", t),
|
|
113
|
+
...e
|
|
114
|
+
}
|
|
115
|
+
);
|
|
34
116
|
}
|
|
35
117
|
export {
|
|
36
118
|
f as Dialog,
|
|
@@ -1,35 +1,115 @@
|
|
|
1
1
|
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { Drawer as e } from "vaul";
|
|
3
3
|
import { cn as d } from "../../lib/utils.js";
|
|
4
|
-
function w({
|
|
5
|
-
|
|
4
|
+
function w({
|
|
5
|
+
...a
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ r(e.Root, { "data-slot": "drawer", ...a });
|
|
6
8
|
}
|
|
7
|
-
function m({
|
|
8
|
-
|
|
9
|
+
function m({
|
|
10
|
+
...a
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ r(e.Trigger, { "data-slot": "drawer-trigger", ...a });
|
|
9
13
|
}
|
|
10
|
-
function i({
|
|
11
|
-
|
|
14
|
+
function i({
|
|
15
|
+
...a
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ r(e.Portal, { "data-slot": "drawer-portal", ...a });
|
|
12
18
|
}
|
|
13
|
-
function f({
|
|
14
|
-
|
|
19
|
+
function f({
|
|
20
|
+
...a
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ r(e.Close, { "data-slot": "drawer-close", ...a });
|
|
15
23
|
}
|
|
16
|
-
function l({
|
|
17
|
-
|
|
24
|
+
function l({
|
|
25
|
+
className: a,
|
|
26
|
+
...t
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ r(
|
|
29
|
+
e.Overlay,
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "drawer-overlay",
|
|
32
|
+
className: d(
|
|
33
|
+
"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/80",
|
|
34
|
+
a
|
|
35
|
+
),
|
|
36
|
+
...t
|
|
37
|
+
}
|
|
38
|
+
);
|
|
18
39
|
}
|
|
19
|
-
function v({
|
|
20
|
-
|
|
40
|
+
function v({
|
|
41
|
+
className: a,
|
|
42
|
+
children: t,
|
|
43
|
+
...n
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ o(i, { "data-slot": "drawer-portal", children: [
|
|
46
|
+
/* @__PURE__ */ r(l, {}),
|
|
47
|
+
/* @__PURE__ */ o(
|
|
48
|
+
e.Content,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "drawer-content",
|
|
51
|
+
className: d(
|
|
52
|
+
"group/drawer-content bg-white fixed z-50 flex h-auto flex-col dark:bg-neutral-950",
|
|
53
|
+
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg",
|
|
54
|
+
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg",
|
|
55
|
+
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
56
|
+
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
57
|
+
a
|
|
58
|
+
),
|
|
59
|
+
...n,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ r("div", { className: "bg-neutral-100 mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block dark:bg-neutral-800" }),
|
|
62
|
+
t
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] });
|
|
21
67
|
}
|
|
22
68
|
function p({ className: a, ...t }) {
|
|
23
|
-
return
|
|
69
|
+
return /* @__PURE__ */ r(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
"data-slot": "drawer-header",
|
|
73
|
+
className: d("flex flex-col gap-1.5 p-4", a),
|
|
74
|
+
...t
|
|
75
|
+
}
|
|
76
|
+
);
|
|
24
77
|
}
|
|
25
78
|
function x({ className: a, ...t }) {
|
|
26
|
-
return
|
|
79
|
+
return /* @__PURE__ */ r(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
"data-slot": "drawer-footer",
|
|
83
|
+
className: d("mt-auto flex flex-col gap-2 p-4", a),
|
|
84
|
+
...t
|
|
85
|
+
}
|
|
86
|
+
);
|
|
27
87
|
}
|
|
28
|
-
function g({
|
|
29
|
-
|
|
88
|
+
function g({
|
|
89
|
+
className: a,
|
|
90
|
+
...t
|
|
91
|
+
}) {
|
|
92
|
+
return /* @__PURE__ */ r(
|
|
93
|
+
e.Title,
|
|
94
|
+
{
|
|
95
|
+
"data-slot": "drawer-title",
|
|
96
|
+
className: d("text-neutral-950 font-semibold dark:text-neutral-50", a),
|
|
97
|
+
...t
|
|
98
|
+
}
|
|
99
|
+
);
|
|
30
100
|
}
|
|
31
|
-
function b({
|
|
32
|
-
|
|
101
|
+
function b({
|
|
102
|
+
className: a,
|
|
103
|
+
...t
|
|
104
|
+
}) {
|
|
105
|
+
return /* @__PURE__ */ r(
|
|
106
|
+
e.Description,
|
|
107
|
+
{
|
|
108
|
+
"data-slot": "drawer-description",
|
|
109
|
+
className: d("text-neutral-500 text-sm dark:text-neutral-400", a),
|
|
110
|
+
...t
|
|
111
|
+
}
|
|
112
|
+
);
|
|
33
113
|
}
|
|
34
114
|
export {
|
|
35
115
|
w as Drawer,
|