welcome-ui 9.0.0-alpha.4 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -3
- package/dist/2W3RN7C5-bkX-rIa3.js +61 -0
- package/dist/4I4MLMKD-BLxAidnq.js +43 -0
- package/dist/Accordion.js +6 -6
- package/dist/Alert.js +1 -1
- package/dist/AspectRatio.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/{4CMBR7SL-Dhp8uJop.js → B7UTNDHN-BlIblHCu.js} +59 -59
- package/dist/Badge.js +1 -1
- package/dist/Breadcrumb.css +1 -1
- package/dist/Breadcrumb.js +27 -27
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/Checkbox.css +1 -1
- package/dist/Checkbox.js +22 -22
- package/dist/CloseButton.js +3 -3
- package/dist/{SYRFVSLH-CHNUB1rW.js → DSAASPLT-BaaCUKsb.js} +7 -7
- package/dist/DatePicker.js +5 -5
- package/dist/DateTimePicker.js +2 -2
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.js +67 -67
- package/dist/DropdownMenu.js +261 -259
- package/dist/Field.js +1 -1
- package/dist/FieldGroup.js +1 -1
- package/dist/FileDrop.js +194 -221
- package/dist/FileUpload.js +2 -2
- package/dist/GVVKDT6A-bET6V7Py.js +724 -0
- package/dist/Hint.js +1 -1
- package/dist/{Icon-BisRi8B3.js → Icon-EG7O4YwD.js} +1 -1
- package/dist/Icon.js +12 -12
- package/dist/InputText.js +1 -1
- package/dist/{ASMQKSDT-SH1qSiMi.js → KPUWHTQJ-D2TPji47.js} +30 -30
- package/dist/Label.js +3 -3
- package/dist/Link.css +1 -1
- package/dist/Link.js +27 -27
- package/dist/Loader.js +1 -1
- package/dist/Logo.js +1 -1
- package/dist/Modal.js +10 -10
- package/dist/{JC64G2H7-DPy9R0De.js → NI3IVY7K-Ztb3-XAv.js} +571 -571
- package/dist/{P4IRICAX-7kH4HzWI.js → NMGNQVTG-C6TqBngP.js} +5 -5
- package/dist/{LVA2YJMS-NUHCRwFZ.js → OE2EFRVA-C3721cM3.js} +316 -315
- package/dist/{ITI7HKP4-C5xLpoVY.js → OLVWQA7U-DysaSaZj.js} +59 -59
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.js +81 -73
- package/dist/PasswordInput.js +17 -18
- package/dist/Popover.js +14 -14
- package/dist/{YV4JVR4I-CVFstk2K.js → RTNCFSKZ-qpPg689E.js} +75 -73
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +29 -29
- package/dist/RadioGroup.js +21 -21
- package/dist/RadioTab.js +2 -2
- package/dist/{P2CTZE2T-D1TepwxQ.js → SBSPVDDI-DJKkC1eb.js} +43 -43
- package/dist/{NLEBE274-B4zy25kL.js → SQZLCNLX-CHDXnZ16.js} +16 -16
- package/dist/Search.js +2 -2
- package/dist/Select.js +170 -181
- package/dist/Slider.js +1 -1
- package/dist/Swiper.css +1 -1
- package/dist/Swiper.js +151 -151
- package/dist/{VGCJ63VH-CVhs4PYt.js → T22PY7TE-C1N0q8Kn.js} +109 -109
- package/dist/Table.js +1 -1
- package/dist/Tabs.js +303 -308
- package/dist/Tag.js +3 -3
- package/dist/Text.js +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/TimePicker.js +2 -2
- package/dist/Toast.js +1 -1
- package/dist/Toggle.js +2 -2
- package/dist/Tooltip.js +72 -72
- package/dist/VariantIcon.js +3 -3
- package/dist/WelcomeLoader.js +1 -1
- package/dist/XCKGTAUF-DkxWCbaW.js +25 -0
- package/dist/Y67KZUMI-DFEgrUv2.js +15 -0
- package/dist/{AXB53BZF-BHeessqV.js → ZTXFEM5L-CkrIQCN1.js} +7 -7
- package/dist/{field-icon-size-Du58qHNC.js → field-icon-size-Z5NulTSk.js} +216 -224
- package/dist/{index-5rXezknO.js → index-BC2bF45u.js} +1 -1
- package/dist/{index-C8GsqBDe.js → index-BeetbagJ.js} +1 -1
- package/dist/{index-BJLXLdM3.js → index-Bt79XJ8R.js} +1 -1
- package/dist/{index-Dcq5gh3E.js → index-BtwrJ6N4.js} +1 -1
- package/dist/{index-DL4-ut3P.js → index-CCASZBtz.js} +1 -1
- package/dist/{index-lbUBMgHp.js → index-CPqDZeah.js} +2 -2
- package/dist/{index-CTgip19b.js → index-CQEPCbEE.js} +1 -1
- package/dist/{index-CnxSNAPH.js → index-Crpe9CvH.js} +1 -1
- package/dist/{index-CWVOLBDY.js → index-D5a8Oe6k.js} +1 -1
- package/dist/{index-C1jjVTAc.js → index-D8dq-I5s.js} +1 -1
- package/dist/{index-Cvtm6uuS.js → index-DkwTwo3z.js} +1 -1
- package/dist/{index-BG2aV9o8.js → index-DnO8yBVT.js} +1 -1
- package/dist/index.css +0 -0
- package/dist/tslib.es6-DpB4Y59c.js +683 -0
- package/dist/types/components/Pagination/index.d.ts +1 -2
- package/dist/types/components/Pagination/types.d.ts +5 -2
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
- package/dist/types/components/PasswordInput/types.d.ts +1 -1
- package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -1
- package/dist/types/components/Tabs/index.d.ts +1 -1
- package/dist/types/components/Tabs/types.d.ts +1 -2
- package/dist/types/components/Tabs/utils.d.ts +1 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/theme/index.d.ts +0 -0
- package/dist/types/utils/useForkRef.d.ts +7 -1
- package/dist/useForkRef-D807AV7D.js +22 -0
- package/dist/{utils-BNMgUIHQ.js → utils-BpbIqM56.js} +1 -1
- package/dist/utils.js +2 -2
- package/package.json +5 -5
- package/dist/BYC7LY2E-DbSoi9cN.js +0 -673
- package/dist/KUU7WJ55-CsIy9XMu.js +0 -61
- package/dist/MTZPJQMC-D_TnSwZf.js +0 -15
- package/dist/QYJ6MIDR-Dm7lYMh6.js +0 -43
- package/dist/X5NMLKT6-PeY306ft.js +0 -25
- package/dist/index--0U5Rubs.js +0 -644
- /package/dist/{index-PAaZGbyz.js → index-CdiHdiVB.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ot,
|
|
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-
|
|
6
|
-
function
|
|
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,
|
|
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 = (
|
|
13
|
-
const
|
|
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 (
|
|
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
|
-
),
|
|
36
|
+
), A = [];
|
|
37
37
|
for (const L of v)
|
|
38
|
-
|
|
38
|
+
A.push(L());
|
|
39
39
|
const B = n.map(Z);
|
|
40
|
-
return o = F(...w, ...
|
|
41
|
-
}, E = (
|
|
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 = (
|
|
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,
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
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,
|
|
51
|
+
(w = h == null ? void 0 : h.setState) == null || w.call(h, s, A);
|
|
52
52
|
const B = e;
|
|
53
|
-
e = ct(ft({}, e), { [
|
|
53
|
+
e = ct(ft({}, e), { [s]: A });
|
|
54
54
|
const L = Symbol();
|
|
55
|
-
|
|
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 ===
|
|
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 (
|
|
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
|
|
87
|
+
return T(t, "setup")(...n);
|
|
88
88
|
}
|
|
89
89
|
function Z(t, ...n) {
|
|
90
90
|
if (t)
|
|
91
|
-
return
|
|
91
|
+
return T(t, "init")(...n);
|
|
92
92
|
}
|
|
93
93
|
function k(t, ...n) {
|
|
94
94
|
if (t)
|
|
95
|
-
return
|
|
95
|
+
return T(t, "subscribe")(...n);
|
|
96
96
|
}
|
|
97
97
|
function tt(t, ...n) {
|
|
98
98
|
if (t)
|
|
99
|
-
return
|
|
99
|
+
return T(t, "sync")(...n);
|
|
100
100
|
}
|
|
101
101
|
function ht(t, ...n) {
|
|
102
102
|
if (t)
|
|
103
|
-
return
|
|
103
|
+
return T(t, "batch")(...n);
|
|
104
104
|
}
|
|
105
105
|
function Vt(t, ...n) {
|
|
106
106
|
if (t)
|
|
107
|
-
return
|
|
107
|
+
return T(t, "omit")(...n);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Tt(t, ...n) {
|
|
110
110
|
if (t)
|
|
111
|
-
return
|
|
111
|
+
return T(t, "pick")(...n);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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: {} },
|
|
153
|
+
var j = { exports: {} }, G = {}, Y;
|
|
152
154
|
function mt() {
|
|
153
|
-
if (Y) return
|
|
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,
|
|
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]),
|
|
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
|
|
186
|
+
return G.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : _, G;
|
|
185
187
|
}
|
|
186
|
-
var
|
|
188
|
+
var K = {}, J;
|
|
187
189
|
function Et() {
|
|
188
|
-
return
|
|
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
|
|
204
|
+
var s = O.map(function(r) {
|
|
203
205
|
return String(r);
|
|
204
206
|
});
|
|
205
|
-
|
|
207
|
+
s.unshift("Warning: " + f), Function.prototype.apply.call(console[S], console, s);
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
|
-
function
|
|
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 :
|
|
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
|
|
221
|
+
var s = u({
|
|
220
222
|
inst: {
|
|
221
223
|
value: p,
|
|
222
224
|
getSnapshot: f
|
|
223
225
|
}
|
|
224
|
-
}), r =
|
|
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
|
-
|
|
255
|
-
}()),
|
|
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
|
|
259
|
+
var Q;
|
|
258
260
|
function gt() {
|
|
259
|
-
return
|
|
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
|
-
(
|
|
269
|
+
(a) => t ? k(t, null, a) : nt(),
|
|
268
270
|
[t]
|
|
269
271
|
), l = () => {
|
|
270
|
-
const
|
|
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 &&
|
|
273
|
-
return u[
|
|
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
|
-
),
|
|
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,
|
|
303
|
+
return et(l, a, a);
|
|
302
304
|
}
|
|
303
305
|
function Ct(t, n, e, l) {
|
|
304
|
-
const
|
|
305
|
-
|
|
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]),
|
|
309
|
-
if (
|
|
310
|
-
return t.setState(e,
|
|
311
|
-
|
|
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
|
-
|
|
318
|
-
const
|
|
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:
|
|
323
|
-
[e,
|
|
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
|
-
|
|
333
|
+
Ut as b,
|
|
332
334
|
W as c,
|
|
333
|
-
|
|
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
|
-
|
|
340
|
+
At as m,
|
|
339
341
|
Vt as o,
|
|
340
|
-
|
|
342
|
+
Tt as p,
|
|
341
343
|
Rt as s,
|
|
342
344
|
Dt as t,
|
|
343
|
-
|
|
345
|
+
yt as u
|
|
344
346
|
};
|
package/dist/Radio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_1xy64_2{display:flex;align-items:flex-start;gap:var(--spacing-sm);flex-direction:row}._input-wrapper_1xy64_8{flex-shrink:0;position:relative;align-items:center;display:flex;align-self:flex-start}._input_1xy64_8{border-radius:var(--radius-circle);order:-1;position:relative;outline:none;padding:0;transition:var(--duration-medium) var(--timing-primary);border-style:solid;border-width:var(--border-width-sm);border-color:var(--borderColor, var(--color-neutral-30));color:var(--color-neutral-10);height:var(--height-16);width:var(--height-16);margin-top:var(--spacing-xs);cursor:var(--inputCursor, pointer)}._input_1xy64_8:hover{--borderColor: var(--color-neutral-40)}._input_1xy64_8._disabled_1xy64_34{background-color:var(--color-beige-40);--inputCursor: not-allowed}._input_1xy64_8._variant-danger_1xy64_38{--borderColor: var(--color-red-70)}._input_1xy64_8._variant-warning_1xy64_41{--borderColor: var(--color-orange-60)}._input_1xy64_8:after{content:"";position:absolute;width:var(--height-8);height:var(--height-8);border-radius:var(--radius-circle);top:var(--spacing-3);left:var(--spacing-3);transition:var(--duration-medium);background-color:var(--backgroundColor, var(--color-transparent))}._input_1xy64_8[aria-checked=true]:not([disabled]){--borderColor: var(--color-brand-40);color:var(--color-neutral-90)}._input_1xy64_8[aria-checked=true][disabled]:after{--backgroundColor: var(--color-brand-30)}._input_1xy64_8[aria-checked=true]:after{--backgroundColor: var(--color-brand-40)}._label-with-hint_1xy64_65{display:flex;flex-direction:column}._hint_1xy64_69{margin-top:0}}
|
package/dist/Radio.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as d, jsx as
|
|
3
|
-
import { R as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { Hint as
|
|
6
|
-
import { Label as
|
|
7
|
-
import { c as
|
|
8
|
-
const
|
|
9
|
-
root:
|
|
10
|
-
"input-wrapper": "_input-
|
|
11
|
-
input:
|
|
12
|
-
disabled:
|
|
13
|
-
"variant-danger": "_variant-
|
|
14
|
-
"variant-warning": "_variant-
|
|
15
|
-
"label-with-hint": "_label-with-
|
|
16
|
-
hint:
|
|
17
|
-
},
|
|
2
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { R as f } from "./SQZLCNLX-CHDXnZ16.js";
|
|
4
|
+
import { forwardRef as u } from "react";
|
|
5
|
+
import { Hint as y } from "./Hint.js";
|
|
6
|
+
import { Label as w } from "./Label.js";
|
|
7
|
+
import { c as b } from "./index-CdiHdiVB.js";
|
|
8
|
+
const v = "_root_1xy64_2", N = "_input_1xy64_8", R = "_disabled_1xy64_34", g = "_hint_1xy64_69", $ = {
|
|
9
|
+
root: v,
|
|
10
|
+
"input-wrapper": "_input-wrapper_1xy64_8",
|
|
11
|
+
input: N,
|
|
12
|
+
disabled: R,
|
|
13
|
+
"variant-danger": "_variant-danger_1xy64_38",
|
|
14
|
+
"variant-warning": "_variant-warning_1xy64_41",
|
|
15
|
+
"label-with-hint": "_label-with-hint_1xy64_65",
|
|
16
|
+
hint: g
|
|
17
|
+
}, a = b($), j = u(
|
|
18
18
|
({
|
|
19
19
|
className: _,
|
|
20
20
|
dataTestId: i,
|
|
@@ -27,15 +27,15 @@ const R = "_root_1r128_2", g = "_input_1r128_8", x = "_disabled_1r128_34", $ = "
|
|
|
27
27
|
variant: p = "default",
|
|
28
28
|
...m
|
|
29
29
|
}, h) => {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const x = (r) => {
|
|
31
|
+
r.stopPropagation(), e && e(r), l && l(r);
|
|
32
32
|
};
|
|
33
|
-
return /* @__PURE__ */ d(
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
33
|
+
return /* @__PURE__ */ d(w, { className: a("root", _), onClick: x, children: [
|
|
34
|
+
/* @__PURE__ */ t("div", { className: a("input-wrapper"), children: /* @__PURE__ */ t(
|
|
35
|
+
f,
|
|
36
36
|
{
|
|
37
37
|
"aria-label": s,
|
|
38
|
-
className:
|
|
38
|
+
className: a("input", `variant-${p}`, n && "disabled"),
|
|
39
39
|
"data-testid": i,
|
|
40
40
|
disabled: n,
|
|
41
41
|
ref: h,
|
|
@@ -43,12 +43,12 @@ const R = "_root_1r128_2", g = "_input_1r128_8", x = "_disabled_1r128_34", $ = "
|
|
|
43
43
|
...m
|
|
44
44
|
}
|
|
45
45
|
) }),
|
|
46
|
-
/* @__PURE__ */ d("div", { className:
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
o ? /* @__PURE__ */
|
|
49
|
-
|
|
46
|
+
/* @__PURE__ */ d("div", { className: a("label-with-hint"), children: [
|
|
47
|
+
/* @__PURE__ */ t("div", { "data-testid": i ? `${i}-label` : void 0, children: s }),
|
|
48
|
+
o ? /* @__PURE__ */ t(
|
|
49
|
+
y,
|
|
50
50
|
{
|
|
51
|
-
className:
|
|
51
|
+
className: a("hint"),
|
|
52
52
|
"data-testid": i ? `${i}-hint` : void 0,
|
|
53
53
|
children: o
|
|
54
54
|
}
|
|
@@ -57,7 +57,7 @@ const R = "_root_1r128_2", g = "_input_1r128_8", x = "_disabled_1r128_34", $ = "
|
|
|
57
57
|
] });
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
|
-
|
|
60
|
+
j.displayName = "Radio";
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
j as Radio
|
|
63
63
|
};
|
package/dist/RadioGroup.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { c as
|
|
4
|
-
import { c as $,
|
|
5
|
-
import {
|
|
6
|
-
import { FieldGroup as
|
|
7
|
-
import { Radio as
|
|
8
|
-
import { c as
|
|
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
|
|
11
|
-
var e =
|
|
12
|
-
const r = (a = e.store) == null ? void 0 : a.getState(), s =
|
|
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
|
|
27
|
-
return t = P(t, e, a),
|
|
26
|
+
function H(t, e, a) {
|
|
27
|
+
return t = P(t, e, a), x(t, a, "value", "setValue"), t;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const [e, a] = b(
|
|
31
|
-
return
|
|
29
|
+
function O(t = {}) {
|
|
30
|
+
const [e, a] = b(k, t);
|
|
31
|
+
return H(e, a, t);
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
root:
|
|
35
|
-
},
|
|
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 =
|
|
45
|
+
renderOption: f = F,
|
|
46
46
|
required: S,
|
|
47
47
|
value: _,
|
|
48
48
|
...V
|
|
49
49
|
}) => {
|
|
50
|
-
const v =
|
|
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(
|
|
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
|
-
|
|
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 "./
|
|
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-
|
|
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,
|