@fluid-app/fluid-cli-theme-dev 0.1.997 → 0.1.999
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/dist-cli-preview/.vite/manifest.json +260 -254
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Combobox-DN6uDwMf.js → Combobox-DluUOyIh.js} +47 -47
- package/dist/dist-cli-preview/chunks/{ContactsScreen-DcqiPXmX.js → ContactsScreen-BfIuH4zD.js} +90 -90
- package/dist/dist-cli-preview/chunks/MediaScreen-B-RL5_uE.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-Bln-Y7uX.js → MemberManagementProviders-bM9sYpW9.js} +6 -6
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-CvSj6KVV.js → MemberShareablesScreen-D6eeIr9X.js} +21 -21
- package/dist/dist-cli-preview/chunks/{MessagingScreen-TBWVJRBU.js → MessagingScreen-D8V9lTgV.js} +6793 -6758
- package/dist/dist-cli-preview/chunks/{MobileActionSheet-rTSxp-qM.js → MobileActionSheet-D2rBX4Lx.js} +4 -4
- package/dist/dist-cli-preview/chunks/{MySiteScreen-CdV3cRZT.js → MySiteScreen-CHt-UJwd.js} +11 -11
- package/dist/dist-cli-preview/chunks/{OrdersScreen-0mJVaeqy.js → OrdersScreen-Bvo_Mx3w.js} +8 -8
- package/dist/dist-cli-preview/chunks/OrdersScreen-ei7lxIS6.js +9 -0
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-CbKOqDst.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-CpIpKQVv.js → PortalTenantClientProvider-B3BFo8T5.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-Bx1aPK1G.js → ProfileScreen-DslnMxia.js} +14 -14
- package/dist/dist-cli-preview/chunks/{ResponsiveDialog-CRjYPJDy.js → ResponsiveDialog-Cuv5gFUx.js} +73 -73
- package/dist/dist-cli-preview/chunks/{Select-V9j-VL4o.js → Select-CD9zC8ic.js} +2 -2
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-ML_1kM6X.js → SubscriptionsScreen-BsB-uSU0.js} +3 -3
- package/dist/dist-cli-preview/chunks/{Textarea-DpGnk7nw.js → Textarea-BX1sqax1.js} +42 -42
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-B9i-9CLs.js → account-screen-runtime-gWamEEiQ.js} +2643 -2701
- package/dist/dist-cli-preview/chunks/{arrow-left-Ds5JkG8w.js → arrow-left-C-2EMJLp.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-Bq0SdhXW.js → cli-preview-ymxaHolh.js} +9 -9
- package/dist/dist-cli-preview/chunks/{client.gen-CG8-mDod.js → client.gen-Bn09emPC.js} +20 -20
- package/dist/dist-cli-preview/chunks/{copy-CwTnpnmt.js → copy-DO_MJg1G.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-c75511Cl.js → countries-api-adapter-DRAx82BG.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-B-Usa5es.js → create-card-entry-container-NxbLFOk_.js} +5846 -5839
- package/dist/dist-cli-preview/chunks/{hey-api-client-EAWr0fT_.js → hey-api-client-BtWnXt6Y.js} +1 -1
- package/dist/dist-cli-preview/chunks/{index-Cwr1yiwQ.js → index-B23yRHYj.js} +3 -3
- package/dist/dist-cli-preview/chunks/{index-CHSpeqMH.js → index-DSMhrA7P.js} +1 -1
- package/dist/dist-cli-preview/chunks/{index-BNk_peyi.js → index-dtGU2026.js} +19 -19
- package/dist/dist-cli-preview/chunks/isAfter-BR4uNpua.js +1313 -0
- package/dist/dist-cli-preview/chunks/{map-pin-Dyg5NsTr.js → map-pin-_fZf7MT1.js} +1 -1
- package/dist/dist-cli-preview/chunks/{mount-account-screen-CEsEIw_c.js → mount-account-screen-Rnx5EEWs.js} +8 -8
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-C_w-yzkI.js → navigate-account-screen-DZOV3xGF.js} +1 -1
- package/dist/dist-cli-preview/chunks/{schemas-CZvv_5iX.js → schemas-BGhVnzPl.js} +2 -2
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-yRpUie2O.js → screen-route-slug-utils-yYCdefUM.js} +1 -1
- package/dist/dist-cli-preview/chunks/{search-8wgRmDw1.js → search-DAHGESai.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sheet-haptics-context-COwdGTra.js → sheet-haptics-context-1PrsBukT.js} +17 -17
- package/dist/dist-cli-preview/chunks/{sidebar-SmEnwFoV.js → sidebar-DqS7s6Fo.js} +19 -19
- package/dist/dist-cli-preview/chunks/{sortable.esm-CibJ9yWj.js → sortable.esm-aUBXTWUl.js} +2 -2
- package/dist/dist-cli-preview/chunks/{store-api-context-TW7uud2C.js → store-api-context-DfNTd_aW.js} +1 -1
- package/dist/dist-cli-preview/chunks/{translation-api-context-factory-BEO-iYLb.js → translation-api-context-factory-DDptTXAu.js} +1 -1
- package/dist/dist-cli-preview/chunks/{use-mobile-BChC77Fq.js → use-mobile-CzhxjMYC.js} +3 -3
- package/dist/dist-cli-preview/chunks/{use-optional-store-DopS-Jc8.js → use-optional-store-DdujEdZ6.js} +2 -2
- package/dist/dist-cli-preview/chunks/{use-store-CXu_fhao.js → use-store-B2hbh2xH.js} +6 -6
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-Dw0mdxuD.js → useInfiniteQuery-BoOiol5L.js} +1 -1
- package/dist/dist-cli-preview/chunks/{users-BwLXeQJs.js → users-lOg_maXR.js} +1 -1
- package/package.json +2 -2
- package/dist/dist-cli-preview/chunks/MediaScreen-7b6NLq0T.js +0 -8
- package/dist/dist-cli-preview/chunks/OrdersScreen-PJd4uSZW.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-Nkma1e6S.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunks/cli-preview-
|
|
1
|
+
import "./chunks/cli-preview-ymxaHolh.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as he, l, M as F,
|
|
2
|
-
import { S as Re } from "./search-
|
|
3
|
-
import { P as Ae, g as Ne, h as $e } from "./MobileActionSheet-
|
|
4
|
-
import { d as De } from "./Select-
|
|
5
|
-
import { C as Le } from "./schemas-
|
|
1
|
+
import { c as he, l, M as F, aV as R, aW as Se, aX as Ie, aY as je, af as Me, aZ as O, j as y, X as j } from "./account-screen-runtime-gWamEEiQ.js";
|
|
2
|
+
import { S as Re } from "./search-DAHGESai.js";
|
|
3
|
+
import { P as Ae, g as Ne, h as $e } from "./MobileActionSheet-D2rBX4Lx.js";
|
|
4
|
+
import { d as De } from "./Select-CD9zC8ic.js";
|
|
5
|
+
import { C as Le } from "./schemas-BGhVnzPl.js";
|
|
6
6
|
/**
|
|
7
7
|
* @license lucide-react v0.575.0 - ISC
|
|
8
8
|
*
|
|
@@ -33,12 +33,12 @@ const Fe = [
|
|
|
33
33
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
34
34
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
35
35
|
], xt = he("calendar", Fe);
|
|
36
|
-
var fe = 1, Ke = 0.9,
|
|
36
|
+
var fe = 1, Ke = 0.9, Ve = 0.8, ze = 0.17, ee = 0.1, te = 0.999, Oe = 0.9999, qe = 0.99, _e = /[\\\/_+.#"@\[\(\{&]/, Be = /[\\\/_+.#"@\[\(\{&]/g, Ge = /[\s-]/, ge = /[\s-]/g;
|
|
37
37
|
function ne(e, n, r, d, o, i, c) {
|
|
38
|
-
if (i === n.length) return o === e.length ? fe :
|
|
38
|
+
if (i === n.length) return o === e.length ? fe : qe;
|
|
39
39
|
var m = `${o},${i}`;
|
|
40
40
|
if (c[m] !== void 0) return c[m];
|
|
41
|
-
for (var b = d.charAt(i), u = r.indexOf(b, o), p = 0, h, w, v, I; u >= 0; ) h = ne(e, n, r, d, u + 1, i + 1, c), h > p && (u === o ? h *= fe : _e.test(e.charAt(u - 1)) ? (h *=
|
|
41
|
+
for (var b = d.charAt(i), u = r.indexOf(b, o), p = 0, h, w, v, I; u >= 0; ) h = ne(e, n, r, d, u + 1, i + 1, c), h > p && (u === o ? h *= fe : _e.test(e.charAt(u - 1)) ? (h *= Ve, v = e.slice(o, u - 1).match(Be), v && o > 0 && (h *= Math.pow(te, v.length))) : Ge.test(e.charAt(u - 1)) ? (h *= Ke, I = e.slice(o, u - 1).match(ge), I && o > 0 && (h *= Math.pow(te, I.length))) : (h *= ze, o > 0 && (h *= Math.pow(te, u - o))), e.charAt(u) !== n.charAt(i) && (h *= Oe)), (h < ee && r.charAt(u - 1) === d.charAt(i + 1) || d.charAt(i + 1) === d.charAt(i) && r.charAt(u - 1) !== d.charAt(i)) && (w = ne(e, n, r, d, u + 1, i + 2, c), w * ee > h && (h = w * ee)), h > p && (p = h), u = r.indexOf(b, u + 1);
|
|
42
42
|
return c[m] = p, p;
|
|
43
43
|
}
|
|
44
44
|
function pe(e) {
|
|
@@ -47,11 +47,11 @@ function pe(e) {
|
|
|
47
47
|
function Te(e, n, r) {
|
|
48
48
|
return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, ne(e, n, pe(e), pe(n), 0, 0, {});
|
|
49
49
|
}
|
|
50
|
-
var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-heading=""]', be = '[cmdk-item=""]', ve = `${be}:not([aria-disabled="true"])`, le = "cmdk-item-select", L = "data-value",
|
|
50
|
+
var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-heading=""]', be = '[cmdk-item=""]', ve = `${be}:not([aria-disabled="true"])`, le = "cmdk-item-select", L = "data-value", We = (e, n, r) => Te(e, n, r), xe = l.createContext(void 0), q = () => l.useContext(xe), ye = l.createContext(void 0), ae = () => l.useContext(ye), ke = l.createContext(void 0), we = l.forwardRef((e, n) => {
|
|
51
51
|
let r = P(() => {
|
|
52
52
|
var t, s;
|
|
53
53
|
return { search: "", value: (s = (t = e.value) != null ? t : e.defaultValue) != null ? s : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
54
|
-
}), d = P(() => /* @__PURE__ */ new Set()), o = P(() => /* @__PURE__ */ new Map()), i = P(() => /* @__PURE__ */ new Map()), c = P(() => /* @__PURE__ */ new Set()), m = Ce(e), { label: b, children: u, value: p, onValueChange: h, filter: w, shouldFilter: v, loop: I, disablePointerSelection: T = !1, vimBindings: A = !0, ..._ } = e, U = F(), oe = F(),
|
|
54
|
+
}), d = P(() => /* @__PURE__ */ new Set()), o = P(() => /* @__PURE__ */ new Map()), i = P(() => /* @__PURE__ */ new Map()), c = P(() => /* @__PURE__ */ new Set()), m = Ce(e), { label: b, children: u, value: p, onValueChange: h, filter: w, shouldFilter: v, loop: I, disablePointerSelection: T = !1, vimBindings: A = !0, ..._ } = e, U = F(), oe = F(), W = F(), N = l.useRef(null), k = lt();
|
|
55
55
|
$(() => {
|
|
56
56
|
if (p !== void 0) {
|
|
57
57
|
let t = p.trim();
|
|
@@ -63,10 +63,10 @@ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
63
63
|
let E = l.useMemo(() => ({ subscribe: (t) => (c.current.add(t), () => c.current.delete(t)), snapshot: () => r.current, setState: (t, s, f) => {
|
|
64
64
|
var a, g, x, S;
|
|
65
65
|
if (!Object.is(r.current[t], s)) {
|
|
66
|
-
if (r.current[t] = s, t === "search")
|
|
66
|
+
if (r.current[t] = s, t === "search") J(), H(), k(1, Y);
|
|
67
67
|
else if (t === "value") {
|
|
68
68
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
69
|
-
let C = document.getElementById(
|
|
69
|
+
let C = document.getElementById(W);
|
|
70
70
|
C ? C.focus() : (a = document.getElementById(U)) == null || a.focus();
|
|
71
71
|
}
|
|
72
72
|
if (k(7, () => {
|
|
@@ -82,28 +82,28 @@ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
82
82
|
}
|
|
83
83
|
}, emit: () => {
|
|
84
84
|
c.current.forEach((t) => t());
|
|
85
|
-
} }), []),
|
|
85
|
+
} }), []), X = l.useMemo(() => ({ value: (t, s, f) => {
|
|
86
86
|
var a;
|
|
87
87
|
s !== ((a = i.current.get(t)) == null ? void 0 : a.value) && (i.current.set(t, { value: s, keywords: f }), r.current.filtered.items.set(t, ue(s, f)), k(2, () => {
|
|
88
|
-
|
|
88
|
+
H(), E.emit();
|
|
89
89
|
}));
|
|
90
90
|
}, item: (t, s) => (d.current.add(t), s && (o.current.has(s) ? o.current.get(s).add(t) : o.current.set(s, /* @__PURE__ */ new Set([t]))), k(3, () => {
|
|
91
|
-
|
|
91
|
+
J(), H(), r.current.value || Y(), E.emit();
|
|
92
92
|
}), () => {
|
|
93
93
|
i.current.delete(t), d.current.delete(t), r.current.filtered.items.delete(t);
|
|
94
94
|
let f = D();
|
|
95
95
|
k(4, () => {
|
|
96
|
-
|
|
96
|
+
J(), f?.getAttribute("id") === t && Y(), E.emit();
|
|
97
97
|
});
|
|
98
98
|
}), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
|
|
99
99
|
i.current.delete(t), o.current.delete(t);
|
|
100
|
-
}), filter: () => m.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId: U, inputId:
|
|
100
|
+
}), filter: () => m.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId: U, inputId: W, labelId: oe, listInnerRef: N }), []);
|
|
101
101
|
function ue(t, s) {
|
|
102
102
|
var f, a;
|
|
103
|
-
let g = (a = (f = m.current) == null ? void 0 : f.filter) != null ? a :
|
|
103
|
+
let g = (a = (f = m.current) == null ? void 0 : f.filter) != null ? a : We;
|
|
104
104
|
return t ? g(t, r.current.search, s) : 0;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function H() {
|
|
107
107
|
if (!r.current.search || m.current.shouldFilter === !1) return;
|
|
108
108
|
let t = r.current.filtered.items, s = [];
|
|
109
109
|
r.current.filtered.groups.forEach((a) => {
|
|
@@ -114,7 +114,7 @@ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
114
114
|
}), s.push([a, x]);
|
|
115
115
|
});
|
|
116
116
|
let f = N.current;
|
|
117
|
-
|
|
117
|
+
V().sort((a, g) => {
|
|
118
118
|
var x, S;
|
|
119
119
|
let C = a.getAttribute("id"), B = g.getAttribute("id");
|
|
120
120
|
return ((x = t.get(B)) != null ? x : 0) - ((S = t.get(C)) != null ? S : 0);
|
|
@@ -127,11 +127,11 @@ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
127
127
|
x?.parentElement.appendChild(x);
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
let t =
|
|
130
|
+
function Y() {
|
|
131
|
+
let t = V().find((f) => f.getAttribute("aria-disabled") !== "true"), s = t?.getAttribute(L);
|
|
132
132
|
E.setState("value", s || void 0);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function J() {
|
|
135
135
|
var t, s, f, a;
|
|
136
136
|
if (!r.current.search || m.current.shouldFilter === !1) {
|
|
137
137
|
r.current.filtered.count = d.current.size;
|
|
@@ -158,28 +158,28 @@ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
158
158
|
var t;
|
|
159
159
|
return (t = N.current) == null ? void 0 : t.querySelector(`${be}[aria-selected="true"]`);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function V() {
|
|
162
162
|
var t;
|
|
163
163
|
return Array.from(((t = N.current) == null ? void 0 : t.querySelectorAll(ve)) || []);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
let s =
|
|
165
|
+
function Z(t) {
|
|
166
|
+
let s = V()[t];
|
|
167
167
|
s && E.setState("value", s.getAttribute(L));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Q(t) {
|
|
170
170
|
var s;
|
|
171
|
-
let f = D(), a =
|
|
171
|
+
let f = D(), a = V(), g = a.findIndex((S) => S === f), x = a[g + t];
|
|
172
172
|
(s = m.current) != null && s.loop && (x = g + t < 0 ? a[a.length - 1] : g + t === a.length ? a[0] : a[g + t]), x && E.setState("value", x.getAttribute(L));
|
|
173
173
|
}
|
|
174
174
|
function se(t) {
|
|
175
175
|
let s = D(), f = s?.closest(z), a;
|
|
176
176
|
for (; f && !a; ) f = t > 0 ? rt(f, z) : nt(f, z), a = f?.querySelector(ve);
|
|
177
|
-
a ? E.setState("value", a.getAttribute(L)) :
|
|
177
|
+
a ? E.setState("value", a.getAttribute(L)) : Q(t);
|
|
178
178
|
}
|
|
179
|
-
let ce = () =>
|
|
180
|
-
t.preventDefault(), t.metaKey ? ce() : t.altKey ? se(1) :
|
|
179
|
+
let ce = () => Z(V().length - 1), de = (t) => {
|
|
180
|
+
t.preventDefault(), t.metaKey ? ce() : t.altKey ? se(1) : Q(1);
|
|
181
181
|
}, me = (t) => {
|
|
182
|
-
t.preventDefault(), t.metaKey ?
|
|
182
|
+
t.preventDefault(), t.metaKey ? Z(0) : t.altKey ? se(-1) : Q(-1);
|
|
183
183
|
};
|
|
184
184
|
return l.createElement(R.div, { ref: n, tabIndex: -1, ..._, "cmdk-root": "", onKeyDown: (t) => {
|
|
185
185
|
var s;
|
|
@@ -205,7 +205,7 @@ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
205
205
|
break;
|
|
206
206
|
}
|
|
207
207
|
case "Home": {
|
|
208
|
-
t.preventDefault(),
|
|
208
|
+
t.preventDefault(), Z(0);
|
|
209
209
|
break;
|
|
210
210
|
}
|
|
211
211
|
case "End": {
|
|
@@ -221,10 +221,10 @@ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
} }, l.createElement("label", { "cmdk-label": "", htmlFor:
|
|
225
|
-
}),
|
|
224
|
+
} }, l.createElement("label", { "cmdk-label": "", htmlFor: X.inputId, id: X.labelId, style: ot }, b), G(e, (t) => l.createElement(ye.Provider, { value: E }, l.createElement(xe.Provider, { value: X }, t))));
|
|
225
|
+
}), Xe = l.forwardRef((e, n) => {
|
|
226
226
|
var r, d;
|
|
227
|
-
let o = F(), i = l.useRef(null), c = l.useContext(ke), m =
|
|
227
|
+
let o = F(), i = l.useRef(null), c = l.useContext(ke), m = q(), b = Ce(e), u = (d = (r = b.current) == null ? void 0 : r.forceMount) != null ? d : c?.forceMount;
|
|
228
228
|
$(() => {
|
|
229
229
|
if (!u) return m.item(o, c?.id);
|
|
230
230
|
}, [u]);
|
|
@@ -241,25 +241,25 @@ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
241
241
|
h.setState("value", p.current, !0);
|
|
242
242
|
}
|
|
243
243
|
if (!v) return null;
|
|
244
|
-
let { disabled: A, value: _, onSelect: U, forceMount: oe, keywords:
|
|
244
|
+
let { disabled: A, value: _, onSelect: U, forceMount: oe, keywords: W, ...N } = e;
|
|
245
245
|
return l.createElement(R.div, { ref: O(i, n), ...N, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!w, "data-disabled": !!A, "data-selected": !!w, onPointerMove: A || m.getDisablePointerSelection() ? void 0 : T, onClick: A ? void 0 : I }, e.children);
|
|
246
|
-
}),
|
|
247
|
-
let { heading: r, children: d, forceMount: o, ...i } = e, c = F(), m = l.useRef(null), b = l.useRef(null), u = F(), p =
|
|
246
|
+
}), He = l.forwardRef((e, n) => {
|
|
247
|
+
let { heading: r, children: d, forceMount: o, ...i } = e, c = F(), m = l.useRef(null), b = l.useRef(null), u = F(), p = q(), h = M((v) => o || p.filter() === !1 ? !0 : v.search ? v.filtered.groups.has(c) : !0);
|
|
248
248
|
$(() => p.group(c), []), Ee(c, m, [e.value, e.heading, b]);
|
|
249
249
|
let w = l.useMemo(() => ({ id: c, forceMount: o }), [o]);
|
|
250
250
|
return l.createElement(R.div, { ref: O(m, n), ...i, "cmdk-group": "", role: "presentation", hidden: h ? void 0 : !0 }, r && l.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, r), G(e, (v) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? u : void 0 }, l.createElement(ke.Provider, { value: w }, v))));
|
|
251
|
-
}),
|
|
251
|
+
}), Ye = l.forwardRef((e, n) => {
|
|
252
252
|
let { alwaysRender: r, ...d } = e, o = l.useRef(null), i = M((c) => !c.search);
|
|
253
253
|
return !r && !i ? null : l.createElement(R.div, { ref: O(o, n), ...d, "cmdk-separator": "", role: "separator" });
|
|
254
|
-
}),
|
|
255
|
-
let { onValueChange: r, ...d } = e, o = e.value != null, i = ae(), c = M((u) => u.search), m = M((u) => u.selectedItemId), b =
|
|
254
|
+
}), Je = l.forwardRef((e, n) => {
|
|
255
|
+
let { onValueChange: r, ...d } = e, o = e.value != null, i = ae(), c = M((u) => u.search), m = M((u) => u.selectedItemId), b = q();
|
|
256
256
|
return l.useEffect(() => {
|
|
257
257
|
e.value != null && i.setState("search", e.value);
|
|
258
258
|
}, [e.value]), l.createElement(R.input, { ref: n, ...d, "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": m, id: b.inputId, type: "text", value: o ? e.value : c, onChange: (u) => {
|
|
259
259
|
o || i.setState("search", u.target.value), r?.(u.target.value);
|
|
260
260
|
} });
|
|
261
|
-
}),
|
|
262
|
-
let { children: r, label: d = "Suggestions", ...o } = e, i = l.useRef(null), c = l.useRef(null), m = M((u) => u.selectedItemId), b =
|
|
261
|
+
}), Ze = l.forwardRef((e, n) => {
|
|
262
|
+
let { children: r, label: d = "Suggestions", ...o } = e, i = l.useRef(null), c = l.useRef(null), m = M((u) => u.selectedItemId), b = q();
|
|
263
263
|
return l.useEffect(() => {
|
|
264
264
|
if (c.current && i.current) {
|
|
265
265
|
let u = c.current, p = i.current, h, w = new ResizeObserver(() => {
|
|
@@ -273,13 +273,13 @@ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
}, []), l.createElement(R.div, { ref: O(i, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": m, "aria-label": d, id: b.listId }, G(e, (u) => l.createElement("div", { ref: O(c, b.listInnerRef), "cmdk-list-sizer": "" }, u)));
|
|
276
|
-
}),
|
|
276
|
+
}), Qe = l.forwardRef((e, n) => {
|
|
277
277
|
let { open: r, onOpenChange: d, overlayClassName: o, contentClassName: i, container: c, ...m } = e;
|
|
278
278
|
return l.createElement(Se, { open: r, onOpenChange: d }, l.createElement(Ie, { container: c }, l.createElement(je, { "cmdk-overlay": "", className: o }), l.createElement(Me, { "aria-label": e.label, "cmdk-dialog": "", className: i }, l.createElement(we, { ref: n, ...m }))));
|
|
279
279
|
}), et = l.forwardRef((e, n) => M((r) => r.filtered.count === 0) ? l.createElement(R.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), tt = l.forwardRef((e, n) => {
|
|
280
280
|
let { progress: r, children: d, label: o = "Loading...", ...i } = e;
|
|
281
281
|
return l.createElement(R.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)));
|
|
282
|
-
}), K = Object.assign(we, { List:
|
|
282
|
+
}), K = Object.assign(we, { List: Ze, Item: Xe, Input: Je, Group: He, Separator: Ye, Dialog: Qe, Empty: et, Loading: tt });
|
|
283
283
|
function rt(e, n) {
|
|
284
284
|
let r = e.nextElementSibling;
|
|
285
285
|
for (; r; ) {
|
|
@@ -310,7 +310,7 @@ function M(e) {
|
|
|
310
310
|
return l.useSyncExternalStore(n.subscribe, r, r);
|
|
311
311
|
}
|
|
312
312
|
function Ee(e, n, r, d = []) {
|
|
313
|
-
let o = l.useRef(), i =
|
|
313
|
+
let o = l.useRef(), i = q();
|
|
314
314
|
return $(() => {
|
|
315
315
|
var c;
|
|
316
316
|
let m = (() => {
|