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,61 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { c as F, _ as p, O as m, G as I, L as h, b as _, e as x, f as Y, g as T, W as L, X as w, q as j, p as G, Y as H, Z as V, l as W, n as X } from "./LVA2YJMS-NUHCRwFZ.js";
|
|
3
|
-
import { useRef as C, useState as D, useEffect as Z } from "react";
|
|
4
|
-
var z = "button";
|
|
5
|
-
function M(s) {
|
|
6
|
-
if (!s.isTrusted) return !1;
|
|
7
|
-
const t = s.currentTarget;
|
|
8
|
-
return s.key === "Enter" ? m(t) || t.tagName === "SUMMARY" || t.tagName === "A" : s.key === " " ? m(t) || t.tagName === "SUMMARY" || t.tagName === "INPUT" || t.tagName === "SELECT" : !1;
|
|
9
|
-
}
|
|
10
|
-
var J = Symbol("command"), Q = F(
|
|
11
|
-
function(t) {
|
|
12
|
-
var i = t, { clickOnEnter: d = !0, clickOnSpace: u = !0 } = i, r = p(i, ["clickOnEnter", "clickOnSpace"]);
|
|
13
|
-
const c = C(null), [K, R] = D(!1);
|
|
14
|
-
Z(() => {
|
|
15
|
-
c.current && R(m(c.current));
|
|
16
|
-
}, []);
|
|
17
|
-
const [U, k] = D(!1), f = C(!1), y = I(r), [E, O] = h(r, J, !0), g = r.onKeyDown, q = _((e) => {
|
|
18
|
-
g == null || g(e);
|
|
19
|
-
const a = e.currentTarget;
|
|
20
|
-
if (e.defaultPrevented || E || y || !j(e) || G(a) || a.isContentEditable) return;
|
|
21
|
-
const o = d && e.key === "Enter", n = u && e.key === " ", b = e.key === "Enter" && !d, l = e.key === " " && !u;
|
|
22
|
-
if (b || l) {
|
|
23
|
-
e.preventDefault();
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
if (o || n) {
|
|
27
|
-
const v = M(e);
|
|
28
|
-
if (o) {
|
|
29
|
-
if (!v) {
|
|
30
|
-
e.preventDefault();
|
|
31
|
-
const S = e, { view: $ } = S, B = p(S, ["view"]), N = () => w(a, B);
|
|
32
|
-
H() ? V(a, "keyup", N) : queueMicrotask(N);
|
|
33
|
-
}
|
|
34
|
-
} else n && (f.current = !0, v || (e.preventDefault(), k(!0)));
|
|
35
|
-
}
|
|
36
|
-
}), P = r.onKeyUp, A = _((e) => {
|
|
37
|
-
if (P == null || P(e), e.defaultPrevented || E || y || e.metaKey) return;
|
|
38
|
-
const a = u && e.key === " ";
|
|
39
|
-
if (f.current && a && (f.current = !1, !M(e))) {
|
|
40
|
-
e.preventDefault(), k(!1);
|
|
41
|
-
const o = e.currentTarget, n = e, { view: b } = n, l = p(n, ["view"]);
|
|
42
|
-
queueMicrotask(() => w(o, l));
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
return r = x(T(T({
|
|
46
|
-
"data-active": U || void 0,
|
|
47
|
-
type: K ? "button" : void 0
|
|
48
|
-
}, O), r), {
|
|
49
|
-
ref: Y(c, r.ref),
|
|
50
|
-
onKeyDown: q,
|
|
51
|
-
onKeyUp: A
|
|
52
|
-
}), r = L(r), r;
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
W(function(t) {
|
|
56
|
-
const i = Q(t);
|
|
57
|
-
return X(z, i);
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
Q as u
|
|
61
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { g as e, k as r } from "./VGCJ63VH-CVhs4PYt.js";
|
|
3
|
-
import { v as t } from "./LVA2YJMS-NUHCRwFZ.js";
|
|
4
|
-
var o = t(
|
|
5
|
-
[r],
|
|
6
|
-
[e]
|
|
7
|
-
), x = o.useContext;
|
|
8
|
-
o.useScopedContext;
|
|
9
|
-
var i = o.useProviderContext, n = o.ContextProvider, s = o.ScopedContextProvider;
|
|
10
|
-
export {
|
|
11
|
-
s as P,
|
|
12
|
-
x as a,
|
|
13
|
-
n as b,
|
|
14
|
-
i as u
|
|
15
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { u as _ } from "./AXB53BZF-BHeessqV.js";
|
|
3
|
-
import { u as p, P as D } from "./MTZPJQMC-D_TnSwZf.js";
|
|
4
|
-
import { c as i, _ as v, e as l, f as h, g as n, l as P, n as m, i as E, b, D as g } from "./LVA2YJMS-NUHCRwFZ.js";
|
|
5
|
-
import { jsx as x } from "react/jsx-runtime";
|
|
6
|
-
var A = "div", d = i(
|
|
7
|
-
function(s) {
|
|
8
|
-
var r = s, { store: e } = r, o = v(r, ["store"]);
|
|
9
|
-
const c = p();
|
|
10
|
-
return e = e || c, o = l(n({}, o), {
|
|
11
|
-
ref: h(e == null ? void 0 : e.setAnchorElement, o.ref)
|
|
12
|
-
}), o;
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
P(function(s) {
|
|
16
|
-
const r = d(s);
|
|
17
|
-
return m(A, r);
|
|
18
|
-
});
|
|
19
|
-
var C = "button", k = i(function(s) {
|
|
20
|
-
var r = s, { store: e } = r, o = v(r, ["store"]);
|
|
21
|
-
const c = p();
|
|
22
|
-
e = e || c, E(
|
|
23
|
-
e,
|
|
24
|
-
process.env.NODE_ENV !== "production" && "PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component."
|
|
25
|
-
);
|
|
26
|
-
const u = o.onClick, f = b((t) => {
|
|
27
|
-
e == null || e.setAnchorElement(t.currentTarget), u == null || u(t);
|
|
28
|
-
});
|
|
29
|
-
return o = g(
|
|
30
|
-
o,
|
|
31
|
-
(t) => /* @__PURE__ */ x(D, { value: e, children: t }),
|
|
32
|
-
[e]
|
|
33
|
-
), o = l(n({}, o), {
|
|
34
|
-
onClick: f
|
|
35
|
-
}), o = d(n({ store: e }, o)), o = _(n({ store: e }, o)), o;
|
|
36
|
-
}), w = P(function(s) {
|
|
37
|
-
const r = k(s);
|
|
38
|
-
return m(C, r);
|
|
39
|
-
});
|
|
40
|
-
export {
|
|
41
|
-
w as P,
|
|
42
|
-
k as u
|
|
43
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { u as f } from "./KUU7WJ55-CsIy9XMu.js";
|
|
3
|
-
import { l as c, c as m, n as i, N as l, O as u, e as B, f as v, g as N } from "./LVA2YJMS-NUHCRwFZ.js";
|
|
4
|
-
import { useRef as d, useState as g, useEffect as _ } from "react";
|
|
5
|
-
var s = "button", R = m(
|
|
6
|
-
function(t) {
|
|
7
|
-
const e = d(null), a = l(e, s), [r, o] = g(
|
|
8
|
-
() => !!a && u({ tagName: a, type: t.type })
|
|
9
|
-
);
|
|
10
|
-
return _(() => {
|
|
11
|
-
e.current && o(u(e.current));
|
|
12
|
-
}, []), t = B(N({
|
|
13
|
-
role: !r && a !== "a" ? "button" : void 0
|
|
14
|
-
}, t), {
|
|
15
|
-
ref: v(e, t.ref)
|
|
16
|
-
}), t = f(t), t;
|
|
17
|
-
}
|
|
18
|
-
), P = c(function(t) {
|
|
19
|
-
const e = R(t);
|
|
20
|
-
return i(s, e);
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
P as B,
|
|
24
|
-
R as u
|
|
25
|
-
};
|