@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,53 +2,234 @@ import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
|
2
2
|
import * as r from "@radix-ui/react-menubar";
|
|
3
3
|
import { CheckIcon as i, CircleIcon as l, ChevronRightIcon as c } from "lucide-react";
|
|
4
4
|
import { cn as s } from "../../lib/utils.js";
|
|
5
|
-
function g({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
}
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return a(r.
|
|
40
|
-
}
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
5
|
+
function g({
|
|
6
|
+
className: t,
|
|
7
|
+
...e
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ a(
|
|
10
|
+
r.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "menubar",
|
|
13
|
+
className: s(
|
|
14
|
+
"bg-white flex h-9 items-center gap-1 rounded-md border border-neutral-200 p-1 shadow-xs dark:bg-neutral-950 dark:border-neutral-800",
|
|
15
|
+
t
|
|
16
|
+
),
|
|
17
|
+
...e
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function x({
|
|
22
|
+
...t
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ a(r.Menu, { "data-slot": "menubar-menu", ...t });
|
|
25
|
+
}
|
|
26
|
+
function v({
|
|
27
|
+
...t
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ a(r.Group, { "data-slot": "menubar-group", ...t });
|
|
30
|
+
}
|
|
31
|
+
function m({
|
|
32
|
+
...t
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ a(r.Portal, { "data-slot": "menubar-portal", ...t });
|
|
35
|
+
}
|
|
36
|
+
function k({
|
|
37
|
+
...t
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ a(r.RadioGroup, { "data-slot": "menubar-radio-group", ...t });
|
|
40
|
+
}
|
|
41
|
+
function h({
|
|
42
|
+
className: t,
|
|
43
|
+
...e
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ a(
|
|
46
|
+
r.Trigger,
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "menubar-trigger",
|
|
49
|
+
className: s(
|
|
50
|
+
"focus:bg-neutral-100 focus:text-neutral-900 data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-900 flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-50",
|
|
51
|
+
t
|
|
52
|
+
),
|
|
53
|
+
...e
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
function M({
|
|
58
|
+
className: t,
|
|
59
|
+
align: e = "start",
|
|
60
|
+
alignOffset: n = -4,
|
|
61
|
+
sideOffset: o = 8,
|
|
62
|
+
...u
|
|
63
|
+
}) {
|
|
64
|
+
return /* @__PURE__ */ a(m, { children: /* @__PURE__ */ a(
|
|
65
|
+
r.Content,
|
|
66
|
+
{
|
|
67
|
+
"data-slot": "menubar-content",
|
|
68
|
+
align: e,
|
|
69
|
+
alignOffset: n,
|
|
70
|
+
sideOffset: o,
|
|
71
|
+
className: s(
|
|
72
|
+
"bg-white text-neutral-950 data-[state=open]:animate-in 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-[12rem] overflow-hidden rounded-md border border-neutral-200 p-1 shadow-md dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
|
|
73
|
+
t
|
|
74
|
+
),
|
|
75
|
+
...u
|
|
76
|
+
}
|
|
77
|
+
) });
|
|
78
|
+
}
|
|
79
|
+
function z({
|
|
80
|
+
className: t,
|
|
81
|
+
inset: e,
|
|
82
|
+
variant: n = "default",
|
|
83
|
+
...o
|
|
84
|
+
}) {
|
|
85
|
+
return /* @__PURE__ */ a(
|
|
86
|
+
r.Item,
|
|
87
|
+
{
|
|
88
|
+
"data-slot": "menubar-item",
|
|
89
|
+
"data-inset": e,
|
|
90
|
+
"data-variant": n,
|
|
91
|
+
className: s(
|
|
92
|
+
"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",
|
|
93
|
+
t
|
|
94
|
+
),
|
|
95
|
+
...o
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
function N({
|
|
100
|
+
className: t,
|
|
101
|
+
children: e,
|
|
102
|
+
checked: n,
|
|
103
|
+
...o
|
|
104
|
+
}) {
|
|
105
|
+
return /* @__PURE__ */ d(
|
|
106
|
+
r.CheckboxItem,
|
|
107
|
+
{
|
|
108
|
+
"data-slot": "menubar-checkbox-item",
|
|
109
|
+
className: s(
|
|
110
|
+
"focus:bg-neutral-100 focus:text-neutral-900 relative flex cursor-default items-center gap-2 rounded-xs 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",
|
|
111
|
+
t
|
|
112
|
+
),
|
|
113
|
+
checked: n,
|
|
114
|
+
...o,
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(r.ItemIndicator, { children: /* @__PURE__ */ a(i, { className: "size-4" }) }) }),
|
|
117
|
+
e
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
function I({
|
|
123
|
+
className: t,
|
|
124
|
+
children: e,
|
|
125
|
+
...n
|
|
126
|
+
}) {
|
|
127
|
+
return /* @__PURE__ */ d(
|
|
128
|
+
r.RadioItem,
|
|
129
|
+
{
|
|
130
|
+
"data-slot": "menubar-radio-item",
|
|
131
|
+
className: s(
|
|
132
|
+
"focus:bg-neutral-100 focus:text-neutral-900 relative flex cursor-default items-center gap-2 rounded-xs 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",
|
|
133
|
+
t
|
|
134
|
+
),
|
|
135
|
+
...n,
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(r.ItemIndicator, { children: /* @__PURE__ */ a(l, { className: "size-2 fill-current" }) }) }),
|
|
138
|
+
e
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
function w({
|
|
144
|
+
className: t,
|
|
145
|
+
inset: e,
|
|
146
|
+
...n
|
|
147
|
+
}) {
|
|
148
|
+
return /* @__PURE__ */ a(
|
|
149
|
+
r.Label,
|
|
150
|
+
{
|
|
151
|
+
"data-slot": "menubar-label",
|
|
152
|
+
"data-inset": e,
|
|
153
|
+
className: s(
|
|
154
|
+
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
155
|
+
t
|
|
156
|
+
),
|
|
157
|
+
...n
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
function y({
|
|
162
|
+
className: t,
|
|
163
|
+
...e
|
|
164
|
+
}) {
|
|
165
|
+
return /* @__PURE__ */ a(
|
|
166
|
+
r.Separator,
|
|
167
|
+
{
|
|
168
|
+
"data-slot": "menubar-separator",
|
|
169
|
+
className: s("bg-neutral-200 -mx-1 my-1 h-px dark:bg-neutral-800", t),
|
|
170
|
+
...e
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
function _({
|
|
175
|
+
className: t,
|
|
176
|
+
...e
|
|
177
|
+
}) {
|
|
178
|
+
return /* @__PURE__ */ a(
|
|
179
|
+
"span",
|
|
180
|
+
{
|
|
181
|
+
"data-slot": "menubar-shortcut",
|
|
182
|
+
className: s(
|
|
183
|
+
"text-neutral-500 ml-auto text-xs tracking-widest dark:text-neutral-400",
|
|
184
|
+
t
|
|
185
|
+
),
|
|
186
|
+
...e
|
|
187
|
+
}
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
function C({
|
|
191
|
+
...t
|
|
192
|
+
}) {
|
|
193
|
+
return /* @__PURE__ */ a(r.Sub, { "data-slot": "menubar-sub", ...t });
|
|
194
|
+
}
|
|
195
|
+
function S({
|
|
196
|
+
className: t,
|
|
197
|
+
inset: e,
|
|
198
|
+
children: n,
|
|
199
|
+
...o
|
|
200
|
+
}) {
|
|
201
|
+
return /* @__PURE__ */ d(
|
|
202
|
+
r.SubTrigger,
|
|
203
|
+
{
|
|
204
|
+
"data-slot": "menubar-sub-trigger",
|
|
205
|
+
"data-inset": e,
|
|
206
|
+
className: s(
|
|
207
|
+
"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-none select-none data-[inset]:pl-8 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-50",
|
|
208
|
+
t
|
|
209
|
+
),
|
|
210
|
+
...o,
|
|
211
|
+
children: [
|
|
212
|
+
n,
|
|
213
|
+
/* @__PURE__ */ a(c, { className: "ml-auto h-4 w-4" })
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
function R({
|
|
219
|
+
className: t,
|
|
220
|
+
...e
|
|
221
|
+
}) {
|
|
222
|
+
return /* @__PURE__ */ a(
|
|
223
|
+
r.SubContent,
|
|
224
|
+
{
|
|
225
|
+
"data-slot": "menubar-sub-content",
|
|
226
|
+
className: s(
|
|
227
|
+
"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",
|
|
228
|
+
t
|
|
229
|
+
),
|
|
230
|
+
...e
|
|
231
|
+
}
|
|
232
|
+
);
|
|
52
233
|
}
|
|
53
234
|
export {
|
|
54
235
|
g as Menubar,
|
|
@@ -3,30 +3,159 @@ import * as o from "@radix-ui/react-navigation-menu";
|
|
|
3
3
|
import { cva as d } from "class-variance-authority";
|
|
4
4
|
import { ChevronDownIcon as l } from "lucide-react";
|
|
5
5
|
import { cn as n } from "../../lib/utils.js";
|
|
6
|
-
function c({
|
|
7
|
-
|
|
6
|
+
function c({
|
|
7
|
+
className: t,
|
|
8
|
+
children: a,
|
|
9
|
+
viewport: i = !0,
|
|
10
|
+
...u
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ r(
|
|
13
|
+
o.Root,
|
|
14
|
+
{
|
|
15
|
+
"data-slot": "navigation-menu",
|
|
16
|
+
"data-viewport": i,
|
|
17
|
+
className: n(
|
|
18
|
+
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
19
|
+
t
|
|
20
|
+
),
|
|
21
|
+
...u,
|
|
22
|
+
children: [
|
|
23
|
+
a,
|
|
24
|
+
i && /* @__PURE__ */ e(g, {})
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
);
|
|
8
28
|
}
|
|
9
|
-
function x({
|
|
10
|
-
|
|
29
|
+
function x({
|
|
30
|
+
className: t,
|
|
31
|
+
...a
|
|
32
|
+
}) {
|
|
33
|
+
return /* @__PURE__ */ e(
|
|
34
|
+
o.List,
|
|
35
|
+
{
|
|
36
|
+
"data-slot": "navigation-menu-list",
|
|
37
|
+
className: n(
|
|
38
|
+
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
39
|
+
t
|
|
40
|
+
),
|
|
41
|
+
...a
|
|
42
|
+
}
|
|
43
|
+
);
|
|
11
44
|
}
|
|
12
|
-
function w({
|
|
13
|
-
|
|
45
|
+
function w({
|
|
46
|
+
className: t,
|
|
47
|
+
...a
|
|
48
|
+
}) {
|
|
49
|
+
return /* @__PURE__ */ e(
|
|
50
|
+
o.Item,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "navigation-menu-item",
|
|
53
|
+
className: n("relative", t),
|
|
54
|
+
...a
|
|
55
|
+
}
|
|
56
|
+
);
|
|
14
57
|
}
|
|
15
|
-
const s = d(
|
|
16
|
-
|
|
17
|
-
|
|
58
|
+
const s = d(
|
|
59
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-white px-4 py-2 text-sm font-medium hover:bg-neutral-100 hover:text-neutral-900 focus:bg-neutral-100 focus:text-neutral-900 disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-neutral-100/50 data-[state=open]:bg-neutral-100/50 data-[active=true]:text-neutral-900 ring-neutral-950/10 dark:ring-neutral-950/20 dark:outline-ring/40 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[active=true]:bg-neutral-800/50 dark:data-[state=open]:bg-neutral-800/50 dark:data-[active=true]:text-neutral-50 dark:ring-neutral-300/10 dark:dark:ring-neutral-300/20"
|
|
60
|
+
);
|
|
61
|
+
function b({
|
|
62
|
+
className: t,
|
|
63
|
+
children: a,
|
|
64
|
+
...i
|
|
65
|
+
}) {
|
|
66
|
+
return /* @__PURE__ */ r(
|
|
67
|
+
o.Trigger,
|
|
68
|
+
{
|
|
69
|
+
"data-slot": "navigation-menu-trigger",
|
|
70
|
+
className: n(s(), "group", t),
|
|
71
|
+
...i,
|
|
72
|
+
children: [
|
|
73
|
+
a,
|
|
74
|
+
"",
|
|
75
|
+
/* @__PURE__ */ e(
|
|
76
|
+
l,
|
|
77
|
+
{
|
|
78
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
79
|
+
"aria-hidden": "true"
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
);
|
|
18
85
|
}
|
|
19
|
-
function h({
|
|
20
|
-
|
|
86
|
+
function h({
|
|
87
|
+
className: t,
|
|
88
|
+
...a
|
|
89
|
+
}) {
|
|
90
|
+
return /* @__PURE__ */ e(
|
|
91
|
+
o.Content,
|
|
92
|
+
{
|
|
93
|
+
"data-slot": "navigation-menu-content",
|
|
94
|
+
className: n(
|
|
95
|
+
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
96
|
+
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
97
|
+
t
|
|
98
|
+
),
|
|
99
|
+
...a
|
|
100
|
+
}
|
|
101
|
+
);
|
|
21
102
|
}
|
|
22
|
-
function g({
|
|
23
|
-
|
|
103
|
+
function g({
|
|
104
|
+
className: t,
|
|
105
|
+
...a
|
|
106
|
+
}) {
|
|
107
|
+
return /* @__PURE__ */ e(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
className: n(
|
|
111
|
+
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
112
|
+
),
|
|
113
|
+
children: /* @__PURE__ */ e(
|
|
114
|
+
o.Viewport,
|
|
115
|
+
{
|
|
116
|
+
"data-slot": "navigation-menu-viewport",
|
|
117
|
+
className: n(
|
|
118
|
+
"origin-top-center bg-white text-neutral-950 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border border-neutral-200 shadow md:w-[var(--radix-navigation-menu-viewport-width)] dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
|
|
119
|
+
t
|
|
120
|
+
),
|
|
121
|
+
...a
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
);
|
|
24
126
|
}
|
|
25
|
-
function k({
|
|
26
|
-
|
|
127
|
+
function k({
|
|
128
|
+
className: t,
|
|
129
|
+
...a
|
|
130
|
+
}) {
|
|
131
|
+
return /* @__PURE__ */ e(
|
|
132
|
+
o.Link,
|
|
133
|
+
{
|
|
134
|
+
"data-slot": "navigation-menu-link",
|
|
135
|
+
className: n(
|
|
136
|
+
"hover:bg-neutral-100 hover:text-neutral-900 focus:bg-neutral-100 focus:text-neutral-900 data-[active=true]:bg-neutral-100/50 data-[active=true]:text-neutral-900 ring-neutral-950/10 dark:ring-neutral-950/20 dark:outline-ring/40 outline-ring/50 [&_svg:not([class*='text-'])]:text-neutral-500 flex flex-col gap-1 rounded-sm p-2 text-sm transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4 dark:hover:bg-neutral-800 dark:hover:text-neutral-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[active=true]:bg-neutral-800/50 dark:data-[active=true]:text-neutral-50 dark:ring-neutral-300/10 dark:dark:ring-neutral-300/20 dark:[&_svg:not([class*='text-'])]:text-neutral-400",
|
|
137
|
+
t
|
|
138
|
+
),
|
|
139
|
+
...a
|
|
140
|
+
}
|
|
141
|
+
);
|
|
27
142
|
}
|
|
28
|
-
function N({
|
|
29
|
-
|
|
143
|
+
function N({
|
|
144
|
+
className: t,
|
|
145
|
+
...a
|
|
146
|
+
}) {
|
|
147
|
+
return /* @__PURE__ */ e(
|
|
148
|
+
o.Indicator,
|
|
149
|
+
{
|
|
150
|
+
"data-slot": "navigation-menu-indicator",
|
|
151
|
+
className: n(
|
|
152
|
+
"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
153
|
+
t
|
|
154
|
+
),
|
|
155
|
+
...a,
|
|
156
|
+
children: /* @__PURE__ */ e("div", { className: "bg-neutral-200 relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md dark:bg-neutral-800" })
|
|
157
|
+
}
|
|
158
|
+
);
|
|
30
159
|
}
|
|
31
160
|
export {
|
|
32
161
|
c as NavigationMenu,
|
|
@@ -3,28 +3,109 @@ import { ChevronLeftIcon as l, ChevronRightIcon as c, MoreHorizontalIcon as p }
|
|
|
3
3
|
import { cn as t } from "../../lib/utils.js";
|
|
4
4
|
import { buttonVariants as u } from "./button.js";
|
|
5
5
|
function h({ className: a, ...n }) {
|
|
6
|
-
return
|
|
6
|
+
return /* @__PURE__ */ i(
|
|
7
|
+
"nav",
|
|
8
|
+
{
|
|
9
|
+
role: "navigation",
|
|
10
|
+
"aria-label": "pagination",
|
|
11
|
+
"data-slot": "pagination",
|
|
12
|
+
className: t("mx-auto flex w-full justify-center", a),
|
|
13
|
+
...n
|
|
14
|
+
}
|
|
15
|
+
);
|
|
7
16
|
}
|
|
8
|
-
function x({
|
|
9
|
-
|
|
17
|
+
function x({
|
|
18
|
+
className: a,
|
|
19
|
+
...n
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ i(
|
|
22
|
+
"ul",
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "pagination-content",
|
|
25
|
+
className: t("flex flex-row items-center gap-1", a),
|
|
26
|
+
...n
|
|
27
|
+
}
|
|
28
|
+
);
|
|
10
29
|
}
|
|
11
30
|
function N({ ...a }) {
|
|
12
|
-
return i("li", { "data-slot": "pagination-item", ...a });
|
|
31
|
+
return /* @__PURE__ */ i("li", { "data-slot": "pagination-item", ...a });
|
|
13
32
|
}
|
|
14
|
-
function o({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
33
|
+
function o({
|
|
34
|
+
className: a,
|
|
35
|
+
isActive: n,
|
|
36
|
+
size: r = "icon",
|
|
37
|
+
...s
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ i(
|
|
40
|
+
"a",
|
|
41
|
+
{
|
|
42
|
+
"aria-current": n ? "page" : void 0,
|
|
43
|
+
"data-slot": "pagination-link",
|
|
44
|
+
"data-active": n,
|
|
45
|
+
className: t(
|
|
46
|
+
u({
|
|
47
|
+
variant: n ? "outline" : "ghost",
|
|
48
|
+
size: r
|
|
49
|
+
}),
|
|
50
|
+
a
|
|
51
|
+
),
|
|
52
|
+
...s
|
|
53
|
+
}
|
|
54
|
+
);
|
|
19
55
|
}
|
|
20
|
-
function P({
|
|
21
|
-
|
|
56
|
+
function P({
|
|
57
|
+
className: a,
|
|
58
|
+
...n
|
|
59
|
+
}) {
|
|
60
|
+
return /* @__PURE__ */ e(
|
|
61
|
+
o,
|
|
62
|
+
{
|
|
63
|
+
"aria-label": "Go to previous page",
|
|
64
|
+
size: "default",
|
|
65
|
+
className: t("gap-1 px-2.5 sm:pl-2.5", a),
|
|
66
|
+
...n,
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ i(l, {}),
|
|
69
|
+
/* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Previous" })
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
);
|
|
22
73
|
}
|
|
23
|
-
function v({
|
|
24
|
-
|
|
74
|
+
function v({
|
|
75
|
+
className: a,
|
|
76
|
+
...n
|
|
77
|
+
}) {
|
|
78
|
+
return /* @__PURE__ */ e(
|
|
79
|
+
o,
|
|
80
|
+
{
|
|
81
|
+
"aria-label": "Go to next page",
|
|
82
|
+
size: "default",
|
|
83
|
+
className: t("gap-1 px-2.5 sm:pr-2.5", a),
|
|
84
|
+
...n,
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Next" }),
|
|
87
|
+
/* @__PURE__ */ i(c, {})
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
);
|
|
25
91
|
}
|
|
26
|
-
function b({
|
|
27
|
-
|
|
92
|
+
function b({
|
|
93
|
+
className: a,
|
|
94
|
+
...n
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ e(
|
|
97
|
+
"span",
|
|
98
|
+
{
|
|
99
|
+
"aria-hidden": !0,
|
|
100
|
+
"data-slot": "pagination-ellipsis",
|
|
101
|
+
className: t("flex size-9 items-center justify-center", a),
|
|
102
|
+
...n,
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ i(p, { className: "size-4" }),
|
|
105
|
+
/* @__PURE__ */ i("span", { className: "sr-only", children: "More pages" })
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
);
|
|
28
109
|
}
|
|
29
110
|
export {
|
|
30
111
|
h as Pagination,
|
|
@@ -1,21 +1,44 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "@radix-ui/react-popover";
|
|
3
3
|
import { cn as d } from "../../lib/utils.js";
|
|
4
|
-
function
|
|
5
|
-
|
|
4
|
+
function p({
|
|
5
|
+
...t
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ o(e.Root, { "data-slot": "popover", ...t });
|
|
6
8
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
+
function l({
|
|
10
|
+
...t
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ o(e.Trigger, { "data-slot": "popover-trigger", ...t });
|
|
9
13
|
}
|
|
10
|
-
function m({
|
|
11
|
-
|
|
14
|
+
function m({
|
|
15
|
+
className: t,
|
|
16
|
+
align: r = "center",
|
|
17
|
+
sideOffset: a = 4,
|
|
18
|
+
...n
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ o(e.Portal, { children: /* @__PURE__ */ o(
|
|
21
|
+
e.Content,
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "popover-content",
|
|
24
|
+
align: r,
|
|
25
|
+
sideOffset: a,
|
|
26
|
+
className: d(
|
|
27
|
+
"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 w-72 rounded-md border border-neutral-200 p-4 shadow-md outline-hidden dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
|
|
28
|
+
t
|
|
29
|
+
),
|
|
30
|
+
...n
|
|
31
|
+
}
|
|
32
|
+
) });
|
|
12
33
|
}
|
|
13
|
-
function u({
|
|
14
|
-
|
|
34
|
+
function u({
|
|
35
|
+
...t
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ o(e.Anchor, { "data-slot": "popover-anchor", ...t });
|
|
15
38
|
}
|
|
16
39
|
export {
|
|
17
|
-
|
|
40
|
+
p as Popover,
|
|
18
41
|
u as PopoverAnchor,
|
|
19
42
|
m as PopoverContent,
|
|
20
|
-
|
|
43
|
+
l as PopoverTrigger
|
|
21
44
|
};
|