welcome-ui 0.0.0-dev.1759821506923 → 0.0.0-dev.1760963883873

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 (105) hide show
  1. package/dist/2W3RN7C5-bkX-rIa3.js +61 -0
  2. package/dist/4I4MLMKD-BLxAidnq.js +43 -0
  3. package/dist/Accordion.js +6 -6
  4. package/dist/Alert.js +1 -1
  5. package/dist/AspectRatio.js +1 -1
  6. package/dist/Avatar.js +1 -1
  7. package/dist/{4CMBR7SL-Dhp8uJop.js → B7UTNDHN-BlIblHCu.js} +59 -59
  8. package/dist/Badge.js +1 -1
  9. package/dist/Breadcrumb.js +3 -3
  10. package/dist/Button.js +2 -2
  11. package/dist/ButtonGroup.js +1 -1
  12. package/dist/Card.js +1 -1
  13. package/dist/Checkbox.js +2 -2
  14. package/dist/CloseButton.js +3 -3
  15. package/dist/{SYRFVSLH-CHNUB1rW.js → DSAASPLT-BaaCUKsb.js} +7 -7
  16. package/dist/DatePicker.js +5 -5
  17. package/dist/DateTimePicker.js +2 -2
  18. package/dist/Drawer.js +7 -7
  19. package/dist/DropdownMenu.js +261 -259
  20. package/dist/Field.js +1 -1
  21. package/dist/FieldGroup.js +1 -1
  22. package/dist/FileDrop.js +194 -221
  23. package/dist/FileUpload.js +2 -2
  24. package/dist/GVVKDT6A-bET6V7Py.js +724 -0
  25. package/dist/Hint.js +1 -1
  26. package/dist/{Icon-BisRi8B3.js → Icon-EG7O4YwD.js} +1 -1
  27. package/dist/Icon.js +12 -12
  28. package/dist/InputText.js +1 -1
  29. package/dist/{ASMQKSDT-SH1qSiMi.js → KPUWHTQJ-D2TPji47.js} +30 -30
  30. package/dist/Label.js +3 -3
  31. package/dist/Link.js +3 -3
  32. package/dist/Loader.js +1 -1
  33. package/dist/Logo.js +1 -1
  34. package/dist/Modal.js +10 -10
  35. package/dist/{JC64G2H7-DPy9R0De.js → NI3IVY7K-Ztb3-XAv.js} +571 -571
  36. package/dist/{P4IRICAX-7kH4HzWI.js → NMGNQVTG-C6TqBngP.js} +5 -5
  37. package/dist/{LVA2YJMS-NUHCRwFZ.js → OE2EFRVA-C3721cM3.js} +316 -315
  38. package/dist/{ITI7HKP4-C5xLpoVY.js → OLVWQA7U-DysaSaZj.js} +59 -59
  39. package/dist/Pagination.css +1 -1
  40. package/dist/Pagination.js +81 -73
  41. package/dist/PasswordInput.js +17 -18
  42. package/dist/Popover.js +14 -14
  43. package/dist/{YV4JVR4I-CVFstk2K.js → RTNCFSKZ-qpPg689E.js} +75 -73
  44. package/dist/Radio.js +2 -2
  45. package/dist/RadioGroup.js +21 -21
  46. package/dist/RadioTab.js +2 -2
  47. package/dist/{P2CTZE2T-D1TepwxQ.js → SBSPVDDI-DJKkC1eb.js} +43 -43
  48. package/dist/{NLEBE274-B4zy25kL.js → SQZLCNLX-CHDXnZ16.js} +16 -16
  49. package/dist/Search.js +2 -2
  50. package/dist/Select.js +170 -181
  51. package/dist/Slider.js +1 -1
  52. package/dist/Swiper.css +1 -1
  53. package/dist/Swiper.js +151 -151
  54. package/dist/{VGCJ63VH-CVhs4PYt.js → T22PY7TE-C1N0q8Kn.js} +109 -109
  55. package/dist/Table.js +1 -1
  56. package/dist/Tabs.js +303 -308
  57. package/dist/Tag.js +3 -3
  58. package/dist/Text.js +1 -1
  59. package/dist/Textarea.js +1 -1
  60. package/dist/TimePicker.js +2 -2
  61. package/dist/Toast.js +1 -1
  62. package/dist/Toggle.js +2 -2
  63. package/dist/Tooltip.js +72 -72
  64. package/dist/VariantIcon.js +3 -3
  65. package/dist/WelcomeLoader.js +1 -1
  66. package/dist/XCKGTAUF-DkxWCbaW.js +25 -0
  67. package/dist/Y67KZUMI-DFEgrUv2.js +15 -0
  68. package/dist/{AXB53BZF-BHeessqV.js → ZTXFEM5L-CkrIQCN1.js} +7 -7
  69. package/dist/{field-icon-size-Du58qHNC.js → field-icon-size-Z5NulTSk.js} +216 -224
  70. package/dist/{index-5rXezknO.js → index-BC2bF45u.js} +1 -1
  71. package/dist/{index-C8GsqBDe.js → index-BeetbagJ.js} +1 -1
  72. package/dist/{index-BJLXLdM3.js → index-Bt79XJ8R.js} +1 -1
  73. package/dist/{index-Dcq5gh3E.js → index-BtwrJ6N4.js} +1 -1
  74. package/dist/{index-DL4-ut3P.js → index-CCASZBtz.js} +1 -1
  75. package/dist/{index-lbUBMgHp.js → index-CPqDZeah.js} +2 -2
  76. package/dist/{index-CTgip19b.js → index-CQEPCbEE.js} +1 -1
  77. package/dist/{index-CnxSNAPH.js → index-Crpe9CvH.js} +1 -1
  78. package/dist/{index-CWVOLBDY.js → index-D5a8Oe6k.js} +1 -1
  79. package/dist/{index-C1jjVTAc.js → index-D8dq-I5s.js} +1 -1
  80. package/dist/{index-Cvtm6uuS.js → index-DkwTwo3z.js} +1 -1
  81. package/dist/{index-BG2aV9o8.js → index-DnO8yBVT.js} +1 -1
  82. package/dist/index.css +0 -0
  83. package/dist/tslib.es6-DpB4Y59c.js +683 -0
  84. package/dist/types/components/Pagination/index.d.ts +1 -2
  85. package/dist/types/components/Pagination/types.d.ts +5 -2
  86. package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
  87. package/dist/types/components/PasswordInput/types.d.ts +1 -1
  88. package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -1
  89. package/dist/types/components/Tabs/index.d.ts +1 -1
  90. package/dist/types/components/Tabs/types.d.ts +1 -2
  91. package/dist/types/components/Tabs/utils.d.ts +1 -2
  92. package/dist/types/utils/index.d.ts +1 -0
  93. package/dist/types/utils/theme/index.d.ts +0 -0
  94. package/dist/types/utils/useForkRef.d.ts +7 -1
  95. package/dist/useForkRef-D807AV7D.js +22 -0
  96. package/dist/{utils-BNMgUIHQ.js → utils-BpbIqM56.js} +1 -1
  97. package/dist/utils.js +2 -2
  98. package/package.json +4 -5
  99. package/dist/BYC7LY2E-DbSoi9cN.js +0 -673
  100. package/dist/KUU7WJ55-CsIy9XMu.js +0 -61
  101. package/dist/MTZPJQMC-D_TnSwZf.js +0 -15
  102. package/dist/QYJ6MIDR-Dm7lYMh6.js +0 -43
  103. package/dist/X5NMLKT6-PeY306ft.js +0 -25
  104. package/dist/index--0U5Rubs.js +0 -644
  105. /package/dist/{index-PAaZGbyz.js → index-CdiHdiVB.js} +0 -0
