@konstructio/ui 0.0.12-alpha.9 → 0.0.13-alpha.1
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/{Modal-B-E9uaA6.js → Modal-i7eolhYH.js} +311 -307
- package/dist/components/Alert/Alert.js +24 -29
- package/dist/components/Alert/Alert.variants.js +9 -15
- package/dist/components/AlertDialog/AlertDialog.js +59 -46
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +76 -72
- package/dist/components/Autocomplete/Autocomplete.variants.js +11 -20
- package/dist/components/Autocomplete/components/List/List.js +28 -30
- package/dist/components/Autocomplete/components/List/List.variants.js +34 -40
- package/dist/components/Breadcrumb/Breadcrumb.js +47 -56
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +6 -26
- package/dist/components/Breadcrumb/components/Item/Item.js +29 -41
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +2 -20
- package/dist/components/Button/Button.js +33 -37
- package/dist/components/Button/Button.variants.js +138 -195
- package/dist/components/Card/Card.js +32 -37
- package/dist/components/Card/Card.variants.js +18 -53
- package/dist/components/Checkbox/Checkbox.js +65 -68
- package/dist/components/Checkbox/Checkbox.variants.js +11 -35
- package/dist/components/Command/Command.js +33 -25
- package/dist/components/Command/Command.variants.js +47 -94
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +8 -8
- package/dist/components/Divider/Divider.js +3 -2
- package/dist/components/Divider/Divider.variants.js +12 -9
- package/dist/components/Dropdown/Dropdown.js +6 -6
- package/dist/components/Dropdown/Dropdown.variants.js +31 -38
- package/dist/components/Dropdown/components/List/List.js +17 -15
- package/dist/components/Dropdown/components/List/List.variants.js +22 -32
- package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -19
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +18 -30
- package/dist/components/Dropdown/components/Wrapper.js +127 -90
- package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.js +9 -9
- package/dist/components/Input/Input.js +37 -37
- package/dist/components/Input/Input.variants.js +8 -13
- package/dist/components/Loading/Loading.js +60 -58
- package/dist/components/Loading/Loading.variants.js +9 -15
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +2 -2
- package/dist/components/Modal/components/Header/Header.js +3 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -4
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +32 -46
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +93 -111
- package/dist/components/NumberInput/NumberInput.variants.js +30 -51
- package/dist/components/ProgressBar/ProgressBar.js +25 -29
- package/dist/components/ProgressBar/ProgressBar.variants.js +10 -31
- package/dist/components/Radio/Radio.js +45 -46
- package/dist/components/Radio/Radio.variants.js +4 -13
- package/dist/components/RadioCard/RadioCard.js +31 -37
- package/dist/components/RadioCard/RadioCard.variants.js +8 -17
- package/dist/components/RadioCardGroup/RadioCardGroup.js +22 -23
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +3 -9
- package/dist/components/RadioGroup/RadioGroup.js +30 -31
- package/dist/components/RadioGroup/RadioGroup.variants.js +2 -8
- package/dist/components/Range/Range.js +28 -34
- package/dist/components/Range/Range.variants.js +21 -53
- package/dist/components/Sidebar/Sidebar.js +12 -13
- package/dist/components/Sidebar/Sidebar.variants.js +30 -56
- package/dist/components/Sidebar/components/Footer/Footer.js +5 -17
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +9 -16
- package/dist/components/Sidebar/components/Logo/Logo.js +5 -15
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +20 -36
- package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -28
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +3 -17
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +21 -34
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +2 -13
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +21 -27
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +7 -17
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +7 -19
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +6 -16
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +8 -21
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +11 -20
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +41 -44
- package/dist/components/Slider/Slider.js +26 -27
- package/dist/components/Slider/Slider.variants.js +22 -34
- package/dist/components/Switch/Switch.js +103 -106
- package/dist/components/Switch/Switch.variants.js +28 -53
- package/dist/components/Table/Table.js +27 -0
- package/dist/components/Table/Table.variants.js +40 -0
- package/dist/components/Table/components/Body.js +18 -0
- package/dist/components/Table/components/Filter.js +9 -0
- package/dist/components/Table/components/Head.js +18 -0
- package/dist/components/Table/components/Row.js +28 -0
- package/dist/components/Table/components/index.js +10 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.js +23 -55
- package/dist/components/TagSelect/components/Item/Item.js +12 -14
- package/dist/components/TagSelect/components/Item/Item.variants.js +11 -10
- package/dist/components/TagSelect/components/List/List.js +9 -10
- package/dist/components/TagSelect/components/List/List.variants.js +21 -35
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +46 -48
- package/dist/components/TextArea/TextArea.js +20 -23
- package/dist/components/TextArea/TextArea.variants.js +19 -31
- package/dist/components/Toast/Toast.js +110 -116
- package/dist/components/Toast/Toast.variants.js +42 -70
- package/dist/components/Tooltip/Tooltip.js +21 -27
- package/dist/components/Tooltip/Tooltip.variants.js +61 -62
- package/dist/components/Typography/Typography.js +23 -19
- package/dist/components/Typography/Typography.variants.js +1 -7
- package/dist/components/index.js +22 -20
- package/dist/contexts/theme.provider.js +37 -39
- package/dist/domain/theme.js +0 -0
- package/dist/index-AM3avohj.js +133 -0
- package/dist/{index-BzaHYXkt.js → index-BOx5P4tS.js} +5 -5
- package/dist/index-Bk324h27.js +82 -0
- package/dist/{index-4ecjw_Aj.js → index-Bry5AFQ2.js} +1 -1
- package/dist/{index-CbTU3cnP.js → index-CWKdynYu.js} +1 -1
- package/dist/index-D9BbbgUq.js +47 -0
- package/dist/{index-DyKo5ZJT.js → index-DvFiic6N.js} +45 -45
- package/dist/{index-Dj1pom3_.js → index-G_6jG4Qc.js} +2 -2
- package/dist/{index-D_76wh4w.js → index-YaQrdkGE.js} +3 -3
- package/dist/{index-Cva-e5M4.js → index-bYyfdsls.js} +9 -9
- package/dist/index-dRxIWVBr.js +313 -0
- package/dist/{index-D7QNmo_D.js → index-g-TFwd6Y.js} +41 -41
- package/dist/index.d.ts +115 -98
- package/dist/index.js +30 -30
- package/dist/package.json +37 -36
- package/dist/styles.css +1 -1
- package/dist/ui/kubefirst-theme.css +296 -0
- package/dist/ui/theme.css +6 -0
- package/dist/ui/utilities.css +165 -0
- package/dist/utils/index.js +675 -424
- package/package.json +37 -36
- package/dist/components/AlertDialog/AlertDialog.variants.js +0 -15
- package/dist/index-B_6_jmOO.js +0 -68
- package/dist/index-BbsJ0VIJ.js +0 -47
- package/dist/index-CzSBQN5S.js +0 -432
- package/dist/index-DUA6Y_AE.js +0 -126
- package/dist/plugins/index.js +0 -4
- package/dist/plugins/konstruct.js +0 -118
- package/dist/plugins/utils/animation.styles.js +0 -162
- package/dist/plugins/utils/colors.js +0 -331
- package/dist/plugins/utils/index.js +0 -7
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { u as P, R as Ee, P as ke, O as Se, C as Ie } from "./index-DvFiic6N.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { P as C } from "./index-g-TFwd6Y.js";
|
|
4
|
+
import { a as j } from "./index-Bk324h27.js";
|
|
5
|
+
var de = 1, xe = 0.9, Re = 0.8, Ce = 0.17, Q = 0.1, Z = 0.999, Ae = 0.9999, Me = 0.99, $e = /[\\\/_+.#"@\[\(\{&]/, De = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, me = /[\s-]/g;
|
|
6
|
+
function ee(t, l, r, f, u, c, d) {
|
|
7
|
+
if (c === l.length) return u === t.length ? de : Me;
|
|
8
|
+
var m = `${u},${c}`;
|
|
9
|
+
if (d[m] !== void 0) return d[m];
|
|
10
|
+
for (var b = f.charAt(c), i = r.indexOf(b, u), p = 0, h, I, E, x; i >= 0; ) h = ee(t, l, r, f, i + 1, c + 1, d), h > p && (i === u ? h *= de : $e.test(t.charAt(i - 1)) ? (h *= Re, E = t.slice(u, i - 1).match(De), E && u > 0 && (h *= Math.pow(Z, E.length))) : Fe.test(t.charAt(i - 1)) ? (h *= xe, x = t.slice(u, i - 1).match(me), x && u > 0 && (h *= Math.pow(Z, x.length))) : (h *= Ce, u > 0 && (h *= Math.pow(Z, i - u))), t.charAt(i) !== l.charAt(c) && (h *= Ae)), (h < Q && r.charAt(i - 1) === f.charAt(c + 1) || f.charAt(c + 1) === f.charAt(c) && r.charAt(i - 1) !== f.charAt(c)) && (I = ee(t, l, r, f, i + 1, c + 2, d), I * Q > h && (h = I * Q)), h > p && (p = h), i = r.indexOf(b, i + 1);
|
|
11
|
+
return d[m] = p, p;
|
|
12
|
+
}
|
|
13
|
+
function se(t) {
|
|
14
|
+
return t.toLowerCase().replace(me, " ");
|
|
15
|
+
}
|
|
16
|
+
function Ke(t, l, r) {
|
|
17
|
+
return t = r && r.length > 0 ? `${t + " " + r.join(" ")}` : t, ee(t, l, se(t), se(l), 0, 0, {});
|
|
18
|
+
}
|
|
19
|
+
var V = '[cmdk-group=""]', _ = '[cmdk-group-items=""]', Pe = '[cmdk-group-heading=""]', ve = '[cmdk-item=""]', fe = `${ve}:not([aria-disabled="true"])`, te = "cmdk-item-select", F = "data-value", qe = (t, l, r) => Ke(t, l, r), pe = n.createContext(void 0), L = () => n.useContext(pe), he = n.createContext(void 0), re = () => n.useContext(he), ge = n.createContext(void 0), be = n.forwardRef((t, l) => {
|
|
20
|
+
let r = K(() => {
|
|
21
|
+
var e, o;
|
|
22
|
+
return { search: "", value: (o = (e = t.value) != null ? e : t.defaultValue) != null ? o : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
23
|
+
}), f = K(() => /* @__PURE__ */ new Set()), u = K(() => /* @__PURE__ */ new Map()), c = K(() => /* @__PURE__ */ new Map()), d = K(() => /* @__PURE__ */ new Set()), m = we(t), { label: b, children: i, value: p, onValueChange: h, filter: I, shouldFilter: E, loop: x, disablePointerSelection: U = !1, vimBindings: A = !0, ...O } = t, H = P(), ne = P(), N = P(), M = n.useRef(null), w = We();
|
|
24
|
+
$(() => {
|
|
25
|
+
if (p !== void 0) {
|
|
26
|
+
let e = p.trim();
|
|
27
|
+
r.current.value = e, k.emit();
|
|
28
|
+
}
|
|
29
|
+
}, [p]), $(() => {
|
|
30
|
+
w(6, ae);
|
|
31
|
+
}, []);
|
|
32
|
+
let k = n.useMemo(() => ({ subscribe: (e) => (d.current.add(e), () => d.current.delete(e)), snapshot: () => r.current, setState: (e, o, s) => {
|
|
33
|
+
var a, v, g, S;
|
|
34
|
+
if (!Object.is(r.current[e], o)) {
|
|
35
|
+
if (r.current[e] = o, e === "search") J(), W(), w(1, G);
|
|
36
|
+
else if (e === "value") {
|
|
37
|
+
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
38
|
+
let y = document.getElementById(N);
|
|
39
|
+
y ? y.focus() : (a = document.getElementById(H)) == null || a.focus();
|
|
40
|
+
}
|
|
41
|
+
if (w(7, () => {
|
|
42
|
+
var y;
|
|
43
|
+
r.current.selectedItemId = (y = D()) == null ? void 0 : y.id, k.emit();
|
|
44
|
+
}), s || w(5, ae), ((v = m.current) == null ? void 0 : v.value) !== void 0) {
|
|
45
|
+
let y = o ?? "";
|
|
46
|
+
(S = (g = m.current).onValueChange) == null || S.call(g, y);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
k.emit();
|
|
51
|
+
}
|
|
52
|
+
}, emit: () => {
|
|
53
|
+
d.current.forEach((e) => e());
|
|
54
|
+
} }), []), T = n.useMemo(() => ({ value: (e, o, s) => {
|
|
55
|
+
var a;
|
|
56
|
+
o !== ((a = c.current.get(e)) == null ? void 0 : a.value) && (c.current.set(e, { value: o, keywords: s }), r.current.filtered.items.set(e, le(o, s)), w(2, () => {
|
|
57
|
+
W(), k.emit();
|
|
58
|
+
}));
|
|
59
|
+
}, item: (e, o) => (f.current.add(e), o && (u.current.has(o) ? u.current.get(o).add(e) : u.current.set(o, /* @__PURE__ */ new Set([e]))), w(3, () => {
|
|
60
|
+
J(), W(), r.current.value || G(), k.emit();
|
|
61
|
+
}), () => {
|
|
62
|
+
c.current.delete(e), f.current.delete(e), r.current.filtered.items.delete(e);
|
|
63
|
+
let s = D();
|
|
64
|
+
w(4, () => {
|
|
65
|
+
J(), (s == null ? void 0 : s.getAttribute("id")) === e && G(), k.emit();
|
|
66
|
+
});
|
|
67
|
+
}), group: (e) => (u.current.has(e) || u.current.set(e, /* @__PURE__ */ new Set()), () => {
|
|
68
|
+
c.current.delete(e), u.current.delete(e);
|
|
69
|
+
}), filter: () => m.current.shouldFilter, label: b || t["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId: H, inputId: N, labelId: ne, listInnerRef: M }), []);
|
|
70
|
+
function le(e, o) {
|
|
71
|
+
var s, a;
|
|
72
|
+
let v = (a = (s = m.current) == null ? void 0 : s.filter) != null ? a : qe;
|
|
73
|
+
return e ? v(e, r.current.search, o) : 0;
|
|
74
|
+
}
|
|
75
|
+
function W() {
|
|
76
|
+
if (!r.current.search || m.current.shouldFilter === !1) return;
|
|
77
|
+
let e = r.current.filtered.items, o = [];
|
|
78
|
+
r.current.filtered.groups.forEach((a) => {
|
|
79
|
+
let v = u.current.get(a), g = 0;
|
|
80
|
+
v.forEach((S) => {
|
|
81
|
+
let y = e.get(S);
|
|
82
|
+
g = Math.max(y, g);
|
|
83
|
+
}), o.push([a, g]);
|
|
84
|
+
});
|
|
85
|
+
let s = M.current;
|
|
86
|
+
q().sort((a, v) => {
|
|
87
|
+
var g, S;
|
|
88
|
+
let y = a.getAttribute("id"), B = v.getAttribute("id");
|
|
89
|
+
return ((g = e.get(B)) != null ? g : 0) - ((S = e.get(y)) != null ? S : 0);
|
|
90
|
+
}).forEach((a) => {
|
|
91
|
+
let v = a.closest(_);
|
|
92
|
+
v ? v.appendChild(a.parentElement === v ? a : a.closest(`${_} > *`)) : s.appendChild(a.parentElement === s ? a : a.closest(`${_} > *`));
|
|
93
|
+
}), o.sort((a, v) => v[1] - a[1]).forEach((a) => {
|
|
94
|
+
var v;
|
|
95
|
+
let g = (v = M.current) == null ? void 0 : v.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);
|
|
96
|
+
g == null || g.parentElement.appendChild(g);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function G() {
|
|
100
|
+
let e = q().find((s) => s.getAttribute("aria-disabled") !== "true"), o = e == null ? void 0 : e.getAttribute(F);
|
|
101
|
+
k.setState("value", o || void 0);
|
|
102
|
+
}
|
|
103
|
+
function J() {
|
|
104
|
+
var e, o, s, a;
|
|
105
|
+
if (!r.current.search || m.current.shouldFilter === !1) {
|
|
106
|
+
r.current.filtered.count = f.current.size;
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
r.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
110
|
+
let v = 0;
|
|
111
|
+
for (let g of f.current) {
|
|
112
|
+
let S = (o = (e = c.current.get(g)) == null ? void 0 : e.value) != null ? o : "", y = (a = (s = c.current.get(g)) == null ? void 0 : s.keywords) != null ? a : [], B = le(S, y);
|
|
113
|
+
r.current.filtered.items.set(g, B), B > 0 && v++;
|
|
114
|
+
}
|
|
115
|
+
for (let [g, S] of u.current) for (let y of S) if (r.current.filtered.items.get(y) > 0) {
|
|
116
|
+
r.current.filtered.groups.add(g);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
r.current.filtered.count = v;
|
|
120
|
+
}
|
|
121
|
+
function ae() {
|
|
122
|
+
var e, o, s;
|
|
123
|
+
let a = D();
|
|
124
|
+
a && (((e = a.parentElement) == null ? void 0 : e.firstChild) === a && ((s = (o = a.closest(V)) == null ? void 0 : o.querySelector(Pe)) == null || s.scrollIntoView({ block: "nearest" })), a.scrollIntoView({ block: "nearest" }));
|
|
125
|
+
}
|
|
126
|
+
function D() {
|
|
127
|
+
var e;
|
|
128
|
+
return (e = M.current) == null ? void 0 : e.querySelector(`${ve}[aria-selected="true"]`);
|
|
129
|
+
}
|
|
130
|
+
function q() {
|
|
131
|
+
var e;
|
|
132
|
+
return Array.from(((e = M.current) == null ? void 0 : e.querySelectorAll(fe)) || []);
|
|
133
|
+
}
|
|
134
|
+
function X(e) {
|
|
135
|
+
let o = q()[e];
|
|
136
|
+
o && k.setState("value", o.getAttribute(F));
|
|
137
|
+
}
|
|
138
|
+
function Y(e) {
|
|
139
|
+
var o;
|
|
140
|
+
let s = D(), a = q(), v = a.findIndex((S) => S === s), g = a[v + e];
|
|
141
|
+
(o = m.current) != null && o.loop && (g = v + e < 0 ? a[a.length - 1] : v + e === a.length ? a[0] : a[v + e]), g && k.setState("value", g.getAttribute(F));
|
|
142
|
+
}
|
|
143
|
+
function ue(e) {
|
|
144
|
+
let o = D(), s = o == null ? void 0 : o.closest(V), a;
|
|
145
|
+
for (; s && !a; ) s = e > 0 ? Ne(s, V) : Te(s, V), a = s == null ? void 0 : s.querySelector(fe);
|
|
146
|
+
a ? k.setState("value", a.getAttribute(F)) : Y(e);
|
|
147
|
+
}
|
|
148
|
+
let ie = () => X(q().length - 1), oe = (e) => {
|
|
149
|
+
e.preventDefault(), e.metaKey ? ie() : e.altKey ? ue(1) : Y(1);
|
|
150
|
+
}, ce = (e) => {
|
|
151
|
+
e.preventDefault(), e.metaKey ? X(0) : e.altKey ? ue(-1) : Y(-1);
|
|
152
|
+
};
|
|
153
|
+
return n.createElement(C.div, { ref: l, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e) => {
|
|
154
|
+
var o;
|
|
155
|
+
(o = O.onKeyDown) == null || o.call(O, e);
|
|
156
|
+
let s = e.nativeEvent.isComposing || e.keyCode === 229;
|
|
157
|
+
if (!(e.defaultPrevented || s)) switch (e.key) {
|
|
158
|
+
case "n":
|
|
159
|
+
case "j": {
|
|
160
|
+
A && e.ctrlKey && oe(e);
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
case "ArrowDown": {
|
|
164
|
+
oe(e);
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
case "p":
|
|
168
|
+
case "k": {
|
|
169
|
+
A && e.ctrlKey && ce(e);
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
case "ArrowUp": {
|
|
173
|
+
ce(e);
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
case "Home": {
|
|
177
|
+
e.preventDefault(), X(0);
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
case "End": {
|
|
181
|
+
e.preventDefault(), ie();
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
case "Enter": {
|
|
185
|
+
e.preventDefault();
|
|
186
|
+
let a = D();
|
|
187
|
+
if (a) {
|
|
188
|
+
let v = new Event(te);
|
|
189
|
+
a.dispatchEvent(v);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
} }, n.createElement("label", { "cmdk-label": "", htmlFor: T.inputId, id: T.labelId, style: Je }, b), z(t, (e) => n.createElement(he.Provider, { value: k }, n.createElement(pe.Provider, { value: T }, e))));
|
|
194
|
+
}), Ve = n.forwardRef((t, l) => {
|
|
195
|
+
var r, f;
|
|
196
|
+
let u = P(), c = n.useRef(null), d = n.useContext(ge), m = L(), b = we(t), i = (f = (r = b.current) == null ? void 0 : r.forceMount) != null ? f : d == null ? void 0 : d.forceMount;
|
|
197
|
+
$(() => {
|
|
198
|
+
if (!i) return m.item(u, d == null ? void 0 : d.id);
|
|
199
|
+
}, [i]);
|
|
200
|
+
let p = ye(u, c, [t.value, t.children, c], t.keywords), h = re(), I = R((w) => w.value && w.value === p.current), E = R((w) => i || m.filter() === !1 ? !0 : w.search ? w.filtered.items.get(u) > 0 : !0);
|
|
201
|
+
n.useEffect(() => {
|
|
202
|
+
let w = c.current;
|
|
203
|
+
if (!(!w || t.disabled)) return w.addEventListener(te, x), () => w.removeEventListener(te, x);
|
|
204
|
+
}, [E, t.onSelect, t.disabled]);
|
|
205
|
+
function x() {
|
|
206
|
+
var w, k;
|
|
207
|
+
U(), (k = (w = b.current).onSelect) == null || k.call(w, p.current);
|
|
208
|
+
}
|
|
209
|
+
function U() {
|
|
210
|
+
h.setState("value", p.current, !0);
|
|
211
|
+
}
|
|
212
|
+
if (!E) return null;
|
|
213
|
+
let { disabled: A, value: O, onSelect: H, forceMount: ne, keywords: N, ...M } = t;
|
|
214
|
+
return n.createElement(C.div, { ref: j(c, l), ...M, id: u, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!I, "data-disabled": !!A, "data-selected": !!I, onPointerMove: A || m.getDisablePointerSelection() ? void 0 : U, onClick: A ? void 0 : x }, t.children);
|
|
215
|
+
}), je = n.forwardRef((t, l) => {
|
|
216
|
+
let { heading: r, children: f, forceMount: u, ...c } = t, d = P(), m = n.useRef(null), b = n.useRef(null), i = P(), p = L(), h = R((E) => u || p.filter() === !1 ? !0 : E.search ? E.filtered.groups.has(d) : !0);
|
|
217
|
+
$(() => p.group(d), []), ye(d, m, [t.value, t.heading, b]);
|
|
218
|
+
let I = n.useMemo(() => ({ id: d, forceMount: u }), [u]);
|
|
219
|
+
return n.createElement(C.div, { ref: j(m, l), ...c, "cmdk-group": "", role: "presentation", hidden: h ? void 0 : !0 }, r && n.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: i }, r), z(t, (E) => n.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? i : void 0 }, n.createElement(ge.Provider, { value: I }, E))));
|
|
220
|
+
}), Le = n.forwardRef((t, l) => {
|
|
221
|
+
let { alwaysRender: r, ...f } = t, u = n.useRef(null), c = R((d) => !d.search);
|
|
222
|
+
return !r && !c ? null : n.createElement(C.div, { ref: j(u, l), ...f, "cmdk-separator": "", role: "separator" });
|
|
223
|
+
}), Oe = n.forwardRef((t, l) => {
|
|
224
|
+
let { onValueChange: r, ...f } = t, u = t.value != null, c = re(), d = R((i) => i.search), m = R((i) => i.selectedItemId), b = L();
|
|
225
|
+
return n.useEffect(() => {
|
|
226
|
+
t.value != null && c.setState("search", t.value);
|
|
227
|
+
}, [t.value]), n.createElement(C.input, { ref: l, ...f, "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: u ? t.value : d, onChange: (i) => {
|
|
228
|
+
u || c.setState("search", i.target.value), r == null || r(i.target.value);
|
|
229
|
+
} });
|
|
230
|
+
}), Be = n.forwardRef((t, l) => {
|
|
231
|
+
let { children: r, label: f = "Suggestions", ...u } = t, c = n.useRef(null), d = n.useRef(null), m = R((i) => i.selectedItemId), b = L();
|
|
232
|
+
return n.useEffect(() => {
|
|
233
|
+
if (d.current && c.current) {
|
|
234
|
+
let i = d.current, p = c.current, h, I = new ResizeObserver(() => {
|
|
235
|
+
h = requestAnimationFrame(() => {
|
|
236
|
+
let E = i.offsetHeight;
|
|
237
|
+
p.style.setProperty("--cmdk-list-height", E.toFixed(1) + "px");
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
return I.observe(i), () => {
|
|
241
|
+
cancelAnimationFrame(h), I.unobserve(i);
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
}, []), n.createElement(C.div, { ref: j(c, l), ...u, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": m, "aria-label": f, id: b.listId }, z(t, (i) => n.createElement("div", { ref: j(d, b.listInnerRef), "cmdk-list-sizer": "" }, i)));
|
|
245
|
+
}), ze = n.forwardRef((t, l) => {
|
|
246
|
+
let { open: r, onOpenChange: f, overlayClassName: u, contentClassName: c, container: d, ...m } = t;
|
|
247
|
+
return n.createElement(Ee, { open: r, onOpenChange: f }, n.createElement(ke, { container: d }, n.createElement(Se, { "cmdk-overlay": "", className: u }), n.createElement(Ie, { "aria-label": t.label, "cmdk-dialog": "", className: c }, n.createElement(be, { ref: l, ...m }))));
|
|
248
|
+
}), Ue = n.forwardRef((t, l) => R((r) => r.filtered.count === 0) ? n.createElement(C.div, { ref: l, ...t, "cmdk-empty": "", role: "presentation" }) : null), He = n.forwardRef((t, l) => {
|
|
249
|
+
let { progress: r, children: f, label: u = "Loading...", ...c } = t;
|
|
250
|
+
return n.createElement(C.div, { ref: l, ...c, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": u }, z(t, (d) => n.createElement("div", { "aria-hidden": !0 }, d)));
|
|
251
|
+
}), Ze = Object.assign(be, { List: Be, Item: Ve, Input: Oe, Group: je, Separator: Le, Dialog: ze, Empty: Ue, Loading: He });
|
|
252
|
+
function Ne(t, l) {
|
|
253
|
+
let r = t.nextElementSibling;
|
|
254
|
+
for (; r; ) {
|
|
255
|
+
if (r.matches(l)) return r;
|
|
256
|
+
r = r.nextElementSibling;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
function Te(t, l) {
|
|
260
|
+
let r = t.previousElementSibling;
|
|
261
|
+
for (; r; ) {
|
|
262
|
+
if (r.matches(l)) return r;
|
|
263
|
+
r = r.previousElementSibling;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
function we(t) {
|
|
267
|
+
let l = n.useRef(t);
|
|
268
|
+
return $(() => {
|
|
269
|
+
l.current = t;
|
|
270
|
+
}), l;
|
|
271
|
+
}
|
|
272
|
+
var $ = typeof window > "u" ? n.useEffect : n.useLayoutEffect;
|
|
273
|
+
function K(t) {
|
|
274
|
+
let l = n.useRef();
|
|
275
|
+
return l.current === void 0 && (l.current = t()), l;
|
|
276
|
+
}
|
|
277
|
+
function R(t) {
|
|
278
|
+
let l = re(), r = () => t(l.snapshot());
|
|
279
|
+
return n.useSyncExternalStore(l.subscribe, r, r);
|
|
280
|
+
}
|
|
281
|
+
function ye(t, l, r, f = []) {
|
|
282
|
+
let u = n.useRef(), c = L();
|
|
283
|
+
return $(() => {
|
|
284
|
+
var d;
|
|
285
|
+
let m = (() => {
|
|
286
|
+
var i;
|
|
287
|
+
for (let p of r) {
|
|
288
|
+
if (typeof p == "string") return p.trim();
|
|
289
|
+
if (typeof p == "object" && "current" in p) return p.current ? (i = p.current.textContent) == null ? void 0 : i.trim() : u.current;
|
|
290
|
+
}
|
|
291
|
+
})(), b = f.map((i) => i.trim());
|
|
292
|
+
c.value(t, m, b), (d = l.current) == null || d.setAttribute(F, m), u.current = m;
|
|
293
|
+
}), u;
|
|
294
|
+
}
|
|
295
|
+
var We = () => {
|
|
296
|
+
let [t, l] = n.useState(), r = K(() => /* @__PURE__ */ new Map());
|
|
297
|
+
return $(() => {
|
|
298
|
+
r.current.forEach((f) => f()), r.current = /* @__PURE__ */ new Map();
|
|
299
|
+
}, [t]), (f, u) => {
|
|
300
|
+
r.current.set(f, u), l({});
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
function Ge(t) {
|
|
304
|
+
let l = t.type;
|
|
305
|
+
return typeof l == "function" ? l(t.props) : "render" in l ? l.render(t.props) : t;
|
|
306
|
+
}
|
|
307
|
+
function z({ asChild: t, children: l }, r) {
|
|
308
|
+
return t && n.isValidElement(l) ? n.cloneElement(Ge(l), { ref: l.ref }, r(l.props.children)) : r(l);
|
|
309
|
+
}
|
|
310
|
+
var Je = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
311
|
+
export {
|
|
312
|
+
Ze as _
|
|
313
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
2
|
import R from "react";
|
|
3
3
|
import { g as b } from "./_commonjsHelpers-C6fGbg64.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as w } from "./index-Bk324h27.js";
|
|
5
5
|
import { jsx as N } from "react/jsx-runtime";
|
|
6
6
|
var v = { exports: {} }, u = {};
|
|
7
7
|
/**
|
|
@@ -18,7 +18,7 @@ function M() {
|
|
|
18
18
|
if (h) return u;
|
|
19
19
|
h = 1;
|
|
20
20
|
var c = R;
|
|
21
|
-
function
|
|
21
|
+
function d(n) {
|
|
22
22
|
var r = "https://react.dev/errors/" + n;
|
|
23
23
|
if (1 < arguments.length) {
|
|
24
24
|
r += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
@@ -27,21 +27,21 @@ function M() {
|
|
|
27
27
|
}
|
|
28
28
|
return "Minified React error #" + n + "; visit " + r + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function f() {
|
|
31
31
|
}
|
|
32
32
|
var o = {
|
|
33
33
|
d: {
|
|
34
|
-
f
|
|
34
|
+
f,
|
|
35
35
|
r: function() {
|
|
36
|
-
throw Error(
|
|
36
|
+
throw Error(d(522));
|
|
37
37
|
},
|
|
38
|
-
D:
|
|
39
|
-
C:
|
|
40
|
-
L:
|
|
41
|
-
m:
|
|
42
|
-
X:
|
|
43
|
-
S:
|
|
44
|
-
M:
|
|
38
|
+
D: f,
|
|
39
|
+
C: f,
|
|
40
|
+
L: f,
|
|
41
|
+
m: f,
|
|
42
|
+
X: f,
|
|
43
|
+
S: f,
|
|
44
|
+
M: f
|
|
45
45
|
},
|
|
46
46
|
p: 0,
|
|
47
47
|
findDOMNode: null
|
|
@@ -65,7 +65,7 @@ function M() {
|
|
|
65
65
|
return u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = o, u.createPortal = function(n, r) {
|
|
66
66
|
var a = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
67
67
|
if (!r || r.nodeType !== 1 && r.nodeType !== 9 && r.nodeType !== 11)
|
|
68
|
-
throw Error(
|
|
68
|
+
throw Error(d(299));
|
|
69
69
|
return g(n, r, null, a);
|
|
70
70
|
}, u.flushSync = function(n) {
|
|
71
71
|
var r = y.T, a = o.p;
|
|
@@ -146,7 +146,7 @@ function M() {
|
|
|
146
146
|
return y.H.useHostTransitionStatus();
|
|
147
147
|
}, u.version = "19.0.0", u;
|
|
148
148
|
}
|
|
149
|
-
var
|
|
149
|
+
var l = {};
|
|
150
150
|
/**
|
|
151
151
|
* @license React
|
|
152
152
|
* react-dom.development.js
|
|
@@ -161,10 +161,10 @@ function A() {
|
|
|
161
161
|
return S || (S = 1, process.env.NODE_ENV !== "production" && function() {
|
|
162
162
|
function c() {
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function d(t) {
|
|
165
165
|
return "" + t;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function f(t, e, i) {
|
|
168
168
|
var p = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
169
169
|
try {
|
|
170
170
|
var _ = !1;
|
|
@@ -174,7 +174,7 @@ function A() {
|
|
|
174
174
|
return _ && (console.error(
|
|
175
175
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
176
176
|
typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object"
|
|
177
|
-
),
|
|
177
|
+
), d(p)), {
|
|
178
178
|
$$typeof: r,
|
|
179
179
|
key: p == null ? null : "" + p,
|
|
180
180
|
children: t,
|
|
@@ -225,12 +225,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
225
225
|
}, r = Symbol.for("react.portal"), a = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
226
226
|
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
227
227
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
228
|
-
),
|
|
228
|
+
), l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, l.createPortal = function(t, e) {
|
|
229
229
|
var i = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
230
230
|
if (!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)
|
|
231
231
|
throw Error("Target container is not a DOM element.");
|
|
232
|
-
return
|
|
233
|
-
},
|
|
232
|
+
return f(t, e, null, i);
|
|
233
|
+
}, l.flushSync = function(t) {
|
|
234
234
|
var e = a.T, i = n.p;
|
|
235
235
|
try {
|
|
236
236
|
if (a.T = null, n.p = 2, t)
|
|
@@ -240,7 +240,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
240
240
|
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, l.preconnect = function(t, e) {
|
|
244
244
|
typeof t == "string" && t ? e != null && typeof e != "object" ? console.error(
|
|
245
245
|
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
246
246
|
g(e)
|
|
@@ -251,7 +251,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
251
251
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
252
252
|
s(t)
|
|
253
253
|
), typeof t == "string" && (e ? (e = e.crossOrigin, e = typeof e == "string" ? e === "use-credentials" ? e : "" : void 0) : e = null, n.d.C(t, e));
|
|
254
|
-
},
|
|
254
|
+
}, l.prefetchDNS = function(t) {
|
|
255
255
|
if (typeof t != "string" || !t)
|
|
256
256
|
console.error(
|
|
257
257
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
@@ -268,7 +268,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
268
268
|
);
|
|
269
269
|
}
|
|
270
270
|
typeof t == "string" && n.d.D(t);
|
|
271
|
-
},
|
|
271
|
+
}, l.preinit = function(t, e) {
|
|
272
272
|
if (typeof t == "string" && t ? e == null || typeof e != "object" ? console.error(
|
|
273
273
|
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
274
274
|
g(e)
|
|
@@ -295,7 +295,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
295
295
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
|
-
},
|
|
298
|
+
}, l.preinitModule = function(t, e) {
|
|
299
299
|
var i = "";
|
|
300
300
|
if (typeof t == "string" && t || (i += " The `href` argument encountered was " + s(t) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + s(e) + "." : e && "as" in e && e.as !== "script" && (i += " The `as` option encountered was " + g(e.as) + "."), i)
|
|
301
301
|
console.error(
|
|
@@ -321,7 +321,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
321
321
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0,
|
|
322
322
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
323
323
|
})) : e == null && n.d.M(t));
|
|
324
|
-
},
|
|
324
|
+
}, l.preload = function(t, e) {
|
|
325
325
|
var i = "";
|
|
326
326
|
if (typeof t == "string" && t || (i += " The `href` argument encountered was " + s(t) + "."), e == null || typeof e != "object" ? i += " The `options` argument encountered was " + s(e) + "." : typeof e.as == "string" && e.as || (i += " The `as` option encountered was " + s(e.as) + "."), i && console.error(
|
|
327
327
|
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
@@ -344,7 +344,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
344
344
|
media: typeof e.media == "string" ? e.media : void 0
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
|
-
},
|
|
347
|
+
}, l.preloadModule = function(t, e) {
|
|
348
348
|
var i = "";
|
|
349
349
|
typeof t == "string" && t || (i += " The `href` argument encountered was " + s(t) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + s(e) + "." : e && "as" in e && typeof e.as != "string" && (i += " The `as` option encountered was " + s(e.as) + "."), i && console.error(
|
|
350
350
|
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
@@ -357,16 +357,16 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
357
357
|
crossOrigin: i,
|
|
358
358
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0
|
|
359
359
|
})) : n.d.m(t));
|
|
360
|
-
},
|
|
360
|
+
}, l.requestFormReset = function(t) {
|
|
361
361
|
n.d.r(t);
|
|
362
|
-
},
|
|
362
|
+
}, l.unstable_batchedUpdates = function(t, e) {
|
|
363
363
|
return t(e);
|
|
364
|
-
},
|
|
364
|
+
}, l.useFormState = function(t, e, i) {
|
|
365
365
|
return y().useFormState(t, e, i);
|
|
366
|
-
},
|
|
366
|
+
}, l.useFormStatus = function() {
|
|
367
367
|
return y().useHostTransitionStatus();
|
|
368
|
-
},
|
|
369
|
-
}()),
|
|
368
|
+
}, l.version = "19.0.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
369
|
+
}()), l;
|
|
370
370
|
}
|
|
371
371
|
var E;
|
|
372
372
|
function L() {
|
|
@@ -378,8 +378,8 @@ function L() {
|
|
|
378
378
|
throw new Error("^_^");
|
|
379
379
|
try {
|
|
380
380
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c);
|
|
381
|
-
} catch (
|
|
382
|
-
console.error(
|
|
381
|
+
} catch (d) {
|
|
382
|
+
console.error(d);
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
}
|
|
@@ -404,15 +404,15 @@ var P = [
|
|
|
404
404
|
"span",
|
|
405
405
|
"svg",
|
|
406
406
|
"ul"
|
|
407
|
-
], H = P.reduce((c,
|
|
408
|
-
const
|
|
409
|
-
const { asChild:
|
|
410
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ N(
|
|
407
|
+
], H = P.reduce((c, d) => {
|
|
408
|
+
const f = w(`Primitive.${d}`), o = D.forwardRef((s, g) => {
|
|
409
|
+
const { asChild: y, ...m } = s, n = y ? f : d;
|
|
410
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ N(n, { ...m, ref: g });
|
|
411
411
|
});
|
|
412
|
-
return
|
|
412
|
+
return o.displayName = `Primitive.${d}`, { ...c, [d]: o };
|
|
413
413
|
}, {});
|
|
414
|
-
function U(c,
|
|
415
|
-
c && T.flushSync(() => c.dispatchEvent(
|
|
414
|
+
function U(c, d) {
|
|
415
|
+
c && T.flushSync(() => c.dispatchEvent(d));
|
|
416
416
|
}
|
|
417
417
|
export {
|
|
418
418
|
H as P,
|