@fluid-app/fluid-cli-theme-dev 0.1.533 → 0.1.535
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 +276 -295
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Combobox-CJDvxjNn.js → Combobox-D4l7DbBy.js} +54 -53
- package/dist/dist-cli-preview/chunks/{ContactsScreen-DD3XWK3Q.js → ContactsScreen-CEtA3-1c.js} +903 -850
- package/dist/dist-cli-preview/chunks/MediaScreen-C2rOxuuv.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-iVdfo0DH.js → MemberManagementProviders-B_YXVcDi.js} +13 -13
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-BulCAnNO.js → MemberShareablesScreen-UNjYr5R6.js} +4207 -3757
- package/dist/dist-cli-preview/chunks/{MessagingScreen-DlDsOy19.js → MessagingScreen-Btga_V0H.js} +24118 -21933
- package/dist/dist-cli-preview/chunks/MobileActionSheet-CrEH2vO7.js +1384 -0
- package/dist/dist-cli-preview/chunks/{MySiteScreen-BfPfyV4m.js → MySiteScreen-B1fGtPDj.js} +177 -163
- package/dist/dist-cli-preview/chunks/OrdersScreen-Bf9DtOCA.js +9 -0
- package/dist/dist-cli-preview/chunks/{OrdersScreen-C4yi3z2p.js → OrdersScreen-DyyL-P7j.js} +35 -34
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-tws56I3H.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-Clys_Bme.js → PortalTenantClientProvider-DUOOCXfW.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-e4QhExeS.js → ProfileScreen-wZO6QMrU.js} +259 -234
- package/dist/dist-cli-preview/chunks/ResponsiveDialog-DSDcOjhm.js +731 -0
- package/dist/dist-cli-preview/chunks/Select-DmRoXIkQ.js +2499 -0
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DysTJ6w_.js → SubscriptionsScreen-BR2C0m7M.js} +3 -3
- package/dist/dist-cli-preview/chunks/Textarea-C59p5Cek.js +365 -0
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-B3e0JV6I.js → account-screen-runtime-BqMndJcu.js} +1389 -1409
- package/dist/dist-cli-preview/chunks/{arrow-left-BOYuYcvT.js → arrow-left-CFy5J6Id.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-cY0EPyxC.js → cli-preview-DZOhxtLy.js} +10 -10
- package/dist/dist-cli-preview/chunks/{client.gen-jwIybX1j.js → client.gen-DTVKCFco.js} +12 -12
- package/dist/dist-cli-preview/chunks/{copy-Cm_EKxcg.js → copy-Da4VLOCZ.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-BCS0247N.js → countries-api-adapter-Bh5QfCO1.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-CZi7shLR.js → create-card-entry-container-ohrRYgww.js} +1939 -1929
- package/dist/dist-cli-preview/chunks/{hey-api-client-B6n5a7q-.js → hey-api-client-BIjWueui.js} +1 -1
- package/dist/dist-cli-preview/chunks/{index-CfLLmITa.js → index-BMWjXC9i.js} +405 -869
- package/dist/dist-cli-preview/chunks/{index-DFIsiT9r.js → index-BVehJyDQ.js} +2080 -2372
- package/dist/dist-cli-preview/chunks/index-_r1wSvno.js +427 -0
- package/dist/dist-cli-preview/chunks/{isAfter-D0zQuNEJ.js → isAfter-BR4uNpua.js} +145 -156
- package/dist/dist-cli-preview/chunks/{map-pin-Vt1smsNu.js → map-pin-C_cK_i_W.js} +1 -1
- package/dist/dist-cli-preview/chunks/messaging-B1UjYRdl.js +4 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-BOVvR3Og.js → mount-account-screen-JJGALFRE.js} +8 -8
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-D756rD78.js → navigate-account-screen-C0VoUNOi.js} +1 -1
- package/dist/dist-cli-preview/chunks/schemas-D0s3rDQw.js +4851 -0
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-HNXiCpo6.js → screen-route-slug-utils-n2BiDZmp.js} +205 -260
- package/dist/dist-cli-preview/chunks/search-zEnxG69C.js +14 -0
- package/dist/dist-cli-preview/chunks/sheet-haptics-context-p5ZPxslK.js +133 -0
- package/dist/dist-cli-preview/chunks/{sidebar-BDgHluGp.js → sidebar-CjPHl33n.js} +8 -8
- package/dist/dist-cli-preview/chunks/{sortable.esm-Cw91KlVU.js → sortable.esm-CrxUZkb-.js} +373 -362
- package/dist/dist-cli-preview/chunks/{store-api-context-BCaEZBlj.js → store-api-context-0k_ECvSE.js} +1 -1
- package/dist/dist-cli-preview/chunks/translation-api-context-factory-CP0LBb-M.js +74 -0
- package/dist/dist-cli-preview/chunks/{use-mobile-BztyG-mE.js → use-mobile-DIhDH3dI.js} +1 -1
- package/dist/dist-cli-preview/chunks/{use-optional-store-Dl6PSQur.js → use-optional-store-t4xzc2Rl.js} +2 -2
- package/dist/dist-cli-preview/chunks/use-store-YC0Ovzht.js +76 -0
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-fL_VYHHr.js → useInfiniteQuery-Bnzu0kZa.js} +9 -20
- package/dist/dist-cli-preview/chunks/{users-B3YJ3D1U.js → users-CabXl4EL.js} +1 -1
- package/package.json +2 -2
- package/dist/dist-cli-preview/chunks/Breadcrumb-ixf0cTR_.js +0 -91
- package/dist/dist-cli-preview/chunks/MediaScreen-D8WSOaze.js +0 -8
- package/dist/dist-cli-preview/chunks/MobileActionSheet-aGr-nGxu.js +0 -3884
- package/dist/dist-cli-preview/chunks/OrdersScreen-hidM-JR_.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-BIqSXZ5B.js +0 -8
- package/dist/dist-cli-preview/chunks/ellipsis-C1sJRT_T.js +0 -15
- package/dist/dist-cli-preview/chunks/eye-BHBOtWLw.js +0 -20
- package/dist/dist-cli-preview/chunks/index-COIiY5Im.js +0 -135
- package/dist/dist-cli-preview/chunks/log-out-segl_UhK.js +0 -30
- package/dist/dist-cli-preview/chunks/messaging-C_IkzF0O.js +0 -4
- package/dist/dist-cli-preview/chunks/pause-YWP8mWBs.js +0 -41
- package/dist/dist-cli-preview/chunks/schemas-BiM-ImW1.js +0 -5565
- package/dist/dist-cli-preview/chunks/sheet-haptics-context-d9udqor0.js +0 -116
- package/dist/dist-cli-preview/chunks/trash-2-CZEbdFT_.js +0 -17
- package/dist/dist-cli-preview/chunks/use-store-aahN8SDp.js +0 -400
- package/dist/dist-cli-preview/chunks/user-B4pULYRZ.js +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunks/cli-preview-
|
|
1
|
+
import "./chunks/cli-preview-DZOhxtLy.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { c as he, l,
|
|
2
|
-
import { S as Re } from "./
|
|
3
|
-
import { P as Ae,
|
|
4
|
-
import {
|
|
1
|
+
import { c as he, l, M as F, aU as R, aV as Se, aW as Ie, aX as je, af as Me, aY as O, j as y, X as j } from "./account-screen-runtime-BqMndJcu.js";
|
|
2
|
+
import { S as Re } from "./search-zEnxG69C.js";
|
|
3
|
+
import { P as Ae, g as Ne, h as $e } from "./MobileActionSheet-CrEH2vO7.js";
|
|
4
|
+
import { d as De } from "./Select-DmRoXIkQ.js";
|
|
5
|
+
import { C as Le } from "./schemas-D0s3rDQw.js";
|
|
5
6
|
/**
|
|
6
7
|
* @license lucide-react v0.575.0 - ISC
|
|
7
8
|
*
|
|
@@ -19,7 +20,7 @@ const Pe = [
|
|
|
19
20
|
["path", { d: "M8 18h.01", key: "lrp35t" }],
|
|
20
21
|
["path", { d: "M12 18h.01", key: "mhygvu" }],
|
|
21
22
|
["path", { d: "M16 18h.01", key: "kzsmim" }]
|
|
22
|
-
],
|
|
23
|
+
], bt = he("calendar-days", Pe);
|
|
23
24
|
/**
|
|
24
25
|
* @license lucide-react v0.575.0 - ISC
|
|
25
26
|
*
|
|
@@ -31,26 +32,26 @@ const Fe = [
|
|
|
31
32
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
32
33
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
33
34
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
34
|
-
],
|
|
35
|
-
var fe = 1, Ke = 0.9,
|
|
35
|
+
], xt = he("calendar", Fe);
|
|
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, Ue = /[\s-]/, ge = /[\s-]/g;
|
|
36
37
|
function ne(e, n, r, d, o, i, c) {
|
|
37
38
|
if (i === n.length) return o === e.length ? fe : qe;
|
|
38
39
|
var m = `${o},${i}`;
|
|
39
40
|
if (c[m] !== void 0) return c[m];
|
|
40
|
-
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))) : Ue.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);
|
|
41
42
|
return c[m] = p, p;
|
|
42
43
|
}
|
|
43
44
|
function pe(e) {
|
|
44
45
|
return e.toLowerCase().replace(ge, " ");
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function Ge(e, n, r) {
|
|
47
48
|
return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, ne(e, n, pe(e), pe(n), 0, 0, {});
|
|
48
49
|
}
|
|
49
|
-
var
|
|
50
|
+
var z = '[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", We = (e, n, r) => Ge(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
51
|
let r = P(() => {
|
|
51
52
|
var t, s;
|
|
52
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() } };
|
|
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:
|
|
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: G = !1, vimBindings: A = !0, ..._ } = e, T = F(), oe = F(), W = F(), N = l.useRef(null), k = lt();
|
|
54
55
|
$(() => {
|
|
55
56
|
if (p !== void 0) {
|
|
56
57
|
let t = p.trim();
|
|
@@ -62,10 +63,10 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
62
63
|
let E = l.useMemo(() => ({ subscribe: (t) => (c.current.add(t), () => c.current.delete(t)), snapshot: () => r.current, setState: (t, s, f) => {
|
|
63
64
|
var a, g, x, S;
|
|
64
65
|
if (!Object.is(r.current[t], s)) {
|
|
65
|
-
if (r.current[t] = s, t === "search")
|
|
66
|
+
if (r.current[t] = s, t === "search") J(), H(), k(1, Y);
|
|
66
67
|
else if (t === "value") {
|
|
67
68
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
68
|
-
let C = document.getElementById(
|
|
69
|
+
let C = document.getElementById(W);
|
|
69
70
|
C ? C.focus() : (a = document.getElementById(T)) == null || a.focus();
|
|
70
71
|
}
|
|
71
72
|
if (k(7, () => {
|
|
@@ -81,28 +82,28 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
81
82
|
}
|
|
82
83
|
}, emit: () => {
|
|
83
84
|
c.current.forEach((t) => t());
|
|
84
|
-
} }), []),
|
|
85
|
+
} }), []), X = l.useMemo(() => ({ value: (t, s, f) => {
|
|
85
86
|
var a;
|
|
86
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, () => {
|
|
87
|
-
|
|
88
|
+
H(), E.emit();
|
|
88
89
|
}));
|
|
89
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, () => {
|
|
90
|
-
|
|
91
|
+
J(), H(), r.current.value || Y(), E.emit();
|
|
91
92
|
}), () => {
|
|
92
93
|
i.current.delete(t), d.current.delete(t), r.current.filtered.items.delete(t);
|
|
93
94
|
let f = D();
|
|
94
95
|
k(4, () => {
|
|
95
|
-
|
|
96
|
+
J(), f?.getAttribute("id") === t && Y(), E.emit();
|
|
96
97
|
});
|
|
97
98
|
}), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
|
|
98
99
|
i.current.delete(t), o.current.delete(t);
|
|
99
|
-
}), filter: () => m.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId: T, inputId:
|
|
100
|
+
}), filter: () => m.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId: T, inputId: W, labelId: oe, listInnerRef: N }), []);
|
|
100
101
|
function ue(t, s) {
|
|
101
102
|
var f, a;
|
|
102
|
-
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;
|
|
103
104
|
return t ? g(t, r.current.search, s) : 0;
|
|
104
105
|
}
|
|
105
|
-
function
|
|
106
|
+
function H() {
|
|
106
107
|
if (!r.current.search || m.current.shouldFilter === !1) return;
|
|
107
108
|
let t = r.current.filtered.items, s = [];
|
|
108
109
|
r.current.filtered.groups.forEach((a) => {
|
|
@@ -113,7 +114,7 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
113
114
|
}), s.push([a, x]);
|
|
114
115
|
});
|
|
115
116
|
let f = N.current;
|
|
116
|
-
|
|
117
|
+
V().sort((a, g) => {
|
|
117
118
|
var x, S;
|
|
118
119
|
let C = a.getAttribute("id"), B = g.getAttribute("id");
|
|
119
120
|
return ((x = t.get(B)) != null ? x : 0) - ((S = t.get(C)) != null ? S : 0);
|
|
@@ -122,15 +123,15 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
122
123
|
g ? g.appendChild(a.parentElement === g ? a : a.closest(`${re} > *`)) : f.appendChild(a.parentElement === f ? a : a.closest(`${re} > *`));
|
|
123
124
|
}), s.sort((a, g) => g[1] - a[1]).forEach((a) => {
|
|
124
125
|
var g;
|
|
125
|
-
let x = (g = N.current) == null ? void 0 : g.querySelector(`${
|
|
126
|
+
let x = (g = N.current) == null ? void 0 : g.querySelector(`${z}[${L}="${encodeURIComponent(a[0])}"]`);
|
|
126
127
|
x?.parentElement.appendChild(x);
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
-
let t =
|
|
130
|
+
function Y() {
|
|
131
|
+
let t = V().find((f) => f.getAttribute("aria-disabled") !== "true"), s = t?.getAttribute(L);
|
|
131
132
|
E.setState("value", s || void 0);
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
+
function J() {
|
|
134
135
|
var t, s, f, a;
|
|
135
136
|
if (!r.current.search || m.current.shouldFilter === !1) {
|
|
136
137
|
r.current.filtered.count = d.current.size;
|
|
@@ -151,31 +152,31 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
151
152
|
function ie() {
|
|
152
153
|
var t, s, f;
|
|
153
154
|
let a = D();
|
|
154
|
-
a && (((t = a.parentElement) == null ? void 0 : t.firstChild) === a && ((f = (s = a.closest(
|
|
155
|
+
a && (((t = a.parentElement) == null ? void 0 : t.firstChild) === a && ((f = (s = a.closest(z)) == null ? void 0 : s.querySelector(Te)) == null || f.scrollIntoView({ block: "nearest" })), a.scrollIntoView({ block: "nearest" }));
|
|
155
156
|
}
|
|
156
157
|
function D() {
|
|
157
158
|
var t;
|
|
158
159
|
return (t = N.current) == null ? void 0 : t.querySelector(`${be}[aria-selected="true"]`);
|
|
159
160
|
}
|
|
160
|
-
function
|
|
161
|
+
function V() {
|
|
161
162
|
var t;
|
|
162
163
|
return Array.from(((t = N.current) == null ? void 0 : t.querySelectorAll(ve)) || []);
|
|
163
164
|
}
|
|
164
165
|
function Q(t) {
|
|
165
|
-
let s =
|
|
166
|
+
let s = V()[t];
|
|
166
167
|
s && E.setState("value", s.getAttribute(L));
|
|
167
168
|
}
|
|
168
169
|
function Z(t) {
|
|
169
170
|
var s;
|
|
170
|
-
let f = D(), a =
|
|
171
|
+
let f = D(), a = V(), g = a.findIndex((S) => S === f), x = a[g + t];
|
|
171
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));
|
|
172
173
|
}
|
|
173
174
|
function se(t) {
|
|
174
|
-
let s = D(), f = s?.closest(
|
|
175
|
-
for (; f && !a; ) f = t > 0 ? rt(f,
|
|
175
|
+
let s = D(), f = s?.closest(z), a;
|
|
176
|
+
for (; f && !a; ) f = t > 0 ? rt(f, z) : nt(f, z), a = f?.querySelector(ve);
|
|
176
177
|
a ? E.setState("value", a.getAttribute(L)) : Z(t);
|
|
177
178
|
}
|
|
178
|
-
let ce = () => Q(
|
|
179
|
+
let ce = () => Q(V().length - 1), de = (t) => {
|
|
179
180
|
t.preventDefault(), t.metaKey ? ce() : t.altKey ? se(1) : Z(1);
|
|
180
181
|
}, me = (t) => {
|
|
181
182
|
t.preventDefault(), t.metaKey ? Q(0) : t.altKey ? se(-1) : Z(-1);
|
|
@@ -220,8 +221,8 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
|
-
} }, l.createElement("label", { "cmdk-label": "", htmlFor:
|
|
224
|
-
}),
|
|
224
|
+
} }, l.createElement("label", { "cmdk-label": "", htmlFor: X.inputId, id: X.labelId, style: ot }, b), U(e, (t) => l.createElement(ye.Provider, { value: E }, l.createElement(xe.Provider, { value: X }, t))));
|
|
225
|
+
}), Xe = l.forwardRef((e, n) => {
|
|
225
226
|
var r, d;
|
|
226
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;
|
|
227
228
|
$(() => {
|
|
@@ -234,23 +235,23 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
234
235
|
}, [v, e.onSelect, e.disabled]);
|
|
235
236
|
function I() {
|
|
236
237
|
var k, E;
|
|
237
|
-
|
|
238
|
+
G(), (E = (k = b.current).onSelect) == null || E.call(k, p.current);
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
+
function G() {
|
|
240
241
|
h.setState("value", p.current, !0);
|
|
241
242
|
}
|
|
242
243
|
if (!v) return null;
|
|
243
|
-
let { disabled: A, value: _, onSelect: T, forceMount: oe, keywords:
|
|
244
|
-
return l.createElement(R.div, { ref:
|
|
245
|
-
}),
|
|
244
|
+
let { disabled: A, value: _, onSelect: T, forceMount: oe, keywords: W, ...N } = e;
|
|
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 : G, onClick: A ? void 0 : I }, e.children);
|
|
246
|
+
}), He = l.forwardRef((e, n) => {
|
|
246
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);
|
|
247
248
|
$(() => p.group(c), []), Ee(c, m, [e.value, e.heading, b]);
|
|
248
249
|
let w = l.useMemo(() => ({ id: c, forceMount: o }), [o]);
|
|
249
|
-
return l.createElement(R.div, { ref:
|
|
250
|
-
}), Xe = l.forwardRef((e, n) => {
|
|
251
|
-
let { alwaysRender: r, ...d } = e, o = l.useRef(null), i = M((c) => !c.search);
|
|
252
|
-
return !r && !i ? null : l.createElement(R.div, { ref: V(o, n), ...d, "cmdk-separator": "", role: "separator" });
|
|
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), U(e, (v) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? u : void 0 }, l.createElement(ke.Provider, { value: w }, v))));
|
|
253
251
|
}), Ye = l.forwardRef((e, n) => {
|
|
252
|
+
let { alwaysRender: r, ...d } = e, o = l.useRef(null), i = M((c) => !c.search);
|
|
253
|
+
return !r && !i ? null : l.createElement(R.div, { ref: O(o, n), ...d, "cmdk-separator": "", role: "separator" });
|
|
254
|
+
}), Je = l.forwardRef((e, n) => {
|
|
254
255
|
let { onValueChange: r, ...d } = e, o = e.value != null, i = ae(), c = M((u) => u.search), m = M((u) => u.selectedItemId), b = q();
|
|
255
256
|
return l.useEffect(() => {
|
|
256
257
|
e.value != null && i.setState("search", e.value);
|
|
@@ -271,14 +272,14 @@ var O = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
271
272
|
cancelAnimationFrame(h), w.unobserve(u);
|
|
272
273
|
};
|
|
273
274
|
}
|
|
274
|
-
}, []), l.createElement(R.div, { ref:
|
|
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 }, U(e, (u) => l.createElement("div", { ref: O(c, b.listInnerRef), "cmdk-list-sizer": "" }, u)));
|
|
275
276
|
}), Ze = l.forwardRef((e, n) => {
|
|
276
277
|
let { open: r, onOpenChange: d, overlayClassName: o, contentClassName: i, container: c, ...m } = e;
|
|
277
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 }))));
|
|
278
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) => {
|
|
279
280
|
let { progress: r, children: d, label: o = "Loading...", ...i } = e;
|
|
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 },
|
|
281
|
-
}), K = Object.assign(we, { List: Qe, Item:
|
|
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 }, U(e, (c) => l.createElement("div", { "aria-hidden": !0 }, c)));
|
|
282
|
+
}), K = Object.assign(we, { List: Qe, Item: Xe, Input: Je, Group: He, Separator: Ye, Dialog: Ze, Empty: et, Loading: tt });
|
|
282
283
|
function rt(e, n) {
|
|
283
284
|
let r = e.nextElementSibling;
|
|
284
285
|
for (; r; ) {
|
|
@@ -334,7 +335,7 @@ function at(e) {
|
|
|
334
335
|
let n = e.type;
|
|
335
336
|
return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
|
|
336
337
|
}
|
|
337
|
-
function
|
|
338
|
+
function U({ asChild: e, children: n }, r) {
|
|
338
339
|
return e && l.isValidElement(n) ? l.cloneElement(at(n), { ref: n.ref }, r(n.props.children)) : r(n);
|
|
339
340
|
}
|
|
340
341
|
var ot = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
@@ -440,7 +441,7 @@ function mt({
|
|
|
440
441
|
}
|
|
441
442
|
);
|
|
442
443
|
}
|
|
443
|
-
function
|
|
444
|
+
function yt({
|
|
444
445
|
options: e,
|
|
445
446
|
value: n,
|
|
446
447
|
onValueChange: r,
|
|
@@ -488,12 +489,12 @@ function xt({
|
|
|
488
489
|
children: h ? h.label : d
|
|
489
490
|
}
|
|
490
491
|
),
|
|
491
|
-
/* @__PURE__ */ y.jsx(
|
|
492
|
+
/* @__PURE__ */ y.jsx(De, { className: "size-4 shrink-0 opacity-50" })
|
|
492
493
|
]
|
|
493
494
|
}
|
|
494
495
|
) }),
|
|
495
496
|
/* @__PURE__ */ y.jsx(
|
|
496
|
-
|
|
497
|
+
$e,
|
|
497
498
|
{
|
|
498
499
|
className: "bg-popover w-[var(--radix-popover-trigger-width)] rounded-md border p-0 shadow-md",
|
|
499
500
|
align: "start",
|
|
@@ -541,13 +542,13 @@ function xt({
|
|
|
541
542
|
);
|
|
542
543
|
}
|
|
543
544
|
export {
|
|
544
|
-
|
|
545
|
+
yt as C,
|
|
545
546
|
ut as a,
|
|
546
547
|
it as b,
|
|
547
548
|
st as c,
|
|
548
549
|
ct as d,
|
|
549
550
|
dt as e,
|
|
550
551
|
mt as f,
|
|
551
|
-
|
|
552
|
-
|
|
552
|
+
xt as g,
|
|
553
|
+
bt as h
|
|
553
554
|
};
|