welcome-ui 8.0.0 → 8.0.2

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 (90) hide show
  1. package/dist/AXB53BZF-BOEe01VW.mjs +25 -0
  2. package/dist/Accordion.mjs +17 -17
  3. package/dist/Alert.mjs +19 -19
  4. package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-B1IDizRs.mjs} +298 -295
  5. package/dist/Badge.mjs +1 -1
  6. package/dist/Breadcrumb.mjs +27 -26
  7. package/dist/Button.mjs +2 -2
  8. package/dist/Checkbox.mjs +1 -1
  9. package/dist/{CustomInput-D_13Gd_3.mjs → CustomInput-IA_gVoXd.mjs} +2991 -2859
  10. package/dist/DatePicker.mjs +4 -4
  11. package/dist/DateTimePicker.mjs +9 -9
  12. package/dist/DateTimePickerCommon.mjs +1 -1
  13. package/dist/Drawer.mjs +7 -7
  14. package/dist/DropdownMenu.mjs +262 -262
  15. package/dist/Field.mjs +25 -25
  16. package/dist/FileDrop.mjs +273 -267
  17. package/dist/FileUpload.mjs +26 -26
  18. package/dist/Files.mjs +1 -1
  19. package/dist/Hint.mjs +1 -1
  20. package/dist/{ITI7HKP4-BONrZ9Pq.mjs → ITI7HKP4-EL9KXYBU.mjs} +150 -150
  21. package/dist/Icons.mjs +88 -88
  22. package/dist/IconsFont.mjs +159 -159
  23. package/dist/InputText.mjs +1 -1
  24. package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-BzklVBKM.mjs} +70 -70
  25. package/dist/KUU7WJ55-CS4NemC6.mjs +61 -0
  26. package/dist/{LVA2YJMS-qFC9J-lt.mjs → LVA2YJMS-DDEmK0pp.mjs} +491 -488
  27. package/dist/Label.mjs +2 -2
  28. package/dist/Link.mjs +3 -3
  29. package/dist/MTZPJQMC-CMjAwC0N.mjs +15 -0
  30. package/dist/Modal.mjs +13 -13
  31. package/dist/NLEBE274-QOMV1l7e.mjs +84 -0
  32. package/dist/P2CTZE2T-Cl2w7OLV.mjs +300 -0
  33. package/dist/P4IRICAX-DezbJY4s.mjs +37 -0
  34. package/dist/Pagination.mjs +22 -22
  35. package/dist/Picker.mjs +2 -2
  36. package/dist/Popover.mjs +2 -2
  37. package/dist/QYJ6MIDR-Bb0O5xUM.mjs +97 -0
  38. package/dist/Radio.mjs +18 -18
  39. package/dist/RadioGroup.mjs +15 -15
  40. package/dist/RadioTab.mjs +9 -9
  41. package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-jn06-eLy.mjs} +17 -17
  42. package/dist/Search.mjs +2 -2
  43. package/dist/Select.mjs +719 -716
  44. package/dist/Shape.mjs +1 -1
  45. package/dist/Slider.mjs +1 -1
  46. package/dist/Swiper.mjs +284 -278
  47. package/dist/Tabs.mjs +128 -128
  48. package/dist/Tag.mjs +16 -16
  49. package/dist/Text.mjs +1 -1
  50. package/dist/Textarea.mjs +4 -4
  51. package/dist/TimePicker.mjs +6 -6
  52. package/dist/Toast.mjs +69 -69
  53. package/dist/Toggle.mjs +2 -2
  54. package/dist/Tooltip.mjs +60 -60
  55. package/dist/UniversalLink.mjs +8 -8
  56. package/dist/VEVQD5MH-CuegL0m0.mjs +20 -0
  57. package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-BMzoZtCu.mjs} +31 -33
  58. package/dist/VariantIcon.mjs +4 -4
  59. package/dist/WelcomeLoader.mjs +4862 -9223
  60. package/dist/X5NMLKT6-CvSCix-_.mjs +25 -0
  61. package/dist/YV4JVR4I-Bh7B7TET.mjs +344 -0
  62. package/dist/downshift.esm-D0ns_SQs.mjs +1082 -0
  63. package/dist/{field-styles-DLIhqG_8.mjs → field-styles-CfVLcVQp.mjs} +1 -1
  64. package/dist/{index-BDeIsk2X.mjs → index-5PUh49rV.mjs} +56 -56
  65. package/dist/{index-DEJJvyGk.mjs → index-B0gDDiFm.mjs} +7 -7
  66. package/dist/{index-CExLVjET.mjs → index-B22SHR8h.mjs} +4 -4
  67. package/dist/index-BhcLigYU.mjs +77 -0
  68. package/dist/{index-BJAZgeHL.mjs → index-Bkl89twW.mjs} +4 -4
  69. package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
  70. package/dist/{index-BpRjq7lj.mjs → index-CQD9fgf_.mjs} +3 -3
  71. package/dist/{index-BRDOakbf.mjs → index-CmsWSKKs.mjs} +5 -5
  72. package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
  73. package/dist/{index-BrfXjmHY.mjs → index-wr_b5GSV.mjs} +6 -6
  74. package/dist/radio-group-RFyDp0KD.mjs +51 -0
  75. package/dist/theme.mjs +670 -615
  76. package/dist/{use-viewport-m3glsbna.mjs → use-viewport-CfklieD-.mjs} +5 -5
  77. package/dist/utils.mjs +29 -91
  78. package/package.json +10 -13
  79. package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
  80. package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
  81. package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
  82. package/dist/NLEBE274-C94QU78N.mjs +0 -84
  83. package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
  84. package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
  85. package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
  86. package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
  87. package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
  88. package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
  89. package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
  90. package/dist/radio-group-CGC6DTFJ.mjs +0 -51
