@unicom-cloud/ui 0.8.62 → 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 +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +3 -3
- package/Avatar.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- 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 +1026 -1016
- package/Descriptions.js +10 -10
- 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 +2 -2
- 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 +4 -3
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +4 -3
- 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 +50 -46
- package/Spin.js +1 -1
- package/Statistic.js +28 -27
- package/Steps.js +40 -38
- package/Switch.js +2 -2
- 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 +2 -2
- package/Typography.js +6 -2
- package/Upload.js +5 -4
- package/VerificationCode.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{CHyuuVxl.js → -IELMT_x.js} +1 -1
- package/chunk/{CV1kLw5Z.js → B5GDq8NJ.js} +8 -6
- package/chunk/{qpd2axxs.js → B68hRpYG.js} +2 -2
- package/chunk/{B8SZFOjt.js → BCxoi4Kf.js} +22 -20
- package/chunk/{DRp7voqz.js → BHnRi7Xh.js} +3 -3
- package/chunk/{C6fEFlPt.js → BJSjbYSN.js} +2 -2
- package/chunk/{BlNFmhNa.js → BSBJlVZH.js} +3 -3
- package/chunk/{yESVS-qX.js → BfHNSLva.js} +3 -3
- package/chunk/{B4-WpgY2.js → BtIG250j.js} +7 -4
- package/chunk/{Dtm4BmKB.js → BwSpYGK-.js} +1 -1
- package/chunk/{KchYsivk.js → CA69nxbj.js} +1 -1
- package/chunk/{D3VMG9V1.js → CAhODOfT.js} +3 -2
- package/chunk/{tOFzwzpT.js → CAiaqaWc.js} +1 -1
- package/chunk/{Wum88vrW.js → CBgwLBAC.js} +40 -38
- package/chunk/{Bp3XomF8.js → CLBavO5c.js} +23 -20
- package/chunk/{CT1lZ7ss.js → CTF5o0OX.js} +1 -1
- package/chunk/{C4eJ9vCf.js → CYQ1EE4h.js} +2 -2
- package/chunk/{DRQ1v6Ux.js → CZfGDXaB.js} +1 -1
- package/chunk/{B0oDiPqE.js → CtUTlwlQ.js} +1 -1
- package/chunk/{DGasAUHE.js → CxpFYX4B.js} +11 -11
- package/chunk/{BnqeQYIZ.js → D-oHJail.js} +59 -55
- package/chunk/{CazXy0r4.js → D01b7bWX.js} +50 -45
- package/chunk/{C8o-VGyc.js → DPJEIBKZ.js} +3 -3
- package/chunk/{-Z968QpN.js → DQ561AmR.js} +3 -3
- package/chunk/{CDJ1EnJ2.js → QlYCEvCX.js} +1 -1
- package/chunk/{AqH9yP_J.js → Yvz-hPQB.js} +2 -2
- package/chunk/{nbEvdwT0.js → _m8hLSsx.js} +4 -2
- package/chunk/{CJnshq6A.js → oR9TkA35.js} +2 -2
- package/chunk/{BXWxA-tS.js → pq-36BDW.js} +5 -3
- package/chunk/{mfn4EgmQ.js → tW_FgNSv.js} +1 -1
- package/index.js +540 -472
- package/locale/zh-CN.js +8 -0
- package/package.json +1 -1
- package/types/calendar/hook/useCellClassName.d.ts +2 -1
- package/types/checkbox/IconCheck.d.ts +2 -1
- package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
- package/types/date-picker/hook/useCellClassName.d.ts +2 -1
- package/types/date-picker/index.d.ts +7 -0
- 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 +25 -25
- 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/locale/interface.d.ts +1 -0
- package/types/locale/zh-CN.d.ts +14 -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 +4 -1
- 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/is.d.ts +2 -0
- 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/types/verification-code/VerificationCode.d.ts +2 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/dayjs.js +50 -49
- package/utils/index.js +161 -148
- package/utils/is.js +125 -112
package/Descriptions.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import z from "lodash/isArray";
|
|
3
3
|
import T from "lodash/isNumber";
|
|
4
4
|
import V from "lodash/isPlainObject";
|
|
5
|
-
import { useContext as q, useState as B, useRef as G, useEffect as J
|
|
6
|
-
import { d as K } from "./chunk/
|
|
5
|
+
import S, { useContext as q, useState as B, useRef as G, useEffect as J } from "react";
|
|
6
|
+
import { d as K } from "./chunk/B5GDq8NJ.js";
|
|
7
7
|
import { useMergeProps as Q } from "./hooks/useMergeProps.js";
|
|
8
8
|
import { y as U } from "./chunk/BzPkh4Zv.js";
|
|
9
9
|
import x, { responsiveArray as P } from "./utils/responsiveObserve.js";
|
|
@@ -67,7 +67,7 @@ function X(f) {
|
|
|
67
67
|
t < l && (s[s.length - 1].span = s[s.length - 1].span + l - t);
|
|
68
68
|
}
|
|
69
69
|
function E(s, t) {
|
|
70
|
-
return /* @__PURE__ */ c(S, { children: [
|
|
70
|
+
return /* @__PURE__ */ c(S.Fragment, { children: [
|
|
71
71
|
/* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
|
|
72
72
|
const r = e.span > 1 ? { colSpan: e.span } : {};
|
|
73
73
|
return /* @__PURE__ */ c(
|
|
@@ -102,7 +102,7 @@ function X(f) {
|
|
|
102
102
|
function F(s, t) {
|
|
103
103
|
return /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
|
|
104
104
|
const r = e.span > 1 ? { colSpan: e.span * 2 - 1 } : {};
|
|
105
|
-
return /* @__PURE__ */ c(S, { children: [
|
|
105
|
+
return /* @__PURE__ */ c(S.Fragment, { children: [
|
|
106
106
|
/* @__PURE__ */ c("td", { className: `${n}-item-label`, style: y, children: [
|
|
107
107
|
e.label,
|
|
108
108
|
d
|
|
@@ -119,7 +119,7 @@ function X(f) {
|
|
|
119
119
|
] }, e.key || i);
|
|
120
120
|
}) }, t);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function R(s, t) {
|
|
123
123
|
return /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
|
|
124
124
|
const r = e.span > 1 ? { colSpan: e.span } : {};
|
|
125
125
|
return /* @__PURE__ */ c(
|
|
@@ -153,10 +153,10 @@ function X(f) {
|
|
|
153
153
|
);
|
|
154
154
|
}) }, t);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
return u === "inline-vertical" || u === "inline-horizontal" ?
|
|
156
|
+
function H(s, t) {
|
|
157
|
+
return u === "inline-vertical" || u === "inline-horizontal" ? R(s, t) : u === "vertical" ? E(s, t) : F(s, t);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
159
|
+
const M = U(
|
|
160
160
|
n,
|
|
161
161
|
{
|
|
162
162
|
[`${n}-border`]: L,
|
|
@@ -167,9 +167,9 @@ function X(f) {
|
|
|
167
167
|
},
|
|
168
168
|
D
|
|
169
169
|
);
|
|
170
|
-
return /* @__PURE__ */ c("div", { className:
|
|
170
|
+
return /* @__PURE__ */ c("div", { className: M, style: w, children: [
|
|
171
171
|
v && /* @__PURE__ */ a("div", { className: `${n}-title`, children: v }),
|
|
172
|
-
/* @__PURE__ */ a("div", { className: `${n}-body`, children: /* @__PURE__ */ a("table", { className: `${n}-table`, cellPadding: 0, cellSpacing: 0, children: /* @__PURE__ */ a("tbody", { children: o.map((s, t) =>
|
|
172
|
+
/* @__PURE__ */ a("div", { className: `${n}-body`, children: /* @__PURE__ */ a("table", { className: `${n}-table`, cellPadding: 0, cellSpacing: 0, children: /* @__PURE__ */ a("tbody", { children: o.map((s, t) => H(s, t)) }) }) })
|
|
173
173
|
] });
|
|
174
174
|
}
|
|
175
175
|
X.displayName = "Descriptions";
|
package/Divider.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x, useContext as $ } from "react";
|
|
3
|
-
import { d as u } from "./chunk/
|
|
3
|
+
import { d as u } from "./chunk/B5GDq8NJ.js";
|
|
4
4
|
import { useMergeProps as h } from "./hooks/useMergeProps.js";
|
|
5
5
|
import { y as v } from "./chunk/BzPkh4Zv.js";
|
|
6
6
|
const y = {
|
package/Draggable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import S, { useRef as P, useState as u, useEffect as $, useContext as O } from "react";
|
|
3
|
-
import { d as T } from "./chunk/
|
|
3
|
+
import { d as T } from "./chunk/B5GDq8NJ.js";
|
|
4
4
|
import { y as w } from "./chunk/BzPkh4Zv.js";
|
|
5
5
|
function N(m) {
|
|
6
6
|
const {
|
package/Drawer.js
CHANGED
package/Dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as J } from "react/jsx-runtime";
|
|
2
2
|
import $ from "lodash/get";
|
|
3
3
|
import l, { forwardRef as K, useContext as j, useRef as A } from "react";
|
|
4
|
-
import { d as U } from "./chunk/
|
|
4
|
+
import { d as U } from "./chunk/B5GDq8NJ.js";
|
|
5
5
|
import { useMergeProps as z } from "./hooks/useMergeProps.js";
|
|
6
6
|
import { useMergeValue as S } from "./hooks/useMergeValue.js";
|
|
7
7
|
import W, { EventsByTriggerNeed as X } from "./Trigger.js";
|
|
@@ -19,22 +19,22 @@ const te = {
|
|
|
19
19
|
icon: /* @__PURE__ */ s(G, {}),
|
|
20
20
|
unmountOnExit: !0
|
|
21
21
|
};
|
|
22
|
-
function ne(
|
|
22
|
+
function ne(P, O) {
|
|
23
23
|
const { componentConfig: u } = j(U), g = z(
|
|
24
|
-
|
|
24
|
+
P,
|
|
25
25
|
te,
|
|
26
26
|
u == null ? void 0 : u["Dropdown.Button"]
|
|
27
27
|
), {
|
|
28
28
|
className: x,
|
|
29
29
|
style: a,
|
|
30
|
-
children:
|
|
30
|
+
children: w,
|
|
31
31
|
disabled: t,
|
|
32
32
|
position: b = "br",
|
|
33
33
|
type: C = "default",
|
|
34
34
|
size: n,
|
|
35
|
-
icon:
|
|
35
|
+
icon: B = /* @__PURE__ */ s(G, {}),
|
|
36
36
|
onClick: c,
|
|
37
|
-
buttonProps:
|
|
37
|
+
buttonProps: M,
|
|
38
38
|
rightButtonProps: r,
|
|
39
39
|
// 潘启宝添加
|
|
40
40
|
buttonsRender: h,
|
|
@@ -47,8 +47,8 @@ function ne(D, O) {
|
|
|
47
47
|
type: C,
|
|
48
48
|
size: n,
|
|
49
49
|
onClick: c,
|
|
50
|
-
...
|
|
51
|
-
children:
|
|
50
|
+
...M,
|
|
51
|
+
children: w
|
|
52
52
|
}
|
|
53
53
|
), o = /* @__PURE__ */ s(
|
|
54
54
|
N,
|
|
@@ -56,7 +56,7 @@ function ne(D, O) {
|
|
|
56
56
|
disabled: t,
|
|
57
57
|
type: C,
|
|
58
58
|
size: n,
|
|
59
|
-
icon:
|
|
59
|
+
icon: B,
|
|
60
60
|
...r
|
|
61
61
|
}
|
|
62
62
|
);
|
|
@@ -90,7 +90,7 @@ function ne(D, O) {
|
|
|
90
90
|
}
|
|
91
91
|
const L = K(ne);
|
|
92
92
|
L.displayName = "DropdownButton";
|
|
93
|
-
function re(
|
|
93
|
+
function re(P, O) {
|
|
94
94
|
const u = {
|
|
95
95
|
position: "bl",
|
|
96
96
|
trigger: "hover",
|
|
@@ -100,29 +100,29 @@ function re(D, O) {
|
|
|
100
100
|
right: 4,
|
|
101
101
|
top: 4,
|
|
102
102
|
bottom: 4
|
|
103
|
-
}, { getPrefixCls: x, componentConfig: a, rtl:
|
|
104
|
-
|
|
103
|
+
}, { getPrefixCls: x, componentConfig: a, rtl: w } = j(U), t = z(
|
|
104
|
+
P,
|
|
105
105
|
u,
|
|
106
106
|
a == null ? void 0 : a.Dropdown
|
|
107
107
|
), {
|
|
108
108
|
trigger: b,
|
|
109
109
|
droplist: C,
|
|
110
110
|
children: n,
|
|
111
|
-
position:
|
|
111
|
+
position: B,
|
|
112
112
|
disabled: c,
|
|
113
|
-
unmountOnExit:
|
|
113
|
+
unmountOnExit: M,
|
|
114
114
|
triggerProps: r,
|
|
115
115
|
getPopupContainer: h,
|
|
116
116
|
onVisibleChange: i,
|
|
117
117
|
...p
|
|
118
|
-
} = t, o = x("dropdown"), f = A(null), [
|
|
118
|
+
} = t, o = x("dropdown"), f = A(null), [V, Q] = S(!1, {
|
|
119
119
|
defaultValue: t.defaultPopupVisible,
|
|
120
120
|
value: t.popupVisible
|
|
121
121
|
}), R = () => l.Children.only(C || /* @__PURE__ */ s("span", {})), E = (e) => {
|
|
122
122
|
var m;
|
|
123
123
|
Q(e), i == null || i(e), (m = r == null ? void 0 : r.onVisibleChange) == null || m.call(r, e);
|
|
124
124
|
}, q = (e) => {
|
|
125
|
-
e !==
|
|
125
|
+
e !== V && E(e);
|
|
126
126
|
}, H = () => {
|
|
127
127
|
const e = R();
|
|
128
128
|
if ($(e, "type.__PQB_MENU__") || $(e, "props.isMenu")) {
|
|
@@ -140,15 +140,15 @@ function re(D, O) {
|
|
|
140
140
|
selectable: !1,
|
|
141
141
|
onClickMenuItem: (...y) => {
|
|
142
142
|
var I;
|
|
143
|
-
let
|
|
143
|
+
let D = null;
|
|
144
144
|
const v = R();
|
|
145
|
-
v.props.onClickMenuItem && (
|
|
145
|
+
v.props.onClickMenuItem && (D = v.props.onClickMenuItem(
|
|
146
146
|
...y
|
|
147
147
|
));
|
|
148
148
|
const d = f.current && f.current.getRootElement();
|
|
149
|
-
(I = d == null ? void 0 : d.focus) == null || I.call(d),
|
|
149
|
+
(I = d == null ? void 0 : d.focus) == null || I.call(d), D instanceof Promise ? D.finally(
|
|
150
150
|
() => E(!1)
|
|
151
|
-
) :
|
|
151
|
+
) : D !== !1 && E(!1);
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
}
|
|
@@ -165,9 +165,9 @@ function re(D, O) {
|
|
|
165
165
|
mouseEnterDelay: 400,
|
|
166
166
|
mouseLeaveDelay: 400,
|
|
167
167
|
disabled: c,
|
|
168
|
-
unmountOnExit:
|
|
169
|
-
position:
|
|
170
|
-
popupVisible:
|
|
168
|
+
unmountOnExit: M,
|
|
169
|
+
position: B,
|
|
170
|
+
popupVisible: V,
|
|
171
171
|
popupAlign: g,
|
|
172
172
|
getPopupContainer: h,
|
|
173
173
|
alignPoint: b === "contextMenu",
|
|
@@ -180,8 +180,8 @@ function re(D, O) {
|
|
|
180
180
|
...typeof c == "boolean" ? { disabled: c } : {},
|
|
181
181
|
className: T(
|
|
182
182
|
{
|
|
183
|
-
[`${o}-popup-visible`]:
|
|
184
|
-
[`${[o]}-rtl`]:
|
|
183
|
+
[`${o}-popup-visible`]: V,
|
|
184
|
+
[`${[o]}-rtl`]: w
|
|
185
185
|
},
|
|
186
186
|
n.props.className
|
|
187
187
|
),
|
|
@@ -196,5 +196,6 @@ const ie = l.forwardRef(re), k = ie;
|
|
|
196
196
|
k.displayName = "Dropdown";
|
|
197
197
|
k.Button = L;
|
|
198
198
|
export {
|
|
199
|
+
L as DropdownButton,
|
|
199
200
|
k as default
|
|
200
201
|
};
|
package/Empty.js
CHANGED
package/Form.js
CHANGED
|
@@ -6,7 +6,7 @@ import { p as Ke } from "./chunk/CANaGbGR.js";
|
|
|
6
6
|
import M from "lodash/isPlainObject";
|
|
7
7
|
import Me from "lodash/merge";
|
|
8
8
|
import H, { createContext as ue, useRef as L, forwardRef as Ve, useContext as O, useEffect as ie, useImperativeHandle as et, Component as tt, isValidElement as fe, useState as ce, useMemo as we, createElement as Ee, cloneElement as Te, useCallback as ee } from "react";
|
|
9
|
-
import { d as xe, a as rt } from "./chunk/
|
|
9
|
+
import { d as xe, a as rt } from "./chunk/B5GDq8NJ.js";
|
|
10
10
|
import { useCreate as st } from "./hooks/useCreate.js";
|
|
11
11
|
import { useMergeProps as it } from "./hooks/useMergeProps.js";
|
|
12
12
|
import { y as G } from "./chunk/BzPkh4Zv.js";
|
|
@@ -33,7 +33,7 @@ import gt from "lodash/isNil";
|
|
|
33
33
|
import re from "./utils/warning.js";
|
|
34
34
|
import te from "lodash/isUndefined";
|
|
35
35
|
import je from "./Grid.js";
|
|
36
|
-
import { P as mt } from "./chunk/
|
|
36
|
+
import { P as mt } from "./chunk/CLBavO5c.js";
|
|
37
37
|
import Ft from "@unicom-cloud/icons/IconUiQuestionCircleFill";
|
|
38
38
|
import ft from "./Tooltip.js";
|
|
39
39
|
import { useForceUpdate as pt } from "./hooks/useForceUpdate.js";
|
package/Grid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as V, a as A, C as Y, R as Z } from "./chunk/
|
|
1
|
+
import { G as V, a as A, C as Y, R as Z } from "./chunk/CtUTlwlQ.js";
|
|
2
2
|
import { jsx as M } from "react/jsx-runtime";
|
|
3
3
|
import X from "lodash/get";
|
|
4
4
|
import y, { useRef as ee, useState as q, useEffect as z, useMemo as b, forwardRef as H, useContext as h } from "react";
|
|
5
|
-
import { d as J } from "./chunk/
|
|
5
|
+
import { d as J } from "./chunk/B5GDq8NJ.js";
|
|
6
6
|
import { useMergeProps as K } from "./hooks/useMergeProps.js";
|
|
7
7
|
import { y as L } from "./chunk/BzPkh4Zv.js";
|
|
8
8
|
import te from "lodash/isPlainObject";
|
package/Icon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { b as g } from "./chunk/
|
|
3
|
+
import { b as g } from "./chunk/B5GDq8NJ.js";
|
|
4
4
|
import { y as x } from "./chunk/BzPkh4Zv.js";
|
|
5
5
|
import { isServerRendering as y } from "./utils/dom.js";
|
|
6
6
|
const I = [];
|
|
@@ -52,5 +52,6 @@ const m = i.forwardRef(function(r, u) {
|
|
|
52
52
|
m.displayName = "Icon";
|
|
53
53
|
m.addFromIconFontCn = P;
|
|
54
54
|
export {
|
|
55
|
+
P as addFromIconFontCn,
|
|
55
56
|
m as default
|
|
56
57
|
};
|
package/IconHover.js
CHANGED
package/Image.js
CHANGED
package/Input.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import { I as
|
|
1
|
+
import { I as t } from "./chunk/D01b7bWX.js";
|
|
2
|
+
import { G as e, a as s, P as u, S as o, T as I, f as n } from "./chunk/D01b7bWX.js";
|
|
3
|
+
import { I as f } from "./chunk/DPJEIBKZ.js";
|
|
2
4
|
export {
|
|
3
|
-
e as
|
|
5
|
+
e as InputGroup,
|
|
6
|
+
s as InputNumber,
|
|
7
|
+
u as InputPassword,
|
|
8
|
+
o as InputSearch,
|
|
9
|
+
f as InputTag,
|
|
10
|
+
I as InputTextArea,
|
|
11
|
+
t as default,
|
|
12
|
+
n as formatValue
|
|
4
13
|
};
|
package/InputNumber.js
CHANGED
|
@@ -5,9 +5,9 @@ import "@unicom-cloud/icons/IconUiPlus";
|
|
|
5
5
|
import "@unicom-cloud/icons/IconUiUp";
|
|
6
6
|
import "lodash/isNumber";
|
|
7
7
|
import "react";
|
|
8
|
-
import "./chunk/
|
|
8
|
+
import "./chunk/B5GDq8NJ.js";
|
|
9
9
|
import "./hooks/useMergeProps.js";
|
|
10
|
-
import { a as b } from "./chunk/
|
|
10
|
+
import { a as b } from "./chunk/D01b7bWX.js";
|
|
11
11
|
import "./chunk/BzPkh4Zv.js";
|
|
12
12
|
import "./chunk/C2lIz2F9.js";
|
|
13
13
|
import "./utils/omit.js";
|
package/InputTag.js
CHANGED
package/Layout.js
CHANGED
|
@@ -1,54 +1,58 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import S, { forwardRef as
|
|
4
|
-
import { d as
|
|
2
|
+
import L from "lodash/get";
|
|
3
|
+
import S, { forwardRef as u, useContext as f, useState as w } from "react";
|
|
4
|
+
import { d as p } from "./chunk/B5GDq8NJ.js";
|
|
5
5
|
import { useMergeProps as M } from "./hooks/useMergeProps.js";
|
|
6
6
|
import { y as d } from "./chunk/BzPkh4Zv.js";
|
|
7
|
-
import { S as b } from "./chunk/
|
|
7
|
+
import { S as b } from "./chunk/CAiaqaWc.js";
|
|
8
8
|
function j(o, s) {
|
|
9
|
-
const { className: n, children: e, ...r } = o, { getPrefixCls: a } = p
|
|
9
|
+
const { className: n, children: e, ...r } = o, { getPrefixCls: a } = f(p), t = a("layout-content"), c = d(t, n);
|
|
10
10
|
return /* @__PURE__ */ l("main", { ref: s, ...r, className: c, children: e });
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
const g = u(j);
|
|
13
|
+
g.displayName = "LayoutContent";
|
|
14
14
|
function B(o, s) {
|
|
15
|
-
const { className: n, children: e, ...r } = o, { getPrefixCls: a } = p
|
|
15
|
+
const { className: n, children: e, ...r } = o, { getPrefixCls: a } = f(p), t = a("layout-footer"), c = d(t, n);
|
|
16
16
|
return /* @__PURE__ */ l("footer", { ref: s, ...r, className: c, children: e });
|
|
17
17
|
}
|
|
18
|
-
const h =
|
|
18
|
+
const h = u(B);
|
|
19
19
|
h.displayName = "LayoutFooter";
|
|
20
20
|
function E(o, s) {
|
|
21
|
-
const { getPrefixCls: n } = p
|
|
21
|
+
const { getPrefixCls: n } = f(p), { className: e, children: r, ...a } = o, t = n("layout-header"), c = d(t, e);
|
|
22
22
|
return /* @__PURE__ */ l("header", { ref: s, ...a, className: c, children: r });
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
const F = u(E);
|
|
25
|
+
F.displayName = "LayoutHeader";
|
|
26
26
|
function G(o, s) {
|
|
27
|
-
const { getPrefixCls: n, componentConfig: e } = p
|
|
27
|
+
const { getPrefixCls: n, componentConfig: e } = f(p), r = M(
|
|
28
28
|
o,
|
|
29
29
|
{},
|
|
30
30
|
e == null ? void 0 : e.Layout
|
|
31
|
-
), { className: a, hasSider: t, children: c, ...
|
|
31
|
+
), { className: a, hasSider: t, children: c, ...P } = r, [y, N] = w([]), x = n("layout"), H = d(
|
|
32
32
|
x,
|
|
33
33
|
{
|
|
34
34
|
[`${x}-has-sider`]: typeof t == "boolean" ? t : y.length > 0
|
|
35
35
|
},
|
|
36
36
|
a
|
|
37
37
|
);
|
|
38
|
-
return /* @__PURE__ */ l("section", { ref: s, ...
|
|
39
|
-
const
|
|
40
|
-
return i &&
|
|
38
|
+
return /* @__PURE__ */ l("section", { ref: s, ...P, className: H, children: S.Children.map(c, (i) => {
|
|
39
|
+
const _ = L(i, "type.__PQB_SIGN__") || L(i, "props.sign");
|
|
40
|
+
return i && _ === "sider" ? S.cloneElement(i, {
|
|
41
41
|
onSiderMount: (C) => N([...y, C]),
|
|
42
42
|
onSiderUnmount: (C) => N(y.filter((R) => R !== C))
|
|
43
43
|
}) : i;
|
|
44
44
|
}) });
|
|
45
45
|
}
|
|
46
|
-
const I =
|
|
46
|
+
const I = u(G), m = I;
|
|
47
47
|
m.displayName = "Layout";
|
|
48
48
|
m.Sider = b;
|
|
49
|
-
m.Header =
|
|
49
|
+
m.Header = F;
|
|
50
50
|
m.Footer = h;
|
|
51
|
-
m.Content =
|
|
51
|
+
m.Content = g;
|
|
52
52
|
export {
|
|
53
|
+
g as LayoutContent,
|
|
54
|
+
h as LayoutFooter,
|
|
55
|
+
F as LayoutHeader,
|
|
56
|
+
b as LayoutSider,
|
|
53
57
|
m as default
|
|
54
58
|
};
|
package/Link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as C, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import $ from "@unicom-cloud/icons/IconUiLink";
|
|
3
3
|
import { forwardRef as g, useContext as L } from "react";
|
|
4
|
-
import { d as P } from "./chunk/
|
|
4
|
+
import { d as P } from "./chunk/B5GDq8NJ.js";
|
|
5
5
|
import { useKeyboardEvent as w } from "./hooks/useKeyboardEvent.js";
|
|
6
6
|
import { useMergeProps as K } from "./hooks/useMergeProps.js";
|
|
7
7
|
import { y as N } from "./chunk/BzPkh4Zv.js";
|
package/List.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as N, jsx as s, Fragment as At } from "react/jsx-runtime";
|
|
2
2
|
import F, { useContext as K, useRef as R, useState as J, useImperativeHandle as Dt, useCallback as Ht, createElement as Tt } from "react";
|
|
3
3
|
import Vt from "lodash/throttle";
|
|
4
|
-
import { d as Q } from "./chunk/
|
|
5
|
-
import { R as mt, C as dt } from "./chunk/
|
|
4
|
+
import { d as Q } from "./chunk/B5GDq8NJ.js";
|
|
5
|
+
import { R as mt, C as dt } from "./chunk/CtUTlwlQ.js";
|
|
6
6
|
import { useMergeProps as ht } from "./hooks/useMergeProps.js";
|
|
7
|
-
import { P as _t } from "./chunk/
|
|
7
|
+
import { P as _t } from "./chunk/BHnRi7Xh.js";
|
|
8
8
|
import kt from "./Spin.js";
|
|
9
9
|
import { y as M } from "./chunk/BzPkh4Zv.js";
|
|
10
10
|
import Bt from "./utils/omit.js";
|
|
@@ -309,5 +309,6 @@ const gt = F.forwardRef(
|
|
|
309
309
|
gt.displayName = "List";
|
|
310
310
|
gt.Item = Y;
|
|
311
311
|
export {
|
|
312
|
+
Y as ListItem,
|
|
312
313
|
gt as default
|
|
313
314
|
};
|
package/Mentions.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as P, jsx as M } from "react/jsx-runtime";
|
|
2
2
|
import q, { useContext as z, useRef as T, useState as G, useEffect as J } from "react";
|
|
3
|
-
import { d as Q } from "./chunk/
|
|
3
|
+
import { d as Q } from "./chunk/B5GDq8NJ.js";
|
|
4
4
|
import { useMergeProps as X } from "./hooks/useMergeProps.js";
|
|
5
5
|
import { useMergeValue as Y } from "./hooks/useMergeValue.js";
|
|
6
|
-
import { I as Z } from "./chunk/
|
|
7
|
-
import { S as _ } from "./chunk/
|
|
6
|
+
import { I as Z } from "./chunk/D01b7bWX.js";
|
|
7
|
+
import { S as _ } from "./chunk/_m8hLSsx.js";
|
|
8
8
|
import { y as ee } from "./chunk/BzPkh4Zv.js";
|
|
9
9
|
import { d as V, E as S, c as w, A as N } from "./chunk/C2lIz2F9.js";
|
|
10
10
|
function te(i, { split: t }) {
|
package/Menu.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { M as
|
|
1
|
+
import { M as u } from "./chunk/BtIG250j.js";
|
|
2
|
+
import { I as o, a as t, S as M, S as m } from "./chunk/BtIG250j.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
o as MenuItem,
|
|
5
|
+
t as MenuItemGroup,
|
|
6
|
+
M as MenuSubMenu,
|
|
7
|
+
m as SubMenu,
|
|
8
|
+
u as default
|
|
4
9
|
};
|
package/Message.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "./chunk/
|
|
2
|
+
import "./chunk/CLBavO5c.js";
|
|
3
3
|
import "lodash/isNumber";
|
|
4
4
|
import "lodash/isUndefined";
|
|
5
|
-
import { M as
|
|
5
|
+
import { M as u, u as f } from "./chunk/B5GDq8NJ.js";
|
|
6
6
|
import "./NotificationBase.js";
|
|
7
7
|
import "./chunk/BzPkh4Zv.js";
|
|
8
8
|
import "./utils/reactDOM.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
u as default,
|
|
11
|
+
f as useMessage
|
|
11
12
|
};
|
package/Modal.js
CHANGED
package/Notice.js
CHANGED
|
@@ -7,7 +7,7 @@ import "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
|
7
7
|
import "@unicom-cloud/icons/IconUiLoading";
|
|
8
8
|
import "@unicom-cloud/icons/context";
|
|
9
9
|
import "react";
|
|
10
|
-
import {
|
|
10
|
+
import { m as u } from "./chunk/B5GDq8NJ.js";
|
|
11
11
|
import "./chunk/BzPkh4Zv.js";
|
|
12
12
|
export {
|
|
13
13
|
u as default
|
package/Notification.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "./chunk/
|
|
2
|
+
import "./chunk/CLBavO5c.js";
|
|
3
3
|
import "lodash/isNumber";
|
|
4
4
|
import "lodash/isUndefined";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g } from "./chunk/
|
|
6
|
+
import { g as u, h as c } from "./chunk/B5GDq8NJ.js";
|
|
7
7
|
import "./NotificationBase.js";
|
|
8
8
|
import "./chunk/BzPkh4Zv.js";
|
|
9
9
|
import "./utils/reactDOM.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
u as default,
|
|
12
|
+
c as useNotification
|
|
12
13
|
};
|
package/OverflowEllipsis.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as C, jsxs as D } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as j, useRef as k, useEffect as g, useState as m, useLayoutEffect as P } from "react";
|
|
3
|
-
import { d as v } from "./chunk/
|
|
3
|
+
import { d as v } from "./chunk/B5GDq8NJ.js";
|
|
4
4
|
import { y as E } from "./chunk/BzPkh4Zv.js";
|
|
5
5
|
function _(l) {
|
|
6
6
|
const { getPrefixCls: x } = j(v), i = x("overflow-item"), u = k();
|
package/PageHeader.js
CHANGED
|
@@ -3,7 +3,7 @@ import T from "@unicom-cloud/icons/IconUiLeft";
|
|
|
3
3
|
import W from "@unicom-cloud/icons/IconUiRight";
|
|
4
4
|
import j, { useContext as K, useState as U, useRef as D, useImperativeHandle as F, useEffect as L } from "react";
|
|
5
5
|
import M from "./Breadcrumb.js";
|
|
6
|
-
import { d as S, I as q } from "./chunk/
|
|
6
|
+
import { d as S, I as q } from "./chunk/B5GDq8NJ.js";
|
|
7
7
|
import { useKeyboardEvent as G } from "./hooks/useKeyboardEvent.js";
|
|
8
8
|
import { useMergeProps as J } from "./hooks/useMergeProps.js";
|
|
9
9
|
import { y as N } from "./chunk/BzPkh4Zv.js";
|
package/Pagination.js
CHANGED
package/Picker.js
CHANGED
package/Popconfirm.js
CHANGED
|
@@ -4,7 +4,7 @@ import y from "lodash/isFunction";
|
|
|
4
4
|
import K from "lodash/isNil";
|
|
5
5
|
import { forwardRef as Q, useContext as X, useState as Y, useImperativeHandle as Z, useEffect as _ } from "react";
|
|
6
6
|
import N from "./Button.js";
|
|
7
|
-
import { d as ee } from "./chunk/
|
|
7
|
+
import { d as ee } from "./chunk/B5GDq8NJ.js";
|
|
8
8
|
import { useMergeProps as oe } from "./hooks/useMergeProps.js";
|
|
9
9
|
import { useMergeValue as ne } from "./hooks/useMergeValue.js";
|
|
10
10
|
import te from "./Tooltip.js";
|
package/Popover.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as j, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import u from "lodash/isFunction";
|
|
3
3
|
import { forwardRef as O, useContext as R } from "react";
|
|
4
|
-
import { d as T } from "./chunk/
|
|
4
|
+
import { d as T } from "./chunk/B5GDq8NJ.js";
|
|
5
5
|
import { useMergeProps as w } from "./hooks/useMergeProps.js";
|
|
6
6
|
import F from "./Tooltip.js";
|
|
7
7
|
import { y as H } from "./chunk/BzPkh4Zv.js";
|
package/Progress.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback as N, forwardRef as I, useContext as j } from "react";
|
|
3
|
-
import { d as _ } from "./chunk/
|
|
3
|
+
import { d as _ } from "./chunk/B5GDq8NJ.js";
|
|
4
4
|
import { useMergeProps as F } from "./hooks/useMergeProps.js";
|
|
5
5
|
import { y as w } from "./chunk/BzPkh4Zv.js";
|
|
6
6
|
import G from "./utils/omit.js";
|
package/Radio.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { R as a } from "./chunk/
|
|
2
|
-
import { C as e } from "./chunk/
|
|
1
|
+
import { R as a } from "./chunk/BCxoi4Kf.js";
|
|
2
|
+
import { C as e, G as p, a as d } from "./chunk/BCxoi4Kf.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ClearRadioGroupContext,
|
|
5
|
+
p as RadioGroup,
|
|
6
|
+
d as RadioGroupContext,
|
|
5
7
|
a as default
|
|
6
8
|
};
|
package/Rate.js
CHANGED
|
@@ -5,7 +5,7 @@ import x from "@unicom-cloud/icons/IconUiFaceSmileFill";
|
|
|
5
5
|
import tt from "@unicom-cloud/icons/IconUiStarFill";
|
|
6
6
|
import { o as rt, d as et } from "./chunk/DApXtulb.js";
|
|
7
7
|
import g, { useContext as ot, useState as v } from "react";
|
|
8
|
-
import { d as at } from "./chunk/
|
|
8
|
+
import { d as at } from "./chunk/B5GDq8NJ.js";
|
|
9
9
|
import { useMergeProps as st } from "./hooks/useMergeProps.js";
|
|
10
10
|
import ct from "./Tooltip.js";
|
|
11
11
|
import { y as U } from "./chunk/BzPkh4Zv.js";
|