@adamosuiteservices/ui 1.7.11 → 1.7.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/combobox.cjs +2 -2
- package/dist/combobox.js +256 -247
- package/dist/custom-layered-styles.css +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/combobox.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { j as p } from "./jsx-runtime-BzflLqGi.js";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import { useState as fe } from "react";
|
|
3
|
+
import { useRef as je, useState as fe } from "react";
|
|
4
4
|
import { c as M } from "./index-CRiPKpXj.js";
|
|
5
|
-
import { B as
|
|
6
|
-
import { R as
|
|
7
|
-
import { P } from "./index-BMWt1NBG.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { c as
|
|
10
|
-
import { c as
|
|
11
|
-
import { P as
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as
|
|
14
|
-
import { C as
|
|
5
|
+
import { B as Ce } from "./button-2GdKenQI.js";
|
|
6
|
+
import { R as Ie, P as Re, O as Ae, a as Ne } from "./index-DniCthJA.js";
|
|
7
|
+
import { P as F } from "./index-BMWt1NBG.js";
|
|
8
|
+
import { u as W } from "./index-Cv867SGx.js";
|
|
9
|
+
import { c as ee } from "./index-DLcqcWxM.js";
|
|
10
|
+
import { c as $e } from "./createLucideIcon-B_8CJpcQ.js";
|
|
11
|
+
import { P as Me, a as Le, b as De } from "./popover-3rIoNCXs.js";
|
|
12
|
+
import { C as Pe } from "./checkbox-Dr487kAg.js";
|
|
13
|
+
import { C as Fe } from "./check-Ci0GjV-B.js";
|
|
14
|
+
import { C as Oe } from "./chevron-down-CpVS2Z7w.js";
|
|
15
15
|
/**
|
|
16
16
|
* @license lucide-react v0.546.0 - ISC
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the ISC license.
|
|
19
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
21
|
+
const Ve = [
|
|
22
22
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
23
23
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
24
|
-
],
|
|
25
|
-
var pe = 1,
|
|
26
|
-
function ce(e, n, r, h, o,
|
|
27
|
-
if (
|
|
28
|
-
var s = `${o},${
|
|
24
|
+
], ze = $e("search", Ve);
|
|
25
|
+
var pe = 1, Ke = 0.9, Te = 0.8, qe = 0.17, ie = 0.1, de = 0.999, Be = 0.9999, We = 0.99, _e = /[\\\/_+.#"@\[\(\{&]/, Ge = /[\\\/_+.#"@\[\(\{&]/g, Ue = /[\s-]/, ge = /[\s-]/g;
|
|
26
|
+
function ce(e, n, r, h, o, c, m) {
|
|
27
|
+
if (c === n.length) return o === e.length ? pe : We;
|
|
28
|
+
var s = `${o},${c}`;
|
|
29
29
|
if (m[s] !== void 0) return m[s];
|
|
30
|
-
for (var
|
|
31
|
-
return m[s] =
|
|
30
|
+
for (var x = h.charAt(c), i = r.indexOf(x, o), g = 0, u, j, S, R; i >= 0; ) u = ce(e, n, r, h, i + 1, c + 1, m), u > g && (i === o ? u *= pe : _e.test(e.charAt(i - 1)) ? (u *= Te, S = e.slice(o, i - 1).match(Ge), S && o > 0 && (u *= Math.pow(de, S.length))) : Ue.test(e.charAt(i - 1)) ? (u *= Ke, R = e.slice(o, i - 1).match(ge), R && o > 0 && (u *= Math.pow(de, R.length))) : (u *= qe, o > 0 && (u *= Math.pow(de, i - o))), e.charAt(i) !== n.charAt(c) && (u *= Be)), (u < ie && r.charAt(i - 1) === h.charAt(c + 1) || h.charAt(c + 1) === h.charAt(c) && r.charAt(i - 1) !== h.charAt(c)) && (j = ce(e, n, r, h, i + 1, c + 2, m), j * ie > u && (u = j * ie)), u > g && (g = u), i = r.indexOf(x, i + 1);
|
|
31
|
+
return m[s] = g, g;
|
|
32
32
|
}
|
|
33
33
|
function he(e) {
|
|
34
34
|
return e.toLowerCase().replace(ge, " ");
|
|
@@ -36,247 +36,247 @@ function he(e) {
|
|
|
36
36
|
function He(e, n, r) {
|
|
37
37
|
return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, ce(e, n, he(e), he(n), 0, 0, {});
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
let r =
|
|
41
|
-
var t,
|
|
42
|
-
return { search: "", value: (
|
|
43
|
-
}), h =
|
|
39
|
+
var Z = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', Je = '[cmdk-group-heading=""]', xe = '[cmdk-item=""]', ve = `${xe}:not([aria-disabled="true"])`, se = "cmdk-item-select", q = "data-value", Xe = (e, n, r) => He(e, n, r), be = a.createContext(void 0), te = () => a.useContext(be), ye = a.createContext(void 0), me = () => a.useContext(ye), ke = a.createContext(void 0), we = a.forwardRef((e, n) => {
|
|
40
|
+
let r = B(() => {
|
|
41
|
+
var t, d;
|
|
42
|
+
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() } };
|
|
43
|
+
}), h = B(() => /* @__PURE__ */ new Set()), o = B(() => /* @__PURE__ */ new Map()), c = B(() => /* @__PURE__ */ new Map()), m = B(() => /* @__PURE__ */ new Set()), s = Se(e), { label: x, children: i, value: g, onValueChange: u, filter: j, shouldFilter: S, loop: R, disablePointerSelection: G = !1, vimBindings: L = !0, ...y } = e, re = W(), A = W(), K = W(), N = a.useRef(null), k = it();
|
|
44
44
|
z(() => {
|
|
45
|
-
if (
|
|
46
|
-
let t =
|
|
47
|
-
r.current.value = t,
|
|
45
|
+
if (g !== void 0) {
|
|
46
|
+
let t = g.trim();
|
|
47
|
+
r.current.value = t, E.emit();
|
|
48
48
|
}
|
|
49
|
-
}, [
|
|
50
|
-
k(6,
|
|
49
|
+
}, [g]), z(() => {
|
|
50
|
+
k(6, X);
|
|
51
51
|
}, []);
|
|
52
|
-
let
|
|
53
|
-
var l,
|
|
54
|
-
if (!Object.is(r.current[t],
|
|
55
|
-
if (r.current[t] =
|
|
52
|
+
let E = a.useMemo(() => ({ subscribe: (t) => (m.current.add(t), () => m.current.delete(t)), snapshot: () => r.current, setState: (t, d, v) => {
|
|
53
|
+
var l, b, w, I;
|
|
54
|
+
if (!Object.is(r.current[t], d)) {
|
|
55
|
+
if (r.current[t] = d, t === "search") J(), T(), k(1, O);
|
|
56
56
|
else if (t === "value") {
|
|
57
57
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
58
|
-
let C = document.getElementById(
|
|
59
|
-
C ? C.focus() : (l = document.getElementById(
|
|
58
|
+
let C = document.getElementById(K);
|
|
59
|
+
C ? C.focus() : (l = document.getElementById(re)) == null || l.focus();
|
|
60
60
|
}
|
|
61
61
|
if (k(7, () => {
|
|
62
62
|
var C;
|
|
63
|
-
r.current.selectedItemId = (C =
|
|
64
|
-
}), v || k(5,
|
|
65
|
-
let C =
|
|
66
|
-
(
|
|
63
|
+
r.current.selectedItemId = (C = D()) == null ? void 0 : C.id, E.emit();
|
|
64
|
+
}), v || k(5, X), ((b = s.current) == null ? void 0 : b.value) !== void 0) {
|
|
65
|
+
let C = d ?? "";
|
|
66
|
+
(I = (w = s.current).onValueChange) == null || I.call(w, C);
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
E.emit();
|
|
71
71
|
}
|
|
72
72
|
}, emit: () => {
|
|
73
73
|
m.current.forEach((t) => t());
|
|
74
|
-
} }), []),
|
|
74
|
+
} }), []), U = a.useMemo(() => ({ value: (t, d, v) => {
|
|
75
75
|
var l;
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
d !== ((l = c.current.get(t)) == null ? void 0 : l.value) && (c.current.set(t, { value: d, keywords: v }), r.current.filtered.items.set(t, H(d, v)), k(2, () => {
|
|
77
|
+
T(), E.emit();
|
|
78
78
|
}));
|
|
79
|
-
}, item: (t,
|
|
80
|
-
|
|
79
|
+
}, item: (t, d) => (h.current.add(t), d && (o.current.has(d) ? o.current.get(d).add(t) : o.current.set(d, /* @__PURE__ */ new Set([t]))), k(3, () => {
|
|
80
|
+
J(), T(), r.current.value || O(), E.emit();
|
|
81
81
|
}), () => {
|
|
82
|
-
|
|
83
|
-
let v =
|
|
82
|
+
c.current.delete(t), h.current.delete(t), r.current.filtered.items.delete(t);
|
|
83
|
+
let v = D();
|
|
84
84
|
k(4, () => {
|
|
85
|
-
|
|
85
|
+
J(), v?.getAttribute("id") === t && O(), E.emit();
|
|
86
86
|
});
|
|
87
87
|
}), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
|
|
88
|
-
|
|
89
|
-
}), filter: () => s.current.shouldFilter, label:
|
|
90
|
-
function
|
|
88
|
+
c.current.delete(t), o.current.delete(t);
|
|
89
|
+
}), filter: () => s.current.shouldFilter, label: x || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: re, inputId: K, labelId: A, listInnerRef: N }), []);
|
|
90
|
+
function H(t, d) {
|
|
91
91
|
var v, l;
|
|
92
|
-
let
|
|
93
|
-
return t ?
|
|
92
|
+
let b = (l = (v = s.current) == null ? void 0 : v.filter) != null ? l : Xe;
|
|
93
|
+
return t ? b(t, r.current.search, d) : 0;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function T() {
|
|
96
96
|
if (!r.current.search || s.current.shouldFilter === !1) return;
|
|
97
|
-
let t = r.current.filtered.items,
|
|
97
|
+
let t = r.current.filtered.items, d = [];
|
|
98
98
|
r.current.filtered.groups.forEach((l) => {
|
|
99
|
-
let
|
|
100
|
-
|
|
101
|
-
let C = t.get(
|
|
99
|
+
let b = o.current.get(l), w = 0;
|
|
100
|
+
b.forEach((I) => {
|
|
101
|
+
let C = t.get(I);
|
|
102
102
|
w = Math.max(C, w);
|
|
103
|
-
}),
|
|
103
|
+
}), d.push([l, w]);
|
|
104
104
|
});
|
|
105
|
-
let v =
|
|
106
|
-
V().sort((l,
|
|
107
|
-
var w,
|
|
108
|
-
let C = l.getAttribute("id"), le =
|
|
109
|
-
return ((w = t.get(le)) != null ? w : 0) - ((
|
|
105
|
+
let v = N.current;
|
|
106
|
+
V().sort((l, b) => {
|
|
107
|
+
var w, I;
|
|
108
|
+
let C = l.getAttribute("id"), le = b.getAttribute("id");
|
|
109
|
+
return ((w = t.get(le)) != null ? w : 0) - ((I = t.get(C)) != null ? I : 0);
|
|
110
110
|
}).forEach((l) => {
|
|
111
|
-
let
|
|
112
|
-
|
|
113
|
-
}),
|
|
114
|
-
var
|
|
115
|
-
let w = (
|
|
111
|
+
let b = l.closest(ue);
|
|
112
|
+
b ? b.appendChild(l.parentElement === b ? l : l.closest(`${ue} > *`)) : v.appendChild(l.parentElement === v ? l : l.closest(`${ue} > *`));
|
|
113
|
+
}), d.sort((l, b) => b[1] - l[1]).forEach((l) => {
|
|
114
|
+
var b;
|
|
115
|
+
let w = (b = N.current) == null ? void 0 : b.querySelector(`${Z}[${q}="${encodeURIComponent(l[0])}"]`);
|
|
116
116
|
w?.parentElement.appendChild(w);
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
let t = V().find((v) => v.getAttribute("aria-disabled") !== "true"),
|
|
121
|
-
|
|
119
|
+
function O() {
|
|
120
|
+
let t = V().find((v) => v.getAttribute("aria-disabled") !== "true"), d = t?.getAttribute(q);
|
|
121
|
+
E.setState("value", d || void 0);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
var t,
|
|
123
|
+
function J() {
|
|
124
|
+
var t, d, v, l;
|
|
125
125
|
if (!r.current.search || s.current.shouldFilter === !1) {
|
|
126
126
|
r.current.filtered.count = h.current.size;
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
r.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
130
|
-
let
|
|
130
|
+
let b = 0;
|
|
131
131
|
for (let w of h.current) {
|
|
132
|
-
let
|
|
133
|
-
r.current.filtered.items.set(w, le), le > 0 &&
|
|
132
|
+
let I = (d = (t = c.current.get(w)) == null ? void 0 : t.value) != null ? d : "", C = (l = (v = c.current.get(w)) == null ? void 0 : v.keywords) != null ? l : [], le = H(I, C);
|
|
133
|
+
r.current.filtered.items.set(w, le), le > 0 && b++;
|
|
134
134
|
}
|
|
135
|
-
for (let [w,
|
|
135
|
+
for (let [w, I] of o.current) for (let C of I) if (r.current.filtered.items.get(C) > 0) {
|
|
136
136
|
r.current.filtered.groups.add(w);
|
|
137
137
|
break;
|
|
138
138
|
}
|
|
139
|
-
r.current.filtered.count =
|
|
139
|
+
r.current.filtered.count = b;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
var t,
|
|
143
|
-
let l =
|
|
144
|
-
l && (((t = l.parentElement) == null ? void 0 : t.firstChild) === l && ((v = (
|
|
141
|
+
function X() {
|
|
142
|
+
var t, d, v;
|
|
143
|
+
let l = D();
|
|
144
|
+
l && (((t = l.parentElement) == null ? void 0 : t.firstChild) === l && ((v = (d = l.closest(Z)) == null ? void 0 : d.querySelector(Je)) == null || v.scrollIntoView({ block: "nearest" })), l.scrollIntoView({ block: "nearest" }));
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function D() {
|
|
147
147
|
var t;
|
|
148
|
-
return (t =
|
|
148
|
+
return (t = N.current) == null ? void 0 : t.querySelector(`${xe}[aria-selected="true"]`);
|
|
149
149
|
}
|
|
150
150
|
function V() {
|
|
151
151
|
var t;
|
|
152
|
-
return Array.from(((t =
|
|
152
|
+
return Array.from(((t = N.current) == null ? void 0 : t.querySelectorAll(ve)) || []);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
let
|
|
156
|
-
|
|
154
|
+
function Y(t) {
|
|
155
|
+
let d = V()[t];
|
|
156
|
+
d && E.setState("value", d.getAttribute(q));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
var
|
|
160
|
-
let v =
|
|
161
|
-
(
|
|
158
|
+
function Q(t) {
|
|
159
|
+
var d;
|
|
160
|
+
let v = D(), l = V(), b = l.findIndex((I) => I === v), w = l[b + t];
|
|
161
|
+
(d = s.current) != null && d.loop && (w = b + t < 0 ? l[l.length - 1] : b + t === l.length ? l[0] : l[b + t]), w && E.setState("value", w.getAttribute(q));
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
let
|
|
165
|
-
for (; v && !l; ) v = t > 0 ?
|
|
166
|
-
l ?
|
|
163
|
+
function ne(t) {
|
|
164
|
+
let d = D(), v = d?.closest(Z), l;
|
|
165
|
+
for (; v && !l; ) v = t > 0 ? lt(v, Z) : ot(v, Z), l = v?.querySelector(ve);
|
|
166
|
+
l ? E.setState("value", l.getAttribute(q)) : Q(t);
|
|
167
167
|
}
|
|
168
|
-
let
|
|
169
|
-
t.preventDefault(), t.metaKey ?
|
|
170
|
-
},
|
|
171
|
-
t.preventDefault(), t.metaKey ?
|
|
168
|
+
let ae = () => Y(V().length - 1), f = (t) => {
|
|
169
|
+
t.preventDefault(), t.metaKey ? ae() : t.altKey ? ne(1) : Q(1);
|
|
170
|
+
}, $ = (t) => {
|
|
171
|
+
t.preventDefault(), t.metaKey ? Y(0) : t.altKey ? ne(-1) : Q(-1);
|
|
172
172
|
};
|
|
173
|
-
return a.createElement(
|
|
174
|
-
var
|
|
175
|
-
(
|
|
173
|
+
return a.createElement(F.div, { ref: n, tabIndex: -1, ...y, "cmdk-root": "", onKeyDown: (t) => {
|
|
174
|
+
var d;
|
|
175
|
+
(d = y.onKeyDown) == null || d.call(y, t);
|
|
176
176
|
let v = t.nativeEvent.isComposing || t.keyCode === 229;
|
|
177
177
|
if (!(t.defaultPrevented || v)) switch (t.key) {
|
|
178
178
|
case "n":
|
|
179
179
|
case "j": {
|
|
180
|
-
|
|
180
|
+
L && t.ctrlKey && f(t);
|
|
181
181
|
break;
|
|
182
182
|
}
|
|
183
183
|
case "ArrowDown": {
|
|
184
|
-
|
|
184
|
+
f(t);
|
|
185
185
|
break;
|
|
186
186
|
}
|
|
187
187
|
case "p":
|
|
188
188
|
case "k": {
|
|
189
|
-
|
|
189
|
+
L && t.ctrlKey && $(t);
|
|
190
190
|
break;
|
|
191
191
|
}
|
|
192
192
|
case "ArrowUp": {
|
|
193
|
-
|
|
193
|
+
$(t);
|
|
194
194
|
break;
|
|
195
195
|
}
|
|
196
196
|
case "Home": {
|
|
197
|
-
t.preventDefault(),
|
|
197
|
+
t.preventDefault(), Y(0);
|
|
198
198
|
break;
|
|
199
199
|
}
|
|
200
200
|
case "End": {
|
|
201
|
-
t.preventDefault(),
|
|
201
|
+
t.preventDefault(), ae();
|
|
202
202
|
break;
|
|
203
203
|
}
|
|
204
204
|
case "Enter": {
|
|
205
205
|
t.preventDefault();
|
|
206
|
-
let l =
|
|
206
|
+
let l = D();
|
|
207
207
|
if (l) {
|
|
208
|
-
let
|
|
209
|
-
l.dispatchEvent(
|
|
208
|
+
let b = new Event(se);
|
|
209
|
+
l.dispatchEvent(b);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
} }, a.createElement("label", { "cmdk-label": "", htmlFor:
|
|
214
|
-
}),
|
|
213
|
+
} }, a.createElement("label", { "cmdk-label": "", htmlFor: U.inputId, id: U.labelId, style: ut }, x), oe(e, (t) => a.createElement(ye.Provider, { value: E }, a.createElement(be.Provider, { value: U }, t))));
|
|
214
|
+
}), Ye = a.forwardRef((e, n) => {
|
|
215
215
|
var r, h;
|
|
216
|
-
let o =
|
|
216
|
+
let o = W(), c = a.useRef(null), m = a.useContext(ke), s = te(), x = Se(e), i = (h = (r = x.current) == null ? void 0 : r.forceMount) != null ? h : m?.forceMount;
|
|
217
217
|
z(() => {
|
|
218
218
|
if (!i) return s.item(o, m?.id);
|
|
219
219
|
}, [i]);
|
|
220
|
-
let
|
|
220
|
+
let g = Ee(o, c, [e.value, e.children, c], e.keywords), u = me(), j = P((k) => k.value && k.value === g.current), S = P((k) => i || s.filter() === !1 ? !0 : k.search ? k.filtered.items.get(o) > 0 : !0);
|
|
221
221
|
a.useEffect(() => {
|
|
222
|
-
let k =
|
|
223
|
-
if (!(!k || e.disabled)) return k.addEventListener(se,
|
|
224
|
-
}, [
|
|
225
|
-
function
|
|
226
|
-
var k,
|
|
227
|
-
|
|
222
|
+
let k = c.current;
|
|
223
|
+
if (!(!k || e.disabled)) return k.addEventListener(se, R), () => k.removeEventListener(se, R);
|
|
224
|
+
}, [S, e.onSelect, e.disabled]);
|
|
225
|
+
function R() {
|
|
226
|
+
var k, E;
|
|
227
|
+
G(), (E = (k = x.current).onSelect) == null || E.call(k, g.current);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
|
|
229
|
+
function G() {
|
|
230
|
+
u.setState("value", g.current, !0);
|
|
231
231
|
}
|
|
232
|
-
if (!
|
|
233
|
-
let { disabled:
|
|
234
|
-
return a.createElement(
|
|
235
|
-
}), Ye = a.forwardRef((e, n) => {
|
|
236
|
-
let { heading: r, children: h, forceMount: o, ...u } = e, m = G(), s = a.useRef(null), b = a.useRef(null), i = G(), x = re(), d = D((E) => o || x.filter() === !1 ? !0 : E.search ? E.filtered.groups.has(m) : !0);
|
|
237
|
-
z(() => x.group(m), []), Ee(m, s, [e.value, e.heading, b]);
|
|
238
|
-
let S = a.useMemo(() => ({ id: m, forceMount: o }), [o]);
|
|
239
|
-
return a.createElement(P.div, { ref: te(s, n), ...u, "cmdk-group": "", role: "presentation", hidden: d ? void 0 : !0 }, r && a.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: i }, r), oe(e, (E) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? i : void 0 }, a.createElement(ke.Provider, { value: S }, E))));
|
|
232
|
+
if (!S) return null;
|
|
233
|
+
let { disabled: L, value: y, onSelect: re, forceMount: A, keywords: K, ...N } = e;
|
|
234
|
+
return a.createElement(F.div, { ref: ee(c, n), ...N, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!L, "aria-selected": !!j, "data-disabled": !!L, "data-selected": !!j, onPointerMove: L || s.getDisablePointerSelection() ? void 0 : G, onClick: L ? void 0 : R }, e.children);
|
|
240
235
|
}), Qe = a.forwardRef((e, n) => {
|
|
241
|
-
let {
|
|
242
|
-
|
|
236
|
+
let { heading: r, children: h, forceMount: o, ...c } = e, m = W(), s = a.useRef(null), x = a.useRef(null), i = W(), g = te(), u = P((S) => o || g.filter() === !1 ? !0 : S.search ? S.filtered.groups.has(m) : !0);
|
|
237
|
+
z(() => g.group(m), []), Ee(m, s, [e.value, e.heading, x]);
|
|
238
|
+
let j = a.useMemo(() => ({ id: m, forceMount: o }), [o]);
|
|
239
|
+
return a.createElement(F.div, { ref: ee(s, n), ...c, "cmdk-group": "", role: "presentation", hidden: u ? void 0 : !0 }, r && a.createElement("div", { ref: x, "cmdk-group-heading": "", "aria-hidden": !0, id: i }, r), oe(e, (S) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? i : void 0 }, a.createElement(ke.Provider, { value: j }, S))));
|
|
243
240
|
}), Ze = a.forwardRef((e, n) => {
|
|
244
|
-
let {
|
|
241
|
+
let { alwaysRender: r, ...h } = e, o = a.useRef(null), c = P((m) => !m.search);
|
|
242
|
+
return !r && !c ? null : a.createElement(F.div, { ref: ee(o, n), ...h, "cmdk-separator": "", role: "separator" });
|
|
243
|
+
}), et = a.forwardRef((e, n) => {
|
|
244
|
+
let { onValueChange: r, ...h } = e, o = e.value != null, c = me(), m = P((i) => i.search), s = P((i) => i.selectedItemId), x = te();
|
|
245
245
|
return a.useEffect(() => {
|
|
246
|
-
e.value != null &&
|
|
247
|
-
}, [e.value]), a.createElement(
|
|
248
|
-
o ||
|
|
246
|
+
e.value != null && c.setState("search", e.value);
|
|
247
|
+
}, [e.value]), a.createElement(F.input, { ref: n, ...h, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": x.listId, "aria-labelledby": x.labelId, "aria-activedescendant": s, id: x.inputId, type: "text", value: o ? e.value : m, onChange: (i) => {
|
|
248
|
+
o || c.setState("search", i.target.value), r?.(i.target.value);
|
|
249
249
|
} });
|
|
250
|
-
}),
|
|
251
|
-
let { children: r, label: h = "Suggestions", ...o } = e,
|
|
250
|
+
}), tt = a.forwardRef((e, n) => {
|
|
251
|
+
let { children: r, label: h = "Suggestions", ...o } = e, c = a.useRef(null), m = a.useRef(null), s = P((i) => i.selectedItemId), x = te();
|
|
252
252
|
return a.useEffect(() => {
|
|
253
|
-
if (m.current &&
|
|
254
|
-
let i = m.current,
|
|
255
|
-
|
|
256
|
-
let
|
|
257
|
-
|
|
253
|
+
if (m.current && c.current) {
|
|
254
|
+
let i = m.current, g = c.current, u, j = new ResizeObserver(() => {
|
|
255
|
+
u = requestAnimationFrame(() => {
|
|
256
|
+
let S = i.offsetHeight;
|
|
257
|
+
g.style.setProperty("--cmdk-list-height", S.toFixed(1) + "px");
|
|
258
258
|
});
|
|
259
259
|
});
|
|
260
|
-
return
|
|
261
|
-
cancelAnimationFrame(
|
|
260
|
+
return j.observe(i), () => {
|
|
261
|
+
cancelAnimationFrame(u), j.unobserve(i);
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
|
-
}, []), a.createElement(
|
|
265
|
-
}),
|
|
266
|
-
let { open: r, onOpenChange: h, overlayClassName: o, contentClassName:
|
|
267
|
-
return a.createElement(
|
|
268
|
-
}),
|
|
269
|
-
let { progress: r, children: h, label: o = "Loading...", ...
|
|
270
|
-
return a.createElement(
|
|
271
|
-
}),
|
|
272
|
-
function
|
|
264
|
+
}, []), a.createElement(F.div, { ref: ee(c, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": s, "aria-label": h, id: x.listId }, oe(e, (i) => a.createElement("div", { ref: ee(m, x.listInnerRef), "cmdk-list-sizer": "" }, i)));
|
|
265
|
+
}), rt = a.forwardRef((e, n) => {
|
|
266
|
+
let { open: r, onOpenChange: h, overlayClassName: o, contentClassName: c, container: m, ...s } = e;
|
|
267
|
+
return a.createElement(Ie, { open: r, onOpenChange: h }, a.createElement(Re, { container: m }, a.createElement(Ae, { "cmdk-overlay": "", className: o }), a.createElement(Ne, { "aria-label": e.label, "cmdk-dialog": "", className: c }, a.createElement(we, { ref: n, ...s }))));
|
|
268
|
+
}), nt = a.forwardRef((e, n) => P((r) => r.filtered.count === 0) ? a.createElement(F.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), at = a.forwardRef((e, n) => {
|
|
269
|
+
let { progress: r, children: h, label: o = "Loading...", ...c } = e;
|
|
270
|
+
return a.createElement(F.div, { ref: n, ...c, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, oe(e, (m) => a.createElement("div", { "aria-hidden": !0 }, m)));
|
|
271
|
+
}), _ = Object.assign(we, { List: tt, Item: Ye, Input: et, Group: Qe, Separator: Ze, Dialog: rt, Empty: nt, Loading: at });
|
|
272
|
+
function lt(e, n) {
|
|
273
273
|
let r = e.nextElementSibling;
|
|
274
274
|
for (; r; ) {
|
|
275
275
|
if (r.matches(n)) return r;
|
|
276
276
|
r = r.nextElementSibling;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function ot(e, n) {
|
|
280
280
|
let r = e.previousElementSibling;
|
|
281
281
|
for (; r; ) {
|
|
282
282
|
if (r.matches(n)) return r;
|
|
@@ -290,50 +290,50 @@ function Se(e) {
|
|
|
290
290
|
}), n;
|
|
291
291
|
}
|
|
292
292
|
var z = typeof window > "u" ? a.useEffect : a.useLayoutEffect;
|
|
293
|
-
function
|
|
293
|
+
function B(e) {
|
|
294
294
|
let n = a.useRef();
|
|
295
295
|
return n.current === void 0 && (n.current = e()), n;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function P(e) {
|
|
298
298
|
let n = me(), r = () => e(n.snapshot());
|
|
299
299
|
return a.useSyncExternalStore(n.subscribe, r, r);
|
|
300
300
|
}
|
|
301
301
|
function Ee(e, n, r, h = []) {
|
|
302
|
-
let o = a.useRef(),
|
|
302
|
+
let o = a.useRef(), c = te();
|
|
303
303
|
return z(() => {
|
|
304
304
|
var m;
|
|
305
305
|
let s = (() => {
|
|
306
306
|
var i;
|
|
307
|
-
for (let
|
|
308
|
-
if (typeof
|
|
309
|
-
if (typeof
|
|
307
|
+
for (let g of r) {
|
|
308
|
+
if (typeof g == "string") return g.trim();
|
|
309
|
+
if (typeof g == "object" && "current" in g) return g.current ? (i = g.current.textContent) == null ? void 0 : i.trim() : o.current;
|
|
310
310
|
}
|
|
311
|
-
})(),
|
|
312
|
-
|
|
311
|
+
})(), x = h.map((i) => i.trim());
|
|
312
|
+
c.value(e, s, x), (m = n.current) == null || m.setAttribute(q, s), o.current = s;
|
|
313
313
|
}), o;
|
|
314
314
|
}
|
|
315
|
-
var
|
|
316
|
-
let [e, n] = a.useState(), r =
|
|
315
|
+
var it = () => {
|
|
316
|
+
let [e, n] = a.useState(), r = B(() => /* @__PURE__ */ new Map());
|
|
317
317
|
return z(() => {
|
|
318
318
|
r.current.forEach((h) => h()), r.current = /* @__PURE__ */ new Map();
|
|
319
319
|
}, [e]), (h, o) => {
|
|
320
320
|
r.current.set(h, o), n({});
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
|
-
function
|
|
323
|
+
function dt(e) {
|
|
324
324
|
let n = e.type;
|
|
325
325
|
return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
|
|
326
326
|
}
|
|
327
327
|
function oe({ asChild: e, children: n }, r) {
|
|
328
|
-
return e && a.isValidElement(n) ? a.cloneElement(
|
|
328
|
+
return e && a.isValidElement(n) ? a.cloneElement(dt(n), { ref: n.ref }, r(n.props.children)) : r(n);
|
|
329
329
|
}
|
|
330
|
-
var
|
|
331
|
-
function
|
|
330
|
+
var ut = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
331
|
+
function ct({
|
|
332
332
|
className: e,
|
|
333
333
|
...n
|
|
334
334
|
}) {
|
|
335
335
|
return /* @__PURE__ */ p.jsx(
|
|
336
|
-
|
|
336
|
+
_,
|
|
337
337
|
{
|
|
338
338
|
"data-slot": "command",
|
|
339
339
|
className: M(
|
|
@@ -344,7 +344,7 @@ function ut({
|
|
|
344
344
|
}
|
|
345
345
|
);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function st({
|
|
348
348
|
className: e,
|
|
349
349
|
...n
|
|
350
350
|
}) {
|
|
@@ -354,9 +354,9 @@ function ct({
|
|
|
354
354
|
"data-slot": "command-input-wrapper",
|
|
355
355
|
className: "adm:flex adm:h-9 adm:items-center adm:gap-2 adm:border-b adm:px-3",
|
|
356
356
|
children: [
|
|
357
|
-
/* @__PURE__ */ p.jsx(
|
|
357
|
+
/* @__PURE__ */ p.jsx(ze, { className: "adm:size-4 adm:shrink-0 adm:opacity-50" }),
|
|
358
358
|
/* @__PURE__ */ p.jsx(
|
|
359
|
-
|
|
359
|
+
_.Input,
|
|
360
360
|
{
|
|
361
361
|
"data-slot": "command-input",
|
|
362
362
|
className: M(
|
|
@@ -370,12 +370,12 @@ function ct({
|
|
|
370
370
|
}
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function mt({
|
|
374
374
|
className: e,
|
|
375
375
|
...n
|
|
376
376
|
}) {
|
|
377
377
|
return /* @__PURE__ */ p.jsx(
|
|
378
|
-
|
|
378
|
+
_.List,
|
|
379
379
|
{
|
|
380
380
|
"data-slot": "command-list",
|
|
381
381
|
className: M(
|
|
@@ -386,12 +386,12 @@ function st({
|
|
|
386
386
|
}
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function ft({
|
|
390
390
|
className: e,
|
|
391
391
|
...n
|
|
392
392
|
}) {
|
|
393
393
|
return /* @__PURE__ */ p.jsx(
|
|
394
|
-
|
|
394
|
+
_.Empty,
|
|
395
395
|
{
|
|
396
396
|
"data-slot": "command-empty",
|
|
397
397
|
className: M("adm:py-6 adm:text-center adm:text-sm", e),
|
|
@@ -399,12 +399,12 @@ function mt({
|
|
|
399
399
|
}
|
|
400
400
|
);
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function pt({
|
|
403
403
|
className: e,
|
|
404
404
|
...n
|
|
405
405
|
}) {
|
|
406
406
|
return /* @__PURE__ */ p.jsx(
|
|
407
|
-
|
|
407
|
+
_.Group,
|
|
408
408
|
{
|
|
409
409
|
"data-slot": "command-group",
|
|
410
410
|
className: M(
|
|
@@ -415,12 +415,12 @@ function ft({
|
|
|
415
415
|
}
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function ht({
|
|
419
419
|
className: e,
|
|
420
420
|
...n
|
|
421
421
|
}) {
|
|
422
422
|
return /* @__PURE__ */ p.jsx(
|
|
423
|
-
|
|
423
|
+
_.Item,
|
|
424
424
|
{
|
|
425
425
|
"data-slot": "command-item",
|
|
426
426
|
className: M(
|
|
@@ -431,128 +431,137 @@ function pt({
|
|
|
431
431
|
}
|
|
432
432
|
);
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function At({
|
|
435
435
|
searchable: e,
|
|
436
436
|
multiple: n,
|
|
437
437
|
icon: r,
|
|
438
438
|
value: h,
|
|
439
439
|
onValueChange: o,
|
|
440
|
-
labels:
|
|
440
|
+
labels: c,
|
|
441
441
|
options: m,
|
|
442
442
|
classNames: s,
|
|
443
|
-
selectedFeedback:
|
|
443
|
+
selectedFeedback: x = "checkbox",
|
|
444
444
|
alwaysShowPlaceholder: i = !1,
|
|
445
|
-
valuePosition:
|
|
446
|
-
renders:
|
|
445
|
+
valuePosition: g = "right",
|
|
446
|
+
renders: u
|
|
447
447
|
}) {
|
|
448
|
-
const [S,
|
|
448
|
+
const j = je(null), [S, R] = fe(!1), [G, L] = fe(n ? [] : ""), y = h !== void 0 ? h : G, A = { ...{
|
|
449
449
|
placeholder: "Select options...",
|
|
450
450
|
searchPlaceholder: "Search options...",
|
|
451
451
|
noItemsFound: "No options found.",
|
|
452
452
|
multipleSelected: (f) => `${f} options selected`
|
|
453
|
-
}, ...
|
|
454
|
-
o ? o(f) :
|
|
455
|
-
},
|
|
453
|
+
}, ...c }, K = (f) => {
|
|
454
|
+
o ? o(f) : L(f);
|
|
455
|
+
}, N = () => n && Array.isArray(y) ? y.length === 0 ? null : y.length === 1 ? m.find((f) => f.value === y[0])?.label : A.multipleSelected?.(y.length) || `${y.length} options selected` : !n && typeof y == "string" && y ? m.find((f) => f.value === y)?.label : null, k = () => n && Array.isArray(y) ? y.length > 0 : typeof y == "string" && y !== "", E = (f) => n && Array.isArray(y) ? y.includes(f) : y === f, U = (f) => {
|
|
456
456
|
if (n) {
|
|
457
|
-
const
|
|
458
|
-
|
|
457
|
+
const $ = Array.isArray(y) ? y : [], t = $.includes(f) ? $.filter((d) => d !== f) : [...$, f];
|
|
458
|
+
K(t);
|
|
459
459
|
} else
|
|
460
|
-
|
|
461
|
-
},
|
|
462
|
-
const
|
|
463
|
-
return
|
|
464
|
-
option:
|
|
465
|
-
isSelected:
|
|
466
|
-
type:
|
|
467
|
-
}) :
|
|
468
|
-
|
|
460
|
+
K(f === y ? "" : f), R(!1);
|
|
461
|
+
}, H = (f) => {
|
|
462
|
+
const $ = E(f), t = m.find((d) => d.value === f);
|
|
463
|
+
return u?.selectedFeedback ? u.selectedFeedback({
|
|
464
|
+
option: t,
|
|
465
|
+
isSelected: $,
|
|
466
|
+
type: x
|
|
467
|
+
}) : x === "check" ? /* @__PURE__ */ p.jsx("span", { className: M("adm:absolute adm:right-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center", s?.check), children: $ && /* @__PURE__ */ p.jsx(Fe, { className: "adm:size-4" }) }) : /* @__PURE__ */ p.jsx(
|
|
468
|
+
Pe,
|
|
469
469
|
{
|
|
470
|
-
checked:
|
|
470
|
+
checked: $,
|
|
471
471
|
className: s?.checkbox
|
|
472
472
|
}
|
|
473
473
|
);
|
|
474
|
-
},
|
|
474
|
+
}, T = () => u?.placeholder ? u.placeholder({
|
|
475
475
|
text: A.placeholder || "",
|
|
476
|
-
hasValue:
|
|
477
|
-
}) : /* @__PURE__ */ p.jsx("span", { className: "adm:opacity-70", children: A.placeholder }), O = () =>
|
|
478
|
-
text:
|
|
479
|
-
value:
|
|
480
|
-
}) : /* @__PURE__ */ p.jsx("span", { children:
|
|
476
|
+
hasValue: k()
|
|
477
|
+
}) : /* @__PURE__ */ p.jsx("span", { className: "adm:opacity-70", children: A.placeholder }), O = () => u?.displayValue ? u.displayValue({
|
|
478
|
+
text: N() ?? null,
|
|
479
|
+
value: y
|
|
480
|
+
}) : /* @__PURE__ */ p.jsx("span", { children: N() }), J = () => i ? /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
|
|
481
481
|
r && /* @__PURE__ */ p.jsx(r, { className: "adm:opacity-50" }),
|
|
482
|
-
|
|
483
|
-
|
|
482
|
+
T(),
|
|
483
|
+
k() && g === "left" && O()
|
|
484
484
|
] }) : /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
|
|
485
485
|
r && /* @__PURE__ */ p.jsx(r, { className: "adm:opacity-50" }),
|
|
486
|
-
|
|
487
|
-
] }),
|
|
486
|
+
k() ? O() : T()
|
|
487
|
+
] }), X = () => u?.triggerIcon ? u.triggerIcon({
|
|
488
488
|
open: S
|
|
489
|
-
}) : /* @__PURE__ */ p.jsx(
|
|
489
|
+
}) : /* @__PURE__ */ p.jsx(Oe, { className: "adm:size-4 adm:opacity-50" }), D = () => i && k() && g === "right" ? /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
|
|
490
490
|
O(),
|
|
491
|
-
|
|
492
|
-
] }) : /* @__PURE__ */ p.jsx("span", { className: "adm:flex adm:items-center adm:gap-2", children:
|
|
491
|
+
X()
|
|
492
|
+
] }) : /* @__PURE__ */ p.jsx("span", { className: "adm:flex adm:items-center adm:gap-2", children: X() }), V = () => u?.trigger ? u.trigger({
|
|
493
493
|
open: S,
|
|
494
|
-
value:
|
|
495
|
-
displayText:
|
|
494
|
+
value: y,
|
|
495
|
+
displayText: N() ?? null,
|
|
496
496
|
placeholder: A.placeholder || "",
|
|
497
|
-
hasValue:
|
|
497
|
+
hasValue: k(),
|
|
498
498
|
icon: r
|
|
499
499
|
}) : /* @__PURE__ */ p.jsxs(
|
|
500
|
-
|
|
500
|
+
Ce,
|
|
501
501
|
{
|
|
502
|
+
ref: j,
|
|
502
503
|
variant: "outline",
|
|
503
504
|
role: "combobox",
|
|
504
505
|
"aria-expanded": S,
|
|
505
506
|
className: M("adm:justify-between adm:font-normal", s?.trigger),
|
|
506
507
|
children: [
|
|
507
|
-
|
|
508
|
-
|
|
508
|
+
J(),
|
|
509
|
+
D()
|
|
509
510
|
]
|
|
510
511
|
}
|
|
511
|
-
),
|
|
512
|
+
), Y = () => e ? u?.searchInput ? u.searchInput({
|
|
512
513
|
placeholder: A.searchPlaceholder || ""
|
|
513
514
|
}) : /* @__PURE__ */ p.jsx(
|
|
514
|
-
|
|
515
|
+
st,
|
|
515
516
|
{
|
|
516
517
|
placeholder: A.searchPlaceholder,
|
|
517
518
|
className: s?.input
|
|
518
519
|
}
|
|
519
|
-
) : null, Q = () =>
|
|
520
|
+
) : null, Q = () => u?.empty ? u.empty({
|
|
520
521
|
text: A.noItemsFound || ""
|
|
521
|
-
}) : /* @__PURE__ */ p.jsx(p.Fragment, { children: A.noItemsFound }),
|
|
522
|
+
}) : /* @__PURE__ */ p.jsx(p.Fragment, { children: A.noItemsFound }), ne = (f) => u?.optionLabel ? u.optionLabel({
|
|
522
523
|
option: f
|
|
523
|
-
}) : /* @__PURE__ */ p.jsx(p.Fragment, { children: f.label }), ae = (f) =>
|
|
524
|
+
}) : /* @__PURE__ */ p.jsx(p.Fragment, { children: f.label }), ae = (f) => u?.option ? /* @__PURE__ */ p.jsx("div", { children: u.option({
|
|
524
525
|
option: f,
|
|
525
|
-
isSelected:
|
|
526
|
-
selectedFeedback:
|
|
526
|
+
isSelected: E(f.value),
|
|
527
|
+
selectedFeedback: x
|
|
527
528
|
}) }, f.value) : /* @__PURE__ */ p.jsxs(
|
|
528
|
-
|
|
529
|
+
ht,
|
|
529
530
|
{
|
|
530
531
|
value: f.value,
|
|
531
|
-
onSelect:
|
|
532
|
+
onSelect: U,
|
|
532
533
|
disabled: f.disabled,
|
|
533
534
|
className: M(
|
|
534
535
|
s?.item,
|
|
535
|
-
|
|
536
|
+
x === "check" && "adm:pr-8"
|
|
536
537
|
),
|
|
537
538
|
children: [
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
x === "checkbox" && H(f.value),
|
|
540
|
+
ne(f),
|
|
541
|
+
x === "check" && H(f.value)
|
|
541
542
|
]
|
|
542
543
|
},
|
|
543
544
|
f.value
|
|
544
545
|
);
|
|
545
|
-
return /* @__PURE__ */ p.jsxs(
|
|
546
|
-
/* @__PURE__ */ p.jsx(
|
|
547
|
-
/* @__PURE__ */ p.jsx(
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
546
|
+
return /* @__PURE__ */ p.jsxs(Me, { open: S, onOpenChange: R, children: [
|
|
547
|
+
/* @__PURE__ */ p.jsx(Le, { asChild: !0, children: V() }),
|
|
548
|
+
/* @__PURE__ */ p.jsx(
|
|
549
|
+
De,
|
|
550
|
+
{
|
|
551
|
+
align: "start",
|
|
552
|
+
className: M("adm:p-0", s?.popover),
|
|
553
|
+
style: { minWidth: j.current?.offsetWidth },
|
|
554
|
+
children: /* @__PURE__ */ p.jsxs(ct, { className: s?.command, children: [
|
|
555
|
+
Y(),
|
|
556
|
+
/* @__PURE__ */ p.jsxs(mt, { className: s?.list, children: [
|
|
557
|
+
/* @__PURE__ */ p.jsx(ft, { className: s?.empty, children: Q() }),
|
|
558
|
+
/* @__PURE__ */ p.jsx(pt, { className: s?.group, children: m.map((f) => ae(f)) })
|
|
559
|
+
] })
|
|
560
|
+
] })
|
|
561
|
+
}
|
|
562
|
+
)
|
|
554
563
|
] });
|
|
555
564
|
}
|
|
556
565
|
export {
|
|
557
|
-
|
|
566
|
+
At as Combobox
|
|
558
567
|
};
|