@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.
Files changed (58) hide show
  1. package/dist/cjs/components/ui/alert-dialog.js +1 -1
  2. package/dist/cjs/components/ui/carousel.js +1 -1
  3. package/dist/cjs/components/ui/menubar.js +1 -1
  4. package/dist/cjs/components/ui/pagination.js +1 -1
  5. package/dist/cjs/components/ui/popover.js +1 -1
  6. package/dist/cjs/components/ui/scroll-area.js +1 -1
  7. package/dist/cjs/components/ui/sidebar.js +1 -1
  8. package/dist/cjs/index.js +1 -1
  9. package/dist/es/components/ui/accordion.js +50 -8
  10. package/dist/es/components/ui/alert-dialog.js +118 -22
  11. package/dist/es/components/ui/alert.js +52 -14
  12. package/dist/es/components/ui/aspect-ratio.js +4 -2
  13. package/dist/es/components/ui/avatar.js +42 -6
  14. package/dist/es/components/ui/badge.js +28 -13
  15. package/dist/es/components/ui/breadcrumb.js +78 -10
  16. package/dist/es/components/ui/button.js +37 -21
  17. package/dist/es/components/ui/calendar.js +52 -29
  18. package/dist/es/components/ui/card.js +51 -6
  19. package/dist/es/components/ui/carousel.js +142 -32
  20. package/dist/es/components/ui/chart.js +169 -42
  21. package/dist/es/components/ui/checkbox.js +23 -2
  22. package/dist/es/components/ui/collapsible.js +24 -6
  23. package/dist/es/components/ui/command.js +136 -18
  24. package/dist/es/components/ui/context-menu.js +187 -30
  25. package/dist/es/components/ui/dialog.js +100 -18
  26. package/dist/es/components/ui/drawer.js +98 -18
  27. package/dist/es/components/ui/dropdown-menu.js +195 -30
  28. package/dist/es/components/ui/form.js +59 -8
  29. package/dist/es/components/ui/hover-card.js +30 -9
  30. package/dist/es/components/ui/input-otp.js +47 -6
  31. package/dist/es/components/ui/input.js +14 -1
  32. package/dist/es/components/ui/label.js +15 -2
  33. package/dist/es/components/ui/menubar.js +228 -47
  34. package/dist/es/components/ui/navigation-menu.js +146 -17
  35. package/dist/es/components/ui/pagination.js +96 -15
  36. package/dist/es/components/ui/popover.js +33 -10
  37. package/dist/es/components/ui/progress.js +24 -2
  38. package/dist/es/components/ui/radio-group.js +35 -4
  39. package/dist/es/components/ui/resizable.js +36 -6
  40. package/dist/es/components/ui/scroll-area.js +51 -4
  41. package/dist/es/components/ui/select.js +143 -22
  42. package/dist/es/components/ui/separator.js +19 -2
  43. package/dist/es/components/ui/sheet.js +99 -17
  44. package/dist/es/components/ui/sidebar.js +512 -112
  45. package/dist/es/components/ui/skeleton.js +8 -1
  46. package/dist/es/components/ui/slider.js +56 -4
  47. package/dist/es/components/ui/sonner.js +15 -7
  48. package/dist/es/components/ui/switch.js +24 -2
  49. package/dist/es/components/ui/table.js +87 -9
  50. package/dist/es/components/ui/tabs.js +54 -8
  51. package/dist/es/components/ui/textarea.js +11 -1
  52. package/dist/es/components/ui/toggle-group.js +48 -9
  53. package/dist/es/components/ui/toggle.js +31 -16
  54. package/dist/es/components/ui/tooltip.js +45 -11
  55. package/dist/types/index.d.ts +46 -46
  56. package/dist/types/index.d.ts.map +1 -1
  57. package/package.json +12 -2
  58. 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({ id: c, className: e, children: n, config: t, ...l }) {
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: f("div", { "data-slot": "chart", "data-chart": s, className: d("[&_.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", e), ...l, children: [o(S, { id: s, config: t }), o(w.ResponsiveContainer, { children: n })] }) });
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: e }) => {
17
- const n = Object.entries(e).filter(([, t]) => t.theme || t.color);
18
- return n.length ? o("style", { dangerouslySetInnerHTML: {
19
- __html: Object.entries(I).map(([t, l]) => `
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
- var a;
23
- const i = ((a = s.theme) == null ? void 0 : a[t]) || s.color;
24
- return i ? ` --color-${h}: ${i};` : null;
25
- }).join(`
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
- `).join(`
55
+ `
56
+ ).join(`
29
57
  `)
30
- } }) : null;
58
+ }
59
+ }
60
+ ) : null;
31
61
  }, R = w.Tooltip;
32
- function H({ active: c, payload: e, className: n, indicator: t = "dot", hideLabel: l = !1, hideIndicator: h = !1, label: s, labelFormatter: i, labelClassName: a, formatter: C, color: L, nameKey: P, labelKey: p }) {
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 || !(e != null && e.length))
79
+ if (l || !(r != null && r.length))
36
80
  return null;
37
- const [r] = e, k = `${p || (r == null ? void 0 : r.dataKey) || (r == null ? void 0 : r.name) || "value"}`, g = _(x, r, k), u = !p && typeof s == "string" ? ((v = x[s]) == null ? void 0 : v.label) || s : g == null ? void 0 : g.label;
38
- return i ? o("div", { className: d("font-medium", a), children: i(u, e) }) : u ? o("div", { className: d("font-medium", a), children: u }) : null;
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
- e,
86
+ r,
43
87
  l,
44
88
  a,
45
89
  x,
46
90
  p
47
91
  ]);
48
- if (!c || !(e != null && e.length))
92
+ if (!c || !(r != null && r.length))
49
93
  return null;
50
- const b = e.length === 1 && t !== "dot";
51
- return f("div", { className: d("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", n), children: [b ? null : N, o("div", { className: "grid gap-1.5", children: e.map((r, k) => {
52
- const g = `${P || r.name || r.dataKey || "value"}`, u = _(x, r, g), v = L || r.payload.fill || r.color;
53
- return o("div", { className: d("[&>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", t === "dot" && "items-center"), children: C && (r == null ? void 0 : r.value) !== void 0 && r.name ? C(r.value, r.name, r, k, r.payload) : f(T, { children: [u != null && u.icon ? o(u.icon, {}) : !h && o("div", { className: d("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
54
- "h-2.5 w-2.5": t === "dot",
55
- "w-1": t === "line",
56
- "w-0 border-[1.5px] border-dashed bg-transparent": t === "dashed",
57
- "my-0.5": b && t === "dashed"
58
- }), style: {
59
- "--color-bg": v,
60
- "--color-border": v
61
- } }), f("div", { className: d("flex flex-1 justify-between leading-none", b ? "items-end" : "items-center"), children: [f("div", { className: "grid gap-1.5", children: [b ? N : null, o("span", { className: "text-neutral-500 dark:text-neutral-400", children: (u == null ? void 0 : u.label) || r.name })] }), r.value && o("span", { className: "text-neutral-950 font-mono font-medium tabular-nums dark:text-neutral-50", children: r.value.toLocaleString() })] })] }) }, r.dataKey);
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({ className: c, hideIcon: e = !1, payload: n, verticalAlign: t = "bottom", nameKey: l }) {
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 ? o("div", { className: d("flex items-center justify-center gap-4", t === "top" ? "pb-3" : "pt-3", c), children: n.map((s) => {
68
- const i = `${l || s.dataKey || "value"}`, a = _(h, s, i);
69
- return f("div", { className: d("[&>svg]:text-neutral-500 flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 dark:[&>svg]:text-neutral-400"), children: [a != null && a.icon && !e ? o(a.icon, {}) : o("div", { className: "h-2 w-2 shrink-0 rounded-[2px]", style: {
70
- backgroundColor: s.color
71
- } }), a == null ? void 0 : a.label] }, s.value);
72
- }) }) : null;
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, e, n) {
75
- if (typeof e != "object" || e === null)
201
+ function _(c, r, n) {
202
+ if (typeof r != "object" || r === null)
76
203
  return;
77
- const t = "payload" in e && typeof e.payload == "object" && e.payload !== null ? e.payload : void 0;
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 e && typeof e[n] == "string" ? l = e[n] : t && n in t && typeof t[n] == "string" && (l = t[n]), l in c ? c[l] : c[n];
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({ className: a, ...t }) {
6
- return r(e.Root, { "data-slot": "checkbox", className: d("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", a), ...t, children: r(e.Indicator, { "data-slot": "checkbox-indicator", className: "flex items-center justify-center text-current transition-none", children: r(i, { className: "size-3.5" }) }) });
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({ ...l }) {
4
- return o(t.Root, { "data-slot": "collapsible", ...l });
3
+ function i({
4
+ ...l
5
+ }) {
6
+ return /* @__PURE__ */ o(t.Root, { "data-slot": "collapsible", ...l });
5
7
  }
6
- function r({ ...l }) {
7
- return o(t.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...l });
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({ ...l }) {
10
- return o(t.CollapsibleContent, { "data-slot": "collapsible-content", ...l });
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({ className: t, ...e }) {
7
- return a(n, { "data-slot": "command", className: r("bg-white text-neutral-950 flex h-full w-full flex-col overflow-hidden rounded-md dark:bg-neutral-950 dark:text-neutral-50", t), ...e });
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({ title: t = "Command Palette", description: e = "Search for a command to run...", children: o, ...m }) {
10
- return d(s, { ...m, children: [d(c, { className: "sr-only", children: [a(u, { children: t }), a(i, { children: e })] }), a(p, { className: "overflow-hidden p-0", children: 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 }) })] });
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({ className: t, ...e }) {
13
- return d("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [a(l, { className: "size-4 shrink-0 opacity-50" }), a(n.Input, { "data-slot": "command-input", className: r("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", t), ...e })] });
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({ className: t, ...e }) {
16
- return a(n.List, { "data-slot": "command-list", className: r("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", t), ...e });
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({ ...t }) {
19
- return a(n.Empty, { "data-slot": "command-empty", className: "py-6 text-center text-sm", ...t });
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({ className: t, ...e }) {
22
- return a(n.Group, { "data-slot": "command-group", className: r("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", t), ...e });
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({ className: t, ...e }) {
25
- return a(n.Separator, { "data-slot": "command-separator", className: r("bg-neutral-200 -mx-1 h-px dark:bg-neutral-800", t), ...e });
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({ className: t, ...e }) {
28
- return a(n.Item, { "data-slot": "command-item", className: r("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", t), ...e });
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({ className: t, ...e }) {
31
- return a("span", { "data-slot": "command-shortcut", className: r("text-neutral-500 ml-auto text-xs tracking-widest dark:text-neutral-400", t), ...e });
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,