@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
|
@@ -9,74 +9,201 @@ function $() {
|
|
|
9
9
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
10
10
|
return c;
|
|
11
11
|
}
|
|
12
|
-
function M({
|
|
12
|
+
function M({
|
|
13
|
+
id: c,
|
|
14
|
+
className: r,
|
|
15
|
+
children: n,
|
|
16
|
+
config: t,
|
|
17
|
+
...l
|
|
18
|
+
}) {
|
|
13
19
|
const h = m.useId(), s = `chart-${c || h.replace(/:/g, "")}`;
|
|
14
|
-
return o(j.Provider, { value: { config: t }, children:
|
|
20
|
+
return /* @__PURE__ */ o(j.Provider, { value: { config: t }, children: /* @__PURE__ */ f(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "chart",
|
|
24
|
+
"data-chart": s,
|
|
25
|
+
className: d(
|
|
26
|
+
"[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
|
|
27
|
+
r
|
|
28
|
+
),
|
|
29
|
+
...l,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ o(S, { id: s, config: t }),
|
|
32
|
+
/* @__PURE__ */ o(w.ResponsiveContainer, { children: n })
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
) });
|
|
15
36
|
}
|
|
16
|
-
const S = ({ id: c, config:
|
|
17
|
-
const n = Object.entries(
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
const S = ({ id: c, config: r }) => {
|
|
38
|
+
const n = Object.entries(r).filter(
|
|
39
|
+
([, t]) => t.theme || t.color
|
|
40
|
+
);
|
|
41
|
+
return n.length ? /* @__PURE__ */ o(
|
|
42
|
+
"style",
|
|
43
|
+
{
|
|
44
|
+
dangerouslySetInnerHTML: {
|
|
45
|
+
__html: Object.entries(I).map(
|
|
46
|
+
([t, l]) => `
|
|
20
47
|
${l} [data-chart=${c}] {
|
|
21
48
|
${n.map(([h, s]) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
49
|
+
var a;
|
|
50
|
+
const i = ((a = s.theme) == null ? void 0 : a[t]) || s.color;
|
|
51
|
+
return i ? ` --color-${h}: ${i};` : null;
|
|
52
|
+
}).join(`
|
|
26
53
|
`)}
|
|
27
54
|
}
|
|
28
|
-
`
|
|
55
|
+
`
|
|
56
|
+
).join(`
|
|
29
57
|
`)
|
|
30
|
-
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
) : null;
|
|
31
61
|
}, R = w.Tooltip;
|
|
32
|
-
function H({
|
|
62
|
+
function H({
|
|
63
|
+
active: c,
|
|
64
|
+
payload: r,
|
|
65
|
+
className: n,
|
|
66
|
+
indicator: t = "dot",
|
|
67
|
+
hideLabel: l = !1,
|
|
68
|
+
hideIndicator: h = !1,
|
|
69
|
+
label: s,
|
|
70
|
+
labelFormatter: i,
|
|
71
|
+
labelClassName: a,
|
|
72
|
+
formatter: C,
|
|
73
|
+
color: L,
|
|
74
|
+
nameKey: P,
|
|
75
|
+
labelKey: p
|
|
76
|
+
}) {
|
|
33
77
|
const { config: x } = $(), N = m.useMemo(() => {
|
|
34
78
|
var v;
|
|
35
|
-
if (l || !(
|
|
79
|
+
if (l || !(r != null && r.length))
|
|
36
80
|
return null;
|
|
37
|
-
const [
|
|
38
|
-
return i ? o("div", { className: d("font-medium", a), children: i(u,
|
|
81
|
+
const [e] = r, k = `${p || (e == null ? void 0 : e.dataKey) || (e == null ? void 0 : e.name) || "value"}`, g = _(x, e, k), u = !p && typeof s == "string" ? ((v = x[s]) == null ? void 0 : v.label) || s : g == null ? void 0 : g.label;
|
|
82
|
+
return i ? /* @__PURE__ */ o("div", { className: d("font-medium", a), children: i(u, r) }) : u ? /* @__PURE__ */ o("div", { className: d("font-medium", a), children: u }) : null;
|
|
39
83
|
}, [
|
|
40
84
|
s,
|
|
41
85
|
i,
|
|
42
|
-
|
|
86
|
+
r,
|
|
43
87
|
l,
|
|
44
88
|
a,
|
|
45
89
|
x,
|
|
46
90
|
p
|
|
47
91
|
]);
|
|
48
|
-
if (!c || !(
|
|
92
|
+
if (!c || !(r != null && r.length))
|
|
49
93
|
return null;
|
|
50
|
-
const b =
|
|
51
|
-
return
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
94
|
+
const b = r.length === 1 && t !== "dot";
|
|
95
|
+
return /* @__PURE__ */ f(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
className: d(
|
|
99
|
+
"border-neutral-200/50 bg-white grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-neutral-200 px-2.5 py-1.5 text-xs shadow-xl dark:border-neutral-800/50 dark:bg-neutral-950 dark:border-neutral-800",
|
|
100
|
+
n
|
|
101
|
+
),
|
|
102
|
+
children: [
|
|
103
|
+
b ? null : N,
|
|
104
|
+
/* @__PURE__ */ o("div", { className: "grid gap-1.5", children: r.map((e, k) => {
|
|
105
|
+
const g = `${P || e.name || e.dataKey || "value"}`, u = _(x, e, g), v = L || e.payload.fill || e.color;
|
|
106
|
+
return /* @__PURE__ */ o(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
className: d(
|
|
110
|
+
"[&>svg]:text-neutral-500 flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 dark:[&>svg]:text-neutral-400",
|
|
111
|
+
t === "dot" && "items-center"
|
|
112
|
+
),
|
|
113
|
+
children: C && (e == null ? void 0 : e.value) !== void 0 && e.name ? C(e.value, e.name, e, k, e.payload) : /* @__PURE__ */ f(T, { children: [
|
|
114
|
+
u != null && u.icon ? /* @__PURE__ */ o(u.icon, {}) : !h && /* @__PURE__ */ o(
|
|
115
|
+
"div",
|
|
116
|
+
{
|
|
117
|
+
className: d(
|
|
118
|
+
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
119
|
+
{
|
|
120
|
+
"h-2.5 w-2.5": t === "dot",
|
|
121
|
+
"w-1": t === "line",
|
|
122
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": t === "dashed",
|
|
123
|
+
"my-0.5": b && t === "dashed"
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
style: {
|
|
127
|
+
"--color-bg": v,
|
|
128
|
+
"--color-border": v
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
/* @__PURE__ */ f(
|
|
133
|
+
"div",
|
|
134
|
+
{
|
|
135
|
+
className: d(
|
|
136
|
+
"flex flex-1 justify-between leading-none",
|
|
137
|
+
b ? "items-end" : "items-center"
|
|
138
|
+
),
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ f("div", { className: "grid gap-1.5", children: [
|
|
141
|
+
b ? N : null,
|
|
142
|
+
/* @__PURE__ */ o("span", { className: "text-neutral-500 dark:text-neutral-400", children: (u == null ? void 0 : u.label) || e.name })
|
|
143
|
+
] }),
|
|
144
|
+
e.value && /* @__PURE__ */ o("span", { className: "text-neutral-950 font-mono font-medium tabular-nums dark:text-neutral-50", children: e.value.toLocaleString() })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] })
|
|
149
|
+
},
|
|
150
|
+
e.dataKey
|
|
151
|
+
);
|
|
152
|
+
}) })
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
);
|
|
63
156
|
}
|
|
64
157
|
const O = w.Legend;
|
|
65
|
-
function q({
|
|
158
|
+
function q({
|
|
159
|
+
className: c,
|
|
160
|
+
hideIcon: r = !1,
|
|
161
|
+
payload: n,
|
|
162
|
+
verticalAlign: t = "bottom",
|
|
163
|
+
nameKey: l
|
|
164
|
+
}) {
|
|
66
165
|
const { config: h } = $();
|
|
67
|
-
return n != null && n.length ?
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
166
|
+
return n != null && n.length ? /* @__PURE__ */ o(
|
|
167
|
+
"div",
|
|
168
|
+
{
|
|
169
|
+
className: d(
|
|
170
|
+
"flex items-center justify-center gap-4",
|
|
171
|
+
t === "top" ? "pb-3" : "pt-3",
|
|
172
|
+
c
|
|
173
|
+
),
|
|
174
|
+
children: n.map((s) => {
|
|
175
|
+
const i = `${l || s.dataKey || "value"}`, a = _(h, s, i);
|
|
176
|
+
return /* @__PURE__ */ f(
|
|
177
|
+
"div",
|
|
178
|
+
{
|
|
179
|
+
className: d(
|
|
180
|
+
"[&>svg]:text-neutral-500 flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 dark:[&>svg]:text-neutral-400"
|
|
181
|
+
),
|
|
182
|
+
children: [
|
|
183
|
+
a != null && a.icon && !r ? /* @__PURE__ */ o(a.icon, {}) : /* @__PURE__ */ o(
|
|
184
|
+
"div",
|
|
185
|
+
{
|
|
186
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
187
|
+
style: {
|
|
188
|
+
backgroundColor: s.color
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
a == null ? void 0 : a.label
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
s.value
|
|
196
|
+
);
|
|
197
|
+
})
|
|
198
|
+
}
|
|
199
|
+
) : null;
|
|
73
200
|
}
|
|
74
|
-
function _(c,
|
|
75
|
-
if (typeof
|
|
201
|
+
function _(c, r, n) {
|
|
202
|
+
if (typeof r != "object" || r === null)
|
|
76
203
|
return;
|
|
77
|
-
const t = "payload" in
|
|
204
|
+
const t = "payload" in r && typeof r.payload == "object" && r.payload !== null ? r.payload : void 0;
|
|
78
205
|
let l = n;
|
|
79
|
-
return n in
|
|
206
|
+
return n in r && typeof r[n] == "string" ? l = r[n] : t && n in t && typeof t[n] == "string" && (l = t[n]), l in c ? c[l] : c[n];
|
|
80
207
|
}
|
|
81
208
|
export {
|
|
82
209
|
M as ChartContainer,
|
|
@@ -2,8 +2,29 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as e from "@radix-ui/react-checkbox";
|
|
3
3
|
import { CheckIcon as i } from "lucide-react";
|
|
4
4
|
import { cn as d } from "../../lib/utils.js";
|
|
5
|
-
function s({
|
|
6
|
-
|
|
5
|
+
function s({
|
|
6
|
+
className: a,
|
|
7
|
+
...t
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ r(
|
|
10
|
+
e.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "checkbox",
|
|
13
|
+
className: d(
|
|
14
|
+
"peer border-neutral-200 data-[state=checked]:bg-neutral-900 data-[state=checked]:text-neutral-50 data-[state=checked]:border-neutral-900 focus-visible:border-neutral-950 focus-visible:ring-neutral-950/50 aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:data-[state=checked]:bg-neutral-50 dark:data-[state=checked]:text-neutral-900 dark:data-[state=checked]:border-neutral-50 dark:focus-visible:border-neutral-300 dark:focus-visible:ring-neutral-300/50 dark:aria-invalid:ring-red-900/20 dark:dark:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900",
|
|
15
|
+
a
|
|
16
|
+
),
|
|
17
|
+
...t,
|
|
18
|
+
children: /* @__PURE__ */ r(
|
|
19
|
+
e.Indicator,
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "checkbox-indicator",
|
|
22
|
+
className: "flex items-center justify-center text-current transition-none",
|
|
23
|
+
children: /* @__PURE__ */ r(i, { className: "size-3.5" })
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
);
|
|
7
28
|
}
|
|
8
29
|
export {
|
|
9
30
|
s as Checkbox
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "@radix-ui/react-collapsible";
|
|
3
|
-
function i({
|
|
4
|
-
|
|
3
|
+
function i({
|
|
4
|
+
...l
|
|
5
|
+
}) {
|
|
6
|
+
return /* @__PURE__ */ o(t.Root, { "data-slot": "collapsible", ...l });
|
|
5
7
|
}
|
|
6
|
-
function r({
|
|
7
|
-
|
|
8
|
+
function r({
|
|
9
|
+
...l
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ o(
|
|
12
|
+
t.CollapsibleTrigger,
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "collapsible-trigger",
|
|
15
|
+
...l
|
|
16
|
+
}
|
|
17
|
+
);
|
|
8
18
|
}
|
|
9
|
-
function a({
|
|
10
|
-
|
|
19
|
+
function a({
|
|
20
|
+
...l
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ o(
|
|
23
|
+
t.CollapsibleContent,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "collapsible-content",
|
|
26
|
+
...l
|
|
27
|
+
}
|
|
28
|
+
);
|
|
11
29
|
}
|
|
12
30
|
export {
|
|
13
31
|
i as Collapsible,
|
|
@@ -3,32 +3,150 @@ import { Command as n } from "cmdk";
|
|
|
3
3
|
import { SearchIcon as l } from "lucide-react";
|
|
4
4
|
import { cn as r } from "../../lib/utils.js";
|
|
5
5
|
import { Dialog as s, DialogHeader as c, DialogTitle as u, DialogDescription as i, DialogContent as p } from "./dialog.js";
|
|
6
|
-
function g({
|
|
7
|
-
|
|
6
|
+
function g({
|
|
7
|
+
className: t,
|
|
8
|
+
...e
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ a(
|
|
11
|
+
n,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "command",
|
|
14
|
+
className: r(
|
|
15
|
+
"bg-white text-neutral-950 flex h-full w-full flex-col overflow-hidden rounded-md dark:bg-neutral-950 dark:text-neutral-50",
|
|
16
|
+
t
|
|
17
|
+
),
|
|
18
|
+
...e
|
|
19
|
+
}
|
|
20
|
+
);
|
|
8
21
|
}
|
|
9
|
-
function v({
|
|
10
|
-
|
|
22
|
+
function v({
|
|
23
|
+
title: t = "Command Palette",
|
|
24
|
+
description: e = "Search for a command to run...",
|
|
25
|
+
children: o,
|
|
26
|
+
...m
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ d(s, { ...m, children: [
|
|
29
|
+
/* @__PURE__ */ d(c, { className: "sr-only", children: [
|
|
30
|
+
/* @__PURE__ */ a(u, { children: t }),
|
|
31
|
+
/* @__PURE__ */ a(i, { children: e })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ a(p, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a(g, { className: "[&_[cmdk-group-heading]]:text-neutral-500 **: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 dark:[&_[cmdk-group-heading]]:text-neutral-400", children: o }) })
|
|
34
|
+
] });
|
|
11
35
|
}
|
|
12
|
-
function w({
|
|
13
|
-
|
|
36
|
+
function w({
|
|
37
|
+
className: t,
|
|
38
|
+
...e
|
|
39
|
+
}) {
|
|
40
|
+
return /* @__PURE__ */ d(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "command-input-wrapper",
|
|
44
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ a(l, { className: "size-4 shrink-0 opacity-50" }),
|
|
47
|
+
/* @__PURE__ */ a(
|
|
48
|
+
n.Input,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "command-input",
|
|
51
|
+
className: r(
|
|
52
|
+
"placeholder:text-neutral-500 flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",
|
|
53
|
+
t
|
|
54
|
+
),
|
|
55
|
+
...e
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
);
|
|
14
61
|
}
|
|
15
|
-
function y({
|
|
16
|
-
|
|
62
|
+
function y({
|
|
63
|
+
className: t,
|
|
64
|
+
...e
|
|
65
|
+
}) {
|
|
66
|
+
return /* @__PURE__ */ a(
|
|
67
|
+
n.List,
|
|
68
|
+
{
|
|
69
|
+
"data-slot": "command-list",
|
|
70
|
+
className: r(
|
|
71
|
+
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
72
|
+
t
|
|
73
|
+
),
|
|
74
|
+
...e
|
|
75
|
+
}
|
|
76
|
+
);
|
|
17
77
|
}
|
|
18
|
-
function b({
|
|
19
|
-
|
|
78
|
+
function b({
|
|
79
|
+
...t
|
|
80
|
+
}) {
|
|
81
|
+
return /* @__PURE__ */ a(
|
|
82
|
+
n.Empty,
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "command-empty",
|
|
85
|
+
className: "py-6 text-center text-sm",
|
|
86
|
+
...t
|
|
87
|
+
}
|
|
88
|
+
);
|
|
20
89
|
}
|
|
21
|
-
function C({
|
|
22
|
-
|
|
90
|
+
function C({
|
|
91
|
+
className: t,
|
|
92
|
+
...e
|
|
93
|
+
}) {
|
|
94
|
+
return /* @__PURE__ */ a(
|
|
95
|
+
n.Group,
|
|
96
|
+
{
|
|
97
|
+
"data-slot": "command-group",
|
|
98
|
+
className: r(
|
|
99
|
+
"text-neutral-950 [&_[cmdk-group-heading]]:text-neutral-500 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 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",
|
|
100
|
+
t
|
|
101
|
+
),
|
|
102
|
+
...e
|
|
103
|
+
}
|
|
104
|
+
);
|
|
23
105
|
}
|
|
24
|
-
function N({
|
|
25
|
-
|
|
106
|
+
function N({
|
|
107
|
+
className: t,
|
|
108
|
+
...e
|
|
109
|
+
}) {
|
|
110
|
+
return /* @__PURE__ */ a(
|
|
111
|
+
n.Separator,
|
|
112
|
+
{
|
|
113
|
+
"data-slot": "command-separator",
|
|
114
|
+
className: r("bg-neutral-200 -mx-1 h-px dark:bg-neutral-800", t),
|
|
115
|
+
...e
|
|
116
|
+
}
|
|
117
|
+
);
|
|
26
118
|
}
|
|
27
|
-
function D({
|
|
28
|
-
|
|
119
|
+
function D({
|
|
120
|
+
className: t,
|
|
121
|
+
...e
|
|
122
|
+
}) {
|
|
123
|
+
return /* @__PURE__ */ a(
|
|
124
|
+
n.Item,
|
|
125
|
+
{
|
|
126
|
+
"data-slot": "command-item",
|
|
127
|
+
className: r(
|
|
128
|
+
"data-[selected=true]:bg-neutral-100 data-[selected=true]:text-neutral-900 [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:data-[selected=true]:bg-neutral-800 dark:data-[selected=true]:text-neutral-50 dark:[&_svg:not([class*='text-'])]:text-neutral-400",
|
|
129
|
+
t
|
|
130
|
+
),
|
|
131
|
+
...e
|
|
132
|
+
}
|
|
133
|
+
);
|
|
29
134
|
}
|
|
30
|
-
function I({
|
|
31
|
-
|
|
135
|
+
function I({
|
|
136
|
+
className: t,
|
|
137
|
+
...e
|
|
138
|
+
}) {
|
|
139
|
+
return /* @__PURE__ */ a(
|
|
140
|
+
"span",
|
|
141
|
+
{
|
|
142
|
+
"data-slot": "command-shortcut",
|
|
143
|
+
className: r(
|
|
144
|
+
"text-neutral-500 ml-auto text-xs tracking-widest dark:text-neutral-400",
|
|
145
|
+
t
|
|
146
|
+
),
|
|
147
|
+
...e
|
|
148
|
+
}
|
|
149
|
+
);
|
|
32
150
|
}
|
|
33
151
|
export {
|
|
34
152
|
g as Command,
|