@@ -1,21 +1,21 @@
1
1
  "use client";
2
- import { i as ot, k as C, P as at, Q as st, R as ut, S as F, A as it, x as ct, z as ft, T as lt, U as dt, M as G, e as St, g as P, b as pt, V as vt } from "./LVA2YJMS-NUHCRwFZ.js";
2
+ import { i as ot, t as C, P as st, Q as at, R as ut, S as F, J as it, G as ct, I as ft, T as lt, U as dt, M as N, d as St, a as P, u as pt, V as vt } from "./OE2EFRVA-C3721cM3.js";
3
3
  import * as I from "react";
4
4
  import X from "react";
5
- import { g as _t } from "./index-PAaZGbyz.js";
6
- function A(t, n) {
5
+ import { g as _t } from "./index-CdiHdiVB.js";
6
+ function T(t, n) {
7
7
  const e = t.__unstableInternals;
8
8
  return ot(e, "Invalid store"), e[n];
9
9
  }
10
10
  function W(t, ...n) {
11
- let e = t, l = e, s = Symbol(), o = lt;
12
- const u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), g = (a) => (v.add(a), () => v.delete(a)), x = () => {
13
- const a = u.size, r = Symbol();
11
+ let e = t, l = e, a = Symbol(), o = lt;
12
+ const u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), g = (s) => (v.add(s), () => v.delete(s)), x = () => {
13
+ const s = u.size, r = Symbol();
14
14
  u.add(r);
15
15
  const b = () => {
16
16
  u.delete(r), !u.size && o();
17
17
  };
18
- if (a) return b;
18
+ if (s) return b;
19
19
  const w = ut(e).map(
20
20
  (L) => F(
21
21
  ...n.map((V) => {
@@ -33,35 +33,35 @@ function W(t, ...n) {
33
33
  });
34
34
  })
35
35
  )
36
- ), T = [];
36
+ ), A = [];
37
37
  for (const L of v)
