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
package/dist/Hint.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as e } from "react";
|
|
4
|
-
import { c as i } from "./index-
|
|
4
|
+
import { c as i } from "./index-CdiHdiVB.js";
|
|
5
5
|
const c = "_root_zxnv7_2", _ = {
|
|
6
6
|
root: c,
|
|
7
7
|
"variant-danger": "_variant-danger_zxnv7_9",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as m } from "react";
|
|
4
|
-
import { c as t } from "./index-
|
|
4
|
+
import { c as t } from "./index-CdiHdiVB.js";
|
|
5
5
|
const g = "_root_8gp32_2", x = {
|
|
6
6
|
root: g,
|
|
7
7
|
"size-xs": "_size-xs_8gp32_7",
|
package/dist/Icon.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
-
import { I as t } from "./Icon-
|
|
4
|
-
import { A as H$, C as z$, I as S$, P as y$, S as O$, a as B$ } from "./index-
|
|
5
|
-
import { A as T$ } from "./index-
|
|
6
|
-
import { A as x$, C as E$, a as R$, d as U$, D as _$, M as N$, c as W$, P as X$, V as G$, b as J$, X as Q$, Z as j$ } from "./index-
|
|
7
|
-
import { C as K$ } from "./index-
|
|
8
|
-
import { D as cZ } from "./index-
|
|
9
|
-
import { E as tZ, N as oZ, P as nZ, T as eZ } from "./index-
|
|
10
|
-
import { E as hZ } from "./index-
|
|
11
|
-
import { H as iZ, S as dZ } from "./index-
|
|
12
|
-
import { L as vZ } from "./index-
|
|
13
|
-
import { L as $Z } from "./index-
|
|
14
|
-
import { R as mZ } from "./index-
|
|
3
|
+
import { I as t } from "./Icon-EG7O4YwD.js";
|
|
4
|
+
import { A as H$, C as z$, I as S$, P as y$, S as O$, a as B$ } from "./index-DkwTwo3z.js";
|
|
5
|
+
import { A as T$ } from "./index-BeetbagJ.js";
|
|
6
|
+
import { A as x$, C as E$, a as R$, d as U$, D as _$, M as N$, c as W$, P as X$, V as G$, b as J$, X as Q$, Z as j$ } from "./index-CCASZBtz.js";
|
|
7
|
+
import { C as K$ } from "./index-Bt79XJ8R.js";
|
|
8
|
+
import { D as cZ } from "./index-CQEPCbEE.js";
|
|
9
|
+
import { E as tZ, N as oZ, P as nZ, T as eZ } from "./index-D8dq-I5s.js";
|
|
10
|
+
import { E as hZ } from "./index-Crpe9CvH.js";
|
|
11
|
+
import { H as iZ, S as dZ } from "./index-BC2bF45u.js";
|
|
12
|
+
import { L as vZ } from "./index-D5a8Oe6k.js";
|
|
13
|
+
import { L as $Z } from "./index-DnO8yBVT.js";
|
|
14
|
+
import { R as mZ } from "./index-BtwrJ6N4.js";
|
|
15
15
|
const o = '<path fill="currentColor" fill-rule="evenodd" d="M94.326 7.634a2.36 2.36 0 0 0-1.985-1.984l-.005-.001c-.41-.059-8.428-1.215-18.62-.294-13.75 1.24-24.848 5.73-32.101 12.984-3.839 3.838-6.608 8.386-8.596 13.157l-19.132 4.862a2.36 2.36 0 0 0-1.693 1.66 2.36 2.36 0 0 0 .606 2.291l15.493 15.497c-.2 7.364.556 12.735.637 13.272a2.359 2.359 0 0 0 1.986 1.986c.24.035 4.462.648 10.618.648.835 0 1.717-.016 2.62-.042l15.52 15.525a2.354 2.354 0 0 0 2.292.607 2.36 2.36 0 0 0 1.66-1.694l4.873-19.19c5.192-2.162 9.623-5.024 13.141-8.543C99.051 40.96 94.527 8.987 94.326 7.635ZM33.388 66.602c-.664-6.8-1.989-31.377 11.56-44.93C58.473 8.143 83.068 9.454 89.868 10.11c.664 6.8 1.99 31.377-11.56 44.93-13.526 13.529-38.12 12.218-44.92 11.562Zm.78 10.144a2.358 2.358 0 0 0-2.963 1.527c-.893 2.792-2.2 5.063-3.884 6.748-5.057 5.058-13.743 5.366-17.578 5.229-.144-3.832.155-12.5 5.233-17.577 1.685-1.685 3.955-2.993 6.745-3.885a2.359 2.359 0 0 0 1.529-2.964 2.36 2.36 0 0 0-2.964-1.528c-3.514 1.124-6.421 2.82-8.644 5.043-8.237 8.24-6.52 22.8-6.443 23.415A2.356 2.356 0 0 0 7.245 94.8c.187.024 1.669.201 3.872.201 5.028-.001 13.81-.917 19.537-6.646 2.221-2.221 3.917-5.13 5.042-8.645a2.36 2.36 0 0 0-1.528-2.963Zm21.41-32.338c-4.906-4.908-4.906-12.891 0-17.798 4.907-4.906 12.889-4.906 17.794 0 4.905 4.907 4.905 12.89 0 17.798a12.546 12.546 0 0 1-8.897 3.68 12.544 12.544 0 0 1-8.897-3.68Zm8.897-1.029a7.815 7.815 0 0 0 5.564-2.305 7.817 7.817 0 0 0 2.304-5.565 7.819 7.819 0 0 0-2.305-5.566 7.82 7.82 0 0 0-5.563-2.305c-2.101 0-4.078.82-5.564 2.305a7.824 7.824 0 0 0-2.305 5.566c0 2.103.82 4.078 2.305 5.565a7.813 7.813 0 0 0 5.564 2.305Z" clip-rule="evenodd"/>', n = 15, e = 15, a = {
|
|
16
16
|
block: o,
|
|
17
17
|
height: n,
|
package/dist/InputText.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
|
3
3
|
import u, { forwardRef as E } from "react";
|
|
4
4
|
import { CloseButton as R } from "./CloseButton.js";
|
|
5
5
|
import { useField as S } from "./Field.js";
|
|
6
|
-
import { c as b } from "./index-
|
|
6
|
+
import { c as b } from "./index-CdiHdiVB.js";
|
|
7
7
|
const j = "_root_1n264_8", D = "_transparent_1n264_72", F = "_clearable_1n264_97", L = {
|
|
8
8
|
"input-text-wrapper": "_input-text-wrapper_1n264_2",
|
|
9
9
|
root: j,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { u as X } from "./
|
|
5
|
-
import {
|
|
2
|
+
import { u as $ } from "./2W3RN7C5-bkX-rIa3.js";
|
|
3
|
+
import { createContext as w, useState as D, useRef as H, useEffect as O } from "react";
|
|
4
|
+
import { e as V, f as W, c as q, b as z, _ as B, N as G, A as I, $ as J, u as P, x as K, d as L, p as Q, a as p, r as X } from "./OE2EFRVA-C3721cM3.js";
|
|
5
|
+
import { u as Y } from "./RTNCFSKZ-qpPg689E.js";
|
|
6
6
|
import { jsx as Z } from "react/jsx-runtime";
|
|
7
|
-
var ee =
|
|
7
|
+
var ee = w(!1), re = V(), te = re.useContext, _ = "input";
|
|
8
8
|
function y(t, a) {
|
|
9
9
|
a ? t.indeterminate = !0 : t.indeterminate && (t.indeterminate = !1);
|
|
10
10
|
}
|
|
11
11
|
function ne(t, a) {
|
|
12
12
|
return t === "input" && (!a || a === "checkbox");
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function A(t) {
|
|
15
15
|
return Array.isArray(t) ? t.toString() : t;
|
|
16
16
|
}
|
|
17
|
-
var oe =
|
|
17
|
+
var oe = q(
|
|
18
18
|
function(a) {
|
|
19
19
|
var f = a, {
|
|
20
20
|
store: i,
|
|
21
21
|
name: h,
|
|
22
22
|
value: n,
|
|
23
|
-
checked:
|
|
23
|
+
checked: v,
|
|
24
24
|
defaultChecked: C
|
|
25
|
-
} = f, r =
|
|
25
|
+
} = f, r = B(f, [
|
|
26
26
|
"store",
|
|
27
27
|
"name",
|
|
28
28
|
"value",
|
|
@@ -31,22 +31,22 @@ var oe = w(
|
|
|
31
31
|
]);
|
|
32
32
|
const T = te();
|
|
33
33
|
i = i || T;
|
|
34
|
-
const [E, N] =
|
|
35
|
-
if (
|
|
34
|
+
const [E, N] = D(C ?? !1), u = Y(i, (e) => {
|
|
35
|
+
if (v !== void 0) return v;
|
|
36
36
|
if ((e == null ? void 0 : e.value) === void 0) return E;
|
|
37
37
|
if (n != null) {
|
|
38
38
|
if (Array.isArray(e.value)) {
|
|
39
|
-
const d =
|
|
39
|
+
const d = A(n);
|
|
40
40
|
return e.value.includes(d);
|
|
41
41
|
}
|
|
42
42
|
return e.value === n;
|
|
43
43
|
}
|
|
44
44
|
return Array.isArray(e.value) ? !1 : typeof e.value == "boolean" ? e.value : !1;
|
|
45
|
-
}), k =
|
|
46
|
-
|
|
45
|
+
}), k = H(null), S = G(k, _), o = ne(S, r.type), m = u ? u === "mixed" : void 0, s = u === "mixed" ? !1 : u, R = I(r), [U, j] = J();
|
|
46
|
+
O(() => {
|
|
47
47
|
const e = k.current;
|
|
48
|
-
e && (y(e, m), !o && (e.checked =
|
|
49
|
-
}, [U, m, o,
|
|
48
|
+
e && (y(e, m), !o && (e.checked = s, h !== void 0 && (e.name = h), n !== void 0 && (e.value = `${n}`)));
|
|
49
|
+
}, [U, m, o, s, h, n]);
|
|
50
50
|
const x = r.onChange, b = P((e) => {
|
|
51
51
|
if (R) {
|
|
52
52
|
e.stopPropagation(), e.preventDefault();
|
|
@@ -56,33 +56,33 @@ var oe = w(
|
|
|
56
56
|
const d = e.currentTarget.checked;
|
|
57
57
|
N(d), i == null || i.setValue((c) => {
|
|
58
58
|
if (n == null) return d;
|
|
59
|
-
const l =
|
|
60
|
-
return Array.isArray(c) ? d ? c.includes(l) ? c : [...c, l] : c.filter((
|
|
59
|
+
const l = A(n);
|
|
60
|
+
return Array.isArray(c) ? d ? c.includes(l) ? c : [...c, l] : c.filter((M) => M !== l) : c === l ? !1 : l;
|
|
61
61
|
});
|
|
62
|
-
}), g = r.onClick,
|
|
62
|
+
}), g = r.onClick, F = P((e) => {
|
|
63
63
|
g == null || g(e), !e.defaultPrevented && (o || b(e));
|
|
64
64
|
});
|
|
65
|
-
return r =
|
|
65
|
+
return r = K(
|
|
66
66
|
r,
|
|
67
|
-
(e) => /* @__PURE__ */ Z(ee.Provider, { value:
|
|
68
|
-
[
|
|
69
|
-
), r =
|
|
67
|
+
(e) => /* @__PURE__ */ Z(ee.Provider, { value: s, children: e }),
|
|
68
|
+
[s]
|
|
69
|
+
), r = L(p({
|
|
70
70
|
role: o ? void 0 : "checkbox",
|
|
71
71
|
type: o ? "checkbox" : void 0,
|
|
72
|
-
"aria-checked":
|
|
72
|
+
"aria-checked": u
|
|
73
73
|
}, r), {
|
|
74
|
-
ref:
|
|
74
|
+
ref: Q(k, r.ref),
|
|
75
75
|
onChange: b,
|
|
76
|
-
onClick:
|
|
77
|
-
}), r =
|
|
76
|
+
onClick: F
|
|
77
|
+
}), r = $(p({ clickOnEnter: !o }, r)), X(p({
|
|
78
78
|
name: o ? h : void 0,
|
|
79
79
|
value: o ? n : void 0,
|
|
80
|
-
checked:
|
|
80
|
+
checked: s
|
|
81
81
|
}, r));
|
|
82
82
|
}
|
|
83
|
-
), de =
|
|
83
|
+
), de = W(function(a) {
|
|
84
84
|
const f = oe(a);
|
|
85
|
-
return
|
|
85
|
+
return z(_, f);
|
|
86
86
|
});
|
|
87
87
|
export {
|
|
88
88
|
de as C
|
package/dist/Label.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import "./Icon-
|
|
4
|
-
import { L as a } from "./index-
|
|
3
|
+
import "./Icon-EG7O4YwD.js";
|
|
4
|
+
import { L as a } from "./index-DnO8yBVT.js";
|
|
5
5
|
import { VariantIcon as p } from "./VariantIcon.js";
|
|
6
|
-
import { c as u } from "./index-
|
|
6
|
+
import { c as u } from "./index-CdiHdiVB.js";
|
|
7
7
|
import { f } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
8
8
|
import "react";
|
|
9
9
|
const d = "_root_pgmty_2", _ = "_required_pgmty_14", q = {
|
package/dist/Link.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_vehh7_2{display:inline-flex;flex-direction:row;align-items:center;opacity:1;line-height:var(--line-height-lg);text-decoration:none;cursor:pointer;font-weight:var(--font-weight-medium);color:var(--color, var(--color-neutral-90))}._root_vehh7_2._isExternal_vehh7_13{--backgroundSize: calc(100% - var(--spacing-lg) - var(--spacing-sm)) 50%}._root_vehh7_2._isExternal_vehh7_13 ._wui-text_vehh7_16>svg{display:inline;margin-left:var(--spacing-sm)}@media (hover: hover) and (pointer: fine){._root_vehh7_2:hover{--color: var(--colorHover);--backgroundPositionY: 100%;--backgroundSize: 100% 100%}}._root_vehh7_2:focus-visible{outline:none;--color: var(--colorHover);--backgroundPositionY: 100%;--backgroundSize: 100% 100%}._root_vehh7_2[aria-disabled]{--backgroundImageColor: var(--color-neutral-30);--color: var(--color-neutral-60);pointer-events:none}._variant-primary_vehh7_38{--backgroundImageColor: var(--color-brand-40);--colorHover: var(--color-neutral-90)}._variant-secondary_vehh7_42{--backgroundImageColor: var(--color-neutral-90);--colorHover: var(--color-neutral-10)}}._wui-text_vehh7_16{margin-right:calc(var(--spacing-xxs) * -1);margin-left:calc(var(--spacing-xxs) * -1);padding-left:var(--spacing-xxs);padding-right:var(--spacing-xxs);transition:var(--duration-medium) ease-in-out;background-repeat:no-repeat;background-size:var(--backgroundSize, 100% 50%);background-image:linear-gradient(0deg,var(--backgroundImageColor),var(--backgroundImageColor) 100%);background-position-y:var(--backgroundPositionY, calc(200% - var(--spacing-xxs)))}._isMultiline_vehh7_59{display:inline}
|
package/dist/Link.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import a from "react";
|
|
4
|
-
import "./Icon-
|
|
5
|
-
import { E
|
|
6
|
-
import { c as
|
|
7
|
-
import { f as
|
|
8
|
-
const
|
|
9
|
-
root:
|
|
10
|
-
isExternal:
|
|
11
|
-
"wui-text": "_wui-
|
|
12
|
-
"variant-primary": "_variant-
|
|
13
|
-
"variant-secondary": "_variant-
|
|
14
|
-
isMultiline:
|
|
15
|
-
}, i =
|
|
4
|
+
import "./Icon-EG7O4YwD.js";
|
|
5
|
+
import { E } from "./index-Crpe9CvH.js";
|
|
6
|
+
import { c as N } from "./index-CdiHdiVB.js";
|
|
7
|
+
import { f as w } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
8
|
+
const g = "_root_vehh7_2", k = "_isExternal_vehh7_13", M = "_isMultiline_vehh7_59", b = {
|
|
9
|
+
root: g,
|
|
10
|
+
isExternal: k,
|
|
11
|
+
"wui-text": "_wui-text_vehh7_16",
|
|
12
|
+
"variant-primary": "_variant-primary_vehh7_38",
|
|
13
|
+
"variant-secondary": "_variant-secondary_vehh7_42",
|
|
14
|
+
isMultiline: M
|
|
15
|
+
}, i = N(b), o = ({ children: r, isExternal: e }) => /* @__PURE__ */ d("span", { className: i("wui-text"), children: [
|
|
16
16
|
r,
|
|
17
|
-
|
|
18
|
-
] }), l = (r,
|
|
19
|
-
r.props.tagName === "span" || r.props["data-wui-link"] === !0 || typeof r.props.children == "string") ?
|
|
17
|
+
e ? /* @__PURE__ */ t(E, { size: "sm" }) : null
|
|
18
|
+
] }), l = (r, e) => typeof r == "string" ? /* @__PURE__ */ t(o, { isExternal: e, children: r }) : a.isValidElement(r) && (r.type === "span" || r.props.as === "span" || // FormattedMessage from react-intl has a span tag by default
|
|
19
|
+
r.props.tagName === "span" || r.props["data-wui-link"] === !0 || typeof r.props.children == "string") ? e ? /* @__PURE__ */ t(o, { isExternal: e, children: r }) : (
|
|
20
20
|
// If it is not external, we just need to add wui-text className to the child as we don't need to wrap it to display the icon
|
|
21
21
|
a.cloneElement(r, {
|
|
22
22
|
className: i("wui-text", r.props.className)
|
|
23
23
|
})
|
|
24
|
-
) : r, C =
|
|
24
|
+
) : r, C = w((r, e) => {
|
|
25
25
|
const {
|
|
26
26
|
as: p,
|
|
27
|
-
children:
|
|
27
|
+
children: n,
|
|
28
28
|
className: m,
|
|
29
29
|
disabled: _,
|
|
30
|
-
isExternal:
|
|
30
|
+
isExternal: s,
|
|
31
31
|
multiline: c,
|
|
32
32
|
target: u,
|
|
33
33
|
variant: f = "primary",
|
|
34
|
-
...
|
|
35
|
-
} = r,
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
|
|
34
|
+
...v
|
|
35
|
+
} = r, x = p || "a", h = typeof n == "string" ? l(n, s) : a.Children.map(n, (y) => l(y, s));
|
|
36
|
+
return /* @__PURE__ */ t(
|
|
37
|
+
x,
|
|
38
38
|
{
|
|
39
39
|
"aria-disabled": _,
|
|
40
40
|
className: i(
|
|
41
41
|
"root",
|
|
42
42
|
`variant-${f}`,
|
|
43
|
-
|
|
43
|
+
s && "isExternal",
|
|
44
44
|
c && "isMultiline",
|
|
45
45
|
m
|
|
46
46
|
),
|
|
47
|
-
ref:
|
|
47
|
+
ref: e,
|
|
48
48
|
rel: u === "_blank" ? "noopener noreferrer" : void 0,
|
|
49
|
-
...
|
|
50
|
-
children:
|
|
49
|
+
...v,
|
|
50
|
+
children: h
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
53
|
});
|
package/dist/Loader.js
CHANGED
package/dist/Logo.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as m, jsx as c } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as Z } from "react";
|
|
4
|
-
import { c as a } from "./index-
|
|
4
|
+
import { c as a } from "./index-CdiHdiVB.js";
|
|
5
5
|
const s = "_logo_lpkm1_2", h = {
|
|
6
6
|
logo: s
|
|
7
7
|
}, e = a(h), r = Z(
|
package/dist/Modal.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { u as C } from "./RTNCFSKZ-qpPg689E.js";
|
|
4
|
+
import { D as I, u as y } from "./NI3IVY7K-Ztb3-XAv.js";
|
|
5
5
|
import { forwardRef as c, isValidElement as B, cloneElement as S, useState as A, useEffect as T } from "react";
|
|
6
|
-
import { c as n } from "./index-
|
|
6
|
+
import { c as n } from "./index-CdiHdiVB.js";
|
|
7
7
|
import { f as z } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
8
|
-
import { D as v } from "./
|
|
9
|
-
import "./Icon-
|
|
10
|
-
import { C as j } from "./index-
|
|
8
|
+
import { D as v } from "./DSAASPLT-BaaCUKsb.js";
|
|
9
|
+
import "./Icon-EG7O4YwD.js";
|
|
10
|
+
import { C as j } from "./index-Bt79XJ8R.js";
|
|
11
11
|
import { Button as E } from "./Button.js";
|
|
12
12
|
import { Text as m } from "./Text.js";
|
|
13
13
|
import { CloseButton as M } from "./CloseButton.js";
|
|
14
|
-
import { D as H } from "./
|
|
14
|
+
import { D as H } from "./ZTXFEM5L-CkrIQCN1.js";
|
|
15
15
|
const R = "_root_1vbnu_3", W = "_hideOnInteractOutside_1vbnu_19", F = "_dialog_1vbnu_117", i = {
|
|
16
16
|
root: R,
|
|
17
17
|
"asset-backdrop": "_asset-backdrop_1vbnu_8",
|
|
@@ -115,7 +115,7 @@ const R = "_root_1vbnu_3", W = "_hideOnInteractOutside_1vbnu_19", F = "_dialog_1
|
|
|
115
115
|
), Nt = n(l);
|
|
116
116
|
function Et(t) {
|
|
117
117
|
const { onClose: e, setOpen: s, ...r } = t || {};
|
|
118
|
-
return
|
|
118
|
+
return y({
|
|
119
119
|
setOpen: (a) => {
|
|
120
120
|
!a && e && e(), s == null || s(a);
|
|
121
121
|
},
|
|
@@ -135,11 +135,11 @@ const xt = z(
|
|
|
135
135
|
store: h,
|
|
136
136
|
...w
|
|
137
137
|
}, O) => {
|
|
138
|
-
const [D, k] = A(!1), { contentElement: f, open: b } =
|
|
138
|
+
const [D, k] = A(!1), { contentElement: f, open: b } = C(h);
|
|
139
139
|
return T(() => {
|
|
140
140
|
b && f && k(f.scrollHeight > f.offsetHeight);
|
|
141
141
|
}, [f, b]), /* @__PURE__ */ o(
|
|
142
|
-
|
|
142
|
+
I,
|
|
143
143
|
{
|
|
144
144
|
backdrop: /* @__PURE__ */ o(mt, { backdrop: s, hideOnInteractOutside: a }),
|
|
145
145
|
hideOnInteractOutside: a,
|