@arcadeai/design-system 3.33.1 → 3.33.2
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/assets/icons/daytona.js +6 -6
- package/dist/components/index.js +2 -2
- package/dist/components/ui/atoms/command.js +288 -364
- package/dist/components/ui/atoms/copy-button.d.ts.map +1 -1
- package/dist/components/ui/atoms/copy-button.js +3 -2
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/icons/daytona.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/daytona.js +9 -14
- package/dist/components/ui/atoms/index.js +1 -1
- package/dist/components/ui/atoms/markdown.js +1 -1
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/index.js +2 -2
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/message.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +2 -2
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/highlighted-body-TPN3WLV5-DyOGcftJ.js +19 -0
- package/dist/index-BEZCAdXQ.js +1568 -0
- package/dist/main.js +2 -2
- package/dist/{markdown-ChximrBv.js → markdown-9KGBuupR.js} +6264 -6046
- package/dist/mermaid-O7DHMXV3-CUp9wvRi.js +4 -0
- package/dist/{toolkit-card-Cb-KDQhU.js → toolkit-card-k8jio69G.js} +1 -1
- package/package.json +1 -1
- package/dist/highlighted-body-B3W2YXNL-D6XBJnwx.js +0 -19
- package/dist/index-DO05OIM5.js +0 -1545
- package/dist/mermaid-3ZIDBTTL-DtIP-JZq.js +0 -4
|
@@ -1,480 +1,404 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { R as
|
|
1
|
+
import { jsx as C, jsxs as ne } from "react/jsx-runtime";
|
|
2
|
+
import { R as Se, P as Ie, O as Re, a as Ae } from "../../../index-By-GFSsC.js";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { P as A } from "../../../index-DLohNuco.js";
|
|
5
|
+
import { u as j } from "../../../index-Cv867SGx.js";
|
|
6
|
+
import { b as V } from "../../../index-D2LZVjSn.js";
|
|
7
7
|
import { SearchIcon as De } from "lucide-react";
|
|
8
|
-
import { Dialog as
|
|
9
|
-
import { cn as
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
15
|
-
for (var
|
|
16
|
-
return
|
|
8
|
+
import { Dialog as _e, DialogHeader as Me, DialogTitle as $e, DialogDescription as Ne, DialogContent as Pe } from "./dialog.js";
|
|
9
|
+
import { cn as D } from "../../../lib/utils.js";
|
|
10
|
+
var pe = 1, Fe = 0.9, Ke = 0.8, je = 0.17, ee = 0.1, te = 0.999, Le = 0.9999, qe = 0.99, Ve = /[\\\/_+.#"@\[\(\{&]/, ze = /[\\\/_+.#"@\[\(\{&]/g, Oe = /[\s-]/, he = /[\s-]/g;
|
|
11
|
+
function le(e, n, r, s, o, i, c) {
|
|
12
|
+
if (i === n.length) return o === e.length ? pe : qe;
|
|
13
|
+
var f = `${o},${i}`;
|
|
14
|
+
if (c[f] !== void 0) return c[f];
|
|
15
|
+
for (var b = s.charAt(i), u = r.indexOf(b, o), v = 0, g, S, w, I; u >= 0; ) g = le(e, n, r, s, u + 1, i + 1, c), g > v && (u === o ? g *= pe : Ve.test(e.charAt(u - 1)) ? (g *= Ke, w = e.slice(o, u - 1).match(ze), w && o > 0 && (g *= Math.pow(te, w.length))) : Oe.test(e.charAt(u - 1)) ? (g *= Fe, I = e.slice(o, u - 1).match(he), I && o > 0 && (g *= Math.pow(te, I.length))) : (g *= je, o > 0 && (g *= Math.pow(te, u - o))), e.charAt(u) !== n.charAt(i) && (g *= Le)), (g < ee && r.charAt(u - 1) === s.charAt(i + 1) || s.charAt(i + 1) === s.charAt(i) && r.charAt(u - 1) !== s.charAt(i)) && (S = le(e, n, r, s, u + 1, i + 2, c), S * ee > g && (g = S * ee)), g > v && (v = g), u = r.indexOf(b, u + 1);
|
|
16
|
+
return c[f] = v, v;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return e.toLowerCase().replace(
|
|
18
|
+
function ve(e) {
|
|
19
|
+
return e.toLowerCase().replace(he, " ");
|
|
20
20
|
}
|
|
21
|
-
function Be(e,
|
|
22
|
-
return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e,
|
|
21
|
+
function Be(e, n, r) {
|
|
22
|
+
return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, le(e, n, ve(e), ve(n), 0, 0, {});
|
|
23
23
|
}
|
|
24
|
-
var He =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
// @__NO_SIDE_EFFECTS__
|
|
32
|
-
function Ue(e) {
|
|
33
|
-
const t = /* @__PURE__ */ Ye(e), r = l.forwardRef((i, a) => {
|
|
34
|
-
let { children: o, ...d } = i;
|
|
35
|
-
ye(o) && typeof W == "function" && (o = W(o._payload));
|
|
36
|
-
const m = l.Children.toArray(o), p = m.find(Je);
|
|
37
|
-
if (p) {
|
|
38
|
-
const c = p.props.children, v = m.map((h) => h === p ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : h);
|
|
39
|
-
return /* @__PURE__ */ x(t, { ...d, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0, v) : null });
|
|
40
|
-
}
|
|
41
|
-
return /* @__PURE__ */ x(t, { ...d, ref: a, children: o });
|
|
42
|
-
});
|
|
43
|
-
return r.displayName = `${e}.Slot`, r;
|
|
44
|
-
}
|
|
45
|
-
// @__NO_SIDE_EFFECTS__
|
|
46
|
-
function Ye(e) {
|
|
47
|
-
const t = l.forwardRef((r, i) => {
|
|
48
|
-
let { children: a, ...o } = r;
|
|
49
|
-
if (ye(a) && typeof W == "function" && (a = W(a._payload)), l.isValidElement(a)) {
|
|
50
|
-
const d = Qe(a), m = Xe(o, a.props);
|
|
51
|
-
return a.type !== l.Fragment && (m.ref = i ? O(i, d) : d), l.cloneElement(a, m);
|
|
52
|
-
}
|
|
53
|
-
return l.Children.count(a) > 1 ? l.Children.only(null) : null;
|
|
54
|
-
});
|
|
55
|
-
return t.displayName = `${e}.SlotClone`, t;
|
|
56
|
-
}
|
|
57
|
-
var Ze = /* @__PURE__ */ Symbol("radix.slottable");
|
|
58
|
-
function Je(e) {
|
|
59
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ze;
|
|
60
|
-
}
|
|
61
|
-
function Xe(e, t) {
|
|
62
|
-
const r = { ...t };
|
|
63
|
-
for (const i in t) {
|
|
64
|
-
const a = e[i], o = t[i];
|
|
65
|
-
/^on[A-Z]/.test(i) ? a && o ? r[i] = (...m) => {
|
|
66
|
-
const p = o(...m);
|
|
67
|
-
return a(...m), p;
|
|
68
|
-
} : a && (r[i] = a) : i === "style" ? r[i] = { ...a, ...o } : i === "className" && (r[i] = [a, o].filter(Boolean).join(" "));
|
|
69
|
-
}
|
|
70
|
-
return { ...e, ...r };
|
|
71
|
-
}
|
|
72
|
-
function Qe(e) {
|
|
73
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
74
|
-
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
75
|
-
}
|
|
76
|
-
var et = [
|
|
77
|
-
"a",
|
|
78
|
-
"button",
|
|
79
|
-
"div",
|
|
80
|
-
"form",
|
|
81
|
-
"h2",
|
|
82
|
-
"h3",
|
|
83
|
-
"img",
|
|
84
|
-
"input",
|
|
85
|
-
"label",
|
|
86
|
-
"li",
|
|
87
|
-
"nav",
|
|
88
|
-
"ol",
|
|
89
|
-
"p",
|
|
90
|
-
"select",
|
|
91
|
-
"span",
|
|
92
|
-
"svg",
|
|
93
|
-
"ul"
|
|
94
|
-
], A = et.reduce((e, t) => {
|
|
95
|
-
const r = /* @__PURE__ */ Ue(`Primitive.${t}`), i = l.forwardRef((a, o) => {
|
|
96
|
-
const { asChild: d, ...m } = a, p = d ? r : t;
|
|
97
|
-
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ x(p, { ...m, ref: o });
|
|
98
|
-
});
|
|
99
|
-
return i.displayName = `Primitive.${t}`, { ...e, [t]: i };
|
|
100
|
-
}, {}), K = '[cmdk-group=""]', ne = '[cmdk-group-items=""]', tt = '[cmdk-group-heading=""]', xe = '[cmdk-item=""]', he = `${xe}:not([aria-disabled="true"])`, oe = "cmdk-item-select", j = "data-value", rt = (e, t, r) => Be(e, t, r), we = l.createContext(void 0), z = () => l.useContext(we), ke = l.createContext(void 0), ie = () => l.useContext(ke), Ee = l.createContext(void 0), Ce = l.forwardRef((e, t) => {
|
|
101
|
-
let r = L(() => {
|
|
102
|
-
var n, s;
|
|
103
|
-
return { search: "", value: (s = (n = e.value) != null ? n : e.defaultValue) != null ? s : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
104
|
-
}), i = L(() => /* @__PURE__ */ new Set()), a = L(() => /* @__PURE__ */ new Map()), o = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Set()), m = Se(e), { label: p, children: c, value: v, onValueChange: h, filter: S, shouldFilter: k, loop: I, disablePointerSelection: H = !1, vimBindings: $ = !0, ...T } = e, G = V(), ue = V(), U = V(), D = l.useRef(null), y = ft();
|
|
105
|
-
N(() => {
|
|
24
|
+
var q = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ge = '[cmdk-group-heading=""]', be = '[cmdk-item=""]', ge = `${be}:not([aria-disabled="true"])`, ae = "cmdk-item-select", F = "data-value", He = (e, n, r) => Be(e, n, r), xe = l.createContext(void 0), z = () => l.useContext(xe), ke = l.createContext(void 0), oe = () => l.useContext(ke), we = l.createContext(void 0), ye = l.forwardRef((e, n) => {
|
|
25
|
+
let r = K(() => {
|
|
26
|
+
var t, d;
|
|
27
|
+
return { search: "", value: (d = (t = e.value) != null ? t : e.defaultValue) != null ? d : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
28
|
+
}), s = K(() => /* @__PURE__ */ new Set()), o = K(() => /* @__PURE__ */ new Map()), i = K(() => /* @__PURE__ */ new Map()), c = K(() => /* @__PURE__ */ new Set()), f = Ee(e), { label: b, children: u, value: v, onValueChange: g, filter: S, shouldFilter: w, loop: I, disablePointerSelection: H = !1, vimBindings: _ = !0, ...O } = e, T = j(), ue = j(), U = j(), M = l.useRef(null), x = rt();
|
|
29
|
+
$(() => {
|
|
106
30
|
if (v !== void 0) {
|
|
107
|
-
let
|
|
108
|
-
r.current.value =
|
|
31
|
+
let t = v.trim();
|
|
32
|
+
r.current.value = t, y.emit();
|
|
109
33
|
}
|
|
110
|
-
}, [v]),
|
|
111
|
-
|
|
34
|
+
}, [v]), $(() => {
|
|
35
|
+
x(6, de);
|
|
112
36
|
}, []);
|
|
113
|
-
let
|
|
114
|
-
var
|
|
115
|
-
if (!Object.is(r.current[
|
|
116
|
-
if (r.current[
|
|
117
|
-
else if (
|
|
37
|
+
let y = l.useMemo(() => ({ subscribe: (t) => (c.current.add(t), () => c.current.delete(t)), snapshot: () => r.current, setState: (t, d, m) => {
|
|
38
|
+
var a, p, h, E;
|
|
39
|
+
if (!Object.is(r.current[t], d)) {
|
|
40
|
+
if (r.current[t] = d, t === "search") Y(), J(), x(1, X);
|
|
41
|
+
else if (t === "value") {
|
|
118
42
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
119
|
-
let
|
|
120
|
-
|
|
43
|
+
let k = document.getElementById(U);
|
|
44
|
+
k ? k.focus() : (a = document.getElementById(T)) == null || a.focus();
|
|
121
45
|
}
|
|
122
|
-
if (
|
|
123
|
-
var
|
|
124
|
-
r.current.selectedItemId = (
|
|
125
|
-
}),
|
|
126
|
-
let
|
|
127
|
-
(
|
|
46
|
+
if (x(7, () => {
|
|
47
|
+
var k;
|
|
48
|
+
r.current.selectedItemId = (k = P()) == null ? void 0 : k.id, y.emit();
|
|
49
|
+
}), m || x(5, de), ((p = f.current) == null ? void 0 : p.value) !== void 0) {
|
|
50
|
+
let k = d ?? "";
|
|
51
|
+
(E = (h = f.current).onValueChange) == null || E.call(h, k);
|
|
128
52
|
return;
|
|
129
53
|
}
|
|
130
54
|
}
|
|
131
|
-
|
|
55
|
+
y.emit();
|
|
132
56
|
}
|
|
133
57
|
}, emit: () => {
|
|
134
|
-
|
|
135
|
-
} }), []),
|
|
136
|
-
var
|
|
137
|
-
|
|
138
|
-
|
|
58
|
+
c.current.forEach((t) => t());
|
|
59
|
+
} }), []), W = l.useMemo(() => ({ value: (t, d, m) => {
|
|
60
|
+
var a;
|
|
61
|
+
d !== ((a = i.current.get(t)) == null ? void 0 : a.value) && (i.current.set(t, { value: d, keywords: m }), r.current.filtered.items.set(t, ie(d, m)), x(2, () => {
|
|
62
|
+
J(), y.emit();
|
|
139
63
|
}));
|
|
140
|
-
}, item: (
|
|
141
|
-
|
|
64
|
+
}, item: (t, d) => (s.current.add(t), d && (o.current.has(d) ? o.current.get(d).add(t) : o.current.set(d, /* @__PURE__ */ new Set([t]))), x(3, () => {
|
|
65
|
+
Y(), J(), r.current.value || X(), y.emit();
|
|
142
66
|
}), () => {
|
|
143
|
-
|
|
144
|
-
let
|
|
145
|
-
|
|
146
|
-
|
|
67
|
+
i.current.delete(t), s.current.delete(t), r.current.filtered.items.delete(t);
|
|
68
|
+
let m = P();
|
|
69
|
+
x(4, () => {
|
|
70
|
+
Y(), m?.getAttribute("id") === t && X(), y.emit();
|
|
147
71
|
});
|
|
148
|
-
}), group: (
|
|
149
|
-
|
|
150
|
-
}), filter: () =>
|
|
151
|
-
function
|
|
152
|
-
var
|
|
153
|
-
let
|
|
154
|
-
return
|
|
72
|
+
}), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
|
|
73
|
+
i.current.delete(t), o.current.delete(t);
|
|
74
|
+
}), filter: () => f.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => f.current.disablePointerSelection, listId: T, inputId: U, labelId: ue, listInnerRef: M }), []);
|
|
75
|
+
function ie(t, d) {
|
|
76
|
+
var m, a;
|
|
77
|
+
let p = (a = (m = f.current) == null ? void 0 : m.filter) != null ? a : He;
|
|
78
|
+
return t ? p(t, r.current.search, d) : 0;
|
|
155
79
|
}
|
|
156
|
-
function
|
|
157
|
-
if (!r.current.search ||
|
|
158
|
-
let
|
|
159
|
-
r.current.filtered.groups.forEach((
|
|
160
|
-
let
|
|
161
|
-
|
|
162
|
-
let
|
|
163
|
-
|
|
164
|
-
}),
|
|
80
|
+
function J() {
|
|
81
|
+
if (!r.current.search || f.current.shouldFilter === !1) return;
|
|
82
|
+
let t = r.current.filtered.items, d = [];
|
|
83
|
+
r.current.filtered.groups.forEach((a) => {
|
|
84
|
+
let p = o.current.get(a), h = 0;
|
|
85
|
+
p.forEach((E) => {
|
|
86
|
+
let k = t.get(E);
|
|
87
|
+
h = Math.max(k, h);
|
|
88
|
+
}), d.push([a, h]);
|
|
165
89
|
});
|
|
166
|
-
let
|
|
167
|
-
|
|
168
|
-
var
|
|
169
|
-
let
|
|
170
|
-
return ((
|
|
171
|
-
}).forEach((
|
|
172
|
-
let
|
|
173
|
-
|
|
174
|
-
}),
|
|
175
|
-
var
|
|
176
|
-
let
|
|
177
|
-
|
|
90
|
+
let m = M.current;
|
|
91
|
+
L().sort((a, p) => {
|
|
92
|
+
var h, E;
|
|
93
|
+
let k = a.getAttribute("id"), B = p.getAttribute("id");
|
|
94
|
+
return ((h = t.get(B)) != null ? h : 0) - ((E = t.get(k)) != null ? E : 0);
|
|
95
|
+
}).forEach((a) => {
|
|
96
|
+
let p = a.closest(re);
|
|
97
|
+
p ? p.appendChild(a.parentElement === p ? a : a.closest(`${re} > *`)) : m.appendChild(a.parentElement === m ? a : a.closest(`${re} > *`));
|
|
98
|
+
}), d.sort((a, p) => p[1] - a[1]).forEach((a) => {
|
|
99
|
+
var p;
|
|
100
|
+
let h = (p = M.current) == null ? void 0 : p.querySelector(`${q}[${F}="${encodeURIComponent(a[0])}"]`);
|
|
101
|
+
h?.parentElement.appendChild(h);
|
|
178
102
|
});
|
|
179
103
|
}
|
|
180
|
-
function J() {
|
|
181
|
-
let n = F().find((f) => f.getAttribute("aria-disabled") !== "true"), s = n?.getAttribute(j);
|
|
182
|
-
E.setState("value", s || void 0);
|
|
183
|
-
}
|
|
184
104
|
function X() {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
105
|
+
let t = L().find((m) => m.getAttribute("aria-disabled") !== "true"), d = t?.getAttribute(F);
|
|
106
|
+
y.setState("value", d || void 0);
|
|
107
|
+
}
|
|
108
|
+
function Y() {
|
|
109
|
+
var t, d, m, a;
|
|
110
|
+
if (!r.current.search || f.current.shouldFilter === !1) {
|
|
111
|
+
r.current.filtered.count = s.current.size;
|
|
188
112
|
return;
|
|
189
113
|
}
|
|
190
114
|
r.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
191
|
-
let
|
|
192
|
-
for (let
|
|
193
|
-
let
|
|
194
|
-
r.current.filtered.items.set(
|
|
115
|
+
let p = 0;
|
|
116
|
+
for (let h of s.current) {
|
|
117
|
+
let E = (d = (t = i.current.get(h)) == null ? void 0 : t.value) != null ? d : "", k = (a = (m = i.current.get(h)) == null ? void 0 : m.keywords) != null ? a : [], B = ie(E, k);
|
|
118
|
+
r.current.filtered.items.set(h, B), B > 0 && p++;
|
|
195
119
|
}
|
|
196
|
-
for (let [
|
|
197
|
-
r.current.filtered.groups.add(
|
|
120
|
+
for (let [h, E] of o.current) for (let k of E) if (r.current.filtered.items.get(k) > 0) {
|
|
121
|
+
r.current.filtered.groups.add(h);
|
|
198
122
|
break;
|
|
199
123
|
}
|
|
200
|
-
r.current.filtered.count =
|
|
124
|
+
r.current.filtered.count = p;
|
|
201
125
|
}
|
|
202
126
|
function de() {
|
|
203
|
-
var
|
|
204
|
-
let
|
|
205
|
-
|
|
127
|
+
var t, d, m;
|
|
128
|
+
let a = P();
|
|
129
|
+
a && (((t = a.parentElement) == null ? void 0 : t.firstChild) === a && ((m = (d = a.closest(q)) == null ? void 0 : d.querySelector(Ge)) == null || m.scrollIntoView({ block: "nearest" })), a.scrollIntoView({ block: "nearest" }));
|
|
206
130
|
}
|
|
207
|
-
function
|
|
208
|
-
var
|
|
209
|
-
return (
|
|
131
|
+
function P() {
|
|
132
|
+
var t;
|
|
133
|
+
return (t = M.current) == null ? void 0 : t.querySelector(`${be}[aria-selected="true"]`);
|
|
210
134
|
}
|
|
211
|
-
function
|
|
212
|
-
var
|
|
213
|
-
return Array.from(((
|
|
135
|
+
function L() {
|
|
136
|
+
var t;
|
|
137
|
+
return Array.from(((t = M.current) == null ? void 0 : t.querySelectorAll(ge)) || []);
|
|
214
138
|
}
|
|
215
|
-
function Q(
|
|
216
|
-
let
|
|
217
|
-
|
|
139
|
+
function Q(t) {
|
|
140
|
+
let d = L()[t];
|
|
141
|
+
d && y.setState("value", d.getAttribute(F));
|
|
218
142
|
}
|
|
219
|
-
function
|
|
220
|
-
var
|
|
221
|
-
let
|
|
222
|
-
(
|
|
143
|
+
function Z(t) {
|
|
144
|
+
var d;
|
|
145
|
+
let m = P(), a = L(), p = a.findIndex((E) => E === m), h = a[p + t];
|
|
146
|
+
(d = f.current) != null && d.loop && (h = p + t < 0 ? a[a.length - 1] : p + t === a.length ? a[0] : a[p + t]), h && y.setState("value", h.getAttribute(F));
|
|
223
147
|
}
|
|
224
|
-
function
|
|
225
|
-
let
|
|
226
|
-
for (;
|
|
227
|
-
|
|
148
|
+
function ce(t) {
|
|
149
|
+
let d = P(), m = d?.closest(q), a;
|
|
150
|
+
for (; m && !a; ) m = t > 0 ? et(m, q) : tt(m, q), a = m?.querySelector(ge);
|
|
151
|
+
a ? y.setState("value", a.getAttribute(F)) : Z(t);
|
|
228
152
|
}
|
|
229
|
-
let
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
|
|
153
|
+
let se = () => Q(L().length - 1), me = (t) => {
|
|
154
|
+
t.preventDefault(), t.metaKey ? se() : t.altKey ? ce(1) : Z(1);
|
|
155
|
+
}, fe = (t) => {
|
|
156
|
+
t.preventDefault(), t.metaKey ? Q(0) : t.altKey ? ce(-1) : Z(-1);
|
|
233
157
|
};
|
|
234
|
-
return l.createElement(A.div, { ref:
|
|
235
|
-
var
|
|
236
|
-
(
|
|
237
|
-
let
|
|
238
|
-
if (!(
|
|
158
|
+
return l.createElement(A.div, { ref: n, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (t) => {
|
|
159
|
+
var d;
|
|
160
|
+
(d = O.onKeyDown) == null || d.call(O, t);
|
|
161
|
+
let m = t.nativeEvent.isComposing || t.keyCode === 229;
|
|
162
|
+
if (!(t.defaultPrevented || m)) switch (t.key) {
|
|
239
163
|
case "n":
|
|
240
164
|
case "j": {
|
|
241
|
-
|
|
165
|
+
_ && t.ctrlKey && me(t);
|
|
242
166
|
break;
|
|
243
167
|
}
|
|
244
168
|
case "ArrowDown": {
|
|
245
|
-
|
|
169
|
+
me(t);
|
|
246
170
|
break;
|
|
247
171
|
}
|
|
248
172
|
case "p":
|
|
249
173
|
case "k": {
|
|
250
|
-
|
|
174
|
+
_ && t.ctrlKey && fe(t);
|
|
251
175
|
break;
|
|
252
176
|
}
|
|
253
177
|
case "ArrowUp": {
|
|
254
|
-
|
|
178
|
+
fe(t);
|
|
255
179
|
break;
|
|
256
180
|
}
|
|
257
181
|
case "Home": {
|
|
258
|
-
|
|
182
|
+
t.preventDefault(), Q(0);
|
|
259
183
|
break;
|
|
260
184
|
}
|
|
261
185
|
case "End": {
|
|
262
|
-
|
|
186
|
+
t.preventDefault(), se();
|
|
263
187
|
break;
|
|
264
188
|
}
|
|
265
189
|
case "Enter": {
|
|
266
|
-
|
|
267
|
-
let
|
|
268
|
-
if (
|
|
269
|
-
let
|
|
270
|
-
|
|
190
|
+
t.preventDefault();
|
|
191
|
+
let a = P();
|
|
192
|
+
if (a) {
|
|
193
|
+
let p = new Event(ae);
|
|
194
|
+
a.dispatchEvent(p);
|
|
271
195
|
}
|
|
272
196
|
}
|
|
273
197
|
}
|
|
274
|
-
} }, l.createElement("label", { "cmdk-label": "", htmlFor:
|
|
275
|
-
}),
|
|
276
|
-
var r,
|
|
277
|
-
let
|
|
278
|
-
|
|
279
|
-
if (!
|
|
280
|
-
}, [
|
|
281
|
-
let v =
|
|
198
|
+
} }, l.createElement("label", { "cmdk-label": "", htmlFor: W.inputId, id: W.labelId, style: lt }, b), G(e, (t) => l.createElement(ke.Provider, { value: y }, l.createElement(xe.Provider, { value: W }, t))));
|
|
199
|
+
}), Te = l.forwardRef((e, n) => {
|
|
200
|
+
var r, s;
|
|
201
|
+
let o = j(), i = l.useRef(null), c = l.useContext(we), f = z(), b = Ee(e), u = (s = (r = b.current) == null ? void 0 : r.forceMount) != null ? s : c?.forceMount;
|
|
202
|
+
$(() => {
|
|
203
|
+
if (!u) return f.item(o, c?.id);
|
|
204
|
+
}, [u]);
|
|
205
|
+
let v = Ce(o, i, [e.value, e.children, i], e.keywords), g = oe(), S = R((x) => x.value && x.value === v.current), w = R((x) => u || f.filter() === !1 ? !0 : x.search ? x.filtered.items.get(o) > 0 : !0);
|
|
282
206
|
l.useEffect(() => {
|
|
283
|
-
let
|
|
284
|
-
if (!(!
|
|
285
|
-
}, [
|
|
207
|
+
let x = i.current;
|
|
208
|
+
if (!(!x || e.disabled)) return x.addEventListener(ae, I), () => x.removeEventListener(ae, I);
|
|
209
|
+
}, [w, e.onSelect, e.disabled]);
|
|
286
210
|
function I() {
|
|
287
|
-
var
|
|
288
|
-
H(), (
|
|
211
|
+
var x, y;
|
|
212
|
+
H(), (y = (x = b.current).onSelect) == null || y.call(x, v.current);
|
|
289
213
|
}
|
|
290
214
|
function H() {
|
|
291
|
-
|
|
215
|
+
g.setState("value", v.current, !0);
|
|
292
216
|
}
|
|
293
|
-
if (!
|
|
294
|
-
let { disabled:
|
|
295
|
-
return l.createElement(A.div, { ref:
|
|
296
|
-
}),
|
|
297
|
-
let { heading: r, children:
|
|
298
|
-
|
|
299
|
-
let S = l.useMemo(() => ({ id:
|
|
300
|
-
return l.createElement(A.div, { ref:
|
|
301
|
-
}),
|
|
302
|
-
let { alwaysRender: r, ...
|
|
303
|
-
return !r && !
|
|
304
|
-
}),
|
|
305
|
-
let { onValueChange: r, ...
|
|
217
|
+
if (!w) return null;
|
|
218
|
+
let { disabled: _, value: O, onSelect: T, forceMount: ue, keywords: U, ...M } = e;
|
|
219
|
+
return l.createElement(A.div, { ref: V(i, n), ...M, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!_, "aria-selected": !!S, "data-disabled": !!_, "data-selected": !!S, onPointerMove: _ || f.getDisablePointerSelection() ? void 0 : H, onClick: _ ? void 0 : I }, e.children);
|
|
220
|
+
}), Ue = l.forwardRef((e, n) => {
|
|
221
|
+
let { heading: r, children: s, forceMount: o, ...i } = e, c = j(), f = l.useRef(null), b = l.useRef(null), u = j(), v = z(), g = R((w) => o || v.filter() === !1 ? !0 : w.search ? w.filtered.groups.has(c) : !0);
|
|
222
|
+
$(() => v.group(c), []), Ce(c, f, [e.value, e.heading, b]);
|
|
223
|
+
let S = l.useMemo(() => ({ id: c, forceMount: o }), [o]);
|
|
224
|
+
return l.createElement(A.div, { ref: V(f, n), ...i, "cmdk-group": "", role: "presentation", hidden: g ? void 0 : !0 }, r && l.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, r), G(e, (w) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? u : void 0 }, l.createElement(we.Provider, { value: S }, w))));
|
|
225
|
+
}), We = l.forwardRef((e, n) => {
|
|
226
|
+
let { alwaysRender: r, ...s } = e, o = l.useRef(null), i = R((c) => !c.search);
|
|
227
|
+
return !r && !i ? null : l.createElement(A.div, { ref: V(o, n), ...s, "cmdk-separator": "", role: "separator" });
|
|
228
|
+
}), Je = l.forwardRef((e, n) => {
|
|
229
|
+
let { onValueChange: r, ...s } = e, o = e.value != null, i = oe(), c = R((u) => u.search), f = R((u) => u.selectedItemId), b = z();
|
|
306
230
|
return l.useEffect(() => {
|
|
307
|
-
e.value != null &&
|
|
308
|
-
}, [e.value]), l.createElement(A.input, { ref:
|
|
309
|
-
|
|
231
|
+
e.value != null && i.setState("search", e.value);
|
|
232
|
+
}, [e.value]), l.createElement(A.input, { ref: n, ...s, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": f, id: b.inputId, type: "text", value: o ? e.value : c, onChange: (u) => {
|
|
233
|
+
o || i.setState("search", u.target.value), r?.(u.target.value);
|
|
310
234
|
} });
|
|
311
|
-
}),
|
|
312
|
-
let { children: r, label:
|
|
235
|
+
}), Xe = l.forwardRef((e, n) => {
|
|
236
|
+
let { children: r, label: s = "Suggestions", ...o } = e, i = l.useRef(null), c = l.useRef(null), f = R((u) => u.selectedItemId), b = z();
|
|
313
237
|
return l.useEffect(() => {
|
|
314
|
-
if (
|
|
315
|
-
let
|
|
316
|
-
|
|
317
|
-
let
|
|
318
|
-
v.style.setProperty("--cmdk-list-height",
|
|
238
|
+
if (c.current && i.current) {
|
|
239
|
+
let u = c.current, v = i.current, g, S = new ResizeObserver(() => {
|
|
240
|
+
g = requestAnimationFrame(() => {
|
|
241
|
+
let w = u.offsetHeight;
|
|
242
|
+
v.style.setProperty("--cmdk-list-height", w.toFixed(1) + "px");
|
|
319
243
|
});
|
|
320
244
|
});
|
|
321
|
-
return S.observe(
|
|
322
|
-
cancelAnimationFrame(
|
|
245
|
+
return S.observe(u), () => {
|
|
246
|
+
cancelAnimationFrame(g), S.unobserve(u);
|
|
323
247
|
};
|
|
324
248
|
}
|
|
325
|
-
}, []), l.createElement(A.div, { ref:
|
|
326
|
-
}),
|
|
327
|
-
let { open: r, onOpenChange:
|
|
328
|
-
return l.createElement(
|
|
329
|
-
}),
|
|
330
|
-
let { progress: r, children:
|
|
331
|
-
return l.createElement(A.div, { ref:
|
|
332
|
-
}),
|
|
333
|
-
function
|
|
249
|
+
}, []), l.createElement(A.div, { ref: V(i, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": f, "aria-label": s, id: b.listId }, G(e, (u) => l.createElement("div", { ref: V(c, b.listInnerRef), "cmdk-list-sizer": "" }, u)));
|
|
250
|
+
}), Ye = l.forwardRef((e, n) => {
|
|
251
|
+
let { open: r, onOpenChange: s, overlayClassName: o, contentClassName: i, container: c, ...f } = e;
|
|
252
|
+
return l.createElement(Se, { open: r, onOpenChange: s }, l.createElement(Ie, { container: c }, l.createElement(Re, { "cmdk-overlay": "", className: o }), l.createElement(Ae, { "aria-label": e.label, "cmdk-dialog": "", className: i }, l.createElement(ye, { ref: n, ...f }))));
|
|
253
|
+
}), Qe = l.forwardRef((e, n) => R((r) => r.filtered.count === 0) ? l.createElement(A.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), Ze = l.forwardRef((e, n) => {
|
|
254
|
+
let { progress: r, children: s, label: o = "Loading...", ...i } = e;
|
|
255
|
+
return l.createElement(A.div, { ref: n, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, G(e, (c) => l.createElement("div", { "aria-hidden": !0 }, c)));
|
|
256
|
+
}), N = Object.assign(ye, { List: Xe, Item: Te, Input: Je, Group: Ue, Separator: We, Dialog: Ye, Empty: Qe, Loading: Ze });
|
|
257
|
+
function et(e, n) {
|
|
334
258
|
let r = e.nextElementSibling;
|
|
335
259
|
for (; r; ) {
|
|
336
|
-
if (r.matches(
|
|
260
|
+
if (r.matches(n)) return r;
|
|
337
261
|
r = r.nextElementSibling;
|
|
338
262
|
}
|
|
339
263
|
}
|
|
340
|
-
function
|
|
264
|
+
function tt(e, n) {
|
|
341
265
|
let r = e.previousElementSibling;
|
|
342
266
|
for (; r; ) {
|
|
343
|
-
if (r.matches(
|
|
267
|
+
if (r.matches(n)) return r;
|
|
344
268
|
r = r.previousElementSibling;
|
|
345
269
|
}
|
|
346
270
|
}
|
|
347
|
-
function
|
|
348
|
-
let
|
|
349
|
-
return
|
|
350
|
-
|
|
351
|
-
}),
|
|
271
|
+
function Ee(e) {
|
|
272
|
+
let n = l.useRef(e);
|
|
273
|
+
return $(() => {
|
|
274
|
+
n.current = e;
|
|
275
|
+
}), n;
|
|
352
276
|
}
|
|
353
|
-
var
|
|
354
|
-
function
|
|
355
|
-
let
|
|
356
|
-
return
|
|
277
|
+
var $ = typeof window > "u" ? l.useEffect : l.useLayoutEffect;
|
|
278
|
+
function K(e) {
|
|
279
|
+
let n = l.useRef();
|
|
280
|
+
return n.current === void 0 && (n.current = e()), n;
|
|
357
281
|
}
|
|
358
282
|
function R(e) {
|
|
359
|
-
let
|
|
360
|
-
return l.useSyncExternalStore(
|
|
283
|
+
let n = oe(), r = () => e(n.snapshot());
|
|
284
|
+
return l.useSyncExternalStore(n.subscribe, r, r);
|
|
361
285
|
}
|
|
362
|
-
function
|
|
363
|
-
let
|
|
364
|
-
return
|
|
365
|
-
var
|
|
366
|
-
let
|
|
367
|
-
var
|
|
286
|
+
function Ce(e, n, r, s = []) {
|
|
287
|
+
let o = l.useRef(), i = z();
|
|
288
|
+
return $(() => {
|
|
289
|
+
var c;
|
|
290
|
+
let f = (() => {
|
|
291
|
+
var u;
|
|
368
292
|
for (let v of r) {
|
|
369
293
|
if (typeof v == "string") return v.trim();
|
|
370
|
-
if (typeof v == "object" && "current" in v) return v.current ? (
|
|
294
|
+
if (typeof v == "object" && "current" in v) return v.current ? (u = v.current.textContent) == null ? void 0 : u.trim() : o.current;
|
|
371
295
|
}
|
|
372
|
-
})(),
|
|
373
|
-
|
|
374
|
-
}),
|
|
296
|
+
})(), b = s.map((u) => u.trim());
|
|
297
|
+
i.value(e, f, b), (c = n.current) == null || c.setAttribute(F, f), o.current = f;
|
|
298
|
+
}), o;
|
|
375
299
|
}
|
|
376
|
-
var
|
|
377
|
-
let [e,
|
|
378
|
-
return
|
|
379
|
-
r.current.forEach((
|
|
380
|
-
}, [e]), (
|
|
381
|
-
r.current.set(
|
|
300
|
+
var rt = () => {
|
|
301
|
+
let [e, n] = l.useState(), r = K(() => /* @__PURE__ */ new Map());
|
|
302
|
+
return $(() => {
|
|
303
|
+
r.current.forEach((s) => s()), r.current = /* @__PURE__ */ new Map();
|
|
304
|
+
}, [e]), (s, o) => {
|
|
305
|
+
r.current.set(s, o), n({});
|
|
382
306
|
};
|
|
383
307
|
};
|
|
384
|
-
function
|
|
385
|
-
let
|
|
386
|
-
return typeof
|
|
308
|
+
function nt(e) {
|
|
309
|
+
let n = e.type;
|
|
310
|
+
return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
|
|
387
311
|
}
|
|
388
|
-
function
|
|
389
|
-
return e && l.isValidElement(
|
|
312
|
+
function G({ asChild: e, children: n }, r) {
|
|
313
|
+
return e && l.isValidElement(n) ? l.cloneElement(nt(n), { ref: n.ref }, r(n.props.children)) : r(n);
|
|
390
314
|
}
|
|
391
|
-
var
|
|
392
|
-
function
|
|
315
|
+
var lt = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
316
|
+
function at({
|
|
393
317
|
className: e,
|
|
394
|
-
...
|
|
318
|
+
...n
|
|
395
319
|
}) {
|
|
396
|
-
return /* @__PURE__ */
|
|
397
|
-
|
|
320
|
+
return /* @__PURE__ */ C(
|
|
321
|
+
N,
|
|
398
322
|
{
|
|
399
|
-
className:
|
|
323
|
+
className: D(
|
|
400
324
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
401
325
|
e
|
|
402
326
|
),
|
|
403
327
|
"data-slot": "command",
|
|
404
|
-
...
|
|
328
|
+
...n
|
|
405
329
|
}
|
|
406
330
|
);
|
|
407
331
|
}
|
|
408
|
-
function
|
|
332
|
+
function pt({
|
|
409
333
|
title: e = "Command Palette",
|
|
410
|
-
description:
|
|
334
|
+
description: n = "Search for a command to run...",
|
|
411
335
|
children: r,
|
|
412
|
-
className:
|
|
413
|
-
showCloseButton:
|
|
414
|
-
...
|
|
336
|
+
className: s,
|
|
337
|
+
showCloseButton: o = !0,
|
|
338
|
+
...i
|
|
415
339
|
}) {
|
|
416
|
-
return /* @__PURE__ */
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
/* @__PURE__ */
|
|
419
|
-
/* @__PURE__ */
|
|
340
|
+
return /* @__PURE__ */ ne(_e, { ...i, children: [
|
|
341
|
+
/* @__PURE__ */ ne(Me, { className: "sr-only", children: [
|
|
342
|
+
/* @__PURE__ */ C($e, { children: e }),
|
|
343
|
+
/* @__PURE__ */ C(Ne, { children: n })
|
|
420
344
|
] }),
|
|
421
|
-
/* @__PURE__ */
|
|
422
|
-
|
|
345
|
+
/* @__PURE__ */ C(
|
|
346
|
+
Pe,
|
|
423
347
|
{
|
|
424
|
-
className:
|
|
425
|
-
showCloseButton:
|
|
426
|
-
children: /* @__PURE__ */
|
|
348
|
+
className: D("overflow-hidden p-0", s),
|
|
349
|
+
showCloseButton: o,
|
|
350
|
+
children: /* @__PURE__ */ C(at, { className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[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", children: r })
|
|
427
351
|
}
|
|
428
352
|
)
|
|
429
353
|
] });
|
|
430
354
|
}
|
|
431
|
-
function
|
|
355
|
+
function vt({
|
|
432
356
|
className: e,
|
|
433
|
-
...
|
|
357
|
+
...n
|
|
434
358
|
}) {
|
|
435
|
-
return /* @__PURE__ */
|
|
359
|
+
return /* @__PURE__ */ ne(
|
|
436
360
|
"div",
|
|
437
361
|
{
|
|
438
362
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
439
363
|
"data-slot": "command-input-wrapper",
|
|
440
364
|
children: [
|
|
441
|
-
/* @__PURE__ */
|
|
442
|
-
/* @__PURE__ */
|
|
443
|
-
|
|
365
|
+
/* @__PURE__ */ C(De, { className: "size-4 shrink-0 opacity-50" }),
|
|
366
|
+
/* @__PURE__ */ C(
|
|
367
|
+
N.Input,
|
|
444
368
|
{
|
|
445
|
-
className:
|
|
369
|
+
className: D(
|
|
446
370
|
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
447
371
|
e
|
|
448
372
|
),
|
|
449
373
|
"data-slot": "command-input",
|
|
450
|
-
...
|
|
374
|
+
...n
|
|
451
375
|
}
|
|
452
376
|
)
|
|
453
377
|
]
|
|
454
378
|
}
|
|
455
379
|
);
|
|
456
380
|
}
|
|
457
|
-
function
|
|
381
|
+
function gt({
|
|
458
382
|
className: e,
|
|
459
|
-
...
|
|
383
|
+
...n
|
|
460
384
|
}) {
|
|
461
|
-
return /* @__PURE__ */
|
|
462
|
-
|
|
385
|
+
return /* @__PURE__ */ C(
|
|
386
|
+
N.List,
|
|
463
387
|
{
|
|
464
|
-
className:
|
|
388
|
+
className: D(
|
|
465
389
|
"max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",
|
|
466
390
|
e
|
|
467
391
|
),
|
|
468
392
|
"data-slot": "command-list",
|
|
469
|
-
...
|
|
393
|
+
...n
|
|
470
394
|
}
|
|
471
395
|
);
|
|
472
396
|
}
|
|
473
|
-
function
|
|
397
|
+
function ht({
|
|
474
398
|
...e
|
|
475
399
|
}) {
|
|
476
|
-
return /* @__PURE__ */
|
|
477
|
-
|
|
400
|
+
return /* @__PURE__ */ C(
|
|
401
|
+
N.Empty,
|
|
478
402
|
{
|
|
479
403
|
className: "py-6 text-center text-sm",
|
|
480
404
|
"data-slot": "command-empty",
|
|
@@ -482,75 +406,75 @@ function _t({
|
|
|
482
406
|
}
|
|
483
407
|
);
|
|
484
408
|
}
|
|
485
|
-
function
|
|
409
|
+
function bt({
|
|
486
410
|
className: e,
|
|
487
|
-
...
|
|
411
|
+
...n
|
|
488
412
|
}) {
|
|
489
|
-
return /* @__PURE__ */
|
|
490
|
-
|
|
413
|
+
return /* @__PURE__ */ C(
|
|
414
|
+
N.Group,
|
|
491
415
|
{
|
|
492
|
-
className:
|
|
416
|
+
className: D(
|
|
493
417
|
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",
|
|
494
418
|
e
|
|
495
419
|
),
|
|
496
420
|
"data-slot": "command-group",
|
|
497
|
-
...
|
|
421
|
+
...n
|
|
498
422
|
}
|
|
499
423
|
);
|
|
500
424
|
}
|
|
501
|
-
function
|
|
425
|
+
function xt({
|
|
502
426
|
className: e,
|
|
503
|
-
...
|
|
427
|
+
...n
|
|
504
428
|
}) {
|
|
505
|
-
return /* @__PURE__ */
|
|
506
|
-
|
|
429
|
+
return /* @__PURE__ */ C(
|
|
430
|
+
N.Separator,
|
|
507
431
|
{
|
|
508
|
-
className:
|
|
432
|
+
className: D("-mx-1 h-px bg-border", e),
|
|
509
433
|
"data-slot": "command-separator",
|
|
510
|
-
...
|
|
434
|
+
...n
|
|
511
435
|
}
|
|
512
436
|
);
|
|
513
437
|
}
|
|
514
|
-
function
|
|
438
|
+
function kt({
|
|
515
439
|
className: e,
|
|
516
|
-
...
|
|
440
|
+
...n
|
|
517
441
|
}) {
|
|
518
|
-
return /* @__PURE__ */
|
|
519
|
-
|
|
442
|
+
return /* @__PURE__ */ C(
|
|
443
|
+
N.Item,
|
|
520
444
|
{
|
|
521
|
-
className:
|
|
445
|
+
className: D(
|
|
522
446
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
523
447
|
e
|
|
524
448
|
),
|
|
525
449
|
"data-slot": "command-item",
|
|
526
|
-
...
|
|
450
|
+
...n
|
|
527
451
|
}
|
|
528
452
|
);
|
|
529
453
|
}
|
|
530
|
-
function
|
|
454
|
+
function wt({
|
|
531
455
|
className: e,
|
|
532
|
-
...
|
|
456
|
+
...n
|
|
533
457
|
}) {
|
|
534
|
-
return /* @__PURE__ */
|
|
458
|
+
return /* @__PURE__ */ C(
|
|
535
459
|
"span",
|
|
536
460
|
{
|
|
537
|
-
className:
|
|
461
|
+
className: D(
|
|
538
462
|
"ml-auto text-muted-foreground text-xs tracking-widest",
|
|
539
463
|
e
|
|
540
464
|
),
|
|
541
465
|
"data-slot": "command-shortcut",
|
|
542
|
-
...
|
|
466
|
+
...n
|
|
543
467
|
}
|
|
544
468
|
);
|
|
545
469
|
}
|
|
546
470
|
export {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
471
|
+
at as Command,
|
|
472
|
+
pt as CommandDialog,
|
|
473
|
+
ht as CommandEmpty,
|
|
474
|
+
bt as CommandGroup,
|
|
475
|
+
vt as CommandInput,
|
|
476
|
+
kt as CommandItem,
|
|
477
|
+
gt as CommandList,
|
|
478
|
+
xt as CommandSeparator,
|
|
479
|
+
wt as CommandShortcut
|
|
556
480
|
};
|