welcome-ui 8.0.0-alpha.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.
- package/dist/AXB53BZF-BOEe01VW.mjs +25 -0
- package/dist/Accordion.mjs +17 -17
- package/dist/Alert.mjs +19 -19
- package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-B1IDizRs.mjs} +298 -295
- package/dist/Badge.mjs +1 -1
- package/dist/Breadcrumb.mjs +27 -26
- package/dist/Button.mjs +2 -2
- package/dist/Checkbox.mjs +1 -1
- package/dist/{CustomInput-D_13Gd_3.mjs → CustomInput-IA_gVoXd.mjs} +2991 -2859
- package/dist/DatePicker.mjs +4 -4
- package/dist/DateTimePicker.mjs +9 -9
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +7 -7
- package/dist/DropdownMenu.mjs +262 -262
- package/dist/Field.mjs +25 -25
- package/dist/FileDrop.mjs +273 -267
- package/dist/FileUpload.mjs +26 -26
- package/dist/Files.mjs +1 -1
- package/dist/Hint.mjs +1 -1
- package/dist/{ITI7HKP4-BONrZ9Pq.mjs → ITI7HKP4-EL9KXYBU.mjs} +150 -150
- package/dist/Icons.mjs +88 -88
- package/dist/IconsFont.mjs +159 -159
- package/dist/InputText.mjs +1 -1
- package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-BzklVBKM.mjs} +70 -70
- package/dist/KUU7WJ55-CS4NemC6.mjs +61 -0
- package/dist/{LVA2YJMS-qFC9J-lt.mjs → LVA2YJMS-DDEmK0pp.mjs} +491 -488
- package/dist/Label.mjs +2 -2
- package/dist/Link.mjs +3 -3
- package/dist/MTZPJQMC-CMjAwC0N.mjs +15 -0
- package/dist/Modal.mjs +13 -13
- package/dist/NLEBE274-QOMV1l7e.mjs +84 -0
- package/dist/P2CTZE2T-Cl2w7OLV.mjs +300 -0
- package/dist/P4IRICAX-DezbJY4s.mjs +37 -0
- package/dist/Pagination.mjs +22 -22
- package/dist/Picker.mjs +2 -2
- package/dist/Popover.mjs +2 -2
- package/dist/QYJ6MIDR-Bb0O5xUM.mjs +97 -0
- package/dist/Radio.mjs +18 -18
- package/dist/RadioGroup.mjs +15 -15
- package/dist/RadioTab.mjs +9 -9
- package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-jn06-eLy.mjs} +17 -17
- package/dist/Search.mjs +2 -2
- package/dist/Select.mjs +719 -716
- package/dist/Shape.mjs +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/Swiper.mjs +284 -278
- package/dist/Tabs.mjs +128 -128
- package/dist/Tag.mjs +16 -16
- package/dist/Text.mjs +1 -1
- package/dist/Textarea.mjs +4 -4
- package/dist/TimePicker.mjs +6 -6
- package/dist/Toast.mjs +69 -69
- package/dist/Toggle.mjs +2 -2
- package/dist/Tooltip.mjs +60 -60
- package/dist/UniversalLink.mjs +8 -8
- package/dist/VEVQD5MH-CuegL0m0.mjs +20 -0
- package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-BMzoZtCu.mjs} +31 -33
- package/dist/VariantIcon.mjs +4 -4
- package/dist/WelcomeLoader.mjs +4862 -9223
- package/dist/X5NMLKT6-CvSCix-_.mjs +25 -0
- package/dist/YV4JVR4I-Bh7B7TET.mjs +344 -0
- package/dist/downshift.esm-D0ns_SQs.mjs +1082 -0
- package/dist/{field-styles-DLIhqG_8.mjs → field-styles-CfVLcVQp.mjs} +1 -1
- package/dist/{index-BDeIsk2X.mjs → index-5PUh49rV.mjs} +56 -56
- package/dist/{index-DEJJvyGk.mjs → index-B0gDDiFm.mjs} +7 -7
- package/dist/{index-CExLVjET.mjs → index-B22SHR8h.mjs} +4 -4
- package/dist/index-BhcLigYU.mjs +77 -0
- package/dist/{index-BJAZgeHL.mjs → index-Bkl89twW.mjs} +4 -4
- package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
- package/dist/{index-BpRjq7lj.mjs → index-CQD9fgf_.mjs} +3 -3
- package/dist/{index-BRDOakbf.mjs → index-CmsWSKKs.mjs} +5 -5
- package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
- package/dist/{index-BrfXjmHY.mjs → index-wr_b5GSV.mjs} +6 -6
- package/dist/radio-group-RFyDp0KD.mjs +51 -0
- package/dist/theme.mjs +670 -615
- package/dist/{use-viewport-m3glsbna.mjs → use-viewport-CfklieD-.mjs} +5 -5
- package/dist/utils.mjs +29 -91
- package/package.json +12 -15
- package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
- package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
- package/dist/NLEBE274-C94QU78N.mjs +0 -84
- package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
- package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
- package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
- package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
- package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
- package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
- package/dist/radio-group-CGC6DTFJ.mjs +0 -51
package/dist/UniversalLink.mjs
CHANGED
|
@@ -5,21 +5,21 @@ import { shouldForwardProp as l, forwardRef as d } from "./System.mjs";
|
|
|
5
5
|
const s = a.aBox.withConfig({ shouldForwardProp: l })`
|
|
6
6
|
color: inherit;
|
|
7
7
|
text-decoration: none;
|
|
8
|
-
`,
|
|
9
|
-
({ children:
|
|
8
|
+
`, c = d(
|
|
9
|
+
({ children: o, dataTestId: r, target: e, ...i }, n) => /* @__PURE__ */ t.createElement(
|
|
10
10
|
s,
|
|
11
11
|
{
|
|
12
12
|
color: "inherit",
|
|
13
|
-
"data-testid":
|
|
14
|
-
ref:
|
|
13
|
+
"data-testid": r,
|
|
14
|
+
ref: n,
|
|
15
15
|
rel: e === "_blank" ? "noopener noreferrer" : void 0,
|
|
16
16
|
target: e,
|
|
17
|
-
...
|
|
17
|
+
...i
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
o
|
|
20
20
|
)
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
c.displayName = "UniversalLink";
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
c as UniversalLink
|
|
25
25
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { C as t, a as r } from "./P2CTZE2T-Cl2w7OLV.mjs";
|
|
3
|
+
import { P as a, a as i } from "./MTZPJQMC-CMjAwC0N.mjs";
|
|
4
|
+
import { v as s } from "./LVA2YJMS-DDEmK0pp.mjs";
|
|
5
|
+
import { createContext as o } from "react";
|
|
6
|
+
o(
|
|
7
|
+
void 0
|
|
8
|
+
);
|
|
9
|
+
var e = s(
|
|
10
|
+
[i, r],
|
|
11
|
+
[a, t]
|
|
12
|
+
), n = e.useContext, p = e.useProviderContext;
|
|
13
|
+
o(
|
|
14
|
+
void 0
|
|
15
|
+
);
|
|
16
|
+
o(!1);
|
|
17
|
+
export {
|
|
18
|
+
p as a,
|
|
19
|
+
n as u
|
|
20
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { m as Y, o as Z, t as ee,
|
|
3
|
-
import { C as
|
|
4
|
-
import { createContext as M, useRef as
|
|
5
|
-
import { r as De } from "./index-
|
|
2
|
+
import { m as Y, o as Z, t as ee, c as te, s as y, d as j, e as ne, a as oe, b as P, u as H } from "./YV4JVR4I-Bh7B7TET.mjs";
|
|
3
|
+
import { C as p, B as se, D as ae, H as re, v as R, f as T, _ as F, t as I, g as _, c as ie, h as ue, i as le, x as ce, F as S, E as de, d as A, e as me, z as fe } from "./LVA2YJMS-DDEmK0pp.mjs";
|
|
4
|
+
import { createContext as M, useRef as ve, useState as pe, useMemo as Se } from "react";
|
|
5
|
+
import { r as De } from "./index-CBBbX29m.mjs";
|
|
6
6
|
function Ce(n = {}) {
|
|
7
7
|
const o = Y(
|
|
8
8
|
n.store,
|
|
9
9
|
Z(n.disclosure, ["contentElement", "disclosureElement"])
|
|
10
10
|
);
|
|
11
11
|
ee(n, o);
|
|
12
|
-
const e = o == null ? void 0 : o.getState(), t =
|
|
12
|
+
const e = o == null ? void 0 : o.getState(), t = p(
|
|
13
13
|
n.open,
|
|
14
14
|
e == null ? void 0 : e.open,
|
|
15
15
|
n.defaultOpen,
|
|
16
16
|
!1
|
|
17
|
-
), i =
|
|
17
|
+
), i = p(n.animated, e == null ? void 0 : e.animated, !1), r = {
|
|
18
18
|
open: t,
|
|
19
19
|
animated: i,
|
|
20
20
|
animating: !!i && t,
|
|
21
21
|
mounted: t,
|
|
22
|
-
contentElement:
|
|
23
|
-
disclosureElement:
|
|
22
|
+
contentElement: p(e == null ? void 0 : e.contentElement, null),
|
|
23
|
+
disclosureElement: p(e == null ? void 0 : e.disclosureElement, null)
|
|
24
24
|
}, s = te(r, o);
|
|
25
25
|
return y(
|
|
26
26
|
s,
|
|
@@ -55,12 +55,10 @@ function Re(n = {}) {
|
|
|
55
55
|
const [o, e] = oe(Ce, n);
|
|
56
56
|
return xe(o, e, n);
|
|
57
57
|
}
|
|
58
|
-
var b = R(), N = b.useProviderContext, ge = b.ContextProvider, Ee = b.ScopedContextProvider,
|
|
58
|
+
var b = R(), N = b.useProviderContext, ge = b.ContextProvider, Ee = b.ScopedContextProvider, D = R(
|
|
59
59
|
[ge],
|
|
60
60
|
[Ee]
|
|
61
|
-
);
|
|
62
|
-
p.useContext;
|
|
63
|
-
var Te = p.useScopedContext, Fe = p.useProviderContext, Ie = p.ContextProvider, ye = p.ScopedContextProvider, Me = M(void 0), Ne = M(void 0), Pe = "div";
|
|
61
|
+
), Te = D.useScopedContext, Fe = D.useProviderContext, Ie = D.ContextProvider, ye = D.ScopedContextProvider, Me = M(void 0), Ne = M(void 0), Pe = "div";
|
|
64
62
|
function V(n, o) {
|
|
65
63
|
const e = setTimeout(o, n);
|
|
66
64
|
return () => clearTimeout(e);
|
|
@@ -83,34 +81,34 @@ function be(n, o, e) {
|
|
|
83
81
|
var he = ie(function(o) {
|
|
84
82
|
var e = o, { store: t, alwaysVisible: i } = e, r = F(e, ["store", "alwaysVisible"]);
|
|
85
83
|
const s = N();
|
|
86
|
-
t = t || s,
|
|
84
|
+
t = t || s, le(
|
|
87
85
|
t,
|
|
88
86
|
process.env.NODE_ENV !== "production" && "DisclosureContent must receive a `store` prop or be wrapped in a DisclosureProvider component."
|
|
89
87
|
);
|
|
90
|
-
const a =
|
|
91
|
-
|
|
88
|
+
const a = ve(null), f = ce(r.id), [l, h] = pe(null), c = t.useState("open"), C = t.useState("mounted"), d = t.useState("animated"), m = t.useState("contentElement"), x = H(t.disclosure, "contentElement");
|
|
89
|
+
S(() => {
|
|
92
90
|
a.current && (t == null || t.setContentElement(a.current));
|
|
93
|
-
}, [t]),
|
|
91
|
+
}, [t]), S(() => {
|
|
94
92
|
let u;
|
|
95
|
-
return t == null || t.setState("animated", (
|
|
93
|
+
return t == null || t.setState("animated", (v) => (u = v, !0)), () => {
|
|
96
94
|
u !== void 0 && (t == null || t.setState("animated", u));
|
|
97
95
|
};
|
|
98
|
-
}, [t]),
|
|
99
|
-
if (
|
|
96
|
+
}, [t]), S(() => {
|
|
97
|
+
if (d) {
|
|
100
98
|
if (!(m != null && m.isConnected)) {
|
|
101
99
|
h(null);
|
|
102
100
|
return;
|
|
103
101
|
}
|
|
104
102
|
return _e(() => {
|
|
105
|
-
h(
|
|
103
|
+
h(c ? "enter" : C ? "leave" : null);
|
|
106
104
|
});
|
|
107
105
|
}
|
|
108
|
-
}, [
|
|
109
|
-
if (!t || !
|
|
110
|
-
const u = () => t == null ? void 0 : t.setState("animating", !1),
|
|
111
|
-
if (l === "leave" &&
|
|
112
|
-
if (typeof
|
|
113
|
-
return V(
|
|
106
|
+
}, [d, m, c, C]), S(() => {
|
|
107
|
+
if (!t || !d || !l || !m) return;
|
|
108
|
+
const u = () => t == null ? void 0 : t.setState("animating", !1), v = () => De.flushSync(u);
|
|
109
|
+
if (l === "leave" && c || l === "enter" && !c) return;
|
|
110
|
+
if (typeof d == "number")
|
|
111
|
+
return V(d, v);
|
|
114
112
|
const {
|
|
115
113
|
transitionDuration: k,
|
|
116
114
|
animationDuration: q,
|
|
@@ -137,26 +135,26 @@ var he = ie(function(o) {
|
|
|
137
135
|
return;
|
|
138
136
|
}
|
|
139
137
|
const Q = 1e3 / 60, X = Math.max(O - Q, 0);
|
|
140
|
-
return V(X,
|
|
141
|
-
}, [t,
|
|
138
|
+
return V(X, v);
|
|
139
|
+
}, [t, d, m, x, c, l]), r = de(
|
|
142
140
|
r,
|
|
143
141
|
(u) => /* @__PURE__ */ I.jsx(ye, { value: t, children: u }),
|
|
144
142
|
[t]
|
|
145
143
|
);
|
|
146
|
-
const g = be(C, r.hidden, i), E = r.style, $ =
|
|
144
|
+
const g = be(C, r.hidden, i), E = r.style, $ = Se(() => g ? A(_({}, E), { display: "none" }) : E, [g, E]);
|
|
147
145
|
return r = A(_({
|
|
148
146
|
id: f,
|
|
149
|
-
"data-open":
|
|
147
|
+
"data-open": c || void 0,
|
|
150
148
|
"data-enter": l === "enter" || void 0,
|
|
151
149
|
"data-leave": l === "leave" || void 0,
|
|
152
150
|
hidden: g
|
|
153
151
|
}, r), {
|
|
154
|
-
ref:
|
|
152
|
+
ref: me(f ? t.setContentElement : null, a, r.ref),
|
|
155
153
|
style: $
|
|
156
|
-
}),
|
|
154
|
+
}), fe(r);
|
|
157
155
|
}), Oe = T(function(o) {
|
|
158
156
|
const e = he(o);
|
|
159
|
-
return
|
|
157
|
+
return ue(Pe, e);
|
|
160
158
|
}), $e = T(function(o) {
|
|
161
159
|
var e = o, {
|
|
162
160
|
unmountOnHide: t
|
package/dist/VariantIcon.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import t, { useMemo as a } from "react";
|
|
3
|
-
import f, {
|
|
3
|
+
import f, { th as m, css as u } from "@xstyled/styled-components";
|
|
4
4
|
import "./Icon.mjs";
|
|
5
|
-
import { P as s, C as i, I, A as d, S as p, a as E } from "./index-
|
|
5
|
+
import { P as s, C as i, I, A as d, S as p, a as E } from "./index-wr_b5GSV.mjs";
|
|
6
6
|
import { forwardRef as x } from "./System.mjs";
|
|
7
7
|
const g = f.divBox(
|
|
8
|
-
({ variant: n }) =>
|
|
8
|
+
({ variant: n }) => u`
|
|
9
9
|
display: inline-flex;
|
|
10
|
-
${
|
|
10
|
+
${m(`variantIcon.${n}`)}
|
|
11
11
|
flex-shrink: 0;
|
|
12
12
|
align-self: center;
|
|
13
13
|
`
|