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.
Files changed (49) hide show
  1. package/dist/4CMBR7SL-DXQR7a9T.js +308 -0
  2. package/dist/{ASMQKSDT-CyLroRiC.js → ASMQKSDT-GE79MhKX.js} +12 -12
  3. package/dist/{AXB53BZF-DBGkYxAF.js → AXB53BZF-ClCOTGI-.js} +3 -3
  4. package/dist/Accordion.js +3 -3
  5. package/dist/{BYC7LY2E-sahp7oqU.js → BYC7LY2E-DeD1QoQl.js} +108 -108
  6. package/dist/Button.js +1 -1
  7. package/dist/Checkbox.js +1 -1
  8. package/dist/Drawer.js +4 -4
  9. package/dist/DropdownMenu.js +140 -139
  10. package/dist/FieldGroup.css +1 -0
  11. package/dist/FieldGroup.js +17 -0
  12. package/dist/ITI7HKP4-MlgGFEDr.js +187 -0
  13. package/dist/InputText.css +1 -1
  14. package/dist/InputText.js +34 -34
  15. package/dist/{JC64G2H7-oyI4lllS.js → JC64G2H7-jNBZrGfv.js} +126 -126
  16. package/dist/{KUU7WJ55-iyg84yrl.js → KUU7WJ55-CRa_letc.js} +1 -1
  17. package/dist/{LVA2YJMS-BmLXjKP9.js → LVA2YJMS-C6Bdr5Em.js} +35 -35
  18. package/dist/Label.js +13 -13
  19. package/dist/{MTZPJQMC-CEQxLFTu.js → MTZPJQMC-DgscjgO6.js} +2 -2
  20. package/dist/Modal.js +3 -3
  21. package/dist/{NLEBE274-BPGIVzin.js → NLEBE274-BlP1TDp5.js} +16 -16
  22. package/dist/{P2CTZE2T-CHi91Yb8.js → P2CTZE2T-DqsBJuIy.js} +32 -32
  23. package/dist/{P4IRICAX-CIAVAXlF.js → P4IRICAX-CvgWqpy0.js} +3 -3
  24. package/dist/Popover.js +3 -3
  25. package/dist/{QYJ6MIDR-DRpzeJNT.js → QYJ6MIDR-BWg_HLyh.js} +3 -3
  26. package/dist/Radio.css +1 -1
  27. package/dist/Radio.js +39 -38
  28. package/dist/RadioGroup.css +1 -0
  29. package/dist/RadioGroup.js +72 -0
  30. package/dist/RadioTab.js +1 -1
  31. package/dist/{SYRFVSLH-vrz7_KNH.js → SYRFVSLH-D5X1Ofws.js} +3 -3
  32. package/dist/Slider.css +1 -0
  33. package/dist/Slider.js +423 -0
  34. package/dist/Tabs.js +79 -78
  35. package/dist/Toggle.js +1 -1
  36. package/dist/Tooltip.js +31 -31
  37. package/dist/{VGCJ63VH-CV_AMRHp.js → VGCJ63VH-Bdd6jzVW.js} +31 -31
  38. package/dist/{X5NMLKT6-DqDJBMYO.js → X5NMLKT6-C7-nsL44.js} +2 -2
  39. package/dist/{YV4JVR4I-CvfP1OCB.js → YV4JVR4I-BN6SUVuh.js} +54 -54
  40. package/dist/types/components/FieldGroup/index.d.ts +1 -0
  41. package/dist/types/components/FieldGroup/types.d.ts +8 -0
  42. package/dist/types/components/Label/index.d.ts +1 -1
  43. package/dist/types/components/RadioGroup/index.d.ts +2 -0
  44. package/dist/types/components/RadioGroup/types.d.ts +17 -0
  45. package/dist/types/components/Slider/Range.d.ts +6 -0
  46. package/dist/types/components/Slider/index.d.ts +10 -0
  47. package/dist/types/components/Slider/types.d.ts +28 -0
  48. package/package.json +1 -1
  49. package/dist/ITI7HKP4-BwM8j6XI.js +0 -488
package/dist/Tabs.js CHANGED
@@ -1,22 +1,23 @@
1
1
  "use client";
