@unicom-cloud/ui 0.8.63 → 0.8.64
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/Affix.js +1 -1
- package/Alert.js +1 -1
- package/Anchor.js +1 -1
- package/AutoComplete.js +3 -3
- package/Avatar.js +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +4 -4
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +1 -1
- package/DatePicker.js +3 -3
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +26 -25
- package/Empty.js +1 -1
- package/Form.js +1 -1
- package/Grid.js +2 -2
- package/Icon.js +2 -1
- package/IconHover.js +1 -1
- package/Image.js +4 -1
- package/Input.js +11 -2
- package/InputNumber.js +2 -2
- package/InputTag.js +1 -1
- package/Layout.js +24 -20
- package/Link.js +1 -1
- package/List.js +4 -3
- package/Mentions.js +3 -3
- package/Menu.js +7 -2
- package/Message.js +3 -2
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +3 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +4 -2
- package/Rate.js +1 -1
- package/ResizeBox.js +66 -64
- package/Result.js +1 -1
- package/Select.js +4 -1
- package/SelectView.js +3 -3
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +54 -50
- package/Spin.js +1 -1
- package/Statistic.js +28 -27
- package/Steps.js +40 -38
- package/Switch.js +1 -1
- package/Table.js +7 -4
- package/Tabs.js +6 -2
- package/Tag.js +1 -1
- package/TimePicker.js +37 -36
- package/Timeline.js +4 -2
- package/Tooltip.js +1 -1
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/TreeSelect.js +3 -1
- package/Trigger.js +1 -1
- package/Typography.js +6 -2
- package/Upload.js +5 -4
- package/VerificationCode.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{DDDuw0Zi.js → -IELMT_x.js} +1 -1
- package/chunk/{C5S_amaH.js → B5GDq8NJ.js} +7 -5
- package/chunk/{DbLgopUR.js → B68hRpYG.js} +1 -1
- package/chunk/{BLLKKgZJ.js → BCxoi4Kf.js} +22 -20
- package/chunk/{B5gIo-hD.js → BHnRi7Xh.js} +3 -3
- package/chunk/{CfZWOhnc.js → BJSjbYSN.js} +1 -1
- package/chunk/{CfTcP6nF.js → BSBJlVZH.js} +2 -2
- package/chunk/{rlfmXePI.js → BfHNSLva.js} +2 -2
- package/chunk/{JpKOcIfl.js → BtIG250j.js} +6 -3
- package/chunk/{DXZ8-ha7.js → BwSpYGK-.js} +1 -1
- package/chunk/{Dpzgtdt-.js → CA69nxbj.js} +1 -1
- package/chunk/{BoDdbbF_.js → CAhODOfT.js} +3 -2
- package/chunk/{DbPYtS7-.js → CAiaqaWc.js} +1 -1
- package/chunk/{CvlD3aiv.js → CBgwLBAC.js} +40 -38
- package/chunk/{aqSmxUbY.js → CTF5o0OX.js} +1 -1
- package/chunk/{BEB_A9eY.js → CYQ1EE4h.js} +1 -1
- package/chunk/{C6Zb_-OE.js → CZfGDXaB.js} +1 -1
- package/chunk/{BcwdVUDs.js → CtUTlwlQ.js} +1 -1
- package/chunk/{QFkhCtUr.js → CxpFYX4B.js} +2 -2
- package/chunk/{BnLshM9R.js → D-oHJail.js} +58 -54
- package/chunk/{Bn2-vqTg.js → D01b7bWX.js} +50 -45
- package/chunk/{CD7dGcUa.js → DPJEIBKZ.js} +2 -2
- package/chunk/{Dk6hL04k.js → DQ561AmR.js} +2 -2
- package/chunk/{B9w_puFP.js → QlYCEvCX.js} +1 -1
- package/chunk/{D3dcFbex.js → Yvz-hPQB.js} +2 -2
- package/chunk/{Co3idurS.js → _m8hLSsx.js} +4 -2
- package/chunk/{CZ1wrD_H.js → oR9TkA35.js} +1 -1
- package/chunk/{CAxIyiy6.js → pq-36BDW.js} +5 -3
- package/chunk/{CgDayZDE.js → tW_FgNSv.js} +1 -1
- package/index.js +536 -486
- package/package.json +1 -1
- package/types/calendar/hook/useCellClassName.d.ts +2 -1
- package/types/checkbox/IconCheck.d.ts +2 -1
- package/types/date-picker/hook/useCellClassName.d.ts +2 -1
- package/types/date-picker/panel/Footer.d.ts +2 -1
- package/types/dropdown/index.d.ts +1 -0
- package/types/form/IconSymbol.d.ts +2 -1
- package/types/form/useForm.d.ts +2 -1
- package/types/icon/addFromIconFontCn.d.ts +2 -1
- package/types/icon/index.d.ts +2 -0
- package/types/image/Image.d.ts +1 -0
- package/types/image/index.d.ts +2 -1
- package/types/image/util/getFixTranslate.d.ts +2 -1
- package/types/image/util/hook/useImageStatus.d.ts +2 -2
- package/types/image/util/hook/useShowFooter.d.ts +2 -2
- package/types/index.d.ts +23 -23
- package/types/input/Input.d.ts +1 -0
- package/types/input/index.d.ts +1 -0
- package/types/input/useComposition.d.ts +2 -1
- package/types/input-number/useSelectionRange.d.ts +2 -1
- package/types/layout/index.d.ts +1 -0
- package/types/list/index.d.ts +1 -0
- package/types/menu/Indent.d.ts +2 -1
- package/types/menu/Menu.d.ts +1 -0
- package/types/menu/index.d.ts +1 -0
- package/types/message/index.d.ts +2 -0
- package/types/notification/index.d.ts +2 -0
- package/types/overflow-ellipsis/OverflowItem.d.ts +2 -2
- package/types/overflow-ellipsis/index.d.ts +2 -2
- package/types/radio/Radio.d.ts +2 -0
- package/types/radio/index.d.ts +2 -1
- package/types/resize-box/ResizeTrigger.d.ts +2 -1
- package/types/resize-box/index.d.ts +1 -0
- package/types/result/403.d.ts +2 -1
- package/types/result/404.d.ts +2 -1
- package/types/result/500.d.ts +2 -1
- package/types/select/Select.d.ts +1 -1
- package/types/select/index.d.ts +1 -0
- package/types/skeleton/Image.d.ts +2 -1
- package/types/skeleton/Text.d.ts +2 -1
- package/types/slider/hook/useLegalValue.d.ts +2 -1
- package/types/space/index.d.ts +2 -0
- package/types/space/toArray.d.ts +2 -1
- package/types/speech-synthesis/index.d.ts +2 -1
- package/types/spin/DotLoading.d.ts +2 -1
- package/types/statistic/index.d.ts +1 -0
- package/types/steps/index.d.ts +1 -0
- package/types/table/hook/useComponent.d.ts +2 -1
- package/types/table/hook/useExpand.d.ts +2 -1
- package/types/table/hook/useRowSelection.d.ts +2 -1
- package/types/table/hook/useSorter.d.ts +2 -1
- package/types/table/index.d.ts +2 -1
- package/types/table/summary/index.d.ts +3 -0
- package/types/tabs/Tab.d.ts +1 -0
- package/types/tabs/TabContent.d.ts +2 -2
- package/types/tabs/hook/useDomSize.d.ts +2 -1
- package/types/tabs/hook/useHeaderScroll.d.ts +2 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/tabs/tab-header/DropdownIcon.d.ts +2 -1
- package/types/time-picker/TimeColumn.d.ts +2 -2
- package/types/time-picker/index.d.ts +5 -0
- package/types/timeline/Timeline.d.ts +1 -0
- package/types/timeline/index.d.ts +1 -0
- package/types/tree-select/Select.d.ts +5 -0
- package/types/tree-select/hook/useTreeData.d.ts +2 -1
- package/types/tree-select/index.d.ts +2 -1
- package/types/typography/Operations.d.ts +2 -1
- package/types/typography/index.d.ts +1 -0
- package/types/upload/Upload.d.ts +2 -1
- package/types/upload/index.d.ts +2 -3
- package/types/utils/fillNBSP.d.ts +2 -1
- package/types/utils/getHighlightText.d.ts +2 -1
- package/types/utils/getHotkeyHandler.d.ts +2 -1
- package/types/utils/getStringLength.d.ts +2 -1
- package/types/utils/include.d.ts +2 -1
- package/types/utils/mergeProps.d.ts +2 -1
- package/types/utils/mergedToString.d.ts +2 -1
- package/types/utils/omit.d.ts +2 -1
- package/types/utils/pick.d.ts +2 -1
- package/types/utils/throttleByRaf.d.ts +2 -1
- package/types/utils/throttleByRafV2.d.ts +2 -1
- package/types/utils/warning.d.ts +2 -1
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +2 -2
package/Space.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import v, { forwardRef as
|
|
5
|
-
import { d as
|
|
6
|
-
import { useMergeProps as
|
|
7
|
-
import { y as
|
|
8
|
-
import { isFragment as
|
|
1
|
+
import { jsx as l, jsxs as M } from "react/jsx-runtime";
|
|
2
|
+
import P from "lodash/isArray";
|
|
3
|
+
import b from "lodash/isNumber";
|
|
4
|
+
import v, { forwardRef as j, useContext as k } from "react";
|
|
5
|
+
import { d as F } from "./chunk/B5GDq8NJ.js";
|
|
6
|
+
import { useMergeProps as D } from "./hooks/useMergeProps.js";
|
|
7
|
+
import { y as E } from "./chunk/BzPkh4Zv.js";
|
|
8
|
+
import { isFragment as H } from "react-is";
|
|
9
9
|
function N(c) {
|
|
10
|
-
let
|
|
11
|
-
return v.Children.forEach(c, (
|
|
12
|
-
|
|
13
|
-
}),
|
|
10
|
+
let e = [];
|
|
11
|
+
return v.Children.forEach(c, (n) => {
|
|
12
|
+
H(n) && n.props ? e = e.concat(N(n.props.children)) : n != null && e.push(n);
|
|
13
|
+
}), e;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const O = {
|
|
16
16
|
size: "small",
|
|
17
17
|
direction: "horizontal"
|
|
18
18
|
};
|
|
19
|
-
function
|
|
20
|
-
const { getPrefixCls:
|
|
19
|
+
function V(c, e) {
|
|
20
|
+
const { getPrefixCls: n, componentConfig: p, rtl: y } = k(F), C = D(
|
|
21
21
|
c,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
O,
|
|
23
|
+
p == null ? void 0 : p.Space
|
|
24
24
|
), {
|
|
25
|
-
className:
|
|
26
|
-
style:
|
|
27
|
-
children:
|
|
25
|
+
className: x,
|
|
26
|
+
style: w,
|
|
27
|
+
children: B,
|
|
28
28
|
size: s,
|
|
29
29
|
direction: m,
|
|
30
|
-
align:
|
|
31
|
-
wrap:
|
|
32
|
-
split:
|
|
33
|
-
...
|
|
34
|
-
} = C,
|
|
35
|
-
|
|
30
|
+
align: L,
|
|
31
|
+
wrap: f,
|
|
32
|
+
split: u,
|
|
33
|
+
...R
|
|
34
|
+
} = C, i = n("space"), $ = L || (m === "horizontal" ? "center" : ""), z = E(
|
|
35
|
+
i,
|
|
36
36
|
{
|
|
37
|
-
[`${
|
|
38
|
-
[`${
|
|
39
|
-
[`${
|
|
40
|
-
[`${
|
|
37
|
+
[`${i}-${m}`]: m,
|
|
38
|
+
[`${i}-align-${$}`]: $,
|
|
39
|
+
[`${i}-wrap`]: f,
|
|
40
|
+
[`${i}-rtl`]: y
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
x
|
|
43
43
|
);
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
44
|
+
function g(r) {
|
|
45
|
+
if (b(r))
|
|
46
46
|
return r;
|
|
47
47
|
switch (r) {
|
|
48
48
|
case "mini":
|
|
@@ -57,36 +57,40 @@ function O(c, i) {
|
|
|
57
57
|
return 8;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
const h = N(
|
|
61
|
-
function
|
|
60
|
+
const h = N(B);
|
|
61
|
+
function A(r) {
|
|
62
62
|
const o = h.length === r + 1, a = y ? "marginLeft" : "marginRight";
|
|
63
63
|
if (typeof s == "string" || typeof s == "number") {
|
|
64
|
-
const t =
|
|
65
|
-
return
|
|
64
|
+
const t = g(s);
|
|
65
|
+
return f ? o ? { marginBottom: t } : {
|
|
66
66
|
[`${a}`]: t,
|
|
67
67
|
marginBottom: t
|
|
68
68
|
} : o ? {} : {
|
|
69
69
|
[m === "vertical" ? "marginBottom" : a]: t
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
if (
|
|
73
|
-
const t =
|
|
74
|
-
return
|
|
72
|
+
if (P(s)) {
|
|
73
|
+
const t = g(s[0]), d = g(s[1]);
|
|
74
|
+
return f ? o ? { marginBottom: d } : {
|
|
75
75
|
[`${a}`]: t,
|
|
76
|
-
marginBottom:
|
|
77
|
-
} : m === "vertical" ? { marginBottom:
|
|
76
|
+
marginBottom: d
|
|
77
|
+
} : m === "vertical" ? { marginBottom: d } : { [`${a}`]: t };
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
const a = (r == null ? void 0 : r.key) || o, t =
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
t && /* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
80
|
+
return /* @__PURE__ */ l("div", { ref: e, className: z, style: w, ...R, children: h.map((r, o) => {
|
|
81
|
+
const a = (r == null ? void 0 : r.key) || o, t = u != null && o > 0;
|
|
82
|
+
return /* @__PURE__ */ M(v.Fragment, { children: [
|
|
83
|
+
t && /* @__PURE__ */ l("div", { className: `${i}-item-split`, children: u }),
|
|
84
|
+
/* @__PURE__ */ l("div", { className: `${i}-item`, style: A(o), children: r })
|
|
85
85
|
] }, a);
|
|
86
86
|
}) });
|
|
87
87
|
}
|
|
88
|
-
const
|
|
89
|
-
|
|
88
|
+
const S = j(V);
|
|
89
|
+
S.displayName = "Space";
|
|
90
|
+
function W(c, e) {
|
|
91
|
+
return /* @__PURE__ */ l(S, { ref: e, direction: "vertical", children: c.children });
|
|
92
|
+
}
|
|
90
93
|
export {
|
|
91
|
-
|
|
94
|
+
W as SpaceVertical,
|
|
95
|
+
S as default
|
|
92
96
|
};
|
package/Spin.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as u, Fragment as x } from "react/jsx-runtime";
|
|
|
2
2
|
import E from "@unicom-cloud/icons/IconUiLoading";
|
|
3
3
|
import P from "lodash/debounce";
|
|
4
4
|
import C, { useContext as b, useState as j, useCallback as _, useRef as A, useImperativeHandle as D, useEffect as F } from "react";
|
|
5
|
-
import { d as L } from "./chunk/
|
|
5
|
+
import { d as L } from "./chunk/B5GDq8NJ.js";
|
|
6
6
|
import { useMergeProps as H } from "./hooks/useMergeProps.js";
|
|
7
7
|
import { y as v } from "./chunk/BzPkh4Zv.js";
|
|
8
8
|
import { isEmptyReactNode as M } from "./utils/is.js";
|
package/Statistic.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as w, jsx as s, Fragment as Z } from "react/jsx-runtime";
|
|
2
2
|
import { C as ee, P as te } from "./chunk/4-gvEY5y.js";
|
|
3
3
|
import L from "dayjs";
|
|
4
4
|
import W from "lodash/isFunction";
|
|
5
5
|
import M from "lodash/isNumber";
|
|
6
6
|
import { forwardRef as Y, useContext as q, useState as H, useRef as _, useEffect as z, useImperativeHandle as ne, useMemo as re } from "react";
|
|
7
|
-
import { d as A } from "./chunk/
|
|
7
|
+
import { d as A } from "./chunk/B5GDq8NJ.js";
|
|
8
8
|
import { useMergeProps as oe } from "./hooks/useMergeProps.js";
|
|
9
9
|
import ie from "./Skeleton.js";
|
|
10
10
|
import { y as B } from "./chunk/BzPkh4Zv.js";
|
|
@@ -27,32 +27,32 @@ const le = [
|
|
|
27
27
|
["S", 1]
|
|
28
28
|
// million seconds
|
|
29
29
|
];
|
|
30
|
-
function k(u,
|
|
30
|
+
function k(u, S) {
|
|
31
31
|
let p = u;
|
|
32
32
|
return le.reduce((m, [l, d]) => {
|
|
33
33
|
if (m.indexOf(l) !== -1) {
|
|
34
34
|
const e = Math.floor(p / d);
|
|
35
|
-
return p -= e * d, m.replace(new RegExp(`${l}+`, "g"), (
|
|
36
|
-
const f =
|
|
35
|
+
return p -= e * d, m.replace(new RegExp(`${l}+`, "g"), (g) => {
|
|
36
|
+
const f = g.length;
|
|
37
37
|
return se(e.toString(), f, "0");
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
return m;
|
|
41
|
-
},
|
|
41
|
+
}, S);
|
|
42
42
|
}
|
|
43
|
-
function ce(u,
|
|
43
|
+
function ce(u, S) {
|
|
44
44
|
const { getPrefixCls: p } = q(A), {
|
|
45
45
|
className: m,
|
|
46
46
|
style: l,
|
|
47
47
|
title: d,
|
|
48
48
|
styleValue: e,
|
|
49
|
-
value:
|
|
49
|
+
value: g,
|
|
50
50
|
onFinish: f,
|
|
51
51
|
renderFormat: $,
|
|
52
52
|
format: v = "HH:mm:ss",
|
|
53
|
-
start:
|
|
54
|
-
} = u, r = E(
|
|
55
|
-
r.diff(
|
|
53
|
+
start: y = !0
|
|
54
|
+
} = u, r = E(g, v) || L(), C = E(u.now, v), o = p("statistic"), [N, D] = H(
|
|
55
|
+
r.diff(C, "millisecond")
|
|
56
56
|
), [F, R] = H(
|
|
57
57
|
k(Math.max(N, 0), v)
|
|
58
58
|
), h = _(null), V = () => {
|
|
@@ -65,14 +65,14 @@ function ce(u, w) {
|
|
|
65
65
|
R(n), D(t);
|
|
66
66
|
}, 1e3 / 30);
|
|
67
67
|
};
|
|
68
|
-
z(() => (!h.current &&
|
|
68
|
+
z(() => (!h.current && y && r.valueOf() >= Date.now() && i(), () => {
|
|
69
69
|
V();
|
|
70
70
|
}), [u.start]);
|
|
71
71
|
const b = W($) ? $(N, F) : F;
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ w(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
ref:
|
|
75
|
+
ref: S,
|
|
76
76
|
className: B(`${o}`, `${o}-countdown`, m),
|
|
77
77
|
style: l,
|
|
78
78
|
children: [
|
|
@@ -84,7 +84,7 @@ function ce(u, w) {
|
|
|
84
84
|
}
|
|
85
85
|
const G = Y(ce);
|
|
86
86
|
G.displayName = "StatisticCountdown";
|
|
87
|
-
function ue(u,
|
|
87
|
+
function ue(u, S) {
|
|
88
88
|
const p = {
|
|
89
89
|
countFrom: 0,
|
|
90
90
|
countDuration: 2e3
|
|
@@ -93,13 +93,13 @@ function ue(u, w) {
|
|
|
93
93
|
p,
|
|
94
94
|
l == null ? void 0 : l.Statistic
|
|
95
95
|
), {
|
|
96
|
-
className:
|
|
96
|
+
className: g,
|
|
97
97
|
style: f,
|
|
98
98
|
title: $,
|
|
99
99
|
extra: v,
|
|
100
|
-
groupSeparator:
|
|
100
|
+
groupSeparator: y,
|
|
101
101
|
precision: r,
|
|
102
|
-
prefix:
|
|
102
|
+
prefix: C,
|
|
103
103
|
suffix: o,
|
|
104
104
|
format: N,
|
|
105
105
|
renderFormat: D,
|
|
@@ -130,7 +130,7 @@ function ue(u, w) {
|
|
|
130
130
|
};
|
|
131
131
|
z(() => (e.countUp ? (i.current && i.current.stop(), t !== e.value ? P(Number(t), e.value) : P()) : x(e.value), () => {
|
|
132
132
|
i.current && i.current.stop(), i.current = null;
|
|
133
|
-
}), [e.value]), ne(
|
|
133
|
+
}), [e.value]), ne(S, () => ({
|
|
134
134
|
countUp: P,
|
|
135
135
|
getRootDOMNode: () => b.current
|
|
136
136
|
}));
|
|
@@ -139,33 +139,33 @@ function ue(u, w) {
|
|
|
139
139
|
N && (c = L(t).format(N)), M(r) && r >= 0 && (c = Number(t).toFixed(r));
|
|
140
140
|
let a = String(c).split(".")[0];
|
|
141
141
|
const U = String(c).split(".")[1];
|
|
142
|
-
return
|
|
142
|
+
return y && M(Number(t)) && (a = Number(a).toLocaleString("en-US")), {
|
|
143
143
|
int: a,
|
|
144
144
|
decimal: U
|
|
145
145
|
};
|
|
146
|
-
}, [N,
|
|
147
|
-
|
|
146
|
+
}, [N, y, r, t]), Q = W(D) ? D : (c, a) => a, I = M(Number(t)), O = /* @__PURE__ */ w(Z, { children: [
|
|
147
|
+
C != null ? /* @__PURE__ */ s("span", { className: `${n}-value-prefix`, children: C }) : null,
|
|
148
148
|
Q(t, I ? K : t)
|
|
149
149
|
] });
|
|
150
|
-
return /* @__PURE__ */
|
|
150
|
+
return /* @__PURE__ */ w(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
|
-
className: B(`${n}`, { [`${n}-rtl`]: d },
|
|
153
|
+
className: B(`${n}`, { [`${n}-rtl`]: d }, g),
|
|
154
154
|
style: f,
|
|
155
155
|
...ae(V, ["value", "countUp", "countFrom", "countDuration"]),
|
|
156
156
|
ref: b,
|
|
157
157
|
children: [
|
|
158
158
|
$ && /* @__PURE__ */ s("div", { className: `${n}-title`, children: $ }),
|
|
159
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ w("div", { className: `${n}-content`, children: [
|
|
160
160
|
/* @__PURE__ */ s(
|
|
161
161
|
ie,
|
|
162
162
|
{
|
|
163
163
|
animation: !0,
|
|
164
164
|
loading: !!h,
|
|
165
165
|
text: { rows: 1, width: "100%" },
|
|
166
|
-
children: /* @__PURE__ */
|
|
166
|
+
children: /* @__PURE__ */ w("div", { className: `${n}-value`, style: F, children: [
|
|
167
167
|
I ? /* @__PURE__ */ s("span", { className: `${n}-value-int`, children: O }) : O,
|
|
168
|
-
j !== void 0 || o ? /* @__PURE__ */
|
|
168
|
+
j !== void 0 || o ? /* @__PURE__ */ w(
|
|
169
169
|
"span",
|
|
170
170
|
{
|
|
171
171
|
className: `${n}-value-decimal`,
|
|
@@ -189,5 +189,6 @@ const me = Y(ue), J = me;
|
|
|
189
189
|
J.displayName = "Statistic";
|
|
190
190
|
J.Countdown = G;
|
|
191
191
|
export {
|
|
192
|
+
G as StatisticCountdown,
|
|
192
193
|
J as default
|
|
193
194
|
};
|
package/Steps.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as k, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import E, { forwardRef as I, useContext as L } from "react";
|
|
3
|
-
import { d as M } from "./chunk/
|
|
3
|
+
import { d as M } from "./chunk/B5GDq8NJ.js";
|
|
4
4
|
import { useMergeProps as W } from "./hooks/useMergeProps.js";
|
|
5
5
|
import { y as R } from "./chunk/BzPkh4Zv.js";
|
|
6
6
|
import { pickDataAttributes as q } from "./utils/pick.js";
|
|
@@ -18,24 +18,24 @@ function H(P, z) {
|
|
|
18
18
|
description: a,
|
|
19
19
|
icon: m,
|
|
20
20
|
nextStepError: v,
|
|
21
|
-
type:
|
|
22
|
-
customDot:
|
|
23
|
-
labelPlacement:
|
|
24
|
-
disabled:
|
|
21
|
+
type: o,
|
|
22
|
+
customDot: S,
|
|
23
|
+
labelPlacement: h,
|
|
24
|
+
disabled: y,
|
|
25
25
|
onClick: f,
|
|
26
26
|
onChange: p,
|
|
27
|
-
direction:
|
|
27
|
+
direction: s,
|
|
28
28
|
id: c,
|
|
29
29
|
lineless: u
|
|
30
30
|
} = P;
|
|
31
31
|
function w(b) {
|
|
32
|
-
if (
|
|
32
|
+
if (o === "dot")
|
|
33
33
|
return null;
|
|
34
34
|
let x = t;
|
|
35
35
|
return m ? x = m : b === "finish" ? x = /* @__PURE__ */ n(B, {}) : b === "error" && (x = /* @__PURE__ */ n(G, {})), /* @__PURE__ */ n("div", { className: `${e}-icon`, children: x });
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
37
|
+
function r(b) {
|
|
38
|
+
y || (l !== t && (p == null || p(t, c)), f == null || f(t, c, b));
|
|
39
39
|
}
|
|
40
40
|
let i;
|
|
41
41
|
$ ? i = $ : (l < t && (i = "wait"), l === t && (i = "process"), l > t && (i = "finish"));
|
|
@@ -45,19 +45,19 @@ function H(P, z) {
|
|
|
45
45
|
{
|
|
46
46
|
[`${e}-item-custom`]: !!m,
|
|
47
47
|
[`${e}-item-next-error`]: v,
|
|
48
|
-
[`${e}-item-disabled`]:
|
|
48
|
+
[`${e}-item-disabled`]: y,
|
|
49
49
|
[`${e}-item-active`]: t === l
|
|
50
50
|
},
|
|
51
51
|
d
|
|
52
|
-
), U = w(i), D = /* @__PURE__ */ n("div", { className: `${e}-item-icon`, children: U }), F =
|
|
52
|
+
), U = w(i), D = /* @__PURE__ */ n("div", { className: `${e}-item-icon`, children: U }), F = S ? S(D, {
|
|
53
53
|
index: t,
|
|
54
54
|
status: i,
|
|
55
55
|
title: N,
|
|
56
56
|
description: a
|
|
57
57
|
}) : D;
|
|
58
|
-
return /* @__PURE__ */ k("div", { ref: z, className: C, style: g, onClick:
|
|
59
|
-
!u && (
|
|
60
|
-
|
|
58
|
+
return /* @__PURE__ */ k("div", { ref: z, className: C, style: g, onClick: r, children: [
|
|
59
|
+
!u && (h === "vertical" || s === "vertical") && /* @__PURE__ */ n("div", { className: `${e}-item-tail` }),
|
|
60
|
+
o !== "arrow" && F,
|
|
61
61
|
/* @__PURE__ */ k("div", { className: `${e}-item-content`, children: [
|
|
62
62
|
/* @__PURE__ */ n("div", { className: `${e}-item-title`, children: N }),
|
|
63
63
|
a && /* @__PURE__ */ n("div", { className: `${e}-item-description`, children: a })
|
|
@@ -85,27 +85,27 @@ function K(P, z) {
|
|
|
85
85
|
current: a = 1,
|
|
86
86
|
status: m,
|
|
87
87
|
onChange: v,
|
|
88
|
-
type:
|
|
89
|
-
size:
|
|
90
|
-
direction:
|
|
91
|
-
labelPlacement:
|
|
88
|
+
type: o,
|
|
89
|
+
size: S,
|
|
90
|
+
direction: h,
|
|
91
|
+
labelPlacement: y,
|
|
92
92
|
customDot: f,
|
|
93
93
|
lineless: p
|
|
94
|
-
} = t,
|
|
95
|
-
let c =
|
|
96
|
-
|
|
97
|
-
let u =
|
|
98
|
-
(
|
|
94
|
+
} = t, s = g("steps");
|
|
95
|
+
let c = y;
|
|
96
|
+
o === "dot" && (c = h === "vertical" ? "horizontal" : "vertical"), o === "navigation" && (c = "horizontal");
|
|
97
|
+
let u = h;
|
|
98
|
+
(o === "navigation" || o === "arrow") && (u = "horizontal");
|
|
99
99
|
const w = R(
|
|
100
|
-
|
|
101
|
-
`${
|
|
102
|
-
`${
|
|
103
|
-
`${
|
|
100
|
+
s,
|
|
101
|
+
`${s}-${u}`,
|
|
102
|
+
`${s}-label-${c}`,
|
|
103
|
+
`${s}-size-${S}`,
|
|
104
104
|
{
|
|
105
|
-
[`${
|
|
106
|
-
[`${
|
|
107
|
-
[`${
|
|
108
|
-
[`${
|
|
105
|
+
[`${s}-change-onclick`]: typeof v == "function",
|
|
106
|
+
[`${s}-mode-${o}`]: o !== "default",
|
|
107
|
+
[`${s}-lineless`]: p,
|
|
108
|
+
[`${s}-rtl`]: e
|
|
109
109
|
},
|
|
110
110
|
l
|
|
111
111
|
);
|
|
@@ -117,12 +117,12 @@ function K(P, z) {
|
|
|
117
117
|
className: w,
|
|
118
118
|
...q(t),
|
|
119
119
|
children: E.Children.toArray(N).filter(
|
|
120
|
-
(
|
|
121
|
-
).map((
|
|
122
|
-
if (i += 1,
|
|
120
|
+
(r) => r && r.type && r.type.displayName === "Step"
|
|
121
|
+
).map((r, i) => {
|
|
122
|
+
if (i += 1, r) {
|
|
123
123
|
const C = {
|
|
124
|
-
prefixCls:
|
|
125
|
-
type:
|
|
124
|
+
prefixCls: s,
|
|
125
|
+
type: o,
|
|
126
126
|
index: i,
|
|
127
127
|
current: a,
|
|
128
128
|
status: a === i ? m : void 0,
|
|
@@ -131,9 +131,9 @@ function K(P, z) {
|
|
|
131
131
|
direction: u,
|
|
132
132
|
onChange: v,
|
|
133
133
|
lineless: p,
|
|
134
|
-
...
|
|
134
|
+
...r.props
|
|
135
135
|
};
|
|
136
|
-
return m === "error" && a === i + 1 && (C.nextStepError = !0), E.cloneElement(
|
|
136
|
+
return m === "error" && a === i + 1 && (C.nextStepError = !0), E.cloneElement(r, C);
|
|
137
137
|
}
|
|
138
138
|
return null;
|
|
139
139
|
})
|
|
@@ -144,5 +144,7 @@ const O = I(K), A = O;
|
|
|
144
144
|
A.displayName = "Steps";
|
|
145
145
|
A.Step = j;
|
|
146
146
|
export {
|
|
147
|
+
j as StepsItem,
|
|
148
|
+
j as StepsStep,
|
|
147
149
|
A as default
|
|
148
150
|
};
|
package/Switch.js
CHANGED
|
@@ -3,7 +3,7 @@ import q from "@unicom-cloud/icons/IconUiLoading";
|
|
|
3
3
|
import { I as A, P as x } from "./chunk/CLBavO5c.js";
|
|
4
4
|
import B from "lodash/isArray";
|
|
5
5
|
import { forwardRef as L, useContext as M, useState as O } from "react";
|
|
6
|
-
import { d as Q } from "./chunk/
|
|
6
|
+
import { d as Q } from "./chunk/B5GDq8NJ.js";
|
|
7
7
|
import { useMergeProps as U } from "./hooks/useMergeProps.js";
|
|
8
8
|
import { y as W } from "./chunk/BzPkh4Zv.js";
|
|
9
9
|
import "./utils/is.js";
|
package/Table.js
CHANGED
|
@@ -6,11 +6,11 @@ import Le from "lodash/isNumber";
|
|
|
6
6
|
import q from "lodash/isPlainObject";
|
|
7
7
|
import Dn from "lodash/throttle";
|
|
8
8
|
import Ee, { useRef as he, useEffect as tt, useMemo as de, useCallback as et, useState as xe, useContext as Oe, forwardRef as At, createElement as nt, createContext as Hn, useImperativeHandle as Mn } from "react";
|
|
9
|
-
import { d as Ge } from "./chunk/
|
|
9
|
+
import { d as Ge } from "./chunk/B5GDq8NJ.js";
|
|
10
10
|
import { useIsomorphicLayoutEffect as Wn } from "./hooks/useIsomorphicLayoutEffect.js";
|
|
11
11
|
import { useMergeProps as Zt } from "./hooks/useMergeProps.js";
|
|
12
12
|
import { useUpdateEffect as Et } from "./hooks/useUpdateEffect.js";
|
|
13
|
-
import { P as en } from "./chunk/
|
|
13
|
+
import { P as en } from "./chunk/BHnRi7Xh.js";
|
|
14
14
|
import zn from "./Spin.js";
|
|
15
15
|
import { y as Z } from "./chunk/BzPkh4Zv.js";
|
|
16
16
|
import { on as ht, off as yt } from "./utils/dom.js";
|
|
@@ -22,8 +22,8 @@ import qn from "lodash/isUndefined";
|
|
|
22
22
|
import { V as Gn } from "./chunk/D3NFxdmG.js";
|
|
23
23
|
import Xn from "@unicom-cloud/icons/IconUiMinus";
|
|
24
24
|
import Qn from "@unicom-cloud/icons/IconUiPlus";
|
|
25
|
-
import { C as Ft } from "./chunk/
|
|
26
|
-
import { R as ln } from "./chunk/
|
|
25
|
+
import { C as Ft } from "./chunk/QlYCEvCX.js";
|
|
26
|
+
import { R as ln } from "./chunk/BCxoi4Kf.js";
|
|
27
27
|
import Ct from "lodash/get";
|
|
28
28
|
import gt from "lodash/isFunction";
|
|
29
29
|
import { useForceUpdate as Jn } from "./hooks/useForceUpdate.js";
|
|
@@ -2024,5 +2024,8 @@ Ot.Cell = un;
|
|
|
2024
2024
|
const Lo = fn;
|
|
2025
2025
|
Lo.Summary = Ot;
|
|
2026
2026
|
export {
|
|
2027
|
+
Ot as TableSummary,
|
|
2028
|
+
un as TableSummaryCell,
|
|
2029
|
+
Fo as TableSummaryRow,
|
|
2027
2030
|
Lo as default
|
|
2028
2031
|
};
|
package/Tabs.js
CHANGED
package/Tag.js
CHANGED
|
@@ -3,7 +3,7 @@ import Q from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import W from "@unicom-cloud/icons/IconUiLoading";
|
|
4
4
|
import b from "lodash/isPlainObject";
|
|
5
5
|
import { forwardRef as X, useContext as Y, useState as v } from "react";
|
|
6
|
-
import { d as Z, I as S } from "./chunk/
|
|
6
|
+
import { d as Z, I as S } from "./chunk/B5GDq8NJ.js";
|
|
7
7
|
import { useKeyboardEvent as ee } from "./hooks/useKeyboardEvent.js";
|
|
8
8
|
import { useMergeProps as oe } from "./hooks/useMergeProps.js";
|
|
9
9
|
import ne from "./Popconfirm.js";
|