@@ -1,297 +0,0 @@
1
- "use client";
2
- import { v as Y, n as $, I as xe, c as G, _ as J, x as q, d as S, e as Q, g as P, z as X, f as Z, h as ee, J as ve, l as Se, b as R, K as Pe, L as D, m as O, M as we, u as j, N as he, O as Ee, E as ye, t as Te, w as Re, k as De, P as Oe } from "./LVA2YJMS-qFC9J-lt.mjs";
3
- import { createContext as te, useRef as F, useEffect as Fe, useContext as _e, useCallback as Ae, useMemo as ke } from "react";
4
- import { u as ze } from "./KUU7WJ55-3sP-w1F1.mjs";
5
- import { f as Ke } from "./YV4JVR4I-BGfUf3Nu.mjs";
6
- var A = Y(), Le = A.useContext, Ne = A.ContextProvider, Me = A.ScopedContextProvider, w = Y(
7
- [Ne],
8
- [Me]
9
- ), Be = w.useContext;
10
- w.useScopedContext;
11
- var st = w.useProviderContext, ut = w.ContextProvider, at = w.ScopedContextProvider, He = te(
12
- void 0
13
- ), Ue = te(
14
- void 0
15
- ), Ve = { id: null };
16
- function lt(n, r, o = !1) {
17
- const t = n.findIndex((a) => a.id === r);
18
- return [
19
- ...n.slice(t + 1),
20
- ...o ? [Ve] : [],
21
- ...n.slice(0, t)
22
- ];
23
- }
24
- function ft(n, r) {
25
- return n.find((o) => !o.disabled);
26
- }
27
- function je(n, r) {
28
- return r && n.item(r) || null;
29
- }
30
- function dt(n) {
31
- const r = [];
32
- for (const o of n) {
33
- const t = r.find((a) => {
34
- var c;
35
- return ((c = a[0]) == null ? void 0 : c.rowId) === o.rowId;
36
- });
37
- t ? t.push(o) : r.push([o]);
38
- }
39
- return r;
40
- }
41
- function We(n, r = !1) {
42
- if ($(n))
43
- n.setSelectionRange(
44
- r ? n.value.length : 0,
45
- n.value.length
46
- );
47
- else if (n.isContentEditable) {
48
- const o = xe(n).getSelection();
49
- o == null || o.selectAllChildren(n), r && (o == null || o.collapseToEnd());
50
- }
51
- }
52
- var _ = Symbol("FOCUS_SILENTLY");
53
- function Ye(n) {
54
- n[_] = !0, n.focus({ preventScroll: !0 });
55
- }
56
- function ct(n) {
57
- const r = n[_];
58
- return delete n[_], r;
59
- }
60
- function ne(n, r, o) {
61
- return !(!r || r === o || !n.item(r.id));
62
- }
63
- var $e = "div", re = G(
64
- function(r) {
65
- var o = r, {
66
- store: t,
67
- shouldRegisterItem: a = !0,
68
- getItem: c = ve,
69
- element: b
70
- } = o, p = J(o, [
71
- "store",
72
- "shouldRegisterItem",
73
- "getItem",
74
- // @ts-expect-error This prop may come from a collection renderer.
75
- "element"
76
- ]);
77
- const f = Le();
78
- t = t || f;
79
- const m = q(p.id), I = F(b);
80
- return Fe(() => {
81
- const i = I.current;
82
- if (!m || !i || !a) return;
83
- const C = c({ id: m, element: i });
84
- return t == null ? void 0 : t.renderItem(C);
85
- }, [m, a, c, t]), p = S(P({}, p), {
86
- ref: Q(I, p.ref)
87
- }), X(p);
88
- }
89
- );
90
- Z(function(r) {
91
- const o = re(r);
92
- return ee($e, o);
93
- });
94
- var Ge = "button";
95
- function Je(n) {
96
- return D(n) ? !0 : n.tagName === "INPUT" && !De(n);
97
- }
98
- function qe(n, r = !1) {
99
- const o = n.clientHeight, { top: t } = n.getBoundingClientRect(), a = Math.max(o * 0.875, o - 40) * 1.5, c = r ? o - a + t : a + t;
100
- return n.tagName === "HTML" ? c + n.scrollTop : c;
101
- }
102
- function Qe(n, r = !1) {
103
- const { top: o } = n.getBoundingClientRect();
104
- return r ? o + n.clientHeight : o;
105
- }
106
- function W(n, r, o, t = !1) {
107
- var a;
108
- if (!r || !o) return;
109
- const { renderedItems: c } = r.getState(), b = Oe(n);
110
- if (!b) return;
111
- const p = qe(b, t);
112
- let f, m;
113
- for (let I = 0; I < c.length; I += 1) {
114
- const i = f;
115
- if (f = o(I), !f) break;
116
- if (f === i) continue;
117
- const C = (a = je(r, f)) == null ? void 0 : a.element;
118
- if (!C) continue;
119
- const x = Qe(C, t) - p, l = Math.abs(x);
120
- if (t && x <= 0 || !t && x >= 0) {
121
- m !== void 0 && m < l && (f = i);
122
- break;
123
- }
124
- m = l;
125
- }
126
- return f;
127
- }
128
- function Xe(n, r) {
129
- return O(n) ? !1 : ne(r, n.target);
130
- }
131
- var Ze = G(
132
- function(r) {
133
- var o = r, {
134
- store: t,
135
- rowId: a,
136
- preventScrollOnKeyDown: c = !1,
137
- moveOnKeyPress: b = !0,
138
- tabbable: p = !1,
139
- getItem: f,
140
- "aria-setsize": m,
141
- "aria-posinset": I
142
- } = o, i = J(o, [
143
- "store",
144
- "rowId",
145
- "preventScrollOnKeyDown",
146
- "moveOnKeyPress",
147
- "tabbable",
148
- "getItem",
149
- "aria-setsize",
150
- "aria-posinset"
151
- ]);
152
- const C = Be();
153
- t = t || C;
154
- const d = q(i.id), x = F(null), l = _e(Ue), k = Se(i) && !i.accessibleWhenDisabled, {
155
- rowId: E,
156
- baseElement: z,
157
- isActiveItem: oe,
158
- ariaSetSize: ie,
159
- ariaPosInSet: se,
160
- isTabbable: ue
161
- } = Ke(t, {
162
- rowId(e) {
163
- if (a) return a;
164
- if (e && l != null && l.baseElement && l.baseElement === e.baseElement)
165
- return l.id;
166
- },
167
- baseElement(e) {
168
- return (e == null ? void 0 : e.baseElement) || void 0;
169
- },
170
- isActiveItem(e) {
171
- return !!e && e.activeId === d;
172
- },
173
- ariaSetSize(e) {
174
- if (m != null) return m;
175
- if (e && l != null && l.ariaSetSize && l.baseElement === e.baseElement)
176
- return l.ariaSetSize;
177
- },
178
- ariaPosInSet(e) {
179
- if (I != null) return I;
180
- if (!e || !(l != null && l.ariaPosInSet) || l.baseElement !== e.baseElement) return;
181
- const s = e.renderedItems.filter(
182
- (u) => u.rowId === E
183
- );
184
- return l.ariaPosInSet + s.findIndex((u) => u.id === d);
185
- },
186
- isTabbable(e) {
187
- if (!(e != null && e.renderedItems.length)) return !0;
188
- if (e.virtualFocus) return !1;
189
- if (p) return !0;
190
- if (e.activeId === null) return !1;
191
- const s = t == null ? void 0 : t.item(e.activeId);
192
- return s != null && s.disabled || !(s != null && s.element) ? !0 : e.activeId === d;
193
- }
194
- }), ae = Ae(
195
- (e) => {
196
- var s;
197
- const u = S(P({}, e), {
198
- id: d || e.id,
199
- rowId: E,
200
- disabled: !!k,
201
- children: (s = e.element) == null ? void 0 : s.textContent
202
- });
203
- return f ? f(u) : u;
204
- },
205
- [d, E, k, f]
206
- ), K = i.onFocus, y = F(!1), le = R((e) => {
207
- if (K == null || K(e), e.defaultPrevented || Pe(e) || !d || !t || Xe(e, t)) return;
208
- const { virtualFocus: s, baseElement: u } = t.getState();
209
- if (t.setActiveId(d), D(e.currentTarget) && We(e.currentTarget), !s || !O(e) || Je(e.currentTarget) || !(u != null && u.isConnected)) return;
210
- we() && e.currentTarget.hasAttribute("data-autofocus") && e.currentTarget.scrollIntoView({
211
- block: "nearest",
212
- inline: "nearest"
213
- }), y.current = !0, e.relatedTarget === u || ne(t, e.relatedTarget) ? Ye(u) : u.focus();
214
- }), L = i.onBlurCapture, fe = R((e) => {
215
- if (L == null || L(e), e.defaultPrevented) return;
216
- const s = t == null ? void 0 : t.getState();
217
- s != null && s.virtualFocus && y.current && (y.current = !1, e.preventDefault(), e.stopPropagation());
218
- }), N = i.onKeyDown, de = j(c), ce = j(b), me = R((e) => {
219
- if (N == null || N(e), e.defaultPrevented || !O(e) || !t) return;
220
- const { currentTarget: s } = e, u = t.getState(), T = t.item(d), g = !!(T != null && T.rowId), h = u.orientation !== "horizontal", v = u.orientation !== "vertical", B = () => !!(g || v || !u.baseElement || !$(u.baseElement)), H = {
221
- ArrowUp: (g || h) && t.up,
222
- ArrowRight: (g || v) && t.next,
223
- ArrowDown: (g || h) && t.down,
224
- ArrowLeft: (g || v) && t.previous,
225
- Home: () => {
226
- if (B())
227
- return !g || e.ctrlKey ? t == null ? void 0 : t.first() : t == null ? void 0 : t.previous(-1);
228
- },
229
- End: () => {
230
- if (B())
231
- return !g || e.ctrlKey ? t == null ? void 0 : t.last() : t == null ? void 0 : t.next(-1);
232
- },
233
- PageUp: () => W(s, t, t == null ? void 0 : t.up, !0),
234
- PageDown: () => W(s, t, t == null ? void 0 : t.down)
235
- }[e.key];
236
- if (H) {
237
- if (D(s)) {
238
- const V = he(s), pe = v && e.key === "ArrowLeft", Ie = v && e.key === "ArrowRight", ge = h && e.key === "ArrowUp", be = h && e.key === "ArrowDown";
239
- if (Ie || be) {
240
- const { length: Ce } = Ee(s);
241
- if (V.end !== Ce) return;
242
- } else if ((pe || ge) && V.start !== 0) return;
243
- }
244
- const U = H();
245
- if (de(e) || U !== void 0) {
246
- if (!ce(e)) return;
247
- e.preventDefault(), t.move(U);
248
- }
249
- }
250
- }), M = ke(
251
- () => ({ id: d, baseElement: z }),
252
- [d, z]
253
- );
254
- return i = ye(
255
- i,
256
- (e) => /* @__PURE__ */ Te.jsx(He.Provider, { value: M, children: e }),
257
- [M]
258
- ), i = S(P({
259
- id: d,
260
- "data-active-item": oe || void 0
261
- }, i), {
262
- ref: Q(x, i.ref),
263
- tabIndex: ue ? i.tabIndex : -1,
264
- onFocus: le,
265
- onBlurCapture: fe,
266
- onKeyDown: me
267
- }), i = ze(i), i = re(S(P({
268
- store: t
269
- }, i), {
270
- getItem: ae,
271
- shouldRegisterItem: d ? i.shouldRegisterItem : !1
272
- })), X(S(P({}, i), {
273
- "aria-setsize": ie,
274
- "aria-posinset": se
275
- }));
276
- }
277
- ), mt = Re(
278
- Z(function(r) {
279
- const o = Ze(r);
280
- return ee(Ge, o);
281
- })
282
- );
283
- export {
284
- at as C,
285
- ut as a,
286
- st as b,
287
- dt as c,
288
- mt as d,
289
- re as e,
290
- ft as f,
291
- je as g,
292
- Be as h,
293
- ne as i,
294
- lt as j,
295
- ct as s,
296
- Ze as u
297
- };
@@ -1,37 +0,0 @@
1
- "use client";
2
- import { u as P } from "./X5NMLKT6-uFSu0Lii.mjs";
3
- import { u as _ } from "./VGCJ63VH-B39w1tBw.mjs";
4
- import { c as b, f as k, _ as x, i as S, u as O, a as R, b as N, d as h, e as w, g as c, h as y } from "./LVA2YJMS-qFC9J-lt.mjs";
5
- import { useRef as B, useState as M, useEffect as T } from "react";
6
- var V = "button", j = Symbol("disclosure"), H = b(
7
- function(o) {
8
- var r = o, { store: e, toggleOnClick: f = !0 } = r, s = x(r, ["store", "toggleOnClick"]);
9
- const p = _();
10
- e = e || p, S(
11
- e,
12
- process.env.NODE_ENV !== "production" && "Disclosure must receive a `store` prop or be wrapped in a DisclosureProvider component."
13
- );
14
- const u = B(null), [m, D] = M(!1), n = e.useState("disclosureElement"), a = e.useState("open");
15
- T(() => {
16
- let t = n === u.current;
17
- n != null && n.isConnected || (e == null || e.setDisclosureElement(u.current), t = !0), D(a && t);
18
- }, [n, e, a]);
19
- const l = s.onClick, E = O(f), [g, v] = R(s, j, !0), C = N((t) => {
20
- l == null || l(t), !t.defaultPrevented && (g || E(t) && (e == null || e.setDisclosureElement(t.currentTarget), e == null || e.toggle()));
21
- }), i = e.useState("contentElement");
22
- return s = h(c(c({
23
- "aria-expanded": m,
24
- "aria-controls": i == null ? void 0 : i.id
25
- }, v), s), {
26
- ref: w(u, s.ref),
27
- onClick: C
28
- }), s = P(s), s;
29
- }
30
- ), G = k(function(o) {
31
- const r = H(o);
32
- return y(V, r);
33
- });
34
- export {
35
- G as D,
36
- H as u
37
- };
@@ -1,97 +0,0 @@
1
- "use client";
2
- import { u as E, b as C, P as N } from "./MTZPJQMC-C0Xe_WK4.mjs";
3
- import { c as v, _ as f, d as m, e as x, g as c, f as P, h, i as w, t as l, z as V, F as j, G as z, b as R, E as O } from "./LVA2YJMS-qFC9J-lt.mjs";
4
- import { useMemo as T, useState as W } from "react";
5
- import { u as M } from "./AXB53BZF-CGoc4K3d.mjs";
6
- var H = "div", _ = v(
7
- function(t) {
8
- var r = t, { store: e } = r, o = f(r, ["store"]);
9
- const n = E();
10
- return e = e || n, o = m(c({}, o), {
11
- ref: x(e == null ? void 0 : e.setAnchorElement, o.ref)
12
- }), o;
13
- }
14
- );
15
- P(function(t) {
16
- const r = _(t);
17
- return h(H, r);
18
- });
19
- var g = "M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z", L = "div", d = 30, a = d / 2, B = {
20
- top: `rotate(180 ${a} ${a})`,
21
- right: `rotate(-90 ${a} ${a})`,
22
- bottom: `rotate(0 ${a} ${a})`,
23
- left: `rotate(90 ${a} ${a})`
24
- };
25
- function F(u) {
26
- const [t, r] = W(), e = u.useState("contentElement");
27
- return j(() => {
28
- if (!e) return;
29
- const n = z(e).getComputedStyle(e);
30
- r(n);
31
- }, [e]), t;
32
- }
33
- var G = v(
34
- function(t) {
35
- var r = t, { store: e, size: o = d } = r, n = f(r, ["store", "size"]);
36
- const p = C();
37
- e = e || p, w(
38
- e,
39
- process.env.NODE_ENV !== "production" && "PopoverArrow must be wrapped in a Popover component."
40
- );
41
- const i = e.useState(
42
- (k) => k.currentPlacement.split("-")[0]
43
- ), s = F(e), y = (s == null ? void 0 : s.getPropertyValue("background-color")) || "none", A = (s == null ? void 0 : s.getPropertyValue(`border-${i}-color`)) || "none", S = (s == null ? void 0 : s.getPropertyValue(`border-${i}-width`)) || "0px", $ = Number.parseInt(S) * 2 * (d / o), b = B[i], D = T(
44
- () => /* @__PURE__ */ l.jsx("svg", { display: "block", viewBox: "0 0 30 30", children: /* @__PURE__ */ l.jsxs("g", { transform: b, children: [
45
- /* @__PURE__ */ l.jsx("path", { fill: "none", d: g }),
46
- /* @__PURE__ */ l.jsx("path", { stroke: "none", d: g })
47
- ] }) }),
48
- [b]
49
- );
50
- return n = m(c({
51
- children: D,
52
- "aria-hidden": !0
53
- }, n), {
54
- ref: x(e.setArrowElement, n.ref),
55
- style: c({
56
- // server side rendering
57
- position: "absolute",
58
- fontSize: o,
59
- width: "1em",
60
- height: "1em",
61
- pointerEvents: "none",
62
- fill: y,
63
- stroke: A,
64
- strokeWidth: $
65
- }, n.style)
66
- }), V(n);
67
- }
68
- ), X = P(function(t) {
69
- const r = G(t);
70
- return h(L, r);
71
- }), I = "button", U = v(function(t) {
72
- var r = t, { store: e } = r, o = f(r, ["store"]);
73
- const n = E();
74
- e = e || n, w(
75
- e,
76
- process.env.NODE_ENV !== "production" && "PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component."
77
- );
78
- const p = o.onClick, i = R((s) => {
79
- e == null || e.setAnchorElement(s.currentTarget), p == null || p(s);
80
- });
81
- return o = O(
82
- o,
83
- (s) => /* @__PURE__ */ l.jsx(N, { value: e, children: s }),
84
- [e]
85
- ), o = m(c({}, o), {
86
- onClick: i
87
- }), o = _(c({ store: e }, o)), o = M(c({ store: e }, o)), o;
88
- }), Y = P(function(t) {
89
- const r = U(t);
90
- return h(I, r);
91
- });
92
- export {
93
- X as P,
94
- Y as a,
95
- U as b,
96
- G as u
97
- };
@@ -1,20 +0,0 @@
1
- "use client";
2
- import { C as t, a as r } from "./P2CTZE2T-YPes1GXe.mjs";
3
- import { P as a, a as i } from "./MTZPJQMC-C0Xe_WK4.mjs";
4
- import { v as n } from "./LVA2YJMS-qFC9J-lt.mjs";
5
- import { createContext as o } from "react";
6
- o(
7
- void 0
8
- );
9
- var e = n(
10
- [i, r],
11
- [a, t]
12
- ), m = e.useContext, v = e.useProviderContext;
13
- o(
14
- void 0
15
- );
16
- o(!1);
17
- export {
18
- v as a,
19
- m as u
20
- };
@@ -1,25 +0,0 @@
1
- "use client";
2
- import { u as f } from "./KUU7WJ55-3sP-w1F1.mjs";
3
- import { f as c, c as m, j as i, k as u, d as B, e as d, g as l, h as g } from "./LVA2YJMS-qFC9J-lt.mjs";
4
- import { useRef as v, useState as N, useEffect as _ } from "react";
5
- var n = "button", R = m(
6
- function(e) {
7
- const t = v(null), a = i(t, n), [r, o] = N(
8
- () => !!a && u({ tagName: a, type: e.type })
9
- );
10
- return _(() => {
11
- t.current && o(u(t.current));
12
- }, []), e = B(l({
13
- role: !r && a !== "a" ? "button" : void 0
14
- }, e), {
15
- ref: d(t, e.ref)
16
- }), e = f(e), e;
17
- }
18
- ), y = c(function(e) {
19
- const t = R(e);
20
- return g(n, t);
21
- });
22
- export {
23
- y as B,
24
- R as u
25
- };