2
- import { jsx as P, jsxs as pe } from "react/jsx-runtime";
3
- import { C as te, a as oe, d as G, u as ve, e as Ie } from "./P2CTZE2T-CHi91Yb8.js";
4
- import { t as se, a3 as Se, B as M, A as O, C as k, N as J, b as h, d as v, D as Q, w as xe, f as B, c as W, a as j, _ as H, i as K, x as ne, m as he, u as A, v as re, a9 as _e, j as Ce, n as ge } from "./LVA2YJMS-BmLXjKP9.js";
5
- import { m as Pe, o as X, c as Te, s as D, a as w, g as Ee, d as ae, e as Y, u as z } from "./YV4JVR4I-CvfP1OCB.js";
6
- import ce, { createContext as ie, useMemo as le, useCallback as de, useRef as F, useEffect as Z, useState as q, cloneElement as we, forwardRef as ue } from "react";
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 { c as Re, a as Ne, u as $e, b as Le, d as Oe } from "./ITI7HKP4-BwM8j6XI.js";
10
- import { u as ke, a as De } from "./use-viewport-CgrficYB.js";
11
- import { e as ze, f as Me } from "./VGCJ63VH-CV_AMRHp.js";
12
- import { P as Ve, a as Ae } from "./MTZPJQMC-CEQxLFTu.js";
13
- var Fe = se(
14
- [Ae, oe],
15
- [Ve, te]
16
- ), Be = Fe.useContext;
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 We(t = {}) {
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 = Pe(
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 = Re(M(k({}, n), {
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 = Ne(), _ = M(k({}, d.getState()), {
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 $ = p[R];
114
- $ && a.renderItem(M(k({}, C), { tabId: $.id }));
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 J(
128
+ return G(
128
129
  w(o, ["value"], u),
129
130
  w(o, ["mounted"], p)
130
131
  );
131
132
  if (e)
132
- return J(
133
+ return G(
133
134
  w(e, ["selectedValue"], u),
134
135
  w(e, ["mounted"], p)
135
136
  );
136
- }), M(k(k({}, d), c), {
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 je(t, s, o) {
145
- Q(s, [o.composite, o.combobox]), t = Le(t, s, o), Y(t, o, "selectedId", "setSelectedId"), Y(t, o, "selectOnMove");
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 = $e(), o = Be() || 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(We, t);
159
- return je(e, n, t);
159
+ const [e, n] = ae(je, t);
160
+ return Be(e, n, t);
160
161
  }
161
- var U = se(
162
+ var J = se(
162
163
  [oe],
163
164
  [te]
164
- ), He = U.useScopedContext, me = U.useProviderContext, fe = U.ScopedContextProvider, Ke = "button", qe = W(function(s) {
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 = A((f) => {
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 (z(
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__ */ P(
214
- G,
214
+ render: /* @__PURE__ */ g(
215
+ U,
215
216
  h(v({}, f), {
216
- render: e.combobox && e.composite !== e.combobox ? /* @__PURE__ */ P(G, h(v({}, f), { store: e.combobox })) : f.render
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
- }), Ue = xe(
229
- B(function(s) {
229
+ }), Je = xe(
230
+ W(function(s) {
230
231
  const o = qe(s);
231
- return j(Ke, o);
232
+ return B(Ke, o);
232
233
  })
233
- ), Ge = "div", Je = W(
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__ */ P(fe, { value: e, children: i }),
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 = Oe(v({ store: e }, n)), n;
254
+ }, n), n = $e(v({ store: e }, n)), n;
254
255
  }
255
- ), Qe = B(function(s) {
256
- const o = Je(s);
257
- return j(Ge, o);
258
- }), Xe = "div", Ye = W(
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 = F(null), b = ne(a.id), x = z(
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 = z(
287
+ ), u = M(
287
288
  e,
288
289
  (l) => !!x && l.selectedId === x
289
- ), p = ze({ open: u }), I = z(p, "mounted"), S = F(
290
+ ), p = Oe({ open: u }), I = M(p, "mounted"), S = A(
290
291
  /* @__PURE__ */ new Map()
291
- ), T = A(() => {
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 g = T();
299
- if (!g) return;
299
+ const P = T();
300
+ if (!P) return;
300
301
  if (i === "reset") {
301
- g.scroll(0, 0);
302
+ P.scroll(0, 0);
302
303
  return;
303
304
  }
304
305
  if (!x) return;
305
- const N = S.current.get(x);
306
- g.scroll((l = N == null ? void 0 : N.x) != null ? l : 0, (E = N == null ? void 0 : N.y) != null ? E : 0);
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: g.scrollLeft,
310
- y: g.scrollTop
310
+ x: P.scrollLeft,
311
+ y: P.scrollTop
311
312
  });
312
313
  };
313
- return g.addEventListener("scroll", L), () => {
314
- g.removeEventListener("scroll", L);
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 $ = de(
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 = A((l) => {
331
+ ), f = a.onKeyDown, y = F((l) => {
331
332
  if (f == null || f(l), l.defaultPrevented || !(e != null && e.composite)) return;
332
- const g = {
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 (!g) return;
339
- const { selectedId: N } = e.getState(), L = g({ activeId: N });
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__ */ P(fe, { value: e, children: l }),
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 = ge(v({
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 = Me(v({ store: p }, a)), a = Ie(h(v({ store: e.panels }, a), { getItem: $ })), a;
359
+ }, a)), a = ke(v({ store: p }, a)), a = Ie(h(v({ store: e.panels }, a), { getItem: N })), a;
359
360
  }
360
- ), Ze = B(function(s) {
361
+ ), Ze = W(function(s) {
361
362
  const o = Ye(s);
362
- return j(Xe, o);
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 } = ke();
386
- return De(() => {
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__ */ P("span", { className: rt("root", `orientation-${o}`), style: n });
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 = F(), i = et(r, m), { orientation: d, selectedId: a } = z(e), { activeTab: _, tabs: c } = tt(a, t), b = ce.Children.count(t) > 1;
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__ */ P(at, { activeTab: _, listRef: m, orientation: d }) : null
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__ */ P(Ze, { className: ft("root"), ref: n, store: s, tabId: o, ...e, children: t })
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__ */ P(
442
- Ue,
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__ */ P(t, {}) : void 0,
448
+ render: t ? /* @__PURE__ */ g(t, {}) : void 0,
448
449
  store: n,
449
450
  ...r,
450
451
  children: s
451
452
  }
452
453
  )
453
- ), $t = Object.assign(St, { List: dt, Panel: bt });
454
+ ), Lt = Object.assign(St, { List: dt, Panel: bt });
454
455
  export {
455
- $t as Tab,
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-CyLroRiC.js";
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 G } from "react/jsx-runtime";
3
- import { c as J, u as K, H as Q, a as U, b as X, d as Z, e as ee } from "./BYC7LY2E-sahp7oqU.js";
4
- import { c as z, d as te, e as B, a as D, u as oe } from "./YV4JVR4I-CvfP1OCB.js";
5
- import { B as F, A as P, C as O, t as re, f as x, c as A, a as C, _ as H, i as N, v as ne, d as b, b as L, V as g, W as se, N as ae, u as y } from "./LVA2YJMS-BmLXjKP9.js";
6
- import { c as ie } from "./JC64G2H7-oyI4lllS.js";
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 = J(F(O({}, o), {
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 B(o, t, "type"), B(o, t, "skipTimeout"), K(o, r, t);
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
- [U],
38
- [Q]
39
- ), he = k.useContext, V = k.useProviderContext, Te = k.ScopedContextProvider, be = "div", _e = A(
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 = H(t, [
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 = X(L(b({}, 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 C(be, t);
88
+ return A(be, t);
89
89
  }),
90
90
  V
91
91
  ), Pe = "div", m = z({
92
92
  activeStore: null
93
93
  });
94
- function M(o) {
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 = A(
100
+ var Oe = H(
101
101
  function(r) {
102
- var t = r, { store: e, showOnHover: c = !0 } = t, s = H(t, ["store", "showOnHover"]);
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
- M(e),
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
- M(e),
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 C(Pe, t);
162
- }), ge = "div", we = A(
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 = H(t, ["store", "size"]);
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 C(ge, t);
173
+ return A(ge, t);
174
174
  });
175
- const Ae = "_root_1d43p_2", Ce = "_childItem_1d43p_22", He = {
176
- root: Ae,
177
- childItem: Ce
178
- }, j = ve(He), De = ce(
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: j("childItem"), children: o })) : o;
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: Y, clientY: q }) {
202
- n({ x: Y, y: q }), u();
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__ */ $(G, { children: [
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: j("root", r),
213
+ className: B("root", r),
214
214
  fixed: e,
215
215
  gutter: c,
216
216
  onTransitionEnd: h,