welcome-ui 10.0.0-alpha.3 → 10.0.0-alpha.5
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/2W3RN7C5-DMC82gDP.js +61 -0
- package/dist/{4I4MLMKD-z3Xm3qCo.js → 4I4MLMKD-BO6Lcy7s.js} +17 -17
- package/dist/Accordion.js +19 -17
- package/dist/Alert.css +1 -1
- package/dist/Alert.js +93 -87
- package/dist/AspectRatio.js +1 -0
- package/dist/Avatar.js +13 -11
- package/dist/{B7UTNDHN-BDa2-8JK.js → B7UTNDHN-BghjolIs.js} +30 -30
- package/dist/Badge.js +1 -0
- package/dist/Breadcrumb.js +76 -71
- package/dist/Button.js +8 -6
- package/dist/ButtonGroup.js +6 -4
- package/dist/Card.css +1 -1
- package/dist/Card.js +68 -15
- package/dist/Checkbox.js +30 -29
- package/dist/CloseButton.js +7 -5
- package/dist/{CustomPopper-vwbOQq72.js → CustomPopper-C1wIDHbM.js} +5 -4
- package/dist/{DSAASPLT-C-2xDjIv.js → DSAASPLT-Fx1kuAsk.js} +3 -3
- package/dist/DatePicker.js +82 -78
- package/dist/DateTimePicker.js +22 -21
- package/dist/Drawer.js +101 -80
- package/dist/DropdownMenu.css +1 -1
- package/dist/DropdownMenu.js +889 -462
- package/dist/Field.js +1 -0
- package/dist/FieldGroup.js +9 -7
- package/dist/FileDrop.js +184 -176
- package/dist/FileUpload.js +43 -40
- package/dist/{GVVKDT6A-C66-lr0B.js → GVVKDT6A-CF9ejW_c.js} +103 -103
- package/dist/Hint.js +9 -7
- package/dist/Icon.js +6 -4
- package/dist/InputText.js +30 -28
- package/dist/{KPUWHTQJ-Byij2al4.js → KPUWHTQJ-Dv3cAqjP.js} +33 -31
- package/dist/Label.js +9 -7
- package/dist/Link.js +25 -21
- package/dist/Loader.js +12 -10
- package/dist/Logo.js +21 -13
- package/dist/Modal.js +145 -114
- package/dist/{NI3IVY7K-DpF3td-7.js → NI3IVY7K-Dy240mkD.js} +160 -160
- package/dist/{NMGNQVTG-BgAqqGOq.js → NMGNQVTG-DRO2uXZT.js} +6 -6
- package/dist/{OE2EFRVA-DkdhQLJL.js → OE2EFRVA-Dg1R6gaC.js} +186 -170
- package/dist/{OLVWQA7U-wHytlFYu.js → OLVWQA7U-Dia3UUnG.js} +36 -36
- package/dist/Pagination.js +39 -37
- package/dist/PasswordInput.js +20 -17
- package/dist/Popover.js +89 -72
- package/dist/{RTNCFSKZ-LcIdBwa8.js → RTNCFSKZ-BywELldk.js} +42 -42
- package/dist/Radio.js +20 -19
- package/dist/RadioGroup.js +29 -27
- package/dist/RadioTab.js +2 -1
- package/dist/{SBSPVDDI-BoxPz2JY.js → SBSPVDDI-CmtnvvUX.js} +46 -46
- package/dist/SQZLCNLX-Dg4KKdNJ.js +83 -0
- package/dist/Search.css +1 -1
- package/dist/Search.js +62 -60
- package/dist/Select.css +1 -1
- package/dist/Select.js +204 -202
- package/dist/Slider.js +66 -61
- package/dist/Stepper.js +34 -27
- package/dist/StickyNote.css +1 -0
- package/dist/StickyNote.js +49 -0
- package/dist/Swiper.js +52 -50
- package/dist/{T22PY7TE-CzEDuEn1.js → T22PY7TE-gLuJpoOm.js} +46 -46
- package/dist/Table.js +34 -21
- package/dist/Tabs.js +161 -152
- package/dist/Tag.css +1 -1
- package/dist/Tag.js +66 -61
- package/dist/Text.js +4 -2
- package/dist/Textarea.js +10 -8
- package/dist/TimePicker.js +22 -21
- package/dist/Toast.js +186 -177
- package/dist/Toggle.js +16 -14
- package/dist/Tooltip.js +29 -27
- package/dist/VariantIcon.js +7 -5
- package/dist/VisuallyHidden.js +8 -6
- package/dist/WelcomeLoader.js +3 -2
- package/dist/XCKGTAUF-CJwwVibW.js +25 -0
- package/dist/{Y67KZUMI-BDyUNSJw.js → Y67KZUMI-BwLWwpNF.js} +2 -2
- package/dist/{ZTXFEM5L-CjFLRObi.js → ZTXFEM5L-WGHY_jqg.js} +3 -3
- package/dist/theme.css +1 -1
- package/dist/theme.js +1 -0
- package/dist/types/components/Alert/components/Buttons.d.ts +3 -0
- package/dist/types/components/Alert/components/Title.d.ts +5 -0
- package/dist/types/components/Alert/index.d.ts +7 -3
- package/dist/types/components/Alert/types.d.ts +3 -9
- package/dist/types/components/Card/Body.d.ts +2 -3
- package/dist/types/components/Card/Footer.d.ts +6 -0
- package/dist/types/components/Card/Header.d.ts +5 -0
- package/dist/types/components/Card/index.d.ts +7 -8
- package/dist/types/components/Card/types.d.ts +16 -3
- package/dist/types/components/Checkbox/index.d.ts +1 -2
- package/dist/types/components/Checkbox/types.d.ts +3 -1
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +4 -1
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +6 -3
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +4 -1
- package/dist/types/components/Drawer/AssetDrawer/IconBlock.d.ts +4 -1
- package/dist/types/components/Drawer/components/Close.d.ts +4 -1
- package/dist/types/components/Drawer/components/Title.d.ts +4 -1
- package/dist/types/components/Drawer/index.d.ts +12 -3
- package/dist/types/components/DropdownMenu/Action.d.ts +2 -0
- package/dist/types/components/DropdownMenu/Group.d.ts +4 -0
- package/dist/types/components/DropdownMenu/Item.d.ts +7 -0
- package/dist/types/components/DropdownMenu/Search.d.ts +2 -0
- package/dist/types/components/DropdownMenu/Submenu.d.ts +4 -0
- package/dist/types/components/DropdownMenu/index.d.ts +11 -0
- package/dist/types/components/DropdownMenu/types.d.ts +26 -5
- package/dist/types/components/FileDrop/components/FilePreview.d.ts +4 -1
- package/dist/types/components/FileDrop/components/Message.d.ts +4 -1
- package/dist/types/components/Loader/index.d.ts +4 -1
- package/dist/types/components/Modal/Assets/AssetContent.d.ts +4 -1
- package/dist/types/components/Modal/Assets/AssetTitle.d.ts +4 -1
- package/dist/types/components/Modal/Assets/CloseButton.d.ts +4 -1
- package/dist/types/components/Modal/Assets/Dialog.d.ts +4 -1
- package/dist/types/components/Modal/Assets/Iframe.d.ts +4 -1
- package/dist/types/components/Modal/Assets/index.d.ts +16 -4
- package/dist/types/components/Modal/components/Close.d.ts +4 -1
- package/dist/types/components/Modal/index.d.ts +16 -4
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +4 -1
- package/dist/types/components/Popover/Arrow.d.ts +4 -1
- package/dist/types/components/Popover/ContentWrapper.d.ts +4 -1
- package/dist/types/components/RadioGroup/index.d.ts +4 -1
- package/dist/types/components/Stepper/index.d.ts +8 -2
- package/dist/types/components/StickyNote/components/Button.d.ts +5 -0
- package/dist/types/components/StickyNote/components/Title.d.ts +5 -0
- package/dist/types/components/StickyNote/index.d.ts +11 -0
- package/dist/types/components/StickyNote/index.test.d.ts +1 -0
- package/dist/types/components/StickyNote/types.d.ts +15 -0
- package/dist/types/components/Swiper/index.d.ts +4 -1
- package/dist/types/components/Table/index.d.ts +20 -5
- package/dist/types/components/Tabs/components/ActiveBar/index.d.ts +4 -1
- package/dist/types/components/Tag/types.d.ts +4 -2
- package/dist/types/components/Toast/index.d.ts +4 -1
- package/dist/types/theme/types.d.ts +233 -218
- package/dist/utils.js +1 -0
- package/package.json +2 -2
- package/dist/2W3RN7C5-uG7eBeTQ.js +0 -61
- package/dist/SQZLCNLX-CUlXoT69.js +0 -82
- package/dist/XCKGTAUF-CahZE721.js +0 -25
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { c as I, _ as p, P as d, A as O, N as q, u as _, d as x, p as Y, a as T, X as j, Y as w, j as H, h as L, Z as V, $ as X, f as Z, b as $ } from "./OE2EFRVA-DkdhQLJL.js";
|
|
3
|
-
import { useRef as C, useState as D, useEffect as z } from "react";
|
|
4
|
-
var G = "button";
|
|
5
|
-
function M(s) {
|
|
6
|
-
if (!s.isTrusted) return !1;
|
|
7
|
-
const t = s.currentTarget;
|
|
8
|
-
return s.key === "Enter" ? d(t) || t.tagName === "SUMMARY" || t.tagName === "A" : s.key === " " ? d(t) || t.tagName === "SUMMARY" || t.tagName === "INPUT" || t.tagName === "SELECT" : !1;
|
|
9
|
-
}
|
|
10
|
-
var J = Symbol("command"), Q = I(
|
|
11
|
-
function(t) {
|
|
12
|
-
var i = t, { clickOnEnter: m = !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(d(c.current));
|
|
16
|
-
}, []);
|
|
17
|
-
const [U, k] = D(!1), f = C(!1), y = O(r), [E, A] = q(r, J, !0), P = r.onKeyDown, h = _((e) => {
|
|
18
|
-
P == null || P(e);
|
|
19
|
-
const a = e.currentTarget;
|
|
20
|
-
if (e.defaultPrevented || E || y || !H(e) || L(a) || a.isContentEditable) return;
|
|
21
|
-
const o = m && e.key === "Enter", n = u && e.key === " ", g = e.key === "Enter" && !m, l = e.key === " " && !u;
|
|
22
|
-
if (g || 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 N = e, { view: W } = N, F = p(N, ["view"]), S = () => w(a, F);
|
|
32
|
-
V() ? X(a, "keyup", S) : queueMicrotask(S);
|
|
33
|
-
}
|
|
34
|
-
} else n && (f.current = !0, v || (e.preventDefault(), k(!0)));
|
|
35
|
-
}
|
|
36
|
-
}), b = r.onKeyUp, B = _((e) => {
|
|
37
|
-
if (b == null || b(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: g } = 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
|
-
}, A), r), {
|
|
49
|
-
ref: Y(c, r.ref),
|
|
50
|
-
onKeyDown: h,
|
|
51
|
-
onKeyUp: B
|
|
52
|
-
}), r = j(r), r;
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
Z(function(t) {
|
|
56
|
-
const i = Q(t);
|
|
57
|
-
return $(G, i);
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
Q as u
|
|
61
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { C as N, a as U, b as y } from "./SBSPVDDI-BoxPz2JY.js";
|
|
3
|
-
import { e as T, v as w, f as O, c as j, b as D, _ as H, w as M, O as $, A as q, a0 as z, u as v, d as B, p as G, a as p, r as J } from "./OE2EFRVA-DkdhQLJL.js";
|
|
4
|
-
import { u as K } from "./RTNCFSKZ-LcIdBwa8.js";
|
|
5
|
-
import { useRef as L, useEffect as k } from "react";
|
|
6
|
-
var Q = T(
|
|
7
|
-
[U],
|
|
8
|
-
[N]
|
|
9
|
-
), V = Q.useContext, P = "input";
|
|
10
|
-
function W(u, r) {
|
|
11
|
-
if (r !== void 0)
|
|
12
|
-
return u != null && r != null ? r === u : !!r;
|
|
13
|
-
}
|
|
14
|
-
function X(u, r) {
|
|
15
|
-
return u === "input" && (!r || r === "radio");
|
|
16
|
-
}
|
|
17
|
-
var Y = j(function(r) {
|
|
18
|
-
var d = r, {
|
|
19
|
-
store: t,
|
|
20
|
-
name: c,
|
|
21
|
-
value: i,
|
|
22
|
-
checked: m
|
|
23
|
-
} = d, o = H(d, [
|
|
24
|
-
"store",
|
|
25
|
-
"name",
|
|
26
|
-
"value",
|
|
27
|
-
"checked"
|
|
28
|
-
]);
|
|
29
|
-
const R = V();
|
|
30
|
-
t = t || R;
|
|
31
|
-
const a = M(o.id), l = L(null), s = K(
|
|
32
|
-
t,
|
|
33
|
-
(e) => m ?? W(i, e == null ? void 0 : e.value)
|
|
34
|
-
);
|
|
35
|
-
k(() => {
|
|
36
|
-
!a || !s || (t == null ? void 0 : t.getState().activeId) === a || t == null || t.setActiveId(a);
|
|
37
|
-
}, [t, s, a]);
|
|
38
|
-
const C = o.onChange, x = $(l, P), n = X(x, o.type), I = q(o), [_, S] = z();
|
|
39
|
-
k(() => {
|
|
40
|
-
const e = l.current;
|
|
41
|
-
e && (n || (s !== void 0 && (e.checked = s), c !== void 0 && (e.name = c), i !== void 0 && (e.value = `${i}`)));
|
|
42
|
-
}, [_, n, s, c, i]);
|
|
43
|
-
const f = v((e) => {
|
|
44
|
-
if (I) {
|
|
45
|
-
e.preventDefault(), e.stopPropagation();
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
(t == null ? void 0 : t.getState().value) !== i && (n || (e.currentTarget.checked = !0, S()), C == null || C(e), !e.defaultPrevented && (t == null || t.setValue(i)));
|
|
49
|
-
}), g = o.onClick, b = v((e) => {
|
|
50
|
-
g == null || g(e), !e.defaultPrevented && (n || f(e));
|
|
51
|
-
}), h = o.onFocus, F = v((e) => {
|
|
52
|
-
if (h == null || h(e), e.defaultPrevented || !n || !t) return;
|
|
53
|
-
const { moves: A, activeId: E } = t.getState();
|
|
54
|
-
A && (a && E !== a || f(e));
|
|
55
|
-
});
|
|
56
|
-
return o = B(p({
|
|
57
|
-
id: a,
|
|
58
|
-
role: n ? void 0 : "radio",
|
|
59
|
-
type: n ? "radio" : void 0,
|
|
60
|
-
"aria-checked": s
|
|
61
|
-
}, o), {
|
|
62
|
-
ref: G(l, o.ref),
|
|
63
|
-
onChange: f,
|
|
64
|
-
onClick: b,
|
|
65
|
-
onFocus: F
|
|
66
|
-
}), o = y(p({
|
|
67
|
-
store: t,
|
|
68
|
-
clickOnEnter: !n
|
|
69
|
-
}, o)), J(p({
|
|
70
|
-
name: n ? c : void 0,
|
|
71
|
-
value: n ? i : void 0,
|
|
72
|
-
checked: s
|
|
73
|
-
}, o));
|
|
74
|
-
}), re = w(
|
|
75
|
-
O(function(r) {
|
|
76
|
-
const d = Y(r);
|
|
77
|
-
return D(P, d);
|
|
78
|
-
})
|
|
79
|
-
);
|
|
80
|
-
export {
|
|
81
|
-
re as R
|
|
82
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { u as f } from "./2W3RN7C5-uG7eBeTQ.js";
|
|
3
|
-
import { f as c, c as m, b as i, O as B, P as u, d as l, p as d, a as v } from "./OE2EFRVA-DkdhQLJL.js";
|
|
4
|
-
import { useRef as N, useState as g, useEffect as _ } from "react";
|
|
5
|
-
var s = "button", b = m(
|
|
6
|
-
function(t) {
|
|
7
|
-
const e = N(null), a = B(e, s), [n, o] = g(
|
|
8
|
-
() => !!a && u({ tagName: a, type: t.type })
|
|
9
|
-
);
|
|
10
|
-
return _(() => {
|
|
11
|
-
e.current && o(u(e.current));
|
|
12
|
-
}, []), t = l(v({
|
|
13
|
-
role: !n && a !== "a" ? "button" : void 0
|
|
14
|
-
}, t), {
|
|
15
|
-
ref: d(e, t.ref)
|
|
16
|
-
}), t = f(t), t;
|
|
17
|
-
}
|
|
18
|
-
), E = c(function(t) {
|
|
19
|
-
const e = b(t);
|
|
20
|
-
return i(s, e);
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
E as B,
|
|
24
|
-
b as u
|
|
25
|
-
};
|