@arolariu/components 0.0.10 → 0.0.11
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/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/es/components/ui/accordion.js +8 -50
- package/dist/es/components/ui/alert-dialog.js +22 -118
- package/dist/es/components/ui/alert.js +14 -52
- package/dist/es/components/ui/aspect-ratio.js +2 -4
- package/dist/es/components/ui/avatar.js +6 -42
- package/dist/es/components/ui/badge.js +13 -28
- package/dist/es/components/ui/breadcrumb.js +10 -78
- package/dist/es/components/ui/button.js +21 -37
- package/dist/es/components/ui/calendar.js +29 -52
- package/dist/es/components/ui/card.js +6 -51
- package/dist/es/components/ui/carousel.js +32 -142
- package/dist/es/components/ui/chart.js +42 -169
- package/dist/es/components/ui/checkbox.js +2 -23
- package/dist/es/components/ui/collapsible.js +6 -24
- package/dist/es/components/ui/command.js +18 -136
- package/dist/es/components/ui/context-menu.js +30 -187
- package/dist/es/components/ui/dialog.js +18 -100
- package/dist/es/components/ui/drawer.js +18 -98
- package/dist/es/components/ui/dropdown-menu.js +30 -195
- package/dist/es/components/ui/form.js +8 -59
- package/dist/es/components/ui/hover-card.js +9 -30
- package/dist/es/components/ui/input-otp.js +6 -47
- package/dist/es/components/ui/input.js +1 -14
- package/dist/es/components/ui/label.js +2 -15
- package/dist/es/components/ui/menubar.js +47 -228
- package/dist/es/components/ui/navigation-menu.js +17 -146
- package/dist/es/components/ui/pagination.js +15 -96
- package/dist/es/components/ui/popover.js +10 -33
- package/dist/es/components/ui/progress.js +2 -24
- package/dist/es/components/ui/radio-group.js +4 -35
- package/dist/es/components/ui/resizable.js +6 -36
- package/dist/es/components/ui/scroll-area.js +4 -51
- package/dist/es/components/ui/select.js +21 -142
- package/dist/es/components/ui/separator.js +2 -19
- package/dist/es/components/ui/sheet.js +17 -99
- package/dist/es/components/ui/sidebar.js +112 -512
- package/dist/es/components/ui/skeleton.js +1 -8
- package/dist/es/components/ui/slider.js +4 -56
- package/dist/es/components/ui/sonner.js +7 -15
- package/dist/es/components/ui/switch.js +2 -24
- package/dist/es/components/ui/table.js +9 -87
- package/dist/es/components/ui/tabs.js +8 -54
- package/dist/es/components/ui/textarea.js +1 -11
- package/dist/es/components/ui/toggle-group.js +9 -48
- package/dist/es/components/ui/toggle.js +16 -31
- package/dist/es/components/ui/tooltip.js +11 -45
- package/dist/umd/arolariu-components.umd.js +2 -2
- package/package.json +94 -96
- package/readme.md +169 -0
- package/src/components/ui/accordion.tsx +0 -66
- package/src/components/ui/alert-dialog.tsx +0 -157
- package/src/components/ui/alert.tsx +0 -66
- package/src/components/ui/aspect-ratio.tsx +0 -11
- package/src/components/ui/avatar.tsx +0 -53
- package/src/components/ui/badge.tsx +0 -46
- package/src/components/ui/breadcrumb.tsx +0 -109
- package/src/components/ui/button.tsx +0 -58
- package/src/components/ui/calendar.tsx +0 -75
- package/src/components/ui/card.tsx +0 -68
- package/src/components/ui/carousel.tsx +0 -241
- package/src/components/ui/chart.tsx +0 -353
- package/src/components/ui/checkbox.tsx +0 -32
- package/src/components/ui/collapsible.tsx +0 -33
- package/src/components/ui/command.tsx +0 -177
- package/src/components/ui/context-menu.tsx +0 -252
- package/src/components/ui/dialog.tsx +0 -135
- package/src/components/ui/drawer.tsx +0 -132
- package/src/components/ui/dropdown-menu.tsx +0 -257
- package/src/components/ui/form.tsx +0 -167
- package/src/components/ui/hover-card.tsx +0 -42
- package/src/components/ui/input-otp.tsx +0 -78
- package/src/components/ui/input.tsx +0 -21
- package/src/components/ui/label.tsx +0 -24
- package/src/components/ui/menubar.tsx +0 -276
- package/src/components/ui/navigation-menu.tsx +0 -170
- package/src/components/ui/pagination.tsx +0 -127
- package/src/components/ui/popover.tsx +0 -48
- package/src/components/ui/progress.tsx +0 -31
- package/src/components/ui/radio-group.tsx +0 -45
- package/src/components/ui/resizable.tsx +0 -56
- package/src/components/ui/scroll-area.tsx +0 -58
- package/src/components/ui/select.tsx +0 -181
- package/src/components/ui/separator.tsx +0 -28
- package/src/components/ui/sheet.tsx +0 -139
- package/src/components/ui/sidebar.tsx +0 -723
- package/src/components/ui/skeleton.tsx +0 -13
- package/src/components/ui/slider.tsx +0 -63
- package/src/components/ui/sonner.tsx +0 -29
- package/src/components/ui/switch.tsx +0 -31
- package/src/components/ui/table.tsx +0 -116
- package/src/components/ui/tabs.tsx +0 -66
- package/src/components/ui/textarea.tsx +0 -18
- package/src/components/ui/toggle-group.tsx +0 -73
- package/src/components/ui/toggle.tsx +0 -47
- package/src/components/ui/tooltip.tsx +0 -61
- package/src/hooks/use-mobile.ts +0 -19
- package/src/hooks/use-mobile.tsx +0 -19
- package/src/index.css +0 -137
- package/src/index.ts +0 -326
- package/src/lib/utils.ts +0 -6
|
@@ -2,215 +2,50 @@ import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
|
2
2
|
import * as n from "@radix-ui/react-dropdown-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
|
-
...t
|
|
7
|
-
}) {
|
|
8
|
-
return /* @__PURE__ */ e(n.Root, { "data-slot": "dropdown-menu", ...t });
|
|
5
|
+
function f({ ...t }) {
|
|
6
|
+
return e(n.Root, { "data-slot": "dropdown-menu", ...t });
|
|
9
7
|
}
|
|
10
|
-
function g({
|
|
11
|
-
...t
|
|
12
|
-
}) {
|
|
13
|
-
return /* @__PURE__ */ e(n.Portal, { "data-slot": "dropdown-menu-portal", ...t });
|
|
8
|
+
function g({ ...t }) {
|
|
9
|
+
return e(n.Portal, { "data-slot": "dropdown-menu-portal", ...t });
|
|
14
10
|
}
|
|
15
|
-
function b({
|
|
16
|
-
...t
|
|
17
|
-
}) {
|
|
18
|
-
return /* @__PURE__ */ e(
|
|
19
|
-
n.Trigger,
|
|
20
|
-
{
|
|
21
|
-
"data-slot": "dropdown-menu-trigger",
|
|
22
|
-
...t
|
|
23
|
-
}
|
|
24
|
-
);
|
|
11
|
+
function b({ ...t }) {
|
|
12
|
+
return e(n.Trigger, { "data-slot": "dropdown-menu-trigger", ...t });
|
|
25
13
|
}
|
|
26
|
-
function x({
|
|
27
|
-
className: t,
|
|
28
|
-
sideOffset: a = 4,
|
|
29
|
-
...r
|
|
30
|
-
}) {
|
|
31
|
-
return /* @__PURE__ */ e(n.Portal, { children: /* @__PURE__ */ e(
|
|
32
|
-
n.Content,
|
|
33
|
-
{
|
|
34
|
-
"data-slot": "dropdown-menu-content",
|
|
35
|
-
sideOffset: a,
|
|
36
|
-
className: o(
|
|
37
|
-
"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",
|
|
38
|
-
t
|
|
39
|
-
),
|
|
40
|
-
...r
|
|
41
|
-
}
|
|
42
|
-
) });
|
|
14
|
+
function x({ className: t, sideOffset: a = 4, ...r }) {
|
|
15
|
+
return e(n.Portal, { children: e(n.Content, { "data-slot": "dropdown-menu-content", sideOffset: a, className: o("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", t), ...r }) });
|
|
43
16
|
}
|
|
44
|
-
function v({
|
|
45
|
-
...t
|
|
46
|
-
}) {
|
|
47
|
-
return /* @__PURE__ */ e(n.Group, { "data-slot": "dropdown-menu-group", ...t });
|
|
17
|
+
function v({ ...t }) {
|
|
18
|
+
return e(n.Group, { "data-slot": "dropdown-menu-group", ...t });
|
|
48
19
|
}
|
|
49
|
-
function w({
|
|
50
|
-
className: t,
|
|
51
|
-
inset: a,
|
|
52
|
-
variant: r = "default",
|
|
53
|
-
...d
|
|
54
|
-
}) {
|
|
55
|
-
return /* @__PURE__ */ e(
|
|
56
|
-
n.Item,
|
|
57
|
-
{
|
|
58
|
-
"data-slot": "dropdown-menu-item",
|
|
59
|
-
"data-inset": a,
|
|
60
|
-
"data-variant": r,
|
|
61
|
-
className: o(
|
|
62
|
-
"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",
|
|
63
|
-
t
|
|
64
|
-
),
|
|
65
|
-
...d
|
|
66
|
-
}
|
|
67
|
-
);
|
|
20
|
+
function w({ className: t, inset: a, variant: r = "default", ...d }) {
|
|
21
|
+
return e(n.Item, { "data-slot": "dropdown-menu-item", "data-inset": a, "data-variant": r, className: o("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", t), ...d });
|
|
68
22
|
}
|
|
69
|
-
function h({
|
|
70
|
-
className: t,
|
|
71
|
-
children: a,
|
|
72
|
-
checked: r,
|
|
73
|
-
...d
|
|
74
|
-
}) {
|
|
75
|
-
return /* @__PURE__ */ s(
|
|
76
|
-
n.CheckboxItem,
|
|
77
|
-
{
|
|
78
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
79
|
-
className: o(
|
|
80
|
-
"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",
|
|
81
|
-
t
|
|
82
|
-
),
|
|
83
|
-
checked: r,
|
|
84
|
-
...d,
|
|
85
|
-
children: [
|
|
86
|
-
/* @__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" }) }) }),
|
|
87
|
-
a
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
);
|
|
23
|
+
function h({ className: t, children: a, checked: r, ...d }) {
|
|
24
|
+
return s(n.CheckboxItem, { "data-slot": "dropdown-menu-checkbox-item", className: o("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", t), checked: r, ...d, children: [e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: e(n.ItemIndicator, { children: e(u, { className: "size-4" }) }) }), a] });
|
|
91
25
|
}
|
|
92
|
-
function k({
|
|
93
|
-
...t
|
|
94
|
-
}) {
|
|
95
|
-
return /* @__PURE__ */ e(
|
|
96
|
-
n.RadioGroup,
|
|
97
|
-
{
|
|
98
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
99
|
-
...t
|
|
100
|
-
}
|
|
101
|
-
);
|
|
26
|
+
function k({ ...t }) {
|
|
27
|
+
return e(n.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...t });
|
|
102
28
|
}
|
|
103
|
-
function z({
|
|
104
|
-
className: t,
|
|
105
|
-
children: a,
|
|
106
|
-
...r
|
|
107
|
-
}) {
|
|
108
|
-
return /* @__PURE__ */ s(
|
|
109
|
-
n.RadioItem,
|
|
110
|
-
{
|
|
111
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
112
|
-
className: o(
|
|
113
|
-
"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",
|
|
114
|
-
t
|
|
115
|
-
),
|
|
116
|
-
...r,
|
|
117
|
-
children: [
|
|
118
|
-
/* @__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" }) }) }),
|
|
119
|
-
a
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
);
|
|
29
|
+
function z({ className: t, children: a, ...r }) {
|
|
30
|
+
return s(n.RadioItem, { "data-slot": "dropdown-menu-radio-item", className: o("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", t), ...r, children: [e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: e(n.ItemIndicator, { children: e(i, { className: "size-2 fill-current" }) }) }), a] });
|
|
123
31
|
}
|
|
124
|
-
function D({
|
|
125
|
-
className: t,
|
|
126
|
-
inset: a,
|
|
127
|
-
...r
|
|
128
|
-
}) {
|
|
129
|
-
return /* @__PURE__ */ e(
|
|
130
|
-
n.Label,
|
|
131
|
-
{
|
|
132
|
-
"data-slot": "dropdown-menu-label",
|
|
133
|
-
"data-inset": a,
|
|
134
|
-
className: o(
|
|
135
|
-
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
136
|
-
t
|
|
137
|
-
),
|
|
138
|
-
...r
|
|
139
|
-
}
|
|
140
|
-
);
|
|
32
|
+
function D({ className: t, inset: a, ...r }) {
|
|
33
|
+
return e(n.Label, { "data-slot": "dropdown-menu-label", "data-inset": a, className: o("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", t), ...r });
|
|
141
34
|
}
|
|
142
|
-
function M({
|
|
143
|
-
className: t,
|
|
144
|
-
...a
|
|
145
|
-
}) {
|
|
146
|
-
return /* @__PURE__ */ e(
|
|
147
|
-
n.Separator,
|
|
148
|
-
{
|
|
149
|
-
"data-slot": "dropdown-menu-separator",
|
|
150
|
-
className: o("bg-neutral-200 -mx-1 my-1 h-px dark:bg-neutral-800", t),
|
|
151
|
-
...a
|
|
152
|
-
}
|
|
153
|
-
);
|
|
35
|
+
function M({ className: t, ...a }) {
|
|
36
|
+
return e(n.Separator, { "data-slot": "dropdown-menu-separator", className: o("bg-neutral-200 -mx-1 my-1 h-px dark:bg-neutral-800", t), ...a });
|
|
154
37
|
}
|
|
155
|
-
function N({
|
|
156
|
-
className: t,
|
|
157
|
-
...a
|
|
158
|
-
}) {
|
|
159
|
-
return /* @__PURE__ */ e(
|
|
160
|
-
"span",
|
|
161
|
-
{
|
|
162
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
163
|
-
className: o(
|
|
164
|
-
"text-neutral-500 ml-auto text-xs tracking-widest dark:text-neutral-400",
|
|
165
|
-
t
|
|
166
|
-
),
|
|
167
|
-
...a
|
|
168
|
-
}
|
|
169
|
-
);
|
|
38
|
+
function N({ className: t, ...a }) {
|
|
39
|
+
return e("span", { "data-slot": "dropdown-menu-shortcut", className: o("text-neutral-500 ml-auto text-xs tracking-widest dark:text-neutral-400", t), ...a });
|
|
170
40
|
}
|
|
171
|
-
function I({
|
|
172
|
-
...t
|
|
173
|
-
}) {
|
|
174
|
-
return /* @__PURE__ */ e(n.Sub, { "data-slot": "dropdown-menu-sub", ...t });
|
|
41
|
+
function I({ ...t }) {
|
|
42
|
+
return e(n.Sub, { "data-slot": "dropdown-menu-sub", ...t });
|
|
175
43
|
}
|
|
176
|
-
function y({
|
|
177
|
-
className: t,
|
|
178
|
-
inset: a,
|
|
179
|
-
children: r,
|
|
180
|
-
...d
|
|
181
|
-
}) {
|
|
182
|
-
return /* @__PURE__ */ s(
|
|
183
|
-
n.SubTrigger,
|
|
184
|
-
{
|
|
185
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
186
|
-
"data-inset": a,
|
|
187
|
-
className: o(
|
|
188
|
-
"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 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-50",
|
|
189
|
-
t
|
|
190
|
-
),
|
|
191
|
-
...d,
|
|
192
|
-
children: [
|
|
193
|
-
r,
|
|
194
|
-
/* @__PURE__ */ e(l, { className: "ml-auto size-4" })
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
);
|
|
44
|
+
function y({ className: t, inset: a, children: r, ...d }) {
|
|
45
|
+
return s(n.SubTrigger, { "data-slot": "dropdown-menu-sub-trigger", "data-inset": a, className: o("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 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-50", t), ...d, children: [r, e(l, { className: "ml-auto size-4" })] });
|
|
198
46
|
}
|
|
199
|
-
function _({
|
|
200
|
-
className: t,
|
|
201
|
-
...a
|
|
202
|
-
}) {
|
|
203
|
-
return /* @__PURE__ */ e(
|
|
204
|
-
n.SubContent,
|
|
205
|
-
{
|
|
206
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
207
|
-
className: o(
|
|
208
|
-
"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",
|
|
209
|
-
t
|
|
210
|
-
),
|
|
211
|
-
...a
|
|
212
|
-
}
|
|
213
|
-
);
|
|
47
|
+
function _({ className: t, ...a }) {
|
|
48
|
+
return e(n.SubContent, { "data-slot": "dropdown-menu-sub-content", className: o("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", t), ...a });
|
|
214
49
|
}
|
|
215
50
|
export {
|
|
216
51
|
f as DropdownMenu,
|
|
@@ -4,11 +4,7 @@ import { Slot as f } from "@radix-ui/react-slot";
|
|
|
4
4
|
import { FormProvider as u, useFormContext as F, useFormState as x, Controller as I } from "react-hook-form";
|
|
5
5
|
import { cn as i } from "../../lib/utils.js";
|
|
6
6
|
import { Label as p } from "./label.js";
|
|
7
|
-
const S = u, l = s.createContext(
|
|
8
|
-
{}
|
|
9
|
-
), $ = ({
|
|
10
|
-
...t
|
|
11
|
-
}) => /* @__PURE__ */ n(l.Provider, { value: { name: t.name }, children: /* @__PURE__ */ n(I, { ...t }) }), d = () => {
|
|
7
|
+
const S = u, l = s.createContext({}), $ = ({ ...t }) => n(l.Provider, { value: { name: t.name }, children: n(I, { ...t }) }), d = () => {
|
|
12
8
|
const t = s.useContext(l), r = s.useContext(c), { getFieldState: e } = F(), o = x({ name: t.name }), a = e(t.name, o);
|
|
13
9
|
if (!t)
|
|
14
10
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -21,74 +17,27 @@ const S = u, l = s.createContext(
|
|
|
21
17
|
formMessageId: `${m}-form-item-message`,
|
|
22
18
|
...a
|
|
23
19
|
};
|
|
24
|
-
}, c = s.createContext(
|
|
25
|
-
{}
|
|
26
|
-
);
|
|
20
|
+
}, c = s.createContext({});
|
|
27
21
|
function D({ className: t, ...r }) {
|
|
28
22
|
const e = s.useId();
|
|
29
|
-
return
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
"data-slot": "form-item",
|
|
33
|
-
className: i("grid gap-2", t),
|
|
34
|
-
...r
|
|
35
|
-
}
|
|
36
|
-
) });
|
|
23
|
+
return n(c.Provider, { value: { id: e }, children: n("div", { "data-slot": "form-item", className: i("grid gap-2", t), ...r }) });
|
|
37
24
|
}
|
|
38
|
-
function M({
|
|
39
|
-
className: t,
|
|
40
|
-
...r
|
|
41
|
-
}) {
|
|
25
|
+
function M({ className: t, ...r }) {
|
|
42
26
|
const { error: e, formItemId: o } = d();
|
|
43
|
-
return
|
|
44
|
-
p,
|
|
45
|
-
{
|
|
46
|
-
"data-slot": "form-label",
|
|
47
|
-
"data-error": !!e,
|
|
48
|
-
className: i("data-[error=true]:text-neutral-50 dark:data-[error=true]:text-neutral-50", t),
|
|
49
|
-
htmlFor: o,
|
|
50
|
-
...r
|
|
51
|
-
}
|
|
52
|
-
);
|
|
27
|
+
return n(p, { "data-slot": "form-label", "data-error": !!e, className: i("data-[error=true]:text-neutral-50 dark:data-[error=true]:text-neutral-50", t), htmlFor: o, ...r });
|
|
53
28
|
}
|
|
54
29
|
function N({ ...t }) {
|
|
55
30
|
const { error: r, formItemId: e, formDescriptionId: o, formMessageId: a } = d();
|
|
56
|
-
return
|
|
57
|
-
f,
|
|
58
|
-
{
|
|
59
|
-
"data-slot": "form-control",
|
|
60
|
-
id: e,
|
|
61
|
-
"aria-describedby": r ? `${o} ${a}` : `${o}`,
|
|
62
|
-
"aria-invalid": !!r,
|
|
63
|
-
...t
|
|
64
|
-
}
|
|
65
|
-
);
|
|
31
|
+
return n(f, { "data-slot": "form-control", id: e, "aria-describedby": r ? `${o} ${a}` : `${o}`, "aria-invalid": !!r, ...t });
|
|
66
32
|
}
|
|
67
33
|
function k({ className: t, ...r }) {
|
|
68
34
|
const { formDescriptionId: e } = d();
|
|
69
|
-
return
|
|
70
|
-
"p",
|
|
71
|
-
{
|
|
72
|
-
"data-slot": "form-description",
|
|
73
|
-
id: e,
|
|
74
|
-
className: i("text-neutral-500 text-sm dark:text-neutral-400", t),
|
|
75
|
-
...r
|
|
76
|
-
}
|
|
77
|
-
);
|
|
35
|
+
return n("p", { "data-slot": "form-description", id: e, className: i("text-neutral-500 text-sm dark:text-neutral-400", t), ...r });
|
|
78
36
|
}
|
|
79
37
|
function w({ className: t, ...r }) {
|
|
80
38
|
var m;
|
|
81
39
|
const { error: e, formMessageId: o } = d(), a = e ? String((m = e == null ? void 0 : e.message) != null ? m : "") : r.children;
|
|
82
|
-
return a ?
|
|
83
|
-
"p",
|
|
84
|
-
{
|
|
85
|
-
"data-slot": "form-message",
|
|
86
|
-
id: o,
|
|
87
|
-
className: i("text-neutral-50 text-sm dark:text-neutral-50", t),
|
|
88
|
-
...r,
|
|
89
|
-
children: a
|
|
90
|
-
}
|
|
91
|
-
) : null;
|
|
40
|
+
return a ? n("p", { "data-slot": "form-message", id: o, className: i("text-neutral-50 text-sm dark:text-neutral-50", t), ...r, children: a }) : null;
|
|
92
41
|
}
|
|
93
42
|
export {
|
|
94
43
|
S as Form,
|
|
@@ -1,38 +1,17 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "@radix-ui/react-hover-card";
|
|
3
3
|
import { cn as n } from "../../lib/utils.js";
|
|
4
|
-
function
|
|
5
|
-
...t
|
|
6
|
-
}) {
|
|
7
|
-
return /* @__PURE__ */ e(a.Root, { "data-slot": "hover-card", ...t });
|
|
4
|
+
function l({ ...t }) {
|
|
5
|
+
return e(a.Root, { "data-slot": "hover-card", ...t });
|
|
8
6
|
}
|
|
9
|
-
function
|
|
10
|
-
...t
|
|
11
|
-
}) {
|
|
12
|
-
return /* @__PURE__ */ e(a.Trigger, { "data-slot": "hover-card-trigger", ...t });
|
|
7
|
+
function m({ ...t }) {
|
|
8
|
+
return e(a.Trigger, { "data-slot": "hover-card-trigger", ...t });
|
|
13
9
|
}
|
|
14
|
-
function
|
|
15
|
-
className: t,
|
|
16
|
-
align: r = "center",
|
|
17
|
-
sideOffset: o = 4,
|
|
18
|
-
...d
|
|
19
|
-
}) {
|
|
20
|
-
return /* @__PURE__ */ e(
|
|
21
|
-
a.Content,
|
|
22
|
-
{
|
|
23
|
-
"data-slot": "hover-card-content",
|
|
24
|
-
align: r,
|
|
25
|
-
sideOffset: o,
|
|
26
|
-
className: n(
|
|
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-64 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
|
-
...d
|
|
31
|
-
}
|
|
32
|
-
);
|
|
10
|
+
function f({ className: t, align: r = "center", sideOffset: o = 4, ...d }) {
|
|
11
|
+
return e(a.Content, { "data-slot": "hover-card-content", align: r, sideOffset: o, className: n("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-64 rounded-md border border-neutral-200 p-4 shadow-md outline-hidden dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800", t), ...d });
|
|
33
12
|
}
|
|
34
13
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
14
|
+
l as HoverCard,
|
|
15
|
+
f as HoverCardContent,
|
|
16
|
+
m as HoverCardTrigger
|
|
38
17
|
};
|
|
@@ -3,59 +3,18 @@ import * as l from "react";
|
|
|
3
3
|
import { OTPInput as c, OTPInputContext as p } from "input-otp";
|
|
4
4
|
import { MinusIcon as v } from "lucide-react";
|
|
5
5
|
import { cn as e } from "../../lib/utils.js";
|
|
6
|
-
function g({
|
|
7
|
-
className: t,
|
|
8
|
-
containerClassName: r,
|
|
9
|
-
...i
|
|
10
|
-
}) {
|
|
11
|
-
return /* @__PURE__ */ a(
|
|
12
|
-
c,
|
|
13
|
-
{
|
|
14
|
-
"data-slot": "input-otp",
|
|
15
|
-
containerClassName: e(
|
|
16
|
-
"flex items-center gap-2 has-disabled:opacity-50",
|
|
17
|
-
r
|
|
18
|
-
),
|
|
19
|
-
className: e("disabled:cursor-not-allowed", t),
|
|
20
|
-
...i
|
|
21
|
-
}
|
|
22
|
-
);
|
|
6
|
+
function g({ className: t, containerClassName: r, ...i }) {
|
|
7
|
+
return a(c, { "data-slot": "input-otp", containerClassName: e("flex items-center gap-2 has-disabled:opacity-50", r), className: e("disabled:cursor-not-allowed", t), ...i });
|
|
23
8
|
}
|
|
24
9
|
function h({ className: t, ...r }) {
|
|
25
|
-
return
|
|
26
|
-
"div",
|
|
27
|
-
{
|
|
28
|
-
"data-slot": "input-otp-group",
|
|
29
|
-
className: e("flex items-center", t),
|
|
30
|
-
...r
|
|
31
|
-
}
|
|
32
|
-
);
|
|
10
|
+
return a("div", { "data-slot": "input-otp-group", className: e("flex items-center", t), ...r });
|
|
33
11
|
}
|
|
34
|
-
function O({
|
|
35
|
-
index: t,
|
|
36
|
-
className: r,
|
|
37
|
-
...i
|
|
38
|
-
}) {
|
|
12
|
+
function O({ index: t, className: r, ...i }) {
|
|
39
13
|
const n = l.useContext(p).slots[t], { char: d, hasFakeCaret: o, isActive: s } = n || {};
|
|
40
|
-
return
|
|
41
|
-
"div",
|
|
42
|
-
{
|
|
43
|
-
"data-slot": "input-otp-slot",
|
|
44
|
-
"data-active": s,
|
|
45
|
-
className: e(
|
|
46
|
-
"border-neutral-200 data-[active=true]:border-neutral-950 data-[active=true]:ring-neutral-950/50 data-[active=true]:aria-invalid:ring-red-500/20 dark:data-[active=true]:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 data-[active=true]:aria-invalid:border-red-500 relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px] dark:border-neutral-800 dark:data-[active=true]:border-neutral-300 dark:data-[active=true]:ring-neutral-300/50 dark:data-[active=true]:aria-invalid:ring-red-900/20 dark:dark:data-[active=true]:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900 dark:data-[active=true]:aria-invalid:border-red-900",
|
|
47
|
-
r
|
|
48
|
-
),
|
|
49
|
-
...i,
|
|
50
|
-
children: [
|
|
51
|
-
d,
|
|
52
|
-
o && /* @__PURE__ */ a("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ a("div", { className: "animate-caret-blink bg-neutral-950 h-4 w-px duration-1000 dark:bg-neutral-50" }) })
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
);
|
|
14
|
+
return u("div", { "data-slot": "input-otp-slot", "data-active": s, className: e("border-neutral-200 data-[active=true]:border-neutral-950 data-[active=true]:ring-neutral-950/50 data-[active=true]:aria-invalid:ring-red-500/20 dark:data-[active=true]:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 data-[active=true]:aria-invalid:border-red-500 relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px] dark:border-neutral-800 dark:data-[active=true]:border-neutral-300 dark:data-[active=true]:ring-neutral-300/50 dark:data-[active=true]:aria-invalid:ring-red-900/20 dark:dark:data-[active=true]:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900 dark:data-[active=true]:aria-invalid:border-red-900", r), ...i, children: [d, o && a("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: a("div", { className: "animate-caret-blink bg-neutral-950 h-4 w-px duration-1000 dark:bg-neutral-50" }) })] });
|
|
56
15
|
}
|
|
57
16
|
function P({ ...t }) {
|
|
58
|
-
return
|
|
17
|
+
return a("div", { "data-slot": "input-otp-separator", role: "separator", ...t, children: a(v, {}) });
|
|
59
18
|
}
|
|
60
19
|
export {
|
|
61
20
|
g as InputOTP,
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { cn as t } from "../../lib/utils.js";
|
|
3
3
|
function d({ className: e, type: r, ...i }) {
|
|
4
|
-
return
|
|
5
|
-
"input",
|
|
6
|
-
{
|
|
7
|
-
type: r,
|
|
8
|
-
"data-slot": "input",
|
|
9
|
-
className: t(
|
|
10
|
-
"border-neutral-200 file:text-neutral-950 placeholder:text-neutral-500 selection:bg-neutral-900 selection:text-neutral-50 flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:border-neutral-800 dark:file:text-neutral-50 dark:placeholder:text-neutral-400 dark:selection:bg-neutral-50 dark:selection:text-neutral-900",
|
|
11
|
-
"focus-visible:border-neutral-950 focus-visible:ring-neutral-950/50 focus-visible:ring-[3px] dark:focus-visible:border-neutral-300 dark:focus-visible:ring-neutral-300/50",
|
|
12
|
-
"aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 dark:aria-invalid:ring-red-900/20 dark:dark:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900",
|
|
13
|
-
e
|
|
14
|
-
),
|
|
15
|
-
...i
|
|
16
|
-
}
|
|
17
|
-
);
|
|
4
|
+
return a("input", { type: r, "data-slot": "input", className: t("border-neutral-200 file:text-neutral-950 placeholder:text-neutral-500 selection:bg-neutral-900 selection:text-neutral-50 flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:border-neutral-800 dark:file:text-neutral-50 dark:placeholder:text-neutral-400 dark:selection:bg-neutral-50 dark:selection:text-neutral-900", "focus-visible:border-neutral-950 focus-visible:ring-neutral-950/50 focus-visible:ring-[3px] dark:focus-visible:border-neutral-300 dark:focus-visible:ring-neutral-300/50", "aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 dark:aria-invalid:ring-red-900/20 dark:dark:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900", e), ...i });
|
|
18
5
|
}
|
|
19
6
|
export {
|
|
20
7
|
d as Input
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "@radix-ui/react-label";
|
|
3
3
|
import { cn as r } from "../../lib/utils.js";
|
|
4
|
-
function l({
|
|
5
|
-
className: e,
|
|
6
|
-
...t
|
|
7
|
-
}) {
|
|
8
|
-
return /* @__PURE__ */ o(
|
|
9
|
-
a.Root,
|
|
10
|
-
{
|
|
11
|
-
"data-slot": "label",
|
|
12
|
-
className: r(
|
|
13
|
-
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
14
|
-
e
|
|
15
|
-
),
|
|
16
|
-
...t
|
|
17
|
-
}
|
|
18
|
-
);
|
|
4
|
+
function l({ className: e, ...t }) {
|
|
5
|
+
return o(a.Root, { "data-slot": "label", className: r("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e), ...t });
|
|
19
6
|
}
|
|
20
7
|
export {
|
|
21
8
|
l as Label
|