welcome-ui 9.0.0-alpha.2 → 9.0.0
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/README.md +47 -3
- package/dist/2W3RN7C5-bkX-rIa3.js +61 -0
- package/dist/4I4MLMKD-BLxAidnq.js +43 -0
- package/dist/Accordion.js +6 -6
- package/dist/Alert.js +1 -1
- package/dist/AspectRatio.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/{4CMBR7SL-Dhp8uJop.js → B7UTNDHN-BlIblHCu.js} +59 -59
- package/dist/Badge.js +1 -1
- package/dist/Breadcrumb.css +1 -1
- package/dist/Breadcrumb.js +27 -27
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/Checkbox.css +1 -1
- package/dist/Checkbox.js +22 -22
- package/dist/CloseButton.js +3 -3
- package/dist/{SYRFVSLH-CHNUB1rW.js → DSAASPLT-BaaCUKsb.js} +7 -7
- package/dist/DatePicker.js +5 -5
- package/dist/DateTimePicker.js +2 -2
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.js +67 -67
- package/dist/DropdownMenu.js +261 -259
- package/dist/Field.js +1 -1
- package/dist/FieldGroup.js +1 -1
- package/dist/FileDrop.js +194 -221
- package/dist/FileUpload.js +2 -2
- package/dist/GVVKDT6A-bET6V7Py.js +724 -0
- package/dist/Hint.js +1 -1
- package/dist/{Icon-BisRi8B3.js → Icon-EG7O4YwD.js} +1 -1
- package/dist/Icon.js +12 -12
- package/dist/InputText.js +1 -1
- package/dist/{ASMQKSDT-SH1qSiMi.js → KPUWHTQJ-D2TPji47.js} +30 -30
- package/dist/Label.js +3 -3
- package/dist/Link.css +1 -1
- package/dist/Link.js +27 -27
- package/dist/Loader.js +1 -1
- package/dist/Logo.js +1 -1
- package/dist/Modal.js +10 -10
- package/dist/{JC64G2H7-DPy9R0De.js → NI3IVY7K-Ztb3-XAv.js} +571 -571
- package/dist/{P4IRICAX-7kH4HzWI.js → NMGNQVTG-C6TqBngP.js} +5 -5
- package/dist/{LVA2YJMS-NUHCRwFZ.js → OE2EFRVA-C3721cM3.js} +316 -315
- package/dist/{ITI7HKP4-C5xLpoVY.js → OLVWQA7U-DysaSaZj.js} +59 -59
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.js +81 -73
- package/dist/PasswordInput.js +17 -18
- package/dist/Popover.js +14 -14
- package/dist/{YV4JVR4I-CVFstk2K.js → RTNCFSKZ-qpPg689E.js} +75 -73
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +29 -29
- package/dist/RadioGroup.js +21 -21
- package/dist/RadioTab.js +2 -2
- package/dist/{P2CTZE2T-D1TepwxQ.js → SBSPVDDI-DJKkC1eb.js} +43 -43
- package/dist/{NLEBE274-B4zy25kL.js → SQZLCNLX-CHDXnZ16.js} +16 -16
- package/dist/Search.js +2 -2
- package/dist/Select.js +170 -181
- package/dist/Slider.js +1 -1
- package/dist/Swiper.css +1 -1
- package/dist/Swiper.js +151 -151
- package/dist/{VGCJ63VH-CVhs4PYt.js → T22PY7TE-C1N0q8Kn.js} +109 -109
- package/dist/Table.js +1 -1
- package/dist/Tabs.js +303 -308
- package/dist/Tag.js +3 -3
- package/dist/Text.js +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/TimePicker.js +2 -2
- package/dist/Toast.js +1 -1
- package/dist/Toggle.js +2 -2
- package/dist/Tooltip.js +72 -72
- package/dist/VariantIcon.js +3 -3
- package/dist/WelcomeLoader.js +1 -1
- package/dist/XCKGTAUF-DkxWCbaW.js +25 -0
- package/dist/Y67KZUMI-DFEgrUv2.js +15 -0
- package/dist/{AXB53BZF-BHeessqV.js → ZTXFEM5L-CkrIQCN1.js} +7 -7
- package/dist/{field-icon-size-Du58qHNC.js → field-icon-size-Z5NulTSk.js} +216 -224
- package/dist/{index-5rXezknO.js → index-BC2bF45u.js} +1 -1
- package/dist/{index-C8GsqBDe.js → index-BeetbagJ.js} +1 -1
- package/dist/{index-BJLXLdM3.js → index-Bt79XJ8R.js} +1 -1
- package/dist/{index-Dcq5gh3E.js → index-BtwrJ6N4.js} +1 -1
- package/dist/{index-DL4-ut3P.js → index-CCASZBtz.js} +1 -1
- package/dist/{index-lbUBMgHp.js → index-CPqDZeah.js} +2 -2
- package/dist/{index-CTgip19b.js → index-CQEPCbEE.js} +1 -1
- package/dist/{index-CnxSNAPH.js → index-Crpe9CvH.js} +1 -1
- package/dist/{index-CWVOLBDY.js → index-D5a8Oe6k.js} +1 -1
- package/dist/{index-C1jjVTAc.js → index-D8dq-I5s.js} +1 -1
- package/dist/{index-Cvtm6uuS.js → index-DkwTwo3z.js} +1 -1
- package/dist/{index-BG2aV9o8.js → index-DnO8yBVT.js} +1 -1
- package/dist/index.css +0 -0
- package/dist/tslib.es6-DpB4Y59c.js +683 -0
- package/dist/types/components/Pagination/index.d.ts +1 -2
- package/dist/types/components/Pagination/types.d.ts +5 -2
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
- package/dist/types/components/PasswordInput/types.d.ts +1 -1
- package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -1
- package/dist/types/components/Tabs/index.d.ts +1 -1
- package/dist/types/components/Tabs/types.d.ts +1 -2
- package/dist/types/components/Tabs/utils.d.ts +1 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/theme/index.d.ts +0 -0
- package/dist/types/utils/useForkRef.d.ts +7 -1
- package/dist/useForkRef-D807AV7D.js +22 -0
- package/dist/{utils-BNMgUIHQ.js → utils-BpbIqM56.js} +1 -1
- package/dist/utils.js +2 -2
- package/package.json +5 -5
- package/dist/BYC7LY2E-DbSoi9cN.js +0 -673
- package/dist/KUU7WJ55-CsIy9XMu.js +0 -61
- package/dist/MTZPJQMC-D_TnSwZf.js +0 -15
- package/dist/QYJ6MIDR-Dm7lYMh6.js +0 -43
- package/dist/X5NMLKT6-PeY306ft.js +0 -25
- package/dist/index--0U5Rubs.js +0 -644
- /package/dist/{index-PAaZGbyz.js → index-CdiHdiVB.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { createContext as te, useRef as
|
|
4
|
-
import { u as ke } from "./
|
|
5
|
-
import { g as ze } from "./
|
|
2
|
+
import { e as Y, h as $, g as Ce, c as q, U as xe, _ as G, w as J, d as S, p as Q, a as P, r as X, f as Z, b as ee, A as Se, u as R, ao as Pe, ap as O, j as A, aj as we, l as V, aq as he, ar as Ee, x as ye, O as Te, as as De, v as Re } from "./OE2EFRVA-C3721cM3.js";
|
|
3
|
+
import { createContext as te, useRef as F, useEffect as Oe, useContext as Ae, useCallback as Fe, useMemo as _e } from "react";
|
|
4
|
+
import { u as ke } from "./2W3RN7C5-bkX-rIa3.js";
|
|
5
|
+
import { g as ze } from "./RTNCFSKZ-qpPg689E.js";
|
|
6
6
|
import { jsx as Ke } from "react/jsx-runtime";
|
|
7
|
-
var w =
|
|
7
|
+
var w = Y(), Le = w.useContext;
|
|
8
8
|
w.useScopedContext;
|
|
9
9
|
w.useProviderContext;
|
|
10
|
-
var Ne = w.ContextProvider, Be = w.ScopedContextProvider, h =
|
|
10
|
+
var Ne = w.ContextProvider, Be = w.ScopedContextProvider, h = Y(
|
|
11
11
|
[Ne],
|
|
12
12
|
[Be]
|
|
13
13
|
), Me = h.useContext;
|
|
@@ -16,19 +16,19 @@ var at = h.useProviderContext, ut = h.ContextProvider, lt = h.ScopedContextProvi
|
|
|
16
16
|
void 0
|
|
17
17
|
), Ue = te(
|
|
18
18
|
void 0
|
|
19
|
-
),
|
|
19
|
+
), je = { id: null };
|
|
20
20
|
function ct(r, n, o = !1) {
|
|
21
21
|
const t = r.findIndex((u) => u.id === n);
|
|
22
22
|
return [
|
|
23
23
|
...r.slice(t + 1),
|
|
24
|
-
...o ? [
|
|
24
|
+
...o ? [je] : [],
|
|
25
25
|
...r.slice(0, t)
|
|
26
26
|
];
|
|
27
27
|
}
|
|
28
28
|
function ft(r, n) {
|
|
29
29
|
return r.find((o) => !o.disabled);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Ve(r, n) {
|
|
32
32
|
return n && r.item(n) || null;
|
|
33
33
|
}
|
|
34
34
|
function dt(r) {
|
|
@@ -42,8 +42,8 @@ function dt(r) {
|
|
|
42
42
|
}
|
|
43
43
|
return n;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
if (
|
|
45
|
+
function We(r, n = !1) {
|
|
46
|
+
if ($(r))
|
|
47
47
|
r.setSelectionRange(
|
|
48
48
|
n ? r.value.length : 0,
|
|
49
49
|
r.value.length
|
|
@@ -53,25 +53,25 @@ function qe(r, n = !1) {
|
|
|
53
53
|
o == null || o.selectAllChildren(r), n && (o == null || o.collapseToEnd());
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
r[
|
|
56
|
+
var _ = Symbol("FOCUS_SILENTLY");
|
|
57
|
+
function Ye(r) {
|
|
58
|
+
r[_] = !0, r.focus({ preventScroll: !0 });
|
|
59
59
|
}
|
|
60
60
|
function mt(r) {
|
|
61
|
-
const n = r[
|
|
62
|
-
return delete r[
|
|
61
|
+
const n = r[_];
|
|
62
|
+
return delete r[_], n;
|
|
63
63
|
}
|
|
64
64
|
function re(r, n, o) {
|
|
65
65
|
return !(!n || n === o || !r.item(n.id));
|
|
66
66
|
}
|
|
67
|
-
var
|
|
67
|
+
var $e = "div", ne = q(
|
|
68
68
|
function(n) {
|
|
69
69
|
var o = n, {
|
|
70
70
|
store: t,
|
|
71
71
|
shouldRegisterItem: u = !0,
|
|
72
72
|
getItem: d = xe,
|
|
73
73
|
element: g
|
|
74
|
-
} = o, v =
|
|
74
|
+
} = o, v = G(o, [
|
|
75
75
|
"store",
|
|
76
76
|
"shouldRegisterItem",
|
|
77
77
|
"getItem",
|
|
@@ -80,7 +80,7 @@ var We = "div", ne = Y(
|
|
|
80
80
|
]);
|
|
81
81
|
const c = Le();
|
|
82
82
|
t = t || c;
|
|
83
|
-
const m = J(v.id), p =
|
|
83
|
+
const m = J(v.id), p = F(g);
|
|
84
84
|
return Oe(() => {
|
|
85
85
|
const i = p.current;
|
|
86
86
|
if (!m || !i || !u) return;
|
|
@@ -93,10 +93,10 @@ var We = "div", ne = Y(
|
|
|
93
93
|
);
|
|
94
94
|
Z(function(n) {
|
|
95
95
|
const o = ne(n);
|
|
96
|
-
return ee(
|
|
96
|
+
return ee($e, o);
|
|
97
97
|
});
|
|
98
|
-
var
|
|
99
|
-
function
|
|
98
|
+
var qe = "button";
|
|
99
|
+
function Ge(r) {
|
|
100
100
|
return O(r) ? !0 : r.tagName === "INPUT" && !Te(r);
|
|
101
101
|
}
|
|
102
102
|
function Je(r, n = !1) {
|
|
@@ -107,7 +107,7 @@ function Qe(r, n = !1) {
|
|
|
107
107
|
const { top: o } = r.getBoundingClientRect();
|
|
108
108
|
return n ? o + r.clientHeight : o;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function W(r, n, o, t = !1) {
|
|
111
111
|
var u;
|
|
112
112
|
if (!n || !o) return;
|
|
113
113
|
const { renderedItems: d } = n.getState(), g = De(r);
|
|
@@ -118,7 +118,7 @@ function q(r, n, o, t = !1) {
|
|
|
118
118
|
const i = c;
|
|
119
119
|
if (c = o(p), !c) break;
|
|
120
120
|
if (c === i) continue;
|
|
121
|
-
const b = (u =
|
|
121
|
+
const b = (u = Ve(n, c)) == null ? void 0 : u.element;
|
|
122
122
|
if (!b) continue;
|
|
123
123
|
const C = Qe(b, t) - v, l = Math.abs(C);
|
|
124
124
|
if (t && C <= 0 || !t && C >= 0) {
|
|
@@ -130,9 +130,9 @@ function q(r, n, o, t = !1) {
|
|
|
130
130
|
return c;
|
|
131
131
|
}
|
|
132
132
|
function Xe(r, n) {
|
|
133
|
-
return
|
|
133
|
+
return A(r) ? !1 : re(n, r.target);
|
|
134
134
|
}
|
|
135
|
-
var Ze =
|
|
135
|
+
var Ze = q(
|
|
136
136
|
function(n) {
|
|
137
137
|
var o = n, {
|
|
138
138
|
store: t,
|
|
@@ -143,7 +143,7 @@ var Ze = Y(
|
|
|
143
143
|
getItem: c,
|
|
144
144
|
"aria-setsize": m,
|
|
145
145
|
"aria-posinset": p
|
|
146
|
-
} = o, i =
|
|
146
|
+
} = o, i = G(o, [
|
|
147
147
|
"store",
|
|
148
148
|
"rowId",
|
|
149
149
|
"preventScrollOnKeyDown",
|
|
@@ -155,7 +155,7 @@ var Ze = Y(
|
|
|
155
155
|
]);
|
|
156
156
|
const b = Me();
|
|
157
157
|
t = t || b;
|
|
158
|
-
const f = J(i.id), C =
|
|
158
|
+
const f = J(i.id), C = F(null), l = Ae(Ue), k = Se(i) && !i.accessibleWhenDisabled, {
|
|
159
159
|
rowId: y,
|
|
160
160
|
baseElement: z,
|
|
161
161
|
isActiveItem: oe,
|
|
@@ -195,7 +195,7 @@ var Ze = Y(
|
|
|
195
195
|
const s = t == null ? void 0 : t.item(e.activeId);
|
|
196
196
|
return s != null && s.disabled || !(s != null && s.element) ? !0 : e.activeId === f;
|
|
197
197
|
}
|
|
198
|
-
}), ue =
|
|
198
|
+
}), ue = Fe(
|
|
199
199
|
(e) => {
|
|
200
200
|
var s;
|
|
201
201
|
const a = S(P({}, e), {
|
|
@@ -207,21 +207,21 @@ var Ze = Y(
|
|
|
207
207
|
return c ? c(a) : a;
|
|
208
208
|
},
|
|
209
209
|
[f, y, k, c]
|
|
210
|
-
), K = i.onFocus, T =
|
|
210
|
+
), K = i.onFocus, T = F(!1), le = R((e) => {
|
|
211
211
|
if (K == null || K(e), e.defaultPrevented || Pe(e) || !f || !t || Xe(e, t)) return;
|
|
212
212
|
const { virtualFocus: s, baseElement: a } = t.getState();
|
|
213
|
-
if (t.setActiveId(f), O(e.currentTarget) &&
|
|
213
|
+
if (t.setActiveId(f), O(e.currentTarget) && We(e.currentTarget), !s || !A(e) || Ge(e.currentTarget) || !(a != null && a.isConnected)) return;
|
|
214
214
|
we() && e.currentTarget.hasAttribute("data-autofocus") && e.currentTarget.scrollIntoView({
|
|
215
215
|
block: "nearest",
|
|
216
216
|
inline: "nearest"
|
|
217
|
-
}), T.current = !0, e.relatedTarget === a || re(t, e.relatedTarget) ?
|
|
217
|
+
}), T.current = !0, e.relatedTarget === a || re(t, e.relatedTarget) ? Ye(a) : a.focus();
|
|
218
218
|
}), L = i.onBlurCapture, ce = R((e) => {
|
|
219
219
|
if (L == null || L(e), e.defaultPrevented) return;
|
|
220
220
|
const s = t == null ? void 0 : t.getState();
|
|
221
221
|
s != null && s.virtualFocus && T.current && (T.current = !1, e.preventDefault(), e.stopPropagation());
|
|
222
|
-
}), N = i.onKeyDown, fe =
|
|
223
|
-
if (N == null || N(e), e.defaultPrevented || !
|
|
224
|
-
const { currentTarget: s } = e, a = t.getState(), D = t.item(f), I = !!(D != null && D.rowId), E = a.orientation !== "horizontal", x = a.orientation !== "vertical", M = () => !!(I || x || !a.baseElement ||
|
|
222
|
+
}), N = i.onKeyDown, fe = V(d), de = V(g), me = R((e) => {
|
|
223
|
+
if (N == null || N(e), e.defaultPrevented || !A(e) || !t) return;
|
|
224
|
+
const { currentTarget: s } = e, a = t.getState(), D = t.item(f), I = !!(D != null && D.rowId), E = a.orientation !== "horizontal", x = a.orientation !== "vertical", M = () => !!(I || x || !a.baseElement || !$(a.baseElement)), H = {
|
|
225
225
|
ArrowUp: (I || E) && t.up,
|
|
226
226
|
ArrowRight: (I || x) && t.next,
|
|
227
227
|
ArrowDown: (I || E) && t.down,
|
|
@@ -234,16 +234,16 @@ var Ze = Y(
|
|
|
234
234
|
if (M())
|
|
235
235
|
return !I || e.ctrlKey ? t == null ? void 0 : t.last() : t == null ? void 0 : t.next(-1);
|
|
236
236
|
},
|
|
237
|
-
PageUp: () =>
|
|
238
|
-
PageDown: () =>
|
|
237
|
+
PageUp: () => W(s, t, t == null ? void 0 : t.up, !0),
|
|
238
|
+
PageDown: () => W(s, t, t == null ? void 0 : t.down)
|
|
239
239
|
}[e.key];
|
|
240
240
|
if (H) {
|
|
241
241
|
if (O(s)) {
|
|
242
|
-
const
|
|
242
|
+
const j = he(s), ve = x && e.key === "ArrowLeft", pe = x && e.key === "ArrowRight", Ie = E && e.key === "ArrowUp", ge = E && e.key === "ArrowDown";
|
|
243
243
|
if (pe || ge) {
|
|
244
244
|
const { length: be } = Ee(s);
|
|
245
|
-
if (
|
|
246
|
-
} else if ((ve || Ie) &&
|
|
245
|
+
if (j.end !== be) return;
|
|
246
|
+
} else if ((ve || Ie) && j.start !== 0) return;
|
|
247
247
|
}
|
|
248
248
|
const U = H();
|
|
249
249
|
if (fe(e) || U !== void 0) {
|
|
@@ -251,7 +251,7 @@ var Ze = Y(
|
|
|
251
251
|
e.preventDefault(), t.move(U);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
}), B =
|
|
254
|
+
}), B = _e(
|
|
255
255
|
() => ({ id: f, baseElement: z }),
|
|
256
256
|
[f, z]
|
|
257
257
|
);
|
|
@@ -281,7 +281,7 @@ var Ze = Y(
|
|
|
281
281
|
), vt = Re(
|
|
282
282
|
Z(function(n) {
|
|
283
283
|
const o = Ze(n);
|
|
284
|
-
return ee(
|
|
284
|
+
return ee(qe, o);
|
|
285
285
|
})
|
|
286
286
|
);
|
|
287
287
|
export {
|
|
@@ -292,7 +292,7 @@ export {
|
|
|
292
292
|
ft as d,
|
|
293
293
|
dt as e,
|
|
294
294
|
ct as f,
|
|
295
|
-
|
|
295
|
+
Ve as g,
|
|
296
296
|
vt as h,
|
|
297
297
|
re as i,
|
|
298
298
|
ne as j,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { C as E, a as U, b as y } from "./SBSPVDDI-DJKkC1eb.js";
|
|
3
|
+
import { e as T, v as w, f as $, c as j, b as D, _ as H, w as M, N as O, A as q, $ as z, u as v, d as B, p as G, a as p, r as J } from "./OE2EFRVA-C3721cM3.js";
|
|
4
|
+
import { u as K } from "./RTNCFSKZ-qpPg689E.js";
|
|
5
5
|
import { useRef as L, useEffect as k } from "react";
|
|
6
6
|
var Q = T(
|
|
7
|
-
[
|
|
8
|
-
[
|
|
7
|
+
[U],
|
|
8
|
+
[E]
|
|
9
9
|
), V = Q.useContext, P = "input";
|
|
10
10
|
function W(u, r) {
|
|
11
11
|
if (r !== void 0)
|
|
@@ -14,13 +14,13 @@ function W(u, r) {
|
|
|
14
14
|
function X(u, r) {
|
|
15
15
|
return u === "input" && (!r || r === "radio");
|
|
16
16
|
}
|
|
17
|
-
var Y =
|
|
17
|
+
var Y = j(function(r) {
|
|
18
18
|
var d = r, {
|
|
19
19
|
store: t,
|
|
20
20
|
name: c,
|
|
21
21
|
value: i,
|
|
22
22
|
checked: m
|
|
23
|
-
} = d, o =
|
|
23
|
+
} = d, o = H(d, [
|
|
24
24
|
"store",
|
|
25
25
|
"name",
|
|
26
26
|
"value",
|
|
@@ -28,14 +28,14 @@ var Y = w(function(r) {
|
|
|
28
28
|
]);
|
|
29
29
|
const R = V();
|
|
30
30
|
t = t || R;
|
|
31
|
-
const a =
|
|
31
|
+
const a = M(o.id), l = L(null), s = K(
|
|
32
32
|
t,
|
|
33
33
|
(e) => m ?? W(i, e == null ? void 0 : e.value)
|
|
34
34
|
);
|
|
35
35
|
k(() => {
|
|
36
36
|
!a || !s || (t == null ? void 0 : t.getState().activeId) === a || t == null || t.setActiveId(a);
|
|
37
37
|
}, [t, s, a]);
|
|
38
|
-
const C = o.onChange, x =
|
|
38
|
+
const C = o.onChange, x = O(l, P), n = X(x, o.type), I = q(o), [_, S] = z();
|
|
39
39
|
k(() => {
|
|
40
40
|
const e = l.current;
|
|
41
41
|
e && (n || (s !== void 0 && (e.checked = s), c !== void 0 && (e.name = c), i !== void 0 && (e.value = `${i}`)));
|
|
@@ -50,20 +50,20 @@ var Y = w(function(r) {
|
|
|
50
50
|
g == null || g(e), !e.defaultPrevented && (n || f(e));
|
|
51
51
|
}), h = o.onFocus, F = v((e) => {
|
|
52
52
|
if (h == null || h(e), e.defaultPrevented || !n || !t) return;
|
|
53
|
-
const { moves: N, activeId:
|
|
54
|
-
N && (a &&
|
|
53
|
+
const { moves: N, activeId: A } = t.getState();
|
|
54
|
+
N && (a && A !== a || f(e));
|
|
55
55
|
});
|
|
56
|
-
return o =
|
|
56
|
+
return o = B(p({
|
|
57
57
|
id: a,
|
|
58
58
|
role: n ? void 0 : "radio",
|
|
59
59
|
type: n ? "radio" : void 0,
|
|
60
60
|
"aria-checked": s
|
|
61
61
|
}, o), {
|
|
62
|
-
ref:
|
|
62
|
+
ref: G(l, o.ref),
|
|
63
63
|
onChange: f,
|
|
64
64
|
onClick: b,
|
|
65
65
|
onFocus: F
|
|
66
|
-
}), o =
|
|
66
|
+
}), o = y(p({
|
|
67
67
|
store: t,
|
|
68
68
|
clickOnEnter: !n
|
|
69
69
|
}, o)), J(p({
|
|
@@ -71,8 +71,8 @@ var Y = w(function(r) {
|
|
|
71
71
|
value: n ? i : void 0,
|
|
72
72
|
checked: s
|
|
73
73
|
}, o));
|
|
74
|
-
}), re =
|
|
75
|
-
|
|
74
|
+
}), re = w(
|
|
75
|
+
$(function(r) {
|
|
76
76
|
const d = Y(r);
|
|
77
77
|
return D(P, d);
|
|
78
78
|
})
|
package/dist/Search.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
3
|
-
import { D as b, F as pe } from "./field-icon-size-
|
|
3
|
+
import { D as b, F as pe } from "./field-icon-size-Z5NulTSk.js";
|
|
4
4
|
import _e, { forwardRef as de, useState as me, useCallback as he, useMemo as ue, Fragment as ze } from "react";
|
|
5
5
|
import { CloseButton as ke } from "./CloseButton.js";
|
|
6
|
-
import { c as fe } from "./index-
|
|
6
|
+
import { c as fe } from "./index-CdiHdiVB.js";
|
|
7
7
|
import { c as we } from "./create-event-rXDe5aCQ.js";
|
|
8
8
|
import { t as ge } from "./throttle-BDBzFeFj.js";
|
|
9
9
|
const Ne = "_wrapper_1pzk6_2", Ie = "_indicators_1pzk6_5", Re = "_root_1pzk6_33", Se = "_transparent_1pzk6_81", xe = "_menu_1pzk6_170", ve = "_item_1pzk6_198", Ce = "_highlighted_1pzk6_212", Ee = "_selected_1pzk6_215", $e = {
|