welcome-ui 0.0.0-dev.1759222868187 → 0.0.0-dev.1759252708223
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/4CMBR7SL-DXQR7a9T.js +308 -0
- package/dist/{ASMQKSDT-CyLroRiC.js → ASMQKSDT-GE79MhKX.js} +12 -12
- package/dist/{AXB53BZF-DBGkYxAF.js → AXB53BZF-ClCOTGI-.js} +3 -3
- package/dist/Accordion.js +3 -3
- package/dist/{BYC7LY2E-sahp7oqU.js → BYC7LY2E-DeD1QoQl.js} +108 -108
- package/dist/Button.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/Drawer.js +4 -4
- package/dist/DropdownMenu.js +140 -139
- package/dist/FieldGroup.css +1 -0
- package/dist/FieldGroup.js +17 -0
- package/dist/ITI7HKP4-MlgGFEDr.js +187 -0
- package/dist/InputText.css +1 -1
- package/dist/InputText.js +34 -34
- package/dist/{JC64G2H7-oyI4lllS.js → JC64G2H7-jNBZrGfv.js} +126 -126
- package/dist/{KUU7WJ55-iyg84yrl.js → KUU7WJ55-CRa_letc.js} +1 -1
- package/dist/{LVA2YJMS-BmLXjKP9.js → LVA2YJMS-C6Bdr5Em.js} +35 -35
- package/dist/Label.js +13 -13
- package/dist/{MTZPJQMC-CEQxLFTu.js → MTZPJQMC-DgscjgO6.js} +2 -2
- package/dist/Modal.js +3 -3
- package/dist/{NLEBE274-BPGIVzin.js → NLEBE274-BlP1TDp5.js} +16 -16
- package/dist/{P2CTZE2T-CHi91Yb8.js → P2CTZE2T-DqsBJuIy.js} +32 -32
- package/dist/{P4IRICAX-CIAVAXlF.js → P4IRICAX-CvgWqpy0.js} +3 -3
- package/dist/Popover.js +3 -3
- package/dist/{QYJ6MIDR-DRpzeJNT.js → QYJ6MIDR-BWg_HLyh.js} +3 -3
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +39 -38
- package/dist/RadioGroup.css +1 -0
- package/dist/RadioGroup.js +72 -0
- package/dist/RadioTab.js +1 -1
- package/dist/{SYRFVSLH-vrz7_KNH.js → SYRFVSLH-D5X1Ofws.js} +3 -3
- package/dist/Slider.css +1 -0
- package/dist/Slider.js +423 -0
- package/dist/Tabs.js +79 -78
- package/dist/Toggle.js +1 -1
- package/dist/Tooltip.js +31 -31
- package/dist/{VGCJ63VH-CV_AMRHp.js → VGCJ63VH-Bdd6jzVW.js} +31 -31
- package/dist/{X5NMLKT6-DqDJBMYO.js → X5NMLKT6-C7-nsL44.js} +2 -2
- package/dist/{YV4JVR4I-CvfP1OCB.js → YV4JVR4I-BN6SUVuh.js} +54 -54
- package/dist/types/components/FieldGroup/index.d.ts +1 -0
- package/dist/types/components/FieldGroup/types.d.ts +8 -0
- package/dist/types/components/Label/index.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +2 -0
- package/dist/types/components/RadioGroup/types.d.ts +17 -0
- package/dist/types/components/Slider/Range.d.ts +6 -0
- package/dist/types/components/Slider/index.d.ts +10 -0
- package/dist/types/components/Slider/types.d.ts +28 -0
- package/package.json +1 -1
- package/dist/ITI7HKP4-BwM8j6XI.js +0 -488
package/dist/Tabs.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { C as te, a as oe, d as
|
|
4
|
-
import { t as se,
|
|
5
|
-
import { m as
|
|
6
|
-
import ce, { createContext as ie, useMemo as le, useCallback as de, useRef as
|
|
2
|
+
import { jsx as g, jsxs as pe } from "react/jsx-runtime";
|
|
3
|
+
import { C as te, a as oe, d as U, c as ve, e as Ie } from "./P2CTZE2T-DqsBJuIy.js";
|
|
4
|
+
import { t as se, H as Se, I as z, J as O, K as k, M as G, b as h, d as v, L as Q, D as xe, f as W, c as j, a as B, _ as H, i as K, E as ne, m as he, u as F, v as re, a9 as _e, j as Ce, n as Pe } from "./LVA2YJMS-C6Bdr5Em.js";
|
|
5
|
+
import { m as ge, o as X, c as Te, s as D, d as w, f as Ee, a as ae, b as Y, u as M } from "./YV4JVR4I-BN6SUVuh.js";
|
|
6
|
+
import ce, { createContext as ie, useMemo as le, useCallback as de, useRef as A, useEffect as Z, useState as q, cloneElement as we, forwardRef as ue } from "react";
|
|
7
7
|
import { c as V } from "./classNames-qiokGROM.js";
|
|
8
8
|
import { f as ye } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { e as
|
|
12
|
-
import { P as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
[
|
|
16
|
-
|
|
9
|
+
import { u as Re, a as $e } from "./ITI7HKP4-MlgGFEDr.js";
|
|
10
|
+
import { u as Ne, a as Le } from "./use-viewport-CgrficYB.js";
|
|
11
|
+
import { e as Oe, f as ke } from "./VGCJ63VH-Bdd6jzVW.js";
|
|
12
|
+
import { P as De, a as Me } from "./MTZPJQMC-DgscjgO6.js";
|
|
13
|
+
import { c as ze, a as Ve, u as Fe } from "./4CMBR7SL-DXQR7a9T.js";
|
|
14
|
+
var Ae = se(
|
|
15
|
+
[Me, oe],
|
|
16
|
+
[De, te]
|
|
17
|
+
), We = Ae.useContext;
|
|
17
18
|
ie(!1);
|
|
18
19
|
ie(null);
|
|
19
|
-
function
|
|
20
|
+
function je(t = {}) {
|
|
20
21
|
var s = t, {
|
|
21
22
|
composite: o,
|
|
22
23
|
combobox: e
|
|
@@ -35,11 +36,11 @@ function We(t = {}) {
|
|
|
35
36
|
"focusLoop",
|
|
36
37
|
"focusShift",
|
|
37
38
|
"focusWrap"
|
|
38
|
-
], m =
|
|
39
|
+
], m = ge(
|
|
39
40
|
n.store,
|
|
40
41
|
X(o, r),
|
|
41
42
|
X(e, r)
|
|
42
|
-
), i = m == null ? void 0 : m.getState(), d =
|
|
43
|
+
), i = m == null ? void 0 : m.getState(), d = ze(z(k({}, n), {
|
|
43
44
|
store: m,
|
|
44
45
|
// We need to explicitly set the default value of `includesBaseElement` to
|
|
45
46
|
// `false` since we don't want the composite store to default it to `true`
|
|
@@ -56,7 +57,7 @@ function We(t = {}) {
|
|
|
56
57
|
"horizontal"
|
|
57
58
|
),
|
|
58
59
|
focusLoop: O(n.focusLoop, i == null ? void 0 : i.focusLoop, !0)
|
|
59
|
-
})), a =
|
|
60
|
+
})), a = Ve(), _ = z(k({}, d.getState()), {
|
|
60
61
|
selectedId: O(
|
|
61
62
|
n.selectedId,
|
|
62
63
|
i == null ? void 0 : i.selectedId,
|
|
@@ -110,8 +111,8 @@ function We(t = {}) {
|
|
|
110
111
|
const S = I.renderedItems;
|
|
111
112
|
S.some((C) => !C.tabId) && S.forEach((C, R) => {
|
|
112
113
|
if (C.tabId) return;
|
|
113
|
-
const
|
|
114
|
-
|
|
114
|
+
const N = p[R];
|
|
115
|
+
N && a.renderItem(z(k({}, C), { tabId: N.id }));
|
|
115
116
|
});
|
|
116
117
|
});
|
|
117
118
|
})
|
|
@@ -124,16 +125,16 @@ function We(t = {}) {
|
|
|
124
125
|
b = !1, c.setState("selectedId", x);
|
|
125
126
|
};
|
|
126
127
|
if (o && "setSelectElement" in o)
|
|
127
|
-
return
|
|
128
|
+
return G(
|
|
128
129
|
w(o, ["value"], u),
|
|
129
130
|
w(o, ["mounted"], p)
|
|
130
131
|
);
|
|
131
132
|
if (e)
|
|
132
|
-
return
|
|
133
|
+
return G(
|
|
133
134
|
w(e, ["selectedValue"], u),
|
|
134
135
|
w(e, ["mounted"], p)
|
|
135
136
|
);
|
|
136
|
-
}),
|
|
137
|
+
}), z(k(k({}, d), c), {
|
|
137
138
|
panels: a,
|
|
138
139
|
setSelectedId: (u) => c.setState("selectedId", u),
|
|
139
140
|
select: (u) => {
|
|
@@ -141,8 +142,8 @@ function We(t = {}) {
|
|
|
141
142
|
}
|
|
142
143
|
});
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
-
Q(s, [o.composite, o.combobox]), t =
|
|
145
|
+
function Be(t, s, o) {
|
|
146
|
+
Q(s, [o.composite, o.combobox]), t = Fe(t, s, o), Y(t, o, "selectedId", "setSelectedId"), Y(t, o, "selectOnMove");
|
|
146
147
|
const [e, n] = ae(() => t.panels, {});
|
|
147
148
|
return Q(n, [t, n]), Object.assign(
|
|
148
149
|
le(() => h(v({}, t), { panels: e }), [t, e]),
|
|
@@ -150,18 +151,18 @@ function je(t, s, o) {
|
|
|
150
151
|
);
|
|
151
152
|
}
|
|
152
153
|
function Nt(t = {}) {
|
|
153
|
-
const s =
|
|
154
|
+
const s = Re(), o = We() || s;
|
|
154
155
|
t = h(v({}, t), {
|
|
155
156
|
composite: t.composite !== void 0 ? t.composite : o,
|
|
156
157
|
combobox: t.combobox !== void 0 ? t.combobox : s
|
|
157
158
|
});
|
|
158
|
-
const [e, n] = ae(
|
|
159
|
-
return
|
|
159
|
+
const [e, n] = ae(je, t);
|
|
160
|
+
return Be(e, n, t);
|
|
160
161
|
}
|
|
161
|
-
var
|
|
162
|
+
var J = se(
|
|
162
163
|
[oe],
|
|
163
164
|
[te]
|
|
164
|
-
), He =
|
|
165
|
+
), He = J.useScopedContext, me = J.useProviderContext, fe = J.ScopedContextProvider, Ke = "button", qe = j(function(s) {
|
|
165
166
|
var o = s, {
|
|
166
167
|
store: e,
|
|
167
168
|
getItem: n
|
|
@@ -180,7 +181,7 @@ var U = se(
|
|
|
180
181
|
return n ? n(y) : y;
|
|
181
182
|
},
|
|
182
183
|
[_, n]
|
|
183
|
-
), b = r.onClick, x =
|
|
184
|
+
), b = r.onClick, x = F((f) => {
|
|
184
185
|
b == null || b(f), !f.defaultPrevented && (e == null || e.setSelectedId(a));
|
|
185
186
|
}), u = e.panels.useState(
|
|
186
187
|
(f) => {
|
|
@@ -188,7 +189,7 @@ var U = se(
|
|
|
188
189
|
return (y = f.items.find((l) => l.tabId === a)) == null ? void 0 : y.id;
|
|
189
190
|
}
|
|
190
191
|
), p = d ? r.shouldRegisterItem : !1, I = e.useState((f) => !!a && f.activeId === a), S = e.useState((f) => !!a && f.selectedId === a), T = e.useState((f) => !!e.item(f.activeId)), C = I || S && !T, R = S || ((m = r.accessibleWhenDisabled) != null ? m : !0);
|
|
191
|
-
if (
|
|
192
|
+
if (M(
|
|
192
193
|
e.combobox || e.composite,
|
|
193
194
|
"virtualFocus"
|
|
194
195
|
) && (r = h(v({}, r), {
|
|
@@ -210,10 +211,10 @@ var U = se(
|
|
|
210
211
|
render: r.render
|
|
211
212
|
};
|
|
212
213
|
r = h(v({}, r), {
|
|
213
|
-
render: /* @__PURE__ */
|
|
214
|
-
|
|
214
|
+
render: /* @__PURE__ */ g(
|
|
215
|
+
U,
|
|
215
216
|
h(v({}, f), {
|
|
216
|
-
render: e.combobox && e.composite !== e.combobox ? /* @__PURE__ */
|
|
217
|
+
render: e.combobox && e.composite !== e.combobox ? /* @__PURE__ */ g(U, h(v({}, f), { store: e.combobox })) : f.render
|
|
217
218
|
})
|
|
218
219
|
)
|
|
219
220
|
});
|
|
@@ -225,12 +226,12 @@ var U = se(
|
|
|
225
226
|
getItem: c,
|
|
226
227
|
shouldRegisterItem: p
|
|
227
228
|
})), r;
|
|
228
|
-
}),
|
|
229
|
-
|
|
229
|
+
}), Je = xe(
|
|
230
|
+
W(function(s) {
|
|
230
231
|
const o = qe(s);
|
|
231
|
-
return
|
|
232
|
+
return B(Ke, o);
|
|
232
233
|
})
|
|
233
|
-
),
|
|
234
|
+
), Ue = "div", Ge = j(
|
|
234
235
|
function(s) {
|
|
235
236
|
var o = s, { store: e } = o, n = H(o, ["store"]);
|
|
236
237
|
const r = me();
|
|
@@ -243,19 +244,19 @@ var U = se(
|
|
|
243
244
|
);
|
|
244
245
|
return n = re(
|
|
245
246
|
n,
|
|
246
|
-
(i) => /* @__PURE__ */
|
|
247
|
+
(i) => /* @__PURE__ */ g(fe, { value: e, children: i }),
|
|
247
248
|
[e]
|
|
248
249
|
), e.composite && (n = v({
|
|
249
250
|
focusable: !1
|
|
250
251
|
}, n)), n = v({
|
|
251
252
|
role: "tablist",
|
|
252
253
|
"aria-orientation": m
|
|
253
|
-
}, n), n =
|
|
254
|
+
}, n), n = $e(v({ store: e }, n)), n;
|
|
254
255
|
}
|
|
255
|
-
), Qe =
|
|
256
|
-
const o =
|
|
257
|
-
return
|
|
258
|
-
}), Xe = "div", Ye =
|
|
256
|
+
), Qe = W(function(s) {
|
|
257
|
+
const o = Ge(s);
|
|
258
|
+
return B(Ue, o);
|
|
259
|
+
}), Xe = "div", Ye = j(
|
|
259
260
|
function(s) {
|
|
260
261
|
var o = s, {
|
|
261
262
|
store: e,
|
|
@@ -277,41 +278,41 @@ var U = se(
|
|
|
277
278
|
e,
|
|
278
279
|
process.env.NODE_ENV !== "production" && "TabPanel must receive a `store` prop or be wrapped in a TabProvider component."
|
|
279
280
|
);
|
|
280
|
-
const c =
|
|
281
|
+
const c = A(null), b = ne(a.id), x = M(
|
|
281
282
|
e.panels,
|
|
282
283
|
() => {
|
|
283
284
|
var l;
|
|
284
285
|
return r || ((l = e == null ? void 0 : e.panels.item(b)) == null ? void 0 : l.tabId);
|
|
285
286
|
}
|
|
286
|
-
), u =
|
|
287
|
+
), u = M(
|
|
287
288
|
e,
|
|
288
289
|
(l) => !!x && l.selectedId === x
|
|
289
|
-
), p =
|
|
290
|
+
), p = Oe({ open: u }), I = M(p, "mounted"), S = A(
|
|
290
291
|
/* @__PURE__ */ new Map()
|
|
291
|
-
), T =
|
|
292
|
+
), T = F(() => {
|
|
292
293
|
const l = c.current;
|
|
293
294
|
return l ? d ? typeof d == "function" ? d(l) : "current" in d ? d.current : d : l : null;
|
|
294
295
|
});
|
|
295
296
|
Z(() => {
|
|
296
297
|
var l, E;
|
|
297
298
|
if (!i || !I) return;
|
|
298
|
-
const
|
|
299
|
-
if (!
|
|
299
|
+
const P = T();
|
|
300
|
+
if (!P) return;
|
|
300
301
|
if (i === "reset") {
|
|
301
|
-
|
|
302
|
+
P.scroll(0, 0);
|
|
302
303
|
return;
|
|
303
304
|
}
|
|
304
305
|
if (!x) return;
|
|
305
|
-
const
|
|
306
|
-
|
|
306
|
+
const $ = S.current.get(x);
|
|
307
|
+
P.scroll((l = $ == null ? void 0 : $.x) != null ? l : 0, (E = $ == null ? void 0 : $.y) != null ? E : 0);
|
|
307
308
|
const L = () => {
|
|
308
309
|
S.current.set(x, {
|
|
309
|
-
x:
|
|
310
|
-
y:
|
|
310
|
+
x: P.scrollLeft,
|
|
311
|
+
y: P.scrollTop
|
|
311
312
|
});
|
|
312
313
|
};
|
|
313
|
-
return
|
|
314
|
-
|
|
314
|
+
return P.addEventListener("scroll", L), () => {
|
|
315
|
+
P.removeEventListener("scroll", L);
|
|
315
316
|
};
|
|
316
317
|
}, [i, I, x, T, e]);
|
|
317
318
|
const [C, R] = q(!1);
|
|
@@ -321,27 +322,27 @@ var U = se(
|
|
|
321
322
|
const E = _e(l);
|
|
322
323
|
R(!!E.length);
|
|
323
324
|
}, []);
|
|
324
|
-
const
|
|
325
|
+
const N = de(
|
|
325
326
|
(l) => {
|
|
326
327
|
const E = h(v({}, l), { id: b || l.id, tabId: r });
|
|
327
328
|
return m ? m(E) : E;
|
|
328
329
|
},
|
|
329
330
|
[b, r, m]
|
|
330
|
-
), f = a.onKeyDown, y =
|
|
331
|
+
), f = a.onKeyDown, y = F((l) => {
|
|
331
332
|
if (f == null || f(l), l.defaultPrevented || !(e != null && e.composite)) return;
|
|
332
|
-
const
|
|
333
|
+
const P = {
|
|
333
334
|
ArrowLeft: e.previous,
|
|
334
335
|
ArrowRight: e.next,
|
|
335
336
|
Home: e.first,
|
|
336
337
|
End: e.last
|
|
337
338
|
}[l.key];
|
|
338
|
-
if (!
|
|
339
|
-
const { selectedId:
|
|
339
|
+
if (!P) return;
|
|
340
|
+
const { selectedId: $ } = e.getState(), L = P({ activeId: $ });
|
|
340
341
|
L && (l.preventDefault(), e.move(L));
|
|
341
342
|
});
|
|
342
343
|
return a = re(
|
|
343
344
|
a,
|
|
344
|
-
(l) => /* @__PURE__ */
|
|
345
|
+
(l) => /* @__PURE__ */ g(fe, { value: e, children: l }),
|
|
345
346
|
[e]
|
|
346
347
|
), a = h(v({
|
|
347
348
|
id: b,
|
|
@@ -351,15 +352,15 @@ var U = se(
|
|
|
351
352
|
children: n && !I ? null : a.children,
|
|
352
353
|
ref: Ce(c, a.ref),
|
|
353
354
|
onKeyDown: y
|
|
354
|
-
}), a =
|
|
355
|
+
}), a = Pe(v({
|
|
355
356
|
// If the tab panel is rendered as part of another composite widget such
|
|
356
357
|
// as combobox, it should not be focusable.
|
|
357
358
|
focusable: !e.composite && !C
|
|
358
|
-
}, a)), a =
|
|
359
|
+
}, a)), a = ke(v({ store: p }, a)), a = Ie(h(v({ store: e.panels }, a), { getItem: N })), a;
|
|
359
360
|
}
|
|
360
|
-
), Ze =
|
|
361
|
+
), Ze = W(function(s) {
|
|
361
362
|
const o = Ye(s);
|
|
362
|
-
return
|
|
363
|
+
return B(Xe, o);
|
|
363
364
|
});
|
|
364
365
|
const be = (t) => {
|
|
365
366
|
if (!t || typeof window > "u") return 1;
|
|
@@ -382,8 +383,8 @@ const ot = "_root_102tt_2", st = {
|
|
|
382
383
|
root: ot
|
|
383
384
|
};
|
|
384
385
|
function nt({ activeTab: t, listRef: s, orientation: o }) {
|
|
385
|
-
const [e, n] = q({}), { height: r, width: m } =
|
|
386
|
-
return
|
|
386
|
+
const [e, n] = q({}), { height: r, width: m } = Ne();
|
|
387
|
+
return Le(() => {
|
|
387
388
|
const i = s.current;
|
|
388
389
|
if (!i || !t) return;
|
|
389
390
|
const d = i.getBoundingClientRect(), a = t.getBoundingClientRect(), _ = be(i);
|
|
@@ -409,14 +410,14 @@ const rt = V(st), at = ({ activeTab: t, listRef: s, orientation: o }) => {
|
|
|
409
410
|
"--active-bar-offset": `${e.offset}px`,
|
|
410
411
|
"--active-bar-size": `${e.size}px`
|
|
411
412
|
};
|
|
412
|
-
return /* @__PURE__ */
|
|
413
|
+
return /* @__PURE__ */ g("span", { className: rt("root", `orientation-${o}`), style: n });
|
|
413
414
|
}, ct = "_root_axn0q_2", it = {
|
|
414
415
|
root: ct,
|
|
415
416
|
"size-md": "_size-md_axn0q_18",
|
|
416
417
|
"size-sm": "_size-sm_axn0q_21"
|
|
417
418
|
}, lt = V(it), dt = ue(
|
|
418
419
|
({ children: t, className: s, size: o = "md", store: e, ...n }, r) => {
|
|
419
|
-
const m =
|
|
420
|
+
const m = A(), i = et(r, m), { orientation: d, selectedId: a } = M(e), { activeTab: _, tabs: c } = tt(a, t), b = ce.Children.count(t) > 1;
|
|
420
421
|
return /* @__PURE__ */ pe(
|
|
421
422
|
Qe,
|
|
422
423
|
{
|
|
@@ -426,7 +427,7 @@ const rt = V(st), at = ({ activeTab: t, listRef: s, orientation: o }) => {
|
|
|
426
427
|
...n,
|
|
427
428
|
children: [
|
|
428
429
|
c,
|
|
429
|
-
b ? /* @__PURE__ */
|
|
430
|
+
b ? /* @__PURE__ */ g(at, { activeTab: _, listRef: m, orientation: d }) : null
|
|
430
431
|
]
|
|
431
432
|
}
|
|
432
433
|
);
|
|
@@ -434,25 +435,25 @@ const rt = V(st), at = ({ activeTab: t, listRef: s, orientation: o }) => {
|
|
|
434
435
|
), ut = "_root_1kepd_2", mt = {
|
|
435
436
|
root: ut
|
|
436
437
|
}, ft = V(mt), bt = ue(
|
|
437
|
-
({ children: t, store: s, tabId: o, ...e }, n) => /* @__PURE__ */
|
|
438
|
+
({ children: t, store: s, tabId: o, ...e }, n) => /* @__PURE__ */ g(Ze, { className: ft("root"), ref: n, store: s, tabId: o, ...e, children: t })
|
|
438
439
|
), pt = "_root_wlfaw_2", vt = {
|
|
439
440
|
root: pt
|
|
440
441
|
}, It = V(vt), St = ye(
|
|
441
|
-
({ as: t, children: s, className: o, id: e, store: n, ...r }, m) => /* @__PURE__ */
|
|
442
|
-
|
|
442
|
+
({ as: t, children: s, className: o, id: e, store: n, ...r }, m) => /* @__PURE__ */ g(
|
|
443
|
+
Je,
|
|
443
444
|
{
|
|
444
445
|
className: It("root", o),
|
|
445
446
|
id: e,
|
|
446
447
|
ref: m,
|
|
447
|
-
render: t ? /* @__PURE__ */
|
|
448
|
+
render: t ? /* @__PURE__ */ g(t, {}) : void 0,
|
|
448
449
|
store: n,
|
|
449
450
|
...r,
|
|
450
451
|
children: s
|
|
451
452
|
}
|
|
452
453
|
)
|
|
453
|
-
),
|
|
454
|
+
), Lt = Object.assign(St, { List: dt, Panel: bt });
|
|
454
455
|
export {
|
|
455
|
-
|
|
456
|
+
Lt as Tab,
|
|
456
457
|
St as TabComponent,
|
|
457
458
|
Nt as useTab
|
|
458
459
|
};
|
package/dist/Toggle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as b, jsx as _ } from "react/jsx-runtime";
|
|
3
|
-
import { C as d } from "./ASMQKSDT-
|
|
3
|
+
import { C as d } from "./ASMQKSDT-GE79MhKX.js";
|
|
4
4
|
import { forwardRef as w } from "react";
|
|
5
5
|
import { useField as x } from "./Field.js";
|
|
6
6
|
import { c as f } from "./classNames-qiokGROM.js";
|
package/dist/Tooltip.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as T, jsxs as $, Fragment as
|
|
3
|
-
import { c as
|
|
4
|
-
import { c as z,
|
|
5
|
-
import {
|
|
6
|
-
import { c as ie } from "./JC64G2H7-
|
|
2
|
+
import { jsx as T, jsxs as $, Fragment as X } from "react/jsx-runtime";
|
|
3
|
+
import { c as Y, u as q, H as G, a as Q, b as U, d as Z, e as ee } from "./BYC7LY2E-DeD1QoQl.js";
|
|
4
|
+
import { c as z, a as te, b as M, d as D, u as oe } from "./YV4JVR4I-BN6SUVuh.js";
|
|
5
|
+
import { I as F, J as P, K as O, t as re, f as x, c as H, a as A, _ as C, i as N, v as ne, d as b, b as L, W as g, X as se, M as ae, u as y } from "./LVA2YJMS-C6Bdr5Em.js";
|
|
6
|
+
import { c as ie } from "./JC64G2H7-jNBZrGfv.js";
|
|
7
7
|
import ue, { useRef as le, useEffect as w, forwardRef as ce, useState as pe, useCallback as de } from "react";
|
|
8
8
|
import { c as ve } from "./classNames-qiokGROM.js";
|
|
9
9
|
function me(o = {}) {
|
|
@@ -13,7 +13,7 @@ function me(o = {}) {
|
|
|
13
13
|
"Render a visually hidden label or use the `aria-label` or `aria-labelledby` attributes on the anchor element instead.",
|
|
14
14
|
"See https://ariakit.org/components/tooltip#tooltip-anchors-must-have-accessible-names"
|
|
15
15
|
);
|
|
16
|
-
const t = (r = o.store) == null ? void 0 : r.getState(), e =
|
|
16
|
+
const t = (r = o.store) == null ? void 0 : r.getState(), e = Y(F(O({}, o), {
|
|
17
17
|
placement: P(
|
|
18
18
|
o.placement,
|
|
19
19
|
t == null ? void 0 : t.placement,
|
|
@@ -27,16 +27,16 @@ function me(o = {}) {
|
|
|
27
27
|
return O(O({}, e), s);
|
|
28
28
|
}
|
|
29
29
|
function fe(o, r, t) {
|
|
30
|
-
return
|
|
30
|
+
return M(o, t, "type"), M(o, t, "skipTimeout"), q(o, r, t);
|
|
31
31
|
}
|
|
32
32
|
function Se(o = {}) {
|
|
33
33
|
const [r, t] = te(me, o);
|
|
34
34
|
return fe(r, t, o);
|
|
35
35
|
}
|
|
36
36
|
var k = re(
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
), he = k.useContext, V = k.useProviderContext, Te = k.ScopedContextProvider, be = "div", _e =
|
|
37
|
+
[Q],
|
|
38
|
+
[G]
|
|
39
|
+
), he = k.useContext, V = k.useProviderContext, Te = k.ScopedContextProvider, be = "div", _e = H(
|
|
40
40
|
function(r) {
|
|
41
41
|
var t = r, {
|
|
42
42
|
store: e,
|
|
@@ -45,7 +45,7 @@ var k = re(
|
|
|
45
45
|
preserveTabOrder: v = !1,
|
|
46
46
|
hideOnHoverOutside: d = !0,
|
|
47
47
|
hideOnInteractOutside: f = !0
|
|
48
|
-
} = t, a =
|
|
48
|
+
} = t, a = C(t, [
|
|
49
49
|
"store",
|
|
50
50
|
"portal",
|
|
51
51
|
"gutter",
|
|
@@ -65,7 +65,7 @@ var k = re(
|
|
|
65
65
|
const S = e.useState(
|
|
66
66
|
(i) => i.type === "description" ? "tooltip" : "none"
|
|
67
67
|
);
|
|
68
|
-
return a = b({ role: S }, a), a =
|
|
68
|
+
return a = b({ role: S }, a), a = U(L(b({}, a), {
|
|
69
69
|
store: e,
|
|
70
70
|
portal: c,
|
|
71
71
|
gutter: s,
|
|
@@ -85,21 +85,21 @@ var k = re(
|
|
|
85
85
|
), Ee = ie(
|
|
86
86
|
x(function(r) {
|
|
87
87
|
const t = _e(r);
|
|
88
|
-
return
|
|
88
|
+
return A(be, t);
|
|
89
89
|
}),
|
|
90
90
|
V
|
|
91
91
|
), Pe = "div", m = z({
|
|
92
92
|
activeStore: null
|
|
93
93
|
});
|
|
94
|
-
function
|
|
94
|
+
function j(o) {
|
|
95
95
|
return () => {
|
|
96
96
|
const { activeStore: r } = m.getState();
|
|
97
97
|
r === o && m.setState("activeStore", null);
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
var Oe =
|
|
100
|
+
var Oe = H(
|
|
101
101
|
function(r) {
|
|
102
|
-
var t = r, { store: e, showOnHover: c = !0 } = t, s =
|
|
102
|
+
var t = r, { store: e, showOnHover: c = !0 } = t, s = C(t, ["store", "showOnHover"]);
|
|
103
103
|
const v = V();
|
|
104
104
|
e = e || v, N(
|
|
105
105
|
e,
|
|
@@ -114,7 +114,7 @@ var Oe = A(
|
|
|
114
114
|
// Immediately remove the current store from the global store when
|
|
115
115
|
// the component unmounts. This is useful, for example, to avoid
|
|
116
116
|
// showing tooltips immediately on serial tests.
|
|
117
|
-
|
|
117
|
+
j(e),
|
|
118
118
|
D(e, ["mounted", "skipTimeout"], (n) => {
|
|
119
119
|
if (!e) return;
|
|
120
120
|
if (n.mounted) {
|
|
@@ -122,7 +122,7 @@ var Oe = A(
|
|
|
122
122
|
return h !== e && (h == null || h.hide()), m.setState("activeStore", e);
|
|
123
123
|
}
|
|
124
124
|
const l = setTimeout(
|
|
125
|
-
|
|
125
|
+
j(e),
|
|
126
126
|
n.skipTimeout
|
|
127
127
|
);
|
|
128
128
|
return () => clearTimeout(l);
|
|
@@ -158,10 +158,10 @@ var Oe = A(
|
|
|
158
158
|
}
|
|
159
159
|
), ye = x(function(r) {
|
|
160
160
|
const t = Oe(r);
|
|
161
|
-
return
|
|
162
|
-
}), ge = "div", we =
|
|
161
|
+
return A(Pe, t);
|
|
162
|
+
}), ge = "div", we = H(
|
|
163
163
|
function(r) {
|
|
164
|
-
var t = r, { store: e, size: c = 16 } = t, s =
|
|
164
|
+
var t = r, { store: e, size: c = 16 } = t, s = C(t, ["store", "size"]);
|
|
165
165
|
const v = he();
|
|
166
166
|
return e = e || v, N(
|
|
167
167
|
e,
|
|
@@ -170,12 +170,12 @@ var Oe = A(
|
|
|
170
170
|
}
|
|
171
171
|
), xe = x(function(r) {
|
|
172
172
|
const t = we(r);
|
|
173
|
-
return
|
|
173
|
+
return A(ge, t);
|
|
174
174
|
});
|
|
175
|
-
const
|
|
176
|
-
root:
|
|
177
|
-
childItem:
|
|
178
|
-
},
|
|
175
|
+
const He = "_root_1d43p_2", Ae = "_childItem_1d43p_22", Ce = {
|
|
176
|
+
root: He,
|
|
177
|
+
childItem: Ae
|
|
178
|
+
}, B = ve(Ce), De = ce(
|
|
179
179
|
({
|
|
180
180
|
children: o,
|
|
181
181
|
className: r = "",
|
|
@@ -196,21 +196,21 @@ const Ae = "_root_1d43p_2", Ce = "_childItem_1d43p_22", He = {
|
|
|
196
196
|
});
|
|
197
197
|
}, h = de(() => {
|
|
198
198
|
_("animating", !1);
|
|
199
|
-
}, [_]), W = (I = o == null ? void 0 : o.props) != null && I.disabled ? ue.Children.only(/* @__PURE__ */ T("span", { className:
|
|
199
|
+
}, [_]), W = (I = o == null ? void 0 : o.props) != null && I.disabled ? ue.Children.only(/* @__PURE__ */ T("span", { className: B("childItem"), children: o })) : o;
|
|
200
200
|
return w(() => {
|
|
201
|
-
function R({ clientX:
|
|
202
|
-
n({ x:
|
|
201
|
+
function R({ clientX: J, clientY: K }) {
|
|
202
|
+
n({ x: J, y: K }), u();
|
|
203
203
|
}
|
|
204
204
|
if (p && !e)
|
|
205
205
|
return p.addEventListener("mousemove", R), () => {
|
|
206
206
|
p.removeEventListener("mousemove", R);
|
|
207
207
|
};
|
|
208
|
-
}, [u, e, p]), t ? /* @__PURE__ */ $(
|
|
208
|
+
}, [u, e, p]), t ? /* @__PURE__ */ $(X, { children: [
|
|
209
209
|
/* @__PURE__ */ T(ye, { render: W, store: a }),
|
|
210
210
|
/* @__PURE__ */ $(
|
|
211
211
|
Ee,
|
|
212
212
|
{
|
|
213
|
-
className:
|
|
213
|
+
className: B("root", r),
|
|
214
214
|
fixed: e,
|
|
215
215
|
gutter: c,
|
|
216
216
|
onTransitionEnd: h,
|