@fluid-app/fluid-cli-theme-dev 0.1.432 → 0.1.434
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 +311 -314
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Breadcrumb-D_SqXp7d.js → Breadcrumb-BKdVGms9.js} +1 -1
- package/dist/dist-cli-preview/chunks/{Combobox-Km3Vrphp.js → Combobox-CyU4gagO.js} +27 -27
- package/dist/dist-cli-preview/chunks/{ContactsScreen-kuRxflCD.js → ContactsScreen-nqNyMwxa.js} +370 -370
- package/dist/dist-cli-preview/chunks/MediaScreen-BGWqRFE4.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-BS6VVAvZ.js → MemberManagementProviders-D8tSqPWo.js} +6 -6
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-DMuIxGxX.js → MemberShareablesScreen-nYcxHAnv.js} +1313 -1329
- package/dist/dist-cli-preview/chunks/MessagingScreen-DaCvmrAU.js +50551 -0
- package/dist/dist-cli-preview/chunks/MobileActionSheet-DaIBkwQD.js +3884 -0
- package/dist/dist-cli-preview/chunks/{MySiteScreen-Ch1cOkKp.js → MySiteScreen-BYY4CFhu.js} +15 -15
- package/dist/dist-cli-preview/chunks/OrdersScreen-DDdLpJ-7.js +9 -0
- package/dist/dist-cli-preview/chunks/{OrdersScreen-DFqHUrkC.js → OrdersScreen-DkZKc0Z_.js} +7 -7
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-F04j44L-.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-DWOzWTBJ.js → PortalTenantClientProvider-D6a79po2.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-C_gqCV47.js → ProfileScreen-BPw0o_kl.js} +222 -237
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DiXGHeoZ.js → SubscriptionsScreen-DuiI_9iF.js} +3 -3
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-BjzMc3GU.js → account-screen-runtime-BYj9PrHT.js} +2326 -2358
- package/dist/dist-cli-preview/chunks/ar-1KIG4DjU.js +1032 -0
- package/dist/dist-cli-preview/chunks/{arrow-left-D62DJteK.js → arrow-left-DnjGVTam.js} +1 -1
- package/dist/dist-cli-preview/chunks/bg-yBy5d6ww.js +1032 -0
- package/dist/dist-cli-preview/chunks/bn-BDIXtBiu.js +1032 -0
- package/dist/dist-cli-preview/chunks/{cli-preview-c45YGC1E.js → cli-preview-C-nTMZQi.js} +10 -10
- package/dist/dist-cli-preview/chunks/{client.gen-DfWiOTes.js → client.gen-DO8I8bB0.js} +9 -9
- package/dist/dist-cli-preview/chunks/{copy-zqKnEIeM.js → copy-COLmacny.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-DRty_8ei.js → countries-api-adapter-B2ub-v6x.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-4VLe3B5O.js → create-card-entry-container-C7h1cYNe.js} +7380 -7374
- package/dist/dist-cli-preview/chunks/cs-eyeSjS66.js +1032 -0
- package/dist/dist-cli-preview/chunks/da-BMwLUsWZ.js +1032 -0
- package/dist/dist-cli-preview/chunks/de-CWgvDnNQ.js +1032 -0
- package/dist/dist-cli-preview/chunks/el-BhX-RBtB.js +1032 -0
- package/dist/dist-cli-preview/chunks/ellipsis-wdxlMcjt.js +15 -0
- package/dist/dist-cli-preview/chunks/es-fIpwOat4.js +1032 -0
- package/dist/dist-cli-preview/chunks/{eye-Ce93vUsx.js → eye-Cs-LW2s_.js} +1 -1
- package/dist/dist-cli-preview/chunks/fi-BI9n529u.js +1032 -0
- package/dist/dist-cli-preview/chunks/fr-DMDmmtDd.js +1032 -0
- package/dist/dist-cli-preview/chunks/he-BQxAPia2.js +1032 -0
- package/dist/dist-cli-preview/chunks/{hey-api-client-GUem9W6L.js → hey-api-client-C0XYGcOp.js} +1 -1
- package/dist/dist-cli-preview/chunks/hi--CH25zD0.js +1032 -0
- package/dist/dist-cli-preview/chunks/hr-vHPscpGv.js +1032 -0
- package/dist/dist-cli-preview/chunks/hu-BQTLt458.js +1032 -0
- package/dist/dist-cli-preview/chunks/id-R9lUJSOz.js +1032 -0
- package/dist/dist-cli-preview/chunks/{index-B_xDY7q5.js → index-C3BTHcpz.js} +249 -232
- package/dist/dist-cli-preview/chunks/{index-DotYg_8P.js → index-DSTWchdg.js} +2294 -2088
- package/dist/dist-cli-preview/chunks/index-qwhiPvOP.js +135 -0
- package/dist/dist-cli-preview/chunks/isAfter-CcghMy5x.js +1324 -0
- package/dist/dist-cli-preview/chunks/it-iN8sGAC0.js +1032 -0
- package/dist/dist-cli-preview/chunks/ja-BGIZaAW0.js +1032 -0
- package/dist/dist-cli-preview/chunks/ko-Cr6Wl_2I.js +1032 -0
- package/dist/dist-cli-preview/chunks/log-out-BIykSy7b.js +30 -0
- package/dist/dist-cli-preview/chunks/{map-pin-C_2_P4BZ.js → map-pin-Be34_dU6.js} +1 -1
- package/dist/dist-cli-preview/chunks/messaging-D7ENrup9.js +4 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-DLu4WsoN.js → mount-account-screen-BfLjUsgR.js} +8 -8
- package/dist/dist-cli-preview/chunks/ms-CVPERbjz.js +1032 -0
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-Zm16FA01.js → navigate-account-screen-CiKHtySl.js} +1 -1
- package/dist/dist-cli-preview/chunks/nl-38XjLPxf.js +1032 -0
- package/dist/dist-cli-preview/chunks/no-C9CyNben.js +1032 -0
- package/dist/dist-cli-preview/chunks/pause-BBpqu34U.js +41 -0
- package/dist/dist-cli-preview/chunks/pl-DmR9h5su.js +1032 -0
- package/dist/dist-cli-preview/chunks/pt-t-mbd11H.js +1032 -0
- package/dist/dist-cli-preview/chunks/ro-T2DyDJMM.js +1032 -0
- package/dist/dist-cli-preview/chunks/ru-DEgbQN8m.js +1032 -0
- package/dist/dist-cli-preview/chunks/{schemas-CcDaDYH8.js → schemas-EHBiwcQ2.js} +1748 -1618
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-CKharc6_.js → screen-route-slug-utils-Bq-L-ohr.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sheet-haptics-context-DTfySPrq.js → sheet-haptics-context-DT2_eUzd.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sidebar-CkC-f9zG.js → sidebar-C09syHYk.js} +10 -10
- package/dist/dist-cli-preview/chunks/sk-CFYGY_a5.js +1032 -0
- package/dist/dist-cli-preview/chunks/{sortable.esm-e9hcrOle.js → sortable.esm-ClljxXn3.js} +2 -2
- package/dist/dist-cli-preview/chunks/{store-api-context-CDtl_X71.js → store-api-context-DzwRm7gt.js} +1 -1
- package/dist/dist-cli-preview/chunks/sv-i61vcDan.js +1032 -0
- package/dist/dist-cli-preview/chunks/th-DfFRan1t.js +1032 -0
- package/dist/dist-cli-preview/chunks/tl-olBNOPcn.js +1032 -0
- package/dist/dist-cli-preview/chunks/tr-LZKZ4tKb.js +1032 -0
- package/dist/dist-cli-preview/chunks/trash-2-CZhp1ODr.js +17 -0
- package/dist/dist-cli-preview/chunks/uk-BtXttbkl.js +1032 -0
- package/dist/dist-cli-preview/chunks/{use-mobile-DF76-293.js → use-mobile-B7ojcHh2.js} +3 -3
- package/dist/dist-cli-preview/chunks/{use-optional-store-DT9WAQPd.js → use-optional-store-DJYDCvhI.js} +2 -2
- package/dist/dist-cli-preview/chunks/use-store-DeK8QAFv.js +400 -0
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-CDXQnWw0.js → useInfiniteQuery-FHeNizQM.js} +1 -1
- package/dist/dist-cli-preview/chunks/{user-B-jZvwGL.js → user-ozIT6Hhj.js} +1 -1
- package/dist/dist-cli-preview/chunks/{users-TuK7MiQN.js → users-JoDv7hjw.js} +1 -1
- package/dist/dist-cli-preview/chunks/vi-BHWnhETf.js +1032 -0
- package/dist/dist-cli-preview/chunks/zh_CN-CTgClYOF.js +1032 -0
- package/dist/dist-cli-preview/chunks/zh_TW-aQ6cE6PF.js +1032 -0
- package/package.json +2 -2
- package/dist/dist-cli-preview/chunks/MediaScreen-BvJdBMeQ.js +0 -8
- package/dist/dist-cli-preview/chunks/MessagingScreen-BKHqT1Ej.js +0 -35760
- package/dist/dist-cli-preview/chunks/MobileActionSheet-CBoGiv4j.js +0 -2950
- package/dist/dist-cli-preview/chunks/OrdersScreen-BGgj4BZS.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-Bx1XIkZA.js +0 -8
- package/dist/dist-cli-preview/chunks/Select-sVTiAmsy.js +0 -952
- package/dist/dist-cli-preview/chunks/Textarea-D-fkMEdH.js +0 -349
- package/dist/dist-cli-preview/chunks/ar-2rvzIrIR.js +0 -626
- package/dist/dist-cli-preview/chunks/bg-BYPRLePV.js +0 -626
- package/dist/dist-cli-preview/chunks/bn-C0wttE43.js +0 -626
- package/dist/dist-cli-preview/chunks/cs-C7Irs0-j.js +0 -626
- package/dist/dist-cli-preview/chunks/da-80sKijLl.js +0 -626
- package/dist/dist-cli-preview/chunks/de-tvILU4R6.js +0 -626
- package/dist/dist-cli-preview/chunks/el-B3kxyML7.js +0 -626
- package/dist/dist-cli-preview/chunks/es-BTQqBZ3c.js +0 -626
- package/dist/dist-cli-preview/chunks/fi-B3aiDLBd.js +0 -626
- package/dist/dist-cli-preview/chunks/fr-C6aLQLnC.js +0 -626
- package/dist/dist-cli-preview/chunks/he-yMMGeZ3u.js +0 -626
- package/dist/dist-cli-preview/chunks/hi-Cnovv3v0.js +0 -626
- package/dist/dist-cli-preview/chunks/hr-B9M6sJu9.js +0 -626
- package/dist/dist-cli-preview/chunks/hu-D__s9KvX.js +0 -626
- package/dist/dist-cli-preview/chunks/id-CrrK_-vk.js +0 -626
- package/dist/dist-cli-preview/chunks/index-BF-Yok75.js +0 -341
- package/dist/dist-cli-preview/chunks/it-C_g-lMfy.js +0 -626
- package/dist/dist-cli-preview/chunks/ja-Dmdbg-it.js +0 -626
- package/dist/dist-cli-preview/chunks/ko-C-jyYnAw.js +0 -626
- package/dist/dist-cli-preview/chunks/lock-B3ps7XBv.js +0 -14
- package/dist/dist-cli-preview/chunks/log-out-CDzQuZ5N.js +0 -15
- package/dist/dist-cli-preview/chunks/messaging-BETZIbiu.js +0 -4
- package/dist/dist-cli-preview/chunks/ms-Bk6rBm7W.js +0 -626
- package/dist/dist-cli-preview/chunks/nl-Bh5tyFlK.js +0 -626
- package/dist/dist-cli-preview/chunks/no-BqMQtHFU.js +0 -626
- package/dist/dist-cli-preview/chunks/pl-B4xTBpA_.js +0 -626
- package/dist/dist-cli-preview/chunks/pt-Biz6F-Fo.js +0 -626
- package/dist/dist-cli-preview/chunks/ro-BKd4fPGi.js +0 -626
- package/dist/dist-cli-preview/chunks/ru-CD8HG55y.js +0 -626
- package/dist/dist-cli-preview/chunks/sk-5vqOdyEq.js +0 -626
- package/dist/dist-cli-preview/chunks/sv-D-_y-QCE.js +0 -626
- package/dist/dist-cli-preview/chunks/th-BHVHNGsc.js +0 -626
- package/dist/dist-cli-preview/chunks/tl-DdaRIJXv.js +0 -626
- package/dist/dist-cli-preview/chunks/tr-CP55XLFp.js +0 -626
- package/dist/dist-cli-preview/chunks/trash-2-C5c1weGY.js +0 -137
- package/dist/dist-cli-preview/chunks/uk-C5cwrSwu.js +0 -626
- package/dist/dist-cli-preview/chunks/use-store-DUukxuYV.js +0 -92
- package/dist/dist-cli-preview/chunks/vi-7y-mSoow.js +0 -626
- package/dist/dist-cli-preview/chunks/zh_CN-cvRqvqNw.js +0 -626
- package/dist/dist-cli-preview/chunks/zh_TW-_Qzm5B74.js +0 -626
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunks/cli-preview-
|
|
1
|
+
import "./chunks/cli-preview-C-nTMZQi.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as he, l,
|
|
2
|
-
import { S as Re } from "./useInfiniteQuery-
|
|
3
|
-
import { P as Ae,
|
|
4
|
-
import { C as Le } from "./schemas-
|
|
1
|
+
import { c as he, l, aY as F, b2 as R, aB as Se, aH as Ie, aI as je, a4 as Me, b3 as V, j as y, M as j } from "./account-screen-runtime-BYj9PrHT.js";
|
|
2
|
+
import { S as Re } from "./useInfiniteQuery-FHeNizQM.js";
|
|
3
|
+
import { P as Ae, k as Ne, C as $e, l as De } from "./MobileActionSheet-DaIBkwQD.js";
|
|
4
|
+
import { C as Le } from "./schemas-EHBiwcQ2.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.575.0 - ISC
|
|
7
7
|
*
|
|
@@ -43,14 +43,14 @@ function ne(e, n, r, d, o, i, c) {
|
|
|
43
43
|
function pe(e) {
|
|
44
44
|
return e.toLowerCase().replace(ge, " ");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function He(e, n, r) {
|
|
47
47
|
return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, ne(e, n, pe(e), pe(n), 0, 0, {});
|
|
48
48
|
}
|
|
49
|
-
var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]',
|
|
49
|
+
var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-heading=""]', be = '[cmdk-item=""]', ve = `${be}:not([aria-disabled="true"])`, le = "cmdk-item-select", L = "data-value", Ue = (e, n, r) => He(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) => {
|
|
50
50
|
let r = P(() => {
|
|
51
51
|
var t, s;
|
|
52
52
|
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() } };
|
|
53
|
-
}), 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:
|
|
53
|
+
}), 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: H = !1, vimBindings: A = !0, ..._ } = e, T = F(), oe = F(), U = F(), N = l.useRef(null), k = lt();
|
|
54
54
|
$(() => {
|
|
55
55
|
if (p !== void 0) {
|
|
56
56
|
let t = p.trim();
|
|
@@ -62,11 +62,11 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
62
62
|
let E = l.useMemo(() => ({ subscribe: (t) => (c.current.add(t), () => c.current.delete(t)), snapshot: () => r.current, setState: (t, s, f) => {
|
|
63
63
|
var a, g, x, S;
|
|
64
64
|
if (!Object.is(r.current[t], s)) {
|
|
65
|
-
if (r.current[t] = s, t === "search")
|
|
65
|
+
if (r.current[t] = s, t === "search") X(), Y(), k(1, J);
|
|
66
66
|
else if (t === "value") {
|
|
67
67
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
68
|
-
let C = document.getElementById(
|
|
69
|
-
C ? C.focus() : (a = document.getElementById(
|
|
68
|
+
let C = document.getElementById(U);
|
|
69
|
+
C ? C.focus() : (a = document.getElementById(T)) == null || a.focus();
|
|
70
70
|
}
|
|
71
71
|
if (k(7, () => {
|
|
72
72
|
var C;
|
|
@@ -84,25 +84,25 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
84
84
|
} }), []), W = l.useMemo(() => ({ value: (t, s, f) => {
|
|
85
85
|
var a;
|
|
86
86
|
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, () => {
|
|
87
|
-
|
|
87
|
+
Y(), E.emit();
|
|
88
88
|
}));
|
|
89
89
|
}, 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, () => {
|
|
90
|
-
|
|
90
|
+
X(), Y(), r.current.value || J(), E.emit();
|
|
91
91
|
}), () => {
|
|
92
92
|
i.current.delete(t), d.current.delete(t), r.current.filtered.items.delete(t);
|
|
93
93
|
let f = D();
|
|
94
94
|
k(4, () => {
|
|
95
|
-
|
|
95
|
+
X(), f?.getAttribute("id") === t && J(), E.emit();
|
|
96
96
|
});
|
|
97
97
|
}), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
|
|
98
98
|
i.current.delete(t), o.current.delete(t);
|
|
99
|
-
}), filter: () => m.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId:
|
|
99
|
+
}), filter: () => m.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId: T, inputId: U, labelId: oe, listInnerRef: N }), []);
|
|
100
100
|
function ue(t, s) {
|
|
101
101
|
var f, a;
|
|
102
|
-
let g = (a = (f = m.current) == null ? void 0 : f.filter) != null ? a :
|
|
102
|
+
let g = (a = (f = m.current) == null ? void 0 : f.filter) != null ? a : Ue;
|
|
103
103
|
return t ? g(t, r.current.search, s) : 0;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Y() {
|
|
106
106
|
if (!r.current.search || m.current.shouldFilter === !1) return;
|
|
107
107
|
let t = r.current.filtered.items, s = [];
|
|
108
108
|
r.current.filtered.groups.forEach((a) => {
|
|
@@ -126,11 +126,11 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
126
126
|
x?.parentElement.appendChild(x);
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function J() {
|
|
130
130
|
let t = z().find((f) => f.getAttribute("aria-disabled") !== "true"), s = t?.getAttribute(L);
|
|
131
131
|
E.setState("value", s || void 0);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function X() {
|
|
134
134
|
var t, s, f, a;
|
|
135
135
|
if (!r.current.search || m.current.shouldFilter === !1) {
|
|
136
136
|
r.current.filtered.count = d.current.size;
|
|
@@ -151,7 +151,7 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
151
151
|
function ie() {
|
|
152
152
|
var t, s, f;
|
|
153
153
|
let a = D();
|
|
154
|
-
a && (((t = a.parentElement) == null ? void 0 : t.firstChild) === a && ((f = (s = a.closest(O)) == null ? void 0 : s.querySelector(
|
|
154
|
+
a && (((t = a.parentElement) == null ? void 0 : t.firstChild) === a && ((f = (s = a.closest(O)) == null ? void 0 : s.querySelector(Te)) == null || f.scrollIntoView({ block: "nearest" })), a.scrollIntoView({ block: "nearest" }));
|
|
155
155
|
}
|
|
156
156
|
function D() {
|
|
157
157
|
var t;
|
|
@@ -234,23 +234,23 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
234
234
|
}, [v, e.onSelect, e.disabled]);
|
|
235
235
|
function I() {
|
|
236
236
|
var k, E;
|
|
237
|
-
|
|
237
|
+
H(), (E = (k = b.current).onSelect) == null || E.call(k, p.current);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function H() {
|
|
240
240
|
h.setState("value", p.current, !0);
|
|
241
241
|
}
|
|
242
242
|
if (!v) return null;
|
|
243
|
-
let { disabled: A, value: _, onSelect:
|
|
244
|
-
return l.createElement(R.div, { ref: V(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 :
|
|
245
|
-
}),
|
|
243
|
+
let { disabled: A, value: _, onSelect: T, forceMount: oe, keywords: U, ...N } = e;
|
|
244
|
+
return l.createElement(R.div, { ref: V(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 : H, onClick: A ? void 0 : I }, e.children);
|
|
245
|
+
}), Ye = l.forwardRef((e, n) => {
|
|
246
246
|
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);
|
|
247
247
|
$(() => p.group(c), []), Ee(c, m, [e.value, e.heading, b]);
|
|
248
248
|
let w = l.useMemo(() => ({ id: c, forceMount: o }), [o]);
|
|
249
249
|
return l.createElement(R.div, { ref: V(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))));
|
|
250
|
-
}),
|
|
250
|
+
}), Je = l.forwardRef((e, n) => {
|
|
251
251
|
let { alwaysRender: r, ...d } = e, o = l.useRef(null), i = M((c) => !c.search);
|
|
252
252
|
return !r && !i ? null : l.createElement(R.div, { ref: V(o, n), ...d, "cmdk-separator": "", role: "separator" });
|
|
253
|
-
}),
|
|
253
|
+
}), Xe = l.forwardRef((e, n) => {
|
|
254
254
|
let { onValueChange: r, ...d } = e, o = e.value != null, i = ae(), c = M((u) => u.search), m = M((u) => u.selectedItemId), b = q();
|
|
255
255
|
return l.useEffect(() => {
|
|
256
256
|
e.value != null && i.setState("search", e.value);
|
|
@@ -278,7 +278,7 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-headi
|
|
|
278
278
|
}), 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) => {
|
|
279
279
|
let { progress: r, children: d, label: o = "Loading...", ...i } = e;
|
|
280
280
|
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)));
|
|
281
|
-
}), K = Object.assign(we, { List: Qe, Item: We, Input:
|
|
281
|
+
}), K = Object.assign(we, { List: Qe, Item: We, Input: Xe, Group: Ye, Separator: Je, Dialog: Ze, Empty: et, Loading: tt });
|
|
282
282
|
function rt(e, n) {
|
|
283
283
|
let r = e.nextElementSibling;
|
|
284
284
|
for (; r; ) {
|