@unicom-cloud/ui 0.8.61 → 0.8.62
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 +44 -40
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +1 -1
- package/BackTop.js +7 -7
- package/Badge.js +2 -2
- package/Breadcrumb.js +22 -22
- package/Button.js +2 -2
- package/Calendar.js +106 -104
- package/Card.js +1 -1
- package/Carousel.js +34 -33
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +12 -12
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +16 -16
- package/DatePicker.js +165 -162
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +9 -9
- package/Empty.js +2 -2
- package/Form.js +60 -54
- package/Grid.js +2 -2
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +2 -2
- package/Link.js +14 -14
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +9 -3
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +32 -32
- package/PageHeader.js +23 -22
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +7 -7
- package/Popover.js +1 -1
- package/Progress.js +14 -14
- package/Radio.js +2 -2
- package/Rate.js +43 -40
- package/ResizeBox.js +97 -96
- package/Result.js +15 -15
- package/Select.js +1 -1
- package/SelectView.js +295 -249
- package/Skeleton.js +1 -1
- package/Slider.js +25 -25
- package/Space.js +1 -1
- package/SpeechSynthesis.js +32 -29
- package/Spin.js +2 -2
- package/Statistic.js +1 -1
- package/Steps.js +11 -11
- package/Switch.js +3 -3
- package/Table.js +9 -9
- package/Tabs.js +1 -1
- package/Tag.js +68 -67
- package/TimePicker.js +17 -17
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +47 -46
- package/Tree.js +2 -2
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/Typography.js +1 -1
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{V6euPXVB.js → -Z968QpN.js} +257 -251
- package/chunk/{IooeSKJJ.js → AqH9yP_J.js} +19 -19
- package/chunk/{cZiP8FvM.js → B0oDiPqE.js} +1 -1
- package/chunk/{B16KHtX-.js → B4-WpgY2.js} +191 -185
- package/chunk/{CuOl4X0X.js → B8SZFOjt.js} +1 -1
- package/chunk/{CbiWdbr_.js → BXWxA-tS.js} +35 -34
- package/chunk/{DpfUGhi4.js → BlNFmhNa.js} +288 -283
- package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
- package/chunk/{Kbr6FzOG.js → BnqeQYIZ.js} +210 -186
- package/chunk/{BPZ-6HKJ.js → Bp3XomF8.js} +1 -2
- package/chunk/BsWphzcT.js +20 -0
- package/chunk/{RMBPs_Ry.js → C4eJ9vCf.js} +4 -3
- package/chunk/{BNHrEI0Y.js → C6fEFlPt.js} +52 -48
- package/chunk/C8o-VGyc.js +376 -0
- package/chunk/{eK7lxdak.js → CDJ1EnJ2.js} +8 -8
- package/chunk/{C5AQWbC4.js → CHyuuVxl.js} +1 -1
- package/chunk/{B2vORJQ8.js → CJnshq6A.js} +13 -13
- package/chunk/CT1lZ7ss.js +116 -0
- package/chunk/{Bdh4XVuf.js → CV1kLw5Z.js} +290 -281
- package/chunk/{DmUhn9ib.js → CazXy0r4.js} +54 -53
- package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
- package/chunk/{BJ_7JTqC.js → D3VMG9V1.js} +1 -1
- package/chunk/{D2HkyI6A.js → DGasAUHE.js} +2 -2
- package/chunk/{YIlBPVAs.js → DRQ1v6Ux.js} +1 -1
- package/chunk/{DhBo0pPJ.js → DRp7voqz.js} +119 -118
- package/chunk/{gIbzjQ-X.js → Dtm4BmKB.js} +2 -2
- package/chunk/{BEDYCG-I.js → KchYsivk.js} +18 -18
- package/chunk/{Cbd50gx8.js → Wum88vrW.js} +33 -33
- package/chunk/{BjSHZA0m.js → mfn4EgmQ.js} +1 -1
- package/chunk/{BYhtrDV3.js → nbEvdwT0.js} +152 -148
- package/chunk/{C1D7T29r.js → qpd2axxs.js} +83 -76
- package/chunk/{BVLwPZis.js → tOFzwzpT.js} +31 -30
- package/chunk/{DSGRHf-1.js → yESVS-qX.js} +157 -156
- package/hooks/useMergeValue.js +1 -1
- package/icons.js +4 -6001
- package/index.js +420 -392
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cascader/panel/Search.d.ts +1 -1
- package/types/config-provider/interface.d.ts +1 -1
- package/types/form/interface.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/message/index.d.ts +2 -2
- package/types/notification/index.d.ts +2 -2
- package/types/notification-base/index.d.ts +2 -2
- package/types/select/interface.d.ts +1 -0
- package/types/select-view/interface.d.ts +1 -0
- package/types/tree/Context.d.ts +1 -0
- package/types/tree/Tree.d.ts +1 -1
- package/types/tree/index.d.ts +5 -4
- package/types/tree/interface.d.ts +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/lodash.d.ts +14 -1
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/caseName.js +2 -18
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +220 -191
- package/utils/is.js +68 -67
- package/utils/lodash.js +32 -6
- package/utils/reactDOM.js +1 -1
- package/chunk/-LZOUh53.js +0 -29
- package/chunk/-jdfq71f.js +0 -23
- package/chunk/B0GOLsj_.js +0 -58
- package/chunk/B7Zsp3gO.js +0 -29
- package/chunk/BDjXkzNj.js +0 -23
- package/chunk/BHn4xgbv.js +0 -209
- package/chunk/BLSiP_gg.js +0 -32
- package/chunk/BMJfSSLX.js +0 -23
- package/chunk/B_nfMl0e.js +0 -116
- package/chunk/BcS17Pzy.js +0 -66
- package/chunk/BdiEwtQO.js +0 -41
- package/chunk/Bpug_KxP.js +0 -34
- package/chunk/C1u_ckwU.js +0 -29
- package/chunk/C43Hv2Bl.js +0 -34
- package/chunk/C9vsih_D.js +0 -29
- package/chunk/CAfR2wLq.js +0 -41
- package/chunk/CAfecMDF.js +0 -46
- package/chunk/CKp4rZnD.js +0 -207
- package/chunk/CV2Aqv9q.js +0 -52
- package/chunk/CYdarMv9.js +0 -32
- package/chunk/C_S5Mdvd.js +0 -379
- package/chunk/CmB-TL7C.js +0 -46
- package/chunk/D-ER56Sf.js +0 -29
- package/chunk/D-aYnb6u.js +0 -41
- package/chunk/D3xQFJcO.js +0 -23
- package/chunk/DJcEys80.js +0 -29
- package/chunk/DLIm6rRJ.js +0 -29
- package/chunk/DOWEHtqM.js +0 -41
- package/chunk/DT37l12z.js +0 -40
- package/chunk/DW-B7npC.js +0 -23
- package/chunk/D_MTFBb0.js +0 -38
- package/chunk/Dx_5J4fO.js +0 -29
- package/chunk/Dy487FZ1.js +0 -118
- package/chunk/Uz-rNulO.js +0 -98
- package/chunk/cDZI_t6o.js +0 -52
- package/chunk/sScV-J56.js +0 -206
- package/chunk/wI2I1qb0.js +0 -23
package/Affix.js
CHANGED
|
@@ -3,7 +3,7 @@ import w from "lodash/isFunction";
|
|
|
3
3
|
import q from "lodash/isPlainObject";
|
|
4
4
|
import v from "lodash/isUndefined";
|
|
5
5
|
import { forwardRef as G, useContext as J, useState as K, useRef as h, useCallback as Q, useEffect as d, useImperativeHandle as V } from "react";
|
|
6
|
-
import { d as X } from "./chunk/
|
|
6
|
+
import { d as X } from "./chunk/CV1kLw5Z.js";
|
|
7
7
|
import { useIsomorphicLayoutEffect as Y } from "./hooks/useIsomorphicLayoutEffect.js";
|
|
8
8
|
import { useMergeProps as Z } from "./hooks/useMergeProps.js";
|
|
9
9
|
import { y as U } from "./chunk/BzPkh4Zv.js";
|
package/Alert.js
CHANGED
|
@@ -1,66 +1,70 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import S from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
3
|
+
import j from "@unicom-cloud/icons/IconUiClose";
|
|
4
|
+
import k from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
5
|
+
import R from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
6
|
+
import T from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
3
7
|
import { forwardRef as q, useRef as z, useContext as H, useState as M } from "react";
|
|
4
|
-
import { d as O } from "./chunk/
|
|
8
|
+
import { d as O } from "./chunk/CV1kLw5Z.js";
|
|
5
9
|
import { useMergeProps as V } from "./hooks/useMergeProps.js";
|
|
6
10
|
import { y as _ } from "./chunk/BzPkh4Zv.js";
|
|
7
|
-
import { P as B } from "./chunk/
|
|
11
|
+
import { P as B } from "./chunk/Bp3XomF8.js";
|
|
8
12
|
const D = {
|
|
9
13
|
showIcon: !0,
|
|
10
14
|
type: "info"
|
|
11
15
|
};
|
|
12
|
-
function G(
|
|
13
|
-
|
|
14
|
-
const { getPrefixCls:
|
|
15
|
-
|
|
16
|
+
function G(d, l) {
|
|
17
|
+
l || (l = z());
|
|
18
|
+
const { getPrefixCls: h, componentConfig: o, rtl: C } = H(O), c = V(
|
|
19
|
+
d,
|
|
16
20
|
D,
|
|
17
|
-
|
|
21
|
+
o == null ? void 0 : o.Alert
|
|
18
22
|
), {
|
|
19
|
-
style:
|
|
20
|
-
className:
|
|
23
|
+
style: b,
|
|
24
|
+
className: N,
|
|
21
25
|
action: a,
|
|
22
26
|
type: m = "info",
|
|
23
|
-
title:
|
|
27
|
+
title: r,
|
|
24
28
|
content: u,
|
|
25
|
-
icon:
|
|
26
|
-
showIcon:
|
|
27
|
-
closable:
|
|
28
|
-
closeable:
|
|
29
|
-
afterClose:
|
|
30
|
-
onClose:
|
|
29
|
+
icon: f,
|
|
30
|
+
showIcon: $,
|
|
31
|
+
closable: x,
|
|
32
|
+
closeable: I,
|
|
33
|
+
afterClose: n,
|
|
34
|
+
onClose: i,
|
|
31
35
|
closeElement: w,
|
|
32
36
|
banner: v,
|
|
33
37
|
...y
|
|
34
|
-
} = c, e =
|
|
35
|
-
function A(
|
|
36
|
-
if (
|
|
37
|
-
return
|
|
38
|
-
switch (
|
|
38
|
+
} = c, e = h("alert"), [P, U] = M(!0);
|
|
39
|
+
function A(s) {
|
|
40
|
+
if (f)
|
|
41
|
+
return f;
|
|
42
|
+
switch (s) {
|
|
39
43
|
case "info":
|
|
40
44
|
return /* @__PURE__ */ t(T, {});
|
|
41
45
|
case "success":
|
|
42
|
-
return /* @__PURE__ */ t(
|
|
46
|
+
return /* @__PURE__ */ t(S, {});
|
|
43
47
|
case "warning":
|
|
44
|
-
return /* @__PURE__ */ t(
|
|
48
|
+
return /* @__PURE__ */ t(R, {});
|
|
45
49
|
case "error":
|
|
46
|
-
return /* @__PURE__ */ t(
|
|
50
|
+
return /* @__PURE__ */ t(k, {});
|
|
47
51
|
default:
|
|
48
52
|
return null;
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
|
-
function E(
|
|
52
|
-
U(!1),
|
|
55
|
+
function E(s) {
|
|
56
|
+
U(!1), i == null || i(s);
|
|
53
57
|
}
|
|
54
58
|
const F = _(
|
|
55
59
|
e,
|
|
56
60
|
`${e}-${m}`,
|
|
57
61
|
{
|
|
58
|
-
[`${e}-with-title`]:
|
|
62
|
+
[`${e}-with-title`]: r,
|
|
59
63
|
[`${e}-banner`]: v,
|
|
60
|
-
[`${e}-rtl`]:
|
|
64
|
+
[`${e}-rtl`]: C
|
|
61
65
|
},
|
|
62
|
-
|
|
63
|
-
), g = "closeable" in c ?
|
|
66
|
+
N
|
|
67
|
+
), g = "closeable" in c ? I : x;
|
|
64
68
|
return /* @__PURE__ */ t(
|
|
65
69
|
B,
|
|
66
70
|
{
|
|
@@ -69,20 +73,20 @@ function G(p, i) {
|
|
|
69
73
|
classNames: "zoomInTop",
|
|
70
74
|
unmountOnExit: !0,
|
|
71
75
|
onExited: () => {
|
|
72
|
-
|
|
76
|
+
n == null || n();
|
|
73
77
|
},
|
|
74
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ p(
|
|
75
79
|
"div",
|
|
76
80
|
{
|
|
77
|
-
ref:
|
|
78
|
-
style:
|
|
81
|
+
ref: l,
|
|
82
|
+
style: b,
|
|
79
83
|
className: F,
|
|
80
84
|
role: "alert",
|
|
81
85
|
...y,
|
|
82
86
|
children: [
|
|
83
|
-
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
87
|
+
$ && /* @__PURE__ */ t("div", { className: `${e}-icon-wrapper`, children: A(m) }),
|
|
88
|
+
/* @__PURE__ */ p("div", { className: `${e}-content-wrapper`, children: [
|
|
89
|
+
r && /* @__PURE__ */ t("div", { className: `${e}-title`, children: r }),
|
|
86
90
|
u && /* @__PURE__ */ t("div", { className: `${e}-content`, children: u })
|
|
87
91
|
] }),
|
|
88
92
|
a && /* @__PURE__ */ t("div", { className: `${e}-action`, children: a }),
|
|
@@ -92,7 +96,7 @@ function G(p, i) {
|
|
|
92
96
|
type: "button",
|
|
93
97
|
onClick: E,
|
|
94
98
|
className: `${e}-close-btn`,
|
|
95
|
-
children: w || /* @__PURE__ */ t(
|
|
99
|
+
children: w || /* @__PURE__ */ t(j, {})
|
|
96
100
|
}
|
|
97
101
|
)
|
|
98
102
|
]
|
package/Anchor.js
CHANGED
package/AutoComplete.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import le from "@unicom-cloud/icons/IconUiLoading";
|
|
3
3
|
import p, { useContext as ne, useState as se, useRef as B, isValidElement as ae, useImperativeHandle as ce } from "react";
|
|
4
|
-
import { d as ie } from "./chunk/
|
|
4
|
+
import { d as ie } from "./chunk/CV1kLw5Z.js";
|
|
5
5
|
import { useMergeProps as fe } from "./hooks/useMergeProps.js";
|
|
6
6
|
import { useMergeValue as ue } from "./hooks/useMergeValue.js";
|
|
7
|
-
import { I as me } from "./chunk/
|
|
8
|
-
import { S as d, i as pe, a as de } from "./chunk/
|
|
7
|
+
import { I as me } from "./chunk/CazXy0r4.js";
|
|
8
|
+
import { S as d, i as pe, a as de } from "./chunk/nbEvdwT0.js";
|
|
9
9
|
import { y as ge } from "./chunk/BzPkh4Zv.js";
|
|
10
10
|
import { E as Ce, d as ye } from "./chunk/C2lIz2F9.js";
|
|
11
11
|
import Oe from "./utils/omit.js";
|
package/Avatar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as T, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import w from "lodash/isNumber";
|
|
3
3
|
import S, { createContext as M, forwardRef as W, useContext as I, useRef as k, useImperativeHandle as q, useEffect as D } from "react";
|
|
4
|
-
import { d as j } from "./chunk/
|
|
4
|
+
import { d as j } from "./chunk/CV1kLw5Z.js";
|
|
5
5
|
import { y as E } from "./chunk/BzPkh4Zv.js";
|
|
6
6
|
import { useMergeProps as O } from "./hooks/useMergeProps.js";
|
|
7
7
|
import V from "./Popover.js";
|
package/BackTop.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import k from "@unicom-cloud/icons/IconUiToTop";
|
|
3
3
|
import { P as x, C as y } from "./chunk/4-gvEY5y.js";
|
|
4
4
|
import P, { forwardRef as B, useRef as E, useContext as N, useState as R, useEffect as S } from "react";
|
|
5
|
-
import { d as H } from "./chunk/
|
|
6
|
-
import { useKeyboardEvent as
|
|
7
|
-
import { useMergeProps as
|
|
8
|
-
import { P as
|
|
5
|
+
import { d as H } from "./chunk/CV1kLw5Z.js";
|
|
6
|
+
import { useKeyboardEvent as $ } from "./hooks/useKeyboardEvent.js";
|
|
7
|
+
import { useMergeProps as D } from "./hooks/useMergeProps.js";
|
|
8
|
+
import { P as I } from "./chunk/Bp3XomF8.js";
|
|
9
9
|
import { y as K } from "./chunk/BzPkh4Zv.js";
|
|
10
10
|
import { on as U, off as j } from "./utils/dom.js";
|
|
11
11
|
import { pickDataAttributes as q } from "./utils/pick.js";
|
|
@@ -18,7 +18,7 @@ function M(p, a) {
|
|
|
18
18
|
easing: x,
|
|
19
19
|
duration: 400,
|
|
20
20
|
target: () => window
|
|
21
|
-
}, { getPrefixCls: T, componentConfig: l, rtl: b } = N(H), w =
|
|
21
|
+
}, { getPrefixCls: T, componentConfig: l, rtl: b } = N(H), w = $(), t = D(
|
|
22
22
|
p,
|
|
23
23
|
g,
|
|
24
24
|
l == null ? void 0 : l.BackTop
|
|
@@ -63,7 +63,7 @@ function M(p, a) {
|
|
|
63
63
|
onPressEnter: f
|
|
64
64
|
}),
|
|
65
65
|
children: /* @__PURE__ */ i(
|
|
66
|
-
|
|
66
|
+
I,
|
|
67
67
|
{
|
|
68
68
|
in: h,
|
|
69
69
|
timeout: 100,
|
package/Badge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import R from "lodash/isPlainObject";
|
|
3
3
|
import { useState as q, forwardRef as z, useContext as D } from "react";
|
|
4
|
-
import { d as I } from "./chunk/
|
|
4
|
+
import { d as I } from "./chunk/CV1kLw5Z.js";
|
|
5
5
|
import { useMergeProps as k } from "./hooks/useMergeProps.js";
|
|
6
|
-
import { P as b } from "./chunk/
|
|
6
|
+
import { P as b } from "./chunk/Bp3XomF8.js";
|
|
7
7
|
import { y as a } from "./chunk/BzPkh4Zv.js";
|
|
8
8
|
import { usePrevious as v } from "./hooks/usePrevious.js";
|
|
9
9
|
function A({ prefixCls: d, maxCount: i, count: n, className: c, style: f }) {
|
package/Breadcrumb.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as M, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import v from "@unicom-cloud/icons/IconUiObliqueLine";
|
|
3
3
|
import g, { useState as O, forwardRef as U, useContext as _ } from "react";
|
|
4
|
-
import { d as q } from "./chunk/
|
|
4
|
+
import { d as q } from "./chunk/CV1kLw5Z.js";
|
|
5
5
|
import { useMergeProps as A } from "./hooks/useMergeProps.js";
|
|
6
|
-
import { M as V } from "./chunk/
|
|
6
|
+
import { M as V } from "./chunk/B4-WpgY2.js";
|
|
7
7
|
import { y as w } from "./chunk/BzPkh4Zv.js";
|
|
8
8
|
import { isEmptyReactNode as F } from "./utils/is.js";
|
|
9
9
|
import E from "./utils/omit.js";
|
|
10
|
-
import
|
|
10
|
+
import K from "@unicom-cloud/icons/IconUiDown";
|
|
11
11
|
import L from "lodash/isString";
|
|
12
12
|
import W from "./Dropdown.js";
|
|
13
13
|
import { pickDataAttributes as z } from "./utils/pick.js";
|
|
@@ -20,14 +20,14 @@ function x(o) {
|
|
|
20
20
|
droplist: n,
|
|
21
21
|
dropdownProps: a,
|
|
22
22
|
href: f,
|
|
23
|
-
onClick:
|
|
24
|
-
tagName:
|
|
23
|
+
onClick: y,
|
|
24
|
+
tagName: i = "div",
|
|
25
25
|
...b
|
|
26
|
-
} = o, [
|
|
27
|
-
|
|
26
|
+
} = o, [I, $] = O(!1), s = L(f) ? "a" : i, u = /* @__PURE__ */ M(
|
|
27
|
+
s,
|
|
28
28
|
{
|
|
29
29
|
href: f,
|
|
30
|
-
onClick:
|
|
30
|
+
onClick: y,
|
|
31
31
|
role: "listitem",
|
|
32
32
|
style: p,
|
|
33
33
|
className: w(
|
|
@@ -45,7 +45,7 @@ function x(o) {
|
|
|
45
45
|
{
|
|
46
46
|
"aria-hidden": !0,
|
|
47
47
|
className: w(`${c}-item-dropdown-icon`, {
|
|
48
|
-
[`${c}-item-dropdown-icon-active`]:
|
|
48
|
+
[`${c}-item-dropdown-icon-active`]: I
|
|
49
49
|
}),
|
|
50
50
|
children: /* @__PURE__ */ t(K, {})
|
|
51
51
|
}
|
|
@@ -75,30 +75,30 @@ function J(o, l) {
|
|
|
75
75
|
o,
|
|
76
76
|
H,
|
|
77
77
|
h == null ? void 0 : h.Breadcrumb
|
|
78
|
-
), { className: a, children: f, style:
|
|
78
|
+
), { className: a, children: f, style: y, routes: i, maxCount: b, separator: I, ...$ } = n, s = p("breadcrumb"), u = "itemRender" in n ? n.itemRender : G, C = /* @__PURE__ */ t(
|
|
79
79
|
"span",
|
|
80
80
|
{
|
|
81
81
|
"aria-label": "ellipses of breadcrumb items",
|
|
82
|
-
className: `${
|
|
82
|
+
className: `${s}-item-ellipses`,
|
|
83
83
|
children: "..."
|
|
84
84
|
}
|
|
85
|
-
), N = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: `${
|
|
85
|
+
), N = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: `${s}-item-separator`, children: I }), R = (r, d, e) => {
|
|
86
86
|
const m = g.cloneElement(N, {
|
|
87
87
|
key: `${e}_separator`
|
|
88
88
|
});
|
|
89
89
|
return d > 0 ? e === 0 ? [r, m, C] : e > d ? [m, r] : null : e === 0 ? [r] : [m, r];
|
|
90
90
|
}, S = () => {
|
|
91
|
-
const r = [], d =
|
|
92
|
-
return
|
|
91
|
+
const r = [], d = i.length - b;
|
|
92
|
+
return i.map((e, m) => {
|
|
93
93
|
r.push((e.path || "").replace(/^\//, ""));
|
|
94
|
-
const k = e.children ? /* @__PURE__ */ t(V, { children: e.children.map((B) => /* @__PURE__ */ t(V.Item, { children: u(B,
|
|
94
|
+
const k = e.children ? /* @__PURE__ */ t(V, { children: e.children.map((B) => /* @__PURE__ */ t(V.Item, { children: u(B, i, r) }, B.path || B.breadcrumbName)) }) : null;
|
|
95
95
|
return R(
|
|
96
96
|
/* @__PURE__ */ t(
|
|
97
97
|
x,
|
|
98
98
|
{
|
|
99
|
-
prefixCls:
|
|
99
|
+
prefixCls: s,
|
|
100
100
|
droplist: k,
|
|
101
|
-
children: u(e,
|
|
101
|
+
children: u(e, i, r)
|
|
102
102
|
},
|
|
103
103
|
e.path || e.breadcrumbName
|
|
104
104
|
),
|
|
@@ -114,7 +114,7 @@ function J(o, l) {
|
|
|
114
114
|
const d = r.length - b;
|
|
115
115
|
return g.Children.map(r, (e, m) => R(
|
|
116
116
|
g.cloneElement(e, {
|
|
117
|
-
prefixCls:
|
|
117
|
+
prefixCls: s
|
|
118
118
|
}),
|
|
119
119
|
d,
|
|
120
120
|
m
|
|
@@ -125,10 +125,10 @@ function J(o, l) {
|
|
|
125
125
|
{
|
|
126
126
|
role: "list",
|
|
127
127
|
ref: l,
|
|
128
|
-
style:
|
|
129
|
-
className: w(
|
|
128
|
+
style: y,
|
|
129
|
+
className: w(s, { [`${s}-rtl`]: c }, a),
|
|
130
130
|
...E($, ["itemRender"]),
|
|
131
|
-
children:
|
|
131
|
+
children: i && i.length ? S() : j()
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
}
|
package/Button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f, jsxs as H, Fragment as J } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import K from "@unicom-cloud/icons/IconUiLoading";
|
|
3
3
|
import g, { useContext as _, forwardRef as V, useState as X, useRef as Y, useEffect as Z } from "react";
|
|
4
|
-
import { d as z } from "./chunk/
|
|
4
|
+
import { d as z } from "./chunk/CV1kLw5Z.js";
|
|
5
5
|
import { useMergeProps as v } from "./hooks/useMergeProps.js";
|
|
6
6
|
import { y as S } from "./chunk/BzPkh4Zv.js";
|
|
7
7
|
function tt(c, o) {
|