38
- T.push(L());
38
+ A.push(L());
39
39
  const B = n.map(Z);
40
- return o = F(...w, ...T, ...B), b;
41
- }, E = (a, r, b = m) => (b.add(r), d.set(r, a), () => {
40
+ return o = F(...w, ...A, ...B), b;
41
+ }, E = (s, r, b = m) => (b.add(r), d.set(r, s), () => {
42
42
  var w;
43
43
  (w = i.get(r)) == null || w(), i.delete(r), d.delete(r), b.delete(r);
44
- }), R = (a, r) => E(a, r), M = (a, r) => (i.set(r, r(e, e)), E(a, r)), q = (a, r) => (i.set(r, r(e, l)), E(a, r, _)), S = (a) => W(st(e, a), y), f = (a) => W(at(e, a), y), O = () => e, p = (a, r, b = !1) => {
44
+ }), R = (s, r) => E(s, r), M = (s, r) => (i.set(r, r(e, e)), E(s, r)), q = (s, r) => (i.set(r, r(e, l)), E(s, r, _)), S = (s) => W(at(e, s), y), f = (s) => W(st(e, s), y), O = () => e, p = (s, r, b = !1) => {
45
45
  var w;
46
- if (!C(e, a)) return;
47
- const T = it(r, e[a]);
48
- if (T === e[a]) return;
46
+ if (!C(e, s)) return;
47
+ const A = it(r, e[s]);
48
+ if (A === e[s]) return;
49
49
  if (!b)
50
50
  for (const h of n)
51
- (w = h == null ? void 0 : h.setState) == null || w.call(h, a, T);
51
+ (w = h == null ? void 0 : h.setState) == null || w.call(h, s, A);
52
52
  const B = e;
53
- e = ct(ft({}, e), { [a]: T });
53
+ e = ct(ft({}, e), { [s]: A });
54
54
  const L = Symbol();
55
- s = L, c.add(a);
55
+ a = L, c.add(s);
56
56
  const V = (h, D, U) => {
57
57
  var H;
58
- const $ = d.get(h), rt = (z) => U ? U.has(z) : z === a;
58
+ const $ = d.get(h), rt = (z) => U ? U.has(z) : z === s;
59
59
  (!$ || $.some(rt)) && ((H = i.get(h)) == null || H(), i.set(h, h(e, D)));
60
60
  };
61
61
  for (const h of m)
62
62
  V(h, B);
63
63
  queueMicrotask(() => {
64
- if (s !== L) return;
64
+ if (a !== L) return;
65
65
  const h = e;
66
66
  for (const D of _)
67
67
  V(D, l, c);
@@ -84,39 +84,41 @@ function W(t, ...n) {
84
84
  }
85
85
  function Rt(t, ...n) {
86
86
  if (t)
87
- return A(t, "setup")(...n);
87
+ return T(t, "setup")(...n);
88
88
  }
89
89
  function Z(t, ...n) {
90
90
  if (t)
91
- return A(t, "init")(...n);
91
+ return T(t, "init")(...n);
92
92
  }
93
93
  function k(t, ...n) {
94
94
  if (t)
95
- return A(t, "subscribe")(...n);
95
+ return T(t, "subscribe")(...n);
96
96
  }
97
97
  function tt(t, ...n) {
98
98
  if (t)
99
- return A(t, "sync")(...n);
99
+ return T(t, "sync")(...n);
100
100
  }
101
101
  function ht(t, ...n) {
102
102
  if (t)
103
- return A(t, "batch")(...n);
103
+ return T(t, "batch")(...n);
104
104
  }
105
105
  function Vt(t, ...n) {
106
106
  if (t)
107
- return A(t, "omit")(...n);
107
+ return T(t, "omit")(...n);
108
108
  }
109
- function At(t, ...n) {
109
+ function Tt(t, ...n) {
110
110
  if (t)
111
- return A(t, "pick")(...n);
111
+ return T(t, "pick")(...n);
112
112
  }
113
- function Tt(...t) {
114
- const n = t.reduce((l, s) => {
115
- var o;
116
- const u = (o = s == null ? void 0 : s.getState) == null ? void 0 : o.call(s);
117
- return u ? Object.assign(l, u) : l;
118
- }, {}), e = W(n, ...t);
119
- return Object.assign({}, ...t, e);
113
+ function At(...t) {
114
+ var n;
115
+ const e = {};
116
+ for (const a of t) {
117
+ const o = (n = a == null ? void 0 : a.getState) == null ? void 0 : n.call(a);
118
+ o && Object.assign(e, o);
119
+ }
120
+ const l = W(e, ...t);
121
+ return Object.assign({}, ...t, l);
120
122
  }
121
123
  function Dt(t, n) {
122
124
  if (process.env.NODE_ENV === "production" || !n) return;
@@ -148,20 +150,20 @@ If there's a particular need for this, please submit a feature request at https:
148
150
  `
149
151
  );
150
152
  }
151
- var j = { exports: {} }, K = {}, Y;
153
+ var j = { exports: {} }, G = {}, Y;
152
154
  function mt() {
153
- if (Y) return K;
155
+ if (Y) return G;
154
156
  Y = 1;
155
157
  var t = X;
156
158
  function n(i, d) {
157
159
  return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
158
160
  }
159
- var e = typeof Object.is == "function" ? Object.is : n, l = t.useState, s = t.useEffect, o = t.useLayoutEffect, u = t.useDebugValue;
161
+ var e = typeof Object.is == "function" ? Object.is : n, l = t.useState, a = t.useEffect, o = t.useLayoutEffect, u = t.useDebugValue;
160
162
  function c(i, d) {
161
163
  var g = d(), x = l({ inst: { value: g, getSnapshot: d } }), E = x[0].inst, R = x[1];
162
164
  return o(function() {
163
165
  E.value = g, E.getSnapshot = d, v(E) && R({ inst: E });
164
- }, [i, g, d]), s(function() {
166
+ }, [i, g, d]), a(function() {
165
167
  return v(E) && R({ inst: E }), i(function() {
166
168
  v(E) && R({ inst: E });
167
169
  });
@@ -181,11 +183,11 @@ function mt() {
181
183
  return d();
182
184
  }
183
185
  var _ = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : c;
184
- return K.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : _, K;
186
+ return G.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : _, G;
185
187
  }
186
- var N = {}, Q;
188
+ var K = {}, J;
187
189
  function Et() {
188
- return Q || (Q = 1, process.env.NODE_ENV !== "production" && function() {
190
+ return J || (J = 1, process.env.NODE_ENV !== "production" && function() {
189
191
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
190
192
  var t = X, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
191
193
  function e(S) {
@@ -199,16 +201,16 @@ function Et() {
199
201
  {
200
202
  var p = n.ReactDebugCurrentFrame, y = p.getStackAddendum();
201
203
  y !== "" && (f += "%s", O = O.concat([y]));
202
- var a = O.map(function(r) {
204
+ var s = O.map(function(r) {
203
205
  return String(r);
204
206
  });
205
- a.unshift("Warning: " + f), Function.prototype.apply.call(console[S], console, a);
207
+ s.unshift("Warning: " + f), Function.prototype.apply.call(console[S], console, s);
206
208
  }
207
209
  }
208
- function s(S, f) {
210
+ function a(S, f) {
209
211
  return S === f && (S !== 0 || 1 / S === 1 / f) || S !== S && f !== f;
210
212
  }
211
- var o = typeof Object.is == "function" ? Object.is : s, u = t.useState, c = t.useEffect, v = t.useLayoutEffect, m = t.useDebugValue, _ = !1, i = !1;
213
+ var o = typeof Object.is == "function" ? Object.is : a, u = t.useState, c = t.useEffect, v = t.useLayoutEffect, m = t.useDebugValue, _ = !1, i = !1;
212
214
  function d(S, f, O) {
213
215
  _ || t.startTransition !== void 0 && (_ = !0, e("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
214
216
  var p = f();
@@ -216,12 +218,12 @@ function Et() {
216
218
  var y = f();
217
219
  o(p, y) || (e("The result of getSnapshot should be cached to avoid an infinite loop"), i = !0);
218
220
  }
219
- var a = u({
221
+ var s = u({
220
222
  inst: {
221
223
  value: p,
222
224
  getSnapshot: f
223
225
  }
224
- }), r = a[0].inst, b = a[1];
226
+ }), r = s[0].inst, b = s[1];
225
227
  return v(function() {
226
228
  r.value = p, r.getSnapshot = f, g(r) && b({
227
229
  inst: r
@@ -251,12 +253,12 @@ function Et() {
251
253
  return f();
252
254
  }
253
255
  var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E, M = R ? x : d, q = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : M;
254
- N.useSyncExternalStore = q, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
255
- }()), N;
256
+ K.useSyncExternalStore = q, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
257
+ }()), K;
256
258
  }
257
- var J;
259
+ var Q;
258
260
  function gt() {
259
- return J || (J = 1, process.env.NODE_ENV === "production" ? j.exports = mt() : j.exports = Et()), j.exports;
261
+ return Q || (Q = 1, process.env.NODE_ENV === "production" ? j.exports = mt() : j.exports = Et()), j.exports;
260
262
  }
261
263
  var Ot = gt();
262
264
  const bt = /* @__PURE__ */ _t(Ot);
@@ -264,13 +266,13 @@ var { useSyncExternalStore: et } = bt, nt = () => () => {
264
266
  };
265
267
  function yt(t, n = dt) {
266
268
  const e = I.useCallback(
267
- (s) => t ? k(t, null, s) : nt(),
269
+ (a) => t ? k(t, null, a) : nt(),
268
270
  [t]
269
271
  ), l = () => {
270
- const s = typeof n == "string" ? n : null, o = typeof n == "function" ? n : null, u = t == null ? void 0 : t.getState();
272
+ const a = typeof n == "string" ? n : null, o = typeof n == "function" ? n : null, u = t == null ? void 0 : t.getState();
271
273
  if (o) return o(u);
272
- if (u && s && C(u, s))
273
- return u[s];
274
+ if (u && a && C(u, a))
275
+ return u[a];
274
276
  };
275
277
  return et(e, l, l);
276
278
  }
@@ -280,7 +282,7 @@ function It(t, n) {
280
282
  ), l = I.useCallback(
281
283
  (o) => t ? k(t, null, o) : nt(),
282
284
  [t]
283
- ), s = () => {
285
+ ), a = () => {
284
286
  const o = t == null ? void 0 : t.getState();
285
287
  let u = !1;
286
288
  const c = e.current;
@@ -298,29 +300,29 @@ function It(t, n) {
298
300
  }
299
301
  return u && (e.current = P({}, c)), e.current;
300
302
  };
301
- return et(l, s, s);
303
+ return et(l, a, a);
302
304
  }
303
305
  function Ct(t, n, e, l) {
304
- const s = C(n, e) ? n[e] : void 0, o = l ? n[l] : void 0, u = vt({ value: s, setValue: o });
305
- G(() => tt(t, [e], (c, v) => {
306
+ const a = C(n, e) ? n[e] : void 0, o = l ? n[l] : void 0, u = vt({ value: a, setValue: o });
307
+ N(() => tt(t, [e], (c, v) => {
306
308
  const { value: m, setValue: _ } = u.current;
307
309
  _ && c[e] !== v[e] && c[e] !== m && _(c[e]);
308
- }), [t, e]), G(() => {
309
- if (s !== void 0)
310
- return t.setState(e, s), ht(t, [e], () => {
311
- s !== void 0 && t.setState(e, s);
310
+ }), [t, e]), N(() => {
311
+ if (a !== void 0)
312
+ return t.setState(e, a), ht(t, [e], () => {
313
+ a !== void 0 && t.setState(e, a);
312
314
  });
313
315
  });
314
316
  }
315
317
  function Ut(t, n) {
316
318
  const [e, l] = I.useState(() => t(n));
317
- G(() => Z(e), [e]);
318
- const s = I.useCallback(
319
+ N(() => Z(e), [e]);
320
+ const a = I.useCallback(
319
321
  (c) => yt(e, c),
320
322
  [e]
321
323
  ), o = I.useMemo(
322
- () => St(P({}, e), { useState: s }),
323
- [e, s]
324
+ () => St(P({}, e), { useState: a }),
325
+ [e, a]
324
326
  ), u = pt(() => {
325
327
  l((c) => t(P(P({}, n), c.getState())));
326
328
  });
@@ -328,17 +330,17 @@ function Ut(t, n) {
328
330
  }
329
331
  export {
330
332
  tt as a,
331
- Ct as b,
333
+ Ut as b,
332
334
  W as c,
333
- yt as d,
335
+ Ct as d,
334
336
  k as e,
335
337
  ht as f,
336
338
  It as g,
337
339
  Z as i,
338
- Tt as m,
340
+ At as m,
339
341
  Vt as o,
340
- At as p,
342
+ Tt as p,
341
343
  Rt as s,
342
344
  Dt as t,
343
- Ut as u
345
+ yt as u
344
346
  };
package/dist/Radio.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsxs as d, jsx as a } from "react/jsx-runtime";
3
- import { R as u } from "./NLEBE274-B4zy25kL.js";
3
+ import { R as u } from "./SQZLCNLX-CHDXnZ16.js";
4
4
  import { forwardRef as w } from "react";
5
5
  import { Hint as b } from "./Hint.js";
6
6
  import { Label as v } from "./Label.js";
7
- import { c as N } from "./index-PAaZGbyz.js";
7
+ import { c as N } from "./index-CdiHdiVB.js";
8
8
  const R = "_root_1r128_2", g = "_input_1r128_8", x = "_disabled_1r128_34", $ = "_hint_1r128_69", j = {
9
9
  root: R,
10
10
  "input-wrapper": "_input-wrapper_1r128_8",
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
- import { c as x, u as P } from "./4CMBR7SL-Dhp8uJop.js";
4
- import { c as $, u as b, b as y, d as G } from "./YV4JVR4I-CVFstk2K.js";
5
- import { w as L, x as d, y as m, z as c } from "./LVA2YJMS-NUHCRwFZ.js";
6
- import { FieldGroup as j } from "./FieldGroup.js";
7
- import { Radio as N } from "./Radio.js";
8
- import { c as k } from "./index-PAaZGbyz.js";
3
+ import { c as G, u as P } from "./B7UTNDHN-BlIblHCu.js";
4
+ import { c as $, b, d as x, u as L } from "./RTNCFSKZ-qpPg689E.js";
5
+ import { F as j, G as d, H as m, I as c } from "./OE2EFRVA-C3721cM3.js";
6
+ import { FieldGroup as y } from "./FieldGroup.js";
7
+ import { Radio as F } from "./Radio.js";
8
+ import { c as N } from "./index-CdiHdiVB.js";
9
9
  import "react";
10
- function w(t = {}) {
11
- var e = L(t, []), a;
12
- const r = (a = e.store) == null ? void 0 : a.getState(), s = x(d(c({}, e), {
10
+ function k(t = {}) {
11
+ var e = j(t, []), a;
12
+ const r = (a = e.store) == null ? void 0 : a.getState(), s = G(d(c({}, e), {
13
13
  focusLoop: m(e.focusLoop, r == null ? void 0 : r.focusLoop, !0)
14
14
  })), i = d(c({}, s.getState()), {
15
15
  value: m(
@@ -23,16 +23,16 @@ function w(t = {}) {
23
23
  setValue: (l) => u.setState("value", l)
24
24
  });
25
25
  }
26
- function z(t, e, a) {
27
- return t = P(t, e, a), y(t, a, "value", "setValue"), t;
26
+ function H(t, e, a) {
27
+ return t = P(t, e, a), x(t, a, "value", "setValue"), t;
28
28
  }
29
- function F(t = {}) {
30
- const [e, a] = b(w, t);
31
- return z(e, a, t);
29
+ function O(t = {}) {
30
+ const [e, a] = b(k, t);
31
+ return H(e, a, t);
32
32
  }
33
- const O = "_root_v6e2n_2", g = {
34
- root: O
35
- }, q = k(g), M = ({
33
+ const g = "_root_v6e2n_2", q = {
34
+ root: g
35
+ }, w = N(q), K = ({
36
36
  className: t,
37
37
  dataTestId: e,
38
38
  disabled: a,
@@ -42,15 +42,15 @@ const O = "_root_v6e2n_2", g = {
42
42
  name: u,
43
43
  onChange: l,
44
44
  options: p = [],
45
- renderOption: f = N,
45
+ renderOption: f = F,
46
46
  required: S,
47
47
  value: _,
48
48
  ...V
49
49
  }) => {
50
- const v = F({ defaultValue: _ }), R = G(v, "value"), h = (o) => {
50
+ const v = O({ defaultValue: _ }), R = L(v, "value"), h = (o) => {
51
51
  a || (v.setValue(o), l == null || l(o));
52
52
  };
53
- return /* @__PURE__ */ n(j, { "data-testid": e, hideLabel: r, label: i, required: S, children: /* @__PURE__ */ n("div", { className: q("root", t), children: p.map((o) => /* @__PURE__ */ n(
53
+ return /* @__PURE__ */ n(y, { "data-testid": e, hideLabel: r, label: i, required: S, children: /* @__PURE__ */ n("div", { className: w("root", t), children: p.map((o) => /* @__PURE__ */ n(
54
54
  f,
55
55
  {
56
56
  checked: o.value === R,
@@ -68,5 +68,5 @@ const O = "_root_v6e2n_2", g = {
68
68
  )) }) });
69
69
  };
70
70
  export {
71
- M as RadioGroup
71
+ K as RadioGroup
72
72
  };
package/dist/RadioTab.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsxs as _, jsx as a } from "react/jsx-runtime";
3
- import { R as u } from "./NLEBE274-B4zy25kL.js";
3
+ import { R as u } from "./SQZLCNLX-CHDXnZ16.js";
4
4
  import { forwardRef as d } from "react";
5
5
  import { Button as w } from "./Button.js";
6
- import { c as f } from "./index-PAaZGbyz.js";
6
+ import { c as f } from "./index-CdiHdiVB.js";
7
7
  const b = "_label_zrrw4_2", N = "_checked_zrrw4_7", h = "_input_zrrw4_16", z = "_content_zrrw4_26", R = {
8
8
  label: b,
9
9
  checked: N,
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { v as G, p as W, o as Ce, c as Y, U as xe, _ as $, C as J, e as S, f as Q, g as P, r as X, l as Z, n as ee, G as Se, b as R, ao as Pe, ap as O, q as F, aj as we, a as j, aq as he, ar as Ee, D as ye, O as Te, as as De, m as Re } from "./LVA2YJMS-NUHCRwFZ.js";
3
- import { createContext as te, useRef as _, useEffect as Oe, useContext as Fe, useCallback as _e, useMemo as Ae } from "react";
4
- import { u as ke } from "./KUU7WJ55-CsIy9XMu.js";
5
- import { g as ze } from "./YV4JVR4I-CVFstk2K.js";
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 = G(), Le = w.useContext;
7
+ var w = Y(), Le = w.useContext;
8
8
  w.useScopedContext;
9
9
  w.useProviderContext;
10
- var Ne = w.ContextProvider, Be = w.ScopedContextProvider, h = G(
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
- ), Ve = { id: null };
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 ? [Ve] : [],
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 je(r, n) {
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 qe(r, n = !1) {
46
- if (W(r))
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 A = Symbol("FOCUS_SILENTLY");
57
- function Ge(r) {
58
- r[A] = !0, r.focus({ preventScroll: !0 });
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[A];
62
- return delete r[A], n;
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 We = "div", ne = Y(
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 = $(o, [
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 = _(g);
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(We, o);
96
+ return ee($e, o);
97
97
  });
98
- var Ye = "button";
99
- function $e(r) {
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 q(r, n, o, t = !1) {
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 = je(n, c)) == null ? void 0 : u.element;
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 F(r) ? !1 : re(n, r.target);
133
+ return A(r) ? !1 : re(n, r.target);
134
134
  }
135
- var Ze = Y(
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 = $(o, [
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 = _(null), l = Fe(Ue), k = Se(i) && !i.accessibleWhenDisabled, {
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 = _e(
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 = _(!1), le = R((e) => {
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) && qe(e.currentTarget), !s || !F(e) || $e(e.currentTarget) || !(a != null && a.isConnected)) return;
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) ? Ge(a) : a.focus();
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 = j(d), de = j(g), me = R((e) => {
223
- if (N == null || N(e), e.defaultPrevented || !F(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 || !W(a.baseElement)), H = {
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: () => q(s, t, t == null ? void 0 : t.up, !0),
238
- PageDown: () => q(s, t, t == null ? void 0 : t.down)
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 V = he(s), ve = x && e.key === "ArrowLeft", pe = x && e.key === "ArrowRight", Ie = E && e.key === "ArrowUp", ge = E && e.key === "ArrowDown";
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 (V.end !== be) return;
246
- } else if ((ve || Ie) && V.start !== 0) return;
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 = Ae(
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(Ye, o);
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
- je as g,
295
+ Ve as g,
296
296
  vt as h,
297
297
  re as i,
298
298
  ne as j,