welcome-ui 10.6.4 → 10.6.6
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/Accordion.js +6 -6
- package/dist/Button.js +2 -2
- package/dist/Checkbox.js +1 -1
- package/dist/{CustomPopper-C1wIDHbM.js → CustomPopper-DWdMQOgg.js} +1 -1
- package/dist/D5lwkpmX-BTxFdaqc.js +1061 -0
- package/dist/DatePicker.js +2 -2
- package/dist/DateTimePicker.js +3 -3
- package/dist/DjvJNLSl-CB2sOBlX.js +88 -0
- package/dist/Drawer.js +4 -4
- package/dist/DropdownMenu.js +811 -925
- package/dist/Modal.js +14 -14
- package/dist/Popover.js +25 -24
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +41 -46
- package/dist/RadioTab.js +1 -1
- package/dist/Search.css +1 -1
- package/dist/Search.js +105 -106
- package/dist/Select.css +1 -1
- package/dist/Select.js +257 -251
- package/dist/Tabs.js +192 -198
- package/dist/TimePicker.js +4 -4
- package/dist/Toggle.js +1 -1
- package/dist/Tooltip.css +1 -1
- package/dist/Tooltip.js +150 -185
- package/dist/WelcomeLoader.js +86 -86
- package/dist/Window.js +5 -5
- package/dist/button-BmXyuOyT.js +24 -0
- package/dist/combobox-context-COdkPD-I.js +14 -0
- package/dist/command-JKE9Az0e.js +78 -0
- package/dist/composite-BOnUaIWf.js +198 -0
- package/dist/composite-item-CzuZunbi.js +763 -0
- package/dist/composite-store-BbsZpdXc.js +21 -0
- package/dist/dialog-RAMLmAdq.js +1222 -0
- package/dist/dialog-disclosure-xHQQLmS6.js +25 -0
- package/dist/dialog-dismiss-DVxKs13g.js +48 -0
- package/dist/disclosure-BQqv9Q8p.js +47 -0
- package/dist/disclosure-store-KfU9xwem.js +168 -0
- package/dist/hovercard-anchor-CgWES4cl.js +19 -0
- package/dist/hovercard-store-DjVhDVte.js +569 -0
- package/dist/index-B0vSTNCB.js +609 -0
- package/dist/popover-context-B2YQ_e3N.js +12 -0
- package/dist/popover-disclosure-a-bqp8Gt.js +183 -0
- package/dist/radio-J8ogFsWS.js +77 -0
- package/dist/tab-panel-DMICXMJc.js +187 -0
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Alert/components/Title.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/IconBlock.d.ts +1 -1
- package/dist/types/components/Drawer/components/Close.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +6 -6
- package/dist/types/components/FileDrop/components/FilePreview.d.ts +1 -1
- package/dist/types/components/FileDrop/components/Message.d.ts +1 -1
- package/dist/types/components/Icon/Sprite.d.ts +1 -1
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Modal/Assets/AssetContent.d.ts +1 -1
- package/dist/types/components/Modal/Assets/AssetTitle.d.ts +1 -1
- package/dist/types/components/Modal/Assets/CloseButton.d.ts +1 -1
- package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -1
- package/dist/types/components/Modal/Assets/index.d.ts +3 -3
- package/dist/types/components/Modal/components/Footer.d.ts +2 -2
- package/dist/types/components/Modal/index.d.ts +9 -9
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
- package/dist/types/components/Popover/Arrow.d.ts +1 -1
- package/dist/types/components/Popover/ContentWrapper.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -1
- package/dist/types/components/Stepper/index.d.ts +2 -2
- package/dist/types/components/Stepper/utils.d.ts +1 -1
- package/dist/types/components/StickyNote/components/Button.d.ts +1 -1
- package/dist/types/components/StickyNote/components/Title.d.ts +1 -1
- package/dist/types/components/StickyNote/index.d.ts +2 -2
- package/dist/types/components/Swiper/components/SwiperNextButton.d.ts +1 -1
- package/dist/types/components/Swiper/components/SwiperPrevButton.d.ts +1 -1
- package/dist/types/components/Swiper/components/SwiperSlides.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +4 -4
- package/dist/types/components/Table/index.d.ts +5 -5
- package/dist/types/components/Tabs/utils.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +2 -2
- package/dist/types/components/Window/components/Header.d.ts +4 -4
- package/dist/types/components/Window/index.d.ts +4 -4
- package/package.json +2 -2
- package/dist/5TKKKQCL-rs260p95.js +0 -80
- package/dist/7PRQYBBV-D9IY4qtU.js +0 -14
- package/dist/APVORPDK-i7Z_eBMP.js +0 -25
- package/dist/CVCFNOHX-Ck0bUDvo.js +0 -20
- package/dist/ECBEZ4YM-o09xUuV6.js +0 -600
- package/dist/HMKTUWOU-NkVXWCyR.js +0 -25
- package/dist/I7KWAPMF-DQWZpGyL.js +0 -86
- package/dist/IQYAUKXT-Cltvp3KN.js +0 -303
- package/dist/JMU4N4M5-DnfyqGdJ.js +0 -15
- package/dist/NDVACHQI-WTOpOfgG.js +0 -37
- package/dist/OCCHVUS4-BJVLPRH8.js +0 -48
- package/dist/PZ3OL7I2-Cfim3UGe.js +0 -61
- package/dist/Q5W46E73-5xQblshY.js +0 -346
- package/dist/RFRKSHIZ-C_FLl4qI.js +0 -147
- package/dist/U6HHPQDW-CzxyP5H7.js +0 -856
- package/dist/WLZ6H5FH-CuTcX7sR.js +0 -183
- package/dist/WZWDIE3S-CGqoM1Fy.js +0 -290
- package/dist/Z32PU2LQ-DMjfxuT9.js +0 -945
- package/dist/ZMWF7ASR-Jc8y_k3t.js +0 -166
- package/dist/tab-panel-Cc3MfOBM.js +0 -212
package/dist/DatePicker.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import './DatePicker.css';
|
|
3
3
|
import { jsxs as G, jsx as l } from "react/jsx-runtime";
|
|
4
4
|
import { useState as A, useMemo as $, useEffect as S, forwardRef as J, useRef as Q } from "react";
|
|
5
|
-
import { D as V, C as W } from "./CustomPopper-
|
|
5
|
+
import { D as V, C as W } from "./CustomPopper-DWdMQOgg.js";
|
|
6
6
|
import { Button as j } from "./Button.js";
|
|
7
7
|
import { Icon as F } from "./Icon.js";
|
|
8
8
|
import { Select as M } from "./Select.js";
|
|
9
9
|
import { c as v } from "./index-B6iGEm-i.js";
|
|
10
|
-
import { g as X, a as Z, s as B,
|
|
10
|
+
import { g as X, a as Z, s as B, D as P, b as Y } from "./utils-ZE_dEXnJ.js";
|
|
11
11
|
import { InputText as g } from "./InputText.js";
|
|
12
12
|
const C = v(B), L = ({
|
|
13
13
|
changeMonth: x,
|
package/dist/DateTimePicker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as A } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as E, useState as P, useRef as x, useEffect as a, Children as N, cloneElement as H } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { D as I, b, s as j } from "./utils-ZE_dEXnJ.js";
|
|
5
5
|
import { c as F } from "./index-B6iGEm-i.js";
|
|
6
6
|
const L = F(j), M = E(
|
|
7
7
|
({
|
|
@@ -11,10 +11,10 @@ const L = F(j), M = E(
|
|
|
11
11
|
onChange: s,
|
|
12
12
|
size: D = "md",
|
|
13
13
|
transparent: n,
|
|
14
|
-
value: i =
|
|
14
|
+
value: i = I,
|
|
15
15
|
...l
|
|
16
16
|
}, k) => {
|
|
17
|
-
const u = l == null ? void 0 : l.timeIntervals, r = (t) =>
|
|
17
|
+
const u = l == null ? void 0 : l.timeIntervals, r = (t) => b(t, u), [T, c] = P(r(i)), y = x(), R = k || y, m = (t) => {
|
|
18
18
|
if (!t) {
|
|
19
19
|
c(null), s == null || s(null);
|
|
20
20
|
return;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { u as _ } from "./command-JKE9Az0e.js";
|
|
3
|
+
import { createContext as j, useState as w, useRef as D, useEffect as H } from "react";
|
|
4
|
+
import { b as O, f as W, a as q, c as z, S as B, A as G, _ as I, u as b, g as J, p as K, r as L } from "./D5lwkpmX-BTxFdaqc.js";
|
|
5
|
+
import { jsx as Q } from "react/jsx-runtime";
|
|
6
|
+
import { u as V } from "./index-B0vSTNCB.js";
|
|
7
|
+
const X = j(!1), Y = O(), Z = Y.useContext;
|
|
8
|
+
function g(n) {
|
|
9
|
+
return Array.isArray(n) ? n.toString() : n;
|
|
10
|
+
}
|
|
11
|
+
const A = "input";
|
|
12
|
+
function y(n, t) {
|
|
13
|
+
t ? n.indeterminate = !0 : n.indeterminate && (n.indeterminate = !1);
|
|
14
|
+
}
|
|
15
|
+
function $(n, t) {
|
|
16
|
+
return n === "input" && (!t || t === "checkbox");
|
|
17
|
+
}
|
|
18
|
+
const P = z(function({ store: t, name: u, value: c, checked: x, defaultChecked: v, ...r }) {
|
|
19
|
+
const S = Z();
|
|
20
|
+
t = t || S;
|
|
21
|
+
const [T, E] = w(v ?? !1), o = V(t, ["value"], (e) => {
|
|
22
|
+
if (x !== void 0) return x;
|
|
23
|
+
if ((e == null ? void 0 : e.value) === void 0) return T;
|
|
24
|
+
if (c != null) {
|
|
25
|
+
if (Array.isArray(e.value)) {
|
|
26
|
+
const f = g(c);
|
|
27
|
+
return e.value.includes(f);
|
|
28
|
+
}
|
|
29
|
+
return e.value === c;
|
|
30
|
+
}
|
|
31
|
+
return Array.isArray(e.value) ? !1 : typeof e.value == "boolean" ? e.value : !1;
|
|
32
|
+
}), l = D(null), i = $(B(l, A), r.type), h = o ? o === "mixed" : void 0, s = o === "mixed" ? !1 : o, U = G(r), [N, R] = I();
|
|
33
|
+
H(() => {
|
|
34
|
+
const e = l.current;
|
|
35
|
+
e && (y(e, h), !i && (e.checked = s, u !== void 0 && (e.name = u), c !== void 0 && (e.value = String(c))));
|
|
36
|
+
}, [
|
|
37
|
+
N,
|
|
38
|
+
h,
|
|
39
|
+
i,
|
|
40
|
+
s,
|
|
41
|
+
u,
|
|
42
|
+
c
|
|
43
|
+
]);
|
|
44
|
+
const m = r.onChange, C = b((e) => {
|
|
45
|
+
if (U) {
|
|
46
|
+
e.stopPropagation(), e.preventDefault();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (y(e.currentTarget, h), i || (e.currentTarget.checked = !e.currentTarget.checked, R()), m == null || m(e), e.defaultPrevented) return;
|
|
50
|
+
const f = e.currentTarget.checked;
|
|
51
|
+
E(f), t == null || t.setValue((a) => {
|
|
52
|
+
if (c == null) return f;
|
|
53
|
+
const d = g(c);
|
|
54
|
+
return Array.isArray(a) ? f ? a.includes(d) ? a : [...a, d] : a.filter((M) => M !== d) : a === d ? !1 : d;
|
|
55
|
+
});
|
|
56
|
+
}), k = r.onClick, F = b((e) => {
|
|
57
|
+
k == null || k(e), !e.defaultPrevented && (i || C(e));
|
|
58
|
+
});
|
|
59
|
+
return r = J(r, (e) => /* @__PURE__ */ Q(X.Provider, {
|
|
60
|
+
value: s,
|
|
61
|
+
children: e
|
|
62
|
+
}), [s]), r = {
|
|
63
|
+
role: i ? void 0 : "checkbox",
|
|
64
|
+
type: i ? "checkbox" : void 0,
|
|
65
|
+
"aria-checked": o,
|
|
66
|
+
...r,
|
|
67
|
+
ref: K(l, r.ref),
|
|
68
|
+
onChange: C,
|
|
69
|
+
onClick: F
|
|
70
|
+
}, r = _({
|
|
71
|
+
clickOnEnter: !i,
|
|
72
|
+
...r
|
|
73
|
+
}), L({
|
|
74
|
+
name: i ? u : void 0,
|
|
75
|
+
value: i ? c : void 0,
|
|
76
|
+
checked: s,
|
|
77
|
+
...r
|
|
78
|
+
});
|
|
79
|
+
}), ce = W(function(t) {
|
|
80
|
+
const u = P(t);
|
|
81
|
+
return q(A, u);
|
|
82
|
+
});
|
|
83
|
+
export {
|
|
84
|
+
X as C,
|
|
85
|
+
ce as a,
|
|
86
|
+
g,
|
|
87
|
+
P as u
|
|
88
|
+
};
|
package/dist/Drawer.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Drawer.css';
|
|
3
3
|
import { jsx as e, jsxs as d, Fragment as O } from "react/jsx-runtime";
|
|
4
|
-
import { D as R } from "./
|
|
5
|
-
import { u as ve } from "./
|
|
4
|
+
import { D as R } from "./dialog-RAMLmAdq.js";
|
|
5
|
+
import { u as ve } from "./dialog-RAMLmAdq.js";
|
|
6
6
|
import { useCallback as y, forwardRef as p } from "react";
|
|
7
7
|
import { Window as l } from "./Window.js";
|
|
8
8
|
import { c as o } from "./index-B6iGEm-i.js";
|
|
@@ -10,8 +10,8 @@ import { f as W } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
|
10
10
|
import { Button as Z } from "./Button.js";
|
|
11
11
|
import { Icon as $ } from "./Icon.js";
|
|
12
12
|
import { Text as v } from "./Text.js";
|
|
13
|
-
import { D as J } from "./
|
|
14
|
-
import { D as K } from "./
|
|
13
|
+
import { D as J } from "./dialog-dismiss-DVxKs13g.js";
|
|
14
|
+
import { D as K } from "./dialog-disclosure-xHQQLmS6.js";
|
|
15
15
|
const L = "_content_t51i3_14", Q = "_title_t51i3_68", k = {
|
|
16
16
|
"asset-drawer": "_asset-drawer_t51i3_3",
|
|
17
17
|
"content-wrapper": "_content-wrapper_t51i3_14",
|